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 | |
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>
96 files changed, 504 insertions, 75 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 diff --git a/sc/source/ui/vba/excelvbahelper.cxx b/sc/source/ui/vba/excelvbahelper.cxx index 044668e7948e..e381c399dcc7 100644 --- a/sc/source/ui/vba/excelvbahelper.cxx +++ b/sc/source/ui/vba/excelvbahelper.cxx @@ -19,6 +19,7 @@ #include "excelvbahelper.hxx" +#include <basic/basmgr.hxx> #include <comphelper/processfactory.hxx> #include <com/sun/star/sheet/XSheetCellRange.hpp> #include <com/sun/star/sheet/GlobalSheetSettings.hpp> diff --git a/sc/source/ui/vba/vbaapplication.cxx b/sc/source/ui/vba/vbaapplication.cxx index 2ea30e522685..5f3d8529fd24 100644 --- a/sc/source/ui/vba/vbaapplication.cxx +++ b/sc/source/ui/vba/vbaapplication.cxx @@ -33,6 +33,7 @@ #include <ooo/vba/XExecutableDialog.hpp> #include <ooo/vba/excel/XlCalculation.hpp> #include <ooo/vba/excel/XlMousePointer.hpp> +#include <ooo/vba/office/MsoShapeType.hpp> #include "vbaapplication.hxx" #include "vbaworkbooks.hxx" @@ -58,6 +59,7 @@ #include <osl/file.hxx> #include <rtl/instance.hxx> +#include <sfx2/bindings.hxx> #include <sfx2/request.hxx> #include <sfx2/objsh.hxx> #include <sfx2/viewfrm.hxx> diff --git a/sc/source/ui/vba/vbaaxes.cxx b/sc/source/ui/vba/vbaaxes.cxx index b15773099ac8..061f698781a3 100644 --- a/sc/source/ui/vba/vbaaxes.cxx +++ b/sc/source/ui/vba/vbaaxes.cxx @@ -20,6 +20,7 @@ #include "vbaaxes.hxx" #include "vbaaxis.hxx" #include "vbachart.hxx" +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> #include <ooo/vba/excel/XlAxisType.hpp> #include <ooo/vba/excel/XlAxisGroup.hpp> diff --git a/sc/source/ui/vba/vbacomment.cxx b/sc/source/ui/vba/vbacomment.cxx index 130ed99d9763..411a15abe0de 100644 --- a/sc/source/ui/vba/vbacomment.cxx +++ b/sc/source/ui/vba/vbacomment.cxx @@ -29,6 +29,7 @@ #include <com/sun/star/table/CellAddress.hpp> #include <com/sun/star/table/XCell.hpp> #include <com/sun/star/text/XText.hpp> +#include <ooo/vba/office/MsoShapeType.hpp> #include <vbahelper/vbashape.hxx> #include "vbaglobals.hxx" diff --git a/sc/source/ui/vba/vbacondition.cxx b/sc/source/ui/vba/vbacondition.cxx index 68a5c7d7622a..2fe01884caa4 100644 --- a/sc/source/ui/vba/vbacondition.cxx +++ b/sc/source/ui/vba/vbacondition.cxx @@ -22,6 +22,7 @@ #include <ooo/vba/excel/XFormatCondition.hpp> #include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/sheet/XCellRangeAddressable.hpp> +#include <basic/sberrors.hxx> using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/sc/source/ui/vba/vbaeventshelper.cxx b/sc/source/ui/vba/vbaeventshelper.cxx index c37b1d6d3be5..da68267b1ea5 100644 --- a/sc/source/ui/vba/vbaeventshelper.cxx +++ b/sc/source/ui/vba/vbaeventshelper.cxx @@ -37,6 +37,7 @@ #include <unotools/eventcfg.hxx> #include <vcl/svapp.hxx> #include <vcl/window.hxx> +#include <vbahelper/vbaaccesshelper.hxx> #include "cellsuno.hxx" #include "convuno.hxx" diff --git a/sc/source/ui/vba/vbaformat.cxx b/sc/source/ui/vba/vbaformat.cxx index 88c29ba01d92..ba2db5021e95 100644 --- a/sc/source/ui/vba/vbaformat.cxx +++ b/sc/source/ui/vba/vbaformat.cxx @@ -30,6 +30,7 @@ #include <com/sun/star/text/WritingMode.hpp> #include <com/sun/star/util/CellProtection.hpp> +#include <basic/sberrors.hxx> #include <rtl/math.hxx> #include "excelvbahelper.hxx" diff --git a/sc/source/ui/vba/vbaformat.hxx b/sc/source/ui/vba/vbaformat.hxx index b02bd6965bf6..1489ec6ee673 100644 --- a/sc/source/ui/vba/vbaformat.hxx +++ b/sc/source/ui/vba/vbaformat.hxx @@ -28,6 +28,7 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/Locale.hpp> #include <com/sun/star/beans/XPropertyState.hpp> +#include <svl/itemset.hxx> #include <vbahelper/vbahelperinterface.hxx> class ScCellRangesBase; diff --git a/sc/source/ui/vba/vbaformatcondition.cxx b/sc/source/ui/vba/vbaformatcondition.cxx index 792818c97c66..80bff983032e 100644 --- a/sc/source/ui/vba/vbaformatcondition.cxx +++ b/sc/source/ui/vba/vbaformatcondition.cxx @@ -20,6 +20,7 @@ #include "vbaformatconditions.hxx" #include "unonames.hxx" #include <ooo/vba/excel/XlFormatConditionType.hpp> +#include <basic/sberrors.hxx> using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/sc/source/ui/vba/vbaformatconditions.cxx b/sc/source/ui/vba/vbaformatconditions.cxx index 9b0a6d7cfa13..c01b1863b426 100644 --- a/sc/source/ui/vba/vbaformatconditions.cxx +++ b/sc/source/ui/vba/vbaformatconditions.cxx @@ -20,6 +20,7 @@ #include <ooo/vba/excel/XRange.hpp> #include <com/sun/star/sheet/XCellRangeAddressable.hpp> #include <com/sun/star/sheet/XSheetConditionalEntry.hpp> +#include <basic/sberrors.hxx> #include <comphelper/sequence.hxx> #include <cppuhelper/exc_hlp.hxx> #include <vector> diff --git a/sc/source/ui/vba/vbapagebreak.cxx b/sc/source/ui/vba/vbapagebreak.cxx index bc7942c25a6e..2f29060bb1a2 100644 --- a/sc/source/ui/vba/vbapagebreak.cxx +++ b/sc/source/ui/vba/vbapagebreak.cxx @@ -18,6 +18,7 @@ */ #include "vbapagebreak.hxx" #include "vbarange.hxx" +#include <basic/sberrors.hxx> #include <ooo/vba/excel/XlPageBreak.hpp> using namespace ::com::sun::star; using namespace ::ooo::vba; diff --git a/sc/source/ui/vba/vbapagebreaks.cxx b/sc/source/ui/vba/vbapagebreaks.cxx index 047e7cac9d5e..cfa42ebf52ba 100644 --- a/sc/source/ui/vba/vbapagebreaks.cxx +++ b/sc/source/ui/vba/vbapagebreaks.cxx @@ -18,6 +18,7 @@ */ #include "vbapagebreaks.hxx" #include "vbapagebreak.hxx" +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> #include <ooo/vba/excel/XWorksheet.hpp> using namespace ::com::sun::star; diff --git a/sc/source/ui/vba/vbapagesetup.cxx b/sc/source/ui/vba/vbapagesetup.cxx index 50e6e096fa69..d39af7984864 100644 --- a/sc/source/ui/vba/vbapagesetup.cxx +++ b/sc/source/ui/vba/vbapagesetup.cxx @@ -30,6 +30,7 @@ #include <ooo/vba/excel/XlPageOrientation.hpp> #include <ooo/vba/excel/XlOrder.hpp> #include <ooo/vba/excel/Constants.hpp> +#include <basic/sberrors.hxx> #include <i18nutil/paper.hxx> #include <sal/macros.h> #include <algorithm> diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index 40921ee5c382..48524fde2599 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -27,6 +27,7 @@ #include <sfx2/objsh.hxx> #include <com/sun/star/script/ArrayWrapper.hpp> +#include <com/sun/star/script/XTypeConverter.hpp> #include <com/sun/star/script/vba/VBAEventId.hpp> #include <com/sun/star/script/vba/XVBAEventProcessor.hpp> #include <com/sun/star/sheet/XDatabaseRange.hpp> @@ -156,6 +157,7 @@ #include "transobj.hxx" #include "queryentry.hxx" #include "markdata.hxx" +#include <basic/sberrors.hxx> #include <comphelper/anytostring.hxx> #include <cppuhelper/implbase.hxx> diff --git a/sc/source/ui/vba/vbarange.hxx b/sc/source/ui/vba/vbarange.hxx index 444ff624be36..cc65a90b5ccb 100644 --- a/sc/source/ui/vba/vbarange.hxx +++ b/sc/source/ui/vba/vbarange.hxx @@ -31,6 +31,7 @@ #include <comphelper/proparrhlp.hxx> #include <comphelper/propertycontainer.hxx> +#include <com/sun/star/awt/Point.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/PropertyAttribute.hpp> #include <com/sun/star/script/XDefaultMethod.hpp> @@ -44,6 +45,7 @@ #include "vbaformat.hxx" #include "address.hxx" #include <formula/grammar.hxx> +#include <svl/itemset.hxx> class ScCellRangesBase; class ScCellRangeObj; diff --git a/sc/source/ui/vba/vbasheetobjects.cxx b/sc/source/ui/vba/vbasheetobjects.cxx index cdb1463ad9d3..a677a0ea3fc9 100644 --- a/sc/source/ui/vba/vbasheetobjects.cxx +++ b/sc/source/ui/vba/vbasheetobjects.cxx @@ -30,6 +30,8 @@ #include <com/sun/star/form/XForm.hpp> #include <com/sun/star/form/XFormComponent.hpp> #include <com/sun/star/form/XFormsSupplier.hpp> +#include <com/sun/star/frame/XModel.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include "vbasheetobject.hxx" #include <cppuhelper/implbase.hxx> diff --git a/sc/source/ui/vba/vbastyle.cxx b/sc/source/ui/vba/vbastyle.cxx index 0f651b4b0f94..950639deff21 100644 --- a/sc/source/ui/vba/vbastyle.cxx +++ b/sc/source/ui/vba/vbastyle.cxx @@ -18,6 +18,7 @@ */ #include "vbastyle.hxx" +#include <basic/sberrors.hxx> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> using namespace ::ooo::vba; diff --git a/sc/source/ui/vba/vbastyles.cxx b/sc/source/ui/vba/vbastyles.cxx index f51a4954a75b..a4a1457882b7 100644 --- a/sc/source/ui/vba/vbastyles.cxx +++ b/sc/source/ui/vba/vbastyles.cxx @@ -18,6 +18,7 @@ */ #include "vbastyles.hxx" #include "vbastyle.hxx" +#include <basic/sberrors.hxx> #include <cppuhelper/exc_hlp.hxx> #include <ooo/vba/excel/XRange.hpp> diff --git a/sc/source/ui/vba/vbastyles.hxx b/sc/source/ui/vba/vbastyles.hxx index ea60d0a8331c..271ea1dc857a 100644 --- a/sc/source/ui/vba/vbastyles.hxx +++ b/sc/source/ui/vba/vbastyles.hxx @@ -20,6 +20,7 @@ #define INCLUDED_SC_SOURCE_UI_VBA_VBASTYLES_HXX #include <ooo/vba/excel/XStyles.hpp> #include <com/sun/star/container/XNameContainer.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <vbahelper/vbacollectionimpl.hxx> typedef CollTestImplHelper< ov::excel::XStyles > ScVbaStyles_BASE; diff --git a/sc/source/ui/vba/vbatextframe.cxx b/sc/source/ui/vba/vbatextframe.cxx index 6dd70ba96c5f..3c270d175219 100644 --- a/sc/source/ui/vba/vbatextframe.cxx +++ b/sc/source/ui/vba/vbatextframe.cxx @@ -18,7 +18,9 @@ */ #include <vbahelper/helperdecl.hxx> #include <com/sun/star/drawing/TextFitToSizeType.hpp> +#include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/text/XText.hpp> +#include <sfx2/objsh.hxx> #include "vbatextframe.hxx" #include "vbacharacters.hxx" diff --git a/sc/source/ui/vba/vbawindow.cxx b/sc/source/ui/vba/vbawindow.cxx index 8e46e0a52fbb..b1a36353a92b 100644 --- a/sc/source/ui/vba/vbawindow.cxx +++ b/sc/source/ui/vba/vbawindow.cxx @@ -33,6 +33,7 @@ #include <com/sun/star/awt/XWindow.hpp> #include <com/sun/star/awt/XWindow2.hpp> #include <com/sun/star/awt/PosSize.hpp> +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> #include <docsh.hxx> diff --git a/sc/source/ui/vba/vbaworksheet.cxx b/sc/source/ui/vba/vbaworksheet.cxx index 207a9ecea36d..415c0eaf4858 100644 --- a/sc/source/ui/vba/vbaworksheet.cxx +++ b/sc/source/ui/vba/vbaworksheet.cxx @@ -59,6 +59,7 @@ #include <ooo/vba/excel/XWorkbook.hpp> #include <ooo/vba/XControlProvider.hpp> +#include <basic/sberrors.hxx> #include <comphelper/processfactory.hxx> #include <comphelper/servicehelper.hxx> #include <vbahelper/vbashapes.hxx> diff --git a/sc/source/ui/vba/vbaworksheet.hxx b/sc/source/ui/vba/vbaworksheet.hxx index bfbd4c55a7bb..cb670d8df813 100644 --- a/sc/source/ui/vba/vbaworksheet.hxx +++ b/sc/source/ui/vba/vbaworksheet.hxx @@ -34,6 +34,7 @@ #include <ooo/vba/excel/XHPageBreaks.hpp> #include <ooo/vba/excel/XVPageBreaks.hpp> #include <com/sun/star/container/XNamed.hpp> +#include <rtl/ref.hxx> #include <vbahelper/vbahelperinterface.hxx> #include "address.hxx" diff --git a/sc/source/ui/vba/vbaworksheets.cxx b/sc/source/ui/vba/vbaworksheets.cxx index d7d84355fc75..86c4f1fc0a7c 100644 --- a/sc/source/ui/vba/vbaworksheets.cxx +++ b/sc/source/ui/vba/vbaworksheets.cxx @@ -36,6 +36,7 @@ #include <com/sun/star/container/XNamed.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/script/XTypeConverter.hpp> #include <ooo/vba/excel/XApplication.hpp> #include "tabvwsh.hxx" diff --git a/sw/source/ui/vba/vbaaddins.cxx b/sw/source/ui/vba/vbaaddins.cxx index 7d7e804b7d08..cbeb87de8a43 100644 --- a/sw/source/ui/vba/vbaaddins.cxx +++ b/sw/source/ui/vba/vbaaddins.cxx @@ -18,6 +18,7 @@ */ #include "vbaaddins.hxx" #include "vbaaddin.hxx" +#include <osl/diagnose.h> #include <unotools/pathoptions.hxx> #include <com/sun/star/lang/XMultiComponentFactory.hpp> #include <com/sun/star/ucb/SimpleFileAccess.hpp> diff --git a/sw/source/ui/vba/vbabookmarks.cxx b/sw/source/ui/vba/vbabookmarks.cxx index 5394fc5dcf52..0b5a1e3cbbd3 100644 --- a/sw/source/ui/vba/vbabookmarks.cxx +++ b/sw/source/ui/vba/vbabookmarks.cxx @@ -19,6 +19,7 @@ #include "vbabookmarks.hxx" #include "vbabookmark.hxx" #include <com/sun/star/container/XNamed.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XTextViewCursor.hpp> #include <com/sun/star/text/XTextViewCursorSupplier.hpp> diff --git a/sw/source/ui/vba/vbadocument.cxx b/sw/source/ui/vba/vbadocument.cxx index cf471b0c625c..705437028f73 100644 --- a/sw/source/ui/vba/vbadocument.cxx +++ b/sw/source/ui/vba/vbadocument.cxx @@ -47,6 +47,7 @@ #include <vbahelper/vbahelper.hxx> #include "vbarevisions.hxx" #include "vbaframes.hxx" +#include <basic/sberrors.hxx> #include <osl/file.hxx> #include <tools/urlobj.hxx> diff --git a/sw/source/ui/vba/vbaeventshelper.cxx b/sw/source/ui/vba/vbaeventshelper.cxx index 71e2f99c8a31..3af50f7b4087 100644 --- a/sw/source/ui/vba/vbaeventshelper.cxx +++ b/sw/source/ui/vba/vbaeventshelper.cxx @@ -24,7 +24,6 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::script::vba::VBAEventId; -using namespace ::ooo::vba; SwVbaEventsHelper::SwVbaEventsHelper( uno::Sequence< css::uno::Any > const& aArgs, uno::Reference< uno::XComponentContext > const& xContext ) : VbaEventsHelperBase( aArgs, xContext ) diff --git a/sw/source/ui/vba/vbafield.cxx b/sw/source/ui/vba/vbafield.cxx index d5546ae1b8cf..2859c6882321 100644 --- a/sw/source/ui/vba/vbafield.cxx +++ b/sw/source/ui/vba/vbafield.cxx @@ -28,7 +28,9 @@ #include <comphelper/string.hxx> #include <ooo/vba/word/WdFieldType.hpp> #include <swtypes.hxx> +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> +#include <osl/diagnose.h> using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/sw/source/ui/vba/vbafield.hxx b/sw/source/ui/vba/vbafield.hxx index 2d447446f4ec..af3c53172228 100644 --- a/sw/source/ui/vba/vbafield.hxx +++ b/sw/source/ui/vba/vbafield.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAFIELD_HXX #define INCLUDED_SW_SOURCE_UI_VBA_VBAFIELD_HXX #include <vbahelper/vbahelperinterface.hxx> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XTextField.hpp> #include <ooo/vba/word/XField.hpp> diff --git a/sw/source/ui/vba/vbafind.cxx b/sw/source/ui/vba/vbafind.cxx index 8c050290f8dc..3bb5b37a0d23 100644 --- a/sw/source/ui/vba/vbafind.cxx +++ b/sw/source/ui/vba/vbafind.cxx @@ -22,6 +22,7 @@ #include "vbareplacement.hxx" #include <ooo/vba/word/WdFindWrap.hpp> #include <ooo/vba/word/WdReplace.hpp> +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/text/XTextRangeCompare.hpp> #include "wordvbahelper.hxx" diff --git a/sw/source/ui/vba/vbafont.cxx b/sw/source/ui/vba/vbafont.cxx index 0975862fb4e5..ee9ff86b2e7a 100644 --- a/sw/source/ui/vba/vbafont.cxx +++ b/sw/source/ui/vba/vbafont.cxx @@ -19,6 +19,8 @@ #include "vbafont.hxx" #include <com/sun/star/awt/FontUnderline.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/container/XIndexAccess.hpp> #include <ooo/vba/word/WdUnderline.hpp> #include <sal/macros.h> #include <ooo/vba/word/WdColorIndex.hpp> diff --git a/sw/source/ui/vba/vbaglobals.cxx b/sw/source/ui/vba/vbaglobals.cxx index d60115d42564..c7d719e69adc 100644 --- a/sw/source/ui/vba/vbaglobals.cxx +++ b/sw/source/ui/vba/vbaglobals.cxx @@ -18,11 +18,14 @@ */ #include <vbahelper/helperdecl.hxx> #include "vbaglobals.hxx" +#include <osl/diagnose.h> #include <sal/macros.h> #include <comphelper/unwrapargs.hxx> #include <com/sun/star/lang/XMultiComponentFactory.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <cppuhelper/bootstrap.hxx> #include "vbaapplication.hxx" diff --git a/sw/source/ui/vba/vbalisthelper.cxx b/sw/source/ui/vba/vbalisthelper.cxx index 73d35f6e0716..d5c13db775e6 100644 --- a/sw/source/ui/vba/vbalisthelper.cxx +++ b/sw/source/ui/vba/vbalisthelper.cxx @@ -19,6 +19,8 @@ #include "vbalisthelper.hxx" #include <tools/diagnose_ex.h> #include <ooo/vba/word/WdListGalleryType.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> #include <com/sun/star/style/NumberingType.hpp> #include <com/sun/star/container/XIndexReplace.hpp> diff --git a/sw/source/ui/vba/vbalisttemplate.cxx b/sw/source/ui/vba/vbalisttemplate.cxx index 00e1860b1325..3052745647f5 100644 --- a/sw/source/ui/vba/vbalisttemplate.cxx +++ b/sw/source/ui/vba/vbalisttemplate.cxx @@ -20,6 +20,7 @@ #include <vbahelper/vbahelper.hxx> #include <tools/diagnose_ex.h> #include "vbalistlevels.hxx" +#include <com/sun/star/beans/XPropertySet.hpp> using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/sw/source/ui/vba/vbaoptions.cxx b/sw/source/ui/vba/vbaoptions.cxx index 5d455abe5220..aceca9346e6d 100644 --- a/sw/source/ui/vba/vbaoptions.cxx +++ b/sw/source/ui/vba/vbaoptions.cxx @@ -25,6 +25,7 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/util/XStringSubstitution.hpp> #include <com/sun/star/util/thePathSettings.hpp> +#include <basic/sberrors.hxx> #include <osl/file.hxx> using namespace ::ooo::vba; diff --git a/sw/source/ui/vba/vbapagesetup.cxx b/sw/source/ui/vba/vbapagesetup.cxx index d348b7d082bd..bf2f975625fb 100644 --- a/sw/source/ui/vba/vbapagesetup.cxx +++ b/sw/source/ui/vba/vbapagesetup.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include "vbapagesetup.hxx" +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/text/XText.hpp> #include <com/sun/star/text/XPageCursor.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> diff --git a/sw/source/ui/vba/vbapalette.cxx b/sw/source/ui/vba/vbapalette.cxx index 212c4510afc8..919feea94b8e 100644 --- a/sw/source/ui/vba/vbapalette.cxx +++ b/sw/source/ui/vba/vbapalette.cxx @@ -20,6 +20,7 @@ #include "vbapalette.hxx" #include <cppuhelper/implbase.hxx> #include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <ooo/vba/word/WdColor.hpp> #include <ooo/vba/word/WdColorIndex.hpp> #include <sal/macros.h> diff --git a/sw/source/ui/vba/vbapalette.hxx b/sw/source/ui/vba/vbapalette.hxx index a699681e02c5..989415c7f8cb 100644 --- a/sw/source/ui/vba/vbapalette.hxx +++ b/sw/source/ui/vba/vbapalette.hxx @@ -20,6 +20,7 @@ #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBAPALETTE_HXX #define INCLUDED_SW_SOURCE_UI_VBA_VBAPALETTE_HXX #include <vbahelper/vbahelper.hxx> +#include <com/sun/star/container/XIndexAccess.hpp> class VbaPalette { diff --git a/sw/source/ui/vba/vbaparagraphformat.cxx b/sw/source/ui/vba/vbaparagraphformat.cxx index eb53c2c6c2af..e60acecf8e0d 100644 --- a/sw/source/ui/vba/vbaparagraphformat.cxx +++ b/sw/source/ui/vba/vbaparagraphformat.cxx @@ -18,6 +18,7 @@ */ #include "vbaparagraphformat.hxx" #include <vbahelper/vbahelper.hxx> +#include <basic/sberrors.hxx> #include <tools/diagnose_ex.h> #include "wordvbahelper.hxx" #include <com/sun/star/style/LineSpacingMode.hpp> diff --git a/sw/source/ui/vba/vbarange.cxx b/sw/source/ui/vba/vbarange.cxx index 78491153d226..3ee72935845d 100644 --- a/sw/source/ui/vba/vbarange.cxx +++ b/sw/source/ui/vba/vbarange.cxx @@ -18,9 +18,11 @@ */ #include "vbarange.hxx" #include <vbahelper/vbahelper.hxx> +#include <basic/sberrors.hxx> #include <tools/diagnose_ex.h> #include "vbarangehelper.hxx" #include <ooo/vba/word/WdBreakType.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/style/BreakType.hpp> #include <com/sun/star/text/ControlCharacter.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> diff --git a/sw/source/ui/vba/vbarevisions.cxx b/sw/source/ui/vba/vbarevisions.cxx index 4d5c5344ac27..0a818389a280 100644 --- a/sw/source/ui/vba/vbarevisions.cxx +++ b/sw/source/ui/vba/vbarevisions.cxx @@ -19,6 +19,7 @@ #include "vbarevisions.hxx" #include "vbarevision.hxx" #include <cppuhelper/implbase.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/document/XRedlinesSupplier.hpp> #include <com/sun/star/text/XTextRangeCompare.hpp> diff --git a/sw/source/ui/vba/vbarow.cxx b/sw/source/ui/vba/vbarow.cxx index 21537b2820d9..7e3716e12bf2 100644 --- a/sw/source/ui/vba/vbarow.cxx +++ b/sw/source/ui/vba/vbarow.cxx @@ -19,6 +19,7 @@ #include "vbarow.hxx" #include <vbahelper/vbahelper.hxx> #include <tools/diagnose_ex.h> +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/table/XCellRange.hpp> #include <com/sun/star/view/XSelectionSupplier.hpp> #include <ooo/vba/word/WdRowHeightRule.hpp> diff --git a/sw/source/ui/vba/vbarows.cxx b/sw/source/ui/vba/vbarows.cxx index b0d338384650..182ef99f65a9 100644 --- a/sw/source/ui/vba/vbarows.cxx +++ b/sw/source/ui/vba/vbarows.cxx @@ -23,6 +23,7 @@ #include <ooo/vba/word/WdRowAlignment.hpp> #include <ooo/vba/word/WdConstants.hpp> #include <ooo/vba/word/WdRulerStyle.hpp> +#include <basic/sberrors.hxx> #include "wordvbahelper.hxx" #include "vbacolumns.hxx" #include "vbatablehelper.hxx" diff --git a/sw/source/ui/vba/vbaselection.cxx b/sw/source/ui/vba/vbaselection.cxx index 610ee72658b4..bd942fa0d396 100644 --- a/sw/source/ui/vba/vbaselection.cxx +++ b/sw/source/ui/vba/vbaselection.cxx @@ -26,6 +26,7 @@ #include <com/sun/star/text/XTextTableCursor.hpp> #include <com/sun/star/text/ControlCharacter.hpp> #include <com/sun/star/table/XCell.hpp> +#include <basic/sberrors.hxx> #include <comphelper/string.hxx> #include <ooo/vba/word/WdUnits.hpp> #include <ooo/vba/word/WdMovementType.hpp> diff --git a/sw/source/ui/vba/vbastyle.cxx b/sw/source/ui/vba/vbastyle.cxx index a9718a4fba39..ad9c8de36811 100644 --- a/sw/source/ui/vba/vbastyle.cxx +++ b/sw/source/ui/vba/vbastyle.cxx @@ -20,6 +20,7 @@ #include "vbastyle.hxx" #include <ooo/vba/word/WdStyleType.hpp> #include <com/sun/star/lang/Locale.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <i18nlangtag/languagetag.hxx> #include "vbafont.hxx" diff --git a/sw/source/ui/vba/vbastyles.cxx b/sw/source/ui/vba/vbastyles.cxx index 8d9de39f2743..f371f31082ca 100644 --- a/sw/source/ui/vba/vbastyles.cxx +++ b/sw/source/ui/vba/vbastyles.cxx @@ -18,7 +18,9 @@ */ #include "vbastyles.hxx" #include "vbastyle.hxx" +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> +#include <osl/diagnose.h> #include <com/sun/star/container/XEnumerationAccess.hpp> #include <com/sun/star/lang/IndexOutOfBoundsException.hpp> #include <com/sun/star/style/XStyleFamiliesSupplier.hpp> diff --git a/sw/source/ui/vba/vbastyles.hxx b/sw/source/ui/vba/vbastyles.hxx index 07897774a887..80a645ebbc83 100644 --- a/sw/source/ui/vba/vbastyles.hxx +++ b/sw/source/ui/vba/vbastyles.hxx @@ -19,6 +19,7 @@ #ifndef INCLUDED_SW_SOURCE_UI_VBA_VBASTYLES_HXX #define INCLUDED_SW_SOURCE_UI_VBA_VBASTYLES_HXX +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <ooo/vba/word/XStyles.hpp> #include <vbahelper/vbacollectionimpl.hxx> diff --git a/sw/source/ui/vba/vbatableofcontents.cxx b/sw/source/ui/vba/vbatableofcontents.cxx index 2f0c69e35d6c..34c177b10b07 100644 --- a/sw/source/ui/vba/vbatableofcontents.cxx +++ b/sw/source/ui/vba/vbatableofcontents.cxx @@ -18,6 +18,7 @@ */ #include "vbatableofcontents.hxx" #include <vbahelper/vbahelper.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> #include <tools/diagnose_ex.h> #include <ooo/vba/word/WdTabLeader.hpp> diff --git a/sw/source/ui/vba/vbatables.cxx b/sw/source/ui/vba/vbatables.cxx index a84b1565743b..ea80422a5d8f 100644 --- a/sw/source/ui/vba/vbatables.cxx +++ b/sw/source/ui/vba/vbatables.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/text/XTextTablesSupplier.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XText.hpp> #include <com/sun/star/table/XCellRange.hpp> #include <cppuhelper/implbase.hxx> diff --git a/sw/source/ui/vba/vbatablesofcontents.cxx b/sw/source/ui/vba/vbatablesofcontents.cxx index 920af89574ea..dd716ae9e0ed 100644 --- a/sw/source/ui/vba/vbatablesofcontents.cxx +++ b/sw/source/ui/vba/vbatablesofcontents.cxx @@ -19,6 +19,7 @@ #include "vbatablesofcontents.hxx" #include "vbatableofcontents.hxx" #include "vbarange.hxx" +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/XDocumentIndexesSupplier.hpp> #include <cppuhelper/implbase.hxx> diff --git a/sw/source/ui/vba/vbatabstops.cxx b/sw/source/ui/vba/vbatabstops.cxx index 0590e9c38d38..dbf1f4e2caea 100644 --- a/sw/source/ui/vba/vbatabstops.cxx +++ b/sw/source/ui/vba/vbatabstops.cxx @@ -18,10 +18,12 @@ */ #include "vbatabstops.hxx" #include "vbatabstop.hxx" +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/style/TabAlign.hpp> #include <com/sun/star/style/TabStop.hpp> #include <ooo/vba/word/WdTabLeader.hpp> #include <ooo/vba/word/WdTabAlignment.hpp> +#include <basic/sberrors.hxx> #include <cppuhelper/implbase.hxx> using namespace ::ooo::vba; diff --git a/sw/source/ui/vba/vbatemplate.cxx b/sw/source/ui/vba/vbatemplate.cxx index a663db5c03ca..6d8d1dd45276 100644 --- a/sw/source/ui/vba/vbatemplate.cxx +++ b/sw/source/ui/vba/vbatemplate.cxx @@ -24,6 +24,7 @@ #include <comphelper/processfactory.hxx> #include <comphelper/string.hxx> #include <tools/urlobj.hxx> +#include <rtl/character.hxx> #include <osl/file.hxx> using namespace ::ooo::vba; diff --git a/sw/source/ui/vba/vbaview.cxx b/sw/source/ui/vba/vbaview.cxx index c8ab58ff007b..c8c9524de83c 100644 --- a/sw/source/ui/vba/vbaview.cxx +++ b/sw/source/ui/vba/vbaview.cxx @@ -18,6 +18,7 @@ */ #include "vbaview.hxx" #include <vbahelper/vbahelper.hxx> +#include <basic/sberrors.hxx> #include <tools/diagnose_ex.h> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/view/XViewSettingsSupplier.hpp> diff --git a/sw/source/ui/vba/vbawindow.cxx b/sw/source/ui/vba/vbawindow.cxx index fb78e725f3c5..270abb71eb19 100644 --- a/sw/source/ui/vba/vbawindow.cxx +++ b/sw/source/ui/vba/vbawindow.cxx @@ -18,6 +18,7 @@ */ #include <vbahelper/helperdecl.hxx> #include <ooo/vba/word/WdWindowState.hpp> +#include <sfx2/viewfrm.hxx> #include <vcl/wrkwin.hxx> #include "vbawindow.hxx" diff --git a/sw/source/ui/vba/vbawrapformat.cxx b/sw/source/ui/vba/vbawrapformat.cxx index d31f5fd332ee..0481f4053e80 100644 --- a/sw/source/ui/vba/vbawrapformat.cxx +++ b/sw/source/ui/vba/vbawrapformat.cxx @@ -19,7 +19,9 @@ #include "vbawrapformat.hxx" #include <ooo/vba/word/WdWrapSideType.hpp> #include <ooo/vba/word/WdWrapType.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/text/WrapTextMode.hpp> +#include <basic/sberrors.hxx> #include <vbahelper/vbahelper.hxx> #include <vbahelper/helperdecl.hxx> diff --git a/vbahelper/source/msforms/vbacontrol.cxx b/vbahelper/source/msforms/vbacontrol.cxx index a687bffbddcf..da09536207d2 100644 --- a/vbahelper/source/msforms/vbacontrol.cxx +++ b/vbahelper/source/msforms/vbacontrol.cxx @@ -22,6 +22,7 @@ #include <com/sun/star/awt/XWindow2.hpp> #include <com/sun/star/awt/XActionListener.hpp> #include <com/sun/star/lang/XEventListener.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/drawing/XControlShape.hpp> #include <com/sun/star/frame/XModel.hpp> diff --git a/vbahelper/source/msforms/vbacontrols.cxx b/vbahelper/source/msforms/vbacontrols.cxx index ecce57dc4797..87241b5fef0d 100644 --- a/vbahelper/source/msforms/vbacontrols.cxx +++ b/vbahelper/source/msforms/vbacontrols.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/script/XInvocation.hpp> #include <com/sun/star/lang/WrappedTargetException.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include "vbacontrols.hxx" #include "vbacontrol.hxx" diff --git a/vbahelper/source/msforms/vbalistcontrolhelper.cxx b/vbahelper/source/msforms/vbalistcontrolhelper.cxx index 80a52ac8a0fa..6166154ca0d8 100644 --- a/vbahelper/source/msforms/vbalistcontrolhelper.cxx +++ b/vbahelper/source/msforms/vbalistcontrolhelper.cxx @@ -20,6 +20,7 @@ #include <vbalistcontrolhelper.hxx> #include <vector> #include <vbahelper/vbapropvalue.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> using namespace com::sun::star; using namespace ooo::vba; diff --git a/vbahelper/source/msforms/vbanewfont.cxx b/vbahelper/source/msforms/vbanewfont.cxx index e9639b4b6dee..39293ade4095 100644 --- a/vbahelper/source/msforms/vbanewfont.cxx +++ b/vbahelper/source/msforms/vbanewfont.cxx @@ -23,6 +23,7 @@ #include <com/sun/star/awt/FontSlant.hpp> #include <com/sun/star/awt/FontStrikeout.hpp> #include <com/sun/star/awt/FontUnderline.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> using namespace ::com::sun::star; using namespace ::ooo::vba; diff --git a/vbahelper/source/vbahelper/vbaapplicationbase.cxx b/vbahelper/source/vbahelper/vbaapplicationbase.cxx index aa6af2fa4f9e..1b6fa4c091ef 100644 --- a/vbahelper/source/vbahelper/vbaapplicationbase.cxx +++ b/vbahelper/source/vbahelper/vbaapplicationbase.cxx @@ -35,6 +35,7 @@ #include <filter/msfilter/msvbahelper.hxx> #include <tools/datetime.hxx> +#include <vcl/timer.hxx> #include <basic/sbx.hxx> #include <basic/sbstar.hxx> diff --git a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx index ae45972e310a..3cf133adf497 100644 --- a/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarcontrols.cxx @@ -18,6 +18,7 @@ */ #include "vbacommandbarcontrols.hxx" #include "vbacommandbarcontrol.hxx" +#include <com/sun/star/lang/XSingleComponentFactory.hpp> using namespace com::sun::star; using namespace ooo::vba; diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index 551adc16e034..fe6527217805 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include "vbacommandbarhelper.hxx" +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/ui/theModuleUIConfigurationManagerSupplier.hpp> #include <com/sun/star/ui/XUIConfigurationManagerSupplier.hpp> #include <com/sun/star/ui/XUIConfigurationStorage.hpp> diff --git a/vbahelper/source/vbahelper/vbadialogbase.cxx b/vbahelper/source/vbahelper/vbadialogbase.cxx index b988c6708abf..e5af3b3e9c0e 100644 --- a/vbahelper/source/vbahelper/vbadialogbase.cxx +++ b/vbahelper/source/vbahelper/vbadialogbase.cxx @@ -18,6 +18,7 @@ */ #include <vbahelper/vbadialogbase.hxx> #include <vbahelper/vbahelper.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> using namespace ::ooo::vba; using namespace ::com::sun::star; diff --git a/vbahelper/source/vbahelper/vbadocumentbase.cxx b/vbahelper/source/vbahelper/vbadocumentbase.cxx index 6814e67f056c..f2c2a9b12081 100644 --- a/vbahelper/source/vbahelper/vbadocumentbase.cxx +++ b/vbahelper/source/vbahelper/vbadocumentbase.cxx @@ -27,6 +27,7 @@ #include <com/sun/star/util/XCloseable.hpp> #include <com/sun/star/util/URLTransformer.hpp> #include <com/sun/star/util/XURLTransformer.hpp> +#include <com/sun/star/frame/XDispatchProvider.hpp> #include <com/sun/star/frame/XStorable.hpp> #include <com/sun/star/frame/XFrame.hpp> #include <com/sun/star/frame/XTitle.hpp> diff --git a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx index 974afc533c58..074f5240b12b 100644 --- a/vbahelper/source/vbahelper/vbaeventshelperbase.cxx +++ b/vbahelper/source/vbahelper/vbaeventshelperbase.cxx @@ -24,6 +24,7 @@ #include <com/sun/star/util/XChangesNotifier.hpp> #include <filter/msfilter/msvbahelper.hxx> #include <unotools/eventcfg.hxx> +#include <vbahelper/vbahelper.hxx> using namespace ::com::sun::star; using namespace ::ooo::vba; diff --git a/vbahelper/source/vbahelper/vbafontbase.cxx b/vbahelper/source/vbahelper/vbafontbase.cxx index 94ae3be9586e..d9f908bee01c 100644 --- a/vbahelper/source/vbahelper/vbafontbase.cxx +++ b/vbahelper/source/vbahelper/vbafontbase.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include <com/sun/star/beans/XProperty.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/container/XIndexAccess.hpp> #include <com/sun/star/awt/FontWeight.hpp> #include <com/sun/star/awt/FontUnderline.hpp> #include <com/sun/star/awt/FontStrikeout.hpp> diff --git a/vbahelper/source/vbahelper/vbaglobalbase.cxx b/vbahelper/source/vbahelper/vbaglobalbase.cxx index d0a617598d39..177aa1cf064b 100644 --- a/vbahelper/source/vbahelper/vbaglobalbase.cxx +++ b/vbahelper/source/vbahelper/vbaglobalbase.cxx @@ -22,6 +22,8 @@ #include <cppuhelper/component_context.hxx> #include <cppuhelper/exc_hlp.hxx> #include <comphelper/processfactory.hxx> +#include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNameContainer.hpp> #include <com/sun/star/lang/WrappedTargetRuntimeException.hpp> diff --git a/vbahelper/source/vbahelper/vbahelper.cxx b/vbahelper/source/vbahelper/vbahelper.cxx index e0456ea6402f..b2d52fd84a3c 100644 --- a/vbahelper/source/vbahelper/vbahelper.cxx +++ b/vbahelper/source/vbahelper/vbahelper.cxx @@ -33,9 +33,11 @@ #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/beans/theIntrospection.hpp> #include <com/sun/star/util/MeasureUnit.hpp> +#include <com/sun/star/awt/XControl.hpp> #include <com/sun/star/awt/XWindow.hpp> #include <com/sun/star/awt/XDialog.hpp> #include <com/sun/star/awt/PosSize.hpp> +#include <com/sun/star/drawing/XShape.hpp> #include <ooo/vba/msforms/XShape.hpp> diff --git a/vbahelper/source/vbahelper/vbapagesetupbase.cxx b/vbahelper/source/vbahelper/vbapagesetupbase.cxx index 85ce43bbcfb0..d3f86d0dbcc0 100644 --- a/vbahelper/source/vbahelper/vbapagesetupbase.cxx +++ b/vbahelper/source/vbahelper/vbapagesetupbase.cxx @@ -17,6 +17,8 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include <vbahelper/vbapagesetupbase.hxx> +#include <basic/sberrors.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> using namespace ::com::sun::star; using namespace ::ooo::vba; diff --git a/vbahelper/source/vbahelper/vbashape.cxx b/vbahelper/source/vbahelper/vbashape.cxx index 6e9f3f6fa9db..a7dcee0e8fdb 100644 --- a/vbahelper/source/vbahelper/vbashape.cxx +++ b/vbahelper/source/vbahelper/vbashape.cxx @@ -28,9 +28,11 @@ #include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/text/TextContentAnchorType.hpp> #include <com/sun/star/text/RelOrientation.hpp> +#include <ooo/vba/office/MsoShapeType.hpp> #include <ooo/vba/word/WdRelativeHorizontalPosition.hpp> #include <ooo/vba/word/WdRelativeVerticalPosition.hpp> +#include <basic/sberrors.hxx> #include <comphelper/processfactory.hxx> #include <osl/mutex.hxx> #include <vcl/svapp.hxx> diff --git a/vbahelper/source/vbahelper/vbashaperange.cxx b/vbahelper/source/vbahelper/vbashaperange.cxx index ae95cd456dfd..39fa9cbc286a 100644 --- a/vbahelper/source/vbahelper/vbashaperange.cxx +++ b/vbahelper/source/vbahelper/vbashaperange.cxx @@ -19,7 +19,9 @@ #include <com/sun/star/drawing/ShapeCollection.hpp> #include <com/sun/star/drawing/XShapeGrouper.hpp> #include <com/sun/star/drawing/XDrawPage.hpp> +#include <com/sun/star/frame/XModel.hpp> #include <com/sun/star/view/XSelectionSupplier.hpp> +#include <ooo/vba/office/MsoShapeType.hpp> #include <vbahelper/vbahelper.hxx> #include <vbahelper/vbashaperange.hxx> diff --git a/vbahelper/source/vbahelper/vbashapes.cxx b/vbahelper/source/vbahelper/vbashapes.cxx index fc66a1747c49..91f9b37ae13d 100644 --- a/vbahelper/source/vbahelper/vbashapes.cxx +++ b/vbahelper/source/vbahelper/vbashapes.cxx @@ -22,7 +22,12 @@ #include <ooo/vba/msforms/XShapeRange.hpp> #include <ooo/vba/office/MsoAutoShapeType.hpp> #include <ooo/vba/office/MsoTextOrientation.hpp> +#include <com/sun/star/awt/Point.hpp> +#include <com/sun/star/awt/Size.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> +#include <com/sun/star/lang/XMultiServiceFactory.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> +#include <com/sun/star/script/XTypeConverter.hpp> #include <com/sun/star/text/XText.hpp> #include <com/sun/star/text/XTextDocument.hpp> #include <com/sun/star/text/XTextContent.hpp> @@ -33,6 +38,9 @@ #include <com/sun/star/text/SizeType.hpp> #include <com/sun/star/text/WritingMode.hpp> #include <com/sun/star/drawing/LineStyle.hpp> +#include <com/sun/star/drawing/XDrawPage.hpp> +#include <com/sun/star/drawing/XShape.hpp> +#include <com/sun/star/drawing/XShapes.hpp> #include <vbahelper/vbahelper.hxx> #include <vbahelper/vbashape.hxx> diff --git a/vbahelper/source/vbahelper/vbatextframe.cxx b/vbahelper/source/vbahelper/vbatextframe.cxx index d86d2635bbcc..59bf6dd42593 100644 --- a/vbahelper/source/vbahelper/vbatextframe.cxx +++ b/vbahelper/source/vbahelper/vbatextframe.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #include <vbahelper/helperdecl.hxx> +#include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/drawing/TextFitToSizeType.hpp> #include <com/sun/star/text/XText.hpp> #include <vbahelper/vbatextframe.hxx> diff --git a/vbahelper/source/vbahelper/vbawindowbase.cxx b/vbahelper/source/vbahelper/vbawindowbase.cxx index edb13508ae59..19b7aaba6e86 100644 --- a/vbahelper/source/vbahelper/vbawindowbase.cxx +++ b/vbahelper/source/vbahelper/vbawindowbase.cxx @@ -20,6 +20,10 @@ #include "vbahelper/vbawindowbase.hxx" #include "vbahelper/helperdecl.hxx" #include <com/sun/star/awt/PosSize.hpp> +#include <com/sun/star/awt/XWindow.hpp> +#include <com/sun/star/awt/XWindow2.hpp> +#include <com/sun/star/frame/XFrame.hpp> +#include <com/sun/star/frame/XModel.hpp> using namespace ::com::sun::star; using namespace ::ooo::vba; |