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
 
ErrCode Write (SwPaM &, SvStream &, const OUString *)
 
virtual void SetupFilterOptions (SfxMedium &rMedium)
 
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
 
- Protected Member Functions inherited from Writer
void ResetWriter ()
 
bool CopyNextPam (SwPaM **)
 
void PutNumFormatFontsInAttrPool ()
 
void PutEditEngFontsInAttrPool ()
 
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 css::uno::Reference< css::task::XStatusIndicator > &, const OUString &)
 
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)
 

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, sal_uLong const nStartIdx, sal_uLong const nEndIdx)
 
static SvStreamOutLong (SvStream &rStrm, tools::Long nVal)
 
static SvStreamOutULong (SvStream &rStrm, sal_uLong nVal)
 
- 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 41 of file wrtxml.hxx.

Constructor & Destructor Documentation

SwXMLWriter::SwXMLWriter ( const OUString &  rBaseURL)

Definition at line 73 of file wrtxml.cxx.

References Writer::SetBaseURL().

SwXMLWriter::~SwXMLWriter ( )
overridevirtual

Definition at line 78 of file wrtxml.cxx.

Member Function Documentation

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

Reimplemented from Writer.

Definition at line 466 of file wrtxml.cxx.

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

ErrCode SwXMLWriter::Write_ ( const css::uno::Reference< css::task::XStatusIndicator > &  ,
const OUString &   
)
private

Definition at line 82 of file wrtxml.cxx.

References aName, Any, assert(), SvXMLGraphicHelper::Create(), SvXMLEmbeddedObjectHelper::Create(), utl::UcbStreamHelper::CreateStream(), ERR_SWG_WRITE_ERROR, ERR_WRITE_ERROR_FILE, ERRCODE_NONE, xmloff::FixZOrder(), comphelper::GenericPropertySet_CreateInstance(), cppu::UnoType< class >::get(), sw::proofreadingiterator::get(), Writer::GetBaseURL(), SfxObjectShell::GetCreateMode(), IDocumentLayoutAccess::GetCurrentLayout(), IDocumentLayoutAccess::GetCurrentViewShell(), SwDoc::GetDocShell(), IDocumentStatistics::GetDocStat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentStatistics(), SfxObjectShell::GetModel(), SwDoc::GetPersist(), comphelper::getProcessComponentContext(), IDocumentRedlineAccess::GetRedlineFlags(), SotStorage::GetVersion(), SwRootFrame::HasMergedParas(), docfunc::HasOutlineStyleToBeWrittenAsNormalListStyle(), SwRootFrame::IsHideRedlines(), SvtSaveOptions::IsPrettyPrinting(), Writer::m_bBlock, Writer::m_bOrganizerMode, Writer::m_bShowProgress, Writer::m_pDoc, Writer::m_pOrigFileName, StgWriter::m_xStg, makeAny(), 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().

ErrCode SwXMLWriter::WriteMedium ( SfxMedium aTargetMedium)
overrideprotectedvirtual
ErrCode SwXMLWriter::WriteStorage ( )
overrideprotectedvirtual

Implements StgWriter.

Definition at line 445 of file wrtxml.cxx.

References Write_().

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_().

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

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