bump product version to 4.1.6.2
[LibreOffice.git] / forms / source / component / navigationbar.hxx
blob7a7278f89b18c12aaa912dc2666c43a3fc55ca3b
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 FORMS_COMPONENT_NAVIGATION_BAR_HXX
21 #define FORMS_COMPONENT_NAVIGATION_BAR_HXX
23 #include "FormComponent.hxx"
24 #include <com/sun/star/io/XPersistObject.hpp>
25 #include <comphelper/proparrhlp.hxx>
26 #include <comphelper/propertycontainerhelper.hxx>
27 #include <cppuhelper/implbase1.hxx>
28 #include <cppuhelper/interfacecontainer.hxx>
29 #include <com/sun/star/container/XSet.hpp>
30 #include <com/sun/star/container/XContainer.hpp>
31 #include "formcontrolfont.hxx"
33 #include <set>
35 //.........................................................................
36 namespace frm
38 //.........................................................................
40 //==================================================================
41 // ONavigationBarModel
42 //==================================================================
43 typedef ::cppu::ImplHelper1 < ::com::sun::star::awt::XControlModel
44 > ONavigationBarModel_BASE;
46 class ONavigationBarModel
47 :public OControlModel
48 ,public FontControlModel
49 ,public OPropertyContainerHelper
50 ,public ONavigationBarModel_BASE
52 // <properties>
53 ::com::sun::star::uno::Any m_aTabStop;
54 ::com::sun::star::uno::Any m_aBackgroundColor;
55 OUString m_sDefaultControl;
56 OUString m_sHelpText;
57 OUString m_sHelpURL;
58 sal_Int16 m_nIconSize;
59 sal_Int16 m_nBorder;
60 sal_Int32 m_nDelay;
61 sal_Bool m_bEnabled;
62 sal_Bool m_bEnableVisible;
63 sal_Bool m_bShowPosition;
64 sal_Bool m_bShowNavigation;
65 sal_Bool m_bShowActions;
66 sal_Bool m_bShowFilterSort;
67 sal_Int16 m_nWritingMode;
68 sal_Int16 m_nContextWritingMode;
69 // </properties>
71 public:
72 DECLARE_DEFAULT_LEAF_XTOR( ONavigationBarModel );
74 // XServiceInfo - static version
75 static OUString SAL_CALL getImplementationName_Static();
76 static ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static();
77 static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
79 protected:
80 // UNO
81 DECLARE_UNO3_AGG_DEFAULTS( ONavigationBarModel, OControlModel );
82 virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw (::com::sun::star::uno::RuntimeException);
84 // XServiceInfo
85 virtual OUString SAL_CALL getImplementationName() throw(::com::sun::star::uno::RuntimeException);
86 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
88 // XTypeProvider
89 DECLARE_XTYPEPROVIDER()
91 // OComponentHelper
92 virtual void SAL_CALL disposing();
94 // XPersistObject
95 virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException);
96 virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
97 virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException);
99 // XPropertySet
100 virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const;
101 virtual sal_Bool SAL_CALL convertFastPropertyValue(::com::sun::star::uno::Any& rConvertedValue, ::com::sun::star::uno::Any& rOldValue,
102 sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
103 throw(::com::sun::star::lang::IllegalArgumentException);
104 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue) throw ( ::com::sun::star::uno::Exception);
106 // XPropertyState
107 virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 nHandle ) const;
109 // OControlModel's property handling
110 virtual void describeFixedProperties(
111 ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
112 ) const;
114 // prevent method hiding
115 using OControlModel::disposing;
116 using OControlModel::getFastPropertyValue;
118 protected:
119 DECLARE_XCLONEABLE();
121 private:
122 void implInitPropertyContainer();
125 //.........................................................................
126 } // namespace frm
127 //.........................................................................
129 #endif // FORMS_COMPONENT_NAVIGATION_BAR_HXX
131 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */