LibreOffice Module forms (master) 1
navbarcontrol.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
22#include <formnavigation.hxx>
23
24#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
25
28#include <comphelper/uno3.hxx>
30
31
32namespace frm
33{
34
35 typedef ::cppu::ImplHelper1 < css::frame::XDispatchProviderInterception
37
39 :public UnoControl
41 {
42 css::uno::Reference< css::uno::XComponentContext > m_xContext;
43 public:
44 explicit ONavigationBarControl(
45 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
46 );
47
48 protected:
49 virtual ~ONavigationBarControl() override;
50
51 // UNO
53 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& _rType ) override;
54
55 // XControl
56 virtual void SAL_CALL createPeer( const css::uno::Reference< css::awt::XToolkit >& _rToolkit, const css::uno::Reference< css::awt::XWindowPeer >& _rParent ) override;
57
58 // XServiceInfo
59 virtual OUString SAL_CALL getImplementationName() override;
60 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
61
62 // XTypeProvider
64
65 // XVclWindowPeer
66 virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) override;
67
68 // XDispatchProviderInterception
69 virtual void SAL_CALL registerDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& Interceptor ) override;
70 virtual void SAL_CALL releaseDispatchProviderInterceptor( const css::uno::Reference< css::frame::XDispatchProviderInterceptor >& Interceptor ) override;
71 };
72
74 :public VCLXWindow
76 {
77 public:
81 const css::uno::Reference< css::uno::XComponentContext >& _rxORB,
82 vcl::Window* _pParentWindow,
83 const css::uno::Reference< css::awt::XControlModel >& _rxModel
84 );
85
86 // XInterface
88
89 // XVclWindowPeer
90 virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) override;
91
92 // XWindow2
94
95 private:
96 explicit ONavigationBarPeer(
97 const css::uno::Reference< css::uno::XComponentContext >& _rxORB
98 );
99 virtual ~ONavigationBarPeer() override;
100
101 // XTypeProvider
103
104 // XComponent
105 void SAL_CALL dispose( ) override;
106
107 // XVclWindowPeer
108 void SAL_CALL setProperty( const OUString& _rPropertyName, const css::uno::Any& _rValue ) override;
109 css::uno::Any SAL_CALL getProperty( const OUString& _rPropertyName ) override;
110
111 // XEventListener
112 virtual void SAL_CALL disposing( const css::lang::EventObject& Source ) override;
113
114 // OFormNavigationHelper overriables
115 virtual void interceptorsChanged( ) override;
116 virtual void featureStateChanged( sal_Int16 _nFeatureId, bool _bEnabled ) override;
117 virtual void allFeatureStatesChanged( ) override;
118 virtual void getSupportedFeatures( ::std::vector< sal_Int16 >& /* [out] */ _rFeatureIds ) override;
119
120 // IFeatureDispatcher overriables
121 virtual bool isEnabled( sal_Int16 _nFeatureId ) const override;
122 };
123
124
125} // namespace frm
126
127
128/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL isEnabled() override
void SAL_CALL dispose() override
void SAL_CALL disposing(const css::lang::EventObject &Source) override
sal_Bool SAL_CALL isEnabled() override
virtual void SAL_CALL registerDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL createPeer(const css::uno::Reference< css::awt::XToolkit > &_rToolkit, const css::uno::Reference< css::awt::XWindowPeer > &_rParent) override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
virtual void SAL_CALL releaseDispatchProviderInterceptor(const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &Interceptor) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
ONavigationBarControl(const css::uno::Reference< css::uno::XComponentContext > &_rxORB)
virtual void SAL_CALL setDesignMode(sal_Bool _bOn) override
virtual OUString SAL_CALL getImplementationName() override
virtual ~ONavigationBarControl() override
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25
::cppu::ImplHelper1< css::frame::XDispatchProviderInterception > ONavigationBarControl_Base
void Create(SwFormatVertOrient &rItem, SvStream &rStrm, sal_uInt16 nVersionAbusedAsSize)
SVX_DLLPUBLIC OUString getProperty(css::uno::Reference< css::beans::XPropertyContainer > const &rxPropertyContainer, OUString const &rName)
unsigned char sal_Bool
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass)
#define DECLARE_XINTERFACE()