From 96d5516429bc1846fc6cf7119590f7b05a65eef8 Mon Sep 17 00:00:00 2001 From: Jorenz Paragas Date: Wed, 11 May 2016 22:02:58 -0700 Subject: tdf#42949: clean up includes in include/oox/ole with iwyu Change-Id: I9cbdc78b540b0f735c451ac561f0f0ccdaf7efbd Reviewed-on: https://gerrit.libreoffice.org/24911 Tested-by: Jenkins Reviewed-by: Noel Grandin --- include/oox/ole/axbinaryreader.hxx | 9 ++++++++- include/oox/ole/axbinarywriter.hxx | 5 +++++ include/oox/ole/axcontrol.hxx | 12 +++++++++-- include/oox/ole/axcontrolfragment.hxx | 7 +++++++ include/oox/ole/axfontdata.hxx | 10 +++++++--- include/oox/ole/olehelper.hxx | 34 +++++++++++++++----------------- include/oox/ole/oleobjecthelper.hxx | 3 +++ include/oox/ole/olestorage.hxx | 9 +++++++++ include/oox/ole/vbacontrol.hxx | 18 +++++++++++++++-- include/oox/ole/vbaexport.hxx | 5 ++++- include/oox/ole/vbahelper.hxx | 2 ++ include/oox/ole/vbainputstream.hxx | 4 ++++ include/oox/ole/vbamodule.hxx | 2 ++ include/oox/ole/vbaproject.hxx | 19 ++++++++++++------ oox/source/ole/axbinaryreader.cxx | 1 + oox/source/ole/olehelper.cxx | 5 +++++ sc/source/filter/inc/excelhandlers.hxx | 1 + sc/source/filter/oox/drawingfragment.cxx | 1 + sw/source/filter/ww8/wrtw8nds.cxx | 1 + 19 files changed, 115 insertions(+), 33 deletions(-) diff --git a/include/oox/ole/axbinaryreader.hxx b/include/oox/ole/axbinaryreader.hxx index 5823fbb8ef19..81b10531298c 100644 --- a/include/oox/ole/axbinaryreader.hxx +++ b/include/oox/ole/axbinaryreader.hxx @@ -20,10 +20,17 @@ #ifndef INCLUDED_OOX_OLE_AXBINARYREADER_HXX #define INCLUDED_OOX_OLE_AXBINARYREADER_HXX +#include #include +#include + #include +#include #include -#include +#include +#include + +namespace oox { namespace ole { struct AxFontData; } } namespace oox { namespace ole { diff --git a/include/oox/ole/axbinarywriter.hxx b/include/oox/ole/axbinarywriter.hxx index 66dc5000dca1..d1fe1a23fcea 100644 --- a/include/oox/ole/axbinarywriter.hxx +++ b/include/oox/ole/axbinarywriter.hxx @@ -10,9 +10,14 @@ #ifndef INCLUDED_OOX_OLE_AXBINARYWRITER_HXX #define INCLUDED_OOX_OLE_AXBINARYWRITER_HXX +#include #include + #include +#include #include +#include +#include namespace oox { namespace ole { diff --git a/include/oox/ole/axcontrol.hxx b/include/oox/ole/axcontrol.hxx index e8c879a44ea2..4d91f975fc1c 100644 --- a/include/oox/ole/axcontrol.hxx +++ b/include/oox/ole/axcontrol.hxx @@ -20,12 +20,19 @@ #ifndef INCLUDED_OOX_OLE_AXCONTROL_HXX #define INCLUDED_OOX_OLE_AXCONTROL_HXX +#include +#include + +#include +#include +#include #include #include #include +#include #include -#include -#include +#include +#include namespace com { namespace sun { namespace star { namespace awt { class XControlModel; } @@ -38,6 +45,7 @@ namespace com { namespace sun { namespace star { namespace oox { class BinaryInputStream; + class BinaryOutputStream; class GraphicHelper; class PropertyMap; } diff --git a/include/oox/ole/axcontrolfragment.hxx b/include/oox/ole/axcontrolfragment.hxx index b4284cf892e7..a741aed06794 100644 --- a/include/oox/ole/axcontrolfragment.hxx +++ b/include/oox/ole/axcontrolfragment.hxx @@ -20,7 +20,14 @@ #ifndef INCLUDED_OOX_OLE_AXCONTROLFRAGMENT_HXX #define INCLUDED_OOX_OLE_AXCONTROLFRAGMENT_HXX +#include +#include #include +#include +#include + +namespace oox { class AttributeList; } +namespace oox { namespace core { class XmlFilterBase; } } namespace oox { namespace ole { diff --git a/include/oox/ole/axfontdata.hxx b/include/oox/ole/axfontdata.hxx index 05694fbcd12e..b6bcf9e68aed 100644 --- a/include/oox/ole/axfontdata.hxx +++ b/include/oox/ole/axfontdata.hxx @@ -20,10 +20,14 @@ #ifndef INCLUDED_OOX_OLE_AXFONTDATA_HXX #define INCLUDED_OOX_OLE_AXFONTDATA_HXX -#include -#include -#include #include +#include +#include + +namespace oox { + class BinaryInputStream; + class BinaryOutputStream; +} namespace oox { namespace ole { diff --git a/include/oox/ole/olehelper.hxx b/include/oox/ole/olehelper.hxx index 0a6ba4a76302..d848cc492fcb 100644 --- a/include/oox/ole/olehelper.hxx +++ b/include/oox/ole/olehelper.hxx @@ -20,24 +20,24 @@ #ifndef INCLUDED_OOX_OLE_OLEHELPER_HXX #define INCLUDED_OOX_OLE_OLEHELPER_HXX -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include #include #include +#include +#include +#include +#include +#include +#include + +namespace com { namespace sun { namespace star { + namespace awt { class XControlModel; } + namespace awt { struct Size; } + namespace form { class XFormComponent; } + namespace frame { class XModel; } + namespace io { class XOutputStream; } + namespace uno { class XComponentContext; } +} } } class SotStorage; class SotStorageStream; @@ -46,8 +46,6 @@ class SvGlobalName; namespace oox { class BinaryInputStream; class BinaryOutputStream; - class BinaryXInputStream; - class GraphicHelper; } namespace oox { diff --git a/include/oox/ole/oleobjecthelper.hxx b/include/oox/ole/oleobjecthelper.hxx index 0947ad1f9447..604785f305b6 100644 --- a/include/oox/ole/oleobjecthelper.hxx +++ b/include/oox/ole/oleobjecthelper.hxx @@ -20,8 +20,11 @@ #ifndef INCLUDED_OOX_OLE_OLEOBJECTHELPER_HXX #define INCLUDED_OOX_OLE_OLEOBJECTHELPER_HXX +#include #include #include +#include +#include namespace com { namespace sun { namespace star { namespace awt { struct Size; } diff --git a/include/oox/ole/olestorage.hxx b/include/oox/ole/olestorage.hxx index 9039cae2dedb..88b0ff8c9c8a 100644 --- a/include/oox/ole/olestorage.hxx +++ b/include/oox/ole/olestorage.hxx @@ -20,10 +20,19 @@ #ifndef INCLUDED_OOX_OLE_OLESTORAGE_HXX #define INCLUDED_OOX_OLE_OLESTORAGE_HXX +#include + +#include +#include #include +#include namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } + namespace embed { class XStorage; } + namespace io { class XInputStream; } + namespace io { class XOutputStream; } + namespace io { class XStream; } namespace uno { class XComponentContext; } } } } diff --git a/include/oox/ole/vbacontrol.hxx b/include/oox/ole/vbacontrol.hxx index daf3f1b150c7..395b2c7e2588 100644 --- a/include/oox/ole/vbacontrol.hxx +++ b/include/oox/ole/vbacontrol.hxx @@ -20,15 +20,29 @@ #ifndef INCLUDED_OOX_OLE_VBACONTROL_HXX #define INCLUDED_OOX_OLE_VBACONTROL_HXX +#include + +#include +#include +#include #include -#include +#include +#include +#include namespace com { namespace sun { namespace star { + namespace awt { class XControlModel; } namespace container { class XNameContainer; } + namespace frame { class XModel; } namespace uno { class XComponentContext; } } } } -namespace oox { class StorageBase; } +namespace oox { + class BinaryInputStream; + class GraphicHelper; + class PropertyMap; + class StorageBase; +} namespace oox { namespace ole { diff --git a/include/oox/ole/vbaexport.hxx b/include/oox/ole/vbaexport.hxx index 732a50c62aa0..987bbdf0b792 100644 --- a/include/oox/ole/vbaexport.hxx +++ b/include/oox/ole/vbaexport.hxx @@ -10,9 +10,12 @@ #ifndef INCLUDED_OOX_OLE_VBAEXPORT_HXX #define INCLUDED_OOX_OLE_VBAEXPORT_HXX -#include +#include +#include #include +#include +#include class SotStorage; class SvStream; diff --git a/include/oox/ole/vbahelper.hxx b/include/oox/ole/vbahelper.hxx index 94a63efe34a8..9c9c3c3af3ad 100644 --- a/include/oox/ole/vbahelper.hxx +++ b/include/oox/ole/vbahelper.hxx @@ -21,6 +21,8 @@ #define INCLUDED_OOX_OLE_VBAHELPER_HXX #include +#include +#include namespace oox { class BinaryInputStream; } diff --git a/include/oox/ole/vbainputstream.hxx b/include/oox/ole/vbainputstream.hxx index dd6e53ad6a9a..f002ce816025 100644 --- a/include/oox/ole/vbainputstream.hxx +++ b/include/oox/ole/vbainputstream.hxx @@ -20,8 +20,12 @@ #ifndef INCLUDED_OOX_OLE_VBAINPUTSTREAM_HXX #define INCLUDED_OOX_OLE_VBAINPUTSTREAM_HXX +#include #include + #include +#include +#include namespace oox { namespace ole { diff --git a/include/oox/ole/vbamodule.hxx b/include/oox/ole/vbamodule.hxx index 68aef13e82e1..cb3682839c90 100644 --- a/include/oox/ole/vbamodule.hxx +++ b/include/oox/ole/vbamodule.hxx @@ -21,7 +21,9 @@ #define INCLUDED_OOX_OLE_VBAMODULE_HXX #include +#include #include +#include namespace com { namespace sun { namespace star { namespace container { class XNameAccess; } diff --git a/include/oox/ole/vbaproject.hxx b/include/oox/ole/vbaproject.hxx index d5230988e211..ea7ffcccd351 100644 --- a/include/oox/ole/vbaproject.hxx +++ b/include/oox/ole/vbaproject.hxx @@ -20,27 +20,34 @@ #ifndef INCLUDED_OOX_OLE_VBAPROJECT_HXX #define INCLUDED_OOX_OLE_VBAPROJECT_HXX +#include #include -#include -#include -#include + +#include #include -#include +#include +#include +#include +#include namespace com { namespace sun { namespace star { namespace container { class XNameContainer; } - namespace document { class XEventsSupplier; } namespace frame { class XModel; } namespace script { class XLibraryContainer; } namespace script { namespace vba { class XVBAMacroResolver; } } namespace uno { class XComponentContext; } + namespace uno { class XInterface; } } } } -namespace oox { class GraphicHelper; } +namespace oox { + class GraphicHelper; + class StorageBase; +} namespace oox { namespace ole { +class VbaModule; class OOX_DLLPUBLIC VbaFilterConfig { diff --git a/oox/source/ole/axbinaryreader.cxx b/oox/source/ole/axbinaryreader.cxx index 362a155cc5a7..e552dbf1dd49 100644 --- a/oox/source/ole/axbinaryreader.cxx +++ b/oox/source/ole/axbinaryreader.cxx @@ -19,6 +19,7 @@ #include "oox/ole/axbinaryreader.hxx" +#include #include "oox/ole/olehelper.hxx" #include diff --git a/oox/source/ole/olehelper.cxx b/oox/source/ole/olehelper.cxx index 9b032d798da8..6747bbc51664 100644 --- a/oox/source/ole/olehelper.cxx +++ b/oox/source/ole/olehelper.cxx @@ -23,6 +23,7 @@ #include #include #include "oox/helper/binaryinputstream.hxx" +#include #include "oox/helper/graphichelper.hxx" #include #include @@ -31,8 +32,12 @@ #include "oox/helper/propertyset.hxx" #include "oox/ole/olestorage.hxx" +#include #include #include +#include +#include +#include #include #include diff --git a/sc/source/filter/inc/excelhandlers.hxx b/sc/source/filter/inc/excelhandlers.hxx index 5763aec7cf07..17c6ed69e7ea 100644 --- a/sc/source/filter/inc/excelhandlers.hxx +++ b/sc/source/filter/inc/excelhandlers.hxx @@ -21,6 +21,7 @@ #define INCLUDED_SC_SOURCE_FILTER_INC_EXCELHANDLERS_HXX #include +#include #include "worksheethelper.hxx" namespace oox { diff --git a/sc/source/filter/oox/drawingfragment.cxx b/sc/source/filter/oox/drawingfragment.cxx index 91c68bcc95b9..7c220930ad13 100644 --- a/sc/source/filter/oox/drawingfragment.cxx +++ b/sc/source/filter/oox/drawingfragment.cxx @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/sw/source/filter/ww8/wrtw8nds.cxx b/sw/source/filter/ww8/wrtw8nds.cxx index 3704b3ac8619..3152878a28fa 100644 --- a/sw/source/filter/ww8/wrtw8nds.cxx +++ b/sw/source/filter/ww8/wrtw8nds.cxx @@ -80,6 +80,7 @@ #include #include #include +#include #include #include #include -- cgit v1.2.3