22#include <com/sun/star/beans/XPropertySet.hpp>
24#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
25#include <com/sun/star/sdbcx/XKeysSupplier.hpp>
26#include <com/sun/star/container/XNameAccess.hpp>
39 css::uno::Reference< css::beans::XPropertySet >
m_xTable;
56 void appendColumns(css::uno::Reference< css::sdbcx::XColumnsSupplier>
const & _rxColSup,
bool _bNew,
bool _bKeyColumns =
false);
57 void appendPrimaryKey(css::uno::Reference< css::sdbcx::XKeysSupplier>
const & _rxSup,
bool _bNew);
60 css::uno::Reference< css::container::XNameAccess>
getKeyColumns()
const;
70 virtual void Execute(sal_uInt16 nId,
const css::uno::Sequence< css::beans::PropertyValue>& aArgs)
override;
81 OTableController(
const css::uno::Reference< css::uno::XComponentContext >& _rM);
83 const css::uno::Reference< css::beans::XPropertySet >&
getTable()
const {
return m_xTable;}
109 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
OUString createUniqueName(const OUString &_rName)
bool isAddAllowed() const
bool m_bAllowAutoIncrementValue
bool isAutoIncrementPrimaryKey() const
sal_Int32 getFirstEmptyRowPosition()
returns the position of the first empty row
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
virtual OUString SAL_CALL getImplementationName() override
virtual void describeSupportedFeatures() override
void appendColumns(css::uno::Reference< css::sdbcx::XColumnsSupplier > const &_rxColSup, bool _bNew, bool _bKeyColumns=false)
TOTypeInfoSP getTypeInfoByType(sal_Int32 _nDataType) const
const OTypeInfoMap & getTypeInfo() const
std::vector< std::shared_ptr< OTableRow > > & getRows()
TOTypeInfoSP const & getTypeInfo(sal_Int32 _nPos) const
bool checkColumns(bool _bNew)
OUString m_sAutoIncrementValue
virtual void Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
virtual void impl_onModifyChanged() override
bool isDropAllowed() const
std::vector< OTypeInfoMap::iterator > m_aTypeInfoIndex
bool doSaveDoc(bool _bSaveAs)
void appendPrimaryKey(css::uno::Reference< css::sdbcx::XKeysSupplier > const &_rxSup, bool _bNew)
virtual FeatureState GetState(sal_uInt16 nId) const override
OTableController(const css::uno::Reference< css::uno::XComponentContext > &_rM)
void stopTableListening()
css::uno::Reference< css::container::XNameAccess > getKeyColumns() const
virtual bool Construct(vcl::Window *pParent) override
std::vector< std::shared_ptr< OTableRow > > m_vRowList
css::uno::Reference< css::beans::XPropertySet > m_xTable
virtual void losingConnection() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual OUString getPrivateTitle() const override
void startTableListening()
bool isAlterAllowed() const
const TOTypeInfoSP & getTypeInfoFallBack() const
virtual void impl_initialize() override
virtual ~OTableController() override
const OUString & getAutoIncrementValue() const
bool isAutoIncrementValueEnabled() const
const css::uno::Reference< css::beans::XPropertySet > & getTable() const
virtual void SAL_CALL disposing() override
virtual sal_Bool SAL_CALL suspend(sal_Bool bSuspend) override
OSingleDocumentController OTableController_BASE
std::multimap< sal_Int32, TOTypeInfoSP > OTypeInfoMap
std::shared_ptr< OTypeInfo > TOTypeInfoSP
describes the state of a feature