/* -*- 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 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 so it * is easier to read. * */ class TOOLS_DLLPUBLIC XmlWriter final { private: std::unique_ptr mpImpl; public: XmlWriter(SvStream* pStream); ~XmlWriter(); bool startDocument(); void endDocument(); void startElement(const OString& sName); 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 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-5-4'>distro/cib/libreoffice-5-4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBalazs Varga <balazs.varga.extern@allotropia.de>2024-12-20 14:46:24 +0100
committerBalazs Varga <balazs.varga.extern@allotropia.de>2024-12-23 09:45:58 +0100
commit78dbd341bb5023448af2c3eefceb5a840fd6d8d9 (patch)
tree244d43ec5bbe1f7dd9e6fae971a9b2ee8aea8781 /lotuswordpro/source/filter/lwpcharborderoverride.cxx
parente6d71b9381aba8531c0ebf635c11508e5389fdc6 (diff)
tdf#164383 - sw a11y fix unnecessary "Avoid simulated captions" warning