summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmldrani.hxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:31:04 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-08-02 15:31:04 +0000
commit82eca39f0f6b11236760e7de6b7a9bf4a1f9ed14 (patch)
tree8313f933e301ee63a785fb015ca1021ccb2b5c8a /sc/source/filter/xml/xmldrani.hxx
parentad633a61275009a20ca7ef8f2e665627eab3f2f6 (diff)
INTEGRATION: CWS insight01 (1.7.248); FILE MERGED
2004/06/10 11:29:07 sab 1.7.248.1: #i25410#; add ConnectionResource
Diffstat (limited to 'sc/source/filter/xml/xmldrani.hxx')
-rw-r--r--sc/source/filter/xml/xmldrani.hxx40
1 files changed, 35 insertions, 5 deletions
diff --git a/sc/source/filter/xml/xmldrani.hxx b/sc/source/filter/xml/xmldrani.hxx
index fa7d77ee7048..5ebab84d0528 100644
--- a/sc/source/filter/xml/xmldrani.hxx
+++ b/sc/source/filter/xml/xmldrani.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xmldrani.hxx,v $
*
- * $Revision: 1.7 $
+ * $Revision: 1.8 $
*
- * last change: $Author: sab $ $Date: 2002-03-22 16:02:47 $
+ * last change: $Author: hr $ $Date: 2004-08-02 16:31:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -119,6 +119,7 @@ public:
class ScXMLDatabaseRangeContext : public SvXMLImportContext
{
rtl::OUString sDatabaseRangeName;
+ rtl::OUString sConnectionRessource;
rtl::OUString sRangeAddress;
rtl::OUString sDatabaseName;
rtl::OUString sSourceObject;
@@ -173,6 +174,7 @@ public:
virtual void EndElement();
void SetDatabaseName(const rtl::OUString sTempDatabaseName) { sDatabaseName = sTempDatabaseName; }
+ void SetConnectionRessource(const rtl::OUString sTempConRes) { sConnectionRessource = sTempConRes; }
void SetSourceObject(const rtl::OUString sTempSourceObject) { sSourceObject = sTempSourceObject; }
void SetSourceType(const com::sun::star::sheet::DataImportMode nTempSourceType) { nSourceType = nTempSourceType; }
void SetNative(const sal_Bool bTempNative) { bNative = bTempNative; }
@@ -199,7 +201,8 @@ public:
class ScXMLSourceSQLContext : public SvXMLImportContext
{
- ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ rtl::OUString sDBName;
const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
@@ -224,7 +227,8 @@ public:
class ScXMLSourceTableContext : public SvXMLImportContext
{
- ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ rtl::OUString sDBName;
const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
@@ -249,7 +253,8 @@ public:
class ScXMLSourceQueryContext : public SvXMLImportContext
{
- ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+ rtl::OUString sDBName;
const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
@@ -272,6 +277,31 @@ public:
virtual void EndElement();
};
+class ScXMLConResContext : public SvXMLImportContext
+{
+ ScXMLDatabaseRangeContext* pDatabaseRangeContext;
+
+ const ScXMLImport& GetScImport() const { return (const ScXMLImport&)GetImport(); }
+ ScXMLImport& GetScImport() { return (ScXMLImport&)GetImport(); }
+
+public:
+
+ ScXMLConResContext( ScXMLImport& rImport, USHORT nPrfx,
+ const ::rtl::OUString& rLName,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::xml::sax::XAttributeList>& xAttrList,
+ ScXMLDatabaseRangeContext* pTempDatabaseRangeContext);
+
+ virtual ~ScXMLConResContext();
+
+ virtual SvXMLImportContext *CreateChildContext( USHORT nPrefix,
+ const ::rtl::OUString& rLocalName,
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::xml::sax::XAttributeList>& xAttrList );
+
+ virtual void EndElement();
+};
+
class ScXMLSubTotalRulesContext : public SvXMLImportContext
{
ScXMLDatabaseRangeContext* pDatabaseRangeContext;