2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-11-21 22:06:52 +00: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-23 20:26:48 +00:00
|
|
|
|
2013-10-28 03:41:20 +01:00
|
|
|
#ifndef INCLUDED_SVX_SOURCE_INC_XMLXTEXP_HXX
|
|
|
|
#define INCLUDED_SVX_SOURCE_INC_XMLXTEXP_HXX
|
2001-02-23 20:26:48 +00:00
|
|
|
|
|
|
|
#include "xmloff/xmlexp.hxx"
|
|
|
|
|
|
|
|
namespace com { namespace sun { namespace star {
|
|
|
|
namespace frame { class XModel; }
|
|
|
|
namespace uno { template<class X> class Reference; }
|
|
|
|
namespace uno { class XInterface; }
|
|
|
|
namespace container { class XNameContainer; }
|
|
|
|
namespace document { class XGraphicObjectResolver; }
|
|
|
|
namespace xml { namespace sax { class XDocumentHandler; } }
|
|
|
|
} } }
|
|
|
|
|
|
|
|
class SvxXMLXTableExportComponent : public SvXMLExport
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SvxXMLXTableExportComponent(
|
2015-10-30 14:59:47 +02:00
|
|
|
const css::uno::Reference< css::uno::XComponentContext >& xContext,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rFileName,
|
2015-10-30 14:59:47 +02:00
|
|
|
const css::uno::Reference< css::xml::sax::XDocumentHandler > & xHandler,
|
|
|
|
const css::uno::Reference< css::container::XNameContainer > & xTable,
|
|
|
|
css::uno::Reference< css::document::XGraphicObjectResolver >& xGrfResolver);
|
2001-02-23 20:26:48 +00:00
|
|
|
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvxXMLXTableExportComponent() override;
|
2001-02-23 20:26:48 +00:00
|
|
|
|
2017-01-19 17:50:02 +01:00
|
|
|
/// @throws css::uno::RuntimeException
|
2013-04-07 12:06:47 +02:00
|
|
|
static bool save( const OUString& rURL,
|
2015-10-30 14:59:47 +02:00
|
|
|
const css::uno::Reference< css::container::XNameContainer >& xTable,
|
|
|
|
const css::uno::Reference< css::embed::XStorage > &xStorage,
|
2017-01-26 12:28:58 +01:00
|
|
|
OUString *pOptName );
|
2001-02-23 20:26:48 +00:00
|
|
|
|
|
|
|
// methods without content:
|
2016-03-29 08:07:14 +02:00
|
|
|
virtual void ExportAutoStyles_() override;
|
|
|
|
virtual void ExportMasterStyles_() override;
|
|
|
|
virtual void ExportContent_() override;
|
2001-02-23 20:26:48 +00:00
|
|
|
|
|
|
|
private:
|
2011-09-10 14:47:28 +01:00
|
|
|
bool exportTable() throw();
|
2015-10-30 14:59:47 +02:00
|
|
|
const css::uno::Reference< css::container::XNameContainer > & mxTable;
|
2001-02-23 20:26:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|