diff options
author | Mathias Bauer <mba@openoffice.org> | 2009-10-18 13:56:34 +0200 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2009-10-18 13:56:34 +0200 |
commit | f7c25671940f897e485fc6ca68a1708b66544f4b (patch) | |
tree | f3dfca8703cdeb611c90efa8ccf38b0f153bbb47 /linguistic | |
parent | 9f2fde7ab5de20926bb25a6b298b4e5dffb66eb2 (diff) |
#i103496#: reactivate xmloff base code
Diffstat (limited to 'linguistic')
-rw-r--r-- | linguistic/prj/build.lst | 2 | ||||
-rw-r--r-- | linguistic/source/convdic.cxx | 10 | ||||
-rw-r--r-- | linguistic/source/convdiclist.cxx | 1 | ||||
-rw-r--r-- | linguistic/source/convdicxml.hxx | 2 | ||||
-rw-r--r-- | linguistic/source/grammarchecker.cxx | 1 | ||||
-rw-r--r-- | linguistic/source/makefile.mk | 8 |
6 files changed, 5 insertions, 19 deletions
diff --git a/linguistic/prj/build.lst b/linguistic/prj/build.lst index 344453253054..8e09e3fd4226 100644 --- a/linguistic/prj/build.lst +++ b/linguistic/prj/build.lst @@ -1,4 +1,4 @@ -lg linguistic : xmloff NULL +lg linguistic : svl xmloff ucbhelper vos comphelper ICU:icu NULL lg linguistic usr1 - all lg_mkout NULL lg linguistic\prj get - all lg_prj NULL lg linguistic\inc nmake - all lg_inc NULL diff --git a/linguistic/source/convdic.cxx b/linguistic/source/convdic.cxx index 68cc76277fe5..068f9147f426 100644 --- a/linguistic/source/convdic.cxx +++ b/linguistic/source/convdic.cxx @@ -68,7 +68,7 @@ #include "convdic.hxx" -//#include "convdicxml.hxx" +#include "convdicxml.hxx" #include "misc.hxx" #include "defs.hxx" @@ -87,7 +87,6 @@ using namespace linguistic; /////////////////////////////////////////////////////////////////////////// -#if XML void ReadThroughDic( const String &rMainURL, ConvDicXMLImport &rImport ) { if (rMainURL.Len() == 0) @@ -165,7 +164,6 @@ void ReadThroughDic( const String &rMainURL, ConvDicXMLImport &rImport ) { } } -#endif BOOL IsConvDic( const String &rFileURL, INT16 &nLang, sal_Int16 &nConvType ) { @@ -186,7 +184,6 @@ BOOL IsConvDic( const String &rFileURL, INT16 &nLang, sal_Int16 &nConvType ) // first argument being 0 should stop the file from being parsed // up to the end (reading all entries) when the required // data (language, conversion type) is found. -#if XML ConvDicXMLImport *pImport = new ConvDicXMLImport( 0, rFileURL ); //!! keep a first reference to ensure the lifetime of the object !! @@ -202,7 +199,6 @@ BOOL IsConvDic( const String &rFileURL, INT16 &nLang, sal_Int16 &nConvType ) nLang = pImport->GetLanguage(); nConvType = pImport->GetConversionType(); } -#endif return bRes; } @@ -268,12 +264,10 @@ void ConvDic::Load() //!! prevent function from being called recursively via HasEntry, AddEntry bNeedEntries = FALSE; -#if XML ConvDicXMLImport *pImport = new ConvDicXMLImport( this, aMainURL ); //!! keep a first reference to ensure the lifetime of the object !! uno::Reference< XInterface > xRef( (document::XFilter *) pImport, UNO_QUERY ); ReadThroughDic( aMainURL, *pImport ); // will implicitly add the entries -#endif bIsModified = FALSE; } @@ -328,7 +322,6 @@ void ConvDic::Save() // prepare arguments (prepend doc handler to given arguments) uno::Reference< xml::sax::XDocumentHandler > xDocHandler( xSaxWriter, UNO_QUERY ); -#if XML ConvDicXMLExport *pExport = new ConvDicXMLExport( *this, aMainURL, xDocHandler ); //!! keep a first(!) reference until everything is done to //!! ensure the proper lifetime of the object @@ -337,7 +330,6 @@ void ConvDic::Save() DBG_ASSERT( !pStream->GetError(), "I/O error while writing to stream" ); if (bRet) bIsModified = FALSE; -#endif } DBG_ASSERT( !bIsModified, "dictionary still modified after save. Save failed?" ); } diff --git a/linguistic/source/convdiclist.cxx b/linguistic/source/convdiclist.cxx index 058da1ec794f..831c67b7baa8 100644 --- a/linguistic/source/convdiclist.cxx +++ b/linguistic/source/convdiclist.cxx @@ -36,7 +36,6 @@ #include <unotools/pathoptions.hxx> #include <unotools/useroptions.hxx> #include <unotools/lingucfg.hxx> -//#include <vcl/svapp.hxx> #include <rtl/instance.hxx> #include <cppuhelper/factory.hxx> // helper for factories #include <unotools/localfilehelper.hxx> diff --git a/linguistic/source/convdicxml.hxx b/linguistic/source/convdicxml.hxx index f3bd86c90c9a..f0a3ae4417d4 100644 --- a/linguistic/source/convdicxml.hxx +++ b/linguistic/source/convdicxml.hxx @@ -77,7 +77,7 @@ public: void _ExportAutoStyles() {} void _ExportMasterStyles() {} void _ExportContent(); -// sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass ); + sal_uInt32 exportDoc( enum ::xmloff::token::XMLTokenEnum eClass ); sal_Bool Export(); }; diff --git a/linguistic/source/grammarchecker.cxx b/linguistic/source/grammarchecker.cxx index 8b0b5a74ce4b..5985ffe7d27b 100644 --- a/linguistic/source/grammarchecker.cxx +++ b/linguistic/source/grammarchecker.cxx @@ -34,7 +34,6 @@ #include <cppuhelper/implbase1.hxx> #include <com/sun/star/linguistic2/XGrammarChecker.hpp> #include <com/sun/star/i18n/XBreakIterator.hpp> -//#include <vcl/unohelp.hxx> #include <cppuhelper/implbase4.hxx> #include <com/sun/star/lang/XComponent.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> diff --git a/linguistic/source/makefile.mk b/linguistic/source/makefile.mk index 6db2fae4daf9..bdf0b297d2f2 100644 --- a/linguistic/source/makefile.mk +++ b/linguistic/source/makefile.mk @@ -41,12 +41,10 @@ ENABLE_EXCEPTIONS=TRUE # --- Files -------------------------------------------------------- -# $(SLO)$/convdicxml.obj\ - - SLOFILES = \ $(SLO)$/convdiclist.obj\ $(SLO)$/convdic.obj\ + $(SLO)$/convdicxml.obj\ $(SLO)$/dicimp.obj\ $(SLO)$/dlistimp.obj\ $(SLO)$/hhconvdic.obj\ @@ -76,12 +74,10 @@ SHL1STDLIBS= \ $(I18NISOLANGLIB) \ $(SVLLIB) \ $(SALLIB) \ + $(XMLOFFLIB) \ $(UCBHELPERLIB) \ $(UNOTOOLSLIB) \ $(ICUUCLIB) - -# $(VCLLIB) \ -# $(XMLOFFLIB) \ # build DLL SHL1LIBS= $(SLB)$/$(TARGET).lib |