From e505b16440d7d9db2ed375c023d78b388ac61469 Mon Sep 17 00:00:00 2001 From: August Sodora Date: Sun, 6 Nov 2011 21:21:30 -0500 Subject: Remove superfluous includes and forward decls --- basctl/source/basicide/basidesh.cxx | 1 + basctl/source/inc/accessibledialogcontrolshape.hxx | 7 +----- basctl/source/inc/accessibledialogwindow.hxx | 5 +---- basctl/source/inc/basidectrlr.hxx | 2 -- basctl/source/inc/basidesh.hxx | 14 +++++------- basctl/source/inc/basobj.hxx | 9 +------- basctl/source/inc/bastypes.hxx | 26 +++++----------------- basctl/source/inc/dlged.hxx | 10 ++++----- basctl/source/inc/dlgedclip.hxx | 5 +---- basctl/source/inc/dlgeddef.hxx | 3 +-- basctl/source/inc/dlgedfac.hxx | 1 - basctl/source/inc/dlgedfunc.hxx | 5 ----- basctl/source/inc/dlgedmod.hxx | 5 ----- basctl/source/inc/dlgedobj.hxx | 7 ++---- basctl/source/inc/localizationmgr.hxx | 6 ++--- basctl/source/inc/managelang.hxx | 7 +++--- basctl/source/inc/propbrw.hxx | 6 +---- 17 files changed, 29 insertions(+), 90 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx index 0b969de9e64e..9e7379ffedf6 100644 --- a/basctl/source/basicide/basidesh.cxx +++ b/basctl/source/basicide/basidesh.cxx @@ -82,6 +82,7 @@ #include #include +#include using namespace ::com::sun::star::uno; using namespace ::com::sun::star; diff --git a/basctl/source/inc/accessibledialogcontrolshape.hxx b/basctl/source/inc/accessibledialogcontrolshape.hxx index f45e4eb31e44..efa53213b87c 100644 --- a/basctl/source/inc/accessibledialogcontrolshape.hxx +++ b/basctl/source/inc/accessibledialogcontrolshape.hxx @@ -29,14 +29,10 @@ #ifndef _BASCTL_ACCESSIBLEDIALOGCONTROLSHAPE_HXX_ #define _BASCTL_ACCESSIBLEDIALOGCONTROLSHAPE_HXX_ -#include +#include #include -#include #include #include -#include - -#include class Window; class DialogWindow; @@ -47,7 +43,6 @@ namespace utl { class AccessibleStateSetHelper; } - // ---------------------------------------------------- // class AccessibleDialogControlShape // ---------------------------------------------------- diff --git a/basctl/source/inc/accessibledialogwindow.hxx b/basctl/source/inc/accessibledialogwindow.hxx index ed8594a5c071..c2376a90c1f3 100644 --- a/basctl/source/inc/accessibledialogwindow.hxx +++ b/basctl/source/inc/accessibledialogwindow.hxx @@ -29,15 +29,12 @@ #ifndef _BASCTL_ACCESSIBLEDIALOGWINDOW_HXX_ #define _BASCTL_ACCESSIBLEDIALOGWINDOW_HXX_ -#include #include #include #include #include -#include #include - -#include +#include class DialogWindow; class DlgEditor; diff --git a/basctl/source/inc/basidectrlr.hxx b/basctl/source/inc/basidectrlr.hxx index 8532b7691c74..22cc033ed913 100644 --- a/basctl/source/inc/basidectrlr.hxx +++ b/basctl/source/inc/basidectrlr.hxx @@ -34,10 +34,8 @@ #include #include - class BasicIDEShell; - class BasicIDEController :public comphelper::OMutexAndBroadcastHelper ,public ::comphelper::OPropertyContainer ,public ::comphelper::OPropertyArrayUsageHelper< BasicIDEController > diff --git a/basctl/source/inc/basidesh.hxx b/basctl/source/inc/basidesh.hxx index b7b7c114926d..15fd8f2779e6 100644 --- a/basctl/source/inc/basidesh.hxx +++ b/basctl/source/inc/basidesh.hxx @@ -28,20 +28,16 @@ #ifndef _BASIDESH_HXX #define _BASIDESH_HXX +#include "doceventnotifier.hxx" #include "sbxitem.hxx" -#include "scriptdocument.hxx" -#include "doceventnotifier.hxx" -#include -#include -#include -#include +#include #include #include +#include +#include -#include - -#include +class SfxViewFactory; //---------------------------------------------------------------------------- diff --git a/basctl/source/inc/basobj.hxx b/basctl/source/inc/basobj.hxx index e168542c13e4..8f72305a67f4 100644 --- a/basctl/source/inc/basobj.hxx +++ b/basctl/source/inc/basobj.hxx @@ -29,23 +29,16 @@ #define _BASOBJ_HXX #include "scriptdocument.hxx" -#include -#include -#include -#include -#include +#include class SbMethod; class SbModule; -class SbxObject; class SbxVariable; class StarBASIC; -class BasicManager; class SfxUInt16Item; class SfxBindings; class Window; -struct BasicIDE_Impl; namespace BasicIDE { diff --git a/basctl/source/inc/bastypes.hxx b/basctl/source/inc/bastypes.hxx index 0b7ede803752..85fd60a4b5e9 100644 --- a/basctl/source/inc/bastypes.hxx +++ b/basctl/source/inc/bastypes.hxx @@ -28,31 +28,17 @@ #ifndef _BASTYPES_HXX #define _BASTYPES_HXX -#include - #include "scriptdocument.hxx" -class ModulWindow; -class SfxRequest; -class SvTreeListBox; -class SvLBoxEntry; -class ScrollBar; -class SbModule; -class BasicManager; -class SfxItemSet; -#include -#include -#include - #include - -#include - #include -#include +#include #include -#include + +class SbModule; +class SfxItemSet; +class SfxRequest; #define LINE_SEP_CR 0x0D #define LINE_SEP 0x0A @@ -60,13 +46,11 @@ class SfxItemSet; // Implementation: baside2b.cxx sal_Int32 searchEOL( const ::rtl::OUString& rStr, sal_Int32 fromIndex ); - // Meaning of bToBeKilled: // While being in a reschedule-loop, I may not destroy the window. // It must first break from the reschedule-loop to self-destroy then. // Does unfortunately not work that way: Destroying Window with living Child! - struct BasicStatus { sal_Bool bIsRunning : 1; diff --git a/basctl/source/inc/dlged.hxx b/basctl/source/inc/dlged.hxx index 592940c8b827..fb06a9f6ccca 100644 --- a/basctl/source/inc/dlged.hxx +++ b/basctl/source/inc/dlged.hxx @@ -29,21 +29,19 @@ #ifndef _BASCTL_DLGED_HXX #define _BASCTL_DLGED_HXX -#include #include +#include #include -#include #include -#include +#include +#include +#include #include #include -#include -#include #define DLGED_PAGE_WIDTH_MIN 1280 #define DLGED_PAGE_HEIGHT_MIN 1024 - //============================================================================ // DlgEdHint //============================================================================ diff --git a/basctl/source/inc/dlgedclip.hxx b/basctl/source/inc/dlgedclip.hxx index 605b6ee87e34..941e68e411ae 100644 --- a/basctl/source/inc/dlgedclip.hxx +++ b/basctl/source/inc/dlgedclip.hxx @@ -29,11 +29,8 @@ #ifndef _BASCTL_DLGEDCLIP_HXX #define _BASCTL_DLGEDCLIP_HXX -#include -#include -#include #include - +#include //============================================================================ // DlgEdTransferableImpl diff --git a/basctl/source/inc/dlgeddef.hxx b/basctl/source/inc/dlgeddef.hxx index 85486f8bd288..cceecb6a8f28 100644 --- a/basctl/source/inc/dlgeddef.hxx +++ b/basctl/source/inc/dlgeddef.hxx @@ -29,8 +29,7 @@ #ifndef _BASCTL_DLGEDDEF_HXX #define _BASCTL_DLGEDDEF_HXX -#include - +#include const sal_uInt32 DlgInventor = sal_uInt32('D')*0x00000001+ sal_uInt32('L')*0x00000100+ diff --git a/basctl/source/inc/dlgedfac.hxx b/basctl/source/inc/dlgedfac.hxx index 0b3debc5dbc2..9908b3f5798d 100644 --- a/basctl/source/inc/dlgedfac.hxx +++ b/basctl/source/inc/dlgedfac.hxx @@ -32,7 +32,6 @@ #include - //============================================================================ // DlgEdFactory //============================================================================ diff --git a/basctl/source/inc/dlgedfunc.hxx b/basctl/source/inc/dlgedfunc.hxx index 82cb32912fa8..b6b2eb39bfe8 100644 --- a/basctl/source/inc/dlgedfunc.hxx +++ b/basctl/source/inc/dlgedfunc.hxx @@ -29,12 +29,7 @@ #ifndef _BASCTL_DLGEDFUNC_HXX #define _BASCTL_DLGEDFUNC_HXX -#include - class DlgEditor; -class Timer; -class MouseEvent; -class Point; //============================================================================ // DlgEdFunc diff --git a/basctl/source/inc/dlgedmod.hxx b/basctl/source/inc/dlgedmod.hxx index f4abcaad49c3..9079059514a0 100644 --- a/basctl/source/inc/dlgedmod.hxx +++ b/basctl/source/inc/dlgedmod.hxx @@ -32,15 +32,10 @@ #include - //============================================================================ // DlgEdModel //============================================================================ -class DlgEdPage; -class Window; -class SfxObjectShell; - class DlgEdModel : public SdrModel { friend class DlgEdPage; diff --git a/basctl/source/inc/dlgedobj.hxx b/basctl/source/inc/dlgedobj.hxx index cf4aa35e8cff..d68c9407bb15 100644 --- a/basctl/source/inc/dlgedobj.hxx +++ b/basctl/source/inc/dlgedobj.hxx @@ -29,13 +29,10 @@ #ifndef _BASCTL_DLGEDOBJ_HXX #define _BASCTL_DLGEDOBJ_HXX -#include -#include #include #include - -#include -#include +#include +#include #include diff --git a/basctl/source/inc/localizationmgr.hxx b/basctl/source/inc/localizationmgr.hxx index 7a61eeb132dc..382cab784c87 100644 --- a/basctl/source/inc/localizationmgr.hxx +++ b/basctl/source/inc/localizationmgr.hxx @@ -29,11 +29,11 @@ #ifndef _LOCALIZATIONMGR_HXX #define _LOCALIZATIONMGR_HXX -#include -#include - #include "scriptdocument.hxx" +#include +#include + class BasicIDEShell; class DlgEditor; diff --git a/basctl/source/inc/managelang.hxx b/basctl/source/inc/managelang.hxx index ef030b4bcdf1..d31188f45dfa 100644 --- a/basctl/source/inc/managelang.hxx +++ b/basctl/source/inc/managelang.hxx @@ -29,12 +29,11 @@ #ifndef _BASCTL_MANAGELANG_HXX #define _BASCTL_MANAGELANG_HXX -#include -#include -#include -#include #include #include +#include +#include +#include class LocalizationMgr; diff --git a/basctl/source/inc/propbrw.hxx b/basctl/source/inc/propbrw.hxx index 66013faeb930..0a9c7fc23f25 100644 --- a/basctl/source/inc/propbrw.hxx +++ b/basctl/source/inc/propbrw.hxx @@ -29,15 +29,11 @@ #ifndef _BASCTL_PROPBRW_HXX #define _BASCTL_PROPBRW_HXX -#include #include -#include -#include #include #include -#include -#include #include +#include #include //============================================================================ -- cgit