LibreOffice Module sw (master)  1
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
DocxExport Class Reference

The class that does all the actual DOCX export-related work. More...

#include <docxexport.hxx>

Inheritance diagram for DocxExport:
[legend]
Collaboration diagram for DocxExport:
[legend]

Public Member Functions

DocxExportFilterGetFilter ()
 
const DocxExportFilterGetFilter () const
 
const ww8::FrameGetFloatingTableFrame () const
 
virtual AttributeOutputBaseAttrOutput () const override
 Access to the attribute output class. More...
 
DocxAttributeOutputDocxAttrOutput () const
 Access to the derived attribute output class. More...
 
virtual MSWordSectionsSections () const override
 Access to the sections/headers/footres. More...
 
virtual bool SupportsOneColumnBreak () const override
 Determines if column break with one column should be exported or not. More...
 
virtual bool FieldsQuoted () const override
 Determines if the import filter already quoted fields or not. More...
 
virtual bool AddSectionBreaksForTOX () const override
 Determines the Section Breaks are to be added for TOX Section. More...
 
virtual bool ignoreAttributeForStyleDefaults (sal_uInt16 nWhich) const override
 Used to filter out attributes that can be e.g. written to .doc but not to .docx. More...
 
virtual bool PreferPageBreakBefore () const override
 If saving page break is preferred as a paragraph attribute (yes) or as a special character (no). More...
 
virtual bool CollapseScriptsforWordOk (sal_uInt16 nScript, sal_uInt16 nWhich) override
 Guess the script (asian/western). More...
 
virtual void AppendBookmarks (const SwTextNode &rNode, sal_Int32 nCurrentPos, sal_Int32 nLen) override
 
virtual void AppendBookmark (const OUString &rName) override
 
virtual void AppendAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen) override
 
virtual void ExportGrfBullet (const SwTextNode &) override
 
OString AddRelation (const OUString &rType, const OUString &rTarget)
 Returns the relationd id. More...
 
virtual void WriteCR (ww8::WW8TableNodeInfoInner::Pointer_t) override
 
virtual void WriteChar (sal_Unicode) override
 
virtual bool DisallowInheritingOutlineNumbering (const SwFormat &rFormat) override
 Return value indicates if an inherited outline numbering is suppressed. More...
 
virtual void WriteHeadersFooters (sal_uInt8 nHeadFootFlags, const SwFrameFormat &rFormat, const SwFrameFormat &rLeftFormat, const SwFrameFormat &rFirstPageFormat, sal_uInt8 nBreakCode) override
 Output the actual headers and footers. More...
 
virtual void OutputField (const SwField *pField, ww::eField eFieldType, const OUString &rFieldCmd, FieldFlags nMode=FieldFlags::All) override
 Write the field. More...
 
virtual void WriteFormData (const ::sw::mark::IFieldmark &rFieldmark) override
 Write the data of the form field. More...
 
virtual void WriteHyperlinkData (const ::sw::mark::IFieldmark &rFieldmark) override
 
virtual void DoComboBox (const OUString &rName, const OUString &rHelp, const OUString &ToolTip, const OUString &rSelected, const css::uno::Sequence< OUString > &rListItems) override
 
virtual void DoFormText (const SwInputField *pField) override
 
virtual sal_uLong ReplaceCr (sal_uInt8 nChar) override
 
OString OutputChart (css::uno::Reference< css::frame::XModel > const &xModel, sal_Int32 nCount,::sax_fastparser::FSHelperPtr const &m_pSerializer)
 Returns the relationd id. More...
 
OString WriteOLEObject (SwOLEObj &rObject, OUString &io_rProgID)
 
std::pair< OString, OString > WriteActiveXObject (const uno::Reference< css::drawing::XShape > &rxShape, const uno::Reference< awt::XControlModel > &rxControlModel)
 
void OutputDML (css::uno::Reference< css::drawing::XShape > const &xShape)
 Writes the shape using drawingML syntax. More...
 
void WriteOutliner (const OutlinerParaObject &rOutliner, sal_uInt8 nTyp)
 
virtual ExportFormat GetExportFormat () const override
 
sax_fastparser::XFastAttributeListRef MainXmlNamespaces ()
 All xml namespaces to be used at the top of any text .xml file (main doc, headers, footers,...) More...
 
void WriteMainText ()
 FIXME this is temporary, remotely reminding the method of the same name in WW8Export. More...
 
 DocxExport (DocxExportFilter *pFilter, SwDoc *pDocument, std::shared_ptr< SwUnoCursor > &pCurrentPam, SwPaM *pOriginalPam, bool bDocm, bool bTemplate)
 Pass the pDocument, pCurrentPam and pOriginalPam to the base class. More...
 
virtual ~DocxExport () override
 Destructor. More...
 
oox::vml::VMLExportVMLExporter ()
 Reference to the VMLExport instance for the main document. More...
 
DocxSdrExportSdrExporter ()
 Reference to the DocxSdrExport instance for the main document. More...
 
void setDefaultTabStop (int stop)
 Set the document default tab stop. More...
 
const ::sax_fastparser::FSHelperPtrGetFS () const
 
void SetFS (::sax_fastparser::FSHelperPtr const &mpFS)
 
void SetFloatingTableFrame (const ww8::Frame *pF)
 
- Public Member Functions inherited from MSWordExportBase
ErrCode ExportDocument (bool bWriteAll)
 The main function to export the document. More...
 
void WriteText ()
 Iterate through the nodes and call the appropriate OutputNode() on them. More...
 
bool IsInTable () const
 Return whether currently exported node is in table. More...
 
void WriteSpecialText (sal_uLong nStart, sal_uLong nEnd, sal_uInt8 nTTyp)
 Set the pCurPam appropriately and call WriteText(). More...
 
void ExportPoolItemsToCHP (ww8::PoolItems &rItems, sal_uInt16 nScript, const SvxFontItem *pFont, bool bWriteCombChars=false)
 Export the pool items to attributes (through an attribute output class). More...
 
sal_uInt16 GetNumberingId (const SwNumRule &rNumRule)
 Return the numeric id of the numbering rule. More...
 
sal_uInt16 GetId (const SwTextFormatColl &rColl) const
 Return the numeric id of the style. More...
 
sal_uInt16 GetId (const SwCharFormat *pFormat) const
 Return the numeric id of the style. More...
 
sal_uInt16 GetId (const SwTOXType &rTOXType)
 
sal_uInt16 GetId (const SvxFontItem &rFont)
 Return the numeric id of the font (and add it to the font list if needed) More...
 
void GetId (const wwFont &rFont)
 
const SfxPoolItemGetItem (sal_uInt16 nWhich) const
 
template<class T >
const T & GetItem (TypedWhichId< T > nWhich) const
 
bool HasRefToObject (sal_uInt16 nTyp, const OUString *pName, sal_uInt16 nSeqNo)
 Find the reference. More...
 
void OutputItemSet (const SfxItemSet &rSet, bool bPapFormat, bool bChpFormat, sal_uInt16 nScript, bool bExportParentItemSet)
 Use OutputItem() on an item set according to the parameters. More...
 
SvxFrameDirection GetDefaultFrameDirection () const
 
SvxFrameDirection TrueFrameDirection (const SwFrameFormat &rFlyFormat) const
 Right to left? More...
 
SvxFrameDirection GetCurrentPageDirection () const
 Right to left? More...
 
sal_uInt16 DuplicateNumRule (const SwNumRule *pRule, sal_uInt8 nLevel, sal_uInt16 nVal)
 In case of numbering restart. More...
 
SwNumRuleDuplicateNumRuleImpl (const SwNumRule *pRule)
 
sal_uInt16 DuplicateAbsNum (OUString const &rListId, SwNumRule const &rAbstractRule)
 check if a new abstractNum is needed for this list More...
 
sal_uInt16 OverrideNumRule (SwNumRule const &rExistingRule, OUString const &rListId, SwNumRule const &rAbstractRule)
 Create a overriding numbering definition (if it does not yet exist) More...
 
virtual bool AllowPostponedTextInTable () const
 Text in tables can be postponed except for .doc. More...
 
virtual void AppendSmartTags (SwTextNode &)
 
void OutputFormat (const SwFormat &rFormat, bool bPapFormat, bool bChpFormat, bool bFlyFormat=false)
 Output attributes. More...
 
const SfxItemSetGetCurItemSet () const
 Getter for pISet. More...
 
void SetCurItemSet (const SfxItemSet *pS)
 Setter for pISet. More...
 
virtual void SaveData (sal_uLong nStt, sal_uLong nEnd)
 Remember some of the members so that we can recurse in WriteText(). More...
 
virtual void RestoreData ()
 Restore what was saved in SaveData(). More...
 
bool OutputFollowPageDesc (const SfxItemSet *pSet, const SwTextNode *pNd)
 The return value indicates, if a follow page desc is written. More...
 
void WriteHeaderFooterText (const SwFormat &rFormat, bool bHeader)
 Write header/footer text. More...
 
void OutputSectionBreaks (const SfxItemSet *pSet, const SwNode &rNd, bool isCellOpen=false, bool isTextNodeEmpty=false)
 Start new section. More...
 
void SectionProperties (const WW8_SepInfo &rSectionInfo, WW8_PdAttrDesc *pA=nullptr)
 Write section properties. More...
 
void NumberingDefinitions ()
 Write static data of SwNumRule - LSTF. More...
 
void AbstractNumberingDefinitions ()
 Write all Levels for all SwNumRules - LVLF. More...
 
void NumberingLevel (SwNumRule const &rRule, sal_uInt8 nLvl)
 Write one numbering level. More...
 
void SubstituteBullet (OUString &rNumStr, rtl_TextEncoding &rChrSet, OUString &rFontName) const
 
virtual void SetupSectionPositions (WW8_PdAttrDesc *)
 Setup the pA's info. More...
 
void SetHdFtPageRoot (const SwTextNode *pNd)
 Top node of host page when in header/footer. More...
 
const SwTextNodeGetHdFtPageRoot () const
 Top node of host page when in header/footer. More...
 
bool GetNumberFormat (const SwField &rField, OUString &rStr)
 
const SfxPoolItemHasItem (sal_uInt16 nWhich) const
 
