tdf#164803 sw: Fix SwTextSizeInfo applying grid metrics without grid
[LibreOffice.git] / include / docmodel / color / ComplexColorJSON.hxx
blobb35d938f007c6cf7fddf92ca42dd2ad0fbcdbc60
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/.
9 */
11 #pragma once
13 #include <docmodel/dllapi.h>
14 #include <docmodel/color/ComplexColor.hxx>
16 namespace tools
18 class JsonWriter;
21 namespace model::color
23 DOCMODEL_DLLPUBLIC OString convertToJSON(model::ComplexColor const& rComplexColor);
24 DOCMODEL_DLLPUBLIC void convertToJSONTree(tools::JsonWriter& rTree,
25 model::ComplexColor const& rComplexColor);
26 DOCMODEL_DLLPUBLIC bool convertFromJSON(OString const& rJsonString,
27 model::ComplexColor& rComplexColor);
29 } // end of namespace model
31 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */