update dev300-m58
[ooovba.git] / svx / source / inc / fmcontrollayout.hxx
blob0424046c660fa2c44e6eeeac935d5332e77557ad
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: fmcontrollayout.hxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX
32 #define SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX
34 /** === begin UNO includes === **/
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 /** === end UNO includes === **/
38 #ifndef SVX_SOURCE_FORM_FMDOCUMENTCLASSIFICATION_HXX
39 #include "fmdocumentclassification.hxx"
40 #endif
41 #include <unotools/confignode.hxx>
43 //........................................................................
44 namespace svxform
46 //........................................................................
48 //====================================================================
49 //= ControlLayouter
50 //====================================================================
51 class ControlLayouter
53 public:
54 /** initializes the layout of a newly created form control (model)
56 static void initializeControlLayout(
57 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxControlModel,
58 DocumentType _eDocType
61 /** determines whether for the given document type, dynamic control border coloring is enabled
63 static bool useDynamicBorderColor( DocumentType _eDocType );
65 private:
66 ControlLayouter(); // never implemented
68 private:
69 static ::utl::OConfigurationNode
70 getLayoutSettings(
71 DocumentType _eDocType
75 //........................................................................
76 } // namespace svxform
77 //........................................................................
79 #endif // SVX_SOURCE_INC_FMCONTROLLAYOUT_HXX