LibreOffice Module forms (master) 1
navigationbar.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 <FormComponent.hxx>
25#include <formcontrolfont.hxx>
26
27
28using namespace comphelper;
29
30namespace frm
31{
32
33 typedef ::cppu::ImplHelper1 < css::awt::XControlModel
35
37 :public OControlModel
38 ,public FontControlModel
41 {
42 // <properties>
43 css::uno::Any m_aTabStop;
44 css::uno::Any m_aBackgroundColor;
46 OUString m_sHelpText;
47 OUString m_sHelpURL;
48 sal_Int16 m_nIconSize;
49 sal_Int16 m_nBorder;
50 sal_Int32 m_nDelay;
57 sal_Int16 m_nWritingMode;
59 // </properties>
60
61 public:
63 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
64 );
66 const ONavigationBarModel* _pOriginal,
67 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
68 );
69 virtual ~ONavigationBarModel() override;
70
71 // UNO
73 virtual css::uno::Any SAL_CALL queryAggregation( const css::uno::Type& _rType ) override;
74
75 // XServiceInfo
76 virtual OUString SAL_CALL getImplementationName() override;
77 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
78
79 // XTypeProvider
81
82 // XPersistObject
83 virtual OUString SAL_CALL getServiceName() override;
84 virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream>& _rxOutStream) override;
85 virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream>& _rxInStream) override;
86
87 // XPropertySet
88 virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle ) const override;
89 virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any& rConvertedValue, css::uno::Any& rOldValue,
90 sal_Int32 nHandle, const css::uno::Any& rValue ) override;
91 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any& rValue) override;
92
93 // XPropertyState
94 virtual css::uno::Any getPropertyDefaultByHandle( sal_Int32 nHandle ) const override;
95
96 // OControlModel's property handling
97 virtual void describeFixedProperties(
98 css::uno::Sequence< css::beans::Property >& /* [out] */ _rProps
99 ) const override;
100
101 // prevent method hiding
104
105 protected:
106 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
107
108 private:
110 };
111
112
113} // namespace frm
114
115
116/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual OUString SAL_CALL getServiceName() override
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const override
describes the properties provided by this class, or its respective derived class
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
css::uno::Any m_aBackgroundColor
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual void SAL_CALL disposing() override
ONavigationBarModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
virtual OUString SAL_CALL getImplementationName() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
ONavigationBarModel(const ONavigationBarModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual ~ONavigationBarModel() override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
virtual css::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const override
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25
::cppu::ImplHelper1< css::awt::XControlModel > ONavigationBarModel_BASE
unsigned char sal_Bool
#define DECLARE_XTYPEPROVIDER()
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass)