Kaydet (Commit) 8a6bffd2 authored tarafından Jorenz Paragas's avatar Jorenz Paragas Kaydeden (comit) Noel Grandin

tdf#42949: clean up includes in include/formula with iwyu

Change-Id: Ieb601d98be80aeb2239d4f0a330d90e63f1abc43
Reviewed-on: https://gerrit.libreoffice.org/26398Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst 6efa9c8e
......@@ -21,6 +21,7 @@
#include <utility>
#include <formula/FormulaCompiler.hxx>
#include "formula/FormulaOpCodeMapperObj.hxx"
#include "formula/opcode.hxx"
#include <comphelper/sequence.hxx>
......
......@@ -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"
......
......@@ -20,6 +20,7 @@
#include <algorithm>
#include "formula/formulahelper.hxx"
#include <formula/IFunctionDescription.hxx>
#include <unotools/charclass.hxx>
#include <unotools/syslocale.hxx>
......
......@@ -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>
......
......@@ -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"
......
......@@ -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
{
......
......@@ -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 */
......
......@@ -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 >
......
......@@ -21,6 +21,7 @@
#include <formula/formuladllapi.h>
#include <rtl/ustring.hxx>
#include <sal/types.h>
namespace formula
{
......
......@@ -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
{
......
......@@ -21,6 +21,8 @@
#define INCLUDED_FORMULA_ERRORCODES_HXX
#include <rtl/math.hxx>
#include <sal/mathconf.h>
#include <sal/types.h>
namespace formula {
......
......@@ -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
......
......@@ -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;
......
......@@ -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;
......
......@@ -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 {
......
......@@ -22,6 +22,7 @@
#include <com/sun/star/sheet/FormulaLanguage.hpp>
#include <formula/formuladllapi.h>
#include <sal/types.h>
namespace formula
{
......
......@@ -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;
......
......@@ -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:
......
......@@ -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 {
......
......@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment