Bump for 3.6-28
[LibreOffice.git] / xmloff / source / text / XMLFootnoteImportContext.hxx
blob89fc26468d072560b50966c06e58c0c96f29e312
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 _XMLOFF_XMLFOOTNOTEIMPORTCONTEXT_HXX_
30 #define _XMLOFF_XMLFOOTNOTEIMPORTCONTEXT_HXX_
32 #include <xmloff/xmlictxt.hxx>
33 #include <com/sun/star/uno/Reference.h>
36 namespace com { namespace sun { namespace star {
37 namespace text {
38 class XTextCursor;
39 class XFootnote;
41 namespace xml { namespace sax {
42 class XAttributeList;
43 } }
44 } } }
45 namespace rtl {
46 class OUString;
48 class XMLTextImportHelper;
50 /// import footnote elements (<text:footnote>)
51 class XMLFootnoteImportContext : public SvXMLImportContext
53 const ::rtl::OUString sPropertyReferenceId;
55 /// old document cursor
56 ::com::sun::star::uno::Reference<
57 ::com::sun::star::text::XTextCursor> xOldCursor;
59 /// old list item and block (#89891#)
60 bool mbListContextPushed;
62 /// text import helper; holds current XTextCursor (and XText)
63 XMLTextImportHelper& rHelper;
65 /// the footnote
66 ::com::sun::star::uno::Reference<
67 ::com::sun::star::text::XFootnote> xFootnote;
69 public:
71 TYPEINFO();
73 XMLFootnoteImportContext(
74 SvXMLImport& rImport,
75 XMLTextImportHelper& rHlp,
76 sal_uInt16 nPrfx,
77 const ::rtl::OUString& rLocalName );
79 protected:
81 virtual void StartElement(
82 const ::com::sun::star::uno::Reference<
83 ::com::sun::star::xml::sax::XAttributeList> & xAttrList);
85 virtual void Characters(
86 const ::rtl::OUString& rChars);
88 virtual void EndElement();
90 virtual SvXMLImportContext *CreateChildContext(
91 sal_uInt16 nPrefix,
92 const ::rtl::OUString& rLocalName,
93 const ::com::sun::star::uno::Reference<
94 ::com::sun::star::xml::sax::XAttributeList> & xAttrList );
98 #endif
100 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */