Avoid potential negative array index access to cached text.
[LibreOffice.git] / writerfilter / source / dmapper / ThemeHandler.hxx
blob8d7574991b293fe3454a8ef0a3b878b42658b5cd
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #pragma once
12 #include <com/sun/star/beans/PropertyValue.hpp>
13 #include <i18nlangtag/lang.h>
14 #include <memory>
15 #include <oox/drawingml/theme.hxx>
16 #include <ooxml/resourceids.hxx>
18 namespace writerfilter::dmapper
20 class ThemeHandler
22 private:
23 oox::drawingml::ThemePtr mpTheme;
24 OUString maThemeFontLangEastAsia;
25 OUString maThemeFontLangBidi;
27 public:
28 ThemeHandler(oox::drawingml::ThemePtr const& pTheme,
29 const css::uno::Sequence<css::beans::PropertyValue>& rLangProperties);
30 OUString getFontNameForTheme(const Id id) const;
31 static OUString getStringForTheme(const Id id);
35 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */