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 INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_CONTROLFONTDIALOG_HXX
21 #define INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_CONTROLFONTDIALOG_HXX
23 #include <comphelper/proparrhlp.hxx>
24 #include <svtools/genericunodialog.hxx>
25 #include "modulepcr.hxx"
34 class OControlFontDialog
;
35 typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase
;
36 typedef ::comphelper::OPropertyArrayUsageHelper
< OControlFontDialog
> OControlFontDialog_PBase
;
38 class OControlFontDialog
39 :public OControlFontDialog_DBase
40 ,public OControlFontDialog_PBase
44 css::uno::Reference
< css::beans::XPropertySet
>
48 std::unique_ptr
<SfxItemSet
> m_pFontItems
; // item set for the dialog
49 SfxItemPool
* m_pItemPool
; // item pool for the item set for the dialog
50 std::vector
<SfxPoolItem
*>*
51 m_pItemPoolDefaults
; // pool defaults
54 explicit OControlFontDialog(const css::uno::Reference
< css::uno::XComponentContext
>& _rxContext
);
55 virtual ~OControlFontDialog() override
;
58 virtual css::uno::Sequence
<sal_Int8
> SAL_CALL
getImplementationId( ) override
;
61 virtual OUString SAL_CALL
getImplementationName() override
;
62 virtual css::uno::Sequence
<OUString
> SAL_CALL
getSupportedServiceNames() override
;
64 // XServiceInfo - static methods
65 /// @throws css::uno::RuntimeException
66 static css::uno::Sequence
< OUString
> getSupportedServiceNames_static();
67 /// @throws css::uno::RuntimeException
68 static OUString
getImplementationName_static();
69 static css::uno::Reference
< css::uno::XInterface
>
70 Create(const css::uno::Reference
< css::uno::XComponentContext
>&);
73 virtual void SAL_CALL
initialize( const css::uno::Sequence
< css::uno::Any
>& aArguments
) override
;
76 virtual css::uno::Reference
< css::beans::XPropertySetInfo
> SAL_CALL
getPropertySetInfo() override
;
77 virtual ::cppu::IPropertyArrayHelper
& SAL_CALL
getInfoHelper() override
;
79 // OPropertyArrayUsageHelper
80 virtual ::cppu::IPropertyArrayHelper
* createArrayHelper( ) const override
;
83 // OGenericUnoDialog overridables
84 virtual svt::OGenericUnoDialog::Dialog
createDialog(const css::uno::Reference
<css::awt::XWindow
>& rParent
) override
;
85 virtual void executedDialog(sal_Int16 _nExecutionResult
) override
;
92 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_CONTROLFONTDIALOG_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */