Update ooo320-m1
[ooovba.git] / sc / source / filter / xml / xmlsceni.hxx
blob6d21af304869e385cd7b09e4ce57658711291bd1
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: xmlsceni.hxx,v $
10 * $Revision: 1.6 $
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 ************************************************************************/
30 #ifndef SC_XMLSCENI_HXX
31 #define SC_XMLSCENI_HXX
33 #include <xmloff/xmlictxt.hxx>
34 #include <xmloff/xmlimp.hxx>
35 #include <tools/color.hxx>
36 #include "rangelst.hxx"
38 class ScXMLImport;
40 class ScXMLTableScenarioContext : public SvXMLImportContext
42 private:
43 rtl::OUString sComment;
44 Color aBorderColor;
45 ScRangeList aScenarioRanges;
46 sal_Bool bDisplayBorder;
47 sal_Bool bCopyBack;
48 sal_Bool bCopyStyles;
49 sal_Bool bCopyFormulas;
50 sal_Bool bIsActive;
51 sal_Bool bProtected;
53 const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
54 ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
56 public:
58 ScXMLTableScenarioContext( ScXMLImport& rImport, USHORT nPrfx,
59 const ::rtl::OUString& rLName,
60 const ::com::sun::star::uno::Reference<
61 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
63 virtual ~ScXMLTableScenarioContext();
65 virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
66 const ::rtl::OUString& rLocalName,
67 const ::com::sun::star::uno::Reference<
68 ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
70 virtual void EndElement();
73 #endif