Bump version to 24.04.3.4
[LibreOffice.git] / toolkit / inc / controls / tabpagemodel.hxx
bloba1668e2d5d597f9ac99b9a1c0238b0a3f7885c25
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 #pragma once
22 #include <controls/controlmodelcontainerbase.hxx>
23 #include <com/sun/star/awt/tab/XTabPage.hpp>
24 #include <cppuhelper/implbase2.hxx>
26 class UnoControlTabPageModel final : public ControlModelContainerBase
28 css::uno::Any ImplGetDefaultValue( sal_uInt16 nPropId ) const override;
29 ::cppu::IPropertyArrayHelper& getInfoHelper() override;
30 public:
31 UnoControlTabPageModel( css::uno::Reference< css::uno::XComponentContext > const & i_factory);
33 // css::io::XPersistObject
34 OUString SAL_CALL getServiceName() override;
36 // css::beans::XMultiPropertySet
37 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo( ) override;
38 // XInitialization
39 virtual void SAL_CALL initialize (const css::uno::Sequence<css::uno::Any>& rArguments) override;
41 // XServiceInfo
42 OUString SAL_CALL getImplementationName() override;
44 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
49 typedef ::cppu::AggImplInheritanceHelper2 < ControlContainerBase
50 , css::awt::tab::XTabPage
51 , css::awt::XWindowListener
52 > UnoControlTabPage_Base;
53 class UnoControlTabPage final : public UnoControlTabPage_Base
55 private:
56 bool m_bWindowListener;
57 public:
59 UnoControlTabPage( const css::uno::Reference< css::uno::XComponentContext >& rxContext );
60 virtual ~UnoControlTabPage() override;
61 OUString GetComponentServiceName() const override;
63 void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& Toolkit, const css::uno::Reference< css::awt::XWindowPeer >& Parent ) override;
64 void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
66 // css::awt::XWindowListener
67 virtual void SAL_CALL windowResized( const css::awt::WindowEvent& e ) override;
68 virtual void SAL_CALL windowMoved( const css::awt::WindowEvent& e ) override;
69 virtual void SAL_CALL windowShown( const css::lang::EventObject& e ) override;
70 virtual void SAL_CALL windowHidden( const css::lang::EventObject& e ) override;
71 // css::lang::XServiceInfo
72 virtual OUString SAL_CALL getImplementationName() override;
74 virtual sal_Bool SAL_CALL supportsService(OUString const & ServiceName) override;
76 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */