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

#include <wrtxml.hxx>

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

Public Member Functions

 SwXMLWriter (const OUString &rBaseURL)
 
virtual ~SwXMLWriter () override
 
virtual ErrCode Write (SwPaM &, SfxMedium &, const OUString *) override
 
- Public Member Functions inherited from StgWriter
 StgWriter ()
 
virtual bool IsStgWriter () const override
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *) override
 
SotStorageGetStorage () const
 
- Public Member Functions inherited from Writer
 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
 

Protected Member Functions

virtual ErrCode WriteStorage () override
 
virtual ErrCode WriteMedium (SfxMedium &aTargetMedium) override
 
- Protected Member Functions inherited from StgWriter
virtual ErrCode WriteStream () override
 
virtual ErrCode WriteStorage ()=0
 
virtual ErrCode WriteMedium (SfxMedium &)=0
 
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 *)
 
- Protected Member Functions inherited from Writer
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
 

Private Member Functions

ErrCode Write_ (const SfxItemSet *pMediumItemSet)
 
bool WriteThroughComponent (const css::uno::Reference< css::lang::XComponent > &xComponent, const char *pStreamName, const css::uno::Reference< css::uno::XComponentContext > &rFactory, const char *pServiceName, const css::uno::Sequence< css::uno::Any > &rArguments, const css::uno::Sequence< css::beans::PropertyValue > &rMediaDesc)
 
virtual ErrCode Write (SwPaM &, const css::uno::Reference< css::embed::XStorage > &, const OUString *, SfxMedium *=nullptr) override
 
virtual ErrCode Write (SwPaM &, SotStorage &, const OUString *) override
 

Static Private Member Functions

static bool WriteThroughComponent (const css::uno::Reference< css::io::XOutputStream > &xOutputStream, const css::uno::Reference< css::lang::XComponent > &xComponent, const css::uno::Reference< css::uno::XComponentContext > &rFactory, const char *pServiceName, const css::uno::Sequence< css::uno::Any > &rArguments, const css::uno::Sequence< css::beans::PropertyValue > &rMediaDesc)
 

Additional Inherited Members

- Static Public Member Functions inherited from Writer
static std::shared_ptr< SwUnoCursorNewUnoCursor (SwDoc &rDoc, SwNodeOffset const nStartIdx, SwNodeOffset const nEndIdx)
 
- Public Attributes inherited from Writer
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_bExportParagraphNumbering: 1
 
bool m_bBlock: 1
 
bool m_bOrganizerMode: 1
 
bool m_bHideDeleteRedlines: 1
 
- Protected Attributes inherited from StgWriter
tools::SvRef< SotStoragem_pStg
 
css::uno::Reference< css::embed::XStorage > m_xStg
 
- Protected Attributes inherited from Writer
const OUString * m_pOrigFileName
 

Detailed Description

Definition at line 40 of file wrtxml.hxx.

Constructor & Destructor Documentation

◆ SwXMLWriter()

SwXMLWriter::SwXMLWriter ( const OUString &  rBaseURL)

Definition at line 73 of file wrtxml.cxx.

References Writer::SetBaseURL().

◆ ~SwXMLWriter()

SwXMLWriter::~SwXMLWriter ( )
overridevirtual

Definition at line 78 of file wrtxml.cxx.

Member Function Documentation

◆ Write() [1/3]

virtual ErrCode StgWriter::Write ( SwPaM ,
const css::uno::Reference< css::embed::XStorage > &  ,
const OUString *  ,
SfxMedium = nullptr 
)
overrideprivatevirtual

Reimplemented from StgWriter.

◆ Write() [2/3]

ErrCode SwXMLWriter::Write ( SwPaM rPaM,
SfxMedium rMed,
const OUString *  pFileName 
)
overridevirtual

Reimplemented from Writer.

Definition at line 473 of file wrtxml.cxx.

References SfxMedium::GetOutputStorage(), SfxMedium::GetOutStream(), StgWriter::IsStgWriter(), Writer::Write(), and Write().

