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 205 of file shellio.hxx.

Constructor & Destructor Documentation

Reader::Reader ( )

Definition at line 432 of file shellio.cxx.

References EMPTY, and Time.

Reader::~Reader ( )
virtual

Definition at line 442 of file shellio.cxx.

Member Function Documentation

void Reader::ClearTemplate ( )

Definition at line 545 of file shellio.cxx.

References mxTemplate.

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

SwgReaderOption& Reader::GetReaderOpt ( )
inline
SwReaderType Reader::GetReaderType ( )
virtual

Reimplemented in StgReader, WW8Reader, XMLReader, and SwDOCXReader.

Definition at line 603 of file shellio.cxx.

References Stream.

Referenced by SetStrmStgPtr().

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

Reimplemented in XMLReader.

Definition at line 636 of file shellio.cxx.

Referenced by lcl_ReadSections().

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

Definition at line 278 of file shellio.hxx.

Referenced by SwDocShell::ConvertFrom().

SwDoc * Reader::GetTemplateDoc ( SwDoc rDoc)
OUString Reader::GetTemplateName ( SwDoc rDoc) const
protectedvirtual

Reimplemented in HTMLReader.

Definition at line 446 of file shellio.cxx.

Referenced by GetTemplateDoc().

bool Reader::HasGlossaries ( ) const
virtual

Reimplemented in WW8Reader, and SwDOCXReader.

Definition at line 672 of file shellio.cxx.

Referenced by SwReader::HasGlossaries().

bool Reader::IsBlockMode ( ) const
inline

Definition at line 262 of file shellio.hxx.

Referenced by XMLReader::Read().

bool Reader::IsOrganizerMode ( ) const
inline

Definition at line 265 of file shellio.hxx.

Referenced by XMLReader::Read().

bool Reader::IsReadUTF8 ( ) const
inline

Definition at line 259 of file shellio.hxx.

Referenced by HTMLReader::Read().

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

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

Referenced by SwReader::Read().

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

Reimplemented in WW8Reader, and SwDOCXReader.

Definition at line 677 of file shellio.cxx.

Referenced by SwReader::ReadGlossaries().

void Reader::ResetFrameFormatAttrs ( SfxItemSet rFrameSet)
static
void Reader::ResetFrameFormats ( SwDoc rDoc)
static
void Reader::SetBlockMode ( bool  bSet)
inline

Definition at line 263 of file shellio.hxx.

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

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

Reimplemented in StgReader.

Definition at line 608 of file shellio.cxx.

Referenced by SwReaderWriter::GetReader().

void Reader::SetIgnoreHTMLComments ( bool  bSet)
inline

Definition at line 268 of file shellio.hxx.

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

void Reader::SetOrganizerMode ( bool  bSet)
inline
void Reader::SetReadUTF8 ( bool  bSet)
inline

Definition at line 260 of file shellio.hxx.

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

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

Definition at line 279 of file shellio.hxx.

Referenced by SwDocShell::ConvertFrom().

bool Reader::SetStrmStgPtr ( )
privatevirtual
bool Reader::SetTemplate ( SwDoc rDoc)
void Reader::SetTemplateName ( const OUString &  rDir)

Definition at line 550 of file shellio.cxx.

References ClearTemplate(), and m_aTemplateName.

Referenced by GetTemplateDoc().

Friends And Related Function Documentation

friend class SwReader
friend

Definition at line 207 of file shellio.hxx.

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

Definition at line 6262 of file ww8par.cxx.

bool TestImportHTML ( SvStream rStream)
friend

Definition at line 5594 of file swhtml.cxx.

bool TestImportRTF ( SvStream rStream)
friend

Definition at line 171 of file swparrtf.cxx.

Member Data Documentation

DateTime Reader::m_aCheckDateTime
private

Definition at line 216 of file shellio.hxx.

Referenced by GetTemplateDoc(), and MakeHTMLDummyTemplateDoc().

Date Reader::m_aDateStamp
private

Definition at line 214 of file shellio.hxx.

Referenced by GetTemplateDoc().

SwgReaderOption Reader::m_aOption
protected

Definition at line 224 of file shellio.hxx.

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

OUString Reader::m_aTemplateName
private

Definition at line 212 of file shellio.hxx.

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

tools::Time Reader::m_aTimeStamp
private

Definition at line 215 of file shellio.hxx.

Referenced by GetTemplateDoc().

bool Reader::m_bBlockMode
protected

Definition at line 228 of file shellio.hxx.

bool Reader::m_bHasAskTemplateName
protected

Definition at line 230 of file shellio.hxx.

Referenced by GetTemplateDoc().

bool Reader::m_bIgnoreHTMLComments
protected

Definition at line 231 of file shellio.hxx.

Referenced by HTMLReader::Read().

bool Reader::m_bInsertMode
protected
bool Reader::m_bOrganizerMode
protected

Definition at line 229 of file shellio.hxx.

bool Reader::m_bReadUTF8
protected

Definition at line 227 of file shellio.hxx.

bool Reader::m_bSkipImages
protected

Definition at line 232 of file shellio.hxx.

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

bool Reader::m_bTemplateBrowseMode
protected

Definition at line 226 of file shellio.hxx.

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

SfxMedium* Reader::m_pMedium
protected
tools::SvRef<SotStorage> Reader::m_pStorage
protected
SvStream* Reader::m_pStream
protected
css::uno::Reference< css::embed::XStorage > Reader::m_xStorage
protected

Definition at line 221 of file shellio.hxx.

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

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

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