Update ooo320-m1
[ooovba.git] / extensions / source / propctrlr / fontdialog.hxx
blob43c6f4eb54238ebb33ad3adbf7f8f99c35bdd5e0
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: fontdialog.hxx,v $
10 * $Revision: 1.6 $
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 _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_
32 #define _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_
34 #include <sfx2/tabdlg.hxx>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include <com/sun/star/beans/NamedValue.hpp>
38 class SvxFontListItem;
39 class FontList;
41 //............................................................................
42 namespace pcr
44 //............................................................................
46 //========================================================================
47 //= ControlCharacterDialog
48 //========================================================================
49 class ControlCharacterDialog : public SfxTabDialog
51 public:
52 ControlCharacterDialog(Window* _pParent, const SfxItemSet& _rCoreSet);
53 ~ControlCharacterDialog();
55 /// creates an item set to be used with this dialog
56 static SfxItemSet* createItemSet(SfxItemSet*& _rpSet, SfxItemPool*& _rpPool, SfxPoolItem**& _rppDefaults);
58 /// destroys an item previously created with <method>createItemSet</method>
59 static void destroyItemSet(SfxItemSet*& _rpSet, SfxItemPool*& _rpPool, SfxPoolItem**& _rppDefaults);
61 /// fills the given item set with values obtained from the given property set
62 static void translatePropertiesToItems(
63 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxModel,
64 SfxItemSet* _pSet);
66 /** fills the given property set with values obtained from the given item set
68 static void translateItemsToProperties(
69 const SfxItemSet& _rSet,
70 const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >& _rxModel);
72 /** fills the given property set with values obtained from the given item set
74 static void translateItemsToProperties(
75 const SfxItemSet& _rSet,
76 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::NamedValue >& _out_properties );
78 protected:
79 virtual void PageCreated(sal_uInt16 _nId, SfxTabPage& _rPage);
81 //............................................................................
82 } // namespace pcr
83 //............................................................................
85 #endif // _EXTENSIONS_PROPCTRLR_FONTDIALOG_HXX_