Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
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.
15 : : *
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).
21 : : *
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.
26 : : *
27 : : ************************************************************************/
28 : : #ifndef SC_XMLTABI_HXX
29 : : #define SC_XMLTABI_HXX
30 : :
31 : : #include "externalrefmgr.hxx"
32 : :
33 : : #include <xmloff/xmlictxt.hxx>
34 : : #include <memory>
35 : :
36 : : class ScXMLImport;
37 : :
38 [ # # ]: 0 : struct ScXMLExternalTabData
39 : : {
40 : : String maFileUrl;
41 : : ScExternalRefCache::TableTypeRef mpCacheTable;
42 : : sal_Int32 mnRow;
43 : : sal_Int32 mnCol;
44 : : sal_uInt16 mnFileId;
45 : :
46 : : ScXMLExternalTabData();
47 : : };
48 : :
49 : : class ScXMLTableContext : public SvXMLImportContext
50 : : {
51 : : rtl::OUString sPrintRanges;
52 : : ::std::auto_ptr<ScXMLExternalTabData> pExternalRefInfo;
53 : : sal_Int32 nStartOffset;
54 : : bool bStartFormPage;
55 : : bool bPrintEntireSheet;
56 : :
57 : : const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
58 : 11291 : ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
59 : :
60 : : public:
61 : :
62 : : ScXMLTableContext( ScXMLImport& rImport, sal_uInt16 nPrfx,
63 : : const ::rtl::OUString& rLName,
64 : : const ::com::sun::star::uno::Reference<
65 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
66 : :
67 : : virtual ~ScXMLTableContext();
68 : :
69 : : virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
70 : : const ::rtl::OUString& rLocalName,
71 : : const ::com::sun::star::uno::Reference<
72 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
73 : :
74 : : virtual void EndElement();
75 : : };
76 : :
77 : : // ============================================================================
78 : :
79 : : class ScXMLTableProtectionContext : public SvXMLImportContext
80 : : {
81 : : ScXMLImport& GetScImport();
82 : :
83 : : public:
84 : : ScXMLTableProtectionContext( ScXMLImport& rImport, sal_uInt16 nPrefix,
85 : : const ::rtl::OUString& rLName,
86 : : const ::com::sun::star::uno::Reference<
87 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
88 : :
89 : : virtual ~ScXMLTableProtectionContext();
90 : :
91 : : virtual SvXMLImportContext *CreateChildContext( sal_uInt16 nPrefix,
92 : : const ::rtl::OUString& rLocalName,
93 : : const ::com::sun::star::uno::Reference<
94 : : ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
95 : :
96 : : virtual void EndElement();
97 : : };
98 : :
99 : : #endif
100 : :
101 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|