LibreOffice Module sw (master)  1
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
Writer Class Referenceabstract

#include <shellio.hxx>

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

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 SwAsciiOptionsGetAsciiOptions () 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)
 
SvStreamStrm ()
 
void SetOrganizerMode (bool bSet)
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Static Public Member Functions

static std::shared_ptr< SwUnoCursorNewUnoCursor (SwDoc &rDoc, sal_uLong const nStartIdx, sal_uLong const nEndIdx)
 
static SvStreamOutLong (SvStream &rStrm, long nVal)
 
static SvStreamOutULong (SvStream &rStrm, sal_uLong nVal)
 

Public Attributes

SwDocm_pDoc
 
SwPaMm_pOrigPam
 
std::shared_ptr< SwUnoCursorm_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_bExportPargraphNumbering: 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)
 
IDocumentSettingAccessgetIDocumentSettingAccess ()
 
const IDocumentSettingAccessgetIDocumentSettingAccess () const
 
IDocumentStylePoolAccessgetIDocumentStylePoolAccess ()
 
const IDocumentStylePoolAccessgetIDocumentStylePoolAccess () 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
 
Writeroperator= (Writer const &)=delete
 

Private Attributes

SwAsciiOptions m_aAsciiOptions
 
OUString m_sBaseURL
 
std::unique_ptr< Writer_Implm_pImpl
 

Detailed Description

Definition at line 367 of file shellio.hxx.

Constructor & Destructor Documentation

Writer::Writer ( Writer const &  )
privatedelete
Writer::Writer ( )
Writer::~Writer ( )
overridevirtual

Definition at line 132 of file writer.cxx.

Member Function Documentation

void Writer::AddFontItem ( SfxItemPool rPool,
const SvxFontItem rFont 
)
private
void Writer::AddFontItems_ ( SfxItemPool rPool,
sal_uInt16  nWhichId 
)
private
bool Writer::CopyLocalFileToINet ( OUString &  rFileNm)
bool Writer::CopyNextPam ( SwPaM **  ppPam)
protected

Definition at line 165 of file writer.cxx.

References SwPaM::GetNext(), m_pCurrentPam, and m_pOrigPam.

Referenced by SwHTMLWriter::Out_SwDoc(), and SwASCWriter::WriteStream().

void Writer::CreateBookmarkTable ( )
sal_Int32 Writer::FindPos_Bkmk ( const SwPosition rPos) const
const SwAsciiOptions& Writer::GetAsciiOptions ( ) const
inline
const OUString& Writer::GetBaseURL ( ) const
inline
bool Writer::GetBookmarks ( const SwContentNode rNd,
sal_Int32  nStt,
sal_Int32  nEnd,
std::vector< const ::sw::mark::IMark * > &  rArr 
)

Definition at line 449 of file writer.cxx.

References SwNode::GetIndex(), SwContentNode::Len(), and m_pImpl.

IDocumentSettingAccess & Writer::getIDocumentSettingAccess ( )
protected

Definition at line 139 of file writer.cxx.

References SwDoc::getIDocumentSettingAccess(), and m_pDoc.

const IDocumentSettingAccess & Writer::getIDocumentSettingAccess ( ) const
protected

Definition at line 140 of file writer.cxx.

References SwDoc::getIDocumentSettingAccess(), and m_pDoc.

IDocumentStylePoolAccess & Writer::getIDocumentStylePoolAccess ( )
protected

Definition at line 141 of file writer.cxx.

References SwDoc::getIDocumentStylePoolAccess(), and m_pDoc.

Referenced by SwHTMLWriter::WriteStream().

const IDocumentStylePoolAccess & Writer::getIDocumentStylePoolAccess ( ) const
protected

Definition at line 142 of file writer.cxx.

References SwDoc::getIDocumentStylePoolAccess(), and m_pDoc.

const OUString* Writer::GetOrigFileName ( ) const
inline
bool Writer::IsStgWriter ( ) const
virtual

Reimplemented in StgWriter.

Definition at line 206 of file fltini.cxx.

Referenced by Write().

std::shared_ptr< SwUnoCursor > Writer::NewUnoCursor ( SwDoc rDoc,
sal_uLong const  nStartIdx,
sal_uLong const  nEndIdx 
)
static
Writer& Writer::operator= ( Writer const &  )
privatedelete
SvStream & Writer::OutLong ( SvStream rStrm,
long  nVal 
)
static

Definition at line 229 of file writer.cxx.

Referenced by RtfExport::OutLong().

SvStream & Writer::OutULong ( SvStream rStrm,
sal_uLong  nVal 
)
static

Definition at line 238 of file writer.cxx.

Referenced by RtfExport::OutULong().

void Writer::PutEditEngFontsInAttrPool ( )
protected
void Writer::PutNumFormatFontsInAttrPool ( )
protected
void Writer::ResetWriter ( )
protected
void Writer::SetAsciiOptions ( const SwAsciiOptions rOpt)
inline

Definition at line 435 of file shellio.hxx.

Referenced by SwASCWriter::SwASCWriter().

void Writer::SetBaseURL ( const OUString &  rURL)
inlineprotected
void Writer::SetOrganizerMode ( bool  bSet)
inline

Definition at line 465 of file shellio.hxx.

void Writer::SetShowProgress ( bool  bFlag)
inline

Definition at line 430 of file shellio.hxx.

void Writer::SetStream ( SvStream *const  pStream)
void Writer::SetupFilterOptions ( SfxMedium rMedium)
virtual

Reimplemented in SwHTMLWriter.

Definition at line 280 of file writer.cxx.

Referenced by Write().

SvStream & Writer::Strm ( )

Definition at line 218 of file writer.cxx.

References m_pImpl.

Referenced by lcl_html_outFootEndNoteInfo(), lcl_html_OutSectionEndTag(), lcl_html_OutSectionStartTag(), SwHTMLWriter::MakeHeader(), SwHTMLWriter::OutAnchor(), OutASC_SwTextNode(), SwASC_AttrIter::OutAttr(), SwHTMLWriter::OutBackground(), SwHTMLWriter::OutBasic(), SwHTMLWriter::OutBasicBodyEvents(), OutBodyColor(), OutCSS1_BodyTagStyleOpt(), OutCSS1_HintSpanTag(), OutCSS1_HintStyleOpt(), OutCSS1_NumBulListStyleOpt(), OutCSS1_SvxBox(), OutCSS1_SwFootnoteInfo(), OutCSS1_SwFormatDrop(), OutCSS1_SwFormatDropAttrs(), OutCSS1_SwPageDesc(), OutCSS1_TableBGStyleOpt(), SwHTMLWriter::OutDirection(), HTMLEndPosLst::OutEndAttrs(), SwHTMLWriter::OutFootEndNotes(), SwHTMLWriter::OutFootEndNoteSym(), SwHTMLWriter::OutHiddenControls(), OutHTML_BulletImage(), OutHTML_DrawFrameFormatAsControl(), OutHTML_DrawFrameFormatAsMarquee(), OutHTML_FrameFormatAsDivOrSpan(), OutHTML_FrameFormatAsMulticol(), OutHTML_FrameFormatAsSpacer(), OutHTML_FrameFormatGrfNode(), OutHTML_FrameFormatOLENode(), OutHTML_FrameFormatOLENodeGrf(), OutHTML_HeaderFooter(), OutHTML_Image(), OutHTML_INetFormat(), OutHTML_NumBulListEnd(), OutHTML_NumBulListStart(), 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_SwFormatOff(), OutHTML_SwPosture(), OutHTML_SwTableNode(), OutHTML_SwTextCharFormat(), OutHTML_SwTextNode(), OutHTML_SwUnderline(), OutHTML_SwWeight(), SwHTMLWriter::OutHyperlinkHRefValue(), SwHTMLWriter::OutLanguage(), SwHTMLWriter::OutNewLine(), SwHTMLWriter::OutPointFieldmarks(), HTMLEndPosLst::OutStartAttrs(), SwHTMLWrtTable::OutTableCell(), SwHTMLWrtTable::OutTableCells(), RtfExport::Strm(), WW8Export::Strm(), SwHTMLWrtTable::Write(), SwASCWriter::WriteStream(), and SwHTMLWriter::WriteStream().

