20#ifndef INCLUDED_SW_SOURCE_FILTER_WW8_DOCXATTRIBUTEOUTPUT_HXX
21#define INCLUDED_SW_SOURCE_FILTER_WW8_DOCXATTRIBUTEOUTPUT_HXX
48#include <com/sun/star/table/BorderLine2.hpp>
49#include <com/sun/star/drawing/FillStyle.hpp>
57namespace docx {
class FootnotesList; }
62 std::shared_ptr<const SwField>
pField;
186 void WriteSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer,
bool bRunTextIsOn,
bool bParagraphHasDrawing);
190 void EndSdtBlock(const ::sax_fastparser::FSHelperPtr& pSerializer);
200 virtual void RTLAndCJKState(
bool bIsRTL, sal_uInt16 nScript )
override;
204 bool bGenerateParaId)
override;
225 virtual void EndRun(
const SwTextNode* pNode, sal_Int32
nPos, sal_Int32 nLen,
bool bLastRun =
false)
override;
240 virtual void RunText(
const OUString& rText, rtl_TextEncoding eCharSet = RTL_TEXTENCODING_UTF8,
const OUString& rSymbolFont = OUString() )
override;
243 virtual void RawText(
const OUString& rText, rtl_TextEncoding eCharSet)
override;
252 virtual bool StartURL(
const OUString& rUrl,
const OUString&
rTarget )
override;
255 virtual bool EndURL(
bool)
override;
300 virtual void TableRowEnd( sal_uInt32 nDepth )
override;
306 virtual void EndStyles( sal_uInt16 nNumberOfStyles )
override;
326 sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nLink, sal_uInt16 nWwId, sal_uInt16 nSlot,
327 bool bAutoUpdate )
override;
382 void StartFont(
const OUString& rFamilyName )
const;
407 sal_uInt16 nNum, sal_uInt16 nAbstractNum,
408 const std::map< size_t, size_t > & rLevelOverrides )
override;
419 sal_uInt16 nNumberingType,
426 sal_Int16 nFirstLineIndex,
427 sal_Int16 nListTabPos,
428 const OUString &rNumberingString,
430 bool isLegal )
override;
434 OUString
const* pBookmarkName =
nullptr);
479 void WriteSrcRect(
const css::uno::Reference<css::beans::XPropertySet>& xShapePropSet,
487 std::string_view rShapeId,
const OUString& rImageId);
630 virtual void CharBorder( const ::editeng::SvxBorderLine* pAllBorder,
const sal_uInt16 nDist,
const bool bShadow )
override;
753 virtual void RefField(
const SwField& rField,
const OUString& rRef )
override;
760 virtual bool AnalyzeURL(
const OUString& rURL,
const OUString& rTarget, OUString* pLinkURL, OUString* pMark )
override;
800 void WriteFormDateStart(
const OUString& sFullDate,
const OUString& sDateFormat,
const OUString& sLang,
const uno::Sequence<beans::PropertyValue>& aGrabBagSdt);
801 void WriteSdtPlainText(
const OUString& sValue,
const uno::Sequence<beans::PropertyValue>& aGrabBagSdt);
802 void WriteSdtDropDownStart(
const OUString& rName, OUString
const& rSelected, uno::Sequence<OUString>
const& rListItems);
803 void WriteSdtDropDownEnd(OUString
const& rSelected, uno::Sequence<OUString>
const& rListItems);
1117 virtual void WriteVMLTextBox(css::uno::Reference<css::drawing::XShape> xShape)
override;
1119 virtual void WriteTextBox(css::uno::Reference<css::drawing::XShape> xShape)
override;
1121 css::uno::Reference<css::drawing::XShape> xShape)
override;
1144 template <
class... Args>
1149 pAttrList->add(std::forward<Args>(
args)...);
The class that has handlers for various resource types when exporting as DOCX.
bool m_bRunTextIsOn
Flag indicating that the Run Text is being written.
void WritePostponedGraphic()
virtual void EndStyle() override
End of a style in the styles table.
virtual bool StartURL(const OUString &rUrl, const OUString &rTarget) override
Output URL start.
rtl::Reference< sax_fastparser::FastAttributeList > m_pCharLangAttrList
sal_Int32 m_nNextBookmarkId
std::vector< OUString > m_rBookmarksStart
Bookmarks to output.
std::map< OUString, sal_Int32 > m_rOpenedAnnotationMarksIds
Maps of the annotation marks ids.
std::vector< FieldInfos > m_Fields
virtual void CharColor(const SvxColorItem &rColor) override
Sfx item Sfx item RES_CHRATR_COLOR.
void WriteFFData(const FieldInfos &rInfos)
void FlyFrameGraphic(const SwGrfNode *pGrfNode, const Size &rSize, const SwFlyFrameFormat *pOLEFrameFormat, SwOLENode *pOLENode, const SdrObject *pSdrObj=nullptr)
Output graphic fly frames or replacement graphics for OLE nodes.
virtual void WriteBookmarkInActParagraph(const OUString &rName, sal_Int32 nFirstRunPos, sal_Int32 nLastRunPos) override
Insert a bookmark inside the currently processed paragraph.
void ExportOLESurround(const SwFormatSurround &rWrap)
DocxColBreakStatus m_nColBreakStatus
virtual void NumberingLevel(sal_uInt8 nLevel, sal_uInt16 nStart, sal_uInt16 nNumberingType, SvxAdjust eAdjust, const sal_uInt8 *pNumLvlPos, sal_uInt8 nFollow, const wwFont *pFont, const SfxItemSet *pOutSet, sal_Int16 nIndentAt, sal_Int16 nFirstLineIndex, sal_Int16 nListTabPos, const OUString &rNumberingString, const SvxBrushItem *pBrush, bool isLegal) override
All the numbering level information.
virtual void WritePostitFieldReference() override
for docx w:commentReference
OUString m_hyperLinkAnchor
void WritePostponedCustomShape()
std::vector< OUString > m_rAnnotationMarksStart
Annotation marks to output.
virtual void CharEmphasisMark(const SvxEmphasisMarkItem &rEmphasisMark) override
Sfx item RES_CHRATR_EMPHASIS_MARK.
void WriteOLE2Obj(const SdrObject *pSdrObj, SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat, const sal_Int8 nFormulaAlignment)
std::vector< OUString > m_rPermissionsEnd
void WriteOLEShape(const SwFlyFrameFormat &rFrameFormat, const Size &rSize, std::string_view rShapeId, const OUString &rImageId)
bool m_bIgnoreNextFill
If FormatBox() already handled fill style / gradient.
void StartRedline(const SwRedlineData *pRedlineData, bool bLastRun)
Output redlining.
virtual void StartRuby(const SwTextNode &rNode, sal_Int32 nPos, const SwFormatRuby &rRuby) override
Output ruby start.
std::unique_ptr< docx::FootnotesList > m_pFootnotesList
OUString m_sLastOpenedBookmark
Name of the last opened bookmark.
void WriteFormData_Impl(const ::sw::mark::IFieldmark &rFieldmark)
std::vector< sal_Int32 > m_LastOpenCell
bool ExportAsActiveXControl(const SdrObject *pObject) const
virtual void StartRunProperties() override
Called before we start outputting the attributes.
rtl::Reference< sax_fastparser::FastAttributeList > m_pFontsAttrList
virtual bool IsFlyProcessingPostponed() override
Is processing of fly postponed ?
sal_Int16 m_nFieldsInHyperlink
void EndTableCell(sal_uInt32 nCell)
void OutputDefaultItem(const SfxPoolItem &rHt)
Similar to OutputItem(), but write something only if it is not the default.
virtual void SectFootnoteEndnotePr() override
for footnote/endnote section properties
bool m_bAlternateContentChoiceOpen
void WriteBookmarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds, const SwRedlineData *pRedlineData=nullptr)
bool m_bPostponedProcessingFly
virtual void RunText(const OUString &rText, rtl_TextEncoding eCharSet=RTL_TEXTENCODING_UTF8, const OUString &rSymbolFont=OUString()) override
Output text (inside a run).
std::vector< OUString > m_rFinalBookmarksEnd
void WriteField_Impl(const SwField *pField, ww::eField eType, const OUString &rFieldCmd, FieldFlags nMode, OUString const *pBookmarkName=nullptr)
virtual void FormatVertOrientation(const SwFormatVertOrient &) override
Sfx item RES_VERT_ORIENT.
void WritePendingPlaceholder()
virtual void TableRowEnd(sal_uInt32 nDepth) override
virtual void SetField(const SwField &rField, ww::eField eType, const OUString &rCmd) override
rtl::Reference< sax_fastparser::FastAttributeList > m_pHyperlinkAttrList
OUString m_sOriginalBackgroundColor
virtual oox::drawingml::DrawingML & GetDrawingML() override
bool m_bParaAfterAutoSpacing
void WritePostponedMath(const SwOLENode *pObject, sal_Int8)
std::optional< std::vector< PostponedDrawing > > m_oPostponedCustomShape
std::vector< css::beans::PropertyValue > m_aTextEffectsGrabBag
GrabBag for text effects like glow, shadow, ...
const ::sax_fastparser::FSHelperPtr & GetSerializer() const
Occasionally need to use this serializer from the outside.
std::map< OUString, std::vector< OUString > > m_aSeqBookmarksNames
If there are bookmarks around sequence fields, this map contains the names of these bookmarks for eac...
virtual void ParaVerticalAlign(const SvxParaVertAlignItem &rAlign) override
Sfx item RES_PARATR_VERTALIGN.
bool m_bAnchorLinkedToNode
void SetAlternateContentChoiceOpen(bool bAltContentChoiceOpen)
virtual void TableDefaultBorders(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
void TextLineBreak(const SwFormatLineBreak &rLineBreak) override
RES_TXTATR_LINEBREAK, i.e. clearing breaks.
virtual void FormatSurround(const SwFormatSurround &) override
Sfx item RES_SURROUND.
virtual void FormatFillGradient(const XFillGradientItem &) override
Sfx item RES_FILL_GRADIENT.
virtual void CharHidden(const SvxCharHiddenItem &rHidden) override
Sfx item RES_CHRATR_HIDDEN.
const SwRedlineData * m_pRedlineData
Redline data to remember in the text run.
virtual void TableRowRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void FormatColumns_Impl(sal_uInt16 nCols, const SwFormatCol &rCol, bool bEven, SwTwips nPageSize) override
Sfx item RES_COL.
static const sal_Int32 Tag_Redline_2
virtual void FormatKeep(const SvxFormatKeepItem &) override
Sfx item RES_KEEP.
bool WriteOLEMath(const SwOLENode &rNode, const sal_Int8 nAlign)
void EmbedFontStyle(std::u16string_view name, int tag, FontFamily family, FontItalic italic, FontWeight weight, FontPitch pitch)
std::optional< css::drawing::FillStyle > m_oFillStyle
void DoWriteBookmarkTagEnd(sal_Int32 nId)
virtual void OutlineNumbering(sal_uInt8 nLvl) override
Numbering rule and Id.
virtual void CharFontCTL(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_CTL_FONT.
bool m_bWritingField
Flag indicating that multiple runs of a field are being written.
const DocxExport & GetExport() const
void WriteFloatingTable(ww8::Frame const *pParentFrame)
virtual void CharIdctHint(const SfxPoolItem &) override
Sfx item RES_CHRATR_IdctHint.
virtual void EndRuby(const SwTextNode &rNode, sal_Int32 nPos) override
Output ruby end.
void WriteFlyFrame(const ww8::Frame &rFrame)
void WritePostponedFormControl(const SdrObject *pObject)
virtual void CharLanguageCTL(const SvxLanguageItem &rLanguageItem) override
Sfx item RES_CHRATR_CTL_LANGUAGE.
virtual void CharEscapement(const SvxEscapementItem &rEscapement) override
Sfx item RES_CHRATR_ESCAPEMENT.
virtual void StartSection() override
Start of the section properties.
static OString GetOLEStyle(const SwFlyFrameFormat &rFormat, const Size &rSize)
static OString TransHighlightColor(sal_uInt8 nIco)
Translate an ico value to the corresponding HighlightColorValues enumaration item.
void WriteContentControlEnd()
virtual void OutputFlyFrame_Impl(const ww8::Frame &rFormat, const Point &rNdTopLeft) override
Output frames - the implementation.
void popFromTableExportContext(DocxTableExportContext const &rContext)
Restores from the remembered state.
virtual void CharLanguageCJK(const SvxLanguageItem &rLanguageItem) override
Sfx item RES_CHRATR_CJK_LANGUAGE.
virtual void ParaAdjust(const SvxAdjustItem &rAdjust) override
Sfx item RES_PARATR_ADJUST.
virtual void EndParagraphProperties(const SfxItemSet &rParagraphMarkerProperties, const SwRedlineData *pRedlineData, const SwRedlineData *pRedlineParagraphMarkerDeleted, const SwRedlineData *pRedlineParagraphMarkerInserted) override
Called after we end outputting the attributes.
virtual void CharWeight(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_WEIGHT.
void DoWriteBookmarkStartIfExist(sal_Int32 nRunPos)
void FontCharset(sal_uInt8 nCharSet, rtl_TextEncoding nEncoding) const
Font charset.
virtual void CharShadow(const SvxShadowedItem &rShadow) override
Sfx item RES_CHRATR_SHADOWED.
virtual sal_Int32 StartParagraph(ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, bool bGenerateParaId) override
Start of the paragraph.
virtual void FormatLineNumbering(const SwFormatLineNumber &) override
Sfx item RES_LINENUMBER.
virtual void EndStyles(sal_uInt16 nNumberOfStyles) override
End of the styles table.
void WriteSdtDropDownStart(const OUString &rName, OUString const &rSelected, uno::Sequence< OUString > const &rListItems)
static bool TextBoxIsFramePr(const SwFrameFormat &rFrameFormat)
void FootnotesEndnotes(bool bFootnotes)
Output the content of the footnotes.xml resp. endnotes.xml.
void EndRedline(const SwRedlineData *pRedlineData, bool bLastRun)
Output redlining.
virtual void EmptyParagraph() override
Empty paragraph.
void WriteActiveXControl(const SdrObject *pObject, const SwFrameFormat &rFrameFormat, bool bInsideRun)
static OString convertToOOXMLVertOrient(sal_Int16 nOrient)
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphStart
Bookmarks of the current paragraph.
virtual bool DropdownField(const SwField *pField) override
virtual void FormatFrameDirection(const SvxFrameDirectionItem &) override
Sfx item RES_FRAMEDIR.
virtual void OverrideNumberingDefinition(SwNumRule const &rRule, sal_uInt16 nNum, sal_uInt16 nAbstractNum, const std::map< size_t, size_t > &rLevelOverrides) override
Numbering definition that overrides abstract numbering definition.
virtual void CharFontSize(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_FONTSIZE.
virtual void CharLanguage(const SvxLanguageItem &rLanguage) override
Sfx item RES_CHRATR_LANGUAGE.
void StartField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos const &rInfos, bool bWriteRun=false)
virtual void StartStyleProperties(bool bParProp, sal_uInt16 nStyle) override
Start of (paragraph or run) properties of a style.
void LatentStyles()
Write latent styles.
virtual void CharWeightCTL(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_CTL_WEIGHT.
std::shared_ptr< DocxTableStyleExport > m_pTableStyleExport
void EndFont() const
End the font.
virtual void TableNodeInfoInner(ww8::WW8TableNodeInfoInner::Pointer_t pNodeInfoInner) override
virtual bool AnalyzeURL(const OUString &rURL, const OUString &rTarget, OUString *pLinkURL, OUString *pMark) override
void pushToTableExportContext(DocxTableExportContext &rContext)
Stores the table export state to the passed context and resets own state.
void EmbedFont(std::u16string_view name, FontFamily family, FontPitch pitch)
Write out the font into the document, if it's an embedded font.
virtual void SectionLineNumbering(sal_uLong nRestartNo, const SwLineNumberInfo &rLnNumInfo) override
Numbering of the lines in the document.
std::vector< ww8::Frame > m_vPostponedFlys
Stores the flys what are anchored inside a fly.
std::vector< sal_Int32 > m_nHyperLinkCount
virtual void WriteOutliner(const OutlinerParaObject &rParaObj) override
VMLTextExport.
virtual void TableDefinition(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
std::vector< PostponedMathObjects > m_aPostponedMaths
virtual void TextFootnote_Impl(const SwFormatFootnote &) override
Sfx item RES_TXTATR_FTN.
void WriteFinalBookmarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds)
void WriteSdtPlainText(const OUString &sValue, const uno::Sequence< beans::PropertyValue > &aGrabBagSdt)
OUString m_footnoteCustomLabel
sal_uInt8 m_nCharTransparence
std::multimap< sal_Int32, OUString > m_aBookmarksOfParagraphEnd
virtual void DefaultStyle() override
Write default style.
void InitCollectedParagraphProperties()
Initialize the structures where we are going to collect some of the paragraph properties.
TableReference m_tableReference
virtual void Redline(const SwRedlineData *pRedline) override
Output redlining.
static const sal_Int32 Tag_StartRun_1
void DocDefaults()
Write Doc Defaults.
void DoWriteBookmarkTagStart(std::u16string_view bookmarkName)
virtual void CharRotate(const SvxCharRotateItem &rRotate) override
Sfx item RES_CHRATR_ROTATE.
void DoWriteBookmarkEndIfExist(sal_Int32 nRunPos)
virtual void TableBackgrounds(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
std::map< OUString, sal_Int32 > m_rOpenedBookmarksIds
Maps of the bookmarks ids.
virtual void CharBidiRTL(const SfxPoolItem &) override
Sfx item RES_CHRATR_BidiRTL.
std::vector< OUString > m_rBookmarksEnd
virtual void ParaGrabBag(const SfxGrabBagItem &) override
Sfx item RES_PARATR_GRABBAG.
std::optional< SwLineBreakClear > m_oLineBreakClear
void InitCollectedRunProperties()
Initialize the structures where we are going to collect some of the run properties.
virtual void StartStyle(const OUString &rName, StyleType eType, sal_uInt16 nBase, sal_uInt16 nNext, sal_uInt16 nLink, sal_uInt16 nWwId, sal_uInt16 nSlot, bool bAutoUpdate) override
Start of a style in the styles table.
rtl::Reference< sax_fastparser::FastAttributeList > m_pColorAttrList
Attributes of the run color.
void SyncNodelessCells(ww8::WW8TableNodeInfoInner::Pointer_t const &pInner, sal_Int32 nCell, sal_uInt32 nRow)
editeng::WordPageMargins m_pageMargins
SwRedlineData * m_pMoveRedlineData
bool m_bPostponedPageBreak
virtual void ParaWidows(const SvxWidowsItem &rWidows) override
Sfx item RES_PARATR_WIDOWS.
static const sal_Int32 Tag_StartParagraph_2
void FontPitchType(FontPitch ePitch) const
Font pitch.
void DoWriteBookmarksEnd(std::vector< OUString > &rEnds)
export the end bookmarks
SdtBlockHelper m_aParagraphSdt
void SetSerializer(::sax_fastparser::FSHelperPtr const &pSerializer)
For e.g. the output of the styles, we need to switch the serializer to another one.
virtual void StartAbstractNumbering(sal_uInt16 nId) override
Start of the abstract numbering definition instance.
bool HasEndnotes() const
Do we have any endnotes?
bool m_closeHyperlinkInThisRun
virtual void FieldVanish(const OUString &rText, ww::eField eType, OUString const *) override
virtual void FormatULSpace(const SvxULSpaceItem &rULSpace) override
Sfx item RES_UL_SPACE.
virtual void CharFontSizeCJK(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_CJK_FONTSIZE.
static const sal_Int32 Tag_Redline_1
rtl::Reference< sax_fastparser::FastAttributeList > m_pSectionSpacingAttrList
virtual ~DocxAttributeOutput() override
std::unordered_set< sal_Int32 > m_rSavedBookmarksIds
Set of ids of the saved bookmarks (used only for moveRange, yet)
virtual void NumberingDefinition(sal_uInt16 nId, const SwNumRule &rRule) override
Definition of a numbering instance.
virtual void ResetFlyProcessingFlag() override
Reset the flag for FlyProcessing.
virtual void TableInfoRow(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
void StartTableRow(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
void WritePostponedDMLDrawing()
void DoWriteCmd(std::u16string_view rCmd)
void DoWriteMoveRangeTagStart(std::u16string_view bookmarkName, bool bFrom, const SwRedlineData *pRedlineData)
OUString m_aStartedParagraphSdtPrAlias
Same as m_aParagraphSdtPrAlias, but its content is available till the SDT is closed.
std::vector< ww8::WW8TableNodeInfoInner::Pointer_t > m_TableFirstCells
void DoWritePermissionsEnd()
export the end permissions
virtual void TableBidi(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void StartStyles() override
Start of the styles table.
void WriteOLE(SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *rFlyFrameFormat)
virtual void TextINetFormat(const SwFormatINetFormat &) override
Sfx item RES_TXTATR_INETFMT.
std::vector< PostponedChart > m_aPostponedCharts
virtual void FormatFirstLineIndent(const SvxFirstLineIndentItem &rFirstLine) override
Sfx item RES_MARGIN_FIRSTLINE.
void EndParaSdtBlock()
End possibly opened paragraph sdt block.
virtual void FormatTextLeftMargin(const SvxTextLeftMarginItem &rTextLeftMargin) override
Sfx item RES_MARGIN_TEXTLEFT.
sal_Int32 m_nNextAnnotationMarkId
OUString m_sLastOpenedAnnotationMark
Name of the last opened annotation mark.
virtual void EndParagraph(ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
End of the paragraph.
virtual void FormatDrop(const SwTextNode &rNode, const SwFormatDrop &rSwFormatDrop, sal_uInt16 nStyle, ww8::WW8TableNodeInfo::Pointer_t pTextNodeInfo, ww8::WW8TableNodeInfoInner::Pointer_t pTextNodeInfoInner) override
virtual void EndSection() override
End of the section properties.
rtl::Reference< sax_fastparser::FastAttributeList > m_pLRSpaceAttrList
void DoWriteMoveRangeTagEnd(sal_Int32 nId, bool bFrom)
void SetWritingHeaderFooter(bool bWritingHeaderFooter)
sal_Int32 m_nParaBeforeSpacing
bool WriteOLEChart(const SdrObject *pSdrObj, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat)
void BulletDefinition(int nId, const Graphic &rGraphic, Size aSize) override
Exports the definition (image, size) of a single numbering picture bullet.
virtual css::uno::Reference< css::text::XTextFrame > GetUnoTextFrame(css::uno::Reference< css::drawing::XShape > xShape) override
virtual void TextCharFormat(const SwFormatCharFormat &) override
Sfx item RES_TXTATR_CHARFMT.
virtual void FormatBox(const SvxBoxItem &) override
Sfx item RES_BOX.
virtual void CharCaseMap(const SvxCaseMapItem &rCaseMap) override
Sfx item Sfx item RES_CHRATR_CASEMAP.
virtual void CharFont(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_FONT.
virtual void TableSpacing(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual bool MaybeOutputBrushItem(SfxItemSet const &) override
virtual void WriteExpand(const SwField *pField) override
Write the expanded field.
std::optional< std::vector< PostponedOLE > > m_oPostponedOLEs
virtual void FormatPaperBin(const SvxPaperBinItem &) override
Sfx item RES_PAPER_BIN.
virtual void CharAnimatedText(const SvxBlinkItem &rBlink) override
Sfx item RES_CHRATR_BLINK.
void StartFont(const OUString &rFamilyName) const
Start the font.
virtual void RawText(const OUString &rText, rtl_TextEncoding eCharSet) override
Output text (without markup).
void CmdField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos const &rInfos, bool bWriteRun)
virtual void SectionTitlePage() override
Has different headers/footers for the title page.
virtual void FormatLRSpace(const SvxLRSpaceItem &rLRSpace) override
Sfx item RES_LR_SPACE.
sal_Int32 m_nNextParaId
[MS-DOCX] section 2.6.2.3
virtual void CharUnderline(const SvxUnderlineItem &rUnderline) override
Sfx item RES_CHRATR_UNDERLINE.
std::unique_ptr< SwWriteTable > m_xTableWrt
The current table helper.
o3tl::sorted_vector< const SwFrameFormat * > m_aFloatingTablesOfParagraph
virtual void FormatRightMargin(const SvxRightMarginItem &rRightMargin) override
Sfx item RES_MARGIN_RIGHT.
virtual void CharBorder(const ::editeng::SvxBorderLine *pAllBorder, const sal_uInt16 nDist, const bool bShadow) override
Sfx item RES_CHRATR_BOX.
virtual void TableHeight(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
std::vector< OUString > m_rAnnotationMarksEnd
static const sal_Int32 Tag_TableDefinition
bool m_bWritingHeaderFooter
Flag indicating that the header \ footer are being written.
virtual void CharBackground(const SvxBrushItem &rBrush) override
Sfx item RES_CHRATR_BACKGROUND.
bool HasPostitFields() const
sal_Int32 m_nParaAfterSpacing
void EndField_Impl(const SwTextNode *pNode, sal_Int32 nPos, FieldInfos &rInfos)
static const sal_Int32 Tag_InitCollectedRunProperties
void WriteCollectedRunProperties()
Output what we collected during the run properties output.
virtual void HiddenField(const SwField &rField) override
virtual void WriteTextBox(css::uno::Reference< css::drawing::XShape > xShape) override
DMLTextExport.
virtual void WriteVMLTextBox(css::uno::Reference< css::drawing::XShape > xShape) override
void DoWriteAnnotationMarks()
virtual void SectionBreaks(const SwNode &rNode) override
Called in order to output section breaks.
virtual void FormatFrameSize(const SwFormatFrameSize &) override
Sfx item RES_FRM_SIZE.
virtual void PageBreakBefore(bool bBreak) override
Page break As a paragraph property - the paragraph should be on the next page.
static OString convertToOOXMLVertOrientRel(sal_Int16 nOrientRel)
virtual void SetStateOfFlyFrame(FlyProcessingState nStateOfFlyFrame) override
Set the state of the Fly at current position.
bool m_bEndCharSdt
If the current SDT around runs should be ended before the current run.
virtual void TableInfoCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
std::vector< PostponedDrawing > m_aPostponedActiveXControls
::sax_fastparser::FSHelperPtr m_pSerializer
Fast serializer to output the data.
rtl::Reference< sax_fastparser::FastAttributeList > m_pParagraphSpacingAttrList
ParentStatus
Used to store the parent status of a PostIt (parent/child/neither)
std::unique_ptr< docx::FootnotesList > m_pEndnotesList
virtual void ParaNumRule_Impl(const SwTextNode *pTextNd, sal_Int32 nLvl, sal_Int32 nNumId) override
Sfx item RES_PARATR_NUMRULE.
virtual void SectionPageBorders(const SwFrameFormat *pFormat, const SwFrameFormat *pFirstPageFormat) override
Description of the page borders.
FlyProcessingState m_nStateOfFlyFrame
State of the Fly at current position.
int m_footnoteEndnoteRefTag
void WriteFormDateStart(const OUString &sFullDate, const OUString &sDateFormat, const OUString &sLang, const uno::Sequence< beans::PropertyValue > &aGrabBagSdt)
virtual DocxExport & GetExport() override
Return the right export class.
void StartTableCell(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow)
virtual void ParaSnapToGrid(const SvxParaGridItem &) override
Sfx item RES_PARATR_SNAPTOGRID.
virtual bool FootnoteEndnoteRefTag() override
docx requires footnoteRef/endnoteRef tag at the beginning of each of them
sal_uInt32 m_nEmbedFlyLevel
The first frame (anchored to the main text) is 0.
static const sal_Int32 Tag_EndRun_1
bool m_bParaBeforeAutoSpacing
std::vector< OUString > m_rPermissionsStart
Permissions to output.
oox::drawingml::DrawingML & m_rDrawingML
DrawingML access.
sal_Int32 m_nRedlineId
Id of the redline.
virtual void CharPostureCJK(const SvxPostureItem &rPosture) override
Sfx item RES_CHRATR_CJK_POSTURE.
bool m_bPreventDoubleFieldsHandling
Field data to remember in the text run.
hasProperties WritePostitFields()
static const sal_Int32 Tag_WriteSdtBlock
void TableCellProperties(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner, sal_uInt32 nCell, sal_uInt32 nRow)
virtual void TableVerticalCell(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
unsigned int m_postitFieldsMaxId
Number of postit fields which already have a commentReference written.
virtual void CharWeightCJK(const SvxWeightItem &rWeight) override
Sfx item RES_CHRATR_CJK_WEIGHT.
void WritePostponedActiveXControl(bool bInsideRun)
virtual void CharRelief(const SvxCharReliefItem &rRelief) override
Sfx item RES_CHRATR_RELIEF.
std::vector< std::pair< const SwPostItField *, PostItDOCXData > > m_postitFields
Maps postit fields to ID's, used in commentRangeStart/End, commentReference and comment....
void CmdEndField_Impl(const SwTextNode *pNode, sal_Int32 nPos, bool bWriteRun)
virtual void ParaHangingPunctuation(const SfxBoolItem &) override
Sfx item RES_PARATR_HANGINGPUNCTUATION.
std::map< OUString, EmbeddedFontRef > m_FontFilesMap
bool HasFootnotes() const
Do we have any footnotes?
virtual void SetAnchorIsLinkedToNode(bool bAnchorLinkedToNode) override
If the node has an anchor linked.
void WriteSrcRect(const css::uno::Reference< css::beans::XPropertySet > &xShapePropSet, const SwFrameFormat *pFrameFormat)
DocxExport & m_rExport
Reference to the export, where to get the data from.
static void AddToAttrList(rtl::Reference< sax_fastparser::FastAttributeList > &pAttrList, Args &&... args)
std::optional< std::vector< PostponedGraphic > > m_oPostponedGraphic
const SwField * m_PendingPlaceholder
bool IsAlternateContentChoiceOpen() const
void SectionRtlGutter(const SfxBoolItem &rRtlGutter) override
RES_RTL_GUTTER.
static const sal_Int32 Tag_StartParagraph_1
std::vector< OUString > m_rFinalBookmarksStart
Bookmarks to output at the end.
virtual void CharFontSizeCTL(const SvxFontHeightItem &rFontSize) override
Sfx item RES_CHRATR_CTL_FONTSIZE.
virtual void SectionBiDi(bool bBiDi) override
Columns populated from right/numbers on the right side?
virtual void FormatHorizOrientation(const SwFormatHoriOrient &) override
Sfx item RES_HORI_ORIENT.
virtual void CharAutoKern(const SvxAutoKernItem &) override
Sfx item RES_CHRATR_AUTOKERN.
virtual void CharTwoLines(const SvxTwoLinesItem &rTwoLines) override
Sfx item RES_CHRATR_TWO_LINES.
void FontFamilyType(FontFamily eFamily) const
Font family.
std::vector< sal_Int32 > m_LastClosedCell
static const sal_Int32 Tag_StartSection
std::vector< std::map< SvxBoxItemLine, css::table::BorderLine2 > > m_aTableStyleConfs
static const sal_Int32 Tag_StartRun_2
virtual void StartRun(const SwRedlineData *pRedlineData, sal_Int32 nPos, bool bSingleEmptyRun=false) override
Start of the text run.
unsigned int m_nChartCount
count charts consistently for unit tests
virtual void ParaLineSpacing_Impl(short nSpace, short nMulti) override
Sfx item RES_PARATR_LINESPACING.
virtual void TableCanSplit(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void TextVerticalAdjustment(const css::drawing::TextVerticalAdjust) override
void DoWritePermissionsStart()
Write the start permissions.
virtual void SectionPageNumbering(sal_uInt16 nNumType, const ::std::optional< sal_uInt16 > &oPageRestartNumber) override
The style of the page numbers.
virtual void CharCrossedOut(const SvxCrossedOutItem &rCrossedOut) override
Sfx item RES_CHRATR_CROSSEDOUT.
void FontAlternateName(const OUString &rName) const
Alternate name for the font.
std::optional< std::vector< PostponedDiagram > > m_oPostponedDiagrams
virtual void FormatAnchor(const SwFormatAnchor &) override
Sfx item RES_ANCHOR.
void WriteContentControlStart()
void WriteAnnotationMarks_Impl(std::vector< OUString > &rStarts, std::vector< OUString > &rEnds)
virtual void SectionFormProtection(bool bProtected) override
Protection of forms.
virtual void CharScaleWidth(const SvxCharScaleWidthItem &rScaleWidth) override
Sfx item RES_CHRATR_SCALEW.
virtual void CharContour(const SvxContourItem &rContour) override
Sfx item Sfx item RES_CHRATR_CONTOUR.
static void WriteFootnoteEndnotePr(::sax_fastparser::FSHelperPtr const &fs, int tag, const SwEndNoteInfo &info, int listtag)
writes the footnotePr/endnotePr (depending on tag) section
void WriteLineBreak()
Writes a clearing line break at the end of run properties, if there are any.
void PostponeOLE(SwOLENode &rNode, const Size &rSize, const SwFlyFrameFormat *pFlyFrameFormat)
virtual void CharPostureCTL(const SvxPostureItem &rWeight) override
Sfx item RES_CHRATR_CTL_POSTURE.
virtual void ParaSplit(const SvxFormatSplitItem &rSplit) override
Sfx item RES_PARATR_SPLIT.
virtual void EndAbstractNumbering() override
End of the abstract numbering definition instance.
void WritePostponedChart()
virtual void CharHighlight(const SvxBrushItem &rHighlight) override
Sfx item RES_CHRATR_HIGHLIGHT.
virtual bool EndURL(bool) override
Output URL end.
bool m_closeHyperlinkInPreviousRun
void PopulateFrameProperties(const SwFrameFormat *pFrameFormat, const Size &rSize)
virtual void RTLAndCJKState(bool bIsRTL, sal_uInt16 nScript) override
Export the state of RTL/CJK.
virtual void CharFontCJK(const SvxFontItem &rFont) override
Sfx item RES_CHRATR_CJK_FONT.
virtual void SectionBreak(sal_uInt8 nC, bool bBreakAfter, const WW8_SepInfo *pSectionInfo=nullptr, bool bExtraPageBreak=false) override
Write a section break msword::ColumnBreak or msword::PageBreak bBreakAfter: the break must be schedul...
virtual void ParaHyphenZone(const SvxHyphenZoneItem &) override
Sfx item RES_PARATR_HYPHENZONE.
std::shared_ptr< SwContentControl > m_pContentControl
std::unique_ptr< const WW8_SepInfo > m_pSectionInfo
static void ImplCellMargins(sax_fastparser::FSHelperPtr const &pSerializer, const SvxBoxItem &rBox, sal_Int32 tag, bool bUseStartEnd, const SvxBoxItem *pDefaultMargins=nullptr)
void StartTable(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
virtual void ParagraphStyle(sal_uInt16 nStyle) override
Output style.
virtual void CharPosture(const SvxPostureItem &rPosture) override
Sfx item RES_CHRATR_POSTURE.
virtual void ParaTabStop(const SvxTabStopItem &rTabStop) override
Sfx item RES_PARATR_TABSTOP.
virtual void TableCellRedline(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
virtual void ParaOutlineLevel(const SfxUInt16Item &) override
std::optional< std::vector< PostponedDrawing > > m_oPostponedDMLDrawings
static const sal_Int32 Tag_StartParagraphProperties
void FinishTableRowCell(ww8::WW8TableNodeInfoInner::Pointer_t const &pInner, bool bForceEmptyParagraph=false)
End cell, row, and even the entire table if necessary.
void WriteCollectedParagraphProperties()
Output what we collected during the run properties output.
bool IsFirstParagraph() const
void DoWriteFieldRunProperties(const SwTextNode *pNode, sal_Int32 nPos, bool bWriteCombChars=false)
Writes properties for run that is used to separate field implementation.
virtual void SectionType(sal_uInt8 nBreakCode) override
The type of breaking.
static OString convertToOOXMLHoriOrientRel(sal_Int16 nOrientRel)
void WritePostponedDiagram()
void GetSdtEndBefore(const SdrObject *pSdrObj)
virtual void FormatBackground(const SvxBrushItem &) override
Sfx item RES_BACKGROUND.
virtual void CharKerning(const SvxKerningItem &rKerning) override
Sfx item RES_CHRATR_KERNING.
void TableDefaultCellMargins(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
virtual void EndRunProperties(const SwRedlineData *pRedlineData) override
Called after we end outputting the attributes.
bool m_bHadSectPr
Did we have a section break in this paragraph? Set by StartSection(), reset by the next StartParagrap...
std::stack< std::vector< ww8::Frame > > m_aFramesOfParagraph
std::vector< const SdrObject * > m_aPostponedFormControls
rtl::Reference< sax_fastparser::FastAttributeList > m_pEastAsianLayoutAttrList
virtual bool PlaceholderField(const SwField *pField) override
void FootnoteEndnoteReference()
Output the footnote/endnote reference (if there's one to output).
void WriteSdtDropDownEnd(OUString const &rSelected, uno::Sequence< OUString > const &rListItems)
sal_Int32 m_nTextFrameLevel
virtual void EndRun(const SwTextNode *pNode, sal_Int32 nPos, sal_Int32 nLen, bool bLastRun=false) override
End of the text run.
static const sal_Int32 Tag_StartRunProperties
static OString convertToOOXMLHoriOrient(sal_Int16 nOrient, bool bIsPosToggle)
virtual void ParaScriptSpace(const SfxBoolItem &) override
Sfx item RES_PARATR_SCRIPTSPACE.
static const sal_Int32 Tag_OutputFlyFrame
virtual void PostitField(const SwField *pField) override
static const sal_Int32 Tag_StartRun_3
virtual void TableOrientation(ww8::WW8TableNodeInfoInner::Pointer_t pTableTextNodeInfoInner) override
DocxAttributeOutput(DocxExport &rExport, const ::sax_fastparser::FSHelperPtr &pSerializer, oox::drawingml::DrawingML *pDrawingML)
virtual void ParaForbiddenRules(const SfxBoolItem &) override
Sfx item RES_PARATR_FORBIDDEN_RULES.
virtual void FormatTextGrid(const SwTextGridItem &) override
Sfx item RES_TEXTGRID.
void DoWritePermissionTagStart(std::u16string_view permission)
void InitTableHelper(ww8::WW8TableNodeInfoInner::Pointer_t const &pTableTextNodeInfoInner)
bool GetWritingHeaderFooter() const
bool m_bParagraphFrameOpen
virtual void EndStyleProperties(bool bParProp) override
End of (paragraph or run) properties of a style.
virtual void RefField(const SwField &rField, const OUString &rRef) override
void WritePostItFieldsResolved()
rtl::Reference< sax_fastparser::FastAttributeList > m_pBackgroundAttrList
Attributes of the paragraph background.
bool m_bOpenedSectPr
Flag indicating that the section properties are being written.
void DoWriteBookmarksStart(std::vector< OUString > &rStarts, const SwRedlineData *pRedlineData=nullptr)
Write the start bookmarks.
virtual void FormatFillStyle(const XFillStyleItem &) override
Sfx item RES_FILL_STYLE.
static const sal_Int32 Tag_EndRun_2
virtual void StartParagraphProperties() override
Called before we start outputting the attributes.
virtual void CharGrabBag(const SfxGrabBagItem &) override
Sfx item RES_CHRATR_GRABBAG.
static const sal_Int32 Tag_InitCollectedParagraphProperties
void DoWritePermissionTagEnd(std::u16string_view permission)
The class that does all the actual DOCX export-related work.
Using framePr, a paragraph can be enclosed in a frame described by its pPr paragraph settings,...
void SetUseFrameBorders(bool bSet)
bool UseFrameBorders(sal_Int32 nTableDepth)
bool UseFrameBackground()
void SetUseFrameTextDirection(bool bSet)
bool m_bUseFrameTextDirection
bool m_bUseFrameBackground
bool UseFrameTextDirection(sal_Int32 nTableDepth)
void SetUseFrameBackground(bool bSet)
void SetFrame(ww8::Frame *pSet, sal_Int32 nTableDepth=-1)
rtl::Reference< sax_fastparser::FastAttributeList > m_pTokenChildren
rtl::Reference< sax_fastparser::FastAttributeList > m_pTokenAttributes
OUString m_aPlaceHolderDocPart
rtl::Reference< sax_fastparser::FastAttributeList > m_pTextAttrs
bool m_bShowingPlaceHolder
void WriteExtraParams(const ::sax_fastparser::FSHelperPtr &pSerializer)
rtl::Reference< sax_fastparser::FastAttributeList > m_pDataBindingAttrs
void GetSdtParamsFromGrabBag(const uno::Sequence< beans::PropertyValue > &aGrabBagSdt)
void EndSdtBlock(const ::sax_fastparser::FSHelperPtr &pSerializer)
Closes a currently open SDT block.
void DeleteAndResetTheLists()
void WriteSdtBlock(const ::sax_fastparser::FSHelperPtr &pSerializer, bool bRunTextIsOn, bool bParagraphHasDrawing)
Stores the properties of a content control.
Base class of all fields.
< purpose of derivation from SwClient: character style for displaying the numbers.
Base class of the Writer document model elements.
SwTextNode is a paragraph in the document model.
static rtl::Reference< FastAttributeList > createAttrList()
Make exporting a Writer Frame easy.
std::shared_ptr< WW8TableInfo > Pointer_t
std::shared_ptr< WW8TableNodeInfoInner > Pointer_t
std::shared_ptr< WW8TableNodeInfo > Pointer_t
Collects and outputs fonts.
@ COLBRK_WRITEANDPOSTPONE
EmbeddedObjectRef * pObject
rtl::Reference< FastAttributeList > SurroundToVMLWrap(SwFormatSurround const &rSurround)
std::shared_ptr< FastSerializerHelper > FSHelperPtr
ParentStatus parentStatus
PostponedChart(const SdrObject *sdrObject, const Size &rSize, const SwFlyFrameFormat *rFrame)
const SwFlyFrameFormat * frame
const SwFrameFormat * frame
PostponedDiagram(const SdrObject *o, const SwFrameFormat *frm)
PostponedDrawing(const SdrObject *sdrObj, const SwFrameFormat *frm)
const SwFrameFormat * frame
const SdrObject * pSdrObj
const SwGrfNode * grfNode
PostponedGraphic(const SwGrfNode *n, Size s, const SdrObject *sObj)
sal_Int8 nMathObjAlignment
PostponedOLE(SwOLENode *rObject, const Size &rSize, const SwFlyFrameFormat *rFrame)
const SwFlyFrameFormat * frame
All the information that should be stashed away when we're in the middle of of a table export and sti...
DocxAttributeOutput & m_rOutput
ww8::WW8TableInfo::Pointer_t m_pTableInfo
sal_Int32 m_nHyperLinkCount
~DocxTableExportContext()
DocxTableExportContext(DocxAttributeOutput &rOutput)
std::shared_ptr< const SwField > pField
const ::sw::mark::IFieldmark * pFieldmark
A structure that holds information about the options selected when outputting a border to DOCX.
std::shared_ptr< editeng::WordBorderDistances > pDistances
SvxShadowLocation aShadowLocation
A structure that holds flags for the table export.
bool m_bTableCellOpen
Remember if we are in an open cell, or not.
sal_uInt32 m_nTableDepth
Remember the current table depth.
bool m_bTableCellParaSdtOpen
If paragraph sdt got opened in this table cell.
FlyProcessingState
enum to state the present state of the fly