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:
[legend]
Collaboration diagram for SwReader:
[legend]

Public Member Functions

 SwReader (SfxMedium &, OUString aFilename, SwDoc *pDoc=nullptr)
 
 SwReader (SvStream &, OUString aFilename, const OUString &rBaseURL, SwPaM &)
 
 SwReader (SfxMedium &, OUString aFilename, SwPaM &)
 
 SwReader (css::uno::Reference< css::embed::XStorage >, OUString aFilename, 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)
 
 ~SwDocFac () COVERITY_NOEXCEPT_FALSE
 
SwDocGetDoc ()
 Document is created after calling Read(...). More...
 

Protected Member Functions

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

Private Attributes

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

Additional Inherited Members

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

Detailed Description

Definition at line 138 of file shellio.hxx.

Constructor & Destructor Documentation

◆ SwReader() [1/4]

SwReader::SwReader ( SfxMedium rMedium,
OUString  aFilename,
SwDoc pDoc = nullptr 
)

◆ SwReader() [2/4]

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

Definition at line 422 of file shellio.cxx.

References rStrm, and SetBaseURL().

◆ SwReader() [3/4]

SwReader::SwReader ( SfxMedium rMedium,
OUString  aFilename,
SwPaM rPam 
)

Definition at line 429 of file shellio.cxx.

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

◆ SwReader() [4/4]

SwReader::SwReader ( css::uno::Reference< css::embed::XStorage >  ,
OUString  aFilename,
SwPaM  
)

References Read.

Member Function Documentation

◆ HasGlossaries()

bool SwReader::HasGlossaries ( const Reader rOptions)

◆ Read()

ErrCode SwReader::Read ( const Reader rOptions)

Definition at line 91 of file shellio.cxx.

References SwPosition::Adjust(), SwPosition::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::GetAnchorNode(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwDocFac::GetDoc(), SfxMedium::GetFilter(), SwPaM::GetNext(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPaM::GetPoint(), SwPaM::GetPointContentNode(), SwNode::GetTableBox(), SwNodes::GoPrevious(), 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, 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)
inlineprotected

Definition at line 171 of file shellio.hxx.

Referenced by SwReader().

◆ SetSkipImages()

void SwReader::SetSkipImages ( bool  bSkipImages)
inlineprotected

Definition at line 172 of file shellio.hxx.

Referenced by SwReader().

Member Data Documentation

◆ maFileName

OUString SwReader::maFileName
private

Definition at line 146 of file shellio.hxx.

Referenced by Read().

◆ mbSkipImages

bool SwReader::mbSkipImages
private

Definition at line 148 of file shellio.hxx.

Referenced by Read().

◆ mpCursor

SwPaM* SwReader::mpCursor
private

Definition at line 145 of file shellio.hxx.

Referenced by Read().

◆ mpMedium

SfxMedium* SwReader::mpMedium
private

Definition at line 143 of file shellio.hxx.

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

◆ mpStg

tools::SvRef<SotStorage> SwReader::mpStg
private

Definition at line 141 of file shellio.hxx.

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

◆ mpStrm

SvStream* SwReader::mpStrm
private

Definition at line 140 of file shellio.hxx.

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

◆ msBaseURL

OUString SwReader::msBaseURL
private

Definition at line 147 of file shellio.hxx.

Referenced by Read().

◆ mxStg

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

Definition at line 142 of file shellio.hxx.

Referenced by Read().


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