LibreOffice Module svx (master)  1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
CursorWrapper Class Reference

#include <fmtools.hxx>

Public Member Functions

 CursorWrapper (const css::uno::Reference< css::sdbc::XRowSet > &_rxCursor, bool bUseCloned=false)
 
SVX_DLLPUBLIC CursorWrapper (const css::uno::Reference< css::sdbc::XResultSet > &_rxCursor, bool bUseCloned=false)
 
bool is () const
 
bool Is () const
 
 operator const css::uno::Reference< css::uno::XInterface > & () const
 
CursorWrapperoperator= (const css::uno::Reference< css::sdbc::XRowSet > &xCursor)
 
 operator const css::uno::Reference< css::sdbc::XResultSet > & () const
 
const css::uno::Reference< css::beans::XPropertySet > & getPropertySet () const
 
css::uno::Any getBookmark ()
 
bool moveToBookmark (const css::uno::Any &bookmark)
 
bool isBeforeFirst () const
 
bool isAfterLast () const
 
bool isFirst () const
 
bool isLast () const
 
void beforeFirst ()
 
bool first ()
 
bool last ()
 
sal_Int32 getRow () const
 
bool absolute (sal_Int32 nPosition)
 
bool relative (sal_Int32 nCount)
 
bool previous ()
 
bool next ()
 
void refreshRow ()
 
bool rowDeleted ()
 
css::uno::Reference< css::container::XNameAccess > getColumns () const
 

Private Member Functions

void ImplConstruct (const css::uno::Reference< css::sdbc::XResultSet > &_rxCursor, bool bUseCloned)
 

Private Attributes

css::uno::Reference< css::uno::XInterface > m_xGeneric
 
css::uno::Reference< css::sdbc::XResultSet > m_xMoveOperations
 
css::uno::Reference< css::sdbcx::XRowLocate > m_xBookmarkOperations
 
css::uno::Reference< css::sdbcx::XColumnsSupplier > m_xColumnsSupplier
 
css::uno::Reference< css::beans::XPropertySet > m_xPropertyAccess
 

Friends

bool operator== (const CursorWrapper &lhs, const CursorWrapper &rhs)
 

Detailed Description

Definition at line 65 of file fmtools.hxx.

Constructor & Destructor Documentation

CursorWrapper::CursorWrapper ( const css::uno::Reference< css::sdbc::XRowSet > &  _rxCursor,
bool  bUseCloned = false 
)
SVX_DLLPUBLIC CursorWrapper::CursorWrapper ( const css::uno::Reference< css::sdbc::XResultSet > &  _rxCursor,
bool  bUseCloned = false 
)

Member Function Documentation

bool CursorWrapper::absolute ( sal_Int32  nPosition)
inline

Definition at line 115 of file fmtools.hxx.

void CursorWrapper::beforeFirst ( )
inline

Definition at line 111 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

bool CursorWrapper::first ( )
inline
css::uno::Any CursorWrapper::getBookmark ( )
inline
css::uno::Reference< css::container::XNameAccess> CursorWrapper::getColumns ( ) const
inline
Exceptions
css::uno::RuntimeException

Definition at line 123 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

const css::uno::Reference< css::beans::XPropertySet >& CursorWrapper::getPropertySet ( ) const
inline
sal_Int32 CursorWrapper::getRow ( ) const
inline
void CursorWrapper::ImplConstruct ( const css::uno::Reference< css::sdbc::XResultSet > &  _rxCursor,
bool  bUseCloned 
)
private
bool CursorWrapper::is ( ) const
inline

Definition at line 86 of file fmtools.hxx.

Referenced by FmSearchEngine::SearchNextImpl().

bool CursorWrapper::Is ( ) const
inline

Definition at line 87 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow(), and DbGridRow::SetState().

bool CursorWrapper::isAfterLast ( ) const
inline

Definition at line 108 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

bool CursorWrapper::isBeforeFirst ( ) const
inline

Definition at line 107 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

bool CursorWrapper::isFirst ( ) const
inline

Definition at line 109 of file fmtools.hxx.

Referenced by FmSearchEngine::PropagateProgress().

bool CursorWrapper::isLast ( ) const
inline

Definition at line 110 of file fmtools.hxx.

Referenced by FmSearchEngine::PropagateProgress().

bool CursorWrapper::last ( )
inline

Definition at line 113 of file fmtools.hxx.

Referenced by FmSearchEngine::StartOver(), and FmSearchEngine::StartOverSpecial().

bool CursorWrapper::moveToBookmark ( const css::uno::Any &  bookmark)
inline
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 104 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows(), RowSetEventListener::rowsChanged(), and FmSearchEngine::SetFormatterUsing().

bool CursorWrapper::next ( )
inline

Definition at line 118 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

CursorWrapper::operator const css::uno::Reference< css::sdbc::XResultSet > & ( ) const
inline

Definition at line 93 of file fmtools.hxx.

CursorWrapper::operator const css::uno::Reference< css::uno::XInterface > & ( ) const
inline

Definition at line 89 of file fmtools.hxx.

CursorWrapper & CursorWrapper::operator= ( const css::uno::Reference< css::sdbc::XRowSet > &  xCursor)

Definition at line 260 of file fmtools.cxx.

References m_xBookmarkOperations, m_xColumnsSupplier, and m_xMoveOperations.

bool CursorWrapper::previous ( )
inline

Definition at line 117 of file fmtools.hxx.

void CursorWrapper::refreshRow ( )
inline

Definition at line 119 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

bool CursorWrapper::relative ( sal_Int32  nCount)
inline

Definition at line 116 of file fmtools.hxx.

bool CursorWrapper::rowDeleted ( )
inline

Definition at line 120 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow(), and DbGridRow::SetState().

Friends And Related Function Documentation

bool operator== ( const CursorWrapper lhs,
const CursorWrapper rhs 
)
friend

Definition at line 81 of file fmtools.hxx.

Member Data Documentation

css::uno::Reference< css::sdbcx::XRowLocate> CursorWrapper::m_xBookmarkOperations
private

Definition at line 70 of file fmtools.hxx.

Referenced by ImplConstruct(), and operator=().

css::uno::Reference< css::sdbcx::XColumnsSupplier> CursorWrapper::m_xColumnsSupplier
private

Definition at line 71 of file fmtools.hxx.

Referenced by ImplConstruct(), and operator=().

css::uno::Reference< css::uno::XInterface> CursorWrapper::m_xGeneric
private

Definition at line 68 of file fmtools.hxx.

Referenced by ImplConstruct().

css::uno::Reference< css::sdbc::XResultSet> CursorWrapper::m_xMoveOperations
private

Definition at line 69 of file fmtools.hxx.

Referenced by ImplConstruct(), and operator=().

css::uno::Reference< css::beans::XPropertySet> CursorWrapper::m_xPropertyAccess
private

Definition at line 72 of file fmtools.hxx.

Referenced by ImplConstruct().


The documentation for this class was generated from the following files: