Update ooo320-m1
[ooovba.git] / xmloff / source / text / XMLTextFrameHyperlinkContext.hxx
blob3b305f9eed4b9485d5be3be19f7489da77c91071
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XMLTextFrameHyperlinkContext.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _XMLTEXTFRAMEHYPERLINKCONTEXT_HXX
32 #define _XMLTEXTFRAMEHYPERLINKCONTEXT_HXX
34 #ifndef _COM_SUN_STAR_TEXT_TEXTCONTENTANCHORTYPE_HPP
35 #include <com/sun/star/text/TextContentAnchorType.hpp>
36 #endif
37 #ifndef _COM_SUN_STAR_TEXT_XTEXTFRAME_HPP
38 #include <com/sun/star/text/XTextFrame.hpp>
39 #endif
40 #include <xmloff/xmlictxt.hxx>
42 namespace com { namespace sun { namespace star {
43 namespace text { class XTextCursor; class XTextFrame; }
44 namespace beans { class XPropertySet; }
45 } } }
47 // OD 2004-04-21 #i26791#
48 class XMLTextFrameHint_Impl;
50 class XMLTextFrameHyperlinkContext : public SvXMLImportContext
52 ::rtl::OUString sHRef;
53 ::rtl::OUString sName;
54 ::rtl::OUString sTargetFrameName;
55 ::com::sun::star::text::TextContentAnchorType eDefaultAnchorType;
56 SvXMLImportContextRef xFrameContext;
57 sal_Bool bMap;
59 public:
61 TYPEINFO();
63 XMLTextFrameHyperlinkContext( SvXMLImport& rImport,
64 sal_uInt16 nPrfx,
65 const ::rtl::OUString& rLName,
66 const ::com::sun::star::uno::Reference<
67 ::com::sun::star::xml::sax::XAttributeList > & xAttrList,
68 ::com::sun::star::text::TextContentAnchorType eDefaultAnchorType );
69 virtual ~XMLTextFrameHyperlinkContext();
71 virtual void EndElement();
73 SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
74 const ::rtl::OUString& rLocalName,
75 const ::com::sun::star::uno::Reference<
76 ::com::sun::star::xml::sax::XAttributeList > & xAttrList );
78 ::com::sun::star::text::TextContentAnchorType GetAnchorType() const;
79 ::com::sun::star::uno::Reference <
80 ::com::sun::star::text::XTextContent > GetTextContent() const;
81 // --> OD 2004-08-24 #i33242#
82 ::com::sun::star::uno::Reference <
83 ::com::sun::star::drawing::XShape > GetShape() const;
84 // <--
88 #endif