Referenced by Write().

◆ Write() [3/3]

ErrCode StgWriter::Write ( SwPaM rPaM,
SotStorage rStg,
const OUString *  pFName 
)
overrideprivatevirtual

Reimplemented from StgWriter.

Definition at line 492 of file writer.cxx.

◆ Write_()

ErrCode SwXMLWriter::Write_ ( const SfxItemSet pMediumItemSet)
private

Definition at line 82 of file wrtxml.cxx.

References aName, Any, SvXMLEmbeddedObjectHelper::Create(), SvXMLGraphicHelper::Create(), utl::UcbStreamHelper::CreateStream(), ERR_SWG_WRITE_ERROR, ERR_WRITE_ERROR_FILE, ERRCODE_NONE, xmloff::FixZOrder(), comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< typename T >::get(), sw::proofreadingiterator::get(), Writer::GetBaseURL(), SfxObjectShell::GetCreateMode(), IDocumentLayoutAccess::GetCurrentLayout(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDocShell(), IDocumentStatistics::GetDocStat(), SwDoc::getIDocumentDrawModelAccess(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentStatistics(), SfxItemSet::GetItem(), SfxObjectShell::GetModel(), SwDoc::GetPersist(), comphelper::getProcessComponentContext(), IDocumentRedlineAccess::GetRedlineFlags(), SfxUnoAnyItem::GetValue(), CntUnencodedStringItem::GetValue(), SfxBoolItem::GetValue(), SotStorage::GetVersion(), SwRootFrame::HasMergedParas(), docfunc::HasOutlineStyleToBeWrittenAsNormalListStyle(), SwRootFrame::IsHideRedlines(), Writer::m_bBlock, Writer::m_bOrganizerMode, Writer::m_bShowProgress, Writer::m_pDoc, Writer::m_pOrigFileName, StgWriter::m_xStg, SwDocStat::nPage, ODFVER_010_TEXT, ODFVER_011_TEXT, Writer::PutEditEngFontsInAttrPool(), Writer::PutNumFormatFontsInAttrPool(), IDocumentMarkAccess::restoreAnnotationMarks(), IDocumentRedlineAccess::SetRedlineFlags(), ShowInsert, ShowMask, SOFFICE_FILEFORMAT_60, SwResId(), Version, WARN_SWG_FEATURES_LOST, WARN_WRITE_ERROR_FILE, SwDoc::WriteLayoutCache(), and WriteThroughComponent().

Referenced by WriteMedium(), and WriteStorage().

◆ WriteMedium()

ErrCode SwXMLWriter::WriteMedium ( SfxMedium aTargetMedium)
overrideprotectedvirtual

Implements StgWriter.

Definition at line 468 of file wrtxml.cxx.

References SfxMedium::GetItemSet(), and Write_().

◆ WriteStorage()

ErrCode SwXMLWriter::WriteStorage ( )
overrideprotectedvirtual

Implements StgWriter.

Definition at line 463 of file wrtxml.cxx.

References Write_().

◆ WriteThroughComponent() [1/2]

static bool SwXMLWriter::WriteThroughComponent ( const css::uno::Reference< css::io::XOutputStream > &  xOutputStream,
const css::uno::Reference< css::lang::XComponent > &  xComponent,
const css::uno::Reference< css::uno::XComponentContext > &  rFactory,
const char *  pServiceName,
const css::uno::Sequence< css::uno::Any > &  rArguments,
const css::uno::Sequence< css::beans::PropertyValue > &  rMediaDesc 
)
staticprivate

◆ WriteThroughComponent() [2/2]

bool SwXMLWriter::WriteThroughComponent ( const css::uno::Reference< css::lang::XComponent > &  xComponent,
const char *  pStreamName,
const css::uno::Reference< css::uno::XComponentContext > &  rFactory,
const char *  pServiceName,
const css::uno::Sequence< css::uno::Any > &  rArguments,
const css::uno::Sequence< css::beans::PropertyValue > &  rMediaDesc 
)
private

Referenced by Write_().


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