2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* 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 .
|
|
|
|
*/
|
2001-02-06 13:51:28 +00:00
|
|
|
|
2013-10-23 19:30:56 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_INC_METAEXPORTCOMPONENT_HXX
|
|
|
|
#define INCLUDED_XMLOFF_INC_METAEXPORTCOMPONENT_HXX
|
2001-02-06 13:51:28 +00:00
|
|
|
|
2008-02-26 12:29:14 +00:00
|
|
|
#include <com/sun/star/document/XDocumentProperties.hpp>
|
2006-11-01 13:50:11 +00:00
|
|
|
|
2007-06-27 13:36:21 +00:00
|
|
|
#include <xmloff/xmlexp.hxx>
|
2001-02-06 13:51:28 +00:00
|
|
|
|
|
|
|
class XMLMetaExportComponent : public SvXMLExport
|
|
|
|
{
|
2008-02-26 12:29:14 +00:00
|
|
|
::com::sun::star::uno::Reference<
|
|
|
|
::com::sun::star::document::XDocumentProperties > mxDocProps;
|
2006-11-01 13:50:11 +00:00
|
|
|
|
2001-02-06 13:51:28 +00:00
|
|
|
public:
|
2004-05-03 12:30:26 +00:00
|
|
|
XMLMetaExportComponent(
|
2013-01-16 17:12:47 +02:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext,
|
2014-12-28 14:22:51 +02:00
|
|
|
OUString const & implementationName, SvXMLExportFlags nFlags
|
2004-05-03 12:30:26 +00:00
|
|
|
);
|
2001-02-06 13:51:28 +00:00
|
|
|
|
2008-02-26 12:29:14 +00:00
|
|
|
virtual ~XMLMetaExportComponent();
|
2001-02-06 13:51:28 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
// export the events off all autotexts
|
|
|
|
virtual sal_uInt32 exportDoc(
|
2014-03-26 16:37:00 +01:00
|
|
|
enum ::xmloff::token::XMLTokenEnum eClass = xmloff::token::XML_TOKEN_INVALID ) SAL_OVERRIDE;
|
2001-02-06 13:51:28 +00:00
|
|
|
|
2008-02-26 12:29:14 +00:00
|
|
|
// accept XDocumentProperties in addition to XModel
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void SAL_CALL setSourceDocument( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent >& xDoc ) throw(::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
|
2006-11-01 13:50:11 +00:00
|
|
|
|
2008-02-26 12:29:14 +00:00
|
|
|
// override
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void _ExportMeta() SAL_OVERRIDE;
|
2008-02-26 12:29:14 +00:00
|
|
|
|
2001-02-06 13:51:28 +00:00
|
|
|
// methods without content:
|
2014-03-26 16:37:00 +01:00
|
|
|
virtual void _ExportAutoStyles() SAL_OVERRIDE;
|
|
|
|
virtual void _ExportMasterStyles() SAL_OVERRIDE;
|
|
|
|
virtual void _ExportContent() SAL_OVERRIDE;
|
2001-02-06 13:51:28 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|