diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-01-03 08:11:31 -0800 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-01-03 08:11:31 -0800 |
commit | 86673109223296d05b863e487fd826f1bbb0c17c (patch) | |
tree | ae3160e3af71781e8dd88f68ee462531dd88d6b9 /svx | |
parent | 75dacf5680cb7392613dd620f4b0fedb4df9c011 (diff) |
Revert previous patch
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/gridctrl.hxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/svx/inc/svx/gridctrl.hxx b/svx/inc/svx/gridctrl.hxx index 491eb01a99..a685b27314 100644 --- a/svx/inc/svx/gridctrl.hxx +++ b/svx/inc/svx/gridctrl.hxx @@ -47,13 +47,18 @@ #include <comphelper/propmultiplex.hxx> #include <svtools/transfer.hxx> #include "svx/svxdllapi.h" -#include <vector> class DbGridControl; class CursorWrapper; sal_Bool CompareBookmark(const ::com::sun::star::uno::Any& aLeft, const ::com::sun::star::uno::Any& aRight); +namespace svxform +{ + class DataColumn; +} +DECLARE_LIST(DbDataColumns, ::svxform::DataColumn*) + enum GridRowStatus { GRS_CLEAN, @@ -69,6 +74,7 @@ enum GridRowStatus class DbGridRow : public SvRefBase { ::com::sun::star::uno::Any m_aBookmark; // ::com::sun::star::text::Bookmark of the row, can be set + DbDataColumns m_aVariants; GridRowStatus m_eStatus; sal_Bool m_bIsNew; // row is no longer valid @@ -80,6 +86,9 @@ public: ~DbGridRow(); + sal_Bool HasField(sal_uInt32 nPos) const {return nPos < m_aVariants.Count();} + const ::svxform::DataColumn& GetField(sal_uInt32 nPos) const { return *m_aVariants.GetObject(nPos); } + void SetStatus(GridRowStatus _eStat) { m_eStatus = _eStat; } GridRowStatus GetStatus() const { return m_eStatus; } void SetNew(sal_Bool _bNew) { m_bIsNew = _bNew; } |