2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2000-09-18 16:07:07 +00:00
|
|
|
/*************************************************************************
|
|
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
2008-04-10 20:54:10 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:07:07 +00:00
|
|
|
*
|
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
#ifndef _XIMPBODY_HXX
|
|
|
|
|
#define _XIMPBODY_HXX
|
|
|
|
|
|
2007-06-27 14:10:34 +00:00
|
|
|
#include <xmloff/xmlictxt.hxx>
|
2000-12-05 22:31:17 +00:00
|
|
|
#include "sdxmlimp_impl.hxx"
|
2007-06-27 14:10:34 +00:00
|
|
|
#include <xmloff/nmspmap.hxx>
|
2000-12-13 18:16:42 +00:00
|
|
|
#include "ximppage.hxx"
|
2000-09-18 16:07:07 +00:00
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// draw:page context
|
|
|
|
|
|
2000-12-13 18:16:42 +00:00
|
|
|
class SdXMLDrawPageContext : public SdXMLGenericPageContext
|
2000-09-18 16:07:07 +00:00
|
|
|
{
|
|
|
|
|
rtl::OUString maName;
|
|
|
|
|
rtl::OUString maMasterPageName;
|
2004-03-30 15:15:56 +00:00
|
|
|
rtl::OUString maStyleName;
|
2001-12-17 14:54:45 +00:00
|
|
|
rtl::OUString maHREF;
|
2000-09-18 16:07:07 +00:00
|
|
|
|
2007-06-27 14:33:02 +00:00
|
|
|
bool mbHadSMILNodes;
|
2000-09-18 16:07:07 +00:00
|
|
|
public:
|
2010-11-10 13:50:33 +08:00
|
|
|
SdXMLDrawPageContext( SdXMLImport& rImport, sal_uInt16 nPrfx,
|
2000-09-18 16:07:07 +00:00
|
|
|
const rtl::OUString& rLocalName,
|
|
|
|
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
|
|
|
|
|
com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes);
|
|
|
|
|
virtual ~SdXMLDrawPageContext();
|
|
|
|
|
|
|
|
|
|
virtual SvXMLImportContext *CreateChildContext(
|
2010-11-10 13:50:33 +08:00
|
|
|
sal_uInt16 nPrefix, const rtl::OUString& rLocalName,
|
2000-09-18 16:07:07 +00:00
|
|
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
|
2000-12-11 07:00:05 +00:00
|
|
|
virtual void EndElement();
|
|
|
|
|
|
2000-09-18 16:07:07 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
// office:body context
|
|
|
|
|
|
|
|
|
|
class SdXMLBodyContext : public SvXMLImportContext
|
|
|
|
|
{
|
|
|
|
|
const SdXMLImport& GetSdImport() const { return (const SdXMLImport&)GetImport(); }
|
|
|
|
|
SdXMLImport& GetSdImport() { return (SdXMLImport&)GetImport(); }
|
|
|
|
|
|
|
|
|
|
public:
|
2010-11-10 13:50:33 +08:00
|
|
|
SdXMLBodyContext( SdXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLocalName );
|
2000-09-18 16:07:07 +00:00
|
|
|
virtual ~SdXMLBodyContext();
|
|
|
|
|
|
|
|
|
|
virtual SvXMLImportContext *CreateChildContext(
|
2010-11-10 13:50:33 +08:00
|
|
|
sal_uInt16 nPrefix, const rtl::OUString& rLocalName,
|
2000-09-18 16:07:07 +00:00
|
|
|
const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _XIMPBODY_HXX
|
2010-10-27 13:11:31 +01:00
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|