summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorenz Paragas <j.paragas.237@gmail.com>2016-06-16 18:59:35 -0700
committerNoel Grandin <noelgrandin@gmail.com>2016-06-21 07:58:59 +0000
commit8a6bffd2fefcc81dc34951ba2e178d9938b59fb3 (patch)
treedfe32bb6c0a7ed8d5f462f3c557c42bd01232e74
parent6efa9c8e87bbc49ff558cf5e9017628cc4312f6e (diff)
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>
-rw-r--r--formula/source/core/api/FormulaOpCodeMapperObj.cxx1
-rw-r--r--formula/source/core/api/token.cxx1
-rw-r--r--formula/source/ui/dlg/FormulaHelper.cxx1
-rw-r--r--formula/source/ui/dlg/formula.cxx2
-rw-r--r--formula/source/ui/dlg/funcutl.cxx1
-rw-r--r--include/formula/ExternalReferenceHelper.hxx5
-rw-r--r--include/formula/FormulaCompiler.hxx21
-rw-r--r--include/formula/FormulaOpCodeMapperObj.hxx26
-rw-r--r--include/formula/IControlReferenceHandler.hxx1
-rw-r--r--include/formula/IFunctionDescription.hxx18
-rw-r--r--include/formula/errorcodes.hxx2
-rw-r--r--include/formula/formdata.hxx2
-rw-r--r--include/formula/formula.hxx20
-rw-r--r--include/formula/formulahelper.hxx12
-rw-r--r--include/formula/funcutl.hxx15
-rw-r--r--include/formula/grammar.hxx1
-rw-r--r--include/formula/token.hxx14
-rw-r--r--include/formula/tokenarray.hxx23
-rw-r--r--include/formula/vectortoken.hxx5
-rw-r--r--sc/source/core/tool/token.cxx1
20 files changed, 126 insertions, 46 deletions
diff --git a/formula/source/core/api/FormulaOpCodeMapperObj.cxx b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
index 55bdc9e3807b..c034b640300e 100644
--- a/formula/source/core/api/FormulaOpCodeMapperObj.cxx
+++ b/formula/source/core/api/FormulaOpCodeMapperObj.cxx
@@ -21,6 +21,7 @@
#include <utility>
+#include <formula/FormulaCompiler.hxx>
#include "formula/FormulaOpCodeMapperObj.hxx"
#include "formula/opcode.hxx"
#include <comphelper/sequence.hxx>
diff --git a/formula/source/core/api/token.cxx b/formula/source/core/api/token.cxx
index 9c16870ea6fa..3c3bdc55124a 100644
--- a/formula/source/core/api/token.cxx
+++ b/formula/source/core/api/token.cxx
@@ -27,6 +27,7 @@
#include <tools/debug.hxx>
#include <osl/diagnose.h>
+#include <com/sun/star/sheet/FormulaToken.hpp>
#include "formula/token.hxx"
#include "formula/tokenarray.hxx"
#include "formula/FormulaCompiler.hxx"
diff --git a/formula/source/ui/dlg/FormulaHelper.cxx b/formula/source/ui/dlg/FormulaHelper.cxx
index 2ffe25e35c0c..4e6c6c816096 100644
--- a/formula/source/ui/dlg/FormulaHelper.cxx
+++ b/formula/source/ui/dlg/FormulaHelper.cxx
@@ -20,6 +20,7 @@
#include <algorithm>
#include "formula/formulahelper.hxx"
+#include <formula/IFunctionDescription.hxx>
#include <unotools/charclass.hxx>
#include <unotools/syslocale.hxx>
diff --git a/formula/source/ui/dlg/formula.cxx b/formula/source/ui/dlg/formula.cxx
index b0925fbe4d32..1174677eaf19 100644
--- a/formula/source/ui/dlg/formula.cxx
+++ b/formula/source/ui/dlg/formula.cxx
@@ -57,6 +57,8 @@
#include <com/sun/star/sheet/FormulaLanguage.hpp>
#include <com/sun/star/sheet/FormulaMapGroup.hpp>
#include <com/sun/star/sheet/FormulaMapGroupSpecialOffset.hpp>
+#include <com/sun/star/sheet/XFormulaOpCodeMapper.hpp>
+#include <com/sun/star/sheet/XFormulaParser.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
diff --git a/formula/source/ui/dlg/funcutl.cxx b/formula/source/ui/dlg/funcutl.cxx
index 9052d7c6f19e..d67bb00633a1 100644
--- a/formula/source/ui/dlg/funcutl.cxx
+++ b/formula/source/ui/dlg/funcutl.cxx
@@ -21,6 +21,7 @@
#include <vcl/svapp.hxx>
#include <vcl/scrbar.hxx>
#include <vcl/builderfactory.hxx>
+#include <vcl/fixed.hxx>
#include "formula/funcutl.hxx"
#include "formula/IControlReferenceHandler.hxx"
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 {
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 6f7396dd0dd2..50c6591bb444 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -52,6 +52,7 @@ using ::std::vector;
#include <com/sun/star/sheet/ComplexReference.hpp>
#include <com/sun/star/sheet/ExternalReference.hpp>
+#include <com/sun/star/sheet/FormulaToken.hpp>
#include <com/sun/star/sheet/ReferenceFlags.hpp>
#include <com/sun/star/sheet/NameToken.hpp>