ErrCode Writer::Write ( SwPaM rPam,
SfxMedium rMedium,
const OUString *  pFileName 
)
virtual

Reimplemented in SwWW8Writer, and SwXMLWriter.

Definition at line 283 of file writer.cxx.

References SfxMedium::GetOutStream(), and SetupFilterOptions().

Referenced by Write().

ErrCode Writer::Write ( SwPaM rPaM,
SvStream rStrm,
const OUString *  pFName 
)
virtual ErrCode Writer::Write ( SwPaM ,
const css::uno::Reference< css::embed::XStorage > &  ,
const OUString *  ,
SfxMedium = nullptr 
)
virtual

Reimplemented in StgWriter.

ErrCode Writer::Write ( SwPaM ,
SotStorage ,
const OUString *   
)
virtual

Reimplemented in StgWriter.

Definition at line 291 of file writer.cxx.

References ERR_SWG_WRITE_ERROR.

virtual ErrCode Writer::WriteStream ( )
protectedpure virtual

Implemented in SwRTFWriter, StgWriter, SwHTMLWriter, RtfWriter, and SwASCWriter.

Referenced by Write().

Member Data Documentation

SwAsciiOptions Writer::m_aAsciiOptions
private

Definition at line 370 of file shellio.hxx.

bool Writer::m_bASCII_NoLastLineEnd

Definition at line 410 of file shellio.hxx.

Referenced by OutASC_SwTextNode(), ResetWriter(), and Writer().

bool Writer::m_bASCII_ParaAsBlank

Definition at line 409 of file shellio.hxx.

Referenced by OutASC_SwTextNode(), ResetWriter(), Writer(), and SwASCWriter::WriteStream().

bool Writer::m_bASCII_ParaAsCR

Definition at line 408 of file shellio.hxx.

Referenced by ResetWriter(), Writer(), and SwASCWriter::WriteStream().

bool Writer::m_bBlock

Definition at line 414 of file shellio.hxx.

Referenced by ResetWriter(), SwXMLWriter::Write_(), and Writer().

bool Writer::m_bExportPargraphNumbering

Definition at line 412 of file shellio.hxx.

Referenced by OutASC_SwTextNode(), and Writer().

bool Writer::m_bHideDeleteRedlines

Definition at line 416 of file shellio.hxx.

bool Writer::m_bOrganizerMode

Definition at line 415 of file shellio.hxx.

Referenced by ResetWriter(), SwXMLWriter::Write_(), and Writer().

bool Writer::m_bShowProgress
bool Writer::m_bUCS2_WithStartChar

Definition at line 411 of file shellio.hxx.

Referenced by ResetWriter(), Writer(), and SwASCWriter::WriteStream().

bool Writer::m_bWriteAll
bool Writer::m_bWriteClipboardDoc

Definition at line 406 of file shellio.hxx.

Referenced by OutASC_SwTextNode(), ResetWriter(), Writer(), and SwHTMLWriter::WriteStream().

bool Writer::m_bWriteOnlyFirstTable
std::shared_ptr<SwUnoCursor> Writer::m_pCurrentPam
SwDoc* Writer::m_pDoc
std::unique_ptr<Writer_Impl> Writer::m_pImpl
private
const OUString* Writer::m_pOrigFileName
protected
SwPaM* Writer::m_pOrigPam
OUString Writer::m_sBaseURL
private

Definition at line 371 of file shellio.hxx.


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