bump product version to 5.0.4.1
[LibreOffice.git] / extensions / source / propctrlr / controlfontdialog.hxx
blobf2b204102f41e3321f406b7b91f450128608a1c5
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 <svtools/genericunodialog.hxx>
24 #include "modulepcr.hxx"
26 class SfxItemSet;
27 class SfxItemPool;
28 class SfxPoolItem;
30 namespace pcr
33 class OControlFontDialog;
34 typedef ::svt::OGenericUnoDialog OControlFontDialog_DBase;
35 typedef ::comphelper::OPropertyArrayUsageHelper< OControlFontDialog > OControlFontDialog_PBase;
37 class OControlFontDialog
38 :public OControlFontDialog_DBase
39 ,public OControlFontDialog_PBase
40 ,public PcrClient
42 protected:
43 // <properties>
44 ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet >
45 m_xControlModel;
46 // </properties>
48 SfxItemSet* m_pFontItems; // item set for the dialog
49 SfxItemPool* m_pItemPool; // item pool for the item set for the dialog
50 SfxPoolItem** m_pItemPoolDefaults; // pool defaults
52 public:
53 OControlFontDialog(const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& _rxContext);
54 virtual ~OControlFontDialog();
56 // XTypeProvider
57 virtual ::com::sun::star::uno::Sequence<sal_Int8> SAL_CALL getImplementationId( ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 // XServiceInfo
60 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 virtual ::comphelper::StringSequence SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 // XServiceInfo - static methods
64 static ::com::sun::star::uno::Sequence< OUString > getSupportedServiceNames_static() throw( ::com::sun::star::uno::RuntimeException );
65 static OUString getImplementationName_static() throw( ::com::sun::star::uno::RuntimeException );
66 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
67 SAL_CALL Create(const ::com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >&);
69 // XInitialization
70 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, std::exception) SAL_OVERRIDE;
72 // XPropertySet
73 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
74 virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE;
76 // OPropertyArrayUsageHelper
77 virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const SAL_OVERRIDE;
79 protected:
80 // OGenericUnoDialog overridables
81 virtual VclPtr<Dialog> createDialog(vcl::Window* _pParent) SAL_OVERRIDE;
82 virtual void destroyDialog() SAL_OVERRIDE;
83 virtual void executedDialog(sal_Int16 _nExecutionResult) SAL_OVERRIDE;
87 } // namespace pcr
90 #endif // INCLUDED_EXTENSIONS_SOURCE_PROPCTRLR_CONTROLFONTDIALOG_HXX
92 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */