22#include <osl/diagnose.h>
29 : m_pTraverseReport(_pTraverseReport)
36 OSL_ENSURE(_xReportDefinition.is(),
"ReportDefinition is NULL!");
37 if (!_xReportDefinition.is())
42 if (_xReportDefinition->getPageHeaderOn())
44 if (_xReportDefinition->getReportHeaderOn())
47 uno::Reference<report::XGroups> xGroups = _xReportDefinition->getGroups();
49 const sal_Int32
nCount = xGroups->getCount();
53 uno::Reference<report::XGroup> xGroup(xGroups->getByIndex(i), uno::UNO_QUERY);
56 if (xGroup->getHeaderOn())
64 uno::Reference<report::XGroup> xGroup(xGroups->getByIndex(i), uno::UNO_QUERY);
65 if (xGroup->getFooterOn())
69 if (_xReportDefinition->getPageFooterOn())
71 if (_xReportDefinition->getReportFooterOn())
77 OSL_ENSURE(_xGroup.is(),
"Group is NULL!");
82 if (_xGroup->getHeaderOn())
84 if (_xGroup->getFooterOn())
virtual void traverseReport(const css::uno::Reference< css::report::XReportDefinition > &_xReport)=0
virtual void traverseGroupFunctions(const css::uno::Reference< css::report::XFunctions > &_xFunctions)=0
virtual void traversePageFooter(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traverseDetail(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traverseGroupHeader(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traverseGroups(const css::uno::Reference< css::report::XGroups > &_xGroups)=0
virtual void traverseGroup(const css::uno::Reference< css::report::XGroup > &_xGroup)=0
virtual void traverseReportHeader(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traversePageHeader(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traverseGroupFooter(const css::uno::Reference< css::report::XSection > &_xSection)=0
virtual void traverseReportFunctions(const css::uno::Reference< css::report::XFunctions > &_xFunctions)=0
virtual void traverseReportFooter(const css::uno::Reference< css::report::XSection > &_xSection)=0
ITraverseReport * m_pTraverseReport
OReportVisitor(ITraverseReport *_pTraverseReport)
void start(const css::uno::Reference< css::report::XReportDefinition > &_xReportDefinition)