Avoid potential negative array index access to cached text.
[LibreOffice.git] / include / xmloff / XMLComplexColorExport.hxx
blob51425f52ab55f4664fabffdf241093e4fc9054db
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 */
9 #pragma once
11 #include <xmloff/dllapi.h>
12 #include <sal/types.h>
13 #include <rtl/ustring.hxx>
14 #include <xmloff/xmltoken.hxx>
16 namespace com::sun::star::uno
18 class Any;
20 namespace model
22 class ComplexColor;
25 class SvXMLExport;
27 class XMLOFF_DLLPUBLIC XMLComplexColorExport
29 SvXMLExport& mrExport;
31 void doExport(model::ComplexColor const& rComplexColor, sal_uInt16 nPrefix,
32 const OUString& rLocalName);
34 public:
35 XMLComplexColorExport(SvXMLExport& rExport);
37 void exportComplexColor(model::ComplexColor const& rComplexColor, sal_uInt16 nPrefix,
38 xmloff::token::XMLTokenEnum nToken);
39 void exportXML(const css::uno::Any& rAny, sal_uInt16 nPrefix, const OUString& rLocalName);
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */