diff options
author | Jorenz Paragas <j.paragas.237@gmail.com> | 2016-06-16 18:59:35 -0700 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-06-21 07:58:59 +0000 |
commit | 8a6bffd2fefcc81dc34951ba2e178d9938b59fb3 (patch) | |
tree | dfe32bb6c0a7ed8d5f462f3c557c42bd01232e74 /include/formula | |
parent | GALLERY_USE_CLIPBOARD unused since 2001 (diff) | |
download | core-8a6bffd2fefcc81dc34951ba2e178d9938b59fb3.tar.gz core-8a6bffd2fefcc81dc34951ba2e178d9938b59fb3.zip |
tdf#42949: clean up includes in include/formula with iwyu
Change-Id: Ieb601d98be80aeb2239d4f0a330d90e63f1abc43
Reviewed-on: https://gerrit.libreoffice.org/26398
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/ExternalReferenceHelper.hxx | 5 | ||||
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 21 | ||||
-rw-r--r-- | include/formula/FormulaOpCodeMapperObj.hxx | 26 | ||||
-rw-r--r-- | include/formula/IControlReferenceHandler.hxx | 1 | ||||
-rw-r--r-- | include/formula/IFunctionDescription.hxx | 18 | ||||
-rw-r--r-- | include/formula/errorcodes.hxx | 2 | ||||
-rw-r--r-- | include/formula/formdata.hxx | 2 | ||||
-rw-r--r-- | include/formula/formula.hxx | 20 | ||||
-rw-r--r-- | include/formula/formulahelper.hxx | 12 | ||||
-rw-r--r-- | include/formula/funcutl.hxx | 15 | ||||
-rw-r--r-- | include/formula/grammar.hxx | 1 | ||||
-rw-r--r-- | include/formula/token.hxx | 14 | ||||
-rw-r--r-- | include/formula/tokenarray.hxx | 23 | ||||
-rw-r--r-- | include/formula/vectortoken.hxx | 5 |
14 files changed, 119 insertions, 46 deletions
diff --git a/include/formula/ExternalReferenceHelper.hxx b/include/formula/ExternalReferenceHelper.hxx index 6c93286129ce..364307f637a8 100644 --- a/include/formula/ExternalReferenceHelper.hxx +++ b/include/formula/ExternalReferenceHelper.hxx @@ -20,8 +20,11 @@ #ifndef INCLUDED_FORMULA_EXTERNALREFERENCEHELPER_HXX #define INCLUDED_FORMULA_EXTERNALREFERENCEHELPER_HXX -#include <rtl/ustring.hxx> +#include <cstddef> + #include <formula/formuladllapi.h> +#include <rtl/ustring.hxx> +#include <sal/types.h> namespace formula { diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index fc912fcc9bc3..adad03f9aad4 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -20,20 +20,21 @@ #ifndef INCLUDED_FORMULA_FORMULACOMPILER_HXX #define INCLUDED_FORMULA_FORMULACOMPILER_HXX -#include <formula/formuladllapi.h> -#include <rtl/ustrbuf.hxx> -#include <rtl/ustring.hxx> -#include <tools/debug.hxx> +#include <memory> +#include <unordered_map> +#include <vector> #include <com/sun/star/uno/Sequence.hxx> - -#include <formula/opcode.hxx> +#include <formula/formuladllapi.h> #include <formula/grammar.hxx> +#include <formula/opcode.hxx> #include <formula/token.hxx> -#include <formula/ExternalReferenceHelper.hxx> - -#include <memory> -#include <unordered_map> +#include <formula/types.hxx> +#include <rtl/ustrbuf.hxx> +#include <rtl/ustring.hxx> +#include <sal/log.hxx> +#include <sal/types.h> +#include <tools/debug.hxx> #define FORMULA_MAXJUMPCOUNT 32 /* maximum number of jumps (ocChoose) */ #define FORMULA_MAXTOKENS 8192 /* maximum number of tokens in formula */ diff --git a/include/formula/FormulaOpCodeMapperObj.hxx b/include/formula/FormulaOpCodeMapperObj.hxx index 1cfc40cc70a9..fdf28eb3789f 100644 --- a/include/formula/FormulaOpCodeMapperObj.hxx +++ b/include/formula/FormulaOpCodeMapperObj.hxx @@ -20,18 +20,32 @@ #ifndef INCLUDED_FORMULA_FORMULAOPCODEMAPPEROBJ_HXX #define INCLUDED_FORMULA_FORMULAOPCODEMAPPEROBJ_HXX -#include <formula/formuladllapi.h> -#include <cppuhelper/implbase2.hxx> -#include <com/sun/star/sheet/XFormulaOpCodeMapper.hpp> -#include <com/sun/star/lang/XServiceInfo.hpp> -#include <com/sun/star/uno/XComponentContext.hpp> +#include <exception> #include <memory> -#include <formula/FormulaCompiler.hxx> +#include <com/sun/star/lang/IllegalArgumentException.hpp> +#include <com/sun/star/lang/XServiceInfo.hpp> +#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/sheet/XFormulaOpCodeMapper.hpp> +#include <cppuhelper/implbase2.hxx> +#include <formula/formuladllapi.h> +#include <rtl/ustring.hxx> +#include <sal/types.h> + +namespace com { namespace sun { namespace star { + namespace sheet { struct FormulaOpCodeMapEntry; } + namespace sheet { struct FormulaToken; } + namespace uno { class XComponentContext; } + namespace uno { class XInterface; } +} } } namespace formula { +class FormulaCompiler; + class FORMULA_DLLPUBLIC FormulaOpCodeMapperObj : public ::cppu::WeakImplHelper2< css::sheet::XFormulaOpCodeMapper, css::lang::XServiceInfo > diff --git a/include/formula/IControlReferenceHandler.hxx b/include/formula/IControlReferenceHandler.hxx index 595eb13e05de..38586f191fde 100644 --- a/include/formula/IControlReferenceHandler.hxx +++ b/include/formula/IControlReferenceHandler.hxx @@ -21,6 +21,7 @@ #include <formula/formuladllapi.h> #include <rtl/ustring.hxx> +#include <sal/types.h> namespace formula { diff --git a/include/formula/IFunctionDescription.hxx b/include/formula/IFunctionDescription.hxx index 42aaa9924067..40820ebbe040 100644 --- a/include/formula/IFunctionDescription.hxx +++ b/include/formula/IFunctionDescription.hxx @@ -20,15 +20,21 @@ #ifndef INCLUDED_FORMULA_IFUNCTIONDESCRIPTION_HXX #define INCLUDED_FORMULA_IFUNCTIONDESCRIPTION_HXX -#include <vector> #include <memory> -#include <formula/formuladllapi.h> +#include <vector> + +#include <com/sun/star/table/CellAddress.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> +#include <rtl/string.hxx> #include <rtl/ustring.hxx> -#include <tools/solar.h> -#include <com/sun/star/sheet/XFormulaParser.hpp> -#include <com/sun/star/sheet/XFormulaOpCodeMapper.hpp> +#include <sal/types.h> -class SvTreeListEntry; +namespace com { namespace sun { namespace star { + namespace sheet { struct FormulaToken; } + namespace sheet { class XFormulaOpCodeMapper; } + namespace sheet { class XFormulaParser; } +} } } namespace formula { diff --git a/include/formula/errorcodes.hxx b/include/formula/errorcodes.hxx index 13597b9d4d53..115741504082 100644 --- a/include/formula/errorcodes.hxx +++ b/include/formula/errorcodes.hxx @@ -21,6 +21,8 @@ #define INCLUDED_FORMULA_ERRORCODES_HXX #include <rtl/math.hxx> +#include <sal/mathconf.h> +#include <sal/types.h> namespace formula { diff --git a/include/formula/formdata.hxx b/include/formula/formdata.hxx index 2e16b806bf19..eb66e59cb875 100644 --- a/include/formula/formdata.hxx +++ b/include/formula/formdata.hxx @@ -22,7 +22,9 @@ #include <formula/formuladllapi.h> #include <rtl/ustring.hxx> +#include <sal/types.h> #include <tools/gen.hxx> +#include <vcl/vclptr.hxx> #include <vcl/window.hxx> namespace formula diff --git a/include/formula/formula.hxx b/include/formula/formula.hxx index 5cf4c9583b3b..94b12c39276d 100644 --- a/include/formula/formula.hxx +++ b/include/formula/formula.hxx @@ -20,11 +20,27 @@ #ifndef INCLUDED_FORMULA_FORMULA_HXX #define INCLUDED_FORMULA_FORMULA_HXX -#include <sfx2/basedlgs.hxx> #include <memory> +#include <utility> + #include <formula/formuladllapi.h> #include <formula/omoduleclient.hxx> #include <formula/IFunctionDescription.hxx> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <sfx2/basedlgs.hxx> +#include <tools/gen.hxx> +#include <tools/link.hxx> +#include <vcl/dialog.hxx> + +class Idle; +class NotifyEvent; +class SfxBindings; +class SfxChildWindow; + +namespace vcl { + class Window; +} namespace formula { @@ -38,8 +54,6 @@ enum FormulaDlgMode { FORMULA_FORMDLG_FORMULA, FORMULA_FORMDLG_ARGS, FORMULA_FOR class FormulaDlg_Impl; class IControlReferenceHandler; -class IFunctionDescription; -class IFunctionManager; class FormulaHelper; class RefEdit; class RefButton; diff --git a/include/formula/formulahelper.hxx b/include/formula/formulahelper.hxx index afb7b34694b8..58371f1e786e 100644 --- a/include/formula/formulahelper.hxx +++ b/include/formula/formulahelper.hxx @@ -20,17 +20,21 @@ #ifndef INCLUDED_FORMULA_FORMULAHELPER_HXX #define INCLUDED_FORMULA_FORMULAHELPER_HXX -#include <formula/IFunctionDescription.hxx> +#include <memory> +#include <vector> + #include <formula/formuladllapi.h> #include <rtl/ustring.hxx> -#include <vector> -#include <memory> +#include <sal/types.h> +#include <unotools/syslocale.hxx> -class SvtSysLocale; class CharClass; namespace formula { + class IFunctionDescription; + class IFunctionManager; + class FORMULA_DLLPUBLIC FormulaHelper { ::std::unique_ptr<SvtSysLocale> m_pSysLocale; diff --git a/include/formula/funcutl.hxx b/include/formula/funcutl.hxx index e6d03bed59b3..494543edbeaa 100644 --- a/include/formula/funcutl.hxx +++ b/include/formula/funcutl.hxx @@ -20,11 +20,22 @@ #ifndef INCLUDED_FORMULA_FUNCUTL_HXX #define INCLUDED_FORMULA_FUNCUTL_HXX -#include <vcl/fixed.hxx> +#include <formula/formuladllapi.h> +#include <rtl/ustring.hxx> +#include <tools/link.hxx> +#include <tools/wintypes.hxx> #include <vcl/button.hxx> #include <vcl/edit.hxx> #include <vcl/idle.hxx> -#include <formula/formuladllapi.h> +#include <vcl/image.hxx> +#include <vcl/vclptr.hxx> + +class KeyEvent; +class ResId; + +namespace vcl { + class Window; +} namespace formula { diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx index 6500d68df898..9dea4fb56bc3 100644 --- a/include/formula/grammar.hxx +++ b/include/formula/grammar.hxx @@ -22,6 +22,7 @@ #include <com/sun/star/sheet/FormulaLanguage.hpp> #include <formula/formuladllapi.h> +#include <sal/types.h> namespace formula { diff --git a/include/formula/token.hxx b/include/formula/token.hxx index f195b68ecc38..6bbda35edaaf 100644 --- a/include/formula/token.hxx +++ b/include/formula/token.hxx @@ -22,16 +22,18 @@ #include <sal/config.h> +#include <cstring> #include <vector> -#include <string.h> -#include <formula/opcode.hxx> -#include <tools/mempool.hxx> -#include <formula/IFunctionDescription.hxx> #include <formula/formuladllapi.h> +#include <formula/IFunctionDescription.hxx> +#include <formula/opcode.hxx> #include <formula/types.hxx> -#include <svl/sharedstring.hxx> #include <osl/interlck.h> +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <svl/sharedstring.hxx> +#include <tools/mempool.hxx> class ScJumpMatrix; class ScMatrix; @@ -89,8 +91,6 @@ typedef sal_uInt8 StackVar; typedef StackVarEnum StackVar; #endif -class FormulaTokenArray; - class FORMULA_DLLPUBLIC FormulaToken : public IFormulaToken { OpCode eOp; diff --git a/include/formula/tokenarray.hxx b/include/formula/tokenarray.hxx index 81b85586f274..6ba48febea67 100644 --- a/include/formula/tokenarray.hxx +++ b/include/formula/tokenarray.hxx @@ -20,14 +20,25 @@ #ifndef INCLUDED_FORMULA_TOKENARRAY_HXX #define INCLUDED_FORMULA_TOKENARRAY_HXX -#include <com/sun/star/sheet/FormulaToken.hpp> -#include <formula/token.hxx> +#include <climits> +#include <memory> +#include <type_traits> +#include <unordered_set> +#include <unordered_map> +#include <vector> + +#include <com/sun/star/uno/Sequence.hxx> #include <formula/ExternalReferenceHelper.hxx> +#include <formula/formuladllapi.h> +#include <formula/opcode.hxx> +#include <formula/token.hxx> #include <o3tl/typed_flags_set.hxx> +#include <rtl/ustring.hxx> +#include <sal/types.h> -#include <limits.h> -#include <type_traits> -#include <unordered_set> +namespace com { namespace sun { namespace star { + namespace sheet { struct FormulaToken; } +} } } namespace svl { @@ -59,8 +70,6 @@ namespace o3tl namespace formula { -class FormulaMissingContext; - class FORMULA_DLLPUBLIC MissingConvention { public: diff --git a/include/formula/vectortoken.hxx b/include/formula/vectortoken.hxx index 56b61d3ef78f..61d4725916b3 100644 --- a/include/formula/vectortoken.hxx +++ b/include/formula/vectortoken.hxx @@ -10,7 +10,12 @@ #ifndef INCLUDED_FORMULA_VECTORTOKEN_HXX #define INCLUDED_FORMULA_VECTORTOKEN_HXX +#include <cstddef> +#include <vector> + +#include <formula/formuladllapi.h> #include <formula/token.hxx> +#include <rtl/ustring.hxx> namespace formula { |