bump product version to 4.1.6.2
[LibreOffice.git] / extensions / source / propctrlr / controlfontdialog.hxx
blob50080e0301f2f976fe06e3089d5640e6fd6971e8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
21 #define _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
23 #include <svtools/genericunodialog.hxx>
24 #include "modulepcr.hxx"
26 class SfxItemSet;
27 class SfxItemPool;
28 class SfxPoolItem;
29 //........................................................................
30 namespace pcr
32 //........................................................................
34 //====================================================================
35 //= OControlFontDialog
36 //====================================================================
37 class OControlFontDialog;
38 typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase;
39 typedef ::comphelper::OPropertyArrayUsageHelper< OControlFontDialog > OControlFontDialog_PBase;
41 class OControlFontDialog
42 :public OControlFontDialog_DBase
43 ,public OControlFontDialog_PBase
44 ,public PcrClient
46 protected:
47 // <properties>
48 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
49 m_xControlModel;
50 // </properties>
52 SfxItemSet* m_pFontItems; // item set for the dialog
53 SfxItemPool* m_pItemPool; // item pool for the item set for the dialog
54 SfxPoolItem** m_pItemPoolDefaults; // pool defaults
56 public:
57 OControlFontDialog(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext);
58 ~OControlFontDialog();
60 // XTypeProvider
61 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException);
63 // XServiceInfo
64 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
65 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
67 // XServiceInfo - static methods
68 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException );
69 static OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException );
70 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
71 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
73 // XInitialization
74 virtual void SAL_CALL initialize( const com::sun::star::uno::Sequence< com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException);
76 // XPropertySet
77 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException);
78 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper();
80 // OPropertyArrayUsageHelper
81 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const;
83 protected:
84 // OGenericUnoDialog overridables
85 virtual Dialog* createDialog(Window* _pParent);
86 virtual void destroyDialog();
87 virtual void executedDialog(sal_Int16 _nExecutionResult);
90 //........................................................................
91 } // namespace pcr
92 //........................................................................
94 #endif // _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */