20 #ifndef INCLUDED_SW_SOURCE_FILTER_WW8_RTFEXPORT_HXX
21 #define INCLUDED_SW_SOURCE_FILTER_WW8_RTFEXPORT_HXX
75 sal_Int32 nLen)
override;
105 void WriteFormData(const ::sw::mark::IFieldmark& rFieldmark)
override;
108 void DoComboBox(
const OUString& rName,
const OUString& rHelp,
const OUString& ToolTip,
109 const OUString& rSelected,
110 const css::uno::Sequence<OUString>& rListItems)
override;
152 SwPaM& rOriginalPam,
Writer* pWriter,
bool bOutOutlineOnly =
false);
173 m_eCurrentEncoding = eCurrentEncoding;
188 void OutUnicode(
const char* pToken,
const OUString& rContent,
bool bUpr =
false);
189 void OutDateTime(
const char* pStr,
const css::util::DateTime& rDT);
196 sal_uInt16
GetRedline(
const OUString& rAuthor);
199 void InsStyle(sal_uInt16 nId,
const OString& rStyle);
222 bool bTitlepg =
false);
233 #endif // INCLUDED_SW_SOURCE_FILTER_WW8_RTFEXPORT_HXX
RtfExport & operator=(const RtfExport &)=delete
std::unique_ptr< SvMemoryStream > m_pStream
If set, then Strm() returns this stream, instead of m_pWriter's stream.
SvStream & OutULong(sal_uLong nVal)
std::unique_ptr< RtfAttributeOutput > m_pAttrOutput
Attribute output for document.
Class to collect and output the sections/headers/footers.
OString * GetStyle(sal_uInt16 nId)
void WriteHeaderFooter(const SfxPoolItem &rItem, bool bHeader)
void OutputEndNode(const SwEndNode &rEndNode) override
Output SwEndNode.
rtl_TextEncoding m_eCurrentEncoding
void SectionBreaksAndFrames(const SwTextNode &) override
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
MSWordSections * m_pSections
Sections/headers/footers.
void DoComboBox(const OUString &rName, const OUString &rHelp, const OUString &ToolTip, const OUString &rSelected, const css::uno::Sequence< OUString > &rListItems) override
rtl_TextEncoding GetCurrentEncoding() const
RtfColorTable m_aColTable
void OutputGrfNode(const SwGrfNode &rGrfNode) override
Output SwGrfNode.
AttributeOutputBase & AttrOutput() const override
Access to the attribute output class.
ExportFormat GetExportFormat() const override
Base class of all fields.
void WriteNumbering() override
Write the numbering table.
void DoFormText(const SwInputField *pField) override
bool GetRTFFlySyntax() const
std::map< sal_uInt16, Color > RtfColorTable
rtl_TextEncoding GetDefaultEncoding() const
rtl_TextEncoding m_eDefaultEncoding
sal_uInt16 GetRedline(const OUString &rAuthor)
void OutputField(const SwField *pField, ww::eField eFieldType, const OUString &rFieldCmd, FieldFlags nMode=FieldFlags::All) override
Write the field.
bool PreferPageBreakBefore() const override
If saving page break is preferred as a paragraph attribute (yes) or as a special character (no)...
bool FieldsQuoted() const override
Determines if the import filter already quoted fields or not.
void AppendBookmarks(const SwTextNode &rNode, sal_Int32 nCurrentPos, sal_Int32 nLen) override
void InsStyle(sal_uInt16 nId, const OString &rStyle)
The class that does all the actual RTF export-related work.
void InsColorLine(const SvxBoxItem &rBox)
bool AddSectionBreaksForTOX() const override
Determines the Section Breaks are to be added for TOX Section.
void WriteCR(ww8::WW8TableNodeInfoInner::Pointer_t) override
void WriteUserPropType(int nType)
Writes a single user property type.
The class that has handlers for various resource types when exporting as RTF.
void OutputTextNode(SwTextNode &rNode) override
Output SwTextNode is depending on outline export mode.
const SfxItemSet * m_pFirstPageItemSet
Item set of the first page during export of a follow page format.
void OutputLinkedOLE(const OUString &rLink) override
bool DisallowInheritingOutlineNumbering(const SwFormat &rFormat) override
Return value indicates if an inherited outline numbering is suppressed.
bool CollapseScriptsforWordOk(sal_uInt16 nScript, sal_uInt16 nWhich) override
Guess the script (asian/western).
RtfExportFilter * m_pFilter
Pointer to the filter that owns us.
void InsColor(const Color &rCol)
PaM is Point and Mark: a selection of the document model.
void SetCurrentEncoding(rtl_TextEncoding eCurrentEncoding)
std::map< sal_uInt16, OString > m_aStyTable
void WriteFormData(const ::sw::mark::IFieldmark &rFieldmark) override
Write the data of the form field.
bool m_bRTFFlySyntax
This is used by OutputFlyFrame_Impl() to control the written syntax.
void WriteHeadersFooters(sal_uInt8 nHeadFootFlags, const SwFrameFormat &rFormat, const SwFrameFormat &rLeftFormat, const SwFrameFormat &rFirstPageFormat, sal_uInt8 nBreakCode) override
Output the actual headers and footers.
void WriteUserProps()
Writes the userprops group: user defined document properties.
void setStream()
From now on, let Strm() return a memory stream, not a real one.
void AppendBookmark(const OUString &rName) override
void WriteRevTab()
Write the revision table.
void OutPageDescription(const SwPageDesc &rPgDsc, bool bCheckForFirstPage)
void WriteChar(sal_Unicode c) override
MSWordSections & Sections() const override
Access to the sections/headers/footres.
Handles export of drawings using RTF markup.
const SfxItemSet * GetFirstPageItemSet() const
void OutDateTime(const char *pStr, const css::util::DateTime &rDT)
void AppendSection(const SwPageDesc *pPageDesc, const SwSectionFormat *pFormat, sal_uLong nLnNum) override
void WriteFootnoteSettings()
SwTextNode is a paragraph in the document model.
OString getStream()
Get the contents of the memory stream as a string.
void SetRTFFlySyntax(bool bRTFFlySyntax)
void resetStream()
Return back to the real stream.
SvStream & OutLong(tools::Long nVal)
std::unique_ptr< RtfSdrExport > m_pSdrExport
void BuildNumbering()
This is necessary to have the numbering table ready before the main text is being processed...
void OutputOLENode(const SwOLENode &rOLENode) override
Output SwOLENode.
~RtfExport() override
Destructor.
ErrCode ExportDocument_Impl() override
Format-dependent part of the actual export.
RtfExport(RtfExportFilter *pFilter, SwDoc &rDocument, std::shared_ptr< SwUnoCursor > &pCurrentPam, SwPaM &rOriginalPam, Writer *pWriter, bool bOutOutlineOnly=false)
Pass the pDocument, pCurrentPam and pOriginalPam to the base class.
void ExportGrfBullet(const SwTextNode &rNd) override
sal_uLong GetCurrentNodeIndex() const
sal_uLong ReplaceCr(sal_uInt8 nChar) override
void AppendAnnotationMarks(const SwWW8AttrIter &rAttrs, sal_Int32 nCurrentPos, sal_Int32 nLen) override
void WriteHyperlinkData(const ::sw::mark::IFieldmark &rFieldmark) override
RtfSdrExport & SdrExporter() const
Access to the Rtf Sdr exporter.
Base class for WW8Export and DocxExport.
sal_uInt16 GetColor(const Color &rColor) const
Ends a section of nodes in the document model.
void OutUnicode(const char *pToken, const OUString &rContent, bool bUpr=false)
void PrepareNewPageDesc(const SfxItemSet *pSet, const SwNode &rNd, const SwFormatPageDesc *pNewPgDescFormat, const SwPageDesc *pNewPgDesc) override
Get ready for a new section.
void WritePageDescTable()
Writes the writer-specific group.
std::map< OUString, sal_uInt16 > m_aRedlineTable
sal_uLong m_nCurrentNodeIndex
Index of the current SwTextNode, if any.
The physical access to the RTF document (for writing).
void WriteUserPropValue(const OUString &rValue)
Writes a single user property value.
Base class of the Writer document model elements.