summaryrefslogtreecommitdiff
path: root/sc/inc/dpsdbtab.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-01 12:00:30 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-01 16:15:59 -0500
commitf6fa663b1398ae90759ac0a73d889e09236814a1 (patch)
treec25c9fdd8d1d0e19f9bddfc292167dfe6a06b145 /sc/inc/dpsdbtab.hxx
parent5dce0079bb4c39c09a1dbc6c24e26a2a67902e17 (diff)
Cleanups and comments.
Diffstat (limited to 'sc/inc/dpsdbtab.hxx')
-rw-r--r--sc/inc/dpsdbtab.hxx14
1 files changed, 6 insertions, 8 deletions
diff --git a/sc/inc/dpsdbtab.hxx b/sc/inc/dpsdbtab.hxx
index 3029f2866ad0..2ccd2ca2976f 100644
--- a/sc/inc/dpsdbtab.hxx
+++ b/sc/inc/dpsdbtab.hxx
@@ -39,22 +39,17 @@
class ScDPCacheTable;
class ScDocument;
-// --------------------------------------------------------------------
-//
-// implementation of ScDPTableData with database data
-//
-
struct ScImportSourceDesc
{
String aDBName;
String aObject;
USHORT nType; // enum DataImportMode
- BOOL bNative;
+ bool bNative;
ScDocument* mpDoc;
- ScImportSourceDesc(ScDocument* pDoc) : nType(0), bNative(FALSE), mpDoc(pDoc) {}
+ ScImportSourceDesc(ScDocument* pDoc) : nType(0), bNative(false), mpDoc(pDoc) {}
- BOOL operator== ( const ScImportSourceDesc& rOther ) const
+ bool operator== ( const ScImportSourceDesc& rOther ) const
{ return aDBName == rOther.aDBName &&
aObject == rOther.aObject &&
nType == rOther.nType &&
@@ -64,6 +59,9 @@ struct ScImportSourceDesc
ScDPCache* CreateCache() const;
};
+/**
+ * This class represents source data from database source.
+ */
class ScDatabaseDPData : public ScDPTableData
{
private: