diff options
author | dante <dante19031999@gmail.com> | 2021-02-27 19:26:41 +0100 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-01 08:23:09 +0100 |
commit | b6d7a8929d77ef67bbeb584cb0283d5a4f82ebbb (patch) | |
tree | 16454f4703019bc9269678c5c3c64c2bf8a7fe3c /starmath/inc | |
parent | 0833f01a3df511871c572c5454a97ef878eb9f67 (diff) |
Starmath cleanup unused includes
Change-Id: I294c5bbeadb718e35c0c5e56332b4df71433555a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111687
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'starmath/inc')
-rw-r--r-- | starmath/inc/ElementsDockingWindow.hxx | 7 | ||||
-rw-r--r-- | starmath/inc/caret.hxx | 5 | ||||
-rw-r--r-- | starmath/inc/cfgitem.hxx | 3 | ||||
-rw-r--r-- | starmath/inc/cursor.hxx | 5 | ||||
-rw-r--r-- | starmath/inc/dialog.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/document.hxx | 5 | ||||
-rw-r--r-- | starmath/inc/edit.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/mathml/mathmlimport.hxx | 1 | ||||
-rw-r--r-- | starmath/inc/node.hxx | 6 | ||||
-rw-r--r-- | starmath/inc/parsebase.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/smmod.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/token.hxx | 12 | ||||
-rw-r--r-- | starmath/inc/unomodel.hxx | 2 | ||||
-rw-r--r-- | starmath/inc/view.hxx | 4 | ||||
-rw-r--r-- | starmath/inc/visitors.hxx | 2 |
15 files changed, 11 insertions, 49 deletions
diff --git a/starmath/inc/ElementsDockingWindow.hxx b/starmath/inc/ElementsDockingWindow.hxx index 1deafb09b805..ebb3541549dc 100644 --- a/starmath/inc/ElementsDockingWindow.hxx +++ b/starmath/inc/ElementsDockingWindow.hxx @@ -24,15 +24,10 @@ #include <vcl/customweld.hxx> #include <vcl/weld.hxx> -#include "format.hxx" -#include <memory> -#include <tuple> - +#include "parse.hxx" #include "AccessibleSmElementsControl.hxx" class SmDocShell; -class SmNode; -class SmParser; class SmElement { diff --git a/starmath/inc/caret.hxx b/starmath/inc/caret.hxx index 6cc663206da4..1ae0dc438d34 100644 --- a/starmath/inc/caret.hxx +++ b/starmath/inc/caret.hxx @@ -10,13 +10,8 @@ #define INCLUDED_STARMATH_INC_CARET_HXX #include <sal/config.h> - #include "node.hxx" -#include <cassert> -#include <memory> -#include <vector> - /** Representation of caret position with an equation */ struct SmCaretPos { diff --git a/starmath/inc/cfgitem.hxx b/starmath/inc/cfgitem.hxx index 8e450d04a1d3..c0a4be4c60be 100644 --- a/starmath/inc/cfgitem.hxx +++ b/starmath/inc/cfgitem.hxx @@ -23,14 +23,11 @@ #include "utility.hxx" #include <string_view> -#include <vector> - #include <rtl/ustring.hxx> #include <svl/SfxBroadcaster.hxx> #include <unotools/configitem.hxx> #include "types.hxx" -#include <memory> namespace com::sun::star::uno { diff --git a/starmath/inc/cursor.hxx b/starmath/inc/cursor.hxx index a30beda63368..47d39819c54b 100644 --- a/starmath/inc/cursor.hxx +++ b/starmath/inc/cursor.hxx @@ -9,13 +9,8 @@ #ifndef INCLUDED_STARMATH_INC_CURSOR_HXX #define INCLUDED_STARMATH_INC_CURSOR_HXX -#include "node.hxx" #include "caret.hxx" -#include <cassert> -#include <list> -#include <memory> - /** Factor to multiple the squared horizontal distance with * Used for Up and Down movement. */ diff --git a/starmath/inc/dialog.hxx b/starmath/inc/dialog.hxx index d3017f8e9554..2d87467de870 100644 --- a/starmath/inc/dialog.hxx +++ b/starmath/inc/dialog.hxx @@ -23,7 +23,6 @@ #include <vcl/outdev.hxx> #include <vcl/customweld.hxx> #include "symbol.hxx" -#include <memory> class SubsetMap; class SmFormat; diff --git a/starmath/inc/document.hxx b/starmath/inc/document.hxx index 17933546265c..88d2126ac579 100644 --- a/starmath/inc/document.hxx +++ b/starmath/inc/document.hxx @@ -20,7 +20,6 @@ #ifndef INCLUDED_STARMATH_INC_DOCUMENT_HXX #define INCLUDED_STARMATH_INC_DOCUMENT_HXX -#include <rtl/ustring.hxx> #include <rtl/strbuf.hxx> #include <sfx2/docfac.hxx> #include <sfx2/objsh.hxx> @@ -30,11 +29,7 @@ #include <oox/core/filterbase.hxx> #include <oox/export/utils.hxx> -#include <memory> -#include <set> - #include "format.hxx" -#include "node.hxx" #include "parse.hxx" #include "smdllapi.hxx" diff --git a/starmath/inc/edit.hxx b/starmath/inc/edit.hxx index 60d0ad2bbb04..7b5e9285b5b6 100644 --- a/starmath/inc/edit.hxx +++ b/starmath/inc/edit.hxx @@ -23,7 +23,6 @@ #include <vcl/idle.hxx> #include <vcl/transfer.hxx> #include <editeng/editdata.hxx> -#include <memory> class SmDocShell; class SmViewShell; diff --git a/starmath/inc/mathml/mathmlimport.hxx b/starmath/inc/mathml/mathmlimport.hxx index efbaeba47908..a4c82627047b 100644 --- a/starmath/inc/mathml/mathmlimport.hxx +++ b/starmath/inc/mathml/mathmlimport.hxx @@ -24,7 +24,6 @@ #include <vcl/errcode.hxx> #include <deque> -#include <memory> class SmNode; class SfxMedium; diff --git a/starmath/inc/node.hxx b/starmath/inc/node.hxx index 61f98ec75d87..ec5ab00af842 100644 --- a/starmath/inc/node.hxx +++ b/starmath/inc/node.hxx @@ -67,12 +67,6 @@ #include "rect.hxx" #include "format.hxx" -#include <o3tl/typed_flags_set.hxx> -#include <rtl/ustrbuf.hxx> - -#include <cassert> -#include <vector> - enum class FontAttribute { None = 0x0000, Bold = 0x0001, diff --git a/starmath/inc/parsebase.hxx b/starmath/inc/parsebase.hxx index ee6a0621b0d6..c1da50468ab9 100644 --- a/starmath/inc/parsebase.hxx +++ b/starmath/inc/parsebase.hxx @@ -25,11 +25,7 @@ #define INCLUDED_STARMATH_INC_PARSEBASE_HXX #include <unotools/charclass.hxx> -#include <memory> -#include <set> -#include <vector> -#include "token.hxx" #include "node.hxx" #define DEPTH_LIMIT 1024 diff --git a/starmath/inc/smmod.hxx b/starmath/inc/smmod.hxx index 3bab0068495b..a80f2b843c39 100644 --- a/starmath/inc/smmod.hxx +++ b/starmath/inc/smmod.hxx @@ -23,9 +23,7 @@ #include <sfx2/module.hxx> #include <sfx2/app.hxx> #include <vcl/vclptr.hxx> - #include <unotools/options.hxx> -#include <memory> namespace svtools { class ColorConfig; } diff --git a/starmath/inc/token.hxx b/starmath/inc/token.hxx index 650884471aa5..ffb3acadf499 100644 --- a/starmath/inc/token.hxx +++ b/starmath/inc/token.hxx @@ -29,11 +29,19 @@ #ifndef INCLUDED_STARMATH_INC_TOKEN_HXX #define INCLUDED_STARMATH_INC_TOKEN_HXX -#include <sal/types.h> #include "types.hxx" #include <rtl/ustring.hxx> -#include <o3tl/typed_flags_set.hxx> +#include <rtl/ustrbuf.hxx> #include <tools/color.hxx> +#include <o3tl/typed_flags_set.hxx> + +// std imports +#include <cassert> +#include <vector> +#include <stack> +#include <tuple> +#include <list> +#include <set> // TokenGroups enum class TG diff --git a/starmath/inc/unomodel.hxx b/starmath/inc/unomodel.hxx index f18b09381c38..54b27df4601d 100644 --- a/starmath/inc/unomodel.hxx +++ b/starmath/inc/unomodel.hxx @@ -27,8 +27,6 @@ #include <vcl/print.hxx> #include <oox/mathml/export.hxx> #include <oox/mathml/import.hxx> -#include <memory> - #define PRTUIOPT_TITLE_ROW "TitleRow" #define PRTUIOPT_FORMULA_TEXT "FormulaText" diff --git a/starmath/inc/view.hxx b/starmath/inc/view.hxx index ee4e17b10767..ea10e9e8e303 100644 --- a/starmath/inc/view.hxx +++ b/starmath/inc/view.hxx @@ -20,9 +20,6 @@ #define INCLUDED_STARMATH_INC_VIEW_HXX #include <sal/config.h> - -#include <memory> - #include <rtl/ref.hxx> #include <sfx2/docinsert.hxx> #include <sfx2/dockwin.hxx> @@ -38,7 +35,6 @@ class SmViewShell; class SmPrintUIOptions; class SmGraphicAccessible; -class SmNode; namespace svtools { class ColorConfig; } diff --git a/starmath/inc/visitors.hxx b/starmath/inc/visitors.hxx index 4929bdd0d3e8..7ecdb37404fa 100644 --- a/starmath/inc/visitors.hxx +++ b/starmath/inc/visitors.hxx @@ -23,12 +23,10 @@ #define INCLUDED_STARMATH_INC_VISITORS_HXX #include <sal/config.h> - #include <sal/log.hxx> #include "node.hxx" #include "caret.hxx" -#include <memory> /** Base class for visitors that visits a tree of SmNodes * @remarks all methods have been left abstract to ensure that implementers |