LibreOffice Module forms (master) 1
File.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>
24
25
26namespace frm
27{
28
30 :public OControlModel
31 ,public css::form::XReset
32{
35
36protected:
37 virtual css::uno::Sequence< css::uno::Type> _getTypes() override;
38
39public:
41 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
42 );
44 const OFileControlModel* _pOriginal,
45 const css::uno::Reference< css::uno::XComponentContext>& _rxFactory
46 );
47 virtual ~OFileControlModel() override;
48
50 virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type& _rType) override;
51
52 // XServiceInfo
53 OUString SAL_CALL getImplementationName() override
54 { return "com.sun.star.form.OFileControlModel"; }
55
56 virtual css::uno::Sequence<OUString> SAL_CALL getSupportedServiceNames() override;
57
58 // OComponentHelper
59 virtual void SAL_CALL disposing() override;
60
61 // XPropertySet and friends
62 virtual void SAL_CALL getFastPropertyValue(css::uno::Any& rValue, sal_Int32 nHandle) const override;
63 virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any& rValue) override;
64
65 virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any& rConvertedValue, css::uno::Any& rOldValue, sal_Int32 nHandle, const css::uno::Any& rValue ) override;
66
67 virtual css::uno::Any getPropertyDefaultByHandle( sal_Int32 _nHandle ) const override;
68
69 // XPersistObject
70 virtual OUString SAL_CALL getServiceName() override;
71 virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream>& _rxOutStream) override;
72 virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream>& _rxInStream) override;
73
74 // XReset
75 virtual void SAL_CALL reset() override;
76 virtual void SAL_CALL addResetListener(const css::uno::Reference< css::form::XResetListener>& _rxListener) override;
77 virtual void SAL_CALL removeResetListener(const css::uno::Reference< css::form::XResetListener>& _rxListener) override;
78
79 // OControlModel's property handling
80 virtual void describeFixedProperties(
81 css::uno::Sequence< css::beans::Property >& /* [out] */ _rProps
82 ) const override;
83
84 // prevent method hiding
87
88protected:
89 virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone( ) override;
90};
91
92
93} // namespace frm
94
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual void SAL_CALL disposing() 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
Definition: File.cxx:177
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: File.cxx:60
OUString SAL_CALL getImplementationName() override
Definition: File.hxx:53
virtual ~OFileControlModel() override
Definition: File.cxx:89
virtual void SAL_CALL removeResetListener(const css::uno::Reference< css::form::XResetListener > &_rxListener) override
Definition: File.cxx:260
OFileControlModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual void SAL_CALL disposing() override
Definition: File.cxx:120
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
Definition: File.cxx:209
virtual void SAL_CALL addResetListener(const css::uno::Reference< css::form::XResetListener > &_rxListener) override
Definition: File.cxx:254
virtual void SAL_CALL reset() override
Definition: File.cxx:235
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
Definition: File.cxx:99
OFileControlModel(const OFileControlModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
OUString m_sDefaultValue
Definition: File.hxx:34
virtual css::uno::Any getPropertyDefaultByHandle(sal_Int32 _nHandle) const override
Definition: File.cxx:129
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
Definition: File.cxx:107
virtual css::uno::Sequence< css::uno::Type > _getTypes() override
Definition: File.cxx:50
virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
Definition: File.cxx:195
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
Definition: File.cxx:140
virtual sal_Bool SAL_CALL convertFastPropertyValue(css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
Definition: File.cxx:165
virtual OUString SAL_CALL getServiceName() override
Definition: File.cxx:189
::comphelper::OInterfaceContainerHelper3< css::form::XResetListener > m_aResetListeners
Definition: File.hxx:33
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
Definition: File.cxx:151
ListBox is a bit confusing / different from other form components, so here are a few notes:
Definition: BaseListBox.hxx:25
unsigned char sal_Bool
#define DECLARE_UNO3_AGG_DEFAULTS(classname, baseclass)