summaryrefslogtreecommitdiff
path: root/sw/source/writerfilter/dmapper/ThemeHandler.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/writerfilter/dmapper/ThemeHandler.hxx')
-rw-r--r--sw/source/writerfilter/dmapper/ThemeHandler.hxx35
1 files changed, 35 insertions, 0 deletions
diff --git a/sw/source/writerfilter/dmapper/ThemeHandler.hxx b/sw/source/writerfilter/dmapper/ThemeHandler.hxx
new file mode 100644
index 000000000000..8d7574991b29
--- /dev/null
+++ b/sw/source/writerfilter/dmapper/ThemeHandler.hxx
@@ -0,0 +1,35 @@
+/* -*- 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/.
+ */
+
+#pragma once
+
+#include <com/sun/star/beans/PropertyValue.hpp>
+#include <i18nlangtag/lang.h>
+#include <memory>
+#include <oox/drawingml/theme.hxx>
+#include <ooxml/resourceids.hxx>
+
+namespace writerfilter::dmapper
+{
+class ThemeHandler
+{
+private:
+ oox::drawingml::ThemePtr mpTheme;
+ OUString maThemeFontLangEastAsia;
+ OUString maThemeFontLangBidi;
+
+public:
+ ThemeHandler(oox::drawingml::ThemePtr const& pTheme,
+ const css::uno::Sequence<css::beans::PropertyValue>& rLangProperties);
+ OUString getFontNameForTheme(const Id id) const;
+ static OUString getStringForTheme(const Id id);
+};
+}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */