bump product version to 6.3.0.0.beta1
[LibreOffice.git] / extensions / source / propctrlr / controlfontdialog.hxx
blobab57691ee79841e16b8583e3629ec5ae11c0842c
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 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"
27 class SfxItemSet;
28 class SfxItemPool;
29 class SfxPoolItem;
31 namespace pcr
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
42 protected:
43 // <properties>
44 css::uno::Reference< css::beans::XPropertySet >
45 m_xControlModel;
46 // </properties>
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
53 public:
54 explicit OControlFontDialog(const css::uno::Reference< css::uno::XComponentContext >& _rxContext);
55 virtual ~OControlFontDialog() override;
57 // XTypeProvider
58 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) override;
60 // XServiceInfo
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 >&);
72 // XInitialization
73 virtual void SAL_CALL initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
75 // XPropertySet
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;
82 protected:
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;
89 } // namespace pcr
92 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_CONTROLFONTDIALOG_HXX
94 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */