LibreOffice Module sw (master) 1
|
#include <shellio.hxx>
Public Member Functions | |
Reader () | |
virtual | ~Reader () |
virtual SwReaderType | GetReaderType () |
SwgReaderOption & | GetReaderOpt () |
virtual void | SetFltName (const OUString &rFltNm) |
SwDoc * | GetTemplateDoc (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 | |
SvStream * | m_pStream |
tools::SvRef< SotStorage > | m_pStorage |
css::uno::Reference< css::embed::XStorage > | m_xStorage |
SfxMedium * | m_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< SwDoc > | mxTemplate |
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) |
Definition at line 201 of file shellio.hxx.
Reader::Reader | ( | ) |
Definition at line 441 of file shellio.cxx.
|
virtual |
Definition at line 451 of file shellio.cxx.
void Reader::ClearTemplate | ( | ) |
Definition at line 554 of file shellio.cxx.
References mxTemplate.
Referenced by GetTemplateDoc(), MakeHTMLDummyTemplateDoc(), and SetTemplateName().
|
inline |
Definition at line 237 of file shellio.hxx.
Referenced by SwDocShell::LoadStylesFromFile(), SwTransferable::PasteFileContent(), and SwDocShell::StartConvertFrom().
|
virtual |
Reimplemented in StgReader, SwDOCXReader, XMLReader, and WW8Reader.
Definition at line 612 of file shellio.cxx.
References Stream.
Referenced by SetStrmStgPtr(), and SwDocShell::StartConvertFrom().
|
virtual |
Reimplemented in XMLReader.
Definition at line 645 of file shellio.cxx.
Referenced by lcl_ReadSections().
|
inline |
Definition at line 274 of file shellio.hxx.
Referenced by SwDocShell::ConvertFrom().
Definition at line 461 of file shellio.cxx.
References BROWSE_MODE, ClearTemplate(), SfxObjectShell::DoInitNew(), Date::EMPTY, tools::Time::EMPTY, SwDocShell::GetDoc(), INetURLObject::GetMainURL(), FStatHelper::GetModifiedDateTimeOfFile(), GetTemplateName(), INetURLObject::HasError(), FStatHelper::IsDocument(), SvtModuleOptions::IsWriter(), m_aCheckDateTime, m_aDateStamp, m_aTemplateName, m_aTimeStamp, m_bHasAskTemplateName, m_bTemplateBrowseMode, mxTemplate, INetURLObject::NONE, SwReader::Read(), ReadXML, SetOrganizerMode(), SetTemplateName(), and DateTime::SYSTEM.
Referenced by SetHTMLTemplate(), and SetTemplate().
|
protectedvirtual |
Reimplemented in HTMLReader.
Definition at line 455 of file shellio.cxx.
Referenced by GetTemplateDoc().
|
virtual |
Reimplemented in SwDOCXReader, and WW8Reader.
Definition at line 681 of file shellio.cxx.
Referenced by SwReader::HasGlossaries().
|
inline |
Definition at line 258 of file shellio.hxx.
Referenced by XMLReader::Read().
|
inline |
Definition at line 261 of file shellio.hxx.
Referenced by XMLReader::Read().
|
inline |
Definition at line 255 of file shellio.hxx.
Referenced by HTMLReader::Read().
void Reader::MakeHTMLDummyTemplateDoc | ( | ) |
Definition at line 568 of file shellio.cxx.
References BROWSE_MODE, ClearTemplate(), m_aCheckDateTime, m_aTemplateName, m_bTemplateBrowseMode, and mxTemplate.
Referenced by SetHTMLTemplate().
|
privatepure virtual |
Implemented in SwDOCXReader, AsciiReader, HTMLReader, XMLReader, and WW8Reader.
Referenced by SwReader::Read().
|
virtual |
Reimplemented in WW8Reader, and SwDOCXReader.
Definition at line 686 of file shellio.cxx.
Referenced by SwReader::ReadGlossaries().
|
static |
Definition at line 621 of file shellio.cxx.
References SfxItemSet::Put(), RES_BOX(), RES_LR_SPACE(), and RES_UL_SPACE().
Referenced by SwHTMLParser::BuildTableCell(), SwHTMLParser::CreateContainer(), SwHTMLParser::DoPositioning(), SwWW8ImplReader::ImportOle(), WW8FlySet::Init(), SwHTMLParser::InsertDrawObject(), SwHTMLParser::InsertEmbed(), SwHTMLParser::InsertFloatingFrame(), SwHTMLParser::InsertImage(), SwHTMLParser::InsertSpacer(), SwHTMLParser::NewDivision(), SwHTMLParser::NewMultiCol(), SwWW8ImplReader::Read_GrafLayer(), SwWW8ImplReader::Read_HdFtTextAsHackedFrame(), and WW8FlySet::WW8FlySet().
|
static |
Definition at line 628 of file shellio.cxx.
References IDocumentStylePoolAccess::GetFrameFormatFromPool(), SwDoc::getIDocumentStylePoolAccess(), i, RES_BOX(), RES_LR_SPACE(), RES_POOLFRM_FRAME, RES_POOLFRM_GRAPHIC, RES_POOLFRM_OLE, RES_UL_SPACE(), and SwFormat::ResetFormatAttr().
Referenced by HTMLReader::Read().
|
inline |
Definition at line 259 of file shellio.hxx.
Referenced by SwXMLTextBlocks::GetDoc(), and SwReader::Read().
|
virtual |
Reimplemented in StgReader.
Definition at line 617 of file shellio.cxx.
Referenced by SwReaderWriter::GetReader().
|
inline |
Definition at line 264 of file shellio.hxx.
Referenced by SwTransferable::PasteFileContent(), and SwReader::Read().
|
inline |
Definition at line 262 of file shellio.hxx.
Referenced by GetTemplateDoc(), SwDocShell::Load(), SwDocShell::LoadFrom(), and SwReader::Read().
|
inline |
Definition at line 256 of file shellio.hxx.
Referenced by SwTransferable::PasteFileContent(), and SwReader::Read().
|
inline |
Definition at line 275 of file shellio.hxx.
Referenced by SwDocShell::ConvertFrom().
|
privatevirtual |
Reimplemented in HTMLReader.
Definition at line 581 of file shellio.cxx.
References SfxMedium::GetInStream(), GetReaderType(), SfxMedium::GetStorage(), SfxMedium::IsStorage(), SotStorage::IsStorageFile(), m_pMedium, m_pStorage, m_pStream, m_xStorage, Storage, and Stream.
Referenced by SwReader::HasGlossaries(), SwReader::Read(), and SwReader::ReadGlossaries().
bool Reader::SetTemplate | ( | SwDoc & | rDoc | ) |
Definition at line 538 of file shellio.cxx.
References SwDoc::getIDocumentFieldsAccess(), GetTemplateDoc(), mxTemplate, SwDoc::RemoveAllFormatLanguageDependencies(), SwDoc::ReplaceStyles(), and IDocumentFieldsAccess::SetFixFields().
Referenced by SwReader::Read(), and SetHTMLTemplate().
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().
|
friend |
Definition at line 203 of file shellio.hxx.
|
friend |
Definition at line 6331 of file ww8par.cxx.
|
friend |
Definition at line 5624 of file swhtml.cxx.
|
friend |
Definition at line 179 of file swparrtf.cxx.
|
private |
Definition at line 212 of file shellio.hxx.
Referenced by GetTemplateDoc(), and MakeHTMLDummyTemplateDoc().
|
private |
Definition at line 210 of file shellio.hxx.
Referenced by GetTemplateDoc().
|
protected |
Definition at line 220 of file shellio.hxx.
Referenced by SwReader::Read(), AsciiReader::Read(), and XMLReader::Read().
|
private |
Definition at line 208 of file shellio.hxx.
Referenced by GetTemplateDoc(), MakeHTMLDummyTemplateDoc(), and SetTemplateName().
|
private |
Definition at line 211 of file shellio.hxx.
Referenced by GetTemplateDoc().
|
protected |
Definition at line 224 of file shellio.hxx.
|
protected |
Definition at line 226 of file shellio.hxx.
Referenced by GetTemplateDoc().
|
protected |
Definition at line 227 of file shellio.hxx.
Referenced by HTMLReader::Read().
|
protected |
Definition at line 221 of file shellio.hxx.
Referenced by SwReader::HasGlossaries(), SwReader::Read(), AsciiReader::Read(), HTMLReader::Read(), XMLReader::Read(), WW8Reader::Read(), and SwReader::ReadGlossaries().
|
protected |
Definition at line 225 of file shellio.hxx.
|
protected |
Definition at line 223 of file shellio.hxx.
|
protected |
Definition at line 228 of file shellio.hxx.
Referenced by SwReader::Read(), and WW8Reader::Read().
|
protected |
Definition at line 222 of file shellio.hxx.
Referenced by GetTemplateDoc(), HTMLReader::HTMLReader(), and MakeHTMLDummyTemplateDoc().
|
protected |
Definition at line 218 of file shellio.hxx.
Referenced by WW8Reader::DecryptDRMPackage(), SwReader::HasGlossaries(), SwReader::Read(), SwDOCXReader::Read(), AsciiReader::Read(), HTMLReader::Read(), XMLReader::Read(), SwReader::ReadGlossaries(), SwDOCXReader::ReadGlossaries(), SetStrmStgPtr(), HTMLReader::SetStrmStgPtr(), and HTMLReader::SetupFilterOptions().
|
protected |
Definition at line 216 of file shellio.hxx.
Referenced by WW8Reader::DecryptDRMPackage(), SwReader::HasGlossaries(), WW8Reader::OpenMainStream(), SwReader::Read(), WW8Reader::Read(), SwReader::ReadGlossaries(), WW8Reader::ReadGlossaries(), and SetStrmStgPtr().
|
protected |
Definition at line 215 of file shellio.hxx.
Referenced by SwReader::HasGlossaries(), SwReader::Read(), AsciiReader::Read(), HTMLReader::Read(), WW8Reader::Read(), SwReader::ReadGlossaries(), SetStrmStgPtr(), and HTMLReader::SetStrmStgPtr().
|
protected |
Definition at line 217 of file shellio.hxx.
Referenced by SwReader::Read(), XMLReader::Read(), and SetStrmStgPtr().
|
private |
Definition at line 207 of file shellio.hxx.
Referenced by ClearTemplate(), GetTemplateDoc(), MakeHTMLDummyTemplateDoc(), SwReader::Read(), and SetTemplate().