/* -*- 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/. */ #ifndef INCLUDED_TOOLS_XMLWRITER_HXX #define INCLUDED_TOOLS_XMLWRITER_HXX #include #include #include #include namespace tools { struct XmlWriterImpl; /** * XmlWriter writes a XML to a SvStream. It uses libxml2 for writing but hides * all the internal libxml2 workings and uses types that are native for LO * development. * * The codepage used for XML is always "utf-8" and the output is indented by * default so it is easier to read. * */ class TOOLS_DLLPUBLIC XmlWriter final { private: std::unique_ptr mpImpl; public: XmlWriter(SvStream* pStream); ~XmlWriter(); bool startDocument(sal_Int32 nIndent = 2); void endDocument(); void startElement(const OString& sName); void startElement(const OString& sPrefix, const OString& sName, const OString& sNamespaceUri); void endElement(); void attribute(const OString& sTagName, const OString& aValue); void attribute(const OString& sTagName, const OUString& aValue); void attribute(const OString& sTagName, sal_Int32 aNumber); void attributeBase64(const OString& sTagName, std::vector const& rValueInBytes); void attributeBase64(const OString& sTagName, std::vector const& rValueInBytes); void content(const OString& sValue); void content(const OUString& sValue); void element(const OString& sName); }; } // end tools namespace #endif // INCLUDED_TOOLS_XMLWRITER_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ ce-6-4'>distro/cib/libreoffice-6-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2022-03-28Colibre: tdf#148029 Change line only shapes with real intersected shapesRizal Muttaqin
2022-03-27Colibre: Fix contrastRizal Muttaqin
2022-03-27Colibre: tdf#148029 Change line only shapes with real intersected shapesRizal Muttaqin
2022-03-26Colibre: tdf#148029 Change line only shapes with real intersected shapesRizal Muttaqin
2022-03-24Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-23Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-22Update missplaced iconsRizal Muttaqin
2022-03-22Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-22Colibre: tdf#148135 ^ Group and Ungroup iconsRizal Muttaqin
2022-03-21Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-21Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-19Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-18Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-17Colibre: tdf#148029 Remove dark area in dark variantRizal Muttaqin
2022-03-14Colibre: Resolves tdf#146232 Adjust lock overlay iconsRizal Muttaqin
2022-03-13Colibre: tdf#147952 Fix Media Player iconsRizal Muttaqin
2022-03-12Colibre: tdf#146545 Fix some color, remove gradient to fullyRizal Muttaqin
2022-03-12Colibre: tdf#146545 Add dark variantRizal Muttaqin