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 15:34:29 +00:00
|
|
|
|
2013-10-23 19:30:56 +02:00
|
|
|
#ifndef INCLUDED_XMLOFF_SOURCE_TEXT_XMLAUTOTEXTCONTAINEREVENTIMPORT_HXX
|
|
|
|
#define INCLUDED_XMLOFF_SOURCE_TEXT_XMLAUTOTEXTCONTAINEREVENTIMPORT_HXX
|
2001-02-06 15:34:29 +00:00
|
|
|
|
2007-06-27 14:54:22 +00:00
|
|
|
#include <xmloff/xmlictxt.hxx>
|
2001-02-06 15:34:29 +00:00
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
|
|
|
|
|
|
|
|
|
|
|
namespace com { namespace sun { namespace star {
|
2001-03-09 13:53:43 +00:00
|
|
|
namespace container { class XNameReplace; }
|
2001-02-06 15:34:29 +00:00
|
|
|
namespace xml { namespace sax { class XAttributeList; } }
|
|
|
|
} } }
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Import the text:auto-text-container element.
|
2015-09-29 18:13:49 +02:00
|
|
|
* This only instantiates text:auto-text-group context.
|
2001-02-06 15:34:29 +00:00
|
|
|
*/
|
|
|
|
class XMLAutoTextContainerEventImport : public SvXMLImportContext
|
|
|
|
{
|
|
|
|
/// the parent auto text container
|
2015-11-26 08:43:00 +02:00
|
|
|
const css::uno::Reference<css::container::XNameReplace> & rEvents;
|
2001-02-06 15:34:29 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
XMLAutoTextContainerEventImport(
|
|
|
|
SvXMLImport& rImport,
|
2010-11-10 13:50:33 +08:00
|
|
|
sal_uInt16 nPrfx,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rLName,
|
2015-11-26 08:43:00 +02:00
|
|
|
const css::uno::Reference<css::container::XNameReplace > & rEvents );
|
2001-02-06 15:34:29 +00:00
|
|
|
|
2014-04-01 19:18:35 +02:00
|
|
|
virtual ~XMLAutoTextContainerEventImport();
|
2001-02-06 15:34:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual SvXMLImportContext *CreateChildContext(
|
2010-11-10 13:50:33 +08:00
|
|
|
sal_uInt16 nPrefix,
|
2013-04-07 12:06:47 +02:00
|
|
|
const OUString& rLocalName,
|
2015-11-26 08:43:00 +02:00
|
|
|
const css::uno::Reference<css::xml::sax::XAttributeList> & xAttrList ) override;
|
2001-02-06 15:34:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|