Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/writerperfect/source/writer/   (Office von Apache Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 2 kB image not shown  

Quelle  EPUBPackage.hxx   Sprache: C

 
/* -*- 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/.
 */


#pragma once

#include <libepubgen/EPUBPackage.h>

#include <com/sun/star/uno/Sequence.h>
#include <com/sun/star/uno/Reference.h>

namespace com::sun::star
{
namespace beans
{
struct PropertyValue;
}
namespace embed
{
class XHierarchicalStorageAccess;
}
namespace io
{
class XOutputStream;
}
namespace uno
{
class XComponentContext;
}
namespace xml::sax
{
class XWriter;
}
}

namespace writerperfect
{
/// The epub package has direct access to the resulting ZIP file.
class EPUBPackage : public libepubgen::EPUBPackage
{
    css::uno::Reference<css::uno::XComponentContext> mxContext;
    css::uno::Reference<css::embed::XHierarchicalStorageAccess> mxStorage;
    css::uno::Reference<css::io::XOutputStream> mxOutputStream;
    css::uno::Reference<css::xml::sax::XWriter> mxOutputWriter;

public:
    explicit EPUBPackage(css::uno::Reference<css::uno::XComponentContext> xContext,
                         const css::uno::Sequence<css::beans::PropertyValue>& rDescriptor);

    ~EPUBPackage() override;

    void openXMLFile(const char* pName) override;

    void openElement(const char* pName, const librevenge::RVNGPropertyList& rAttributes) override;
    void closeElement(const char* pName) override;

    void insertCharacters(const librevenge::RVNGString& rCharacters) override;

    void closeXMLFile() override;

    void openCSSFile(const char* pName) override;

    void insertRule(const librevenge::RVNGString& rSelector,
                    const librevenge::RVNGPropertyList& rProperties) override;

    void closeCSSFile() override;

    void openBinaryFile(const char* pName) override;

    void insertBinaryData(const librevenge::RVNGBinaryData& rData) override;

    void closeBinaryFile() override;

    void openTextFile(const char* pName) override;

    void insertText(const librevenge::RVNGString& rCharacters) override;

    void insertLineBreak() override;

    void closeTextFile() override;
};

// namespace writerperfect

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Messung V0.5
C=97 H=97 G=96

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.