Bump for 3.6-28
[LibreOffice.git] / extensions / source / propctrlr / controlfontdialog.hxx
blob55ea4c4eb61809389cdfc52674a91c8c3f2538e4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
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.
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).
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.
27 ************************************************************************/
29 #ifndef _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
30 #define _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
32 #include <svtools/genericunodialog.hxx>
33 #include "modulepcr.hxx"
35 class SfxItemSet;
36 class SfxItemPool;
37 class SfxPoolItem;
38 //........................................................................
39 namespace pcr
41 //........................................................................
43 //====================================================================
44 //= OControlFontDialog
45 //====================================================================
46 class OControlFontDialog;
47 typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase;
48 typedef ::comphelper::OPropertyArrayUsageHelper< OControlFontDialog > OControlFontDialog_PBase;
50 class OControlFontDialog
51 :public OControlFontDialog_DBase
52 ,public OControlFontDialog_PBase
53 ,public PcrClient
55 protected:
56 // <properties>
57 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
58 m_xControlModel;
59 // </properties>
61 SfxItemSet* m_pFontItems; // item set for the dialog
62 SfxItemPool* m_pItemPool; // item pool for the item set for the dialog
63 SfxPoolItem** m_pItemPoolDefaults; // pool defaults
65 public:
66 OControlFontDialog(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext);
67 ~OControlFontDialog();
69 // XTypeProvider
70 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
72 // XServiceInfo
73 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
74 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
76 // XServiceInfo - static methods
77 static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
78 static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
79 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
80 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
82 // XPropertySet
83 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
84 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
86 // OPropertyArrayUsageHelper
87 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
89 protected:
90 // OGenericUnoDialog overridables
91 virtual Dialog* createDialog(Window* _pParent);
92 virtual void destroyDialog();
93 virtual void executedDialog(sal_Int16 _nExecutionResult);
96 //........................................................................
97 } // namespace pcr
98 //........................................................................
100 #endif // _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */