diff options
Diffstat (limited to 'writerfilter/source/dmapper/DomainMapper_Impl.hxx')
-rw-r--r-- | writerfilter/source/dmapper/DomainMapper_Impl.hxx | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.hxx b/writerfilter/source/dmapper/DomainMapper_Impl.hxx index d7fb9b4e8c40..911d2e8ee100 100644 --- a/writerfilter/source/dmapper/DomainMapper_Impl.hxx +++ b/writerfilter/source/dmapper/DomainMapper_Impl.hxx @@ -215,6 +215,12 @@ struct TextAppendContext css::uno::Reference<css::text::XParagraphCursor> xCursor; ParagraphPropertiesPtr pLastParagraphProperties; + /** + * Objects anchored to the current paragraph, may affect the paragraph + * spacing. + */ + std::vector<css::uno::Reference<css::text::XTextContent>> m_aAnchoredObjects; + TextAppendContext(const css::uno::Reference<css::text::XTextAppend>& xAppend, const css::uno::Reference<css::text::XTextCursor>& xCur) : xTextAppend(xAppend) { @@ -374,6 +380,13 @@ struct FloatingTableInfo css::uno::Any getPropertyValue(const OUString &propertyName); }; +/// Stores info about objects anchored to a given paragraph. +struct AnchoredObjectInfo +{ + css::uno::Reference<css::text::XTextRange> m_xParagraph; + std::vector<css::uno::Reference<css::text::XTextContent>> m_aAnchoredObjects; +}; + struct SymbolData { sal_Unicode cSymbol; @@ -919,6 +932,9 @@ public: /// Pending floating tables: they may be converted to text frames at the section end. std::vector<FloatingTableInfo> m_aPendingFloatingTables; + /// Paragraphs with anchored objects in the current section. + std::vector<AnchoredObjectInfo> m_aAnchoredObjectAnchors; + /// Append a property to a sub-grabbag if necessary (e.g. 'lineRule', 'auto') void appendGrabBag(std::vector<css::beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, const OUString& aValue); void appendGrabBag(std::vector<css::beans::PropertyValue>& rInteropGrabBag, const OUString& aKey, std::vector<css::beans::PropertyValue>& rValue); |