Bump for 3.6-28
[LibreOffice.git] / xmloff / source / draw / ximplink.hxx
blob10a33bfdc3fdeacd0216a7837c0358f3af2a2a98
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
8 * OpenOffice.org - a multi-platform office productivity suite
10 * This file is part of OpenOffice.org.
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org. If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
27 ************************************************************************/
29 #ifndef _XIMPLINK_HXX
30 #define _XIMPLINK_HXX
32 #include <xmloff/xmlictxt.hxx>
33 #include "sdxmlimp_impl.hxx"
34 #include <xmloff/nmspmap.hxx>
35 #include <com/sun/star/drawing/XShapes.hpp>
36 #include <tools/rtti.hxx>
37 #include "ximpshap.hxx"
39 //////////////////////////////////////////////////////////////////////////////
40 // draw:a context
42 // this should have been a SvXMLImportContext but CreateGroupChildContext() returns
43 // an unneeded derivation. Should be changed sometime during refactoring.
45 class SdXMLShapeLinkContext : public SvXMLShapeContext
47 // the parent shape group this link is placed in
48 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes > mxParent;
49 rtl::OUString msHyperlink;
51 public:
52 TYPEINFO();
54 SdXMLShapeLinkContext( SvXMLImport& rImport, sal_uInt16 nPrfx, const rtl::OUString& rLocalName,
55 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList,
56 com::sun::star::uno::Reference< com::sun::star::drawing::XShapes >& rShapes);
57 virtual ~SdXMLShapeLinkContext();
59 virtual SvXMLImportContext *CreateChildContext(
60 sal_uInt16 nPrefix, const rtl::OUString& rLocalName,
61 const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList );
62 virtual void StartElement(const com::sun::star::uno::Reference< com::sun::star::xml::sax::XAttributeList>& xAttrList);
63 virtual void EndElement();
67 #endif // _XIMPLINK_HXX
69 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */