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)
 
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

UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) CursorWrapper(const css friend bool operator== (const CursorWrapper &lhs, const CursorWrapper &rhs)
 

Detailed Description

Definition at line 66 of file fmtools.hxx.

Constructor & Destructor Documentation

◆ CursorWrapper()

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

Definition at line 172 of file fmtools.cxx.

References ImplConstruct().

Member Function Documentation

◆ absolute()

bool CursorWrapper::absolute ( sal_Int32  nPosition)
inline

Definition at line 116 of file fmtools.hxx.

◆ beforeFirst()

void CursorWrapper::beforeFirst ( )
inline

Definition at line 112 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

◆ first()

bool CursorWrapper::first ( )
inline

◆ getBookmark()

css::uno::Any CursorWrapper::getBookmark ( )
inline
Exceptions
css::sdbc::SQLException
css::uno::RuntimeException

Definition at line 101 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow(), FmSearchEngine::OnSearchTerminated(), FmSearchEngine::SearchNextImpl(), FmSearchEngine::SetFormatterUsing(), and DbGridRow::SetState().

◆ getColumns()

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

Definition at line 124 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

◆ getPropertySet()

const css::uno::Reference< css::beans::XPropertySet > & CursorWrapper::getPropertySet ( ) const
inline

◆ getRow()

sal_Int32 CursorWrapper::getRow ( ) const
inline

◆ ImplConstruct()

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

◆ is()

bool CursorWrapper::is ( ) const
inline

Definition at line 87 of file fmtools.hxx.

Referenced by FmSearchEngine::SearchNextImpl().

◆ Is()

bool CursorWrapper::Is ( ) const
inline

Definition at line 88 of file fmtools.hxx.

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

◆ isAfterLast()

bool CursorWrapper::isAfterLast ( ) const
inline

Definition at line 109 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

◆ isBeforeFirst()

bool CursorWrapper::isBeforeFirst ( ) const
inline

Definition at line 108 of file fmtools.hxx.

Referenced by DbGridRow::DbGridRow().

◆ isFirst()

bool CursorWrapper::isFirst ( ) const
inline

Definition at line 110 of file fmtools.hxx.

Referenced by FmSearchEngine::PropagateProgress().

◆ isLast()

bool CursorWrapper::isLast ( ) const
inline

Definition at line 111 of file fmtools.hxx.

Referenced by FmSearchEngine::PropagateProgress().

◆ last()

bool CursorWrapper::last ( )
inline

Definition at line 114 of file fmtools.hxx.

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

◆ moveToBookmark()

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

Definition at line 105 of file fmtools.hxx.

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

◆ next()

bool CursorWrapper::next ( )
inline

Definition at line 119 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

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

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

Definition at line 94 of file fmtools.hxx.

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

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

Definition at line 90 of file fmtools.hxx.

◆ operator=()

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

Definition at line 214 of file fmtools.cxx.

References m_xBookmarkOperations, m_xColumnsSupplier, and m_xMoveOperations.

◆ previous()

bool CursorWrapper::previous ( )
inline

Definition at line 118 of file fmtools.hxx.

◆ refreshRow()

void CursorWrapper::refreshRow ( )
inline

Definition at line 120 of file fmtools.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

◆ relative()

bool CursorWrapper::relative ( sal_Int32  nCount)
inline

Definition at line 117 of file fmtools.hxx.

References nCount.

◆ rowDeleted()

bool CursorWrapper::rowDeleted ( )
inline

Definition at line 121 of file fmtools.hxx.

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

Friends And Related Function Documentation

◆ operator==

UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) CursorWrapper(const css friend bool operator== ( const CursorWrapper lhs,
const CursorWrapper rhs 
)
friend

Definition at line 82 of file fmtools.hxx.

Member Data Documentation

◆ m_xBookmarkOperations

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

Definition at line 71 of file fmtools.hxx.

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

◆ m_xColumnsSupplier

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

Definition at line 72 of file fmtools.hxx.

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

◆ m_xGeneric

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

Definition at line 69 of file fmtools.hxx.

Referenced by ImplConstruct().

◆ m_xMoveOperations

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

Definition at line 70 of file fmtools.hxx.

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

◆ m_xPropertyAccess

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

Definition at line 73 of file fmtools.hxx.

Referenced by ImplConstruct().


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