/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: refvaluecomponent.hxx,v $ * $Revision: 1.11 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef FORMS_SOURCE_COMPONENT_REFVALUECOMPONENT_HXX #define FORMS_SOURCE_COMPONENT_REFVALUECOMPONENT_HXX #include "FormComponent.hxx" #include "togglestate.hxx" /** === begin UNO includes === **/ /** === end UNO includes === **/ //........................................................................ namespace frm { //........................................................................ //==================================================================== //= OReferenceValueComponent //==================================================================== /** a OBoundControlModel which features the exchange of a reference value */ class OReferenceValueComponent : public OBoundControlModel { private: // ::rtl::OUString m_sReferenceValue; // the reference value to use for data exchange ::rtl::OUString m_sNoCheckReferenceValue; // the reference value to be exchanged when the control is not checked ToggleState m_eDefaultChecked; // the default check state // sal_Bool m_bSupportSecondRefValue; // do we support the SecondaryRefValue property? protected: const ::rtl::OUString& getReferenceValue() const { return m_sReferenceValue; } void setReferenceValue( const ::rtl::OUString& _rRefValue ); const ::rtl::OUString& getNoCheckReferenceValue() const { return m_sNoCheckReferenceValue; } ToggleState getDefaultChecked() const { return m_eDefaultChecked; } void setDefaultChecked( ToggleState _eChecked ) { m_eDefaultChecked = _eChecked; } protected: OReferenceValueComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory>& _rxFactory, const ::rtl::OUString& _rUnoControlModelTypeName, const ::rtl::OUString& _rDefault, sal_Bool _bSupportNoCheckRefValue = sal_False ); DECLARE_DEFAULT_CLONE_CTOR( OReferenceValueComponent ) DECLARE_DEFAULT_DTOR( OReferenceValueComponent ); // OPropertySet and friends virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle) const; virtual void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue ) throw (::com::sun::star::uno::Exception); virtual sal_Bool SAL_CALL convertFastPropertyValue( ::com::sun::star::uno::Any& _rConvertedValue, ::com::sun::star::uno::Any& _rOldValue, sal_Int32 _nHandle, const ::com::sun::star::uno::Any& _rValue ) throw (::com::sun::star::lang::IllegalArgumentException); virtual void describeFixedProperties( ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps ) const; using ::cppu::OPropertySetHelper::getFastPropertyValue; // OBoundControlModel overridables virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > getSupportedBindingTypes(); virtual ::com::sun::star::uno::Any translateExternalValueToControlValue( const ::com::sun::star::uno::Any& _rExternalValue ) const; virtual ::com::sun::star::uno::Any translateControlValueToExternalValue( ) const; virtual ::com::sun::star::uno::Any translateControlValueToValidatableValue( ) const; virtual ::com::sun::star::uno::Any getDefaultForReset() const; }; //........................................................................ } // namespace frm //........................................................................ #endif // FORMS_SOURCE_COMPONENT_REFVALUECOMPONENT_HXX istro/collabora/lov-5.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/include/editeng/outlobj.hxx
AgeCommit message (Expand)Author
2021-10-07loplugin:moveparam in editengNoel Grandin
2021-08-18specialise std::optional for OutlineParaObjectNoel Grandin
2021-08-16pass OutlinerParaObject around by valueNoel Grandin
2021-07-21IsVertical->IsEffectivelyVertical, GetDirectVertical->GetVerticalMike Kaganski
2020-11-24loplugin:stringviewparam extend to comparison operatorsNoel
2020-10-10drop newly unused OutlinerParaObject ctor variantCaolán McNamara
2020-10-10ofz#23492 the only user of this ctor throws away the original of the cloneCaolán McNamara
2019-11-27Better handling of text rotation attribute.Tamás Zolnai
2019-11-06ofz#12553 TimeoutCaolán McNamara
2019-06-07tdf#42949 Fix IWYU warnings in svl/Gabor Kelemen
2019-02-28use the xmlTextWriterPtr typedef consistentlyNoel Grandin
2018-08-09loplugin:unusedmethodsNoel Grandin
2018-07-02pass OutlinerParaObject around by std::unique_ptrNoel Grandin
2018-04-11pass EditTextObject around using std::unique_ptrNoel Grandin
2017-10-04Fix typosAndrea Gelmini
2017-07-21migrate to boost::gettextCaolán McNamara
2017-04-15Avoid using implicit assignment operatorTamás Zolnai
2017-04-15Introduce text rotation for Impress tablesTamás Zolnai
2017-01-13new loplugin: useuniqueptr: editengNoel Grandin
2016-12-05loplugin:countusersofdefaultparams in include/drawinglayer..i18nlangtagNoel Grandin
2016-05-09convert OUTLINER_MODE to scoped enumNoel Grandin
2016-01-12loplugin:unusedmethods unused return value in include/editengNoel Grandin
2015-09-15tdf#62525 editeng: OutlinerParaObjectDaniel Robertson
2014-11-27Factor out OutlinerParaObject::dumpAsXml() from SwDoc::dumpAsXml()Miklos Vajna
2014-08-14Apply a simple pimpl idiom and rename the old Impl to make it non-Impl.Kohei Yoshida