LibreOffice Module dbaccess (master) 1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaui::SbaTableQueryBrowser Class Referencefinal

#include <unodatbr.hxx>

Inheritance diagram for dbaui::SbaTableQueryBrowser:
[legend]
Collaboration diagram for dbaui::SbaTableQueryBrowser:
[legend]

Classes

struct  ExternalFeature
 

Public Types

enum  EntryType {
  etDatasource = css::sdb::application::DatabaseObjectContainer::DATA_SOURCE ,
  etQueryContainer = css::sdb::application::DatabaseObjectContainer::QUERIES ,
  etTableContainer = css::sdb::application::DatabaseObjectContainer::TABLES ,
  etQuery = css::sdb::application::DatabaseObject::QUERY ,
  etTableOrView = css::sdb::application::DatabaseObject::TABLE ,
  etUnknown = -1
}
 

Public Member Functions

 SbaTableQueryBrowser (const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
virtual ~SbaTableQueryBrowser () override
 
virtual bool Construct (vcl::Window *pParent) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
virtual sal_Bool SAL_CALL suspend (sal_Bool bSuspend) override
 
virtual void SAL_CALL attachFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL statusChanged (const css::frame::FeatureStateEvent &Event) override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual sal_Bool SAL_CALL select (const css::uno::Any &aSelection) override
 
virtual css::uno::Any SAL_CALL getSelection () override
 
virtual void SAL_CALL addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
 
virtual void SAL_CALL removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void SAL_CALL elementInserted (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL elementRemoved (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL elementReplaced (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL frameAction (const css::frame::FrameActionEvent &aEvent) override
 
virtual css::uno::Reference< css::document::XEmbeddedScripts > SAL_CALL getScriptContainer () override
 
virtual void SAL_CALL registerContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &Interceptor) override
 
virtual void SAL_CALL releaseContextMenuInterceptor (const css::uno::Reference< css::ui::XContextMenuInterceptor > &Interceptor) override
 
virtual void SAL_CALL registeredDatabaseLocation (const css::sdb::DatabaseRegistrationEvent &Event) override
 
virtual void SAL_CALL revokedDatabaseLocation (const css::sdb::DatabaseRegistrationEvent &Event) override
 
virtual void SAL_CALL changedDatabaseLocation (const css::sdb::DatabaseRegistrationEvent &Event) override
 
- Public Member Functions inherited from dbaui::SbaXDataBrowserController
 SbaXDataBrowserController (const css::uno::Reference< css::uno::XComponentContext > &_rM)
 
UnoDataBrowserViewgetBrowserView () const
 
virtual bool Construct (vcl::Window *pParent) override
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual void SAL_CALL disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL modified (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL elementInserted (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL elementRemoved (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL elementReplaced (const css::container::ContainerEvent &Event) override
 
virtual void SAL_CALL propertyChange (const css::beans::PropertyChangeEvent &evt) override
 
virtual void SAL_CALL setIdentifier (const OUString &Identifier) override
 
virtual OUString SAL_CALL getIdentifier () override
 
virtual void SAL_CALL focusGained (const css::awt::FocusEvent &e) override
 
virtual void SAL_CALL focusLost (const css::awt::FocusEvent &e) override
 
virtual sal_Bool SAL_CALL suspend (sal_Bool bSuspend) override
 
virtual void SAL_CALL disposing () override
 
virtual void SAL_CALL frameAction (const css::frame::FrameActionEvent &aEvent) override
 
virtual void SAL_CALL errorOccured (const css::sdb::SQLErrorEvent &aEvent) override
 
virtual sal_Bool SAL_CALL approveParameter (const css::form::DatabaseParameterEvent &aEvent) override
 
virtual sal_Bool SAL_CALL confirmDelete (const css::sdb::RowChangeEvent &aEvent) override
 
virtual void SAL_CALL loaded (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL unloading (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL unloaded (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL reloading (const css::lang::EventObject &aEvent) override
 
virtual void SAL_CALL reloaded (const css::lang::EventObject &aEvent) override
 
virtual sal_Bool SAL_CALL approveReset (const css::lang::EventObject &rEvent) override
 
virtual void SAL_CALL resetted (const css::lang::EventObject &rEvent) override
 
virtual void RowChanged () override
 
virtual void ColumnChanged () override
 
virtual void SelectionChanged () override
 
virtual void CellActivated () override
 
virtual void CellDeactivated () override
 
virtual void BeforeDrop () override
 
virtual void AfterDrop () override
 
virtual void RowChanged ()=0
 
virtual void ColumnChanged ()=0
 
virtual void SelectionChanged ()=0
 
virtual void CellActivated ()=0
 
virtual void CellDeactivated ()=0
 
virtual void BeforeDrop ()=0
 
virtual void AfterDrop ()=0
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE
 
virtual bool requestQuickHelp (const void *pUserData, OUString &rText) const =0
 requests a quick help text to display More...
 
virtual bool requestDrag (const weld::TreeIter &rEntry)=0
 handler for StartDrag requests More...
 
virtual sal_Int8 queryDrop (const AcceptDropEvent &_rEvt, const DataFlavorExVector &_rFlavors)=0
 check whether or not a drop request should be accepted More...
 
virtual sal_Int8 executeDrop (const ExecuteDropEvent &_rEvt)=0
 execute a drop request More...
 
virtual OUString getContextMenuResourceName () const =0
 returns the context menu resource name for the control More...
 
virtual IControllergetCommandController ()=0
 returns the controller which is responsible for providing states of certain features, and executing them. More...
 
virtual ::comphelper::OInterfaceContainerHelper2getContextMenuInterceptors ()=0
 returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception More...
 
virtual css::uno::Any getCurrentSelection (weld::TreeView &rControl) const =0
 returns the current selection in the given control More...
 
virtual vcl::WindowgetMenuParent () const =0
 
virtual void adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const =0
 adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent More...
 

Static Public Member Functions

static sal_Int32 getDatabaseObjectType (EntryType _eType)
 returns a DatabaseObject value corresponding to the given EntryType More...
 

Private Types

typedef std::map< sal_uInt16, ExternalFeatureExternalFeaturesMap
 

Private Member Functions

virtual OUString getPrivateTitle () const override
 
virtual bool InitializeForm (const css::uno::Reference< css::beans::XPropertySet > &i_formProperties) override
 
void InitializeGridModel (const css::uno::Reference< css::form::XFormComponent > &xGrid)
 
virtual bool preReloadForm () override
 
virtual void postReloadForm () override
 
virtual void addModelListeners (const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel) override
 
virtual void removeModelListeners (const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel) override
 
virtual void AddColumnListener (const css::uno::Reference< css::beans::XPropertySet > &xCol) override
 
virtual void RemoveColumnListener (const css::uno::Reference< css::beans::XPropertySet > &xCol) override
 
virtual void LoadFinished (bool _bWasSynch) override
 
virtual void criticalFail () override
 
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 bool requestQuickHelp (const void *pUserData, OUString &rText) const override
 requests a quick help text to display More...
 
virtual bool requestDrag (const weld::TreeIter &rEntry) override
 handler for StartDrag requests More...
 
virtual sal_Int8 queryDrop (const AcceptDropEvent &_rEvt, const DataFlavorExVector &_rFlavors) override
 check whether or not a drop request should be accepted More...
 
virtual sal_Int8 executeDrop (const ExecuteDropEvent &_rEvt) override
 execute a drop request More...
 
virtual OUString getContextMenuResourceName () const override
 returns the context menu resource name for the control More...
 
virtual IControllergetCommandController () override
 returns the controller which is responsible for providing states of certain features, and executing them. More...
 
virtual ::comphelper::OInterfaceContainerHelper2getContextMenuInterceptors () override
 returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception More...
 
virtual css::uno::Any getCurrentSelection (weld::TreeView &rControl) const override
 returns the current selection in the given control More...
 
virtual vcl::WindowgetMenuParent () const override
 
virtual void adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const override
 adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent More...
 
virtual void impl_initialize () override
 
virtual void RowChanged () override
 
virtual void ColumnChanged () override
 
virtual void SelectionChanged () override
 
bool haveExplorer () const
 
void hideExplorer ()
 
void showExplorer ()
 
void toggleExplorer ()
 
bool isSelected (const weld::TreeIter &rEntry) const
 
void select (const weld::TreeIter *pEntry, bool bSelect)
 
void selectPath (const weld::TreeIter *pEntry, bool bSelect=true)
 
virtual void loadMenu (const css::uno::Reference< css::frame::XFrame > &_xFrame) override
 
void implCheckExternalSlot (sal_uInt16 _nId)
 
void connectExternalDispatches ()
 
bool getExternalSlotState (sal_uInt16 _nId) const
 get the state of an external slot More...
 
void implAddDatasource (const OUString &_rDbName, OUString &_rDbImage, OUString &_rQueryName, OUString &_rQueryImage, OUString &_rTableName, OUString &_rTableImage, const SharedConnection &_rxConnection)
 add an entry (including the subentries for queries/tables) to the list model More...
 
void implAddDatasource (const OUString &_rDataSourceName, const SharedConnection &_rxConnection)
 
void impl_cleanupDataSourceEntry (std::u16string_view _rDataSourceName)
 removes (and cleans up) the entry for the given data source More...
 
void clearTreeModel ()
 clears the tree list box More...
 
void unloadAndCleanup (bool _bDisposeConnection=true)
 unloads the form, empties the grid model, cleans up anything related to the currently displayed object More...
 
void disposeConnection (const weld::TreeIter *xpDSEntry)
 
void impl_releaseConnection (SharedConnection &_rxConnection)
 flushes and disposes the given connection, and de-registers as listener More...
 
void closeConnection (const weld::TreeIter &rEntry, bool bDisposeConnection=true)
 close the connection (and collapse the list entries) of the given list entries More...
 
void populateTree (const css::uno::Reference< css::container::XNameAccess > &xNameAccess, const weld::TreeIter &rParent, EntryType eEntryType)
 
void initializeTreeModel ()
 
std::unique_ptr< weld::TreeItergetEntryFromContainer (const css::uno::Reference< css::container::XNameAccess > &rxNameAccess)
 search in the tree for query- or tablecontainer equal to this interface and return this container entry More...
 
bool ensureConnection (const weld::TreeIter *pDSEntry, void *pDSData, SharedConnection &rConnection)
 
bool ensureConnection (const weld::TreeIter *pAnyEntry, SharedConnection &rConnection)
 
bool getExistentConnectionFor (const weld::TreeIter *pDSEntry, SharedConnection &rConnection)
 
std::unique_ptr< ImageProvider > getImageProviderFor (const weld::TreeIter *pAnyEntry)
 returns an image provider which works with the connection belonging to the given entry More...
 
void implAdministrate (const weld::TreeIter &rApplyTo)
 
bool implCopyObject (ODataClipboard &rExchange, const weld::TreeIter &rApplyTo, sal_Int32 nCommandType)
 
EntryType getEntryType (const weld::TreeIter &rEntry) const
 
EntryType getChildType (const weld::TreeIter &rEntry) const
 
bool isContainer (const weld::TreeIter &rEntry) const
 
bool ensureEntryObject (const weld::TreeIter &rEntry)
 
OUString GetEntryText (const weld::TreeIter &rEntry) const
 
 DECL_LINK (OnSelectionChange, LinkParamNone *, void)
 
 DECL_LINK (OnExpandEntry, const weld::TreeIter &, bool)
 
 DECL_LINK (OnCopyEntry, LinkParamNone *, void)
 
int OnTreeEntryCompare (const weld::TreeIter &rLHS, const weld::TreeIter &rRHS)
 
 DECL_LINK (OnAsyncDrop, void *, void)
 
void implRemoveStatusListeners ()
 
bool implSelect (const svx::ODataAccessDescriptor &_rDescriptor, bool _bSelectDirect=false)
 
bool implSelect (const weld::TreeIter *pEntry)
 
bool implSelect (const OUString &_rDataSourceName, const OUString &_rCommand, const sal_Int32 _nCommandType, const bool _bEscapeProcessing, const SharedConnection &_rxConnection, bool _bSelectDirect)
 selects the entry given and loads the grid control with the object's data More...
 
std::unique_ptr< weld::TreeIterimplGetConnectionEntry (const weld::TreeIter &rEntry) const
 
std::unique_ptr< weld::TreeIterimplAppendEntry (const weld::TreeIter *pParent, const OUString &rName, const DBTreeListUserData *pUserData)
 inserts an entry into the tree More...
 
bool implLoadAnything (const OUString &_rDataSourceName, const OUString &_rCommand, const sal_Int32 _nCommandType, const bool _bEscapeProcessing, const SharedConnection &_rxConnection)
 loads the grid control with the data object specified (which may be a table, a query or a command) More...
 
std::unique_ptr< weld::TreeItergetObjectEntry (const svx::ODataAccessDescriptor &rDescriptor, std::unique_ptr< weld::TreeIter > *ppDataSourceEntry, std::unique_ptr< weld::TreeIter > *ppContainerEntry)
 retrieves the tree entry for the object described by <arg>_rDescriptor</arg> More...
 
std::unique_ptr< weld::TreeItergetObjectEntry (const OUString &rDataSource, const OUString &rCommand, sal_Int32 nCommandType, std::unique_ptr< weld::TreeIter > *ppDataSourceEntry, std::unique_ptr< weld::TreeIter > *ppContainerEntry, bool _bExpandAncestors=true, const SharedConnection &rxConnection=SharedConnection())
 retrieves the tree entry for the object described by data source name, command and command type More...
 
void checkDocumentDataSource ()
 checks if m_aDocumentDataSource describes a known object More...
 
void transferChangedControlProperty (const OUString &_rProperty, const css::uno::Any &_rNewValue)
 
bool impl_isDataSourceEntry (const weld::TreeIter *pEntry) const
 
OUString getDataSourceAccessor (const weld::TreeIter &rDataSourceEntry) const
 retrieves the data source URL/name for the given entry representing a data source More...
 
bool implGetQuerySignature (OUString &_rCommand, bool &_bEscapeProcessing)
 get the signature (command/escape processing) of the query the form is based on More...
 
bool isEntryCopyAllowed (const weld::TreeIter &rEntry) const
 
void copyEntry (const weld::TreeIter &rEntry)
 
bool isCurrentlyDisplayedChanged (std::u16string_view rName, const weld::TreeIter &rContainer)
 checks if the currently displayed entry changed More...
 
void initializePreviewMode ()
 called whenever the content of the browser is used for preview, as the very last action of the load process More...
 
void impl_sanitizeRowSetClauses_nothrow ()
 checks whether the Order/Filter clauses set at our row set are valid, removes them if not so More...
 

Static Private Member Functions

static bool isObject (EntryType _eType)
 
static bool isContainer (EntryType _eType)
 
static void extractDescriptorProps (const svx::ODataAccessDescriptor &_rDescriptor, OUString &_rDataSource, OUString &_rCommand, sal_Int32 &_rCommandType, bool &_rEscapeProcessing)
 
static void clearGridColumns (const css::uno::Reference< css::container::XNameContainer > &_xColContainer)
 

Private Attributes

css::uno::Reference< css::i18n::XCollator > m_xCollator
 
css::uno::Reference< css::frame::XFrame > m_xCurrentFrameParent
 
css::uno::Reference< css::awt::XWindow > m_xMainToolbar
 
ExternalFeaturesMap m_aExternalFeatures
 
svx::ODataAccessDescriptor m_aDocumentDataSource
 
::comphelper::OInterfaceContainerHelper2 m_aSelectionListeners
 
::comphelper::OInterfaceContainerHelper2 m_aContextMenuInterceptors
 
OTableCopyHelper::DropDescriptor m_aAsyncDrop
 
OTableCopyHelper m_aTableCopyHelper
 
OUString m_sQueryCommand
 
VclPtr< InterimDBTreeListBoxm_pTreeView
 
VclPtr< Splitterm_pSplitter
 
std::unique_ptr< weld::TreeIterm_xCurrentlyDisplayed
 
ImplSVEventm_nAsyncDrop
 
bool m_bQueryEscapeProcessing: 1
 
bool m_bShowMenu
 
bool m_bInSuspend
 
bool m_bEnableBrowser
 
::std::optional< bool > m_aDocScriptSupport
 

Additional Inherited Members

- Protected Member Functions inherited from dbaui::SbaXDataBrowserController
const css::uno::Reference< css::sdbc::XRowSet > & getRowSet () const
 
const css::uno::Reference< css::form::XLoadable > & getLoadable () const
 
const css::uno::Reference< css::form::XFormComponent > & getFormComponent () const
 
css::uno::Reference< css::awt::XControlModel > getControlModel () const
 
const css::uno::Reference< css::util::XNumberFormatter > & getNumberFormatter () const
 
bool isValid () const
 
bool isValidCursor () const
 
bool isLoaded () const
 
bool loadingCancelled () const
 
void onStartLoading (const css::uno::Reference< css::form::XLoadable > &_rxLoadable)
 
void setLoadingCancelled ()
 
virtual ~SbaXDataBrowserController () override
 
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 startFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame) override
 
virtual void stopFrameListening (const css::uno::Reference< css::frame::XFrame > &_rxFrame) override
 
virtual css::uno::Reference< css::sdbc::XRowSet > CreateForm ()
 
virtual bool InitializeForm (const css::uno::Reference< css::beans::XPropertySet > &i_formProperties)=0
 
css::uno::Reference< css::form::XFormComponent > CreateGridModel ()
 
void disposingFormModel (const css::lang::EventObject &Source)
 
void disposingColumnModel (const css::lang::EventObject &Source)
 
void addControlListeners (const css::uno::Reference< css::awt::XControl > &_xGridControl)
 
void removeControlListeners (const css::uno::Reference< css::awt::XControl > &_xGridControl)
 
virtual void addModelListeners (const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel)
 
virtual void removeModelListeners (const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel)
 
virtual void AddColumnListener (const css::uno::Reference< css::beans::XPropertySet > &xCol)
 
virtual void RemoveColumnListener (const css::uno::Reference< css::beans::XPropertySet > &xCol)
 
virtual bool LoadForm ()
 
virtual void LoadFinished (bool bWasSynch)
 
virtual void criticalFail ()
 
bool CommitCurrent ()
 
bool SaveModified (bool bAskFor=true)
 
css::uno::Reference< css::beans::XPropertySetgetBoundField () const
 
void enterFormAction ()
 
void leaveFormAction ()
 
void initFormatter ()
 
bool reloadForm (const css::uno::Reference< css::form::XLoadable > &_rxLoadable)
 loads or reloads the form More...
 
virtual bool preReloadForm ()
 
virtual void postReloadForm ()
 
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > createParser_nothrow ()
 
- Protected Member Functions inherited from dbaui::SbaGridListener
 ~SbaGridListener ()
 
- Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >
 ~ImplHelper5 () SAL_NOEXCEPT
 
- Protected Member Functions inherited from dbaui::IControlActionListener
 ~IControlActionListener ()
 
- Protected Member Functions inherited from dbaui::IContextMenuProvider
 ~IContextMenuProvider ()
 

Detailed Description

Definition at line 60 of file unodatbr.hxx.

Member Typedef Documentation

◆ ExternalFeaturesMap

Definition at line 81 of file unodatbr.hxx.

Member Enumeration Documentation

◆ EntryType

Enumerator
etDatasource 
etQueryContainer 
etTableContainer 
etQuery 
etTableOrView 
etUnknown 

Definition at line 114 of file unodatbr.hxx.

Constructor & Destructor Documentation

◆ SbaTableQueryBrowser()

dbaui::SbaTableQueryBrowser::SbaTableQueryBrowser ( const css::uno::Reference< css::uno::XComponentContext > &  _rM)

Definition at line 163 of file unodatbr.cxx.

References getMutex().

◆ ~SbaTableQueryBrowser()

dbaui::SbaTableQueryBrowser::~SbaTableQueryBrowser ( )
overridevirtual

Member Function Documentation

◆ AddColumnListener()

void dbaui::SbaTableQueryBrowser::AddColumnListener ( const css::uno::Reference< css::beans::XPropertySet > &  xCol)
overrideprivatevirtual

◆ addModelListeners()

void dbaui::SbaTableQueryBrowser::addModelListeners ( const css::uno::Reference< css::awt::XControlModel > &  _xGridControlModel)
overrideprivatevirtual

◆ addSelectionChangeListener()

void SAL_CALL dbaui::SbaTableQueryBrowser::addSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  xListener)
overridevirtual

◆ adjustMenuPosition()

void dbaui::SbaTableQueryBrowser::adjustMenuPosition ( const weld::TreeView rControl,
::Point rPos 
) const
overrideprivatevirtual

adjust rPos which is initially relative to rControl to be relative to the window of getMenuParent

Implements dbaui::IContextMenuProvider.

Definition at line 3555 of file unodatbr.cxx.

◆ attachFrame()

void dbaui::SbaTableQueryBrowser::attachFrame ( const css::uno::Reference< css::frame::XFrame > &  xFrame)
overridevirtual

◆ changedDatabaseLocation()

void SAL_CALL dbaui::SbaTableQueryBrowser::changedDatabaseLocation ( const css::sdb::DatabaseRegistrationEvent &  Event)
overridevirtual

Definition at line 3807 of file unodatbr.cxx.

References impl_cleanupDataSourceEntry(), and implAddDatasource().

◆ checkDocumentDataSource()

void dbaui::SbaTableQueryBrowser::checkDocumentDataSource ( )
private

◆ clearGridColumns()

void dbaui::SbaTableQueryBrowser::clearGridColumns ( const css::uno::Reference< css::container::XNameContainer > &  _xColContainer)
staticprivate

Definition at line 3621 of file unodatbr.cxx.

References aColNames, and xColumn.

Referenced by implLoadAnything(), InitializeGridModel(), and unloadAndCleanup().

◆ clearTreeModel()

void dbaui::SbaTableQueryBrowser::clearTreeModel ( )
private

◆ closeConnection()

void dbaui::SbaTableQueryBrowser::closeConnection ( const weld::TreeIter rEntry,
bool  bDisposeConnection = true 
)
private

◆ ColumnChanged()

void dbaui::SbaTableQueryBrowser::ColumnChanged ( )
overrideprivatevirtual

◆ connectExternalDispatches()

void dbaui::SbaTableQueryBrowser::connectExternalDispatches ( )
private

◆ Construct()

bool dbaui::SbaTableQueryBrowser::Construct ( vcl::Window pParent)
overridevirtual

◆ copyEntry()

void dbaui::SbaTableQueryBrowser::copyEntry ( const weld::TreeIter rEntry)
private

Definition at line 202 of file dsbrowserDnD.cxx.

References etQuery, eType, getEntryType(), getView(), implCopyObject(), dbaccess::QUERY, and dbaccess::TABLE.

Referenced by Execute().

◆ criticalFail()

void dbaui::SbaTableQueryBrowser::criticalFail ( )
overrideprivatevirtual

Reimplemented from dbaui::SbaXDataBrowserController.

Definition at line 1565 of file unodatbr.cxx.

References dbaui::SbaXDataBrowserController::criticalFail(), and unloadAndCleanup().

Referenced by implSelect().

◆ DECL_LINK() [1/4]

dbaui::SbaTableQueryBrowser::DECL_LINK ( OnAsyncDrop  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/4]

dbaui::SbaTableQueryBrowser::DECL_LINK ( OnCopyEntry  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [3/4]

dbaui::SbaTableQueryBrowser::DECL_LINK ( OnExpandEntry  ,
const weld::TreeIter ,
bool   
)
private

◆ DECL_LINK() [4/4]

dbaui::SbaTableQueryBrowser::DECL_LINK ( OnSelectionChange  ,
LinkParamNone ,
void   
)
private

◆ describeSupportedFeatures()

void dbaui::SbaTableQueryBrowser::describeSupportedFeatures ( )
overrideprivatevirtual

◆ disposeConnection()

void dbaui::SbaTableQueryBrowser::disposeConnection ( const weld::TreeIter xpDSEntry)
private

◆ disposing() [1/2]

void SAL_CALL dbaui::SbaTableQueryBrowser::disposing ( )
overridevirtual

◆ disposing() [2/2]

void SAL_CALL dbaui::SbaTableQueryBrowser::disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ elementInserted()

void SAL_CALL dbaui::SbaTableQueryBrowser::elementInserted ( const css::container::ContainerEvent &  Event)
overridevirtual

◆ elementRemoved()

void SAL_CALL dbaui::SbaTableQueryBrowser::elementRemoved ( const css::container::ContainerEvent &  Event)
overridevirtual

◆ elementReplaced()

void SAL_CALL dbaui::SbaTableQueryBrowser::elementReplaced ( const css::container::ContainerEvent &  Event)
overridevirtual

◆ ensureConnection() [1/2]

bool dbaui::SbaTableQueryBrowser::ensureConnection ( const weld::TreeIter pAnyEntry,
SharedConnection rConnection 
)
private

Definition at line 3303 of file unodatbr.cxx.

References ensureConnection(), weld::TreeView::get_id(), and m_pTreeView.

◆ ensureConnection() [2/2]

bool dbaui::SbaTableQueryBrowser::ensureConnection ( const weld::TreeIter pDSEntry,
void *  pDSData,
SharedConnection rConnection 
)
private

◆ ensureEntryObject()

bool dbaui::SbaTableQueryBrowser::ensureEntryObject ( const weld::TreeIter rEntry)
private

◆ Execute()

void dbaui::SbaTableQueryBrowser::Execute ( sal_uInt16  nId,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overrideprivatevirtual

◆ executeDrop()

sal_Int8 dbaui::SbaTableQueryBrowser::executeDrop ( const ExecuteDropEvent _rEvt)
overrideprivatevirtual

◆ extractDescriptorProps()

void dbaui::SbaTableQueryBrowser::extractDescriptorProps ( const svx::ODataAccessDescriptor _rDescriptor,
OUString &  _rDataSource,
OUString &  _rCommand,
sal_Int32 &  _rCommandType,
bool &  _rEscapeProcessing 
)
staticprivate

◆ frameAction()

void dbaui::SbaTableQueryBrowser::frameAction ( const css::frame::FrameActionEvent &  aEvent)
overridevirtual

◆ getChildType()

SbaTableQueryBrowser::EntryType dbaui::SbaTableQueryBrowser::getChildType ( const weld::TreeIter rEntry) const
private

◆ getCommandController()

IController & dbaui::SbaTableQueryBrowser::getCommandController ( )
overrideprivatevirtual

returns the controller which is responsible for providing states of certain features, and executing them.

Implements dbaui::IContextMenuProvider.

Definition at line 3501 of file unodatbr.cxx.

◆ getContextMenuInterceptors()

comphelper::OInterfaceContainerHelper2 * dbaui::SbaTableQueryBrowser::getContextMenuInterceptors ( )
overrideprivatevirtual

returns the container of registered context menu interceptors, or NULL if the implementation does not support context menu interception

Implements dbaui::IContextMenuProvider.

Definition at line 3506 of file unodatbr.cxx.

References m_aContextMenuInterceptors.

◆ getContextMenuResourceName()

OUString dbaui::SbaTableQueryBrowser::getContextMenuResourceName ( ) const
overrideprivatevirtual

returns the context menu resource name for the control

Supposed to be a valid name from uiconfig/<module>/popupmenu folder.

Implements dbaui::IContextMenuProvider.

Definition at line 3496 of file unodatbr.cxx.

◆ getCurrentSelection()

Any dbaui::SbaTableQueryBrowser::getCurrentSelection ( weld::TreeView rControl) const
overrideprivatevirtual

returns the current selection in the given control

This selection is used for filling a ContextMenuExecuteEvent event for the given control.

Implements dbaui::IContextMenuProvider.

Definition at line 3511 of file unodatbr.cxx.

References Any, weld::TreeView::get_id(), weld::TreeView::get_selected(), weld::TreeView::get_text(), getDataSourceAccessor(), m_pTreeView, weld::TreeView::make_iterator(), pData, dbaccess::QUERY, SAL_WARN, and dbaccess::TABLE.

◆ getDatabaseObjectType()

sal_Int32 dbaui::SbaTableQueryBrowser::getDatabaseObjectType ( EntryType  _eType)
static

returns a DatabaseObject value corresponding to the given EntryType

Parameters
_eTypethe entry type. Must not be etUnknown.

Definition at line 135 of file dsEntriesNoExp.cxx.

References etQuery, etQueryContainer, etTableContainer, etTableOrView, dbaccess::QUERY, and dbaccess::TABLE.

Referenced by implAppendEntry().

◆ getDataSourceAccessor()

OUString dbaui::SbaTableQueryBrowser::getDataSourceAccessor ( const weld::TreeIter rDataSourceEntry) const
private

retrieves the data source URL/name for the given entry representing a data source

Definition at line 1055 of file unodatbr.cxx.

References etDatasource, weld::TreeView::get_id(), GetEntryText(), m_pTreeView, and pData.

Referenced by ensureConnection(), ensureEntryObject(), getCurrentSelection(), implAdministrate(), implCopyObject(), and implSelect().

◆ getEntryFromContainer()

std::unique_ptr< weld::TreeIter > dbaui::SbaTableQueryBrowser::getEntryFromContainer ( const css::uno::Reference< css::container::XNameAccess > &  rxNameAccess)
private

search in the tree for query- or tablecontainer equal to this interface and return this container entry

Definition at line 2714 of file unodatbr.cxx.

References weld::TreeView::get_id(), weld::TreeView::get_iter_first(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), m_pTreeView, weld::TreeView::make_iterator(), and dbaui::DBTreeListUserData::xContainer.

Referenced by elementInserted(), elementRemoved(), and elementReplaced().

◆ GetEntryText()

OUString dbaui::SbaTableQueryBrowser::GetEntryText ( const weld::TreeIter rEntry) const
private

Definition at line 51 of file dsEntriesNoExp.cxx.

References m_pTreeView.

Referenced by getDataSourceAccessor(), getPrivateTitle(), and implCopyObject().

◆ getEntryType()

SbaTableQueryBrowser::EntryType dbaui::SbaTableQueryBrowser::getEntryType ( const weld::TreeIter rEntry) const
private

◆ getExistentConnectionFor()

bool dbaui::SbaTableQueryBrowser::getExistentConnectionFor ( const weld::TreeIter pDSEntry,
SharedConnection rConnection 
)
private

◆ getExternalSlotState()

bool dbaui::SbaTableQueryBrowser::getExternalSlotState ( sal_uInt16  _nId) const
private

get the state of an external slot

The slot is available if an external dispatcher is responsible for it, and if this dispatcher told us the slot is available.

Definition at line 1591 of file unodatbr.cxx.

References m_aExternalFeatures.

Referenced by GetState().

◆ getImageProviderFor()

std::unique_ptr< ImageProvider > dbaui::SbaTableQueryBrowser::getImageProviderFor ( const weld::TreeIter pAnyEntry)
private

returns an image provider which works with the connection belonging to the given entry

Definition at line 3315 of file unodatbr.cxx.

References getExistentConnectionFor(), and utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::reset().

Referenced by implAppendEntry().

◆ getImplementationId()

Sequence< sal_Int8 > SAL_CALL dbaui::SbaTableQueryBrowser::getImplementationId ( )
overridevirtual

◆ getImplementationName()

OUString SAL_CALL dbaui::SbaTableQueryBrowser::getImplementationName ( )
overridevirtual

Definition at line 153 of file unodatbr.cxx.

◆ getMenuParent()

vcl::Window * dbaui::SbaTableQueryBrowser::getMenuParent ( ) const
overrideprivatevirtual

Implements dbaui::IContextMenuProvider.

Definition at line 3550 of file unodatbr.cxx.

References m_pTreeView.

◆ getObjectEntry() [1/2]

std::unique_ptr< weld::TreeIter > dbaui::SbaTableQueryBrowser::getObjectEntry ( const OUString &  rDataSource,
const OUString &  rCommand,
sal_Int32  nCommandType,
std::unique_ptr< weld::TreeIter > *  ppDataSourceEntry,
std::unique_ptr< weld::TreeIter > *  ppContainerEntry,
bool  _bExpandAncestors = true,
const SharedConnection rxConnection = SharedConnection() 
)
private

retrieves the tree entry for the object described by data source name, command and command type

Parameters
rDataSourcethe data source name
rCommandthe command
nCommandTypethe command type
rDescriptorthe object descriptor
ppDataSourceEntryIf not <NULL>, the data source tree entry will be returned here
ppContainerEntryIf not <NULL>, the object container tree entry will be returned here
bExpandAncestorsIf <TRUE>, all ancestor on the way to the entry will be expanded

Definition at line 1064 of file unodatbr.cxx.

References weld::TreeView::copy_iterator(), ensureEntryObject(), etQuery, etQueryContainer, dbaui::DBTreeListUserData::eType, Exception, weld::TreeView::expand_row(), weld::TreeView::get_id(), implAddDatasource(), implAppendEntry(), weld::TreeView::iter_children(), weld::TreeView::iter_next_sibling(), m_pTreeView, weld::TreeView::make_iterator(), weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), nIndex, dbaccess::QUERY, SAL_WARN, sDisplayName, dbaccess::TABLE, and dbaui::DBTreeListUserData::xContainer.

◆ getObjectEntry() [2/2]

std::unique_ptr< weld::TreeIter > dbaui::SbaTableQueryBrowser::getObjectEntry ( const svx::ODataAccessDescriptor rDescriptor,
std::unique_ptr< weld::TreeIter > *  ppDataSourceEntry,
std::unique_ptr< weld::TreeIter > *  ppContainerEntry 
)
private

retrieves the tree entry for the object described by <arg>_rDescriptor</arg>

Parameters
rDescriptorthe object descriptor
ppDataSourceEntryIf not <NULL>, the data source tree entry will be returned here
ppContainerEntryIf not <NULL>, the object container tree entry will be returned here

Definition at line 1208 of file unodatbr.cxx.

References extractDescriptorProps(), and getObjectEntry().

Referenced by checkDocumentDataSource(), getObjectEntry(), implSelect(), and preReloadForm().

◆ getPrivateTitle()

OUString dbaui::SbaTableQueryBrowser::getPrivateTitle ( ) const
overrideprivatevirtual

◆ getScriptContainer()

Reference< XEmbeddedScripts > SAL_CALL dbaui::SbaTableQueryBrowser::getScriptContainer ( )
overridevirtual

◆ getSelection()

Any SAL_CALL dbaui::SbaTableQueryBrowser::getSelection ( )
overridevirtual

◆ GetState()

FeatureState dbaui::SbaTableQueryBrowser::GetState ( sal_uInt16  nId) const
overrideprivatevirtual

Reimplemented from dbaui::SbaXDataBrowserController.

Definition at line 1600 of file unodatbr.cxx.

References aName, dbaui::FeatureState::bChecked, dbaui::FeatureState::bEnabled, DbGridControl::canCopyCellText(), utl::OConfigurationTreeRoot::createWithComponentContext(), DBA_RES, DBG_UNHANDLED_EXCEPTION, etUnknown, eType, Exception, weld::TreeView::get_cursor(), weld::TreeView::get_id(), dbaui::SbaXDataBrowserController::getBrowserView(), getEntryType(), getExternalSlotState(), utl::OConfigurationNode::getNodeValue(), dbaui::SbaXDataBrowserController::getRowSet(), dbaui::SbaXDataBrowserController::GetState(), dbaui::UnoDataBrowserView::getVclControl(), haveExplorer(), ID_BROWSER_CLOSE, ID_BROWSER_COLATTRSET, ID_BROWSER_COLWIDTH, ID_BROWSER_COPY, ID_BROWSER_DOCUMENT_DATASOURCE, ID_BROWSER_EXPLORER, ID_BROWSER_FORMLETTER, ID_BROWSER_INSERTCOLUMNS, ID_BROWSER_INSERTCONTENT, ID_BROWSER_REFRESH, ID_BROWSER_REMOVEFILTER, ID_BROWSER_ROWHEIGHT, ID_BROWSER_TABLEATTR, ID_BROWSER_TITLE, ID_TREE_ADMINISTRATE, ID_TREE_CLOSE_CONN, ID_TREE_EDIT_DATABASE, utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::is(), isEntryCopyAllowed(), dbaui::SbaXDataBrowserController::isLoaded(), dbaui::SbaXDataBrowserController::isValid(), dbaui::SbaXDataBrowserController::isValidCursor(), m_bEnableBrowser, m_pTreeView, weld::TreeView::make_iterator(), nId, nType, PROPERTY_COMMAND(), PROPERTY_COMMAND_TYPE(), PROPERTY_ESCAPE_PROCESSING(), dbaccess::QUERY, SAL_WARN, dbaui::FeatureState::sTitle, dbaccess::TABLE, and dbaui::DBTreeListUserData::xConnection.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > SAL_CALL dbaui::SbaTableQueryBrowser::getSupportedServiceNames ( )
overridevirtual

Definition at line 158 of file unodatbr.cxx.

◆ getTypes()

Sequence< Type > SAL_CALL dbaui::SbaTableQueryBrowser::getTypes ( )
overridevirtual

◆ haveExplorer()

bool dbaui::SbaTableQueryBrowser::haveExplorer ( ) const
private

Definition at line 3269 of file unodatbr.cxx.

References m_pTreeView.

Referenced by GetState(), hideExplorer(), showExplorer(), and toggleExplorer().

◆ hideExplorer()

void dbaui::SbaTableQueryBrowser::hideExplorer ( )
private

◆ impl_cleanupDataSourceEntry()

void dbaui::SbaTableQueryBrowser::impl_cleanupDataSourceEntry ( std::u16string_view  _rDataSourceName)
private

◆ impl_initialize()

void dbaui::SbaTableQueryBrowser::impl_initialize ( )
overrideprivatevirtual

◆ impl_isDataSourceEntry()

bool dbaui::SbaTableQueryBrowser::impl_isDataSourceEntry ( const weld::TreeIter pEntry) const
private

Definition at line 3337 of file unodatbr.cxx.

References weld::TreeView::iter_compare(), and m_pTreeView.

Referenced by closeConnection(), disposeConnection(), and ensureConnection().

◆ impl_releaseConnection()

void dbaui::SbaTableQueryBrowser::impl_releaseConnection ( SharedConnection _rxConnection)
private

flushes and disposes the given connection, and de-registers as listener

Definition at line 2936 of file unodatbr.cxx.

References utl::SharedUNOComponent< class INTERFACE, class COMPONENT >::clear(), DBG_UNHANDLED_EXCEPTION, and Exception.

Referenced by clearTreeModel(), and disposeConnection().

◆ impl_sanitizeRowSetClauses_nothrow()

void dbaui::SbaTableQueryBrowser::impl_sanitizeRowSetClauses_nothrow ( )
private

checks whether the Order/Filter clauses set at our row set are valid, removes them if not so

Definition at line 355 of file unodatbr.cxx.

References Any, dbaui::SbaXDataBrowserController::createParser_nothrow(), DBG_UNHANDLED_EXCEPTION, Exception, dbaui::SbaXDataBrowserController::getRowSet(), PROPERTY_ESCAPE_PROCESSING(), PROPERTY_NAME(), PROPERTY_ORDER(), and PROPERTY_TABLENAME().

Referenced by InitializeForm().

◆ implAddDatasource() [1/2]

void dbaui::SbaTableQueryBrowser::implAddDatasource ( const OUString &  _rDataSourceName,
const SharedConnection _rxConnection 
)
private

Definition at line 2002 of file unodatbr.cxx.

References a, d, and implAddDatasource().

◆ implAddDatasource() [2/2]

void dbaui::SbaTableQueryBrowser::implAddDatasource ( const OUString &  _rDbName,
OUString &  _rDbImage,
OUString &  _rQueryName,
OUString &  _rQueryImage,
OUString &  _rTableName,
OUString &  _rTableImage,
const SharedConnection _rxConnection 
)
private

add an entry (including the subentries for queries/tables) to the list model

The given names and images may be empty, in this case they're filled with the correct values. This way they may be reused for the next call, which saves some resource manager calls.

Definition at line 2008 of file unodatbr.cxx.

References DBA_RES, etDatasource, etQueryContainer, etTableContainer, dbaui::DBTreeListUserData::eType, weld::TreeView::insert(), m_pTreeView, weld::TreeView::make_iterator(), dbaccess::QUERY, dbaui::DBTreeListUserData::sAccessor, weld::TreeView::set_image(), weld::TreeView::set_text_emphasis(), sId, dbaccess::TABLE, weld::toId(), and dbaui::DBTreeListUserData::xConnection.

Referenced by changedDatabaseLocation(), getObjectEntry(), impl_initialize(), implAddDatasource(), initializeTreeModel(), and registeredDatabaseLocation().

◆ implAdministrate()

void dbaui::SbaTableQueryBrowser::implAdministrate ( const weld::TreeIter rApplyTo)
private

◆ implAppendEntry()

std::unique_ptr< weld::TreeIter > dbaui::SbaTableQueryBrowser::implAppendEntry ( const weld::TreeIter pParent,
const OUString &  rName,
const DBTreeListUserData pUserData 
)
private

◆ implCheckExternalSlot()

void dbaui::SbaTableQueryBrowser::implCheckExternalSlot ( sal_uInt16  _nId)
private

◆ implCopyObject()

bool dbaui::SbaTableQueryBrowser::implCopyObject ( ODataClipboard rExchange,
const weld::TreeIter rApplyTo,
sal_Int32  nCommandType 
)
private

◆ implGetConnectionEntry()

std::unique_ptr< weld::TreeIter > dbaui::SbaTableQueryBrowser::implGetConnectionEntry ( const weld::TreeIter rEntry) const
private

◆ implGetQuerySignature()

bool dbaui::SbaTableQueryBrowser::implGetQuerySignature ( OUString &  _rCommand,
bool &  _bEscapeProcessing 
)
private

get the signature (command/escape processing) of the query the form is based on

If the for is not based on a query or not even loaded, nothing happens and <FALSE> is returned.

Definition at line 3559 of file unodatbr.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, dbaui::SbaXDataBrowserController::getRowSet(), PROPERTY_COMMAND(), PROPERTY_ESCAPE_PROCESSING(), and dbaccess::QUERY.

Referenced by Execute(), and LoadFinished().

◆ implLoadAnything()

bool dbaui::SbaTableQueryBrowser::implLoadAnything ( const OUString &  _rDataSourceName,
const OUString &  _rCommand,
const sal_Int32  _nCommandType,
const bool  _bEscapeProcessing,
const SharedConnection _rxConnection 
)
private

◆ implRemoveStatusListeners()

void dbaui::SbaTableQueryBrowser::implRemoveStatusListeners ( )
private

Definition at line 1367 of file unodatbr.cxx.

References Exception, m_aExternalFeatures, and SAL_WARN.

Referenced by attachFrame(), disposing(), and frameAction().

◆ implSelect() [1/3]

bool dbaui::SbaTableQueryBrowser::implSelect ( const OUString &  _rDataSourceName,
const OUString &  _rCommand,
const sal_Int32  _nCommandType,
const bool  _bEscapeProcessing,
const SharedConnection _rxConnection,
bool  _bSelectDirect 
)
private

selects the entry given and loads the grid control with the object's data

Definition at line 2426 of file unodatbr.cxx.

References getObjectEntry(), implLoadAnything(), implSelect(), m_pTreeView, m_xCurrentlyDisplayed, weld::TreeView::scroll_to_row(), weld::TreeView::select(), selectPath(), and weld::TreeView::set_cursor().

◆ implSelect() [2/3]

bool dbaui::SbaTableQueryBrowser::implSelect ( const svx::ODataAccessDescriptor _rDescriptor,
bool  _bSelectDirect = false 
)
private

Definition at line 2330 of file unodatbr.cxx.

References extractDescriptorProps(), and implSelect().

Referenced by Execute(), impl_initialize(), and implSelect().

◆ implSelect() [3/3]

bool dbaui::SbaTableQueryBrowser::implSelect ( const weld::TreeIter pEntry)
private

◆ InitializeForm()

bool dbaui::SbaTableQueryBrowser::InitializeForm ( const css::uno::Reference< css::beans::XPropertySet > &  i_formProperties)
overrideprivatevirtual

◆ InitializeGridModel()

void dbaui::SbaTableQueryBrowser::InitializeGridModel ( const css::uno::Reference< css::form::XFormComponent > &  xGrid)
private

◆ initializePreviewMode()

void dbaui::SbaTableQueryBrowser::initializePreviewMode ( )
private

called whenever the content of the browser is used for preview, as the very last action of the load process

Definition at line 516 of file unodatbr.cxx.

References Any, DbGridControl::ForceHideScrollbars(), dbaui::SbaXDataBrowserController::getBrowserView(), dbaui::SbaXDataBrowserController::getRowSet(), and dbaui::UnoDataBrowserView::getVclControl().

Referenced by implLoadAnything().

◆ initializeTreeModel()

void dbaui::SbaTableQueryBrowser::initializeTreeModel ( )
private

Definition at line 2072 of file unodatbr.cxx.

References implAddDatasource().

Referenced by impl_initialize().

◆ isContainer() [1/2]

bool dbaui::SbaTableQueryBrowser::isContainer ( const weld::TreeIter rEntry) const
inlineprivate

Definition at line 322 of file unodatbr.hxx.

References getEntryType(), and isContainer().

Referenced by isContainer().

◆ isContainer() [2/2]

static bool dbaui::SbaTableQueryBrowser::isContainer ( EntryType  _eType)
inlinestaticprivate

Definition at line 321 of file unodatbr.hxx.

References etQueryContainer, and etTableContainer.

Referenced by executeDrop(), getChildType(), and OnTreeEntryCompare().

◆ isCurrentlyDisplayedChanged()

bool dbaui::SbaTableQueryBrowser::isCurrentlyDisplayedChanged ( std::u16string_view  rName,
const weld::TreeIter rContainer 
)
private

checks if the currently displayed entry changed

Parameters
rNameName of the changed entry
rContainerThe container of the displayed entry
Returns
<TRUE> if it is the currently displayed otherwise <FALSE>

Definition at line 2790 of file unodatbr.cxx.

References weld::TreeView::get_text(), getChildType(), getEntryType(), weld::TreeView::iter_compare(), weld::TreeView::iter_parent(), m_pTreeView, m_xCurrentlyDisplayed, and weld::TreeView::make_iterator().

Referenced by elementRemoved(), and elementReplaced().

◆ isEntryCopyAllowed()

bool dbaui::SbaTableQueryBrowser::isEntryCopyAllowed ( const weld::TreeIter rEntry) const
private

Definition at line 196 of file dsbrowserDnD.cxx.

References etQuery, etTableOrView, eType, and getEntryType().

Referenced by GetState().

◆ isObject()

static bool dbaui::SbaTableQueryBrowser::isObject ( EntryType  _eType)
inlinestaticprivate

Definition at line 320 of file unodatbr.hxx.

References etQuery, and etTableOrView.

Referenced by requestDrag().

◆ isSelected()

bool dbaui::SbaTableQueryBrowser::isSelected ( const weld::TreeIter rEntry) const
private

Definition at line 89 of file dsEntriesNoExp.cxx.

References weld::TreeView::get_text_emphasis(), and m_pTreeView.

Referenced by impl_cleanupDataSourceEntry().

◆ LoadFinished()

void dbaui::SbaTableQueryBrowser::LoadFinished ( bool  _bWasSynch)
overrideprivatevirtual

◆ loadMenu()

void dbaui::SbaTableQueryBrowser::loadMenu ( const css::uno::Reference< css::frame::XFrame > &  _xFrame)
overrideprivatevirtual

Definition at line 3634 of file unodatbr.cxx.

References dbaui::OGenericUnoController::loadMenu(), and m_bShowMenu.

◆ OnTreeEntryCompare()

int dbaui::SbaTableQueryBrowser::OnTreeEntryCompare ( const weld::TreeIter rLHS,
const weld::TreeIter rRHS 
)
private

◆ populateTree()

void dbaui::SbaTableQueryBrowser::populateTree ( const css::uno::Reference< css::container::XNameAccess > &  xNameAccess,
const weld::TreeIter rParent,
EntryType  eEntryType 
)
private

◆ postReloadForm()

void dbaui::SbaTableQueryBrowser::postReloadForm ( )
overrideprivatevirtual

◆ preReloadForm()

bool dbaui::SbaTableQueryBrowser::preReloadForm ( )
overrideprivatevirtual

◆ propertyChange()

void dbaui::SbaTableQueryBrowser::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
overridevirtual

◆ queryDrop()

sal_Int8 dbaui::SbaTableQueryBrowser::queryDrop ( const AcceptDropEvent _rEvt,
const DataFlavorExVector _rFlavors 
)
overrideprivatevirtual

◆ queryInterface()

Any SAL_CALL dbaui::SbaTableQueryBrowser::queryInterface ( const css::uno::Type &  _rType)
overridevirtual

◆ registerContextMenuInterceptor()

void SAL_CALL dbaui::SbaTableQueryBrowser::registerContextMenuInterceptor ( const css::uno::Reference< css::ui::XContextMenuInterceptor > &  Interceptor)
overridevirtual

◆ registeredDatabaseLocation()

void SAL_CALL dbaui::SbaTableQueryBrowser::registeredDatabaseLocation ( const css::sdb::DatabaseRegistrationEvent &  Event)
overridevirtual

Definition at line 3749 of file unodatbr.cxx.

References implAddDatasource().

◆ releaseContextMenuInterceptor()

void SAL_CALL dbaui::SbaTableQueryBrowser::releaseContextMenuInterceptor ( const css::uno::Reference< css::ui::XContextMenuInterceptor > &  Interceptor)
overridevirtual

◆ RemoveColumnListener()

void dbaui::SbaTableQueryBrowser::RemoveColumnListener ( const css::uno::Reference< css::beans::XPropertySet > &  xCol)
overrideprivatevirtual

◆ removeModelListeners()

void dbaui::SbaTableQueryBrowser::removeModelListeners ( const css::uno::Reference< css::awt::XControlModel > &  _xGridControlModel)
overrideprivatevirtual

◆ removeSelectionChangeListener()

void SAL_CALL dbaui::SbaTableQueryBrowser::removeSelectionChangeListener ( const css::uno::Reference< css::view::XSelectionChangeListener > &  xListener)
overridevirtual

◆ requestDrag()

bool dbaui::SbaTableQueryBrowser::requestDrag ( const weld::TreeIter rEntry)
overrideprivatevirtual

handler for StartDrag requests

Returns
<TRUE> if a drag operation was started

Implements dbaui::IControlActionListener.

Definition at line 177 of file dsbrowserDnD.cxx.

References etTableOrView, getEntryType(), implCopyObject(), isObject(), m_pTreeView, dbaccess::QUERY, and dbaccess::TABLE.

◆ requestQuickHelp()

bool dbaui::SbaTableQueryBrowser::requestQuickHelp ( const void *  pUserData,
OUString &  rText 
) const
overrideprivatevirtual

requests a quick help text to display

Returns
<FALSE> if the default quick help text should be used

Implements dbaui::IControlActionListener.

Definition at line 3485 of file unodatbr.cxx.

References etDatasource, svt::OFileNotation::get(), svt::OFileNotation::N_SYSTEM, and pData.

◆ revokedDatabaseLocation()

void SAL_CALL dbaui::SbaTableQueryBrowser::revokedDatabaseLocation ( const css::sdb::DatabaseRegistrationEvent &  Event)
overridevirtual

Definition at line 3797 of file unodatbr.cxx.

References checkDocumentDataSource(), and impl_cleanupDataSourceEntry().

◆ RowChanged()

void dbaui::SbaTableQueryBrowser::RowChanged ( )
overrideprivatevirtual

◆ select() [1/2]

virtual sal_Bool SAL_CALL dbaui::SbaTableQueryBrowser::select ( const css::uno::Any &  aSelection)
overridevirtual

Referenced by selectPath().

◆ select() [2/2]

void dbaui::SbaTableQueryBrowser::select ( const weld::TreeIter pEntry,
bool  bSelect 
)
private

Definition at line 63 of file dsEntriesNoExp.cxx.

References m_pTreeView, and weld::TreeView::set_text_emphasis().

◆ SelectionChanged()

void dbaui::SbaTableQueryBrowser::SelectionChanged ( )
overrideprivatevirtual

◆ selectPath()

void dbaui::SbaTableQueryBrowser::selectPath ( const weld::TreeIter pEntry,
bool  bSelect = true 
)
private

◆ showExplorer()

void dbaui::SbaTableQueryBrowser::showExplorer ( )
private

◆ statusChanged()

void SAL_CALL dbaui::SbaTableQueryBrowser::statusChanged ( const css::frame::FeatureStateEvent &  Event)
overridevirtual

◆ suspend()

sal_Bool dbaui::SbaTableQueryBrowser::suspend ( sal_Bool  bSuspend)
overridevirtual

◆ toggleExplorer()

void dbaui::SbaTableQueryBrowser::toggleExplorer ( )
inlineprivate

Definition at line 236 of file unodatbr.hxx.

References haveExplorer(), hideExplorer(), and showExplorer().

Referenced by Execute().

◆ transferChangedControlProperty()

void dbaui::SbaTableQueryBrowser::transferChangedControlProperty ( const OUString &  _rProperty,
const css::uno::Any &  _rNewValue 
)
private

Definition at line 776 of file unodatbr.cxx.

References weld::TreeView::get_id(), m_pTreeView, m_xCurrentlyDisplayed, and pData.

Referenced by propertyChange().

◆ unloadAndCleanup()

void dbaui::SbaTableQueryBrowser::unloadAndCleanup ( bool  _bDisposeConnection = true)
private

unloads the form, empties the grid model, cleans up anything related to the currently displayed object

Parameters
_bDisposeConnection<TRUE> if the connection should be disposed
_bFlushData<TRUE> if the currently displayed object (if any) should be flushed

Definition at line 3025 of file unodatbr.cxx.

References clearGridColumns(), disposeConnection(), Exception, dbaui::SbaXDataBrowserController::getControlModel(), dbaui::SbaXDataBrowserController::getLoadable(), m_pTreeView, m_xCurrentlyDisplayed, SAL_WARN, selectPath(), and showError().

Referenced by closeConnection(), criticalFail(), elementRemoved(), elementReplaced(), Execute(), impl_cleanupDataSourceEntry(), and implSelect().

Member Data Documentation

◆ m_aAsyncDrop

OTableCopyHelper::DropDescriptor dbaui::SbaTableQueryBrowser::m_aAsyncDrop
private

Definition at line 90 of file unodatbr.hxx.

Referenced by executeDrop().

◆ m_aContextMenuInterceptors

::comphelper::OInterfaceContainerHelper2 dbaui::SbaTableQueryBrowser::m_aContextMenuInterceptors
private

◆ m_aDocScriptSupport

::std::optional< bool > dbaui::SbaTableQueryBrowser::m_aDocScriptSupport
private

Definition at line 106 of file unodatbr.hxx.

Referenced by getTypes(), impl_initialize(), and queryInterface().

◆ m_aDocumentDataSource

svx::ODataAccessDescriptor dbaui::SbaTableQueryBrowser::m_aDocumentDataSource
private

Definition at line 84 of file unodatbr.hxx.

Referenced by checkDocumentDataSource(), Execute(), and statusChanged().

◆ m_aExternalFeatures

ExternalFeaturesMap dbaui::SbaTableQueryBrowser::m_aExternalFeatures
private

◆ m_aSelectionListeners

::comphelper::OInterfaceContainerHelper2 dbaui::SbaTableQueryBrowser::m_aSelectionListeners
private

◆ m_aTableCopyHelper

OTableCopyHelper dbaui::SbaTableQueryBrowser::m_aTableCopyHelper
private

Definition at line 91 of file unodatbr.hxx.

Referenced by executeDrop().

◆ m_bEnableBrowser

bool dbaui::SbaTableQueryBrowser::m_bEnableBrowser
private

Definition at line 104 of file unodatbr.hxx.

Referenced by GetState(), and impl_initialize().

◆ m_bInSuspend

bool dbaui::SbaTableQueryBrowser::m_bInSuspend
private

Definition at line 103 of file unodatbr.hxx.

Referenced by suspend().

◆ m_bQueryEscapeProcessing

bool dbaui::SbaTableQueryBrowser::m_bQueryEscapeProcessing
private

Definition at line 101 of file unodatbr.hxx.

Referenced by Execute(), and LoadFinished().

◆ m_bShowMenu

bool dbaui::SbaTableQueryBrowser::m_bShowMenu
private

◆ m_nAsyncDrop

ImplSVEvent* dbaui::SbaTableQueryBrowser::m_nAsyncDrop
private

Definition at line 99 of file unodatbr.hxx.

Referenced by executeDrop().

◆ m_pSplitter

VclPtr<Splitter> dbaui::SbaTableQueryBrowser::m_pSplitter
private

Definition at line 97 of file unodatbr.hxx.

Referenced by Construct(), hideExplorer(), showExplorer(), and ~SbaTableQueryBrowser().

◆ m_pTreeView

VclPtr<InterimDBTreeListBox> dbaui::SbaTableQueryBrowser::m_pTreeView
private

◆ m_sQueryCommand

OUString dbaui::SbaTableQueryBrowser::m_sQueryCommand
private

Definition at line 93 of file unodatbr.hxx.

Referenced by Execute(), and LoadFinished().

◆ m_xCollator

css::uno::Reference< css::i18n::XCollator > dbaui::SbaTableQueryBrowser::m_xCollator
private

Definition at line 66 of file unodatbr.hxx.

Referenced by Construct(), and OnTreeEntryCompare().

◆ m_xCurrentFrameParent

css::uno::Reference< css::frame::XFrame > dbaui::SbaTableQueryBrowser::m_xCurrentFrameParent
private

Definition at line 67 of file unodatbr.hxx.

Referenced by attachFrame(), disposing(), and frameAction().

◆ m_xCurrentlyDisplayed

std::unique_ptr<weld::TreeIter> dbaui::SbaTableQueryBrowser::m_xCurrentlyDisplayed
private

◆ m_xMainToolbar

css::uno::Reference< css::awt::XWindow > dbaui::SbaTableQueryBrowser::m_xMainToolbar
private

Definition at line 68 of file unodatbr.hxx.

Referenced by attachFrame(), and implCheckExternalSlot().


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