LibreOffice Module sw (master) 1
|
Wrapper for the UNO DOCX import filter (in writerfilter) for autotext purposes. More...
#include <swdocxreader.hxx>
Public Member Functions | |
virtual SwReaderType | GetReaderType () override |
virtual bool | HasGlossaries () const override |
virtual bool | ReadGlossaries (SwTextBlocks &rBlocks, bool bSaveRelFiles) const override |
Public Member Functions inherited from StgReader | |
virtual SwReaderType | GetReaderType () override |
const OUString & | GetFltName () const |
virtual void | SetFltName (const OUString &r) override |
Public Member Functions inherited from Reader | |
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) |
Private Member Functions | |
virtual ErrCode | Read (SwDoc &, const OUString &, SwPaM &, const OUString &) override |
Static Private Member Functions | |
static bool | MakeEntries (SwDoc *pD, SwTextBlocks &rBlocks) |
Additional Inherited Members | |
Static Public Member Functions inherited from Reader | |
static void | ResetFrameFormatAttrs (SfxItemSet &rFrameSet) |
static void | ResetFrameFormats (SwDoc &rDoc) |
Protected Member Functions inherited from Reader | |
virtual OUString | GetTemplateName (SwDoc &rDoc) const |
Protected Attributes inherited from Reader | |
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 |
Wrapper for the UNO DOCX import filter (in writerfilter) for autotext purposes.
Definition at line 26 of file swdocxreader.hxx.
|
overridevirtual |
Reimplemented from StgReader.
Definition at line 98 of file swdocxreader.cxx.
|
overridevirtual |
Reimplemented from Reader.
Definition at line 103 of file swdocxreader.cxx.
|
staticprivate |
Definition at line 148 of file swdocxreader.cxx.
References SwPosition::Adjust(), SwPosition::Assign(), AUTOTEXT_GALLERY, SwTextBlocks::BeginPutDoc(), CheckPosInFly, SwTextBlocks::ClearDoc(), IDocumentContentOperations::CopyRange(), SwNode::EndOfSectionIndex(), SwNode::EndOfSectionNode(), SwTextBlocks::GetBaseURL(), SwNode::GetContentNode(), SwTextBlocks::GetDoc(), SwNodes::GetEndOfContent(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SwNodeIndex::GetIndex(), SwTextBlocks::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwPaM::GetPointNode(), SwTextNode::GetText(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwNode::IsStartNode(), SwContentNode::Len(), SwNodes::MakeTextNode(), SwTextBlocks::PutDoc(), RES_POOLCOLL_STANDARD, SwTextBlocks::SetBaseURL(), SwPaM::SetMark(), and SwNode::StartOfSectionNode().
Referenced by ReadGlossaries().
|
overrideprivatevirtual |
Implements Reader.
Definition at line 48 of file swdocxreader.cxx.
References SwXTextRange::CreateXTextRange(), ERR_SWG_READ_ERROR, ERRCODE_NONE, SwDoc::GetDocShell(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentStylePoolAccess(), SfxMedium::GetInStream(), SfxObjectShell::GetModel(), SwPaM::GetPoint(), comphelper::getProcessServiceFactory(), IDocumentStylePoolAccess::GetTextCollFromPool(), comphelper::InitPropertySequence(), Reader::m_pMedium, RES_POOLCOLL_STANDARD, SfxObjectShell::SetLoading(), SwDoc::SetTextFormatColl(), IDocumentContentOperations::SplitNode(), TOOLS_WARN_EXCEPTION, and xStream.
|
overridevirtual |
Reimplemented from Reader.
Definition at line 109 of file swdocxreader.cxx.
References SfxObjectShell::DoInitNew(), SwTextBlocks::EndPutMuchBlockEntries(), SfxMedium::GetInStream(), SfxObjectShell::GetModel(), comphelper::getProcessServiceFactory(), comphelper::InitPropertySequence(), Reader::m_pMedium, MakeEntries(), SwTextBlocks::StartPutMuchBlockEntries(), and xStream.