19#ifndef INCLUDED_SVX_FMTOOLS_HXX
20#define INCLUDED_SVX_FMTOOLS_HXX
22#include <config_options.h>
25#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
26#include <com/sun/star/sdbc/XResultSet.hpp>
27#include <com/sun/star/sdbcx/XRowLocate.hpp>
28#include <com/sun/star/lang/EventObject.hpp>
29#include <com/sun/star/lang/XEventListener.hpp>
52void displayException(
const css::sdbc::SQLException&,
const css::uno::Reference<css::awt::XWindow>& rParent);
54void displayException(
const css::sdb::SQLErrorEvent&,
const css::uno::Reference<css::awt::XWindow>& rParent);
55void displayException(
const css::uno::Any&,
const css::uno::Reference<css::awt::XWindow>& rParent);
57sal_Int32
getElementPos(
const css::uno::Reference< css::container::XIndexAccess>& xCont,
const css::uno::Reference< css::uno::XInterface>& xElement);
77 CursorWrapper(
const css::uno::Reference< css::sdbc::XRowSet>& _rxCursor,
bool bUseCloned =
false);
87 bool is()
const {
return m_xMoveOperations.is(); }
88 bool Is()
const {
return m_xMoveOperations.is(); }
90 operator const css::uno::Reference< css::uno::XInterface>& ()
const{
return m_xGeneric; }
93 CursorWrapper& operator=(
const css::uno::Reference< css::sdbc::XRowSet>& xCursor);
94 operator const css::uno::Reference< css::sdbc::XResultSet>& ()
const {
return m_xMoveOperations; }
96 const css::uno::Reference< css::beans::XPropertySet >&
getPropertySet()
const {
return m_xPropertyAccess; }
102 {
return m_xBookmarkOperations->getBookmark(); }
105 bool moveToBookmark(
const css::uno::Any& bookmark) {
return m_xBookmarkOperations->moveToBookmark(bookmark); }
109 bool isAfterLast()
const {
return m_xMoveOperations->isAfterLast(); }
110 bool isFirst()
const {
return m_xMoveOperations->isFirst(); }
111 bool isLast()
const {
return m_xMoveOperations->isLast(); }
113 bool first() {
return m_xMoveOperations->first(); }
114 bool last() {
return m_xMoveOperations->last(); }
115 sal_Int32
getRow()
const {
return m_xMoveOperations->getRow(); }
116 bool absolute(sal_Int32 nPosition) {
return m_xMoveOperations->absolute(nPosition); }
118 bool previous() {
return m_xMoveOperations->previous(); }
119 bool next() {
return m_xMoveOperations->next(); }
121 bool rowDeleted() {
return m_xMoveOperations->rowDeleted(); }
124 css::uno::Reference< css::container::XNameAccess>
getColumns()
const {
return m_xColumnsSupplier->getColumns(); }
126 void ImplConstruct(
const css::uno::Reference< css::sdbc::XResultSet>& _rxCursor,
bool bUseCloned);
158 virtual void SAL_CALL disposing(
const css::lang::EventObject& Source )
override;
167bool isRowSetAlive(
const css::uno::Reference< css::uno::XInterface>& _rxRowSet);
171typedef ::o3tl::sorted_vector< css::uno::Reference< css::uno::XInterface > >
InterfaceBag;
css::uno::Reference< css::beans::XPropertySet > m_xPropertyAccess
css::uno::Reference< css::sdbcx::XRowLocate > m_xBookmarkOperations
bool relative(sal_Int32 nCount)
css::uno::Reference< css::sdbc::XResultSet > m_xMoveOperations
css::uno::Any getBookmark()
css::uno::Reference< css::uno::XInterface > m_xGeneric
bool isBeforeFirst() const
UNLESS_MERGELIBS(SVXCORE_DLLPUBLIC) CursorWrapper(const css friend bool operator==(const CursorWrapper &lhs, const CursorWrapper &rhs)
css::uno::Reference< css::sdbcx::XColumnsSupplier > m_xColumnsSupplier
const css::uno::Reference< css::beans::XPropertySet > & getPropertySet() const
css::uno::Reference< css::container::XNameAccess > getColumns() const
bool moveToBookmark(const css::uno::Any &bookmark)
bool absolute(sal_Int32 nPosition)
virtual void disposing(sal_Int16 _nId)=0
rtl::Reference< FmXDisposeMultiplexer > m_pAdapter
css::uno::Reference< css::lang::XComponent > m_xObject
FmXDisposeListener * m_pListener
class SAL_NO_VTABLE XPropertySet
#define SVXCORE_DLLPUBLIC