int GetGrfIndex (const SvxBrushItem &rBrush)
 Returns the index of a picture bullet, used in numberings. More...
 
 MSWordExportBase (SwDoc *pDocument, std::shared_ptr< SwUnoCursor > &pCurrentPam, SwPaM *pOriginalPam)
 
virtual ~MSWordExportBase ()
 

Protected Member Functions

virtual ErrCode ExportDocument_Impl () override
 Format-dependent part of the actual export. More...
 
virtual void OutputEndNode (const SwEndNode &) override
 Output SwEndNode. More...
 
virtual void OutputGrfNode (const SwGrfNode &) override
 Output SwGrfNode. More...
 
virtual void OutputOLENode (const SwOLENode &) override
 Output SwOLENode. More...
 
virtual void OutputLinkedOLE (const OUString &) override
 
virtual void AppendSection (const SwPageDesc *pPageDesc, const SwSectionFormat *pFormat, sal_uLong nLnNum) override
 
virtual void SectionBreaksAndFrames (const SwTextNode &) override
 
virtual void PrepareNewPageDesc (const SfxItemSet *pSet, const SwNode &rNd, const SwFormatPageDesc *pNewPgDescFormat, const SwPageDesc *pNewPgDesc) override
 Get ready for a new section. More...
 
- Protected Member Functions inherited from MSWordExportBase
sal_Int32 GetNextPos (SwWW8AttrIter const *pAttrIter, const SwTextNode &rNode, sal_Int32 nCurrentPos)
 Get the next position in the text node to output. More...
 
void UpdatePosition (SwWW8AttrIter *pAttrIter, sal_Int32 nCurrentPos)
 Update the information for GetNextPos(). More...
 
virtual void OutputTextNode (SwTextNode &)
 Output SwTextNode. More...
 
void GatherChapterFields ()
 Setup the chapter fields (maChapterFieldLocs). More...
 
void AddLinkTarget (const OUString &rURL)
 
void CollectOutlineBookmarks (const SwDoc &rDoc)
 
bool SetCurrentPageDescFromNode (const SwNode &rNd)
 
bool ContentContainsChapterField (const SwFormatContent &rContent) const
 
bool FormatHdFtContainsChapterField (const SwFrameFormat &rFormat) const
 
void OutputStartNode (const SwStartNode &)
 Output SwStartNode. More...
 
void OutputSectionNode (const SwSectionNode &)
 Output SwSectionNode. More...
 
void OutputContentNode (SwContentNode &)
 Call the right (virtual) function according to the type of the item. More...
 
bool NearestBookmark (sal_Int32 &rNearest, const sal_Int32 nCurrentPos, bool bNextPositionOnly)
 Find the nearest bookmark from the current position. More...
 
void GetSortedBookmarks (const SwTextNode &rNd, sal_Int32 nCurrentPos, sal_Int32 nLen)
 
bool GetBookmarks (const SwTextNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, IMarkVector &rArr)
 
void NearestAnnotationMark (sal_Int32 &rNearest, const sal_Int32 nCurrentPos, bool bNextPositionOnly)
 Find the nearest annotation mark from the current position. More...
 
void GetSortedAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen)
 
bool GetAnnotationMarks (const SwWW8AttrIter &rAttrs, sal_Int32 nStt, sal_Int32 nEnd, IMarkVector &rArr)
 
const NfKeywordTableGetNfKeywordTable ()
 
void SetCurPam (sal_uLong nStt, sal_uLong nEnd)
 
std::shared_ptr< SvxBrushItemgetBackground ()
 Get background color of the document, if there is one. More...
 
int CollectGrfsOfBullets ()
 Populates m_vecBulletPic with all the bullet graphics used by numberings. More...
 
void BulletDefinitions ()
 Write the numbering picture bullets. More...
 
bool NeedSectionBreak (const SwNode &rNd) const
 
bool NeedTextNodeSplit (const SwTextNode &rNd, SwSoftPageBreakList &pList) const
 

Private Member Functions

void InitStyles ()
 Setup pStyles and write styles.xml. More...
 
void WriteFootnotesEndnotes ()
 Write footnotes.xml and endnotes.xml. More...
 
void WritePostitFields ()
 Write comments.xml. More...
 
virtual void WriteNumbering () override
 Write the numbering table. More...
 
void WriteHeaderFooter (const SwFormat *pFormat, bool bHeader, const char *pType)
 Write reference to a header/footer + the actual xml containing the text. More...
 
void WriteFonts ()
 Write word/fontTable.xml. More...
 
void WriteProperties ()
 Write docProps/core.xml. More...
 
void WriteSettings ()
 Write word/settings.xml. More...
 
void WriteTheme ()
 Write word/theme/theme1.xml. More...
 
void WriteGlossary ()
 
void WriteCustomXml ()
 Write customXml/item[n].xml and customXml/itemProps[n].xml. More...
 
void WriteEmbeddings ()
 Write word/embeddings/Worksheet[n].xlsx. More...
 
void WriteVBA ()
 Writes word/vbaProject.bin. More...
 
bool isMirroredMargin ()
 return true if Page Layout is set as Mirrored More...
 
 DocxExport (const DocxExport &)=delete
 
DocxExportoperator= (const DocxExport &)=delete
 

Private Attributes

DocxExportFilterm_pFilter
 Pointer to the filter that owns us. More...
 
::sax_fastparser::FSHelperPtr m_pDocumentFS
 Fast serializer for the document output. More...
 
::sax_fastparser::FSHelperPtr mpFS
 Fast serializer to output the data. More...
 
std::unique_ptr< oox::drawingml::DrawingMLm_pDrawingML
 Access to the DrawingML writer. More...
 
std::unique_ptr< DocxAttributeOutputm_pAttrOutput
 Attribute output for document. More...
 
std::unique_ptr< MSWordSectionsm_pSections
 Sections/headers/footers. More...
 
sal_Int32 m_nHeaders
 Header counter. More...
 
sal_Int32 m_nFooters
 Footer counter. More...
 
sal_Int32 m_nOLEObjects
 OLE objects counter. More...
 
sal_Int32 m_nActiveXControls
 ActiveX controls counter. More...
 
sal_Int32 m_nHeadersFootersInSection
 Footer and Header counter in Section properties. More...
 
std::unique_ptr< oox::vml::VMLExportm_pVMLExport
 Exporter of the VML shapes. More...
 
std::unique_ptr< DocxSdrExportm_pSdrExport
 Exporter of drawings. More...
 
bool const m_bDocm
 If the result will be a .docm file or not. More...
 
bool const m_bTemplate
 Export is done into template (.dotx) More...
 
DocxSettingsData m_aSettings
 
const ww8::Framem_pFloatingTableFrame = nullptr
 Pointer to the Frame of a floating table it is nested in. More...
 

Additional Inherited Members

- Public Types inherited from MSWordExportBase
enum  ExportFormat {
  DOC = 0,
  RTF = 1,
  DOCX = 2
}
 
typedef std::vector< ::sw::mark::IMark * > IMarkVector
 Used to split the runs according to the bookmarks start and ends. More...
 
- Static Public Member Functions inherited from MSWordExportBase
static OUString GetBookmarkName (sal_uInt16 nTyp, const OUString *pName, sal_uInt16 nSeqNo)
 Find the bookmark name. More...
 
static const SwSectionFormatGetSectionFormat (const SwNode &rNd)
 Format of the section. More...
 
static sal_uLong GetSectionLineNo (const SfxItemSet *pSet, const SwNode &rNd)
 Line number of the section start. More...
 
static bool NoPageBreakSection (const SfxItemSet *pSet)
 
static void CorrectTabStopInSet (SfxItemSet &rSet, sal_Int32 nAbsLeft)
 
- Public Attributes inherited from MSWordExportBase
wwFontHelper m_aFontHelper
 
std::vector< sal_uLongm_aChapterFieldLocs
 
OUString const m_aMainStg
 
std::vector< const SwTOXType * > m_aTOXArr
 
const SfxItemSetm_pISet
 
WW8_WrPctm_pPiece
 
std::unique_ptr< SwNumRuleTablem_pUsedNumTable
 
std::map< size_t, std::pair< size_t, size_t > > m_OverridingNums
 overriding numdef index -> (existing numdef index, abstractnumdef index) More...
 
std::map< std::pair< size_t, size_t >, size_t > m_OverridingNumsR
 same in reverse More...
 
std::map< OUString, size_t > m_Lists
 list-id -> abstractnumdef index More...
 
const SwTextNodem_pTopNodeOfHdFtPage
 Top node of host page when in hd/ft. More...
 
std::map< sal_uInt16, sal_uInt16 > m_aRuleDuplicates
 
std::stack< sal_Int32 > m_aCurrentCharPropStarts
 To remember the position in a run. More...
 
WW8_WrtBookmarksm_pBkmks
 
WW8_WrtRedlineAuthorm_pRedlAuthors
 
std::shared_ptr< NfKeywordTablem_pKeyMap
 
std::unique_ptr< SvxMSExportOLEObjectsm_pOLEExp
 
std::unique_ptr< SwMSConvertControlsm_pOCXExp
 
WW8OleMap m_aOleMap
 
ww8::WW8TableInfo::Pointer_t m_pTableInfo
 
sal_uInt16 m_nCharFormatStart
 
sal_uInt16 m_nFormatCollStart
 
sal_uInt16 m_nStyleBeforeFly
 style number of the node More...
 
sal_uInt16 m_nLastFormatId
 Style of last TextNode in normal range. More...
 
sal_uInt16 m_nUniqueList
 current number for creating unique list names More...
 
unsigned int m_nHdFtIndex
 
RedlineFlags m_nOrigRedlineFlags
 Remember the original redline mode. More...
 
bool m_bOrigShowChanges
 Remember the original Show Changes mode. More...
 
std::vector< aBookmarkPairm_aImplicitBookmarks
 
ww8::Frames m_aFrames
 
const SwPageDescm_pCurrentPageDesc
 
bool m_bPrevTextNodeIsEmpty
 
bool m_bFirstTOCNodeWithSection
 
std::unique_ptr< WW8_WrPlcPnm_pPapPlc
 
std::unique_ptr< WW8_WrPlcPnm_pChpPlc
 
MSWordAttrIterm_pChpIter
 
