tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / inc / Title.hxx
blob230267918de2103e918c20b58646eaff4bb7c078
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 .
19 #pragma once
21 #include "OPropertySet.hxx"
22 #include <cppuhelper/implbase.hxx>
23 #include <comphelper/uno3.hxx>
24 #include <com/sun/star/chart2/XTitle.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <com/sun/star/util/XCloneable.hpp>
27 #include "ModifyListenerHelper.hxx"
29 namespace chart
32 namespace impl
34 typedef ::cppu::WeakImplHelper<
35 css::chart2::XTitle,
36 css::lang::XServiceInfo,
37 css::util::XCloneable,
38 css::util::XModifyBroadcaster,
39 css::util::XModifyListener >
40 Title_Base;
43 class UNLESS_MERGELIBS(OOO_DLLPUBLIC_CHARTTOOLS) Title final :
44 public impl::Title_Base,
45 public ::property::OPropertySet
47 public:
48 explicit Title();
49 virtual ~Title() override;
51 /// XServiceInfo declarations
52 virtual OUString SAL_CALL getImplementationName() override;
53 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
54 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
56 /// merge XInterface implementations
57 DECLARE_XINTERFACE()
58 /// merge XTypeProvider implementations
59 DECLARE_XTYPEPROVIDER()
61 explicit Title( const Title & rOther );
63 // ____ OPropertySet ____
64 virtual void GetDefaultValue( sal_Int32 nHandle, css::uno::Any& rAny ) const override;
66 // ____ OPropertySet ____
67 virtual ::cppu::IPropertyArrayHelper & SAL_CALL getInfoHelper() override;
69 // ____ XPropertySet ____
70 virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
71 getPropertySetInfo() override;
73 // ____ XTitle ____
74 virtual css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > SAL_CALL getText() override;
75 virtual void SAL_CALL setText( const css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > >& Strings ) override;
77 // ____ XCloneable ____
78 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override;
80 // ____ XModifyBroadcaster ____
81 virtual void SAL_CALL addModifyListener(
82 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
83 virtual void SAL_CALL removeModifyListener(
84 const css::uno::Reference< css::util::XModifyListener >& aListener ) override;
86 private:
88 // ____ XModifyListener ____
89 virtual void SAL_CALL modified(
90 const css::lang::EventObject& aEvent ) override;
92 // ____ XEventListener (base of XModifyListener) ____
93 virtual void SAL_CALL disposing(
94 const css::lang::EventObject& Source ) override;
96 // ____ OPropertySet ____
97 virtual void firePropertyChangeEvent() override;
98 using OPropertySet::disposing;
100 void fireModifyEvent();
102 css::uno::Sequence< css::uno::Reference< css::chart2::XFormattedString > > m_aStrings;
104 rtl::Reference<ModifyEventForwarder> m_xModifyEventForwarder;
107 } // namespace chart
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */