diff options
author | Jorenz Paragas <j.paragas.237@gmail.com> | 2016-06-12 16:57:39 -0700 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-06-13 11:38:03 +0000 |
commit | 1812a6467defa244c2002dec6b055ad3983e5883 (patch) | |
tree | 049eabcd98ea5764a3b8f3538456e78ac4c329d9 /include/vbahelper | |
parent | 26772e210d131e1566309c79c739519d810be7d7 (diff) |
tdf#42949: clean up includes in include/vbahelper with iwyu
Change-Id: Iaf93ff58229e9362b03b3e810611e969ef8baf38
Reviewed-on: https://gerrit.libreoffice.org/26206
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include/vbahelper')
21 files changed, 400 insertions, 74 deletions
diff --git a/include/vbahelper/helperdecl.hxx b/include/vbahelper/helperdecl.hxx index 3f1c53418049..7ee9f2793eb3 100644 --- a/include/vbahelper/helperdecl.hxx +++ b/include/vbahelper/helperdecl.hxx @@ -21,7 +21,6 @@ #define INCLUDED_VBAHELPER_HELPERDECL_HXX #include <comphelper/servicedecl.hxx> -#include <ooo/vba/XHelperInterface.hpp> namespace comphelper { namespace service_decl { diff --git a/include/vbahelper/vbaaccesshelper.hxx b/include/vbahelper/vbaaccesshelper.hxx index 3d14a399548a..50516f4442cf 100644 --- a/include/vbahelper/vbaaccesshelper.hxx +++ b/include/vbahelper/vbaaccesshelper.hxx @@ -19,14 +19,24 @@ #ifndef INCLUDED_VBAHELPER_VBAACCESSHELPER_HXX #define INCLUDED_VBAHELPER_VBAACCESSHELPER_HXX -#include <com/sun/star/beans/XPropertySet.hpp> +#include <memory> + #include <basic/basmgr.hxx> +#include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Exception.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <osl/diagnose.h> +//#define VBAHELPER_DLLIMPLEMENTATION +#include <vbahelper/vbadllapi.h> +#include <rtl/ustring.hxx> +#include <sal/types.h> #include <sfx2/objsh.hxx> #include <sfx2/docfilt.hxx> #include <sfx2/docfile.hxx> -//#define VBAHELPER_DLLIMPLEMENTATION -#include <vbahelper/vbadllapi.h> -#include <memory> namespace ooo { diff --git a/include/vbahelper/vbaapplicationbase.hxx b/include/vbahelper/vbaapplicationbase.hxx index 52fe03dea2bd..2bc2ba0c0f81 100644 --- a/include/vbahelper/vbaapplicationbase.hxx +++ b/include/vbahelper/vbaapplicationbase.hxx @@ -19,11 +19,30 @@ #ifndef INCLUDED_VBAHELPER_VBAAPPLICATIONBASE_HXX #define INCLUDED_VBAHELPER_VBAAPPLICATIONBASE_HXX -#include <ooo/vba/XHelperInterface.hpp> +#include <exception> +#include <memory> + +#include <com/sun/star/script/BasicErrorException.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <ooo/vba/XApplicationBase.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> -#include <sfx2/objsh.hxx> -#include <memory> + +namespace com { namespace sun { namespace star { + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XApplicationBase; + class XHelperInterface; +} } typedef InheritedHelperInterfaceWeakImpl< ov::XApplicationBase > ApplicationBase_BASE; diff --git a/include/vbahelper/vbacollectionimpl.hxx b/include/vbahelper/vbacollectionimpl.hxx index 3b3fc02bb113..4877c64a6cf0 100644 --- a/include/vbahelper/vbacollectionimpl.hxx +++ b/include/vbahelper/vbacollectionimpl.hxx @@ -20,19 +20,41 @@ #ifndef INCLUDED_VBAHELPER_VBACOLLECTIONIMPL_HXX #define INCLUDED_VBAHELPER_VBACOLLECTIONIMPL_HXX +#include <exception> +#include <vector> + +#include <com/sun/star/container/NoSuchElementException.hpp> +#include <com/sun/star/container/XEnumeration.hpp> +#include <com/sun/star/lang/IndexOutOfBoundsException.hpp> +#include <com/sun/star/lang/WrappedTargetException.hpp> +#include <com/sun/star/script/BasicErrorException.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.hxx> +#include <com/sun/star/uno/TypeClass.hpp> +#include <cppu/unotype.hxx> +#include <cppuhelper/implbase.hxx> +#include <cppuhelper/weakref.hxx> #include <ooo/vba/XCollection.hpp> -#include <com/sun/star/container/XEnumerationAccess.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/script/XDefaultMethod.hpp> #include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/container/XNamed.hpp> - +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> #include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> -#include <vector> +namespace com { namespace sun { namespace star { + namespace container { class XEnumerationAccess; } + namespace uno { class XComponentContext; } +} } } +namespace ooo { namespace vba { + class XHelperInterface; +} } typedef ::cppu::WeakImplHelper< css::container::XEnumeration > EnumerationHelper_BASE; diff --git a/include/vbahelper/vbadialogbase.hxx b/include/vbahelper/vbadialogbase.hxx index 424d04e90fb6..d118122eaa16 100644 --- a/include/vbahelper/vbadialogbase.hxx +++ b/include/vbahelper/vbadialogbase.hxx @@ -19,9 +19,26 @@ #ifndef INCLUDED_VBAHELPER_VBADIALOGBASE_HXX #define INCLUDED_VBAHELPER_VBADIALOGBASE_HXX +#include <exception> + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <ooo/vba/XDialogBase.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> -#include <com/sun/star/frame/XModel.hpp> + +namespace com { namespace sun { namespace star { + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XDialogBase; + class XHelperInterface; +} } typedef InheritedHelperInterfaceWeakImpl< ov::XDialogBase > VbaDialogBase_BASE; diff --git a/include/vbahelper/vbadialogsbase.hxx b/include/vbahelper/vbadialogsbase.hxx index 1881901c81ba..c18801b39696 100644 --- a/include/vbahelper/vbadialogsbase.hxx +++ b/include/vbahelper/vbadialogsbase.hxx @@ -19,10 +19,26 @@ #ifndef INCLUDED_VBAHELPER_VBADIALOGSBASE_HXX #define INCLUDED_VBAHELPER_VBADIALOGSBASE_HXX -#include <ooo/vba/XHelperInterface.hpp> +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <ooo/vba/XDialogsBase.hpp> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> -#include <com/sun/star/frame/XModel.hpp> + +namespace com { namespace sun { namespace star { + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XDialogsBase; + class XHelperInterface; +} } typedef InheritedHelperInterfaceWeakImpl< ov::XDialogsBase > VbaDialogsBase_BASE; diff --git a/include/vbahelper/vbadocumentbase.hxx b/include/vbahelper/vbadocumentbase.hxx index 37fdc1483d5d..1667c8812fca 100644 --- a/include/vbahelper/vbadocumentbase.hxx +++ b/include/vbahelper/vbadocumentbase.hxx @@ -19,10 +19,30 @@ #ifndef INCLUDED_VBAHELPER_VBADOCUMENTBASE_HXX #define INCLUDED_VBAHELPER_VBADOCUMENTBASE_HXX -#include <com/sun/star/frame/XModel.hpp> +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/XInterface.hpp> #include <ooo/vba/XDocumentBase.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XDocumentBase; + class XHelperInterface; +} } + typedef InheritedHelperInterfaceWeakImpl< ooo::vba::XDocumentBase > VbaDocumentBase_BASE; class VBAHELPER_DLLPUBLIC VbaDocumentBase : public VbaDocumentBase_BASE diff --git a/include/vbahelper/vbadocumentsbase.hxx b/include/vbahelper/vbadocumentsbase.hxx index a47f5a7f5894..9a47a92f8be6 100644 --- a/include/vbahelper/vbadocumentsbase.hxx +++ b/include/vbahelper/vbadocumentsbase.hxx @@ -19,10 +19,30 @@ #ifndef INCLUDED_VBAHELPER_VBADOCUMENTSBASE_HXX #define INCLUDED_VBAHELPER_VBADOCUMENTSBASE_HXX +#include <exception> -#include <vbahelper/vbacollectionimpl.hxx> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.hxx> #include <ooo/vba/XDocumentsBase.hpp> -#include <com/sun/star/container/XEnumerationAccess.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbacollectionimpl.hxx> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> + +namespace com { namespace sun { namespace star { + namespace beans { struct PropertyValue; } + namespace container { class XEnumeration; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XDocumentsBase; + class XHelperInterface; +} } typedef CollTestImplHelper< ooo::vba::XDocumentsBase > VbaDocumentsBase_BASE; diff --git a/include/vbahelper/vbaeventshelperbase.hxx b/include/vbahelper/vbaeventshelperbase.hxx index 6bfb8fd8bb83..5bfd87479a1b 100644 --- a/include/vbahelper/vbaeventshelperbase.hxx +++ b/include/vbahelper/vbaeventshelperbase.hxx @@ -21,19 +21,35 @@ #define INCLUDED_VBAHELPER_VBAEVENTSHELPERBASE_HXX #include <deque> +#include <exception> #include <map> #include <unordered_map> + #include <com/sun/star/document/XEventListener.hpp> +#include <com/sun/star/lang/EventObject.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/script/vba/XVBAEventProcessor.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/util/VetoException.hpp> #include <com/sun/star/util/XChangesListener.hpp> #include <cppuhelper/implbase.hxx> -#include <vbahelper/vbahelper.hxx> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> namespace com { namespace sun { namespace star { + namespace document { struct EventObject; } + namespace frame { class XModel; } namespace script { namespace vba { class XVBAModuleInfo; } } namespace uno { class XComponentContext; } + namespace util { struct ChangesEvent; } } } } +class SfxObjectShell; typedef ::cppu::WeakImplHelper< css::script::vba::XVBAEventProcessor, diff --git a/include/vbahelper/vbafontbase.hxx b/include/vbahelper/vbafontbase.hxx index 51c8c15990a4..1835554f9aa8 100644 --- a/include/vbahelper/vbafontbase.hxx +++ b/include/vbahelper/vbafontbase.hxx @@ -19,10 +19,27 @@ #ifndef INCLUDED_VBAHELPER_VBAFONTBASE_HXX #define INCLUDED_VBAHELPER_VBAFONTBASE_HXX +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <ooo/vba/XFontBase.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace beans { class XPropertySet; } + namespace container { class XIndexAccess; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; +} } + typedef InheritedHelperInterfaceWeakImpl< ov::XFontBase > VbaFontBase_BASE; class VBAHELPER_DLLPUBLIC VbaFontBase : public VbaFontBase_BASE diff --git a/include/vbahelper/vbaglobalbase.hxx b/include/vbahelper/vbaglobalbase.hxx index a5d2c239fa6a..5bbf9fac4391 100644 --- a/include/vbahelper/vbaglobalbase.hxx +++ b/include/vbahelper/vbaglobalbase.hxx @@ -19,8 +19,29 @@ #ifndef INCLUDED_VBAHELPER_VBAGLOBALBASE_HXX #define INCLUDED_VBAHELPER_VBAGLOBALBASE_HXX -#include <vbahelper/vbahelperinterface.hxx> +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Exception.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <ooo/vba/XGlobalsBase.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> +#include <vbahelper/vbahelperinterface.hxx> + +namespace com { namespace sun { namespace star { + namespace beans { struct PropertyValue; } + namespace uno { class XComponentContext; } + namespace uno { class XInterface; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; +} } typedef InheritedHelperInterfaceWeakImpl< ov::XGlobalsBase > Globals_BASE; class VBAHELPER_DLLPUBLIC VbaGlobalsBase : public Globals_BASE diff --git a/include/vbahelper/vbahelper.hxx b/include/vbahelper/vbahelper.hxx index c3ca3945dba1..d78932e1e583 100644 --- a/include/vbahelper/vbahelper.hxx +++ b/include/vbahelper/vbahelper.hxx @@ -19,25 +19,38 @@ #ifndef INCLUDED_VBAHELPER_VBAHELPER_HXX #define INCLUDED_VBAHELPER_VBAHELPER_HXX -#include <com/sun/star/drawing/XShape.hpp> -#include <com/sun/star/beans/XIntrospectionAccess.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> -#include <com/sun/star/script/BasicErrorException.hpp> -#include <com/sun/star/script/XTypeConverter.hpp> +#include <memory> + #include <com/sun/star/lang/IllegalArgumentException.hpp> -#include <com/sun/star/awt/XControl.hpp> -#include <com/sun/star/awt/XDevice.hpp> -#include <com/sun/star/awt/XUnitConversion.hpp> -#include <basic/basmgr.hxx> -#include <basic/sberrors.hxx> -#include <com/sun/star/frame/XModel.hpp> -#include <sfx2/dispatch.hxx> -#include <sfx2/objsh.hxx> -#include <sfx2/docfilt.hxx> -#include <sfx2/docfile.hxx> +#include <com/sun/star/script/BasicErrorException.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> #include <vcl/pointr.hxx> -#include <memory> -#include <vbahelper/vbaaccesshelper.hxx> +#include <vcl/ptrstyle.hxx> + +namespace com { namespace sun { namespace star { + namespace awt { class XControl; } + namespace awt { class XDevice; } + namespace awt { class XUnitConversion; } + namespace awt { class XWindow; } + namespace beans { class XIntrospectionAccess; } + namespace beans { class XPropertySet; } + namespace beans { struct PropertyValue; } + namespace drawing { class XShape; } + namespace frame { class XModel; } + namespace script { class XTypeConverter; } + namespace uno { class Exception; } + namespace uno { class XComponentContext; } +} } } + +class SfxObjectShell; +class SfxViewFrame; +class SfxViewShell; namespace ooo { @@ -148,10 +161,6 @@ public: virtual double getOffsetY() const { return 0.0; } }; -namespace msforms { - class XShape; -} - class VBAHELPER_DLLPUBLIC ShapeHelper { protected: diff --git a/include/vbahelper/vbahelperinterface.hxx b/include/vbahelper/vbahelperinterface.hxx index 35f5146f3c54..39a460b7c5ee 100644 --- a/include/vbahelper/vbahelperinterface.hxx +++ b/include/vbahelper/vbahelperinterface.hxx @@ -19,10 +19,22 @@ #ifndef INCLUDED_VBAHELPER_VBAHELPERINTERFACE_HXX #define INCLUDED_VBAHELPER_VBAHELPERINTERFACE_HXX +#include <com/sun/star/container/XNameAccess.hpp> +#include <com/sun/star/script/BasicErrorException.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <cppuhelper/implbase.hxx> +#include <cppuhelper/weakref.hxx> #include <ooo/vba/XHelperInterface.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> #include <vbahelper/vbahelper.hxx> -#include <com/sun/star/container/XNameAccess.hpp> + +namespace com { namespace sun { namespace star { + namespace uno { class XComponentContext; } } +} } // use this class when you have an a object like // interface XAnInterface which contains XHelperInterface in its inheritance hierarchy diff --git a/include/vbahelper/vbapagesetupbase.hxx b/include/vbahelper/vbapagesetupbase.hxx index 97be903f522c..c2a8af60a199 100644 --- a/include/vbahelper/vbapagesetupbase.hxx +++ b/include/vbahelper/vbapagesetupbase.hxx @@ -19,11 +19,26 @@ #ifndef INCLUDED_VBAHELPER_VBAPAGESETUPBASE_HXX #define INCLUDED_VBAHELPER_VBAPAGESETUPBASE_HXX +#include <exception> + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> #include <ooo/vba/XPageSetupBase.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace beans { class XPropertySet; } + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; +} } + typedef InheritedHelperInterfaceWeakImpl< ooo::vba::XPageSetupBase > VbaPageSetupBase_BASE; class VBAHELPER_DLLPUBLIC VbaPageSetupBase : public VbaPageSetupBase_BASE diff --git a/include/vbahelper/vbapropvalue.hxx b/include/vbahelper/vbapropvalue.hxx index ec55e399cd05..d420c77ef10a 100644 --- a/include/vbahelper/vbapropvalue.hxx +++ b/include/vbahelper/vbapropvalue.hxx @@ -18,9 +18,16 @@ */ #ifndef SC_VBA_PROPVALULE_HXX #define SC_VBA_PROPVALULE_HXX -#include <ooo/vba/XPropValue.hpp> -#include <cppuhelper/implbase.hxx> +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <cppuhelper/implbase.hxx> +#include <ooo/vba/XPropValue.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> #include <vbahelper/vbahelper.hxx> typedef ::cppu::WeakImplHelper< ov::XPropValue > PropValueImpl_BASE; diff --git a/include/vbahelper/vbareturntypes.hxx b/include/vbahelper/vbareturntypes.hxx index 7da0808588a6..b98e8296d284 100644 --- a/include/vbahelper/vbareturntypes.hxx +++ b/include/vbahelper/vbareturntypes.hxx @@ -19,15 +19,13 @@ #ifndef INCLUDED_VBAHELPER_VBARETURNTYPES_HXX #define INCLUDED_VBAHELPER_VBARETURNTYPES_HXX -#include <cppuhelper/implbase.hxx> #include <com/sun/star/script/XDefaultProperty.hpp> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <cppuhelper/implbase.hxx> #include <ooo/vba/msforms/XReturnInteger.hpp> -#include <ooo/vba/msforms/XReturnBoolean.hpp> -#include <ooo/vba/msforms/XReturnSingle.hpp> -#include <ooo/vba/msforms/XReturnEffect.hpp> - +#include <rtl/ustring.hxx> +#include <sal/types.h> #include <vbahelper/vbahelper.hxx> -#include <vbahelper/vbahelperinterface.hxx> namespace ooo { diff --git a/include/vbahelper/vbashape.hxx b/include/vbahelper/vbashape.hxx index 7bbf945711ab..7c53dee96cbe 100644 --- a/include/vbahelper/vbashape.hxx +++ b/include/vbahelper/vbashape.hxx @@ -19,17 +19,40 @@ #ifndef INCLUDED_VBAHELPER_VBASHAPE_HXX #define INCLUDED_VBAHELPER_VBASHAPE_HXX -#include <ooo/vba/office/MsoShapeType.hpp> -#include <com/sun/star/drawing/XShape.hpp> -#include <com/sun/star/drawing/XShapes.hpp> +#include <exception> +#include <memory> + +#include <cppuhelper/implbase.hxx> +#include <com/sun/star/lang/EventObject.hpp> +#include <com/sun/star/lang/IllegalArgumentException.hpp> #include <com/sun/star/lang/XEventListener.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <ooo/vba/msforms/XShape.hpp> -#include <ooo/vba/msforms/XLineFormat.hpp> -#include <cppuhelper/implbase.hxx> - +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace beans { class XPropertySet; } + namespace drawing { class XShape; } + namespace drawing { class XShapes; } + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class ShapeHelper; + class XHelperInterface; + namespace msforms { class XFillFormat; } + namespace msforms { class XLineFormat; } + namespace msforms { class XPictureFormat; } +} } + typedef ::cppu::WeakImplHelper< ov::msforms::XShape, css::lang::XEventListener > ListeningShape; typedef InheritedHelperInterfaceImpl< ListeningShape > ScVbaShape_BASE; diff --git a/include/vbahelper/vbashaperange.hxx b/include/vbahelper/vbashaperange.hxx index 08fdc152c139..ee9ec7c646f0 100644 --- a/include/vbahelper/vbashaperange.hxx +++ b/include/vbahelper/vbashaperange.hxx @@ -19,12 +19,35 @@ #ifndef INCLUDED_VBAHELPER_VBASHAPERANGE_HXX #define INCLUDED_VBAHELPER_VBASHAPERANGE_HXX -#include <com/sun/star/drawing/XShapes.hpp> +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.hxx> #include <ooo/vba/msforms/XShapeRange.hpp> -#include <com/sun/star/drawing/XDrawPage.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> #include <vbahelper/vbacollectionimpl.hxx> -#include <ooo/vba/msforms/XLineFormat.hpp> -#include <ooo/vba/msforms/XFillFormat.hpp> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> + +namespace com { namespace sun { namespace star { + namespace container { class XEnumeration; } + namespace container { class XIndexAccess; } + namespace drawing { class XDrawPage; } + namespace drawing { class XShapes; } + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; + namespace msforms { class XFillFormat; } + namespace msforms { class XLineFormat; } + namespace msforms { class XShape; } +} } typedef CollTestImplHelper< ov::msforms::XShapeRange > ScVbaShapeRange_BASE; diff --git a/include/vbahelper/vbashapes.hxx b/include/vbahelper/vbashapes.hxx index 78bdc3391870..7f48993fd3a3 100644 --- a/include/vbahelper/vbashapes.hxx +++ b/include/vbahelper/vbashapes.hxx @@ -19,14 +19,36 @@ #ifndef INCLUDED_VBAHELPER_VBASHAPES_HXX #define INCLUDED_VBAHELPER_VBASHAPES_HXX -#include <com/sun/star/drawing/XShapes.hpp> -#include <com/sun/star/drawing/XDrawPage.hpp> -#include <com/sun/star/container/XIndexAccess.hpp> +#include <exception> + +#include <com/sun/star/lang/IndexOutOfBoundsException.hpp> +#include <com/sun/star/script/BasicErrorException.hpp> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Type.hxx> #include <ooo/vba/msforms/XShapes.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbacollectionimpl.hxx> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> -#include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace container { class XEnumeration; } + namespace container { class XIndexAccess; } + namespace drawing { class XDrawPage; } + namespace drawing { class XShape; } + namespace drawing { class XShapes; } + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } -#include <vbahelper/vbacollectionimpl.hxx> +namespace ooo { namespace vba { + class XHelperInterface; + namespace msforms { class XShapeRange; } +} } typedef CollTestImplHelper< ov::msforms::XShapes > ScVbaShapes_BASE; diff --git a/include/vbahelper/vbatextframe.hxx b/include/vbahelper/vbatextframe.hxx index acc61628881e..5e2239a10ca2 100644 --- a/include/vbahelper/vbatextframe.hxx +++ b/include/vbahelper/vbatextframe.hxx @@ -18,11 +18,30 @@ */ #ifndef INCLUDED_VBAHELPER_VBATEXTFRAME_HXX #define INCLUDED_VBAHELPER_VBATEXTFRAME_HXX + +#include <exception> + +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <ooo/vba/msforms/XTextFrame.hpp> -#include <com/sun/star/drawing/XShape.hpp> -#include <com/sun/star/beans/XPropertySet.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace beans { class XPropertySet; } + namespace drawing { class XShape; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; +} } + typedef InheritedHelperInterfaceWeakImpl< ov::msforms::XTextFrame > VbaTextFrame_BASE; class VBAHELPER_DLLPUBLIC VbaTextFrame : public VbaTextFrame_BASE diff --git a/include/vbahelper/vbawindowbase.hxx b/include/vbahelper/vbawindowbase.hxx index 32f1b1daab4b..4f3c62ca2f0f 100644 --- a/include/vbahelper/vbawindowbase.hxx +++ b/include/vbahelper/vbawindowbase.hxx @@ -20,11 +20,32 @@ #ifndef INCLUDED_VBAHELPER_VBAWINDOWBASE_HXX #define INCLUDED_VBAHELPER_VBAWINDOWBASE_HXX +#include <exception> + +#include <cppuhelper/weakref.hxx> +#include <com/sun/star/uno/Any.hxx> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/RuntimeException.hpp> +#include <com/sun/star/uno/Sequence.hxx> #include <ooo/vba/XWindowBase.hpp> -#include <com/sun/star/awt/XWindow2.hpp> -#include <com/sun/star/frame/XController.hpp> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <vbahelper/vbadllapi.h> +#include <vbahelper/vbahelper.hxx> #include <vbahelper/vbahelperinterface.hxx> +namespace com { namespace sun { namespace star { + namespace awt { class XWindow2; } + namespace awt { class XWindow; } + namespace frame { class XController; } + namespace frame { class XModel; } + namespace uno { class XComponentContext; } +} } } + +namespace ooo { namespace vba { + class XHelperInterface; +} } + typedef InheritedHelperInterfaceWeakImpl< ov::XWindowBase > WindowBaseImpl_BASE; class VBAHELPER_DLLPUBLIC VbaWindowBase : public WindowBaseImpl_BASE |