1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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"
29 //........................................................................
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
48 ::com::sun::star::uno::Reference
< ::com::sun::star::beans::XPropertySet
>
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
57 OControlFontDialog(const com::sun::star::uno::Reference
< com::sun::star::uno::XComponentContext
>& _rxContext
);
58 ~OControlFontDialog();
61 virtual ::com::sun::star::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId( ) throw(::com::sun::star::uno::RuntimeException
);
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
>&);
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
);
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;
84 // OGenericUnoDialog overridables
85 virtual Dialog
* createDialog(Window
* _pParent
);
86 virtual void destroyDialog();
87 virtual void executedDialog(sal_Int16 _nExecutionResult
);
90 //........................................................................
92 //........................................................................
94 #endif // _EXTENSIONS_PROPCTRLR_CONTROLFONTDIALOG_HXX_
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */