diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-12-07 10:13:06 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-12-07 10:13:54 +0100 |
commit | 8dd1581a4f65eacc2a0f62b79873b533e8237a43 (patch) | |
tree | c95d3deafaf3bc42cbc628680e1c26c1f09ff3da /sw/source | |
parent | 113379e0507e83d3336993d79a49abc75928b42d (diff) |
sw: unused RtfReader
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/filter/rtf/swparrtf.cxx | 48 | ||||
-rw-r--r-- | sw/source/filter/rtf/swparrtf.hxx | 7 |
2 files changed, 0 insertions, 55 deletions
diff --git a/sw/source/filter/rtf/swparrtf.cxx b/sw/source/filter/rtf/swparrtf.cxx index 13216ca96723..75f0a45050b1 100644 --- a/sw/source/filter/rtf/swparrtf.cxx +++ b/sw/source/filter/rtf/swparrtf.cxx @@ -225,54 +225,6 @@ extern "C" SAL_DLLPUBLIC_EXPORT Reader* SAL_CALL ImportRTF() return new SwRTFReader(); } -// Aufruf fuer die allg. Reader-Schnittstelle -sal_uLong RtfReader::Read( SwDoc &rDoc, const String& rBaseURL, SwPaM &rPam, const String &) -{ - if( !pStrm ) - { - OSL_FAIL( "RTF-Read ohne Stream" ); - return ERR_SWG_READ_ERROR; - } - - if( !bInsertMode ) - { - // MIB 27.09.96: Umrandung uns Abstaende aus Frm-Vorlagen entf. - Reader::ResetFrmFmts( rDoc ); - } - - sal_uLong nRet = 0; - SwDocShell *pDocShell(rDoc.GetDocShell()); - OSL_ENSURE(pDocShell, "no SwDocShell"); - uno::Reference<document::XDocumentProperties> xDocProps; - if (pDocShell) { - uno::Reference<document::XDocumentPropertiesSupplier> xDPS( - pDocShell->GetModel(), uno::UNO_QUERY_THROW); - xDocProps.set(xDPS->getDocumentProperties()); - } - - SvParserRef xParser = new SwRTFParser( &rDoc, xDocProps, - rPam, *pStrm, rBaseURL, !bInsertMode ); - SvParserState eState = xParser->CallParser(); - if( SVPAR_PENDING != eState && SVPAR_ACCEPTED != eState ) - { - String sErr( String::CreateFromInt32( xParser->GetLineNr() )); - sErr += ','; - sErr += String::CreateFromInt32( xParser->GetLinePos() ); - - nRet = *new StringErrorInfo( ERR_FORMAT_ROWCOL, sErr, - ERRCODE_BUTTON_OK | ERRCODE_MSG_ERROR ); - } - - - return nRet; -} - -sal_uLong RtfReader::Read(SvStream* pStream, SwDoc& rDoc, const String& rBaseURL, SwPaM& rPam) -{ - pStrm = pStream; - return Read(rDoc, rBaseURL, rPam, rBaseURL); -} - SwRTFParser::SwRTFParser(SwDoc* pD, uno::Reference<document::XDocumentProperties> i_xDocProps, const SwPaM& rCrsr, SvStream& rIn, const String& rBaseURL, diff --git a/sw/source/filter/rtf/swparrtf.hxx b/sw/source/filter/rtf/swparrtf.hxx index b60dc50933e3..1ff1cbfb958b 100644 --- a/sw/source/filter/rtf/swparrtf.hxx +++ b/sw/source/filter/rtf/swparrtf.hxx @@ -57,13 +57,6 @@ class SwNodeNum; class SwTxtNode; struct SvxRTFPictureType; -class RtfReader: public Reader -{ - virtual sal_uLong Read( SwDoc &, const String& rBaseURL, SwPaM &,const String &); -public: - virtual sal_uLong Read( SvStream* pStrm, SwDoc &, const String& rBaseURL, SwPaM &); -}; - class SwNodeIdx : public SvxNodeIdx { SwNodeIndex aIdx; |