29 #include <com/sun/star/report/XReportControlModel.hpp>
31 #include <osl/diagnose.h>
41 ,
const Reference< XReportComponent > & _xComponent
42 ,OXMLTable* _pContainer
43 ,OXMLCell* _pCellParent) :
44 OXMLReportElementBase( rImport,_xComponent,_pContainer)
46 ,m_pCellParent(_pCellParent)
48 ,m_bContainsShape(
false)
59 const Reference< XFastAttributeList > & xAttrList )
118 uno::Reference< report::XReportControlModel > xFakeModel(
m_xFake,uno::UNO_QUERY);
119 uno::Reference< report::XReportControlModel > xComponentModel(
m_xReportComponent,uno::UNO_QUERY);
120 if ( !(xComponentModel.is() && xFakeModel.is()) )
123 xComponentModel->setPrintWhenGroupChange(xFakeModel->getPrintWhenGroupChange());
124 const sal_Int32
nCount = xFakeModel->getCount();
127 for (sal_Int32
i = 0;
i < nCount ; ++
i)
129 uno::Reference< report::XFormatCondition > xCond(xFakeModel->getByIndex(
i),uno::UNO_QUERY);
130 uno::Reference< report::XFormatCondition > xNewCond = xComponentModel->createFormatCondition();
131 ::comphelper::copyProperties(xCond, xNewCond);
132 xComponentModel->insertByIndex(xComponentModel->getCount(),
uno::Any(xNewCond));
135 catch(uno::Exception&)
137 OSL_FAIL(
"Can not access format condition!");
SvXMLImport & GetImport()
virtual ~OXMLSubDocument() override
virtual void SAL_CALL endFastElement(sal_Int32 nElement) override
static OUString getPrefixAndNameFromToken(sal_Int32 nToken)
::std::vector< OUString > m_aDetailFields
void Increment(sal_Int32 nInc=1)
void setContainsShape(bool _bContainsShapes)
ProgressBarHelper * GetProgressBarHelper()
sal_Int32 m_nCurrentCount
virtual void addMasterDetailPair(const ::std::pair< OUString, OUString > &_aPair) override
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
css::uno::Reference< css::report::XReportComponent > m_xReportComponent
#define XML_ELEMENT(prefix, name)
const css::uno::Reference< css::report::XSection > & getSection() const
#define PROGRESS_BAR_STEP
#define SAL_WARN(area, stream)
static SvXMLShapeContext * CreateGroupChildContext(SvXMLImport &rImport, sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList, css::uno::Reference< css::drawing::XShapes > const &rShapes, bool bTemporaryShape=false)
::std::vector< OUString > m_aMasterFields
OXMLSubDocument(const OXMLSubDocument &)=delete
css::uno::Reference< css::report::XReportComponent > m_xFake
virtual css::uno::Reference< css::xml::sax::XFastContextHandler > SAL_CALL createFastChildContext(sal_Int32 nElement, const css::uno::Reference< css::xml::sax::XFastAttributeList > &xAttrList) override
bool m_bDetectedRangeSegmentation false