From e39dac8cb3f4d98f6aab875f64672b1f502264a2 Mon Sep 17 00:00:00 2001 From: "Frank Schoenheit [fs]" Date: Fri, 30 Oct 2009 13:12:29 +0100 Subject: cleaned up fmtools.?xx, so that only files which need it include it, and functions having 1 client only are moved to the client file --- svx/source/inc/filtnav.hxx | 1 - svx/source/inc/fmPropBrw.hxx | 4 +++- svx/source/inc/fmexpl.hxx | 6 ++++- svx/source/inc/fmsrcimp.hxx | 17 +++++++++++---- svx/source/inc/fmtools.hxx | 52 +++++--------------------------------------- svx/source/inc/gridcell.hxx | 2 +- svx/source/inc/tabwin.hxx | 3 --- 7 files changed, 27 insertions(+), 58 deletions(-) (limited to 'svx/source/inc') diff --git a/svx/source/inc/filtnav.hxx b/svx/source/inc/filtnav.hxx index f1ae1ed4398d..08db2e8ae7dc 100644 --- a/svx/source/inc/filtnav.hxx +++ b/svx/source/inc/filtnav.hxx @@ -48,7 +48,6 @@ #include #include #include -#include "fmtools.hxx" #include "fmexch.hxx" #include #include "fmexch.hxx" diff --git a/svx/source/inc/fmPropBrw.hxx b/svx/source/inc/fmPropBrw.hxx index 285cb90320d2..fb970eb0a22f 100644 --- a/svx/source/inc/fmPropBrw.hxx +++ b/svx/source/inc/fmPropBrw.hxx @@ -30,6 +30,8 @@ #ifndef SVX_FMPROPBRW_HXX #define SVX_FMPROPBRW_HXX +#include "fmtools.hxx" + /** === begin UNO includes === **/ #include #include @@ -37,10 +39,10 @@ #include #include /** === end UNO includes === **/ + #include #include #include -#include "fmtools.hxx" //======================================================================== class FmPropBrwMgr : public SfxChildWindow diff --git a/svx/source/inc/fmexpl.hxx b/svx/source/inc/fmexpl.hxx index df60ba931739..a03940fd510b 100644 --- a/svx/source/inc/fmexpl.hxx +++ b/svx/source/inc/fmexpl.hxx @@ -39,12 +39,17 @@ #include #include #include + +/** === begin UNO includes === **/ #include #include #include #include #include #include +#include +#include +/** === end UNO includes === **/ #include @@ -57,7 +62,6 @@ #include #include "fmexch.hxx" -#include "fmtools.hxx" class SdrObjListIter; class FmFormShell; diff --git a/svx/source/inc/fmsrcimp.hxx b/svx/source/inc/fmsrcimp.hxx index eb2475bc56e8..cfe38153c0ba 100644 --- a/svx/source/inc/fmsrcimp.hxx +++ b/svx/source/inc/fmsrcimp.hxx @@ -32,18 +32,27 @@ #define _FMSRCIMP_HXX #include "fmtools.hxx" -#include -#include -#include +#include "svx/svxdllapi.h" + +/** === begin UNO includes === **/ #include #include +#include #include #include +/** === end UNO includes === **/ + #include #include +#include #include #include -#include "svx/svxdllapi.h" +#include + +#ifndef _SVSTDARR_ULONGS +#define _SVSTDARR_ULONGS +#include +#endif // =================================================================================================== // Hilfsstrukturen diff --git a/svx/source/inc/fmtools.hxx b/svx/source/inc/fmtools.hxx index 9e9e892ef6cc..a456bed35bc6 100644 --- a/svx/source/inc/fmtools.hxx +++ b/svx/source/inc/fmtools.hxx @@ -6,9 +6,6 @@ * * OpenOffice.org - a multi-platform office productivity suite * - * $RCSfile: fmtools.hxx,v $ - * $Revision: 1.27 $ - * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify @@ -30,6 +27,9 @@ #ifndef _SVX_FMTOOLS_HXX #define _SVX_FMTOOLS_HXX +#include "fmprop.hrc" +#include "svx/svxdllapi.h" + #include #include #include @@ -65,36 +65,18 @@ #include #include #include -#include -#include - -#ifndef _SVSTDARR_ULONGS -#define _SVSTDARR_ULONGS -#include -#endif -#include -#include -#include -#include -#include - -#include "fmprop.hrc" #include #include #include #include #include #include -#include -#include -#include + +#include #include #include #include #include -#include - -#include #include @@ -111,21 +93,7 @@ SVX_DLLPUBLIC void displayException(const ::com::sun::star::sdb::SQLContext&, Wi void displayException(const ::com::sun::star::sdb::SQLErrorEvent&, Window* _pParent = NULL); void displayException(const ::com::sun::star::uno::Any&, Window* _pParent = NULL); -// Kopieren von Persistenten Objecten -::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> cloneUsingProperties(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XPersistObject>& _xObj); - -sal_Int32 findPos(const ::rtl::OUString& aStr, const ::com::sun::star::uno::Sequence< ::rtl::OUString>& rList); - -// Suchen in einer Indexliste nach einem Element -sal_Bool searchElement(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& xCont, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xElement); - sal_Int32 getElementPos(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& xCont, const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xElement); -String getFormComponentAccessPath(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& _xElement); -String getFormComponentAccessPath(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& _xElement, ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& _rTopLevelElement); -::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface> getElementFromAccessPath(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& _xParent, const String& _rRelativePath); - - -::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel> getXModel(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xIface); SVX_DLLPUBLIC ::rtl::OUString getLabelName(const ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet>& xControlModel); @@ -230,10 +198,8 @@ protected: void setAdapter(FmXDisposeMultiplexer* pAdapter); }; -typedef ::cppu::WeakImplHelper1< ::com::sun::star::lang::XEventListener> FmXDisposeMultiplexer_x; //============================================================================== - class FmXDisposeMultiplexer :public ::cppu::WeakImplHelper1< ::com::sun::star::lang::XEventListener> { ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent> m_xObject; @@ -252,18 +218,10 @@ public: // ================================================================== -::rtl::OUString getServiceNameByControlType(sal_Int16 nType); - // get a service name to create a model of the given type (OBJ_FM_...) sal_Int16 getControlTypeByObject(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XServiceInfo>& _rxObject); // get the object type (OBJ_FM_...) from the services the object supports -void TransferEventScripts(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel>& xModel, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl>& xControl, - const ::com::sun::star::uno::Sequence< ::com::sun::star::script::ScriptEventDescriptor>& rTransferIfAvailable); - -sal_Int16 GridView2ModelPos(const ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexAccess>& rColumns, sal_Int16 nViewPos); - //================================================================== -sal_Bool isLoadable(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& xLoad); sal_Bool isRowSetAlive(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface>& _rxRowSet); // checks if the ::com::sun::star::sdbcx::XColumnsSupplier provided by _rxRowSet supllies any columns diff --git a/svx/source/inc/gridcell.hxx b/svx/source/inc/gridcell.hxx index cb747e3a894c..b3792b76422c 100644 --- a/svx/source/inc/gridcell.hxx +++ b/svx/source/inc/gridcell.hxx @@ -35,7 +35,6 @@ #include "sqlparserclient.hxx" #include "typeconversionclient.hxx" -#include "fmtools.hxx" /** === begin UNO includes === **/ #include @@ -51,6 +50,7 @@ #include #include #include +#include /** === end UNO includes === **/ #include diff --git a/svx/source/inc/tabwin.hxx b/svx/source/inc/tabwin.hxx index be46c05a58d5..02f58a507511 100644 --- a/svx/source/inc/tabwin.hxx +++ b/svx/source/inc/tabwin.hxx @@ -37,9 +37,6 @@ #include #include -//#ifndef _SVX_FMTOOLS_HXX -//#include "fmtools.hxx" -//#endif #include #include #include "svx/dbtoolsclient.hxx" -- cgit