1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: controlfontdialog.hxx,v $
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_CONTROLFONTDIALOG_HXX_
32 #define _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
34 #include <svtools/genericunodialog.hxx>
35 #include "modulepcr.hxx"
40 //........................................................................
43 //........................................................................
45 //====================================================================
46 //= OControlFontDialog
47 //====================================================================
48 class OControlFontDialog
;
49 typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase
;
50 typedef ::comphelper::OPropertyArrayUsageHelper
< OControlFontDialog
> OControlFontDialog_PBase
;
52 class OControlFontDialog
53 :public OControlFontDialog_DBase
54 ,public OControlFontDialog_PBase
59 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>
63 SfxItemSet
* m_pFontItems
; // item set for the dialog
64 SfxItemPool
* m_pItemPool
; // item pool for the item set for the dialog
65 SfxPoolItem
** m_pItemPoolDefaults
; // pool defaults
68 OControlFontDialog(const com::sun::star::uno::Reference
< com::sun::star::uno::XComponentContext
>& _rxContext
);
69 ~OControlFontDialog();
72 virtual ::com::sun::star::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId( ) throw(::com::sun::star::uno::RuntimeException
);
75 virtual ::rtl::OUString SAL_CALL
getImplementationName() throw(::com::sun::star::uno::RuntimeException
);
76 virtual ::comphelper::StringSequence SAL_CALL
getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException
);
78 // XServiceInfo - static methods
79 static ::com::sun::star::uno::Sequence
< ::rtl::OUString
> getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException
);
80 static ::rtl::OUString
getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException
);
81 static ::com::sun::star::uno::Reference
< ::com::sun::star::uno::XInterface
>
82 SAL_CALL
Create(const ::com::sun::star::uno::Reference
< com::sun::star::uno::XComponentContext
>&);
85 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException
);
86 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper();
88 // OPropertyArrayUsageHelper
89 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const;
92 // OGenericUnoDialog overridables
93 virtual Dialog
* createDialog(Window
* _pParent
);
94 virtual void destroyDialog();
95 virtual void executedDialog(sal_Int16 _nExecutionResult
);
98 //........................................................................
100 //........................................................................
102 #endif // _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_