27#include <com/sun/star/sdb/CommandType.hpp>
28#include <com/sun/star/sdb/XSQLQueryComposer.hpp>
29#include <com/sun/star/sdbcx/XAlterView.hpp>
39 class NamedValueCollection;
44 class OQueryContainerWindow;
61 css::uno::Reference< css::sdb::XSQLQueryComposer >
m_xComposer;
86 css::uno::Reference< css::container::XNameAccess >
93 bool askForNewName(
const css::uno::Reference< css::container::XNameAccess>& _xElements,
102 void loadViewSettings( const ::comphelper::NamedValueCollection& o_rViewSettings );
113 virtual void Execute(sal_uInt16 nId,
const css::uno::Sequence< css::beans::PropertyValue>& aArgs)
override;
115 virtual void reconnect(
bool _bUI )
override;
121 OQueryController(
const css::uno::Reference< css::uno::XComponentContext >& _rM);
148 const css::uno::Sequence< css::beans::PropertyValue >&
157 DECLARE_XTYPEPROVIDER( )
163 virtual
void SAL_CALL
disposing( const css::lang::EventObject& Source ) override;
166 virtual
void SAL_CALL
disposing() override;
182 css::
uno::Any& rValue,
189 virtual
void reset() override;
192 void impl_reset( const
bool i_bIgnoreQuerySettings = false );
css::uno::Reference< css::container::XNameAccess > getObjectContainer() const
returns the container of queries, views, or command definitions, depending on what object type we des...
virtual OUString getPrivateTitle() const override
OUString m_sUpdateCatalogName
virtual FeatureState GetState(sal_uInt16 nId) const override
virtual bool allowQueries() const override
determines whether or not it's allowed for queries to participate in the game
bool editingQuery() const
virtual void SAL_CALL restoreViewData(const css::uno::Any &Data) override
OUString translateStatement(bool _bFireStatementChange=true)
virtual bool allowViews() const override
determines whether or not it's allowed for database views to participate in the game
virtual void onLoadedMenu(const css::uno::Reference< css::frame::XLayoutManager > &_xLayoutManager) override
void impl_setViewMode(::dbtools::SQLExceptionInfo *_pErrorInfo)
switches to the graphical or SQL view mode, as determined by m_bGraphicalDesign
bool isGraphicalDesign() const
void setVisibleRows(sal_Int32 _nVisibleRows)
::connectivity::OSQLParser m_aSqlParser
virtual short saveModified() override
virtual void impl_initialize() override
bool isEscapeProcessing() const
bool editingCommand() const
css::uno::Sequence< css::beans::PropertyValue > m_aFieldInformation
sal_Int32 getVisibleRows() const
OTableFields & getUnUsedFields()
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo() override
virtual bool Construct(vcl::Window *pParent) override
virtual OUString SAL_CALL getImplementationName() override
std::unique_ptr<::svxform::OSystemParseContext > m_pParseContext
void setEscapeProcessing_fireEvent(const bool _bEscapeProcessing)
sets the m_bEscapeProcessing member, and notifies our respective property change listeners
void setLimit(const sal_Int64 _nLimit)
::connectivity::OSQLParser & getParser()
const css::uno::Sequence< css::beans::PropertyValue > & getFieldInformation() const
const OUString & getStatement() const
bool askForNewName(const css::uno::Reference< css::container::XNameAccess > &_xElements, bool _bSaveAs)
OQueryContainerWindow * getContainer() const
virtual ~OQueryController() override
void setDistinct(bool _bDistinct)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
OTableFields m_vTableFieldDesc
void saveViewSettings(::comphelper::NamedValueCollection &o_rViewSettings, const bool i_includingCriteria) const
void impl_reset(const bool i_bIgnoreQuerySettings=false)
std::unique_ptr<::connectivity::OSQLParseTreeIterator > m_pSqlIterator
virtual OJoinDesignView * getJoinView() override
provides access to the OJoinDesignView belonging to the controller, which might or might not be the d...
OTableFields & getTableFieldDesc()
void loadViewSettings(const ::comphelper::NamedValueCollection &o_rViewSettings)
css::uno::Reference< css::sdb::XSQLQueryComposer > m_xComposer
virtual void impl_onModifyChanged() override
bool doSaveAsDoc(bool _bSaveAs)
virtual void describeSupportedFeatures() override
void setSplitPos(sal_Int32 _nSplitPos)
OUString m_sUpdateSchemaName
virtual css::uno::Any SAL_CALL getViewData() override
virtual void SAL_CALL getFastPropertyValue(css::uno::Any &rValue, sal_Int32 nHandle) const override
sal_Int32 getColWidth(sal_uInt16 _nColPos) const
virtual void reset() override
OTableFields m_vUnUsedFieldsDesc
sal_Int64 getLimit() const
DECL_LINK(OnExecuteAddTable, void *, void)
void impl_showAutoSQLViewError(const css::uno::Any &_rErrorDetails)
tells the user that we needed to switch to SQL view automatically
sal_Int32 getSplitPos() const
virtual ::cppu::IPropertyArrayHelper * createArrayHelper() const override
virtual void reconnect(bool _bUI) override
virtual void Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
OQueryController(const css::uno::Reference< css::uno::XComponentContext > &_rM)
void execute_QueryPropDlg()
css::uno::Reference< css::sdbcx::XAlterView > m_xAlterView
if we're editing an existing view, this is non-NULL
void setStatement_fireEvent(const OUString &_rNewStatement, bool _bFireStatementChange=true)
sets m_sStatement, and notifies our respective property change listeners
virtual void SAL_CALL disposing() override
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper() override
::connectivity::OSQLParseTreeIterator & getParseIterator()
::comphelper::OPropertyArrayUsageHelper< OQueryController > OQueryController_PABase
::comphelper::OPropertyContainer OQueryController_PBase
std::vector< OTableFieldDescRef > OTableFields
SwView * getView(const uno::Reference< frame::XModel > &xModel)
describes the state of a feature
#define DECLARE_XINTERFACE()