diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-06 15:26:28 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-04-08 13:40:11 +0000 |
commit | 6acc6c011d3afd6834efeee1b2efe43652a86f2e (patch) | |
tree | 78ec792c75ed8e23605982d68392f8a1cd22c6b5 /include | |
parent | 204d1093d4954596cc7d7578e0630648f1f678f5 (diff) |
text:p is not allowed as child element of draw:frame
Regression from #i118485#.
Change-Id: Ib242ca1417f46b731d62d117132cbed6c02448fb
Reviewed-on: https://gerrit.libreoffice.org/15173
Tested-by: Jenkins <ci@libreoffice.org>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/xmloff/shapeexport.hxx | 3 | ||||
-rw-r--r-- | include/xmloff/txtparae.hxx | 30 |
2 files changed, 23 insertions, 10 deletions
diff --git a/include/xmloff/shapeexport.hxx b/include/xmloff/shapeexport.hxx index 64538e2a6fba..b957022d5e0e 100644 --- a/include/xmloff/shapeexport.hxx +++ b/include/xmloff/shapeexport.hxx @@ -38,6 +38,7 @@ #include <xmloff/xmlexppr.hxx> #include <xmloff/animexp.hxx> #include <xmloff/families.hxx> +#include <xmloff/txtparae.hxx> #include <o3tl/typed_flags_set.hxx> #include <xmloff/table/XMLTableExport.hxx> @@ -216,7 +217,7 @@ private: SAL_DLLPRIVATE void ImpExportNewTrans_DecomposeAndRefPoint(const ::basegfx::B2DHomMatrix& rMat, ::basegfx::B2DTuple& rTRScale, double& fTRShear, double& fTRRotate, ::basegfx::B2DTuple& rTRTranslate, com::sun::star::awt::Point* pRefPoint); SAL_DLLPRIVATE void ImpExportNewTrans_FeaturesAndWrite(::basegfx::B2DTuple& rTRScale, double fTRShear, double fTRRotate, ::basegfx::B2DTuple& rTRTranslate, const XMLShapeExportFlags nFeatures); SAL_DLLPRIVATE bool ImpExportPresentationAttributes( const com::sun::star::uno::Reference< com::sun::star::beans::XPropertySet >& xPropSet, const OUString& rClass ); - SAL_DLLPRIVATE void ImpExportText( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape ); + SAL_DLLPRIVATE void ImpExportText( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape, TextPNS eExtensionNS = TextPNS::ODF ); SAL_DLLPRIVATE void ImpExportEvents( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape ); SAL_DLLPRIVATE void ImpExportDescription( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape ); // #i68101# SAL_DLLPRIVATE void ImpExportGluePoints( const com::sun::star::uno::Reference< com::sun::star::drawing::XShape >& xShape ); diff --git a/include/xmloff/txtparae.hxx b/include/xmloff/txtparae.hxx index ca0c3b43f3b7..00dc25e386be 100644 --- a/include/xmloff/txtparae.hxx +++ b/include/xmloff/txtparae.hxx @@ -61,8 +61,15 @@ namespace xmloff { class OFormLayerXMLExport; class BoundFrameSets; + } +enum class TextPNS +{ + ODF, + EXTENSION +}; + class XMLOFF_DLLPUBLIC XMLTextParagraphExport : public XMLStyleExport { struct Impl; @@ -282,14 +289,14 @@ protected: void exportText( const ::com::sun::star::uno::Reference < ::com::sun::star::text::XText > & rText, - bool bAutoStyles, bool bProgress, bool bExportParagraph ); + bool bAutoStyles, bool bProgress, bool bExportParagraph, TextPNS eExtensionNS = TextPNS::ODF ); void exportText( const ::com::sun::star::uno::Reference < ::com::sun::star::text::XText > & rText, const ::com::sun::star::uno::Reference < ::com::sun::star::text::XTextSection > & rBaseSection, - bool bAutoStyles, bool bProgress, bool bExportParagraph ); + bool bAutoStyles, bool bProgress, bool bExportParagraph, TextPNS eExtensionNS = TextPNS::ODF ); bool exportTextContentEnumeration( const ::com::sun::star::uno::Reference < @@ -301,13 +308,16 @@ protected: bool bExportParagraph = true, const ::com::sun::star::uno::Reference < ::com::sun::star::beans::XPropertySet > *pRangePropSet = 0, - bool bExportLevels = true ); + bool bExportLevels = true, + TextPNS eExtensionNS = TextPNS::ODF); void exportParagraph( const ::com::sun::star::uno::Reference < ::com::sun::star::text::XTextContent > & rTextContent, bool bAutoStyles, bool bProgress, bool bExportParagraph, - MultiPropertySetHelper& rPropSetHelper); + MultiPropertySetHelper& rPropSetHelper, + TextPNS eExtensionNS = TextPNS::ODF); + virtual void exportTable( const ::com::sun::star::uno::Reference < ::com::sun::star::text::XTextContent > & rTextContent, @@ -568,7 +578,8 @@ public: // This method exports the given OUString void exportText( const OUString& rText, - bool& rPrevCharWasSpace ); + bool& rPrevCharWasSpace, + TextPNS eExtensionNS = TextPNS::ODF); // This method collects all automatic styles for the given XText void collectTextAutoStyles( @@ -610,9 +621,9 @@ public: const ::com::sun::star::uno::Reference < ::com::sun::star::text::XText > & rText, bool bIsProgress = false, - bool bExportParagraph = true) + bool bExportParagraph = true, TextPNS eExtensionNS = TextPNS::ODF) { - exportText( rText, false, bIsProgress, bExportParagraph ); + exportText( rText, false, bIsProgress, bExportParagraph, eExtensionNS ); } void exportText( @@ -621,9 +632,10 @@ public: const ::com::sun::star::uno::Reference < ::com::sun::star::text::XTextSection > & rBaseSection, bool bIsProgress = false, - bool bExportParagraph = true) + bool bExportParagraph = true, + TextPNS eExtensionNS = TextPNS::ODF) { - exportText( rText, rBaseSection, false, bIsProgress, bExportParagraph ); + exportText( rText, rBaseSection, false, bIsProgress, bExportParagraph, eExtensionNS ); } void exportFramesBoundToPage( bool bIsProgress = false ) |