summaryrefslogtreecommitdiff
path: root/connectivity/source/inc/dbase/dindexnode.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'connectivity/source/inc/dbase/dindexnode.hxx')
-rw-r--r--connectivity/source/inc/dbase/dindexnode.hxx118
1 files changed, 59 insertions, 59 deletions
diff --git a/connectivity/source/inc/dbase/dindexnode.hxx b/connectivity/source/inc/dbase/dindexnode.hxx
index 97808ff7d838..41c78aecc75e 100644
--- a/connectivity/source/inc/dbase/dindexnode.hxx
+++ b/connectivity/source/inc/dbase/dindexnode.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,8 +51,8 @@ namespace connectivity
class ONDXKey : public ONDXKey_BASE
{
friend class ONDXNode;
- UINT32 nRecord; /* Satzzeiger */
- ORowSetValue xValue; /* Schluesselwert */
+ UINT32 nRecord; /* Satzzeiger */
+ ORowSetValue xValue; /* Schluesselwert */
public:
ONDXKey(UINT32 nRec=0);
@@ -67,13 +67,13 @@ namespace connectivity
virtual const ORowSetValue& getValue() const;
- UINT32 GetRecord() const { return nRecord; }
- void setRecord(UINT32 _nRec) { nRecord = _nRec; }
- void ResetRecord() { nRecord = 0; }
+ UINT32 GetRecord() const { return nRecord; }
+ void setRecord(UINT32 _nRec) { nRecord = _nRec; }
+ void ResetRecord() { nRecord = 0; }
BOOL operator == (const ONDXKey& rKey) const;
BOOL operator != (const ONDXKey& rKey) const;
- BOOL operator < (const ONDXKey& rKey) const;
+ BOOL operator < (const ONDXKey& rKey) const;
BOOL operator <= (const ONDXKey& rKey) const;
BOOL operator > (const ONDXKey& rKey) const;
BOOL operator >= (const ONDXKey& rKey) const;
@@ -101,7 +101,7 @@ namespace connectivity
friend SvStream& operator << (SvStream &rStream, const ONDXPagePtr&);
friend SvStream& operator >> (SvStream &rStream, ONDXPagePtr&);
- UINT32 nPagePos; // Position in der Indexdatei
+ UINT32 nPagePos; // Position in der Indexdatei
public:
ONDXPagePtr(UINT32 nPos = 0):nPagePos(nPos){}
@@ -113,7 +113,7 @@ namespace connectivity
UINT32 GetPagePos() const {return nPagePos;}
BOOL HasPage() const {return nPagePos != 0;}
- // sal_Bool Is() const { return isValid(); }
+ // sal_Bool Is() const { return isValid(); }
};
//==================================================================
// Index Seite
@@ -125,26 +125,26 @@ namespace connectivity
friend SvStream& operator << (SvStream &rStream, const ONDXPage&);
friend SvStream& operator >> (SvStream &rStream, ONDXPage&);
- UINT32 nPagePos; // Position in der Indexdatei
- BOOL bModified : 1;
- USHORT nCount;
+ UINT32 nPagePos; // Position in der Indexdatei
+ BOOL bModified : 1;
+ USHORT nCount;
- ONDXPagePtr aParent, // VaterSeite
- aChild; // Zeiger auf rechte ChildPage
+ ONDXPagePtr aParent, // VaterSeite
+ aChild; // Zeiger auf rechte ChildPage
ODbaseIndex& rIndex;
- ONDXNode* ppNodes; // array von Knoten
+ ONDXNode* ppNodes; // array von Knoten
public:
// Knoten Operationen
- USHORT Count() const {return nCount;}
+ USHORT Count() const {return nCount;}
- BOOL Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft = 0);
- BOOL Insert(USHORT nIndex, ONDXNode& rNode);
- BOOL Append(ONDXNode& rNode);
- BOOL Delete(USHORT);
- void Remove(USHORT);
- void Release(BOOL bSave = TRUE);
- void ReleaseFull(BOOL bSave = TRUE);
+ BOOL Insert(ONDXNode& rNode, sal_uInt32 nRowsLeft = 0);
+ BOOL Insert(USHORT nIndex, ONDXNode& rNode);
+ BOOL Append(ONDXNode& rNode);
+ BOOL Delete(USHORT);
+ void Remove(USHORT);
+ void Release(BOOL bSave = TRUE);
+ void ReleaseFull(BOOL bSave = TRUE);
// Aufteilen und Zerlegen
ONDXNode Split(ONDXPage& rPage);
@@ -187,7 +187,7 @@ namespace connectivity
void SetModified(BOOL bMod) {bModified = bMod;}
void SetPagePos(UINT32 nPage) {nPagePos = nPage;}
- BOOL Find(const ONDXKey&); // rek. Abstieg
+ BOOL Find(const ONDXKey&); // rek. Abstieg
USHORT FindPos(const ONDXKey& rKey) const;
#if OSL_DEBUG_LEVEL > 1
@@ -222,7 +222,7 @@ namespace connectivity
SvStream& operator << (SvStream &rStream, const ONDXPage& rPage);
- typedef ::std::vector<ONDXPage*> ONDXPageList;
+ typedef ::std::vector<ONDXPage*> ONDXPageList;
//==================================================================
// Index Knoten
@@ -230,8 +230,8 @@ namespace connectivity
class ONDXNode
{
friend class ONDXPage;
- ONDXPagePtr aChild; /* naechster Seitenverweis */
- ONDXKey aKey;
+ ONDXPagePtr aChild; /* naechster Seitenverweis */
+ ONDXKey aKey;
public:
ONDXNode(){}
@@ -240,16 +240,16 @@ namespace connectivity
:aChild(aPagePtr),aKey(rKey) {}
// verweist der Knoten auf eine Seite
- BOOL HasChild() const {return aChild.HasPage();}
+ BOOL HasChild() const {return aChild.HasPage();}
// Ist ein Index angegeben, kann gegebenfalls die Seite nachgeladen werden
- ONDXPagePtr& GetChild(ODbaseIndex* pIndex = NULL, ONDXPage* = NULL);
+ ONDXPagePtr& GetChild(ODbaseIndex* pIndex = NULL, ONDXPage* = NULL);
- const ONDXKey& GetKey() const { return aKey;}
- ONDXKey& GetKey() { return aKey;}
+ const ONDXKey& GetKey() const { return aKey;}
+ ONDXKey& GetKey() { return aKey;}
// Setzen des Childs, ueber Referenz, um die PagePos zu erhalten
- void SetChild(ONDXPagePtr aCh = ONDXPagePtr(), ONDXPage* = NULL);
- void SetKey(ONDXKey& rKey) {aKey = rKey;}
+ void SetChild(ONDXPagePtr aCh = ONDXPagePtr(), ONDXPage* = NULL);
+ void SetKey(ONDXKey& rKey) {aKey = rKey;}
void Write(SvStream &rStream, const ONDXPage& rPage) const;
void Read(SvStream &rStream, ODbaseIndex&);
@@ -257,32 +257,32 @@ namespace connectivity
//==================================================================
// inline implementation
//==================================================================
-// inline ONDXKey::ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, UINT32 nRec)
-// : ONDXKey_BASE(eType)
-// , nRecord(nRec),xValue(rVal)
-// {
-// }
-
-
-// inline ONDXKey::ONDXKey(const rtl::OUString& aStr, UINT32 nRec)
-// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::VARCHAR)
-// ,nRecord(nRec)
-// {
-// if (aStr.len())
-// xValue = aStr;
-// }
-
-// inline ONDXKey::ONDXKey(double aVal, UINT32 nRec)
-// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::DOUBLE)
-// ,nRecord(nRec)
-// ,xValue(aVal)
-// {
-// }
-
-// inline ONDXKey::ONDXKey(UINT32 nRec)
-// :nRecord(nRec)
-// {
-// }
+// inline ONDXKey::ONDXKey(const ORowSetValue& rVal, sal_Int32 eType, UINT32 nRec)
+// : ONDXKey_BASE(eType)
+// , nRecord(nRec),xValue(rVal)
+// {
+// }
+
+
+// inline ONDXKey::ONDXKey(const rtl::OUString& aStr, UINT32 nRec)
+// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::VARCHAR)
+// ,nRecord(nRec)
+// {
+// if (aStr.len())
+// xValue = aStr;
+// }
+
+// inline ONDXKey::ONDXKey(double aVal, UINT32 nRec)
+// : ONDXKey_BASE(::com::sun::star::sdbc::DataType::DOUBLE)
+// ,nRecord(nRec)
+// ,xValue(aVal)
+// {
+// }
+
+// inline ONDXKey::ONDXKey(UINT32 nRec)
+// :nRecord(nRec)
+// {
+// }
inline ONDXKey::ONDXKey(const ONDXKey& rKey)
: ONDXKey_BASE(rKey.getDBType())