diff options
author | Jorenz Paragas <j.paragas.237@gmail.com> | 2016-05-03 23:11:01 -0700 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2016-05-04 10:33:36 +0000 |
commit | 24e56929445f0e3e22c7129bf18e912ae1ac6fc1 (patch) | |
tree | 18c44913661b4fdc8423a5f2564bc78c98f2288a /include | |
parent | a5a731daec8dcb4f44bb618b71e6995ec1deb561 (diff) |
tdf#42949: clean up includes in include/oox/dump with iwyu
Additionally, include cmath instead of math.h in dumperbase.hxx.
Change-Id: I0ee7158c86bdf266c783340bcf891aff44399066
Reviewed-on: https://gerrit.libreoffice.org/24632
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/dump/dffdumper.hxx | 3 | ||||
-rw-r--r-- | include/oox/dump/dumperbase.hxx | 29 | ||||
-rw-r--r-- | include/oox/dump/oledumper.hxx | 11 | ||||
-rw-r--r-- | include/oox/dump/pptxdumper.hxx | 9 | ||||
-rw-r--r-- | include/oox/dump/xlsbdumper.hxx | 22 |
5 files changed, 52 insertions, 22 deletions
diff --git a/include/oox/dump/dffdumper.hxx b/include/oox/dump/dffdumper.hxx index 2cde09d3e2c0..5f49b81a201b 100644 --- a/include/oox/dump/dffdumper.hxx +++ b/include/oox/dump/dffdumper.hxx @@ -21,9 +21,12 @@ #define INCLUDED_OOX_DUMP_DFFDUMPER_HXX #include <oox/dump/dumperbase.hxx> +#include <sal/types.h> #if OOX_INCLUDE_DUMPER +namespace oox { class BinaryInputStream; } + namespace oox { namespace dump { diff --git a/include/oox/dump/dumperbase.hxx b/include/oox/dump/dumperbase.hxx index 4561720c31ee..7e10ee138f25 100644 --- a/include/oox/dump/dumperbase.hxx +++ b/include/oox/dump/dumperbase.hxx @@ -20,19 +20,25 @@ #ifndef INCLUDED_OOX_DUMP_DUMPERBASE_HXX #define INCLUDED_OOX_DUMP_DUMPERBASE_HXX -#include <math.h> -#include <vector> -#include <stack> -#include <set> +#include <cmath> +#include <cstddef> #include <map> #include <memory> -#include <rtl/strbuf.hxx> -#include <rtl/ustrbuf.hxx> +#include <set> +#include <utility> +#include <vector> + #include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> #include <com/sun/star/util/DateTime.hpp> #include <oox/helper/binaryinputstream.hxx> -#include <oox/helper/helper.hxx> +#include <oox/helper/binarystreambase.hxx> #include <oox/helper/storagebase.hxx> +#include <rtl/string.hxx> +#include <rtl/textenc.h> +#include <rtl/ustring.hxx> +#include <rtl/ustrbuf.hxx> +#include <sal/types.h> #define OOX_INCLUDE_DUMPER (OSL_DEBUG_LEVEL > 0) @@ -45,12 +51,7 @@ namespace com { namespace sun { namespace star { namespace uno { class XComponentContext; } } } } -namespace comphelper { - class IDocPasswordVerifier; -} - namespace oox { - class BinaryOutputStream; class TextInputStream; } @@ -355,7 +356,7 @@ public: template< typename Type > void StringHelper::appendFix( OUStringBuffer& rStr, Type nData, sal_Int32 nWidth ) { - appendDec( rStr, static_cast< double >( nData ) / pow( 2.0, 4.0 * sizeof( Type ) ), nWidth ); + appendDec( rStr, static_cast< double >( nData ) / std::pow( 2.0, 4.0 * sizeof( Type ) ), nWidth ); } template< typename Type > @@ -389,8 +390,6 @@ public: static const String EMPTY_STRING; -class Base; - /** Base class for all dumper classes. Derived classes implement the virtual function implIsValid(). It should diff --git a/include/oox/dump/oledumper.hxx b/include/oox/dump/oledumper.hxx index 0edae384cb4d..95d9db445a1a 100644 --- a/include/oox/dump/oledumper.hxx +++ b/include/oox/dump/oledumper.hxx @@ -20,8 +20,17 @@ #ifndef INCLUDED_OOX_DUMP_OLEDUMPER_HXX #define INCLUDED_OOX_DUMP_OLEDUMPER_HXX -#include <oox/helper/storagebase.hxx> +#include <map> +#include <memory> +#include <vector> + +#include <com/sun/star/uno/Reference.hxx> #include <oox/dump/dumperbase.hxx> +#include <oox/helper/binaryinputstream.hxx> +#include <oox/helper/storagebase.hxx> +#include <rtl/textenc.h> +#include <rtl/ustring.hxx> +#include <sal/types.h> #if OOX_INCLUDE_DUMPER diff --git a/include/oox/dump/pptxdumper.hxx b/include/oox/dump/pptxdumper.hxx index 9b0a14857b32..0660447da84a 100644 --- a/include/oox/dump/pptxdumper.hxx +++ b/include/oox/dump/pptxdumper.hxx @@ -20,10 +20,19 @@ #ifndef INCLUDED_OOX_DUMP_PPTXDUMPER_HXX #define INCLUDED_OOX_DUMP_PPTXDUMPER_HXX +#include <com/sun/star/uno/Reference.hxx> #include <oox/dump/dumperbase.hxx> +#include <rtl/ustring.hxx> #if OOX_INCLUDE_DUMPER +namespace com { namespace sun { namespace star { + namespace io { class XInputStream; } + namespace uno { class XComponentContext; } +} } } + +namespace oox { namespace core { class FilterBase; } } + namespace oox { namespace dump { namespace pptx { diff --git a/include/oox/dump/xlsbdumper.hxx b/include/oox/dump/xlsbdumper.hxx index 1d8c28281249..8c4e5f31f09a 100644 --- a/include/oox/dump/xlsbdumper.hxx +++ b/include/oox/dump/xlsbdumper.hxx @@ -20,16 +20,26 @@ #ifndef INCLUDED_OOX_DUMP_XLSBDUMPER_HXX #define INCLUDED_OOX_DUMP_XLSBDUMPER_HXX +#include <memory> + +#include <com/sun/star/uno/Reference.hxx> #include <oox/dump/dumperbase.hxx> +#include <rtl/ustring.hxx> +#include <sal/types.h> #if OOX_INCLUDE_DUMPER -namespace oox { namespace xls { - class FontPortionModelList; - class PhoneticPortionModelList; - struct FunctionInfo; - class FunctionProvider; -} } +namespace com { namespace sun { namespace star { + namespace io { class XInputStream; } + namespace uno { class XComponentContext; } +} } } + +namespace oox { + class BinaryInputStream; + class SequenceInputStream; +} + +namespace oox { namespace core { class FilterBase; } } namespace oox { namespace dump { |