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

#include <shellio.hxx>

Inheritance diagram for SwReader:
Collaboration diagram for SwReader:

Public Member Functions

 SwReader (SfxMedium &, const OUString &rFilename, SwDoc *pDoc=nullptr)
 SwReader (SvStream &, const OUString &rFilename, const OUString &rBaseURL, SwPaM &)
 SwReader (SfxMedium &, const OUString &rFilename, SwPaM &)
 SwReader (const css::uno::Reference< css::embed::XStorage > &, const OUString &rFilename, SwPaM &)
ErrCode Read (const Reader &)
bool HasGlossaries (const Reader &)
bool ReadGlossaries (const Reader &, SwTextBlocks &, bool bSaveRelFiles)
- Public Member Functions inherited from SwDocFac
 SwDocFac (SwDoc *pDoc=nullptr)
SwDocGetDoc ()
 Document is created after calling Read(...). More...

Protected Member Functions

void SetBaseURL (const OUString &rURL)
void SetSkipImages (bool bSkipImages)

Private Attributes

tools::SvRef< SotStoragempStg
css::uno::Reference< css::embed::XStorage > mxStg
OUString maFileName
OUString msBaseURL
bool mbSkipImages

Additional Inherited Members

- Protected Attributes inherited from SwDocFac
rtl::Reference< SwDocmxDoc

Detailed Description

Definition at line 149 of file shellio.hxx.

Constructor & Destructor Documentation

◆ SwReader() [1/4]

SwReader::SwReader ( SfxMedium rMedium,
const OUString &  rFilename,
SwDoc pDoc = nullptr 

◆ SwReader() [2/4]

SwReader::SwReader ( SvStream rStrm,
const OUString &  rFilename,
const OUString &  rBaseURL,
SwPaM rPam 

Definition at line 414 of file shellio.cxx.

References rStrm, and SetBaseURL().

◆ SwReader() [3/4]

SwReader::SwReader ( SfxMedium rMedium,
const OUString &  rFilename,
SwPaM rPam 

Definition at line 421 of file shellio.cxx.

References SfxMedium::GetBaseURL(), and SetBaseURL().

◆ SwReader() [4/4]

SwReader::SwReader ( const css::uno::Reference< css::embed::XStorage > &  ,
const OUString &  rFilename,

References Read.

Member Function Documentation

◆ HasGlossaries()

bool SwReader::HasGlossaries ( const Reader rOptions)

◆ Read()

ErrCode SwReader::Read ( const Reader rOptions)

Definition at line 78 of file shellio.cxx.

References SwIndex::Assign(), SwVectorModifyBase< Value >::clear(), SwFrameFormat::DelFrames(), SwVectorModifyBase< Value >::end(), ERR_SWG_FILE_FORMAT_ERROR, ERRCODE_NONE, FILTER_DOCX, FILTER_RTF, SwNode::FindFooterStartNode(), SwNode::FindHeaderStartNode(), SwNode::FindTableBoxStartNode(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNode::GetContentNode(), SwPaM::GetContentNode(), SwDocFac::GetDoc(), SfxMedium::GetFilter(), SwIndex::GetIndex(), SwPaM::GetNext(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwNode::GetTableBox(), SwNodes::GoPrevious(), SwModify::HasWriterListeners(), HTML_MODE, Ignore, INSDOKUMENT, SwVectorModifyBase< Value >::insert(), SwVectorModifyBase< Value >::IsAlive(), SwNode::IsContentNode(), SwUndoInserts::IsCreateUndoForNewFly(), ErrCode::IsError(), SwgReaderOption::IsFormatsOnly(), SwgReaderOption::IsPageDescs(), SwContentNode::Len(), Reader::m_aOption, Reader::m_bInsertMode, Reader::m_bSkipImages, Reader::m_pMedium, Reader::m_pStorage, Reader::m_pStream, Reader::m_xStorage, maFileName, SwFrameFormat::MakeFrames(), mbSkipImages, mpCursor, mpMedium, mpStg, mpStrm, msBaseURL, SwDocFac::mxDoc, mxStg, Reader::mxTemplate, n, SwPosition::nContent, SwPosition::nNode, Reader::Read(), ReadHTML, RES_DRAWFRMFMT(), SvStream::ResetError(), SvStream::Seek(), Reader::SetBlockMode(), Reader::SetIgnoreHTMLComments(), Reader::SetOrganizerMode(), Reader::SetReadUTF8(), Reader::SetStrmStgPtr(), Reader::SetTemplate(), size, sRtfWH, sw_MergePortions(), and SwFormat::Which().

Referenced by SwXMLTextBlocks::GetDoc(), Reader::GetTemplateDoc(), SwDocShell::Load(), SwDocShell::LoadFrom(), SwTransferable::PasteFileContent(), and SwTransferable::PasteOLE().

◆ ReadGlossaries()

bool SwReader::ReadGlossaries ( const Reader rOptions,
SwTextBlocks rBlocks,
bool  bSaveRelFiles 

◆ SetBaseURL()

void SwReader::SetBaseURL ( const OUString &  rURL)

Definition at line 182 of file shellio.hxx.

Referenced by SwReader().

◆ SetSkipImages()

void SwReader::SetSkipImages ( bool  bSkipImages)

Definition at line 183 of file shellio.hxx.

Referenced by SwReader().

Member Data Documentation

◆ maFileName

OUString SwReader::maFileName

Definition at line 157 of file shellio.hxx.

Referenced by Read().

◆ mbSkipImages

bool SwReader::mbSkipImages

Definition at line 159 of file shellio.hxx.

Referenced by Read().

◆ mpCursor

SwPaM* SwReader::mpCursor

Definition at line 156 of file shellio.hxx.

Referenced by Read().

◆ mpMedium

SfxMedium* SwReader::mpMedium

Definition at line 154 of file shellio.hxx.

Referenced by HasGlossaries(), Read(), and ReadGlossaries().

◆ mpStg

tools::SvRef<SotStorage> SwReader::mpStg

Definition at line 152 of file shellio.hxx.

Referenced by HasGlossaries(), Read(), and ReadGlossaries().

◆ mpStrm

SvStream* SwReader::mpStrm

Definition at line 151 of file shellio.hxx.

Referenced by HasGlossaries(), Read(), and ReadGlossaries().

◆ msBaseURL

OUString SwReader::msBaseURL

Definition at line 158 of file shellio.hxx.

Referenced by Read().

◆ mxStg

css::uno::Reference< css::embed::XStorage > SwReader::mxStg

Definition at line 153 of file shellio.hxx.

Referenced by Read().

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