19#ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_SECTION_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_SECTION_HXX
22#include <com/sun/star/report/XSection.hpp>
28#include <com/sun/star/uno/XComponentContext.hpp>
29#include <com/sun/star/drawing/XDrawPage.hpp>
30#include <com/sun/star/drawing/XShapeGrouper.hpp>
31#include <com/sun/star/drawing/XShapes.hpp>
32#include <com/sun/star/form/XFormsSupplier2.hpp>
33#include <com/sun/star/lang/XUnoTunnel.hpp>
34#include <com/sun/star/lang/XServiceInfo.hpp>
38 typedef ::cppu::WeakComponentImplHelper
39 < css::report::XSection
40 , css::lang::XServiceInfo
41 , css::lang::XUnoTunnel
43 , css::drawing::XDrawPage
44 , css::drawing::XShapeGrouper
46 , css::form::XFormsSupplier2
59 css::uno::WeakReference< css::report::XGroup >
m_xGroup;
78 template <
typename T>
void set(
const OUString& _sProperty
85 if ( _member !=
Value )
87 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
93 void set(
const OUString& _sProperty
100 if ( _member !=
Value )
102 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
124 virtual void SAL_CALL
disposing()
override;
126 OSection(
const css::uno::Reference< css::report::XReportDefinition >& xParentDef
127 ,
const css::uno::Reference< css::report::XGroup >& xParentGroup
128 ,
const css::uno::Reference< css::uno::XComponentContext >& context,
129 css::uno::Sequence< OUString>
const&);
131 static css::uno::Reference< css::report::XSection>
132 createOSection(
const css::uno::Reference< css::report::XReportDefinition >& _xParent
133 ,
const css::uno::Reference< css::uno::XComponentContext >& context,
bool _bPageSection=
false);
134 static css::uno::Reference< css::report::XSection>
136 ,
const css::uno::Reference< css::uno::XComponentContext >& context);
149 virtual
void SAL_CALL
setPropertyValue( const OUString& aPropertyName, const css::
uno::
Any& aValue ) override;
159 virtual OUString SAL_CALL
getName() override;
160 virtual
void SAL_CALL
setName( const OUString& _name ) override;
161 virtual ::sal_uInt32 SAL_CALL
getHeight() override;
162 virtual
void SAL_CALL
setHeight( ::sal_uInt32 _height ) override;
164 virtual
void SAL_CALL
setBackColor( ::sal_Int32 _backgroundcolor ) override;
170 virtual
void SAL_CALL
setForceNewPage( ::sal_Int16 _forcenewpage ) override;
172 virtual
void SAL_CALL
setNewRowOrCol( ::sal_Int16 _newroworcol ) override;
194 virtual
void SAL_CALL
add( const css::
uno::
Reference< css::drawing::XShape >& xShape ) override;
195 virtual
void SAL_CALL
remove( const css::
uno::
Reference< css::drawing::XShape >& xShape ) override;
197 virtual css::
uno::
Reference< css::drawing::XShapeGroup > SAL_CALL
group( const css::
uno::
Reference< css::drawing::XShapes >& xShapes ) override;
198 virtual
void SAL_CALL
ungroup( const css::
uno::
Reference< css::drawing::XShapeGroup >& aGroup ) override;
206 virtual ::sal_Int32 SAL_CALL
getCount( ) override;
212 virtual
void SAL_CALL
dispose() override;
215 cppu::WeakComponentImplHelperBase::addEventListener(aListener);
217 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener > & aListener)
override
219 cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
223 virtual sal_Int64 SAL_CALL
getSomething(
const css::uno::Sequence< sal_Int8 >& aIdentifier )
override;
void prepareSet(rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners)
virtual ::sal_Int32 SAL_CALL getCount() override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual ::sal_Int16 SAL_CALL getForceNewPage() override
virtual void SAL_CALL dispose() override
virtual css::uno::Reference< css::report::XReportDefinition > SAL_CALL getReportDefinition() override
virtual css::uno::Reference< css::report::XGroup > SAL_CALL getGroup() override
css::uno::WeakReference< css::report::XReportDefinition > m_xReportDefinition
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL setCanShrink(sal_Bool _canshrink) override
css::uno::Reference< css::drawing::XShapeGrouper > m_xDrawPage_ShapeGrouper
virtual OUString SAL_CALL getName() override
virtual sal_Bool SAL_CALL getKeepTogether() override
css::uno::WeakReference< css::report::XGroup > m_xGroup
virtual sal_Bool SAL_CALL hasElements() override
static css::uno::Reference< css::report::XSection > createOSection(const css::uno::Reference< css::report::XGroup > &_xParent, const css::uno::Reference< css::uno::XComponentContext > &context)
OUString m_sConditionalPrintExpression
void checkNotPageHeaderFooter()
checks if this section is either the page header or footer and if so it throws an UnknownPropertyExce...
css::uno::Reference< css::form::XFormsSupplier2 > m_xDrawPage_FormSupplier
void set(const OUString &_sProperty, const T &Value, T &_member)
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
::sal_Int32 m_nBackgroundColor
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
OSection & operator=(const OSection &)=delete
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
::sal_Int16 m_nNewRowOrCol
virtual sal_Bool SAL_CALL hasForms() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
virtual void SAL_CALL addContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL add(const css::uno::Reference< css::drawing::XShape > &xShape) override
void set(const OUString &_sProperty, bool Value, bool &_member)
virtual ::sal_Int16 SAL_CALL getNewRowOrCol() override
virtual void SAL_CALL setName(const OUString &_name) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual void SAL_CALL setHeight(::sal_uInt32 _height) override
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual void SAL_CALL ungroup(const css::uno::Reference< css::drawing::XShapeGroup > &aGroup) override
OSection(const css::uno::Reference< css::report::XReportDefinition > &xParentDef, const css::uno::Reference< css::report::XGroup > &xParentGroup, const css::uno::Reference< css::uno::XComponentContext > &context, css::uno::Sequence< OUString > const &)
static css::uno::Reference< css::report::XSection > createOSection(const css::uno::Reference< css::report::XReportDefinition > &_xParent, const css::uno::Reference< css::uno::XComponentContext > &context, bool _bPageSection=false)
virtual css::uno::Reference< css::container::XNameContainer > SAL_CALL getForms() override
static css::uno::Sequence< OUString > getSupportedServiceNames_Static()
virtual void SAL_CALL setConditionalPrintExpression(const OUString &_conditionalprintexpression) override
virtual sal_Bool SAL_CALL getVisible() override
virtual void SAL_CALL setVisible(sal_Bool _visible) override
virtual void SAL_CALL setRepeatSection(sal_Bool _repeatsection) override
virtual void SAL_CALL setBackTransparent(sal_Bool _backtransparent) override
void notifyElementAdded(const css::uno::Reference< css::drawing::XShape > &xShape)
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL setForceNewPage(::sal_Int16 _forcenewpage) override
virtual css::uno::Type SAL_CALL getElementType() override
::comphelper::OInterfaceContainerHelper3< css::container::XContainerListener > m_aContainerListeners
virtual ::sal_uInt32 SAL_CALL getHeight() override
virtual css::uno::Any SAL_CALL getByIndex(::sal_Int32 Index) override
virtual void SAL_CALL setKeepTogether(sal_Bool _keeptogether) override
virtual void SAL_CALL disposing() override
this function is called upon disposing the component
virtual ::sal_Int32 SAL_CALL getBackColor() override
virtual sal_Bool SAL_CALL getBackTransparent() override
::sal_Int16 m_nForceNewPage
OSection(const OSection &)=delete
css::uno::Reference< css::lang::XUnoTunnel > m_xDrawPage_Tunnel
css::uno::Reference< css::drawing::XDrawPage > m_xDrawPage
virtual void SAL_CALL removeContainerListener(const css::uno::Reference< css::container::XContainerListener > &xListener) override
virtual void SAL_CALL setBackColor(::sal_Int32 _backgroundcolor) override
virtual css::uno::Reference< css::drawing::XShapeGroup > SAL_CALL group(const css::uno::Reference< css::drawing::XShapes > &xShapes) override
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual void SAL_CALL setNewRowOrCol(::sal_Int16 _newroworcol) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
void notifyElementRemoved(const css::uno::Reference< css::drawing::XShape > &xShape)
virtual sal_Bool SAL_CALL getRepeatSection() override
virtual void SAL_CALL remove(const css::uno::Reference< css::drawing::XShape > &xShape) override
virtual ~OSection() override
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL createEnumeration() override
virtual OUString SAL_CALL getImplementationName() override
virtual sal_Int64 SAL_CALL getSomething(const css::uno::Sequence< sal_Int8 > &aIdentifier) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
virtual OUString SAL_CALL getConditionalPrintExpression() override
virtual sal_Bool SAL_CALL getCanGrow() override
virtual void SAL_CALL setCanGrow(sal_Bool _cangrow) override
static const css::uno::Sequence< sal_Int8 > & getUnoTunnelId()
virtual sal_Bool SAL_CALL getCanShrink() override
::cppu::PropertySetMixin< css::report::XSection > SectionPropertySet
::cppu::WeakComponentImplHelper< css::report::XSection, css::lang::XServiceInfo, css::lang::XUnoTunnel, css::drawing::XDrawPage, css::drawing::XShapeGrouper, css::form::XFormsSupplier2 > SectionBase
#define DECLARE_XINTERFACE()