summaryrefslogtreecommitdiff
path: root/sc/inc
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
parent5dce0079bb4c39c09a1dbc6c24e26a2a67902e17 (diff)
Cleanups and comments.
Diffstat (limited to 'sc/inc')
-rw-r--r--sc/inc/dpsdbtab.hxx14
-rw-r--r--sc/inc/dpshttab.hxx7
-rw-r--r--sc/inc/dptabdat.hxx4
3 files changed, 13 insertions, 12 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:
diff --git a/sc/inc/dpshttab.hxx b/sc/inc/dpshttab.hxx
index dba8880ff7ce..9608871e894c 100644
--- a/sc/inc/dpshttab.hxx
+++ b/sc/inc/dpshttab.hxx
@@ -98,10 +98,9 @@ private:
ScDocument* mpDoc;
};
-// --------------------------------------------------------------------
-//
-// implementation of ScDPTableData with sheet data
-//
+/**
+ * Implementation of ScDPTableData with sheet data.
+ */
class SC_DLLPUBLIC ScSheetDPData : public ScDPTableData
{
private:
diff --git a/sc/inc/dptabdat.hxx b/sc/inc/dptabdat.hxx
index 5ab7768563bb..956985c2c891 100644
--- a/sc/inc/dptabdat.hxx
+++ b/sc/inc/dptabdat.hxx
@@ -90,6 +90,10 @@ class ScDPInitState;
class ScDPResultMember;
class ScDocument;
+/**
+ * Base class that abstracts different data source types of a datapilot
+ * table.
+ */
class SC_DLLPUBLIC ScDPTableData
{
// cached data for GetDatePart