25#include <com/sun/star/form/FormComponentType.hpp>
48 m_nClassId = FormComponentType::GROUPBOX;
52OGroupBoxModel::OGroupBoxModel(
const OGroupBoxModel* _pOriginal,
const Reference<XComponentContext>& _rxFactory )
53 :OControlModel( _pOriginal, _rxFactory )
59css::uno::Sequence<OUString> SAL_CALL OGroupBoxModel::getSupportedServiceNames()
61 css::uno::Sequence<OUString> aSupported = OControlModel::getSupportedServiceNames();
62 aSupported.realloc(aSupported.getLength() + 2);
64 OUString* pArray = aSupported.getArray();
71OGroupBoxModel::~OGroupBoxModel()
76css::uno::Reference< css::util::XCloneable > SAL_CALL OGroupBoxModel::createClone()
79 pClone->clonedFrom(
this);
84void OGroupBoxModel::describeAggregateProperties( Sequence< Property >& _rAggregateProps )
const
86 OControlModel::describeAggregateProperties( _rAggregateProps );
92OUString SAL_CALL OGroupBoxModel::getServiceName()
98void SAL_CALL OGroupBoxModel::write(
const Reference< XObjectOutputStream>& _rxOutStream)
100 OControlModel::write(_rxOutStream);
103 _rxOutStream->writeShort(0x0002);
104 writeHelpTextCompatibly(_rxOutStream);
108void SAL_CALL OGroupBoxModel::read(
const Reference< XObjectInputStream>& _rxInStream)
110 OControlModel::read( _rxInStream );
113 sal_uInt16
nVersion = _rxInStream->readShort();
114 DBG_ASSERT(
nVersion > 0,
"OGroupBoxModel::read : version 0 ? this should never have been written !");
117 readHelpTextCompatibly(_rxInStream);
121 OSL_FAIL(
"OGroupBoxModel::read : unknown version !");
128OGroupBoxControl::OGroupBoxControl(
const Reference<XComponentContext>& _rxFactory)
137 aSupported.realloc(aSupported.getLength() + 2);
139 OUString* pArray = aSupported.getArray();
147extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
149 css::uno::Sequence<css::uno::Any>
const &)
155extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
157 css::uno::Sequence<css::uno::Any>
const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_OGroupBoxControl_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_form_OGroupBoxModel_get_implementation(css::uno::XComponentContext *component, css::uno::Sequence< css::uno::Any > const &)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OGroupBoxModel(const css::uno::Reference< css::uno::XComponentContext > &_rxFactory)
#define DBG_ASSERT(sCon, aError)
constexpr OUStringLiteral PROPERTY_TABSTOP
void RemoveProperty(Sequence< Property > &_rProps, const OUString &_rPropName)
ListBox is a bit confusing / different from other form components, so here are a few notes:
constexpr OUStringLiteral FRM_SUN_CONTROL_GROUPBOX
constexpr OUStringLiteral STARDIV_ONE_FORM_CONTROL_GROUPBOX
constexpr OUStringLiteral VCL_CONTROL_GROUPBOX
constexpr OUStringLiteral FRM_COMPONENT_GROUPBOX
constexpr OUStringLiteral FRM_SUN_COMPONENT_GROUPBOX
constexpr OUStringLiteral VCL_CONTROLMODEL_GROUPBOX