LibreOffice Module sw (master) 1
|
#include <shellio.hxx>
Public Member Functions | |
Writer () | |
virtual | ~Writer () override |
virtual ErrCode | Write (SwPaM &, SfxMedium &, const OUString *) |
ErrCode | Write (SwPaM &, SvStream &, const OUString *) |
virtual ErrCode | Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) |
virtual ErrCode | Write (SwPaM &, SotStorage &, const OUString *) |
virtual void | SetupFilterOptions (SfxMedium &rMedium) |
virtual bool | IsStgWriter () const |
void | SetShowProgress (bool bFlag) |
const OUString * | GetOrigFileName () const |
const SwAsciiOptions & | GetAsciiOptions () const |
void | SetAsciiOptions (const SwAsciiOptions &rOpt) |
const OUString & | GetBaseURL () const |
sal_Int32 | FindPos_Bkmk (const SwPosition &rPos) const |
void | CreateBookmarkTable () |
bool | GetBookmarks (const SwContentNode &rNd, sal_Int32 nStt, sal_Int32 nEnd, std::vector< const ::sw::mark::IMark * > &rArr) |
bool | CopyLocalFileToINet (OUString &rFileNm) |
void | SetStream (SvStream *const pStream) |
SvStream & | Strm () |
void | SetOrganizerMode (bool bSet) |
Public Member Functions inherited from SvRefBase | |
SvRefBase () | |
SvRefBase (const SvRefBase &) | |
SvRefBase & | operator= (const SvRefBase &) |
void | RestoreNoDelete () |
void | AddNextRef () |
void | AddFirstRef () |
void | ReleaseRef () |
unsigned int | GetRefCount () const |
Static Public Member Functions | |
static std::shared_ptr< SwUnoCursor > | NewUnoCursor (SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx) |
Public Attributes | |
SwDoc * | m_pDoc |
SwPaM * | m_pOrigPam |
std::shared_ptr< SwUnoCursor > | m_pCurrentPam |
bool | m_bWriteAll: 1 |
bool | m_bShowProgress: 1 |
bool | m_bWriteClipboardDoc: 1 |
bool | m_bWriteOnlyFirstTable: 1 |
bool | m_bASCII_ParaAsCR: 1 |
bool | m_bASCII_ParaAsBlank: 1 |
bool | m_bASCII_NoLastLineEnd: 1 |
bool | m_bUCS2_WithStartChar: 1 |
bool | m_bExportParagraphNumbering: 1 |
bool | m_bBlock: 1 |
bool | m_bOrganizerMode: 1 |
bool | m_bHideDeleteRedlines: 1 |
Protected Member Functions | |
void | ResetWriter () |
bool | CopyNextPam (SwPaM **) |
void | PutNumFormatFontsInAttrPool () |
void | PutEditEngFontsInAttrPool () |
virtual ErrCode | WriteStream ()=0 |
void | SetBaseURL (const OUString &rURL) |
IDocumentSettingAccess & | getIDocumentSettingAccess () |
const IDocumentSettingAccess & | getIDocumentSettingAccess () const |
IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () |
const IDocumentStylePoolAccess & | getIDocumentStylePoolAccess () const |
Protected Member Functions inherited from SvRefBase | |
virtual | ~SvRefBase () COVERITY_NOEXCEPT_FALSE |
Protected Attributes | |
const OUString * | m_pOrigFileName |
Private Member Functions | |
void | AddFontItem (SfxItemPool &rPool, const SvxFontItem &rFont) |
void | AddFontItems_ (SfxItemPool &rPool, sal_uInt16 nWhichId) |
Writer (Writer const &)=delete | |
Writer & | operator= (Writer const &)=delete |
Private Attributes | |
SwAsciiOptions | m_aAsciiOptions |
OUString | m_sBaseURL |
std::unique_ptr< Writer_Impl > | m_pImpl |
Definition at line 373 of file shellio.hxx.
|
privatedelete |
Writer::Writer | ( | ) |
Definition at line 96 of file writer.cxx.
References m_bASCII_NoLastLineEnd, m_bASCII_ParaAsBlank, m_bASCII_ParaAsCR, m_bBlock, m_bExportParagraphNumbering, m_bOrganizerMode, m_bShowProgress, m_bUCS2_WithStartChar, m_bWriteAll, m_bWriteClipboardDoc, m_bWriteOnlyFirstTable, and m_pImpl.
|
overridevirtual |
Definition at line 108 of file writer.cxx.
|
private |
Definition at line 375 of file writer.cxx.
References m_pImpl, SfxItemPool::Put(), SfxItemPool::Remove(), and RES_CHRATR_FONT().
Referenced by AddFontItems_(), and PutNumFormatFontsInAttrPool().
|
private |
Definition at line 362 of file writer.cxx.
References AddFontItem(), SfxItemPool::GetDefaultItem(), SfxItemPool::GetItemSurrogates(), and SfxItemPool::GetPoolDefaultItem().
Referenced by PutEditEngFontsInAttrPool().
bool Writer::CopyLocalFileToINet | ( | OUString & | rFileNm | ) |
Definition at line 264 of file writer.cxx.
References SfxMedium::Close(), SfxMedium::Commit(), ERRCODE_NONE, SfxMedium::GetError(), SfxMedium::GetInStream(), SfxMedium::GetOutStream(), INetURLObject::GetPartBeforeLastName(), INetURLObject::GetProtocol(), m_pImpl, m_pOrigFileName, and SvStream::WriteStream().
Referenced by SwHTMLWriter::OutBackground(), OutCSS1_SvxBrush(), OutHTML_BulletImage(), and OutHTML_FrameFormatGrfNode().
|
protected |
Definition at line 141 of file writer.cxx.
References SwPaM::GetNext(), m_pCurrentPam, and m_pOrigPam.
Referenced by SwHTMLWriter::Out_SwDoc(), and SwASCWriter::WriteStream().
void Writer::CreateBookmarkTable | ( | ) |
Definition at line 397 of file writer.cxx.
References SwDoc::getIDocumentMarkAccess(), and m_pDoc.
Referenced by WW8Export::ExportDocument_Impl().
sal_Int32 Writer::FindPos_Bkmk | ( | const SwPosition & | rPos | ) | const |
Definition at line 160 of file writer.cxx.
References IDocumentMarkAccess::findFirstBookmarkStartsAfter(), IDocumentMarkAccess::getBookmarksBegin(), IDocumentMarkAccess::getBookmarksEnd(), SwDoc::getIDocumentMarkAccess(), and m_pDoc.
Referenced by SwHTMLWriter::Out_SwDoc(), and HTMLSaveData::~HTMLSaveData().
|
inline |
Definition at line 440 of file shellio.hxx.
Referenced by OutASC_SwTextNode(), SwASCWriter::SwASCWriter(), and SwASCWriter::WriteStream().
|
inline |
Definition at line 443 of file shellio.hxx.
Referenced by WW8AttributeOutput::AnalyzeURL(), SwHTMLWriter::convertHyperlinkHRefValue(), lcl_html_OutSectionStartTag(), SwHTMLWriter::MakeHeader(), SwHTMLWriter::OutBackground(), SwHTMLWriter::OutBasic(), OutCSS1_SvxBrush(), OutHTML_BulletImage(), OutHTML_DrawFrameFormatAsControl(), OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), OutHTML_ImageOLEStart(), OutHTML_ImageStart(), OutHTML_SwFormatField(), WW8AttributeOutput::StartURL(), WW8Export::TestOleNeedsGraphic(), and SwXMLWriter::Write_().
bool Writer::GetBookmarks | ( | const SwContentNode & | rNd, |
sal_Int32 | nStt, | ||
sal_Int32 | nEnd, | ||
std::vector< const ::sw::mark::IMark * > & | rArr | ||
) |
Definition at line 409 of file writer.cxx.
References SwNode::GetIndex(), SwContentNode::Len(), and m_pImpl.
|
protected |
Definition at line 115 of file writer.cxx.
References SwDoc::getIDocumentSettingAccess(), and m_pDoc.
|
protected |
Definition at line 116 of file writer.cxx.
References SwDoc::getIDocumentSettingAccess(), and m_pDoc.
|
protected |
Definition at line 117 of file writer.cxx.
References SwDoc::getIDocumentStylePoolAccess(), and m_pDoc.
Referenced by SwHTMLWriter::OutStyleSheet(), and SwHTMLWriter::WriteStream().
|
protected |
Definition at line 118 of file writer.cxx.
References SwDoc::getIDocumentStylePoolAccess(), and m_pDoc.
|
inline |
Definition at line 438 of file shellio.hxx.
Referenced by OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatGrfNode(), OutHTML_FrameFormatOLENodeGrf(), and OutHTML_ImageOLEStart().
|
virtual |
|
static |
Definition at line 170 of file writer.cxx.
References SwDoc::CreateUnoCursor(), SwNode::GetContentNode(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNodes::GoNext(), and SwNodes::GoPrevious().
Referenced by HTMLSaveData::HTMLSaveData(), MSWordExportBase::SetCurPam(), SwTranslateHelper::TranslateDocumentCancellable(), and SwASCWriter::WriteStream().
|
protected |
Definition at line 351 of file writer.cxx.
References AddFontItems_(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), SwDoc::GetAttrPool(), SfxItemPool::GetSecondaryPool(), and m_pDoc.
Referenced by SwXMLWriter::Write_().
|
protected |
Definition at line 309 of file writer.cxx.
References AddFontItem(), SwNumRule::Get(), SwDoc::GetAttrPool(), SvxNumberFormat::GetBulletFont(), numfunc::GetDefBulletFont(), SvxNumberType::GetNumberingType(), SwDoc::GetNumRuleTable(), SwDoc::IsUsed(), m_pDoc, MAXLEVEL, RES_CHRATR_FONT(), SwVectorModifyBase< Value >::size(), SVX_NUM_BITMAP, and SVX_NUM_CHAR_SPECIAL.
Referenced by SwXMLWriter::Write_().
|
protected |
Definition at line 120 of file writer.cxx.
References m_bASCII_NoLastLineEnd, m_bASCII_ParaAsBlank, m_bASCII_ParaAsCR, m_bBlock, m_bOrganizerMode, m_bShowProgress, m_bUCS2_WithStartChar, m_bWriteClipboardDoc, m_bWriteOnlyFirstTable, m_pCurrentPam, m_pDoc, m_pImpl, and m_pOrigFileName.
Referenced by StgWriter::Write(), and Write().
|
inline |
Definition at line 441 of file shellio.hxx.
Referenced by SwASCWriter::SetupFilterOptions(), and SwASCWriter::SwASCWriter().
|
inlineprotected |
Definition at line 398 of file shellio.hxx.
Referenced by SwHTMLWriter::SwHTMLWriter(), SwWW8Writer::SwWW8Writer(), and SwXMLWriter::SwXMLWriter().
|
inline |
Definition at line 467 of file shellio.hxx.
|
inline |
Definition at line 436 of file shellio.hxx.
void Writer::SetStream | ( | SvStream *const | pStream | ) |
Definition at line 199 of file writer.cxx.
References m_pImpl.
Referenced by WW8Export::ExportDocument_Impl(), RtfExportFilter::filter(), StgWriter::Write(), and SwHTMLWriter::WriteStream().
|
virtual |
Reimplemented in SwASCWriter, and SwHTMLWriter.
Definition at line 241 of file writer.cxx.
Referenced by Write().
SvStream & Writer::Strm | ( | ) |
Definition at line 193 of file writer.cxx.
References m_pImpl.
Referenced by SwHTMLWriter::ChangeParaToken(), lcl_html_outFootEndNoteInfo(), lcl_html_OutSectionEndTag(), lcl_html_OutSectionStartTag(), SwHTMLWriter::MakeHeader(), SwHTMLWriter::OutAnchor(), SwHTMLWriter::OutAndSetDefList(), OutASC_SwTextNode(), SwHTMLWriter::OutBackground(), SwHTMLWriter::OutBasic(), SwHTMLWriter::OutBasicBodyEvents(), OutBodyColor(), OutCSS1_BodyTagStyleOpt(), SwHTMLWriter::OutCSS1_FrameFormatOptions(), OutCSS1_HintSpanTag(), OutCSS1_HintStyleOpt(), OutCSS1_NumberBulletListStyleOpt(), SwHTMLWriter::OutCSS1_Property(), SwHTMLWriter::OutCSS1_SectionFormatOptions(), SwHTMLWriter::OutCSS1_SfxItemSet(), OutCSS1_SvxBox(), OutCSS1_SwFootnoteInfo(), OutCSS1_SwFormatDrop(), OutCSS1_SwFormatDropAttrs(), OutCSS1_SwPageDesc(), OutCSS1_TableBGStyleOpt(), SwHTMLWriter::OutCSS1_TableCellBordersAndBG(), SwHTMLWriter::OutCSS1_TableFrameFormatOptions(), SwHTMLWriter::OutDirection(), SwHTMLWriter::OutFlyFrame(), SwHTMLWriter::OutFootEndNotes(), SwHTMLWriter::OutFootEndNoteSym(), SwHTMLWriter::OutFrameFormat(), SwHTMLWriter::OutFrameFormatOptions(), SwHTMLWriter::OutHiddenControls(), OutHTML_BulletImage(), OutHTML_DrawFrameFormatAsControl(), OutHTML_DrawFrameFormatAsMarquee(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsImage(), OutHTML_FrameFormatAsMulticol(), OutHTML_FrameFormatAsSpacer(), OutHTML_FrameFormatGrfNode(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), OutHTML_HeaderFooter(), OutHTML_ImageOLEEnd(), OutHTML_ImageOLEStart(), OutHTML_INetFormat(), OutHTML_NumberBulletListEnd(), OutHTML_NumberBulletListStart(), OutHTML_SvxAdjust(), OutHTML_SvxColor(), OutHTML_SvxEscapement(), OutHTML_SvxFont(), OutHTML_SvxFontHeight(), OutHTML_SvxLanguage(), OutHTML_SwBlink(), OutHTML_SwCrossedOut(), OutHTML_SwField(), OutHTML_SwFormat(), OutHTML_SwFormatField(), OutHTML_SwFormatFootnote(), OutHTML_SwFormatLineBreak(), OutHTML_SwFormatOff(), OutHTML_SwPosture(), OutHTML_SwTableNode(), OutHTML_SwTextCharFormat(), OutHTML_SwTextNode(), OutHTML_SwUnderline(), OutHTML_SwWeight(), SwHTMLWriter::OutHyperlinkHRefValue(), SwHTMLWriter::OutLanguage(), SwHTMLWriter::OutNewLine(), SwHTMLWriter::OutPointFieldmarks(), SwHTMLWriter::OutStyleSheet(), RtfExport::Strm(), WW8Export::Strm(), SwASCWriter::WriteStream(), and SwHTMLWriter::WriteStream().
|
virtual |
Reimplemented in StgWriter, StgWriter, SwWW8Writer, and SwXMLWriter.
References Write.
Reimplemented in StgWriter, SwWW8Writer, and SwXMLWriter.
Definition at line 244 of file writer.cxx.
References SfxMedium::GetOutStream(), SetupFilterOptions(), and Write().
Referenced by SwXMLWriter::Write(), and Write().
|
virtual |
Reimplemented in StgWriter, StgWriter, SwWW8Writer, and SwXMLWriter.
Definition at line 252 of file writer.cxx.
References ERR_SWG_WRITE_ERROR.
Definition at line 204 of file writer.cxx.
References SwDoc::CreateUnoCursor(), SwPaM::End(), ERRCODE_ABORT, ERRCODE_NONE, SwPaM::GetDoc(), IsStgWriter(), m_pCurrentPam, m_pDoc, m_pImpl, m_pOrigFileName, m_pOrigPam, ResetWriter(), rStrm, SwPaM::Start(), TOOLS_WARN_EXCEPTION, Write(), and WriteStream().
|
protectedpure virtual |
Implemented in StgWriter, SwASCWriter, SwHTMLWriter, and RtfWriter.
Referenced by Write().
|
private |
Definition at line 376 of file shellio.hxx.
bool Writer::m_bASCII_NoLastLineEnd |
Definition at line 416 of file shellio.hxx.
Referenced by OutASC_SwTextNode(), ResetWriter(), and Writer().
bool Writer::m_bASCII_ParaAsBlank |
Definition at line 415 of file shellio.hxx.
Referenced by OutASC_SwTextNode(), ResetWriter(), Writer(), and SwASCWriter::WriteStream().
bool Writer::m_bASCII_ParaAsCR |
Definition at line 414 of file shellio.hxx.
Referenced by ResetWriter(), Writer(), and SwASCWriter::WriteStream().
bool Writer::m_bBlock |
Definition at line 420 of file shellio.hxx.
Referenced by ResetWriter(), SwXMLWriter::Write_(), and Writer().
bool Writer::m_bExportParagraphNumbering |
Definition at line 418 of file shellio.hxx.
Referenced by OutASC_SwTextNode(), and Writer().
bool Writer::m_bHideDeleteRedlines |
Definition at line 422 of file shellio.hxx.
bool Writer::m_bOrganizerMode |
Definition at line 421 of file shellio.hxx.
Referenced by ResetWriter(), SwXMLWriter::Write_(), and Writer().
bool Writer::m_bShowProgress |
Definition at line 411 of file shellio.hxx.
Referenced by SwHTMLWriter::Out_SwDoc(), ResetWriter(), SwXMLWriter::Write_(), Writer(), SwASCWriter::WriteStream(), and SwHTMLWriter::WriteStream().
bool Writer::m_bUCS2_WithStartChar |
Definition at line 417 of file shellio.hxx.
Referenced by ResetWriter(), Writer(), and SwASCWriter::WriteStream().
bool Writer::m_bWriteAll |
Definition at line 410 of file shellio.hxx.
Referenced by SwHTMLWriter::CollectFlyFrames(), HTMLSaveData::HTMLSaveData(), SwHTMLWriter::Out_SwDoc(), OutHTML_SwTextNode(), WW8Export::RestoreData(), WW8Export::SaveData(), Writer(), SwWW8Writer::WriteStorageImpl(), SwASCWriter::WriteStream(), SwHTMLWriter::WriteStream(), and HTMLSaveData::~HTMLSaveData().
bool Writer::m_bWriteClipboardDoc |
Definition at line 412 of file shellio.hxx.
Referenced by OutASC_SwTextNode(), ResetWriter(), Writer(), and SwHTMLWriter::WriteStream().
bool Writer::m_bWriteOnlyFirstTable |
Definition at line 413 of file shellio.hxx.
Referenced by ResetWriter(), RtfExport::WriteMainText(), Writer(), and SwHTMLWriter::WriteStream().
std::shared_ptr<SwUnoCursor> Writer::m_pCurrentPam |
Definition at line 409 of file shellio.hxx.
Referenced by SwHTMLWriter::AddLinkTarget(), SwHTMLWriter::CollectFlyFrames(), CopyNextPam(), SwHTMLWriter::FillNextNumInfo(), SwHTMLWriter::HasControls(), HTMLSaveData::HTMLSaveData(), SwHTMLWriter::MakeHeader(), SwHTMLWriter::Out_SwDoc(), OutASC_SwTextNode(), SwHTMLWriter::OutBookmarks(), OutCSS1_SvxFormatBreak_SwFormatPDesc_SvxFormatKeep(), SwHTMLWriter::OutFootEndNotes(), SwHTMLWriter::OutForm(), SwHTMLWriter::OutHeaderAttrs(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsMulticol(), OutHTML_HeaderFooter(), OutHTML_NumberBulletListStart(), OutHTML_Section(), OutHTML_SwFormat(), OutHTML_SwTableNode(), OutHTML_SwTextNode(), ResetWriter(), StgWriter::Write(), Write(), SwWW8Writer::WriteStorageImpl(), SwASCWriter::WriteStream(), SwHTMLWriter::WriteStream(), and HTMLSaveData::~HTMLSaveData().
SwDoc* Writer::m_pDoc |
Definition at line 407 of file shellio.hxx.
Referenced by SwHTMLWriter::AddLinkTarget(), SwHTMLWriter::CollectFlyFrames(), SwHTMLWriter::CollectLinkTargets(), CreateBookmarkTable(), SwHTMLWriter::FillNextNumInfo(), FindPos_Bkmk(), SwHTMLWriter::GetControls(), SwHTMLWriter::GetFootEndNoteSym(), getIDocumentSettingAccess(), getIDocumentStylePoolAccess(), SwHTMLWriter::GuessFrameType(), HTMLSaveData::HTMLSaveData(), lcl_html_IsMultiColEnd(), lcl_html_IsMultiColStart(), SwHTMLWriter::MakeHeader(), SwHTMLWriter::Out_SwDoc(), SwHTMLWriter::OutBasic(), SwHTMLWriter::OutBasicBodyEvents(), SwHTMLWriter::OutBookmarks(), SwHTMLWriter::OutCSS1_FrameFormatBackground(), OutCSS1DropCapRule(), SwHTMLWriter::OutFootEndNoteInfo(), SwHTMLWriter::OutFootEndNoteSym(), SwHTMLWriter::OutForm(), SwHTMLWriter::OutHeaderAttrs(), SwHTMLWriter::OutHiddenForms(), OutHTML_DrawFrameFormatAsControl(), OutHTML_DrawFrameFormatAsMarquee(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsMulticol(), OutHTML_FrameFormatGrfNode(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), OutHTML_FrameFormatTableNode(), OutHTML_HeaderFooter(), OutHTML_INetFormat(), OutHTML_NumberBulletListStart(), OutHTML_SwField(), OutHTML_SwFormat(), OutHTML_SwFormatField(), OutHTML_SwFormatFootnote(), OutHTML_SwTableNode(), OutHTML_SwTextNode(), SwHTMLWriter::OutPointFieldmarks(), SwHTMLWriter::OutStyleSheet(), PutEditEngFontsInAttrPool(), PutNumFormatFontsInAttrPool(), ResetWriter(), StgWriter::Write(), Write(), SwXMLWriter::Write_(), SwWW8Writer::WriteStorageImpl(), SwASCWriter::WriteStream(), and SwHTMLWriter::WriteStream().
|
private |
Definition at line 382 of file shellio.hxx.
Referenced by AddFontItem(), CopyLocalFileToINet(), GetBookmarks(), SwWW8Writer::getIDocumentSettingAccess(), ResetWriter(), SetStream(), Strm(), and Write().
|
protected |
Definition at line 389 of file shellio.hxx.
Referenced by CopyLocalFileToINet(), ResetWriter(), StgWriter::Write(), Write(), and SwXMLWriter::Write_().
SwPaM* Writer::m_pOrigPam |
Definition at line 408 of file shellio.hxx.
Referenced by CopyNextPam(), OutASC_SwTextNode(), StgWriter::Write(), Write(), SwWW8Writer::WriteStorageImpl(), SwASCWriter::WriteStream(), and SwHTMLWriter::WriteStream().
|
private |
Definition at line 377 of file shellio.hxx.