masterfix DEV300: #i10000# build fix
[LibreOffice.git] / extensions / source / propctrlr / fontdialog.hxx
blob5604270ac037ed37945e42cff75b6bd5e9a375e1
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_
29 #define _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_
31 #include <sfx2/tabdlg.hxx>
32 #include <com/sun/star/beans/XPropertySet.hpp>
33 #include <com/sun/star/beans/NamedValue.hpp>
35 class SvxFontListItem;
36 class FontList;
38 //............................................................................
39 namespace pcr
41 //............................................................................
43 //========================================================================
44 //= ControlCharacterDialog
45 //========================================================================
46 class ControlCharacterDialog : public SfxTabDialog
48 public:
49 ControlCharacterDialog(Window* _pParent, const SfxItemSet& _rCoreSet);
50 ~ControlCharacterDialog();
52 /// creates an item set to be used with this dialog
53 static SfxItemSet* createItemSet(SfxItemSet*& _rpSet, SfxItemPool*& _rpPool, SfxPoolItem**& _rppDefaults);
55 /// destroys an item previously created with <method>createItemSet</method>
56 static void destroyItemSet(SfxItemSet*& _rpSet, SfxItemPool*& _rpPool, SfxPoolItem**& _rppDefaults);
58 /// fills the given item set with values obtained from the given property set
59 static void translatePropertiesToItems(
60 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxModel,
61 SfxItemSet* _pSet);
63 /** fills the given property set with values obtained from the given item set
65 static void translateItemsToProperties(
66 const SfxItemSet& _rSet,
67 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxModel);
69 /** fills the given property set with values obtained from the given item set
71 static void translateItemsToProperties(
72 const SfxItemSet& _rSet,
73 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _out_properties );
75 protected:
76 virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage);
78 //............................................................................
79 } // namespace pcr
80 //............................................................................
82 #endif // _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_