19#ifndef INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_GROUP_HXX
20#define INCLUDED_REPORTDESIGN_SOURCE_CORE_INC_GROUP_HXX
22#include <com/sun/star/report/XGroup.hpp>
26#include <com/sun/star/uno/XComponentContext.hpp>
29#include <com/sun/star/lang/XServiceInfo.hpp>
33 typedef ::cppu::WeakComponentImplHelper< css::report::XGroup
45 css::uno::Reference< css::uno::XComponentContext >
m_xContext;
46 css::uno::WeakReference< css::report::XGroups >
m_xParent;
47 css::uno::Reference< css::report::XSection>
m_xHeader;
48 css::uno::Reference< css::report::XSection>
m_xFooter;
56 template <
typename T>
void set(
const OUString& _sProperty
63 if ( _member !=
Value )
65 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
71 void set(
const OUString& _sProperty
78 if ( _member !=
Value )
80 prepareSet(_sProperty, css::uno::Any(_member), css::uno::Any(
Value), &l);
88 ,
const OUString& _sName
89 ,css::uno::Reference< css::report::XSection>& _member);
99 virtual void SAL_CALL
disposing()
override;
101 OGroup(
const css::uno::Reference< css::report::XGroups >& _xParent
102 ,
const css::uno::Reference< css::uno::XComponentContext >& context);
115 virtual
void SAL_CALL
setPropertyValue( const OUString& aPropertyName, const css::
uno::
Any& aValue ) override;
131 virtual ::sal_Int16 SAL_CALL
getGroupOn() override;
132 virtual
void SAL_CALL
setGroupOn( ::sal_Int16 _groupon ) override;
134 virtual
void SAL_CALL
setGroupInterval( ::sal_Int32 _groupinterval ) override;
136 virtual
void SAL_CALL
setKeepTogether( ::sal_Int16 _keeptogether ) override;
139 virtual
void SAL_CALL
setExpression( const OUString& _expression ) override;
153 virtual
void SAL_CALL
dispose() override;
156 cppu::WeakComponentImplHelperBase::addEventListener(aListener);
158 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener > & aListener)
override
160 cppu::WeakComponentImplHelperBase::removeEventListener(aListener);
void prepareSet(rtl::OUString const &propertyName, css::uno::Any const &oldValue, css::uno::Any const &newValue, BoundListeners *boundListeners)
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
css::uno::Reference< css::report::XSection > m_xHeader
virtual void SAL_CALL setKeepTogether(::sal_Int16 _keeptogether) override
virtual void SAL_CALL setResetPageNumber(sal_Bool _resetpagenumber) override
virtual sal_Bool SAL_CALL getFooterOn() override
virtual css::uno::Reference< css::report::XSection > SAL_CALL getHeader() override
virtual void SAL_CALL disposing() override
this function is called upon disposing the component
virtual sal_Bool SAL_CALL getResetPageNumber() override
virtual void SAL_CALL setFooterOn(sal_Bool _footeron) override
virtual void SAL_CALL dispose() override
OGroup(const css::uno::Reference< css::report::XGroups > &_xParent, const css::uno::Reference< css::uno::XComponentContext > &context)
virtual void SAL_CALL setExpression(const OUString &_expression) override
virtual void SAL_CALL addPropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
css::uno::Reference< css::report::XSection > m_xFooter
void set(const OUString &_sProperty, bool Value, bool &_member)
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
OGroup & operator=(const OGroup &)=delete
virtual OUString SAL_CALL getExpression() override
virtual css::uno::Reference< css::report::XFunctions > SAL_CALL getFunctions() override
virtual ::sal_Int16 SAL_CALL getKeepTogether() override
virtual css::uno::Reference< css::report::XSection > SAL_CALL getFooter() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL addVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual void SAL_CALL setParent(const css::uno::Reference< css::uno::XInterface > &Parent) override
void set(const OUString &_sProperty, const T &Value, T &_member)
void setSection(const OUString &_sProperty, bool _bOn, const OUString &_sName, css::uno::Reference< css::report::XSection > &_member)
virtual ::sal_Int16 SAL_CALL getGroupOn() override
virtual css::uno::Reference< css::report::XGroups > SAL_CALL getGroups() override
virtual void SAL_CALL setGroupInterval(::sal_Int32 _groupinterval) override
virtual void SAL_CALL removeVetoableChangeListener(const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
virtual sal_Bool SAL_CALL getSortAscending() override
css::uno::WeakReference< css::report::XGroups > m_xParent
virtual void SAL_CALL setStartNewColumn(sal_Bool _startnewcolumn) override
virtual void SAL_CALL removePropertyChangeListener(const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
virtual OUString SAL_CALL getImplementationName() override
virtual ::sal_Int32 SAL_CALL getGroupInterval() override
virtual void SAL_CALL setHeaderOn(sal_Bool _headeron) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL setGroupOn(::sal_Int16 _groupon) override
virtual void SAL_CALL setSortAscending(sal_Bool _sortascending) override
css::uno::Reference< css::report::XFunctions > m_xFunctions
virtual ~OGroup() override
virtual sal_Bool SAL_CALL getStartNewColumn() override
OGroup(const OGroup &)=delete
::rptshared::GroupProperties m_aProps
virtual void SAL_CALL setPropertyValue(const OUString &aPropertyName, const css::uno::Any &aValue) override
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL getParent() override
virtual css::uno::Any SAL_CALL getPropertyValue(const OUString &PropertyName) override
static css::uno::Sequence< OUString > getSupportedServiceNames_Static()
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Bool SAL_CALL getHeaderOn() override
::cppu::WeakComponentImplHelper< css::report::XGroup, css::lang::XServiceInfo > GroupBase
::cppu::PropertySetMixin< css::report::XGroup > GroupPropertySet
struct for the group properties
#define DECLARE_XINTERFACE()