summaryrefslogtreecommitdiff
path: root/sd/source/ui/app
diff options
context:
space:
mode:
authorMathias Bauer <mba@openoffice.org>2010-01-08 18:32:51 +0100
committerMathias Bauer <mba@openoffice.org>2010-01-08 18:32:51 +0100
commit7244b6bb5d8b6d109061ac693bb979821ce49b00 (patch)
treed67b46f0fc9fce66dda2dd7f2365e682c8d3808d /sd/source/ui/app
parent9743ac6edb0334279a06c83c15323a9321be8107 (diff)
#i107450#: build all other modules with new editeng lib
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r--sd/source/ui/app/sddll.cxx186
-rw-r--r--sd/source/ui/app/sddll2.cxx6
-rw-r--r--sd/source/ui/app/sdmod1.cxx10
-rw-r--r--sd/source/ui/app/sdmod2.cxx10
-rw-r--r--sd/source/ui/app/sdpopup.cxx6
-rw-r--r--sd/source/ui/app/sdxfer.cxx10
6 files changed, 23 insertions, 205 deletions
diff --git a/sd/source/ui/app/sddll.cxx b/sd/source/ui/app/sddll.cxx
index 7cdec8c9f36b..a19202524a8e 100644
--- a/sd/source/ui/app/sddll.cxx
+++ b/sd/source/ui/app/sddll.cxx
@@ -30,18 +30,15 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sd.hxx"
-#include <svx/eeitem.hxx>
+#include <editeng/eeitem.hxx>
-#include <svx/editeng.hxx>
+#include <editeng/editeng.hxx>
#include <svx/svdobj.hxx>
#include <unotools/moduleoptions.hxx>
-#ifndef _FM_FMOBJFAC_HXX
#include <svx/fmobjfac.hxx>
-#endif
#include <svx/svdfield.hxx>
#include <svx/objfac3d.hxx>
-
#include "sddll.hxx"
#include "DrawDocShell.hxx"
#include "GraphicDocShell.hxx"
@@ -56,7 +53,6 @@
#include <sfx2/docfile.hxx>
#include <sfx2/fcontnr.hxx>
#include <tools/urlobj.hxx>
-#include <svx/impgrf.hxx>
#include <svtools/FilterConfigItem.hxx>
#include <com/sun/star/util/XArchiver.hpp>
#include <comphelper/processfactory.hxx>
@@ -156,181 +152,3 @@ void SdDLL::Exit()
(*ppShlPtr) = NULL;
}
-/*
-ULONG SdDLL::DetectFilter(SfxMedium& rMedium, const SfxFilter** ppFilter,
- SfxFilterFlags nMust, SfxFilterFlags nDont)
-{
- ULONG nReturn = ERRCODE_ABORT; // Erkennung fehlgeschlagen, Filter ungueltig
- BOOL bStorage = FALSE;
-
- if( *ppFilter && (*ppFilter)->GetFilterFlags() & SFX_FILTER_PACKED )
- {
- uno::Reference< lang::XMultiServiceFactory > xSMgr( ::comphelper::getProcessServiceFactory() );
- uno::Reference< util::XArchiver > xPacker( xSMgr->createInstance( OUString::createFromAscii( "com.sun.star.util.Archiver" ) ), uno::UNO_QUERY );
- if( xPacker.is() )
- {
- // extract extra data
- OUString aPath( rMedium.GetOrigURL() );
- OUString aExtraData( xPacker->getExtraData( aPath ) );
- const OUString aSig1= OUString::createFromAscii( "private:" );
- String aTmp;
- aTmp += sal_Unicode( '?' );
- aTmp += String::CreateFromAscii("simpress");
- const OUString aSig2( aTmp );
- INT32 nIndex1 = aExtraData.indexOf( aSig1 );
- INT32 nIndex2 = aExtraData.indexOf( aSig2 );
- if( nIndex1 == 0 && nIndex2 != -1 )
- return ERRCODE_NONE;
- }
- }
- else if (rMedium.GetError() == SVSTREAM_OK)
- {
- if ( rMedium.IsStorage() )
- {
- bStorage = TRUE;
- SotStorageRef xStorage = rMedium.GetStorage();
- if ( !xStorage.Is() )
- return ULONG_MAX;
-
- if( SvtModuleOptions().IsImpress() )
- {
- // Erkennung ueber contained streams (PowerPoint 97-Filter)
- String aStreamName = UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "PowerPoint Document" ) );
- if ( xStorage->IsContained( aStreamName ) && xStorage->IsStream( aStreamName ) )
- {
- String aFileName(rMedium.GetName());
- aFileName.ToUpperAscii();
-
- if( aFileName.SearchAscii( ".POT" ) == STRING_NOTFOUND )
- *ppFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97);
- else
- *ppFilter = SfxFilter::GetFilterByName( pFilterPowerPoint97Template );
-
- return ERRCODE_NONE;
- }
- }
-
- const SfxFilter* pFilter = *ppFilter;
- if ( *ppFilter )
- {
- if ( (*ppFilter)->GetFormat() == xStorage->GetFormat() )
- pFilter = *ppFilter;
- }
-
- if( !pFilter && SvtModuleOptions().IsImpress() )
- {
- SfxFilterMatcher aMatcher( String::CreateFromAscii("simpress") );
- pFilter = aMatcher.GetFilter4ClipBoardId( xStorage->GetFormat() );
- if ( pFilter )
- *ppFilter = pFilter;
- }
-
- if( !pFilter && SvtModuleOptions().IsDraw() )
- {
- SfxFilterMatcher aMatcher( String::CreateFromAscii("sdraw") );
- pFilter = aMatcher.GetFilter4ClipBoardId( xStorage->GetFormat() );
- if ( pFilter )
- *ppFilter = pFilter;
- }
-
- if ( pFilter &&
- ( pFilter->GetFilterFlags() & nMust ) == nMust &&
- ( pFilter->GetFilterFlags() & nDont ) == 0 )
- {
- *ppFilter = pFilter;
- nReturn = ERRCODE_NONE;
- }
- else
- {
- *ppFilter = NULL;
- nReturn = ERRCODE_NONE;
- }
- }
-
- String aFileName( rMedium.GetName() );
- aFileName.ToUpperAscii();
-
- if ( nReturn == ERRCODE_ABORT )
- {
- if( bStorage ) // aber keine Clipboard-Id #55337#
- {
- *ppFilter = NULL;
- }
- else
- {
- // Vektorgraphik?
- SvStream* pStm = rMedium.GetInStream();
-
- if( !pStm )
- nReturn = ERRCODE_IO_GENERAL;
- else
- {
- pStm->Seek( STREAM_SEEK_TO_BEGIN );
-
- const String aFileName( rMedium.GetURLObject().GetMainURL( INetURLObject::NO_DECODE ) );
- GraphicDescriptor aDesc( *pStm, &aFileName );
- GraphicFilter* pGrfFilter = GetGrfFilter();
-
- if( !aDesc.Detect( FALSE ) )
- {
- if( SvtModuleOptions().IsImpress() )
- {
- *ppFilter = NULL;
- nReturn = ERRCODE_ABORT;
- INetURLObject aURL( aFileName );
- if( aURL.getExtension().equalsIgnoreAsciiCaseAscii( "cgm" ) )
- {
- sal_uInt8 n8;
- pStm->Seek( STREAM_SEEK_TO_BEGIN );
- *pStm >> n8;
- if ( ( n8 & 0xf0 ) == 0 ) // we are supporting binary cgm format only, so
- { // this is a small test to exclude cgm text
- const String aName = UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "CGM - Computer Graphics Metafile" ) );
- SfxFilterMatcher aMatch( String::CreateFromAscii("simpress") );
- *ppFilter = aMatch.GetFilter4FilterName( aName );
- nReturn = ERRCODE_NONE;
- }
- }
- }
- }
- else
- {
- if( SvtModuleOptions().IsDraw() )
- {
- String aShortName( aDesc.GetImportFormatShortName( aDesc.GetFileFormat() ) );
- const String aName( pGrfFilter->GetImportFormatTypeName( pGrfFilter->GetImportFormatNumberForShortName( aShortName ) ) );
-
- if ( *ppFilter && aShortName.EqualsIgnoreCaseAscii( "PCD" ) ) // there is a multiple pcd selection possible
- {
- sal_Int32 nBase = 2; // default Base0
- String aFilterTypeName( (*ppFilter)->GetRealTypeName() );
- if ( aFilterTypeName.CompareToAscii( "pcd_Photo_CD_Base4" ) == COMPARE_EQUAL )
- nBase = 1;
- else if ( aFilterTypeName.CompareToAscii( "pcd_Photo_CD_Base16" ) == COMPARE_EQUAL )
- nBase = 0;
- String aFilterConfigPath( RTL_CONSTASCII_USTRINGPARAM( "Office.Common/Filter/Graphic/Import/PCD" ) );
- FilterConfigItem aFilterConfigItem( aFilterConfigPath );
- aFilterConfigItem.WriteInt32( String( RTL_CONSTASCII_USTRINGPARAM( "Resolution" ) ), nBase );
- }
-
- SfxFilterMatcher aMatch( String::CreateFromAscii("draw") );
- *ppFilter = aMatch.GetFilter4FilterName( aName );
- nReturn = ERRCODE_NONE;
- }
- else
- {
- nReturn = ERRCODE_ABORT;
- *ppFilter = NULL;
- }
- }
- }
- }
- }
- }
- else
- {
- nReturn = rMedium.GetError();
- }
-
- return nReturn;
-} */
diff --git a/sd/source/ui/app/sddll2.cxx b/sd/source/ui/app/sddll2.cxx
index c222e5f3cb44..9d65c0a70bbd 100644
--- a/sd/source/ui/app/sddll2.cxx
+++ b/sd/source/ui/app/sddll2.cxx
@@ -33,12 +33,12 @@
-#include <svx/editdata.hxx>
+#include <editeng/editdata.hxx>
#include "eetext.hxx"
#include <svx/svxids.hrc>
-#include <svx/eeitem.hxx>
+#include <editeng/eeitem.hxx>
-#include <svx/flditem.hxx>
+#include <editeng/flditem.hxx>
#include <svx/imapdlg.hxx>
#include <svx/bmpmask.hxx>
#include <svx/galbrws.hxx>
diff --git a/sd/source/ui/app/sdmod1.cxx b/sd/source/ui/app/sdmod1.cxx
index 65485d9df447..5d6b88cb5814 100644
--- a/sd/source/ui/app/sdmod1.cxx
+++ b/sd/source/ui/app/sdmod1.cxx
@@ -39,16 +39,16 @@
#include <svx/dialogs.hrc>
-#include <svx/langitem.hxx>
-#include <svx/editdata.hxx>
+#include <editeng/langitem.hxx>
+#include <editeng/editdata.hxx>
#include <vcl/msgbox.hxx>
-#include <svx/svxenum.hxx>
+#include <editeng/svxenum.hxx>
#include <sfx2/dispatch.hxx>
#include <sfx2/request.hxx>
#include <sfx2/printer.hxx>
#include <sfx2/docfile.hxx>
-#include <svx/paperinf.hxx>
-#include <svx/eeitem.hxx>
+#include <editeng/paperinf.hxx>
+#include <editeng/eeitem.hxx>
#include <unotools/useroptions.hxx>
#include "app.hrc"
diff --git a/sd/source/ui/app/sdmod2.cxx b/sd/source/ui/app/sdmod2.cxx
index 0a4eaf0bbebe..48e18c7cf055 100644
--- a/sd/source/ui/app/sdmod2.cxx
+++ b/sd/source/ui/app/sdmod2.cxx
@@ -30,8 +30,8 @@
// MARKER(update_precomp.py): autogen include statement, do not remove
#include "precompiled_sd.hxx"
-#include <svx/eeitem.hxx>
-#include <svx/flditem.hxx>
+#include <editeng/eeitem.hxx>
+#include <editeng/flditem.hxx>
#include <sfx2/printer.hxx>
#include <svl/inethist.hxx>
#include <svl/poolitem.hxx>
@@ -43,9 +43,9 @@
#include <sfx2/docfile.hxx>
#include <sfx2/request.hxx>
-#include <svx/svdfield.hxx>
-#include <svx/editstat.hxx>
-#include <svx/editeng.hxx>
+#include <editeng/measfld.hxx>
+#include <editeng/editstat.hxx>
+#include <editeng/editeng.hxx>
#include <svx/dialogs.hrc>
#include <svx/svdotext.hxx>
diff --git a/sd/source/ui/app/sdpopup.cxx b/sd/source/ui/app/sdpopup.cxx
index 274a99f830e5..9454ac3d33c3 100644
--- a/sd/source/ui/app/sdpopup.cxx
+++ b/sd/source/ui/app/sdpopup.cxx
@@ -32,10 +32,10 @@
#include "precompiled_sd.hxx"
-#include <svx/eeitem.hxx>
+#include <editeng/eeitem.hxx>
-#include <svx/editeng.hxx>
-#include <svx/flditem.hxx>
+#include <editeng/editeng.hxx>
+#include <editeng/flditem.hxx>
#include <svl/zforlist.hxx>
#include <sfx2/objsh.hxx>
#include <sfx2/docfile.hxx>
diff --git a/sd/source/ui/app/sdxfer.cxx b/sd/source/ui/app/sdxfer.cxx
index 7a57c81178b6..9fd9050160ef 100644
--- a/sd/source/ui/app/sdxfer.cxx
+++ b/sd/source/ui/app/sdxfer.cxx
@@ -39,24 +39,24 @@
#ifndef _UNTOOLS_TEMPFILE_HXX
#include <unotools/tempfile.hxx>
#endif
-#include <svx/eeitem.hxx>
-#include <svx/flditem.hxx>
+#include <editeng/eeitem.hxx>
+#include <editeng/flditem.hxx>
#include <svx/svdpagv.hxx>
#include <sfx2/app.hxx>
#include <vcl/msgbox.hxx>
#include <svx/svdoole2.hxx>
#include <svx/svdograf.hxx>
#include <svx/svdotext.hxx>
-#include <svx/outlobj.hxx>
+#include <editeng/outlobj.hxx>
#include <sot/storage.hxx>
#include <svl/itempool.hxx>
-#include <svx/editobj.hxx>
+#include <editeng/editobj.hxx>
#include <svx/fmglob.hxx>
#include <svx/svdouno.hxx>
#include <tools/urlobj.hxx>
#include <sot/formats.hxx>
#include <svl/urlbmk.hxx>
-#include <svx/outliner.hxx>
+#include <editeng/outliner.hxx>
//#ifndef _SVDETC_HXX //autogen
//#include <svx/svdetc.hxx>