22#include <com/sun/star/beans/PropertyAttribute.hpp>
23#include <com/sun/star/form/FormComponentType.hpp>
52 static Sequence<Type>
const aTypes =
63 aSupported.realloc(aSupported.getLength() + 2);
65 OUString*pArray = aSupported.getArray();
81 :OControlModel( _pOriginal, _rxFactory )
91 if (!OComponentHelper::rBHelper.bDisposed)
102 pClone->clonedFrom(
this);
110 if (!aReturn.hasValue())
111 aReturn = ::cppu::queryInterface(_rType
112 ,
static_cast<XReset*
>(
this)
124 EventObject aEvt(
static_cast<XWeak*
>(
this));
134 return Any( OUString() );
156 DBG_ASSERT(rValue.getValueType().getTypeClass() == TypeClass_STRING,
"OFileControlModel::setFastPropertyValue_NoBroadcast : invalid type !" );
180 sal_Int32 nOldCount = _rProps.getLength();
181 _rProps.realloc( nOldCount + 2);
182 css::beans::Property* pProperties = _rProps.getArray() + nOldCount;
185 DBG_ASSERT( pProperties == _rProps.getArray() + _rProps.getLength(),
"<...>::describeFixedProperties/getInfoHelper: forgot to adjust the count ?");
202 _rxOutStream->writeShort(0x0002);
215 sal_uInt16
nVersion = _rxInStream->readShort();
226 OSL_FAIL(
"OFileControlModel::read : unknown version !");
238 EventObject aEvt(
static_cast<XWeak*
>(
this));
239 bool bContinue =
true;
241 bContinue = aIter.
next()->approveReset(aEvt);
268extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
270 css::uno::Sequence<css::uno::Any>
const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_OFileControlModel_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
sal_Int32 addInterface(const css::uno::Reference< ListenerT > &rxIFace)
void disposeAndClear(const css::lang::EventObject &rEvt)
sal_Int32 removeInterface(const css::uno::Reference< ListenerT > &rxIFace)
void notifyEach(void(SAL_CALL ListenerT::*NotificationMethod)(const EventT &), const EventT &Event)
bool hasMoreElements() const
css::uno::Reference< ListenerT > const & next()
virtual void SAL_CALL acquire() SAL_NOEXCEPT SAL_OVERRIDE
virtual void SAL_CALL dispose() SAL_OVERRIDE
css::uno::Type const & get()
virtual void describeFixedProperties(css::uno::Sequence< css::beans::Property > &_rProps) const
describes the properties provided by this class, or its respective derived class
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
virtual css::uno::Sequence< css::uno::Type > _getTypes()
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL disposing() override
const css::uno::Reference< css::uno::XComponentContext > & getContext() const
virtual css::uno::Any getPropertyDefaultByHandle(sal_Int32 nHandle) const override
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
void writeHelpTextCompatibly(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream)
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
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
void readHelpTextCompatibly(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream)
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 css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual ~OFileControlModel() override
virtual void SAL_CALL removeResetListener(const css::uno::Reference< css::form::XResetListener > &_rxListener) override
OFileControlModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
virtual void SAL_CALL disposing() override
virtual void SAL_CALL read(const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) override
virtual void SAL_CALL addResetListener(const css::uno::Reference< css::form::XResetListener > &_rxListener) override
virtual void SAL_CALL reset() override
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone() override
virtual css::uno::Any getPropertyDefaultByHandle(sal_Int32 _nHandle) const override
virtual css::uno::Any SAL_CALL queryAggregation(const css::uno::Type &_rType) override
virtual css::uno::Sequence< css::uno::Type > _getTypes() override
virtual void SAL_CALL write(const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const 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 getServiceName() override
::comphelper::OInterfaceContainerHelper3< css::form::XResetListener > m_aResetListeners
virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const css::uno::Any &rValue) override
#define DBG_ASSERT(sCon, aError)
constexpr OUStringLiteral PROPERTY_TABINDEX
constexpr OUStringLiteral PROPERTY_DEFAULT_TEXT
constexpr OUStringLiteral PROPERTY_TEXT
css::uno::Sequence< T > concatSequences(const css::uno::Sequence< T > &rS1, const Ss &... rSn)
bool tryPropertyValue(Any &_rConvertedValue, Any &_rOldValue, const Any &_rValueToSet, const Any &_rCurrentValue, const Type &_rExpectedType)
ListBox is a bit confusing / different from other form components, so here are a few notes:
#define PROPERTY_ID_DEFAULT_TEXT
#define PROPERTY_ID_TABINDEX
constexpr OUStringLiteral VCL_CONTROLMODEL_FILECONTROL
constexpr OUStringLiteral FRM_COMPONENT_FILECONTROL
constexpr OUStringLiteral FRM_SUN_COMPONENT_FILECONTROL