/* -*- 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/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
/** * Export instances of EventsSupplier services. To use this class you * must fulfill two conditions: * * 1) provide a translation from the API event names to XML event * names * 2) Register XMLEventExportHandler instances for all script types * that you would like to export. * * The Export()-Methods all have a bUseWhitespace parameter that * causes the exported elements to be surrounded by whitespace, which * in turn causes the elements to be indented properly. By default, * whitespace is used, but it may not be called for in all cases (e.g * events attached to hyperlink within a paragraph.)
*/ class XMLOFF_DLLPUBLIC XMLEventExport
{
SvXMLExport& m_rExport;
/// register an EventExportHandler for a particular script type /// /// The handlers will be deleted when the object is destroyed, hence /// no pointers to a handler registered with AddHandler() should be /// held by anyone. void AddHandler( const OUString& rName,
std::unique_ptr<XMLEventExportHandler> pHandler );
/// export the events, but write <officeooo:events> element /// (for new file format additions) void ExportExt( css::uno::Reference<css::container::XNameAccess> const & xAccess);
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 ist noch experimentell.