std::unique_ptr< MSWordStylesm_pStyles
 
WW8_WrPlcAnnotationsm_pAtn
 
std::unique_ptr< WW8_WrtFactoidsm_pFactoids
 
WW8_WrPlcTextBoxesm_pTextBxs
 
WW8_WrPlcTextBoxesm_pHFTextBxs
 
std::map< OUString, LinkedTextboxInfom_aLinkedTextboxesHelper
 
bool m_bLinkedTextboxesHelperInitialized = false
 
sal_Int32 m_nLinkedTextboxesChainId =0
 
const ww8::Framem_pParentFrame
 
Pointm_pFlyOffset
 
RndStdIds m_eNewAnchorType
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldMain
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldHdFt
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldFootnote
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldEdn
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldAtn
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldTextBxs
 
std::unique_ptr< WW8_WrPlcFieldm_pFieldHFTextBxs
 
std::unique_ptr< WW8_WrMagicTablem_pMagicTable
 
std::unique_ptr< SwWW8WrGrfm_pGrf
 
const SwAttrSetm_pStyAttr
 
const SwModifym_pOutFormatNode
 
const SwFormatm_pCurrentStyle
 
MainTextPlcDrawObjm_pSdrObjs
 
HdFtPlcDrawObjm_pHFSdrObjs
 
SwEscherExm_pEscher
 
sal_uInt8 m_nTextTyp
 
bool m_bStyDef: 1
 
bool m_bBreakBefore: 1
 
bool m_bOutKF: 1
 
bool m_bOutFlyFrameAttrs: 1
 
bool m_bOutPageDescs: 1
 PageDescs (section properties) are being written. More...
 
bool m_bOutFirstPage: 1
 
bool m_bOutTable: 1
 
bool m_bOutGrf: 1
 
bool m_bInWriteEscher: 1
 
bool m_bStartTOX: 1
 
bool m_bInWriteTOX: 1
 
bool m_bFootnoteAtTextEnd: 1
 
bool m_bEndAtTextEnd: 1
 
bool m_bHasHdr: 1
 
bool m_bHasFtr: 1
 
bool m_bSubstituteBullets: 1
 
bool m_bTabInTOC: 1
 
bool m_bHideTabLeaderAndPageNumbers: 1
 
bool m_bExportModeRTF
 
bool m_bFontSizeWritten
 Is font size written already as part of the current character properties? More...
 
bool m_bAddFootnoteTab
 
SwDocm_pDoc
 
sal_uLong m_nCurStart
 
sal_uLong m_nCurEnd
 
std::shared_ptr< SwUnoCursor > & m_pCurPam
 
SwPaMm_pOrigPam
 
std::stack< MSWordSaveDatam_aSaveData
 Stack to remember the nesting (see MSWordSaveData for more) More...
 
IMarkVector m_rSortedBookmarksStart
 
IMarkVector m_rSortedBookmarksEnd
 
IMarkVector m_rSortedAnnotationMarksStart
 
IMarkVector m_rSortedAnnotationMarksEnd
 
- Static Protected Member Functions inherited from MSWordExportBase
static void UpdateTocSectionNodeProperties (const SwSectionNode &rSectionNode)
 
- Protected Attributes inherited from MSWordExportBase
std::vector< const Graphic * > m_vecBulletPic
 Vector to record all the graphics of bullets. More...
 

Detailed Description

The class that does all the actual DOCX export-related work.

Definition at line 65 of file docxexport.hxx.

Constructor & Destructor Documentation

DocxExport::DocxExport ( DocxExportFilter pFilter,
SwDoc pDocument,
std::shared_ptr< SwUnoCursor > &  pCurrentPam,
SwPaM pOriginalPam,
bool  bDocm,
bool  bTemplate 
)
DocxExport::~DocxExport ( )
overridevirtual

Destructor.

Definition at line 1672 of file docxexport.cxx.

DocxExport::DocxExport ( const DocxExport )
privatedelete

Member Function Documentation

OString DocxExport::AddRelation ( const OUString &  rType,
const OUString &  rTarget 
)

Returns the relationd id.

Definition at line 223 of file docxexport.cxx.

References sId.

virtual bool DocxExport::AddSectionBreaksForTOX ( ) const
inlineoverridevirtual

Determines the Section Breaks are to be added for TOX Section.

Implements MSWordExportBase.

Definition at line 137 of file docxexport.hxx.

void DocxExport::AppendAnnotationMarks ( const SwWW8AttrIter rAttrs,
sal_Int32  nCurrentPos,
sal_Int32  nLen 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 193 of file docxexport.cxx.

void DocxExport::AppendBookmark ( const OUString &  rName)
overridevirtual

Implements MSWordExportBase.

Definition at line 182 of file docxexport.cxx.

void DocxExport::AppendBookmarks ( const SwTextNode rNode,
sal_Int32  nCurrentPos,
sal_Int32  nLen 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 152 of file docxexport.cxx.

References aStr, and SwTextNode::GetText().

void DocxExport::AppendSection ( const SwPageDesc pPageDesc,
const SwSectionFormat pFormat,
sal_uLong  nLnNum 
)
overrideprotectedvirtual

Implements MSWordExportBase.

Definition at line 548 of file docxexport.cxx.

References msword::PageBreak.

AttributeOutputBase & DocxExport::AttrOutput ( ) const
overridevirtual

Access to the attribute output class.

Implements MSWordExportBase.

Definition at line 103 of file docxexport.cxx.

bool DocxExport::CollapseScriptsforWordOk ( sal_uInt16  nScript,
sal_uInt16  nWhich 
)
overridevirtual
bool DocxExport::DisallowInheritingOutlineNumbering ( const SwFormat rFormat)
overridevirtual

Return value indicates if an inherited outline numbering is suppressed.

Implements MSWordExportBase.

Definition at line 231 of file docxexport.cxx.

References SwFormat::DerivedFrom(), FSNS(), SwFormat::GetItemState(), and RES_PARATR_NUMRULE.

void DocxExport::DoComboBox ( const OUString &  rName,
const OUString &  rHelp,
const OUString &  ToolTip,
const OUString &  rSelected,
const css::uno::Sequence< OUString > &  rListItems 
)
overridevirtual

Implements MSWordExportBase.

Definition at line 333 of file docxexport.cxx.

References comphelper::findValue(), FSNS(), and nId.

DocxAttributeOutput & DocxExport::DocxAttrOutput ( ) const

Access to the derived attribute output class.

Definition at line 108 of file docxexport.cxx.

void DocxExport::DoFormText ( const SwInputField pField)
overridevirtual

Implements MSWordExportBase.

Definition at line 374 of file docxexport.cxx.

References ww::eFILLIN, FieldString(), and SwInputField::GetPar2().

ErrCode DocxExport::ExportDocument_Impl ( )
overrideprotectedvirtual

Format-dependent part of the actual export.

Implements MSWordExportBase.

Definition at line 505 of file docxexport.cxx.

References ERRCODE_NONE, On, and oox::drawingml::DrawingML::ResetCounters().

void DocxExport::ExportGrfBullet ( const SwTextNode )
overridevirtual

Implements MSWordExportBase.

Definition at line 217 of file docxexport.cxx.

virtual bool DocxExport::FieldsQuoted ( ) const
inlineoverridevirtual

Determines if the import filter already quoted fields or not.

Implements MSWordExportBase.

Definition at line 135 of file docxexport.hxx.

virtual ExportFormat DocxExport::GetExportFormat ( ) const
inlineoverridevirtual

Implements MSWordExportBase.

Definition at line 196 of file docxexport.hxx.

DocxExportFilter& DocxExport::GetFilter ( )
inline

Definition at line 119 of file docxexport.hxx.

References m_pFilter.

const DocxExportFilter& DocxExport::GetFilter ( ) const
inline

Definition at line 120 of file docxexport.hxx.

References m_pFilter.

const ww8::Frame* DocxExport::GetFloatingTableFrame ( ) const
inline

Definition at line 122 of file docxexport.hxx.

References m_pFloatingTableFrame.

const ::sax_fastparser::FSHelperPtr& DocxExport::GetFS ( ) const
inline

Definition at line 290 of file docxexport.hxx.

References mpFS.

bool DocxExport::ignoreAttributeForStyleDefaults ( sal_uInt16  ) const
overridevirtual

Used to filter out attributes that can be e.g. written to .doc but not to .docx.

Reimplemented from MSWordExportBase.

Definition at line 1546 of file docxexport.cxx.

References MSWordExportBase::ignoreAttributeForStyleDefaults(), RES_PARATR_HYPHENZONE, and RES_TEXTGRID.

void DocxExport::InitStyles ( )
private

Setup pStyles and write styles.xml.

Definition at line 643 of file docxexport.cxx.

References oox::getRelationship().

bool DocxExport::isMirroredMargin ( )
private

return true if Page Layout is set as Mirrored

Definition at line 1472 of file docxexport.cxx.

References Mirror.

XFastAttributeListRef DocxExport::MainXmlNamespaces ( )

All xml namespaces to be used at the top of any text .xml file (main doc, headers, footers,...)

Definition at line 1528 of file docxexport.cxx.

References sax_fastparser::FastAttributeList::add(), sax_fastparser::FastSerializerHelper::createAttrList(), FSNS(), and OUStringToOString().

DocxExport& DocxExport::operator= ( const DocxExport )
privatedelete
OString DocxExport::OutputChart ( css::uno::Reference< css::frame::XModel > const &  xModel,
sal_Int32  nCount,
::sax_fastparser::FSHelperPtr const &  m_pSerializer 
)
void DocxExport::OutputDML ( css::uno::Reference< css::drawing::XShape > const &  xShape)

Writes the shape using drawingML syntax.

Definition at line 493 of file docxexport.cxx.

References oox::drawingml::DOCUMENT_DOCX, and oox::drawingml::ShapeExport::WriteShape().

void DocxExport::OutputEndNode ( const SwEndNode rEndNode)
overrideprotectedvirtual
void DocxExport::OutputField ( const SwField pField,
ww::eField  eFieldType,
const OUString &  rFieldCmd,
FieldFlags  nMode = FieldFlags::All 
)
overridevirtual

Write the field.

Implements MSWordExportBase.

Definition at line 316 of file docxexport.cxx.

void DocxExport::OutputGrfNode ( const SwGrfNode )
overrideprotectedvirtual

Output SwGrfNode.

Implements MSWordExportBase.

Definition at line 597 of file docxexport.cxx.

References SAL_INFO.

void DocxExport::OutputLinkedOLE ( const OUString &  )
overrideprotectedvirtual

Implements MSWordExportBase.

Definition at line 607 of file docxexport.cxx.

void DocxExport::OutputOLENode ( const SwOLENode )
overrideprotectedvirtual

Output SwOLENode.

Implements MSWordExportBase.

Definition at line 602 of file docxexport.cxx.

References SAL_INFO.

virtual bool DocxExport::PreferPageBreakBefore ( ) const
inlineoverridevirtual

If saving page break is preferred as a paragraph attribute (yes) or as a special character (no).

Implements MSWordExportBase.

Definition at line 141 of file docxexport.hxx.

void DocxExport::PrepareNewPageDesc ( const SfxItemSet pSet,
const SwNode rNd,
const SwFormatPageDesc pNewPgDescFormat,
const SwPageDesc pNewPgDesc 
)
overrideprotectedvirtual

Get ready for a new section.

Implements MSWordExportBase.

Definition at line 619 of file docxexport.cxx.

References msword::PageBreak.

sal_uLong DocxExport::ReplaceCr ( sal_uInt8  nChar)
overridevirtual

Implements MSWordExportBase.

Definition at line 612 of file docxexport.cxx.

DocxSdrExport& DocxExport::SdrExporter ( )
inline

Reference to the DocxSdrExport instance for the main document.

Definition at line 285 of file docxexport.hxx.

References m_pSdrExport.

virtual void DocxExport::SectionBreaksAndFrames ( const SwTextNode )
inlineoverrideprotectedvirtual

Implements MSWordExportBase.

Definition at line 215 of file docxexport.hxx.

MSWordSections & DocxExport::Sections ( ) const
overridevirtual

Access to the sections/headers/footres.

Implements MSWordExportBase.

Definition at line 113 of file docxexport.cxx.

void DocxExport::setDefaultTabStop ( int  stop)
inline

Set the document default tab stop.

Definition at line 288 of file docxexport.hxx.

References DocxSettingsData::defaultTabStop.

void DocxExport::SetFloatingTableFrame ( const ww8::Frame pF)
inline

Definition at line 294 of file docxexport.hxx.

void DocxExport::SetFS ( ::sax_fastparser::FSHelperPtr const &  mpFS)

Definition at line 1603 of file docxexport.cxx.

Referenced by DocxExport().

virtual bool DocxExport::SupportsOneColumnBreak ( ) const
inlineoverridevirtual

Determines if column break with one column should be exported or not.

Implements MSWordExportBase.

Definition at line 133 of file docxexport.hxx.

oox::vml::VMLExport& DocxExport::VMLExporter ( )
inline

Reference to the VMLExport instance for the main document.

Definition at line 282 of file docxexport.hxx.

References m_pVMLExport.

std::pair< OString, OString > DocxExport::WriteActiveXObject ( const uno::Reference< css::drawing::XShape > &  rxShape,
const uno::Reference< awt::XControlModel > &  rxControlModel 
)
virtual void DocxExport::WriteChar ( sal_Unicode  )
inlineoverridevirtual

Implements MSWordExportBase.

Definition at line 158 of file docxexport.hxx.

virtual void DocxExport::WriteCR ( ww8::WW8TableNodeInfoInner::Pointer_t  )
inlineoverridevirtual

Implements MSWordExportBase.

Definition at line 157 of file docxexport.hxx.

void DocxExport::WriteCustomXml ( )
private

Write customXml/item[n].xml and customXml/itemProps[n].xml.

Definition at line 1291 of file docxexport.cxx.

References aName, for(), comphelper::getProcessComponentContext(), oox::getRelationship(), and UNO_NAME_MISC_OBJ_INTEROPGRABBAG.

void DocxExport::WriteEmbeddings ( )
private

Write word/embeddings/Worksheet[n].xlsx.

Definition at line 1409 of file docxexport.cxx.

References aName, for(), TOOLS_WARN_EXCEPTION, and UNO_NAME_MISC_OBJ_INTEROPGRABBAG.

void DocxExport::WriteFonts ( )
private

Write word/fontTable.xml.

Definition at line 854 of file docxexport.cxx.

References FSNS(), and oox::getRelationship().

void DocxExport::WriteFootnotesEndnotes ( )
private

Write footnotes.xml and endnotes.xml.

Definition at line 666 of file docxexport.cxx.

References oox::getRelationship().

void DocxExport::WriteFormData ( const ::sw::mark::IFieldmark rFieldmark)
overridevirtual

Write the data of the form field.

Implements MSWordExportBase.

Definition at line 321 of file docxexport.cxx.

void DocxExport::WriteGlossary ( )
private
void DocxExport::WriteHeaderFooter ( const SwFormat pFormat,
bool  bHeader,
const char *  pType 
)
private

Write reference to a header/footer + the actual xml containing the text.

Definition at line 778 of file docxexport.cxx.

References aName, FSNS(), and oox::getRelationship().

void DocxExport::WriteHeadersFooters ( sal_uInt8  nHeadFootFlags,
const SwFrameFormat rFormat,
const SwFrameFormat rLeftFormat,
const SwFrameFormat rFirstPageFormat,
sal_uInt8  nBreakCode 
)
overridevirtual
void DocxExport::WriteHyperlinkData ( const ::sw::mark::IFieldmark rFieldmark)
overridevirtual

Implements MSWordExportBase.

Definition at line 326 of file docxexport.cxx.

void DocxExport::WriteMainText ( )

FIXME this is temporary, remotely reminding the method of the same name in WW8Export.

Definition at line 1482 of file docxexport.cxx.

References msfilter::util::ConvertColor(), and FSNS().

void DocxExport::WriteNumbering ( )
overrideprivatevirtual

Write the numbering table.

Implements MSWordExportBase.

Definition at line 743 of file docxexport.cxx.

References FSNS(), and oox::getRelationship().

OString DocxExport::WriteOLEObject ( SwOLEObj rObject,
OUString &  io_rProgID 
)
void DocxExport::WriteOutliner ( const OutlinerParaObject rOutliner,
sal_uInt8  nTyp 
)
void DocxExport::WritePostitFields ( )
private

Write comments.xml.

Definition at line 723 of file docxexport.cxx.

References oox::getRelationship().

void DocxExport::WriteProperties ( )
private

Write docProps/core.xml.

Definition at line 880 of file docxexport.cxx.

References SfxObjectShell::IsSecurityOptOpenReadOnly().

Referenced by DocxExport().

void DocxExport::WriteSettings ( )
private
void DocxExport::WriteTheme ( )
private

Write word/theme/theme1.xml.

Definition at line 1189 of file docxexport.cxx.

References aName, comphelper::getProcessComponentContext(), oox::getRelationship(), if(), and UNO_NAME_MISC_OBJ_INTEROPGRABBAG.

void DocxExport::WriteVBA ( )
private

Writes word/vbaProject.bin.

Definition at line 1350 of file docxexport.cxx.

References utl::UcbStreamHelper::CreateStream(), and oox::getRelationship().

Member Data Documentation

DocxSettingsData DocxExport::m_aSettings
private

Definition at line 112 of file docxexport.hxx.

bool const DocxExport::m_bDocm
private

If the result will be a .docm file or not.

Definition at line 107 of file docxexport.hxx.

Referenced by DocxExport().

bool const DocxExport::m_bTemplate
private

Export is done into template (.dotx)

Definition at line 110 of file docxexport.hxx.

Referenced by DocxExport().

sal_Int32 DocxExport::m_nActiveXControls
private

ActiveX controls counter.

Definition at line 95 of file docxexport.hxx.

sal_Int32 DocxExport::m_nFooters
private

Footer counter.

Definition at line 89 of file docxexport.hxx.

sal_Int32 DocxExport::m_nHeaders
private

Header counter.

Definition at line 86 of file docxexport.hxx.

sal_Int32 DocxExport::m_nHeadersFootersInSection
private

Footer and Header counter in Section properties.

Definition at line 98 of file docxexport.hxx.

sal_Int32 DocxExport::m_nOLEObjects
private

OLE objects counter.

Definition at line 92 of file docxexport.hxx.

std::unique_ptr<DocxAttributeOutput> DocxExport::m_pAttrOutput
private

Attribute output for document.

Definition at line 80 of file docxexport.hxx.

Referenced by DocxExport().

::sax_fastparser::FSHelperPtr DocxExport::m_pDocumentFS
private

Fast serializer for the document output.

Definition at line 71 of file docxexport.hxx.

Referenced by DocxExport().

std::unique_ptr<oox::drawingml::DrawingML> DocxExport::m_pDrawingML
private

Access to the DrawingML writer.

Definition at line 77 of file docxexport.hxx.

Referenced by DocxExport().

DocxExportFilter* DocxExport::m_pFilter
private

Pointer to the filter that owns us.

Definition at line 68 of file docxexport.hxx.

Referenced by DocxExport(), and GetFilter().

const ww8::Frame* DocxExport::m_pFloatingTableFrame = nullptr
private

Pointer to the Frame of a floating table it is nested in.

Definition at line 115 of file docxexport.hxx.

Referenced by GetFloatingTableFrame().

std::unique_ptr<DocxSdrExport> DocxExport::m_pSdrExport
private

Exporter of drawings.

Definition at line 104 of file docxexport.hxx.

Referenced by DocxExport(), and SdrExporter().

std::unique_ptr<MSWordSections> DocxExport::m_pSections
private

Sections/headers/footers.

Definition at line 83 of file docxexport.hxx.

std::unique_ptr<oox::vml::VMLExport> DocxExport::m_pVMLExport
private

Exporter of the VML shapes.

Definition at line 101 of file docxexport.hxx.

Referenced by DocxExport(), and VMLExporter().

::sax_fastparser::FSHelperPtr DocxExport::mpFS
private

Fast serializer to output the data.

Definition at line 74 of file docxexport.hxx.

Referenced by GetFS().


The documentation for this class was generated from the following files: