21#include <com/sun/star/lang/NoSupportException.hpp>
22#include <com/sun/star/report/GroupOn.hpp>
23#include <com/sun/star/report/KeepTogether.hpp>
26#include <core_resource.hxx>
39 ,
const uno::Reference< uno::XComponentContext >& _xContext)
45 osl_atomic_increment(&m_refCount);
47 m_xFunctions =
new OFunctions(
this,m_xContext);
49 osl_atomic_decrement( &m_refCount );
60OUString SAL_CALL
OGroup::getImplementationName( )
62 return "com.sun.star.comp.report.Group";
65uno::Sequence< OUString> OGroup::getSupportedServiceNames_Static()
71uno::Sequence< OUString> SAL_CALL OGroup::getSupportedServiceNames()
73 return getSupportedServiceNames_Static();
76sal_Bool SAL_CALL OGroup::supportsService(
const OUString& _rServiceName )
81void SAL_CALL OGroup::dispose()
83 GroupPropertySet::dispose();
84 cppu::WeakComponentImplHelperBase::dispose();
89void SAL_CALL OGroup::disposing()
93 ::comphelper::disposeComponent(m_xFunctions);
104void SAL_CALL OGroup::setSortAscending(
sal_Bool _sortascending )
112 return m_xHeader.is();
115void SAL_CALL OGroup::setHeaderOn(
sal_Bool _headeron )
117 if (
bool(_headeron) != m_xHeader.is() )
127 return m_xFooter.is();
130void SAL_CALL OGroup::setFooterOn(
sal_Bool _footeron )
132 if (
bool(_footeron) != m_xFooter.is() )
139uno::Reference< report::XSection > SAL_CALL OGroup::getHeader()
141 uno::Reference< report::XSection > xRet;
148 throw container::NoSuchElementException();
152uno::Reference< report::XSection > SAL_CALL OGroup::getFooter()
154 uno::Reference< report::XSection > xRet;
161 throw container::NoSuchElementException();
165::sal_Int16 SAL_CALL OGroup::getGroupOn()
171void SAL_CALL OGroup::setGroupOn( ::sal_Int16 _groupon )
173 if ( _groupon < report::GroupOn::DEFAULT || _groupon > report::GroupOn::INTERVAL )
180::sal_Int32 SAL_CALL OGroup::getGroupInterval()
186void SAL_CALL OGroup::setGroupInterval( ::sal_Int32 _groupinterval )
191::sal_Int16 SAL_CALL OGroup::getKeepTogether()
197void SAL_CALL OGroup::setKeepTogether( ::sal_Int16 _keeptogether )
199 if ( _keeptogether < report::KeepTogether::NO || _keeptogether > report::KeepTogether::WITH_FIRST_DETAIL )
206uno::Reference< report::XGroups > SAL_CALL OGroup::getGroups()
211OUString SAL_CALL OGroup::getExpression()
217void SAL_CALL OGroup::setExpression(
const OUString& _expression )
228void SAL_CALL OGroup::setStartNewColumn(
sal_Bool _startnewcolumn )
240void SAL_CALL OGroup::setResetPageNumber(
sal_Bool _resetpagenumber )
246uno::Reference< uno::XInterface > SAL_CALL OGroup::getParent( )
251void SAL_CALL OGroup::setParent(
const uno::Reference< uno::XInterface >& )
253 throw lang::NoSupportException();
256uno::Reference< beans::XPropertySetInfo > SAL_CALL OGroup::getPropertySetInfo( )
258 return GroupPropertySet::getPropertySetInfo();
261void SAL_CALL OGroup::setPropertyValue(
const OUString& aPropertyName,
const uno::Any& aValue )
263 GroupPropertySet::setPropertyValue( aPropertyName, aValue );
266uno::Any SAL_CALL OGroup::getPropertyValue(
const OUString& PropertyName )
268 return GroupPropertySet::getPropertyValue( PropertyName);
271void SAL_CALL OGroup::addPropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& xListener )
273 GroupPropertySet::addPropertyChangeListener( aPropertyName, xListener );
276void SAL_CALL OGroup::removePropertyChangeListener(
const OUString& aPropertyName,
const uno::Reference< beans::XPropertyChangeListener >& aListener )
278 GroupPropertySet::removePropertyChangeListener( aPropertyName, aListener );
281void SAL_CALL OGroup::addVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
283 GroupPropertySet::addVetoableChangeListener( PropertyName, aListener );
286void SAL_CALL OGroup::removeVetoableChangeListener(
const OUString& PropertyName,
const uno::Reference< beans::XVetoableChangeListener >& aListener )
288 GroupPropertySet::removeVetoableChangeListener( PropertyName, aListener );
291void OGroup::setSection(
const OUString& _sProperty
293 ,
const OUString& _sName
294 ,uno::Reference< report::XSection>& _member)
302 if ( _bOn && !_member.is() )
303 _member = OSection::createOSection(
this,
m_xContext);
305 ::comphelper::disposeComponent(_member);
308 _member->setName(_sName);
313uno::Reference< report::XFunctions > SAL_CALL OGroup::getFunctions()
Reference< XComponentContext > m_xContext
OGroup(const OGroup &)=delete
OUString RptResId(TranslateId aId)
void set(css::uno::UnoInterfaceReference const &value)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
::cppu::WeakComponentImplHelper< css::report::XGroup, css::lang::XServiceInfo > GroupBase
void throwIllegallArgumentException(std::u16string_view _sTypeName, const uno::Reference< uno::XInterface > &ExceptionContext_, sal_Int16 ArgumentPosition_)
::cppu::PropertySetMixin< css::report::XGroup > GroupPropertySet
IMPLEMENT_FORWARD_XINTERFACE2(ChildWindowPane, ChildWindowPaneInterfaceBase, Pane)
uno::Sequence< beans::Property > m_aProps
constexpr OUStringLiteral PROPERTY_EXPRESSION
constexpr OUStringLiteral PROPERTY_STARTNEWCOLUMN
constexpr OUStringLiteral PROPERTY_GROUPINTERVAL
constexpr OUStringLiteral SERVICE_GROUP
constexpr OUStringLiteral PROPERTY_RESETPAGENUMBER
constexpr OUStringLiteral PROPERTY_HEADERON
constexpr OUStringLiteral PROPERTY_SORTASCENDING
constexpr OUStringLiteral PROPERTY_FOOTERON
constexpr OUStringLiteral PROPERTY_KEEPTOGETHER
constexpr OUStringLiteral PROPERTY_GROUPON
Reference< XComponentContext > _xContext