LibreOffice Module dbaccess (master) 1
|
#include <querycontroller.hxx>
Public Member Functions | |
OQueryController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
virtual | ~OQueryController () override |
OTableFields & | getTableFieldDesc () |
OTableFields & | getUnUsedFields () |
void | clearFields () |
virtual void | impl_onModifyChanged () override |
bool | isEscapeProcessing () const |
bool | isGraphicalDesign () const |
bool | isDistinct () const |
sal_Int64 | getLimit () const |
const OUString & | getStatement () const |
sal_Int32 | getSplitPos () const |
sal_Int32 | getVisibleRows () const |
void | setDistinct (bool _bDistinct) |
void | setLimit (const sal_Int64 _nLimit) |
void | setSplitPos (sal_Int32 _nSplitPos) |
void | setVisibleRows (sal_Int32 _nVisibleRows) |
sal_Int32 | getColWidth (sal_uInt16 _nColPos) const |
const css::uno::Sequence< css::beans::PropertyValue > & | getFieldInformation () const |
::connectivity::OSQLParser & | getParser () |
::connectivity::OSQLParseTreeIterator & | getParseIterator () |
virtual bool | Construct (vcl::Window *pParent) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | disposing () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Any SAL_CALL | getViewData () override |
virtual void SAL_CALL | restoreViewData (const css::uno::Any &Data) override |
Public Member Functions inherited from dbaui::OJoinController | |
OJoinController (const css::uno::Reference< css::uno::XComponentContext > &_rM) | |
TTableWindowData & | getTableWindowData () |
TTableConnectionData & | getTableConnectionData () |
OAddTableDlg * | getAddTableDialog () const |
virtual void | reconnect (bool _bUI) override |
virtual void | impl_onModifyChanged () override |
virtual bool | allowViews () const =0 |
determines whether or not it's allowed for database views to participate in the game More... | |
virtual bool | allowQueries () const =0 |
determines whether or not it's allowed for queries to participate in the game More... | |
virtual OJoinDesignView * | getJoinView () |
provides access to the OJoinDesignView belonging to the controller, which might or might not be the direct view (getView) More... | |
void | removeConnectionData (const TTableConnectionData::value_type &_pData) |
erase the data in the data vector More... | |
void | SaveTabWinsPosSize (OJoinTableView::OTableWindowMap *pTabWinList, tools::Long nOffsetX, tools::Long nOffsetY) |
virtual void SAL_CALL | disposing () override |
virtual sal_Bool SAL_CALL | suspend (sal_Bool bSuspend) override |
void | setErrorOccurred (const ::dbtools::SQLExceptionInfo &_rInfo) |
only defines a method to save a SQLException in d&d methods to show the error at a later state set the internal member m_aExceptionInfo to _rInfo More... | |
::dbtools::SQLExceptionInfo | clearOccurredError () |
just returns the internal member and clears it More... | |
void | runDialogAsync () |
virtual void SAL_CALL | disposing () override |
Public Member Functions inherited from dbaui::OSingleDocumentController | |
SfxUndoManager & | GetUndoManager () const |
need for undo's and redo's More... | |
void | ClearUndoManager () |
complete clears the Undo/Redo stacks More... | |
void | addUndoActionAndInvalidate (std::unique_ptr< SfxUndoAction > pAction) |
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO and REDO slot More... | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual css::uno::Reference< css::document::XUndoManager > SAL_CALL | getUndoManager () override |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
virtual void | describeSupportedFeatures () override |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual void | reconnect (bool _bUI) override |
virtual OUString | getPrivateTitle () const override |
OQueryContainerWindow * | getContainer () const |
Protected Member Functions inherited from dbaui::OJoinController | |
virtual FeatureState | GetState (sal_uInt16 nId) const override |
virtual void | Execute (sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
void | loadTableWindows (const ::comphelper::NamedValueCollection &i_rViewSettings) |
loads the information for the windows. More... | |
void | loadTableWindow (const ::comphelper::NamedValueCollection &i_rTableWindowSettings) |
loads the information for one window. More... | |
void | saveTableWindows (::comphelper::NamedValueCollection &o_rViewSettings) const |
saves the TableWindows structure in a sequence of property values More... | |
virtual | ~OJoinController () override |
TTableWindowData::value_type | createTableWindowData (const OUString &_sComposedName, const OUString &_sTableName, const OUString &_sWindowName) |
virtual short | saveModified ()=0 |
virtual void | reset ()=0 |
virtual void | describeSupportedFeatures () override |
AddTableDialogContext & | impl_getDialogContext () const |
Protected Member Functions inherited from dbaui::OSingleDocumentController | |
OSingleDocumentController (const css::uno::Reference< css::uno::XComponentContext > &_rxORB) | |
virtual | ~OSingleDocumentController () override |
virtual void SAL_CALL | disposing () override |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const=0 |
Private Member Functions | |
css::uno::Reference< css::container::XNameAccess > | getObjectContainer () const |
returns the container of queries, views, or command definitions, depending on what object type we design currently. More... | |
bool | editingView () const |
bool | editingQuery () const |
bool | editingCommand () const |
bool | askForNewName (const css::uno::Reference< css::container::XNameAccess > &_xElements, bool _bSaveAs) |
void | setQueryComposer () |
void | deleteIterator () |
void | executeQuery () |
bool | doSaveAsDoc (bool _bSaveAs) |
void | saveViewSettings (::comphelper::NamedValueCollection &o_rViewSettings, const bool i_includingCriteria) const |
void | loadViewSettings (const ::comphelper::NamedValueCollection &o_rViewSettings) |
OUString | translateStatement (bool _bFireStatementChange=true) |
void | execute_QueryPropDlg () |
virtual void | onLoadedMenu (const css::uno::Reference< css::frame::XLayoutManager > &_xLayoutManager) override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual OJoinDesignView * | getJoinView () override |
provides access to the OJoinDesignView belonging to the controller, which might or might not be the direct view (getView) More... | |
virtual short | saveModified () override |
virtual void | reset () override |
virtual void | impl_initialize () override |
void | impl_reset (const bool i_bIgnoreQuerySettings=false) |
void | impl_showAutoSQLViewError (const css::uno::Any &_rErrorDetails) |
tells the user that we needed to switch to SQL view automatically More... | |
void | impl_setViewMode (::dbtools::SQLExceptionInfo *_pErrorInfo) |
switches to the graphical or SQL view mode, as determined by m_bGraphicalDesign More... | |
void | setStatement_fireEvent (const OUString &_rNewStatement, bool _bFireStatementChange=true) |
sets m_sStatement, and notifies our respective property change listeners More... | |
void | setEscapeProcessing_fireEvent (const bool _bEscapeProcessing) |
sets the m_bEscapeProcessing member, and notifies our respective property change listeners More... | |
virtual bool | allowViews () const override |
determines whether or not it's allowed for database views to participate in the game More... | |
virtual bool | allowQueries () const override |
determines whether or not it's allowed for queries to participate in the game More... | |
DECL_LINK (OnExecuteAddTable, void *, void) | |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const=0 |
Private Attributes | |
OTableFields | m_vTableFieldDesc |
OTableFields | m_vUnUsedFieldsDesc |
css::uno::Sequence< css::beans::PropertyValue > | m_aFieldInformation |
std::unique_ptr<::svxform::OSystemParseContext > | m_pParseContext |
::connectivity::OSQLParser | m_aSqlParser |
std::unique_ptr<::connectivity::OSQLParseTreeIterator > | m_pSqlIterator |
css::uno::Reference< css::sdb::XSQLQueryComposer > | m_xComposer |
css::uno::Reference< css::sdbcx::XAlterView > | m_xAlterView |
if we're editing an existing view, this is non-NULL More... | |
OUString | m_sStatement |
OUString | m_sUpdateCatalogName |
OUString | m_sUpdateSchemaName |
OUString | m_sName |
sal_Int64 | m_nLimit |
sal_Int32 | m_nVisibleRows |
sal_Int32 | m_nSplitPos |
sal_Int32 | m_nCommandType |
bool | m_bGraphicalDesign |
bool | m_bDistinct |
bool | m_bEscapeProcessing |
Additional Inherited Members | |
Static Public Member Functions inherited from dbaui::OJoinController | |
static void | SaveTabWinPosSize (OTableWindow const *pTabWin, tools::Long nOffsetX, tools::Long nOffsetY) |
Static Protected Member Functions inherited from comphelper::OPropertyContainer | |
static css::uno::Sequence< css::uno::Type > | getBaseTypes () |
Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< class TYPE > | |
static std::mutex & | theMutex () |
Protected Attributes inherited from dbaui::OJoinController | |
TTableConnectionData | m_vTableConnectionData |
TTableWindowData | m_vTableData |
::dbtools::SQLExceptionInfo | m_aExceptionInfo |
std::shared_ptr< OAddTableDlg > | m_xAddTableDialog |
std::unique_ptr< AddTableDialogContext > | m_pDialogContext |
Point | m_aMinimumTableViewSize |
Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< class TYPE > | |
static sal_Int32 | s_nRefCount |
::cppu::IPropertyArrayHelper * | s_pProps |
Definition at line 48 of file querycontroller.hxx.
dbaui::OQueryController::OQueryController | ( | const css::uno::Reference< css::uno::XComponentContext > & | _rM | ) |
Definition at line 201 of file querycontroller.cxx.
References CommandType, get(), m_bEscapeProcessing, m_sStatement, PROPERTY_ACTIVECOMMAND(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_ID_ACTIVECOMMAND, PROPERTY_ID_ESCAPE_PROCESSING, QUERY, and comphelper::OPropertyContainerHelper::registerProperty().
|
overridevirtual |
Definition at line 222 of file querycontroller.cxx.
References dispose(), and m_refCount.
|
overrideprivatevirtual |
determines whether or not it's allowed for queries to participate in the game
Implements dbaui::OJoinController.
Definition at line 1761 of file querycontroller.cxx.
References comphelper::NamedValueCollection::getOrDefault(), PROPERTY_COMMAND_TYPE(), dbaccess::QUERY, and dbaccess::TABLE.
|
overrideprivatevirtual |
determines whether or not it's allowed for database views to participate in the game
Implements dbaui::OJoinController.
Definition at line 1756 of file querycontroller.cxx.
|
private |
Definition at line 1154 of file querycontroller.cxx.
References DBA_RES, editingCommand(), editingView(), dbaui::OSaveAsDlg::getCatalog(), getConnection(), dbaui::OSaveAsDlg::getName(), dbaui::OSaveAsDlg::getSchema(), m_nCommandType, m_sName, m_sUpdateCatalogName, m_sUpdateSchemaName, NONE, dbaccess::QUERY, RET_OK, weld::DialogController::run(), and sName.
Referenced by doSaveAsDoc().
void dbaui::OQueryController::clearFields | ( | ) |
Definition at line 329 of file querycontroller.cxx.
References m_vTableFieldDesc.
Referenced by disposing().
|
overridevirtual |
Definition at line 911 of file querycontroller.cxx.
|
overrideprivatevirtual |
Implements comphelper::OPropertyArrayUsageHelper< class TYPE >.
Definition at line 278 of file querycontroller.cxx.
References comphelper::OPropertyContainerHelper::describeProperties(), nLength, Property, and PROPERTY_ID_CURRENT_QUERY_DESIGN.
|
private |
|
private |
Definition at line 303 of file querycontroller.cxx.
References m_pSqlIterator.
Referenced by disposing(), reconnect(), and setQueryComposer().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 925 of file querycontroller.cxx.
References dbaui::OJoinController::describeSupportedFeatures(), ID_BROWSER_ESCAPEPROCESSING, ID_BROWSER_QUERY_EXECUTE, ID_BROWSER_SAVEASDOC, ID_BROWSER_SQL, ID_EDIT_QUERY_DESIGN, and ID_EDIT_QUERY_SQL.
|
overridevirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 313 of file querycontroller.cxx.
References clearFields(), deleteIterator(), dbaui::OJoinController::disposing(), m_pParseContext, m_vUnUsedFieldsDesc, and m_xComposer.
|
overridevirtual |
|
private |
Definition at line 1201 of file querycontroller.cxx.
References aEvent, Any, dbaui::appendToFilter(), askForNewName(), DBA_RES, DBG_UNHANDLED_EXCEPTION, editingCommand(), editingQuery(), editingView(), Exception, getConnection(), getContainer(), getObjectContainer(), getViewData(), ID_BROWSER_EDITDOC, m_bEscapeProcessing, m_sName, m_sUpdateCatalogName, m_sUpdateSchemaName, m_xAlterView, PROPERTY_CATALOGNAME(), PROPERTY_COMMAND(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_LAYOUTINFORMATION(), PROPERTY_NAME(), PROPERTY_SCHEMANAME(), PROPERTY_UPDATE_TABLENAME(), weld::DialogController::run(), showError(), and translateStatement().
Referenced by Execute(), and saveModified().
|
inlineprivate |
Definition at line 91 of file querycontroller.hxx.
References m_nCommandType.
Referenced by askForNewName(), doSaveAsDoc(), getPrivateTitle(), GetState(), impl_initialize(), and impl_reset().
|
inlineprivate |
Definition at line 90 of file querycontroller.hxx.
References m_nCommandType, and dbaccess::QUERY.
Referenced by doSaveAsDoc(), and impl_reset().
|
inlineprivate |
Definition at line 89 of file querycontroller.hxx.
References m_nCommandType, and dbaccess::TABLE.
Referenced by askForNewName(), doSaveAsDoc(), Execute(), getObjectContainer(), getPrivateTitle(), GetState(), impl_initialize(), and impl_reset().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 427 of file querycontroller.cxx.
References Any, dbaui::OQueryContainerWindow::clear(), dbaui::OQueryContainerWindow::copy(), dbaui::OQueryContainerWindow::cut(), DBA_RES, DBG_UNHANDLED_EXCEPTION, doSaveAsDoc(), editingView(), SfxUndoManager::EnterListAction(), Exception, dbaui::OJoinController::Execute(), Execute(), execute_QueryPropDlg(), executeQuery(), getConnection(), getContainer(), getJoinView(), getStatement(), dbaui::OJoinDesignView::getTableView(), dbaui::OSingleDocumentController::GetUndoManager(), ID_BROWSER_ADDTABLE, ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_ESCAPEPROCESSING, ID_BROWSER_PASTE, ID_BROWSER_QUERY_EXECUTE, ID_BROWSER_SAVEASDOC, ID_BROWSER_SAVEDOC, ID_BROWSER_SQL, impl_setViewMode(), dbtools::SQLExceptionInfo::isValid(), SfxUndoManager::LeaveListAction(), m_aSqlParser, m_bDistinct, m_bEscapeProcessing, m_bGraphicalDesign, m_nLimit, m_pSqlIterator, m_sStatement, dbaui::OJoinController::m_vTableConnectionData, connectivity::OSQLParser::parseTree(), dbaui::OQueryContainerWindow::paste(), dbaui::OQueryContainerWindow::SaveUIConfig(), connectivity::Select, setEscapeProcessing_fireEvent(), dbaui::OQueryContainerWindow::setSlotEnabled(), setStatement_fireEvent(), and showError().
Referenced by Execute().
|
private |
Definition at line 1033 of file querycontroller.cxx.
References getContainer(), dbaui::QueryPropertiesDialog::getDistinct(), GetFrameWeld(), dbaui::QueryPropertiesDialog::getLimit(), m_bDistinct, m_nLimit, RET_OK, and weld::DialogController::run().
Referenced by Execute().
|
private |
Definition at line 1083 of file querycontroller.cxx.
References Any, Exception, FRAME_NAME_QUERY_PREVIEW, get(), getConnection(), getContainer(), m_bEscapeProcessing, m_sUpdateCatalogName, m_sUpdateSchemaName, PROPERTY_ACTIVE_CONNECTION(), PROPERTY_COMMAND(), PROPERTY_COMMAND_TYPE(), PROPERTY_DATASOURCENAME(), PROPERTY_ENABLE_BROWSER(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_UPDATE_CATALOGNAME(), PROPERTY_UPDATE_SCHEMANAME(), PROPERTY_UPDATE_TABLENAME(), sFrameName, dbaui::OQueryContainerWindow::showPreview(), translateStatement(), and URL.
Referenced by Execute().
sal_Int32 dbaui::OQueryController::getColWidth | ( | sal_uInt16 | _nColPos | ) | const |
Definition at line 1046 of file querycontroller.cxx.
References m_aFieldInformation.
|
inlineprotected |
Definition at line 118 of file querycontroller.hxx.
References getView().
Referenced by doSaveAsDoc(), Execute(), execute_QueryPropDlg(), executeQuery(), getFastPropertyValue(), getJoinView(), GetState(), getViewData(), impl_initialize(), impl_reset(), impl_setViewMode(), reset(), setQueryComposer(), and translateStatement().
|
overrideprivatevirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 242 of file querycontroller.cxx.
References getContainer(), comphelper::OPropertyContainer::getFastPropertyValue(), comphelper::NamedValueCollection::getPropertyValues(), getStatement(), isGraphicalDesign(), m_bEscapeProcessing, m_sStatement, PROPERTY_ESCAPE_PROCESSING(), PROPERTY_ID_CURRENT_QUERY_DESIGN, comphelper::NamedValueCollection::put(), dbaui::OQueryContainerWindow::SaveUIConfig(), and saveViewSettings().
|
privatevirtual |
Reimplemented from comphelper::OPropertyContainer.
|
private |
|
private |
|
inline |
Definition at line 149 of file querycontroller.hxx.
References m_aFieldInformation.
Referenced by dbaui::OQueryViewSwitch::forceInitialView().
|
overridevirtual |
Definition at line 191 of file querycontroller.cxx.
|
override |
Definition at line 273 of file querycontroller.cxx.
References comphelper::OPropertyArrayUsageHelper< class TYPE >::getArrayHelper().
|
overrideprivatevirtual |
provides access to the OJoinDesignView belonging to the controller, which might or might not be the direct view (getView)
Reimplemented from dbaui::OJoinController.
Definition at line 920 of file querycontroller.cxx.
References getContainer(), and dbaui::OQueryContainerWindow::getDesignView().
Referenced by Execute().
|
inline |
Definition at line 135 of file querycontroller.hxx.
References m_nLimit.
Referenced by dbaui::OQueryDesignView::getStatement().
|
private |
returns the container of queries, views, or command definitions, depending on what object type we design currently.
Not allowed to be called if we design an independent SQL command.
Definition at line 1057 of file querycontroller.cxx.
References editingView(), getConnection(), and dbaccess::getDataSource().
Referenced by doSaveAsDoc(), and impl_reset().
|
inline |
Definition at line 152 of file querycontroller.hxx.
References m_pSqlIterator.
|
inline |
Definition at line 151 of file querycontroller.hxx.
References m_aSqlParser.
Referenced by dbaui::OQueryDesignView::fillFunctionInfo(), dbaui::OQueryDesignView::getStatement(), and dbaui::OSelectionBrowseBox::saveField().
|
overrideprotectedvirtual |
Definition at line 871 of file querycontroller.cxx.
References DBA_RES, editingCommand(), editingView(), getMutex(), o3tl::getToken(), and m_sName.
|
overridevirtual |
Definition at line 236 of file querycontroller.cxx.
|
inline |
Definition at line 138 of file querycontroller.hxx.
References m_nSplitPos.
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 334 of file querycontroller.cxx.
References dbaui::FeatureState::aValue, dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, editingCommand(), editingView(), getContainer(), dbaui::OQueryContainerWindow::getPreviewFrame(), dbaui::OJoinController::GetState(), ID_BROWSER_ADDTABLE, ID_BROWSER_COPY, ID_BROWSER_CUT, ID_BROWSER_EDITDOC, ID_BROWSER_ESCAPEPROCESSING, ID_BROWSER_PASTE, ID_BROWSER_QUERY_EXECUTE, ID_BROWSER_SAVEASDOC, ID_BROWSER_SAVEDOC, ID_BROWSER_SQL, ID_EDIT_QUERY_DESIGN, ID_EDIT_QUERY_SQL, dbaui::OQueryContainerWindow::isCopyAllowed(), dbaui::OQueryContainerWindow::isCutAllowed(), dbaui::OQueryContainerWindow::isPasteAllowed(), dbaui::OQueryContainerWindow::isSlotEnabled(), m_bDistinct, m_bEscapeProcessing, m_bGraphicalDesign, m_nLimit, m_pSqlIterator, m_sStatement, dbaui::OJoinController::m_vTableData, m_vTableFieldDesc, and m_xAlterView.
|
inline |
Definition at line 137 of file querycontroller.hxx.
References m_sStatement.
Referenced by Execute(), getFastPropertyValue(), dbaui::OQueryViewSwitch::impl_forceSQLView(), and translateStatement().
|
overridevirtual |
Definition at line 196 of file querycontroller.cxx.
|
inline |
Definition at line 124 of file querycontroller.hxx.
References m_vTableFieldDesc.
Referenced by dbaui::OSelectionBrowseBox::getFields(), and dbaui::OQueryDesignView::getStatement().
|
inline |
Definition at line 125 of file querycontroller.hxx.
References m_vUnUsedFieldsDesc.
Referenced by dbaui::OQueryDesignView::getStatement().
|
overridevirtual |
Definition at line 1773 of file querycontroller.cxx.
References Any, getContainer(), getMutex(), comphelper::NamedValueCollection::getPropertyValues(), dbaui::OQueryContainerWindow::SaveUIConfig(), and saveViewSettings().
Referenced by doSaveAsDoc().
|
inline |
Definition at line 139 of file querycontroller.hxx.
References m_nVisibleRows.
|
overrideprivatevirtual |
Definition at line 653 of file querycontroller.cxx.
References Any, dbaui::OSingleDocumentController::ClearUndoManager(), DBA_RES, DBG_UNHANDLED_EXCEPTION, dbaui::DefaultYes, editingCommand(), editingView(), dbaui::OQueryContainerWindow::forceInitialView(), dbtools::SQLExceptionInfo::get(), comphelper::NamedValueCollection::get_ensureType(), getConnection(), getContainer(), dbaccess::getDataSource(), comphelper::NamedValueCollection::getOrDefault(), comphelper::NamedValueCollection::has(), impl_reset(), impl_setViewMode(), impl_showAutoSQLViewError(), dbaui::OQueryContainerWindow::initialize(), dbtools::SQLExceptionInfo::isValid(), LINK, loadViewSettings(), m_bEscapeProcessing, m_bGraphicalDesign, m_nCommandType, m_sName, m_sStatement, m_xAlterView, Application::PostUserEvent(), PROPERTY_COMMAND(), PROPERTY_COMMAND_TYPE(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_GRAPHICAL_DESIGN(), PROPERTY_QUERYDESIGNVIEW(), dbaccess::QUERY, dbaui::Query, comphelper::NamedValueCollection::remove(), RET_NO, weld::DialogController::run(), setEscapeProcessing_fireEvent(), setStatement_fireEvent(), dbaccess::TABLE, and dbaui::YesNo.
|
overridevirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 948 of file querycontroller.cxx.
References ID_BROWSER_QUERY_EXECUTE, ID_BROWSER_SAVEASDOC, and dbaui::OJoinController::impl_onModifyChanged().
|
private |
Definition at line 1597 of file querycontroller.cxx.
References Any, DBA_RES, DBG_UNHANDLED_EXCEPTION, editingCommand(), editingQuery(), editingView(), Exception, getContainer(), getObjectContainer(), impl_showAutoSQLViewError(), loadViewSettings(), m_aSqlParser, m_bEscapeProcessing, m_bGraphicalDesign, m_nVisibleRows, m_pSqlIterator, m_sName, m_sStatement, connectivity::OSQLParser::parseTree(), PROPERTY_COMMAND(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_LAYOUTINFORMATION(), weld::DialogController::run(), setEscapeProcessing_fireEvent(), dbaui::OQueryContainerWindow::setNoneVisibleRow(), setQueryComposer(), and setStatement_fireEvent().
Referenced by impl_initialize(), and reset().
|
private |
switches to the graphical or SQL view mode, as determined by m_bGraphicalDesign
Definition at line 625 of file querycontroller.cxx.
References getContainer(), m_bGraphicalDesign, showError(), and dbaui::OQueryContainerWindow::switchView().
Referenced by Execute(), impl_initialize(), and reconnect().
|
private |
tells the user that we needed to switch to SQL view automatically
Definition at line 615 of file querycontroller.cxx.
References m_nCommandType, and showError().
Referenced by impl_initialize(), and impl_reset().
|
inline |
Definition at line 134 of file querycontroller.hxx.
References m_bDistinct.
Referenced by dbaui::OSelectionBrowseBox::Command(), and dbaui::OQueryDesignView::getStatement().
|
inline |
Definition at line 132 of file querycontroller.hxx.
References m_bEscapeProcessing.
|
inline |
Definition at line 133 of file querycontroller.hxx.
References m_bGraphicalDesign.
Referenced by dbaui::OQueryViewSwitch::forceInitialView(), and getFastPropertyValue().
|
private |
Definition at line 1024 of file querycontroller.cxx.
References dbaui::OJoinController::loadTableWindows(), m_aFieldInformation, m_nSplitPos, and m_nVisibleRows.
Referenced by impl_initialize(), and impl_reset().
|
overrideprivatevirtual |
Definition at line 866 of file querycontroller.cxx.
References m_bGraphicalDesign.
|
overrideprotectedvirtual |
Reimplemented from dbaui::OJoinController.
Definition at line 976 of file querycontroller.cxx.
References deleteIterator(), impl_setViewMode(), m_bGraphicalDesign, m_xComposer, dbaui::OJoinController::reconnect(), and setQueryComposer().
|
overrideprivatevirtual |
Implements dbaui::OJoinController.
Definition at line 1720 of file querycontroller.cxx.
References dbaui::OSingleDocumentController::ClearUndoManager(), getContainer(), impl_reset(), and dbaui::OQueryContainerWindow::reset().
|
overridevirtual |
Definition at line 1785 of file querycontroller.cxx.
|
overrideprivatevirtual |
Implements dbaui::OJoinController.
Definition at line 1564 of file querycontroller.cxx.
References Application::CreateMessageDialog(), doSaveAsDoc(), getMutex(), GetStandardText(), m_bGraphicalDesign, m_nCommandType, dbaui::OJoinController::m_vTableData, m_vTableFieldDesc, RET_CANCEL, and RET_YES.
|
private |
Definition at line 999 of file querycontroller.cxx.
References comphelper::NamedValueCollection::clear(), comphelper::NamedValueCollection::getPropertyValues(), i, m_nSplitPos, m_nVisibleRows, m_vTableFieldDesc, comphelper::NamedValueCollection::put(), and dbaui::OJoinController::saveTableWindows().
Referenced by getFastPropertyValue(), and getViewData().
|
inline |
Definition at line 141 of file querycontroller.hxx.
References m_bDistinct.
|
private |
sets the m_bEscapeProcessing member, and notifies our respective property change listeners
Definition at line 1738 of file querycontroller.cxx.
References Any, m_bEscapeProcessing, nHandle, and PROPERTY_ID_ESCAPE_PROCESSING.
Referenced by Execute(), impl_initialize(), and impl_reset().
|
inline |
Definition at line 142 of file querycontroller.hxx.
References m_nLimit.
|
private |
Definition at line 886 of file querycontroller.cxx.
References deleteIterator(), Exception, getConnection(), getContainer(), m_aSqlParser, m_pSqlIterator, m_sStatement, m_xComposer, dbaui::OQueryContainerWindow::setStatement(), and xFactory.
Referenced by impl_reset(), and reconnect().
|
inline |
Definition at line 143 of file querycontroller.hxx.
References m_nSplitPos.
Referenced by dbaui::OQueryDesignView::SaveUIConfig().
|
private |
sets m_sStatement, and notifies our respective property change listeners
Definition at line 1727 of file querycontroller.cxx.
References Any, m_sStatement, nHandle, and PROPERTY_ID_ACTIVECOMMAND.
Referenced by Execute(), impl_initialize(), impl_reset(), and translateStatement().
|
inline |
Definition at line 144 of file querycontroller.hxx.
References m_nVisibleRows.
Referenced by dbaui::OQueryDesignView::SaveUIConfig().
|
private |
Definition at line 1523 of file querycontroller.cxx.
References Any, dbaui::concatComment(), DBA_RES, dbaui::getComment(), getConnection(), getContainer(), getStatement(), m_aSqlParser, m_bEscapeProcessing, m_bGraphicalDesign, m_sStatement, m_xComposer, connectivity::OSQLParser::parseTree(), setStatement_fireEvent(), and showError().
Referenced by doSaveAsDoc(), and executeQuery().
|
private |
Definition at line 55 of file querycontroller.hxx.
Referenced by getColWidth(), getFieldInformation(), and loadViewSettings().
|
private |
Definition at line 58 of file querycontroller.hxx.
Referenced by Execute(), getParser(), impl_reset(), setQueryComposer(), and translateStatement().
|
private |
Definition at line 77 of file querycontroller.hxx.
Referenced by Execute(), execute_QueryPropDlg(), GetState(), isDistinct(), and setDistinct().
|
private |
Definition at line 78 of file querycontroller.hxx.
Referenced by doSaveAsDoc(), Execute(), executeQuery(), getFastPropertyValue(), GetState(), impl_initialize(), impl_reset(), isEscapeProcessing(), OQueryController(), setEscapeProcessing_fireEvent(), and translateStatement().
|
private |
Definition at line 76 of file querycontroller.hxx.
Referenced by Execute(), GetState(), impl_initialize(), impl_reset(), impl_setViewMode(), isGraphicalDesign(), onLoadedMenu(), reconnect(), saveModified(), and translateStatement().
|
private |
Definition at line 75 of file querycontroller.hxx.
Referenced by askForNewName(), editingCommand(), editingQuery(), editingView(), impl_initialize(), impl_showAutoSQLViewError(), and saveModified().
|
private |
Definition at line 71 of file querycontroller.hxx.
Referenced by Execute(), execute_QueryPropDlg(), getLimit(), GetState(), and setLimit().
|
private |
Definition at line 74 of file querycontroller.hxx.
Referenced by getSplitPos(), loadViewSettings(), saveViewSettings(), and setSplitPos().
|
private |
Definition at line 73 of file querycontroller.hxx.
Referenced by getVisibleRows(), impl_reset(), loadViewSettings(), saveViewSettings(), and setVisibleRows().
|
private |
Definition at line 57 of file querycontroller.hxx.
Referenced by disposing().
|
private |
Definition at line 59 of file querycontroller.hxx.
Referenced by deleteIterator(), Execute(), getParseIterator(), GetState(), impl_reset(), and setQueryComposer().
|
mutableprivate |
Definition at line 69 of file querycontroller.hxx.
Referenced by askForNewName(), doSaveAsDoc(), getPrivateTitle(), impl_initialize(), and impl_reset().
|
private |
Definition at line 65 of file querycontroller.hxx.
Referenced by Execute(), getFastPropertyValue(), GetState(), getStatement(), impl_initialize(), impl_reset(), OQueryController(), setQueryComposer(), setStatement_fireEvent(), and translateStatement().
|
private |
Definition at line 66 of file querycontroller.hxx.
Referenced by askForNewName(), doSaveAsDoc(), and executeQuery().
|
private |
Definition at line 67 of file querycontroller.hxx.
Referenced by askForNewName(), doSaveAsDoc(), and executeQuery().
|
private |
Definition at line 52 of file querycontroller.hxx.
Referenced by clearFields(), GetState(), getTableFieldDesc(), saveModified(), and saveViewSettings().
|
private |
Definition at line 53 of file querycontroller.hxx.
Referenced by disposing(), and getUnUsedFields().
|
private |
if we're editing an existing view, this is non-NULL
Definition at line 63 of file querycontroller.hxx.
Referenced by doSaveAsDoc(), GetState(), and impl_initialize().
|
private |
Definition at line 61 of file querycontroller.hxx.
Referenced by disposing(), reconnect(), setQueryComposer(), and translateStatement().