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

#include <shellio.hxx>

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

Public Member Functions

 Reader ()
 
virtual ~Reader ()
 
virtual SwReaderType GetReaderType ()
 
SwgReaderOptionGetReaderOpt ()
 
virtual void SetFltName (const OUString &rFltNm)
 
SwDocGetTemplateDoc (SwDoc &rDoc)
 
bool SetTemplate (SwDoc &rDoc)
 
void ClearTemplate ()
 
void SetTemplateName (const OUString &rDir)
 
void MakeHTMLDummyTemplateDoc ()
 
bool IsReadUTF8 () const
 
void SetReadUTF8 (bool bSet)
 
bool IsBlockMode () const
 
void SetBlockMode (bool bSet)
 
bool IsOrganizerMode () const
 
void SetOrganizerMode (bool bSet)
 
void SetIgnoreHTMLComments (bool bSet)
 
virtual bool HasGlossaries () const
 
virtual bool ReadGlossaries (SwTextBlocks &, bool bSaveRelFiles) const
 
virtual size_t GetSectionList (SfxMedium &rMedium, std::vector< OUString > &rStrings) const
 
const tools::SvRef< SotStorage > & getSotStorageRef () const
 
void setSotStorageRef (const tools::SvRef< SotStorage > &pStgRef)
 

Static Public Member Functions

static void ResetFrameFormatAttrs (SfxItemSet &rFrameSet)
 
static void ResetFrameFormats (SwDoc &rDoc)
 

Protected Member Functions

virtual OUString GetTemplateName (SwDoc &rDoc) const
 

Protected Attributes

SvStreamm_pStream
 
tools::SvRef< SotStoragem_pStorage
 
css::uno::Reference< css::embed::XStorage > m_xStorage
 
SfxMediumm_pMedium
 
SwgReaderOption m_aOption
 
bool m_bInsertMode: 1
 
bool m_bTemplateBrowseMode: 1
 
bool m_bReadUTF8: 1
 
bool m_bBlockMode: 1
 
bool m_bOrganizerMode: 1
 
bool m_bHasAskTemplateName: 1
 
bool m_bIgnoreHTMLComments: 1
 
bool m_bSkipImages: 1
 

Private Member Functions

virtual ErrCode Read (SwDoc &, const OUString &rBaseURL, SwPaM &, const OUString &)=0
 
virtual bool SetStrmStgPtr ()
 

Private Attributes

rtl::Reference< SwDocmxTemplate
 
OUString m_aTemplateName
 
Date m_aDateStamp
 
tools::Time m_aTimeStamp
 
DateTime m_aCheckDateTime
 

Friends

class SwReader
 
bool TestImportDOC (SvStream &rStream, const OUString &rFltName)
 
bool TestImportRTF (SvStream &rStream)
 
bool TestImportHTML (SvStream &rStream)
 

Detailed Description

Definition at line 201 of file shellio.hxx.

Constructor & Destructor Documentation

◆ Reader()

Reader::Reader ( )

Definition at line 441 of file shellio.cxx.

References EMPTY, m_pStream, and Time.

◆ ~Reader()

Reader::~Reader ( )
virtual

Definition at line 451 of file shellio.cxx.

Member Function Documentation

◆ ClearTemplate()

void Reader::ClearTemplate ( )

Definition at line 554 of file shellio.cxx.

References mxTemplate.

Referenced by GetTemplateDoc(), MakeHTMLDummyTemplateDoc(), and SetTemplateName().

◆ GetReaderOpt()

SwgReaderOption & Reader::GetReaderOpt ( )
inline

◆ GetReaderType()

SwReaderType Reader::GetReaderType ( )
virtual

Reimplemented in StgReader, SwDOCXReader, XMLReader, and WW8Reader.

Definition at line 612 of file shellio.cxx.

References Stream.

Referenced by SetStrmStgPtr(), and SwDocShell::StartConvertFrom().

◆ GetSectionList()

size_t Reader::GetSectionList ( SfxMedium rMedium,
std::vector< OUString > &  rStrings 
) const
virtual

Reimplemented in XMLReader.

Definition at line 645 of file shellio.cxx.

Referenced by lcl_ReadSections().

◆ getSotStorageRef()

const tools::SvRef< SotStorage > & Reader::getSotStorageRef ( ) const
inline

Definition at line 274 of file shellio.hxx.

Referenced by SwDocShell::ConvertFrom().

◆ GetTemplateDoc()

SwDoc * Reader::GetTemplateDoc ( SwDoc rDoc)

◆ GetTemplateName()

OUString Reader::GetTemplateName ( SwDoc rDoc) const
protectedvirtual

Reimplemented in HTMLReader.

Definition at line 455 of file shellio.cxx.

Referenced by GetTemplateDoc().

◆ HasGlossaries()

bool Reader::HasGlossaries ( ) const
virtual

Reimplemented in SwDOCXReader, and WW8Reader.

Definition at line 681 of file shellio.cxx.

Referenced by SwReader::HasGlossaries().

◆ IsBlockMode()

bool Reader::IsBlockMode ( ) const
inline

Definition at line 258 of file shellio.hxx.

Referenced by XMLReader::Read().

◆ IsOrganizerMode()

bool Reader::IsOrganizerMode ( ) const
inline

Definition at line 261 of file shellio.hxx.

Referenced by XMLReader::Read().

◆ IsReadUTF8()

bool Reader::IsReadUTF8 ( ) const
inline

Definition at line 255 of file shellio.hxx.

Referenced by HTMLReader::Read().

◆ MakeHTMLDummyTemplateDoc()

void Reader::MakeHTMLDummyTemplateDoc ( )

◆ Read()

virtual ErrCode Reader::Read ( SwDoc ,
const OUString &  rBaseURL,
SwPaM ,
const OUString &   
)
privatepure virtual

Implemented in SwDOCXReader, AsciiReader, HTMLReader, XMLReader, and WW8Reader.

Referenced by SwReader::Read().

◆ ReadGlossaries()

bool Reader::ReadGlossaries ( SwTextBlocks ,
bool  bSaveRelFiles 
) const
virtual

Reimplemented in WW8Reader, and SwDOCXReader.

Definition at line 686 of file shellio.cxx.

Referenced by SwReader::ReadGlossaries().

◆ ResetFrameFormatAttrs()

void Reader::ResetFrameFormatAttrs ( SfxItemSet rFrameSet)
static

◆ ResetFrameFormats()

void Reader::ResetFrameFormats ( SwDoc rDoc)
static

◆ SetBlockMode()

void Reader::SetBlockMode ( bool  bSet)
inline

Definition at line 259 of file shellio.hxx.

Referenced by SwXMLTextBlocks::GetDoc(), and SwReader::Read().

◆ SetFltName()

void Reader::SetFltName ( const OUString &  rFltNm)
virtual

Reimplemented in StgReader.

Definition at line 617 of file shellio.cxx.

Referenced by SwReaderWriter::GetReader().

◆ SetIgnoreHTMLComments()

void Reader::SetIgnoreHTMLComments ( bool  bSet)
inline

Definition at line 264 of file shellio.hxx.

Referenced by SwTransferable::PasteFileContent(), and SwReader::Read().

◆ SetOrganizerMode()

void Reader::SetOrganizerMode ( bool  bSet)
inline

◆ SetReadUTF8()

void Reader::SetReadUTF8 ( bool  bSet)
inline

Definition at line 256 of file shellio.hxx.

Referenced by SwTransferable::PasteFileContent(), and SwReader::Read().

◆ setSotStorageRef()

void Reader::setSotStorageRef ( const tools::SvRef< SotStorage > &  pStgRef)
inline

Definition at line 275 of file shellio.hxx.

Referenced by SwDocShell::ConvertFrom().

◆ SetStrmStgPtr()

bool Reader::SetStrmStgPtr ( )
privatevirtual

◆ SetTemplate()

bool Reader::SetTemplate ( SwDoc rDoc)

◆ SetTemplateName()

void Reader::SetTemplateName ( const OUString &  rDir)

Definition at line 559 of file shellio.cxx.

References ClearTemplate(), and m_aTemplateName.

Referenced by GetTemplateDoc(), and SwDocShell::StartConvertFrom().

Friends And Related Function Documentation

◆ SwReader

friend class SwReader
friend

Definition at line 203 of file shellio.hxx.

◆ TestImportDOC

bool TestImportDOC ( SvStream rStream,
const OUString &  rFltName 
)
friend

Definition at line 6331 of file ww8par.cxx.

◆ TestImportHTML

bool TestImportHTML ( SvStream rStream)
friend

Definition at line 5624 of file swhtml.cxx.

◆ TestImportRTF

bool TestImportRTF ( SvStream rStream)
friend

Definition at line 179 of file swparrtf.cxx.

Member Data Documentation

◆ m_aCheckDateTime

DateTime Reader::m_aCheckDateTime
private

Definition at line 212 of file shellio.hxx.

Referenced by GetTemplateDoc(), and MakeHTMLDummyTemplateDoc().

◆ m_aDateStamp

Date Reader::m_aDateStamp
private

Definition at line 210 of file shellio.hxx.

Referenced by GetTemplateDoc().

◆ m_aOption

SwgReaderOption Reader::m_aOption
protected

Definition at line 220 of file shellio.hxx.

Referenced by SwReader::Read(), AsciiReader::Read(), and XMLReader::Read().

◆ m_aTemplateName

OUString Reader::m_aTemplateName
private

Definition at line 208 of file shellio.hxx.

Referenced by GetTemplateDoc(), MakeHTMLDummyTemplateDoc(), and SetTemplateName().

◆ m_aTimeStamp

tools::Time Reader::m_aTimeStamp
private

Definition at line 211 of file shellio.hxx.

Referenced by GetTemplateDoc().

◆ m_bBlockMode

bool Reader::m_bBlockMode
protected

Definition at line 224 of file shellio.hxx.

◆ m_bHasAskTemplateName

bool Reader::m_bHasAskTemplateName
protected

Definition at line 226 of file shellio.hxx.

Referenced by GetTemplateDoc().

◆ m_bIgnoreHTMLComments

bool Reader::m_bIgnoreHTMLComments
protected

Definition at line 227 of file shellio.hxx.

Referenced by HTMLReader::Read().

◆ m_bInsertMode

bool Reader::m_bInsertMode
protected

◆ m_bOrganizerMode

bool Reader::m_bOrganizerMode
protected

Definition at line 225 of file shellio.hxx.

◆ m_bReadUTF8

bool Reader::m_bReadUTF8
protected

Definition at line 223 of file shellio.hxx.

◆ m_bSkipImages

bool Reader::m_bSkipImages
protected

Definition at line 228 of file shellio.hxx.

Referenced by SwReader::Read(), and WW8Reader::Read().

◆ m_bTemplateBrowseMode

bool Reader::m_bTemplateBrowseMode
protected

Definition at line 222 of file shellio.hxx.

Referenced by GetTemplateDoc(), HTMLReader::HTMLReader(), and MakeHTMLDummyTemplateDoc().

◆ m_pMedium

SfxMedium* Reader::m_pMedium
protected

◆ m_pStorage

tools::SvRef<SotStorage> Reader::m_pStorage
protected

◆ m_pStream

SvStream* Reader::m_pStream
protected

◆ m_xStorage

css::uno::Reference< css::embed::XStorage > Reader::m_xStorage
protected

Definition at line 217 of file shellio.hxx.

Referenced by SwReader::Read(), XMLReader::Read(), and SetStrmStgPtr().

◆ mxTemplate

rtl::Reference<SwDoc> Reader::mxTemplate
private

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