summaryrefslogtreecommitdiff
path: root/editeng
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2023-12-22 20:16:14 +0900
committerTomaž Vajngerl <quikee@gmail.com>2023-12-29 07:28:31 +0100
commit27afa3fa1321bc55d6063115c4ad3558d68eb76e (patch)
treefc4e9e2f9a9d9fadb0be634496a12b9b8637e8c3 /editeng
parentaaff1bfa765539068d837404ca016608490aaf11 (diff)
editeng: move ItemList in its own header file
Change-Id: I52f3f2a557db7058aa584ca7c1cee08eae58d726 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/161351 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'editeng')
-rw-r--r--editeng/inc/ItemList.hxx56
-rw-r--r--editeng/inc/editdoc.hxx24
2 files changed, 57 insertions, 23 deletions
diff --git a/editeng/inc/ItemList.hxx b/editeng/inc/ItemList.hxx
new file mode 100644
index 000000000000..29c2b0dcddd2
--- /dev/null
+++ b/editeng/inc/ItemList.hxx
@@ -0,0 +1,56 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#pragma once
+
+#include "editattr.hxx"
+#include "edtspell.hxx"
+#include "eerdll2.hxx"
+#include <editeng/svxfont.hxx>
+#include <editeng/EPaM.hxx>
+#include <svl/itemset.hxx>
+#include <svl/style.hxx>
+#include <svl/itempool.hxx>
+#include <svl/languageoptions.hxx>
+#include <tools/lineend.hxx>
+#include <o3tl/typed_flags_set.hxx>
+#include "TextPortion.hxx"
+
+#include <cstddef>
+#include <memory>
+#include <string_view>
+#include <vector>
+
+class ItemList
+{
+private:
+ typedef std::vector<const SfxPoolItem*> DummyItemList;
+ DummyItemList aItemPool;
+ sal_Int32 CurrentItem;
+
+public:
+ ItemList();
+ const SfxPoolItem* First();
+ const SfxPoolItem* Next();
+ sal_Int32 Count() const { return aItemPool.size(); };
+ void Insert(const SfxPoolItem* pItem);
+ void Clear() { aItemPool.clear(); };
+};
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index 240bcbfc9e37..aa6232c1f486 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -31,6 +31,7 @@
#include <tools/lineend.hxx>
#include <o3tl/typed_flags_set.hxx>
#include "TextPortion.hxx"
+#include "ItemList.hxx"
#include <cstddef>
#include <memory>
@@ -103,31 +104,8 @@ public:
void AppendCharAttrib(EditCharAttrib* pNew);
};
-
-
typedef std::vector<Color> SvxColorList;
-
-
-
-class ItemList
-{
-private:
- typedef std::vector<const SfxPoolItem*> DummyItemList;
- DummyItemList aItemPool;
- sal_Int32 CurrentItem;
-
-public:
- ItemList();
- const SfxPoolItem* First();
- const SfxPoolItem* Next();
- sal_Int32 Count() const { return aItemPool.size(); };
- void Insert( const SfxPoolItem* pItem );
- void Clear() { aItemPool.clear(); };
-};
-
-
-
class ContentAttribs
{
private: