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

Constructor & Destructor Documentation

Reader::Reader ( )

Definition at line 429 of file shellio.cxx.

References EMPTY, and Time.

Reader::~Reader ( )
virtual

Definition at line 439 of file shellio.cxx.

Member Function Documentation

void Reader::ClearTemplate ( )

Definition at line 542 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 600 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 633 of file shellio.cxx.

Referenced by lcl_ReadSections().

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

Definition at line 271 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 443 of file shellio.cxx.

Referenced by GetTemplateDoc().

bool Reader::HasGlossaries ( ) const
virtual

Reimplemented in WW8Reader, and SwDOCXReader.

Definition at line 669 of file shellio.cxx.

Referenced by SwReader::HasGlossaries().

bool Reader::IsBlockMode ( ) const
inline

Definition at line 255 of file shellio.hxx.

Referenced by XMLReader::Read().

bool Reader::IsOrganizerMode ( ) const
inline

Definition at line 258 of file shellio.hxx.

Referenced by XMLReader::Read().

bool Reader::IsReadUTF8 ( ) const
inline

Definition at line 252 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 674 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 256 of file shellio.hxx.

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

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

Reimplemented in StgReader.

Definition at line 605 of file shellio.cxx.

Referenced by SwReaderWriter::GetReader().

void Reader::SetIgnoreHTMLComments ( bool  bSet)
inline

Definition at line 261 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 253 of file shellio.hxx.

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

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

Definition at line 272 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 547 of file shellio.cxx.

References ClearTemplate(), and m_aTemplateName.

Referenced by GetTemplateDoc().

Friends And Related Function Documentation

friend class SwReader
friend

Definition at line 200 of file shellio.hxx.

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

Definition at line 6269 of file ww8par.cxx.

bool TestImportHTML ( SvStream rStream)
friend

Definition at line 5579 of file swhtml.cxx.

bool TestImportRTF ( SvStream rStream)
friend

Definition at line 170 of file swparrtf.cxx.

Member Data Documentation

DateTime Reader::m_aCheckDateTime
private

Definition at line 209 of file shellio.hxx.

Referenced by GetTemplateDoc(), and MakeHTMLDummyTemplateDoc().

Date Reader::m_aDateStamp
private

Definition at line 207 of file shellio.hxx.

Referenced by GetTemplateDoc().

SwgReaderOption Reader::m_aOption
protected

Definition at line 217 of file shellio.hxx.

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

OUString Reader::m_aTemplateName
private

Definition at line 205 of file shellio.hxx.

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

tools::Time Reader::m_aTimeStamp
private

Definition at line 208 of file shellio.hxx.

Referenced by GetTemplateDoc().

bool Reader::m_bBlockMode
protected

Definition at line 221 of file shellio.hxx.

bool Reader::m_bHasAskTemplateName
protected

Definition at line 223 of file shellio.hxx.

Referenced by GetTemplateDoc().

bool Reader::m_bIgnoreHTMLComments
protected

Definition at line 224 of file shellio.hxx.

Referenced by HTMLReader::Read().

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

Definition at line 222 of file shellio.hxx.

bool Reader::m_bReadUTF8
protected

Definition at line 220 of file shellio.hxx.

bool Reader::m_bSkipImages
protected

Definition at line 225 of file shellio.hxx.

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

bool Reader::m_bTemplateBrowseMode
protected

Definition at line 219 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 214 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: