Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #ifndef _TOOLKIT_AWT_UNOCONTROLBASE_HXX_
30 : : #define _TOOLKIT_AWT_UNOCONTROLBASE_HXX_
31 : :
32 : : #include <com/sun/star/awt/Size.hpp>
33 : :
34 : : #include <toolkit/controls/unocontrol.hxx>
35 : :
36 : : // ----------------------------------------------------
37 : : // class UnoControlBase
38 : : // ----------------------------------------------------
39 : :
40 [ - + ]: 1004 : class TOOLKIT_DLLPUBLIC UnoControlBase : public UnoControl
41 : : {
42 : : protected:
43 : : UnoControlBase() //do not use! needed by MSVC at compile time to satisfy AggImplInheritanceHelper5
44 : : {
45 : : assert(false);
46 : : }
47 : : protected:
48 : 1038 : UnoControlBase( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& i_factory )
49 : 1038 : :UnoControl( i_factory )
50 : : {
51 : 1038 : }
52 : :
53 : : sal_Bool ImplHasProperty( sal_uInt16 nProp );
54 : : sal_Bool ImplHasProperty( const ::rtl::OUString& aPropertyName );
55 : : void ImplSetPropertyValue( const ::rtl::OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue, sal_Bool bUpdateThis );
56 : : void ImplSetPropertyValues( const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aPropertyNames, const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aValues, sal_Bool bUpdateThis );
57 : : ::com::sun::star::uno::Any ImplGetPropertyValue( const ::rtl::OUString& aPropertyName );
58 : :
59 : : sal_Bool ImplGetPropertyValue_BOOL( sal_uInt16 nProp );
60 : : sal_Int16 ImplGetPropertyValue_INT16( sal_uInt16 nProp );
61 : : sal_Int32 ImplGetPropertyValue_INT32( sal_uInt16 nProp );
62 : : double ImplGetPropertyValue_DOUBLE( sal_uInt16 nProp );
63 : : ::rtl::OUString ImplGetPropertyValue_UString( sal_uInt16 nProp );
64 : :
65 : : // XLayoutConstrains (nur wenn das Control es unterstuetzt!)
66 : : ::com::sun::star::awt::Size Impl_getMinimumSize();
67 : : ::com::sun::star::awt::Size Impl_getPreferredSize();
68 : : ::com::sun::star::awt::Size Impl_calcAdjustedSize( const ::com::sun::star::awt::Size& rNewSize );
69 : :
70 : : // XTextLayoutConstrains (nur wenn das Control es unterstuetzt!)
71 : : ::com::sun::star::awt::Size Impl_getMinimumSize( sal_Int16 nCols, sal_Int16 nLines );
72 : : void Impl_getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines );
73 : : };
74 : :
75 : :
76 : :
77 : : #endif // _TOOLKIT_AWT_UNOCONTROLBASE_HXX_
78 : :
79 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|