20#ifndef INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLEXPORT_HXX
21#define INCLUDED_REPORTDESIGN_SOURCE_FILTER_XML_XMLEXPORT_HXX
23#include <com/sun/star/container/XNamed.hpp>
24#include <com/sun/star/document/XFilter.hpp>
25#include <com/sun/star/document/XImporter.hpp>
26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/report/XReportDefinition.hpp>
28#include <com/sun/star/report/XSection.hpp>
29#include <com/sun/star/report/XReportControlModel.hpp>
30#include <com/sun/star/report/XFormattedField.hpp>
31#include <com/sun/star/lang/XComponent.hpp>
36#include <com/sun/star/uno/XComponentContext.hpp>
42using namespace css::uno;
43using namespace css::container;
44using namespace css::lang;
45using namespace css::beans;
46using namespace css::document;
47using namespace css::text;
48using namespace css::report;
49using namespace css::io;
50using namespace css::xml::sax;
64 Reference<XReportComponent>
const & _xElement = Reference<XReportComponent>()) :
79 typedef ::std::map< Reference<XPropertySet> , std::vector<OUString>>
TGridStyleMap;
80 typedef ::std::vector< TCell >
TRow;
81 typedef ::std::vector< ::std::pair< bool, TRow > >
TGrid;
105 void exportReport(
const Reference<XReportDefinition>& _xReportDefinition);
110 void exportComponent(
const Reference<XReportComponent>& _xReportComponent);
111 void exportGroup(
const Reference<XReportDefinition>& _xReportDefinition,sal_Int32 _nPos,
bool _bExportAutoStyle =
false);
113 void exportSection(
const Reference<XSection>& _xProp,
bool bHeader =
false);
115 void exportShapes(
const Reference< XSection>& _xSection,
bool _bAddParagraph =
true);
120 void exportAutoStyle(XPropertySet* _xProp,
const Reference<XFormattedField>& _xParentFormattedField = Reference<XFormattedField>());
125 void collectStyleNames(
XmlStyleFamily _nFamily,const ::std::vector< sal_Int32>& _aSize, const ::std::vector< sal_Int32>& _aSizeAutoGrow, std::vector<OUString>& _rStyleNames);
126 void exportParagraph(
const Reference< XReportControlModel >& _xReportElement);
127 bool exportFormula(enum ::xmloff::token::XMLTokenEnum eName,
const OUString& _sFormula);
146 ORptExport(
const Reference< XComponentContext >& _rxContext, OUString
const & implementationName,
SvXMLExportFlags nExportFlag);
149 virtual void SAL_CALL
setSourceDocument(
const css::uno::Reference< css::lang::XComponent >& xDoc )
override;
::std::map< Reference< XPropertySet >,OUString > TPropertyStyleMap
rtl::Reference< SvXMLExportPropertyMapper > m_xRowStylesExportPropertySetMapper
rtl::Reference< SvXMLExportPropertyMapper > m_xCellStylesExportPropertySetMapper
rtl::Reference< XMLPropertySetMapper > m_xCellStylesPropertySetMapper
const Reference< XReportDefinition > & getReportDefinition() const
::std::vector< ::std::pair< bool, TRow > > TGrid
const rtl::Reference< XMLPropertySetMapper > & GetCellStylePropertyMapper() const
void exportComponent(const Reference< XReportComponent > &_xReportComponent)
void collectComponentStyles()
virtual void ExportStyles_(bool bUsed) override
virtual void ExportAutoStyles_() override
virtual void ExportFontDecls_() override
virtual ~ORptExport() override
virtual void SAL_CALL setSourceDocument(const css::uno::Reference< css::lang::XComponent > &xDoc) override
Reference< XReportDefinition > m_xReportDefinition
ORptExport(const Reference< XComponentContext > &_rxContext, OUString const &implementationName, SvXMLExportFlags nExportFlag)
void exportContainer(const Reference< XSection > &_xSection)
::std::map< Reference< XPropertySet >,TGrid > TSectionsGrid
virtual void ExportContent_() override
TGroupFunctionMap m_aGroupFunctionMap
virtual XMLShapeExport * CreateShapeExport() override
static OUString convertFormula(const OUString &_sFormula)
void exportSection(const Reference< XSection > &_xProp, bool bHeader=false)
rtl::Reference< XMLPropertyHandlerFactory > m_xPropHdlFactory
void exportGroupsExpressionAsFunction(const Reference< XGroups > &_xGroups)
virtual SvXMLAutoStylePoolP * CreateAutoStylePool() override
void exportFormatConditions(const Reference< XReportControlModel > &_xReportElement)
TSectionsGrid m_aSectionsGrid
TPropertyStyleMap m_aAutoStyleNames
void exportShapes(const Reference< XSection > &_xSection, bool _bAddParagraph=true)
void exportGroup(const Reference< XReportDefinition > &_xReportDefinition, sal_Int32 _nPos, bool _bExportAutoStyle=false)
void exportReportAttributes(const Reference< XReportDefinition > &_xReport)
<element name="office:report">
::std::map< Reference< XPropertySet >, std::vector< OUString > > TGridStyleMap
::std::map< Reference< XGroup >,Reference< XFunction > > TGroupFunctionMap
void exportReport(const Reference< XReportDefinition > &_xReportDefinition)
virtual void ExportMasterStyles_() override
rtl::Reference< SvXMLExportPropertyMapper > m_xParaPropMapper
void exportSectionAutoStyle(const Reference< XSection > &_xProp)
void exportReportComponentAutoStyles(const Reference< XSection > &_xProp)
TGridStyleMap m_aRowStyleNames
void exportMasterDetailFields(const Reference< XReportComponent > &_xReportComponent)
void exportStyleName(XPropertySet *_xProp, comphelper::AttributeList &_rAtt, const OUString &_sName)
::std::pair< OUString,OUString > TStringPair
void exportParagraph(const Reference< XReportControlModel > &_xReportElement)
bool exportFormula(enum ::xmloff::token::XMLTokenEnum eName, const OUString &_sFormula)
void collectStyleNames(XmlStyleFamily _nFamily, const ::std::vector< sal_Int32 > &_aSize, std::vector< OUString > &_rStyleNames)
void exportAutoStyle(XPropertySet *_xProp, const Reference< XFormattedField > &_xParentFormattedField=Reference< XFormattedField >())
::std::vector< TCell > TRow
TGridStyleMap m_aColumnStyleNames
rtl::Reference< SvXMLExportPropertyMapper > m_xTableStylesExportPropertySetMapper
void exportReportElement(const Reference< XReportControlModel > &_xReportElement)
void exportFunctions(const Reference< XIndexAccess > &_xFunctions)
void exportFunction(const Reference< XFunction > &_xFunction)
<ref name="rpt-function">
virtual void SetBodyAttributes() override
void exportTableColumns(const Reference< XSection > &_xSection)
rtl::Reference< SvXMLExportPropertyMapper > m_xColumnStylesExportPropertySetMapper
TCell(sal_Int32 _nColSpan, sal_Int32 _nRowSpan, Reference< XReportComponent > const &_xElement=Reference< XReportComponent >())
Reference< XReportComponent > xElement