LibreOffice Module dbaccess (master) 1
|
#include <AppDetailPageHelper.hxx>
Public Member Functions | |
OAppDetailPageHelper (weld::Container *pParent, OAppBorderWindow &rBorderWin, PreviewMode ePreviewMode) | |
virtual | ~OAppDetailPageHelper () override |
virtual void | GrabFocus () override |
virtual bool | HasChildPathFocus () const override |
void | createTablesPage (const css::uno::Reference< css::sdbc::XConnection > &_xConnection) |
creates the tables page More... | |
void | createPage (ElementType _eType, const css::uno::Reference< css::container::XNameAccess > &_xContainer) |
creates the page for the specific type. More... | |
DBTreeViewBase * | getCurrentView () const |
returns the current visible tree list box More... | |
void | selectAll () |
select all entries in the visible control More... | |
bool | isSortUp () const |
returns <TRUE> if it sorts ascending More... | |
void | sortDown () |
sorts all entries ascending More... | |
void | sortUp () |
sorts all entries descending More... | |
void | getSelectionElementNames (std::vector< OUString > &_rNames) const |
returns the element names which are selected More... | |
void | describeCurrentSelectionForControl (const weld::TreeView &rControl, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects) |
describes the current selection for the given control More... | |
void | describeCurrentSelectionForType (const ElementType _eType, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects) |
describes the current selection for the given ElementType More... | |
vcl::Window * | getMenuParent () const |
get the menu parent window for the given control More... | |
void | adjustMenuPosition (const weld::TreeView &rControl, ::Point &rPos) const |
void | selectElements (const css::uno::Sequence< OUString > &_aNames) |
select all names on the currently selected container. More... | |
OUString | getQualifiedName (const weld::TreeIter *_pEntry) const |
return the qualified name. More... | |
ElementType | getElementType () const |
return the element of currently select entry More... | |
sal_Int32 | getSelectionCount () |
returns the count of selected entries More... | |
sal_Int32 | getElementCount () const |
returns the count of entries More... | |
bool | isALeafSelected () const |
returns if one of the selected entries is a leaf More... | |
std::unique_ptr< weld::TreeIter > | getEntry (const Point &rPosPixel) const |
void | clearPages () |
clears the detail pages More... | |
bool | isFilled () const |
returns <TRUE> when a detail page was filled More... | |
std::unique_ptr< weld::TreeIter > | elementAdded (ElementType eType, const OUString &rName, const css::uno::Any &rObject) |
adds a new object to the detail page. More... | |
void | elementReplaced (ElementType eType, const OUString &_rOldName, const OUString &_rNewName) |
replaces an objects name with a new one More... | |
void | elementRemoved (ElementType _eType, const OUString &_rName) |
removes an element from the detail page. More... | |
PreviewMode | getPreviewMode () const |
returns the preview mode More... | |
bool | isPreviewEnabled () const |
<TRUE> if the preview is enabled More... | |
void | switchPreview (PreviewMode _eMode, bool _bForce=false) |
switches to the given preview mode More... | |
void | showPreview (const css::uno::Reference< css::ucb::XContent > &_xContent) |
shows the Preview of the content when it is enabled. More... | |
void | showPreview (const OUString &_sDataSourceName, const OUString &_sName, bool _bTable) |
shows the Preview of a table or query More... | |
Public Member Functions inherited from dbaui::OChildWindow | |
virtual | ~OChildWindow () |
virtual void | GrabFocus ()=0 |
virtual bool | HasChildPathFocus () const =0 |
void | Enable (bool bEnable) |
void | SetHelpId (const OUString &rHelpId) |
void | Show () |
Static Public Member Functions | |
static bool | isLeaf (const weld::TreeView &rTreeView, const weld::TreeIter &rEntry) |
returns if an entry is a leaf More... | |
Private Member Functions | |
int | getVisibleControlIndex () const |
returns the index of the visible control More... | |
void | sort (int nPos, bool bAscending) |
sorts the entries in the tree list box. More... | |
void | fillNames (const css::uno::Reference< css::container::XNameAccess > &_xContainer, const ElementType _eType, const OUString &rImageId, const weld::TreeIter *_pParent) |
fills the names in the listbox More... | |
void | setDetailPage (DBTreeViewBase &rTreeView) |
sets the detail page More... | |
void | setupTree (DBTreeViewBase &rTreeView) |
sets all HandleCallbacks More... | |
std::unique_ptr< DBTreeViewBase > | createSimpleTree (const OUString &rHelpId, ElementType eType) |
creates the tree and sets all HandleCallbacks More... | |
DECL_LINK (OnEntryDoubleClick, weld::TreeView &, bool) | |
DECL_LINK (OnEntrySelChange, LinkParamNone *, void) | |
DECL_LINK (OnCopyEntry, LinkParamNone *, void) | |
DECL_LINK (OnPasteEntry, LinkParamNone *, void) | |
DECL_LINK (OnDeleteEntry, LinkParamNone *, void) | |
DECL_LINK (OnDropdownClickHdl, weld::Toggleable &, void) | |
DECL_LINK (MenuSelectHdl, const OUString &, void) | |
OAppBorderWindow & | getBorderWin () const |
Static Private Member Functions | |
static OUString | getElementIcons (ElementType _eType) |
retrieves the resource ids of the images representing elements of the given type More... | |
Private Attributes | |
std::unique_ptr< DBTreeViewBase > | m_aLists [size_t(E_ELEMENT_TYPE_COUNT)] |
OAppBorderWindow & | m_rBorderWin |
std::unique_ptr< weld::Container > | m_xBox |
std::unique_ptr< weld::Widget > | m_xFL |
std::unique_ptr< weld::MenuButton > | m_xMBPreview |
std::unique_ptr< OPreviewWindow > | m_xPreview |
std::unique_ptr< weld::CustomWeld > | m_xPreviewWin |
std::unique_ptr< ODocumentInfoPreview > | m_xDocumentInfo |
std::unique_ptr< weld::CustomWeld > | m_xDocumentInfoWin |
std::unique_ptr< weld::Container > | m_xTablePreview |
PreviewMode | m_ePreviewMode |
css::uno::Reference< css::frame::XFrame2 > | m_xFrame |
css::uno::Reference< css::awt::XWindow > | m_xWindow |
Additional Inherited Members | |
Protected Member Functions inherited from dbaui::OChildWindow | |
OChildWindow (weld::Container *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
Protected Attributes inherited from dbaui::OChildWindow | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
Definition at line 75 of file AppDetailPageHelper.hxx.
OAppDetailPageHelper::OAppDetailPageHelper | ( | weld::Container * | pParent, |
OAppBorderWindow & | rBorderWin, | ||
PreviewMode | ePreviewMode | ||
) |
Definition at line 122 of file AppDetailPageHelper.cxx.
References aProperties, vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetLabelForCommand(), HID_APP_VIEW_PREVIEW_1, HID_APP_VIEW_PREVIEW_2, HID_APP_VIEW_PREVIEW_3, HID_APP_VIEW_PREVIEW_CB, LINK, dbaui::OChildWindow::m_xContainer, m_xDocumentInfo, m_xMBPreview, m_xPreview, m_xTablePreview, and m_xWindow.
|
overridevirtual |
Definition at line 153 of file AppDetailPageHelper.cxx.
References Exception, m_aLists, m_xBox, m_xDocumentInfo, m_xDocumentInfoWin, m_xFL, m_xFrame, m_xMBPreview, m_xPreview, m_xPreviewWin, m_xTablePreview, m_xWindow, and TOOLS_WARN_EXCEPTION.
void OAppDetailPageHelper::adjustMenuPosition | ( | const weld::TreeView & | rControl, |
::Point & | rPos | ||
) | const |
Definition at line 367 of file AppDetailPageHelper.cxx.
References Point::AdjustX(), Point::AdjustY(), weld::Widget::get_extents_relative_to(), dbaui::OAppBorderWindow::getTopLevel(), m_rBorderWin, x, and y.
Referenced by dbaui::OApplicationDetailView::adjustMenuPosition().
void OAppDetailPageHelper::clearPages | ( | ) |
clears the detail pages
Definition at line 704 of file AppDetailPageHelper.cxx.
References m_aLists, and showPreview().
Referenced by dbaui::OApplicationDetailView::clearPages().
void OAppDetailPageHelper::createPage | ( | ElementType | _eType, |
const css::uno::Reference< css::container::XNameAccess > & | _xContainer | ||
) |
creates the page for the specific type.
_eType | The type which should be created. E_TABLE isn't allowed. |
_xContainer | The container of the elements to be inserted. |
Definition at line 552 of file AppDetailPageHelper.cxx.
References createSimpleTree(), dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, fillNames(), getElementIcons(), HID_APP_FORM_TREE, HID_APP_QUERY_TREE, HID_APP_REPORT_TREE, m_aLists, weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), weld::TreeView::n_children(), setDetailPage(), and weld::TreeView::unselect_all().
Referenced by dbaui::OApplicationDetailView::impl_createPage().
|
private |
creates the tree and sets all HandleCallbacks
nHelpId | The help id of the control |
eType | The element type of the control |
Definition at line 673 of file AppDetailPageHelper.cxx.
References dbaui::E_QUERY, dbaui::E_TABLE, eType, m_xBox, and setupTree().
Referenced by createPage().
void OAppDetailPageHelper::createTablesPage | ( | const css::uno::Reference< css::sdbc::XConnection > & | _xConnection | ) |
creates the tables page
_xConnection | The connection to get the table names |
Definition at line 511 of file AppDetailPageHelper.cxx.
References dbaui::E_TABLE, weld::TreeView::expand_row(), weld::TreeView::get_iter_first(), HID_APP_TABLE_TREE, m_aLists, m_xBox, weld::TreeView::make_iterator(), weld::TreeView::n_children(), setDetailPage(), setupTree(), and weld::TreeView::unselect_all().
Referenced by dbaui::OApplicationDetailView::impl_createPage().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
void OAppDetailPageHelper::describeCurrentSelectionForControl | ( | const weld::TreeView & | rControl, |
css::uno::Sequence< css::sdb::application::NamedDatabaseObject > & | _out_rSelectedObjects | ||
) |
describes the current selection for the given control
Definition at line 290 of file AppDetailPageHelper.cxx.
References describeCurrentSelectionForType(), dbaui::E_ELEMENT_TYPE_COUNT, i, and m_aLists.
Referenced by dbaui::OApplicationDetailView::describeCurrentSelectionForControl().
void OAppDetailPageHelper::describeCurrentSelectionForType | ( | const ElementType | _eType, |
css::uno::Sequence< css::sdb::application::NamedDatabaseObject > & | _out_rSelectedObjects | ||
) |
describes the current selection for the given ElementType
Definition at line 303 of file AppDetailPageHelper.cxx.
References comphelper::containerToSequence(), dbaui::OTableTreeListBox::describeObject(), dbaui::E_ELEMENT_TYPE_COUNT, dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, get(), weld::TreeView::get_text(), dbaui::DBTreeViewBase::getListBox(), dbaui::DBTreeViewBase::GetWidget(), isLeaf(), weld::TreeView::iter_parent(), m_aLists, weld::TreeView::make_iterator(), dbaccess::QUERY, dbaccess::REPORT, weld::TreeView::selected_foreach(), and sName.
Referenced by describeCurrentSelectionForControl(), and dbaui::OApplicationDetailView::describeCurrentSelectionForType().
std::unique_ptr< weld::TreeIter > OAppDetailPageHelper::elementAdded | ( | ElementType | eType, |
const OUString & | rName, | ||
const css::uno::Any & | rObject | ||
) |
adds a new object to the detail page.
_eType | The type where the entry should be appended. |
_rName | The name of the object to be inserted |
_rObject | The object to add. |
_rxConn | If we insert a table, the connection must be set. |
Definition at line 761 of file AppDetailPageHelper.cxx.
References dbaui::E_QUERY, dbaui::E_TABLE, fillNames(), weld::TreeView::get_iter_first(), getElementIcons(), dbaui::DBTreeViewBase::getListBox(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::insert(), m_aLists, weld::TreeView::make_iterator(), weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), weld::TreeView::set_image(), weld::TreeView::set_text(), weld::TreeView::set_text_emphasis(), sId, and sName.
Referenced by dbaui::OApplicationDetailView::elementAdded().
void OAppDetailPageHelper::elementRemoved | ( | ElementType | _eType, |
const OUString & | _rName | ||
) |
removes an element from the detail page.
_eType | The type where the entry should be appended. |
_rName | The name of the element to be removed. |
_rxConn | If we remove a table, the connection must be set. |
Definition at line 815 of file AppDetailPageHelper.cxx.
References dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, weld::TreeView::get_iter_first(), getCurrentView(), dbaui::DBTreeViewBase::getListBox(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::make_iterator(), weld::TreeView::n_children(), weld::TreeView::remove(), and showPreview().
Referenced by dbaui::OApplicationDetailView::elementRemoved().
void OAppDetailPageHelper::elementReplaced | ( | ElementType | eType, |
const OUString & | _rOldName, | ||
const OUString & | _rNewName | ||
) |
replaces an objects name with a new one
_eType | The type where the entry should be appended. |
_rOldName | The old name of the object to be replaced |
_rNewName | The new name of the object to be replaced |
_rxConn | If we insert a table, the connection must be set. |
Definition at line 722 of file AppDetailPageHelper.cxx.
References dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaui::E_TABLE, eType, weld::TreeView::get_iter_first(), getCurrentView(), dbaui::DBTreeViewBase::getListBox(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::make_iterator(), weld::TreeView::make_sorted(), weld::TreeView::make_unsorted(), and weld::TreeView::set_text().
Referenced by dbaui::OApplicationDetailView::elementReplaced().
|
private |
fills the names in the listbox
_xContainer | This can either be the queries, forms or report names. |
_eType | the type of elements which are being filled |
_nImageId | the resource id of the image to use for non-container entries |
_pParent | The parent of the entries to be inserted. |
Definition at line 628 of file AppDetailPageHelper.cxx.
References aSeq, dbaui::OApplicationController::containerFound(), dbaui::E_ELEMENT_TYPE_COUNT, dbaui::E_TABLE, fillNames(), dbaui::OApplicationView::getAppController(), getBorderWin(), dbaui::OAppBorderWindow::getView(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::insert(), m_aLists, weld::TreeView::make_iterator(), weld::TreeView::set_image(), weld::TreeView::set_text(), weld::TreeView::set_text_emphasis(), and sId.
Referenced by createPage(), elementAdded(), and fillNames().
|
inlineprivate |
Definition at line 159 of file AppDetailPageHelper.hxx.
References m_rBorderWin.
Referenced by fillNames(), setupTree(), showPreview(), and switchPreview().
|
inline |
returns the current visible tree list box
Definition at line 184 of file AppDetailPageHelper.hxx.
References dbaui::E_NONE, eType, get(), getElementType(), and m_aLists.
Referenced by elementRemoved(), elementReplaced(), dbaui::OApplicationDetailView::getTreeWindow(), setDetailPage(), and switchPreview().
sal_Int32 OAppDetailPageHelper::getElementCount | ( | ) | const |
returns the count of entries
Definition at line 457 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), m_aLists, weld::TreeView::n_children(), nCount, and nPos.
Referenced by dbaui::OApplicationDetailView::getElementCount().
|
staticprivate |
retrieves the resource ids of the images representing elements of the given type
Definition at line 536 of file AppDetailPageHelper.cxx.
References dbaui::E_FORM, dbaui::E_QUERY, dbaui::E_REPORT, dbaccess::QUERY, and dbaccess::REPORT.
Referenced by createPage(), and elementAdded().
ElementType OAppDetailPageHelper::getElementType | ( | ) | const |
return the element of currently select entry
Definition at line 438 of file AppDetailPageHelper.cxx.
References getVisibleControlIndex(), and nPos.
Referenced by getCurrentView(), dbaui::OApplicationDetailView::getElementType(), getQualifiedName(), and getSelectionElementNames().
std::unique_ptr< weld::TreeIter > OAppDetailPageHelper::getEntry | ( | const Point & | rPosPixel | ) | const |
Definition at line 496 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, weld::TreeView::get_dest_row_at_pos(), getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), m_aLists, weld::TreeView::make_iterator(), and nPos.
Referenced by dbaui::OApplicationDetailView::getEntry().
vcl::Window * OAppDetailPageHelper::getMenuParent | ( | ) | const |
get the menu parent window for the given control
Definition at line 362 of file AppDetailPageHelper.cxx.
References m_rBorderWin.
Referenced by dbaui::OApplicationDetailView::getMenuParent().
|
inline |
returns the preview mode
Definition at line 315 of file AppDetailPageHelper.hxx.
References m_ePreviewMode.
Referenced by dbaui::OApplicationDetailView::getPreviewMode().
OUString OAppDetailPageHelper::getQualifiedName | ( | const weld::TreeIter * | _pEntry | ) | const |
return the qualified name.
_pEntry | The entry of a table, or query, form, report to get the qualified name. If the entry is <NULL>, the first selected is chosen. |
Definition at line 397 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, dbaui::E_TABLE, weld::TreeView::get_selected(), weld::TreeView::get_text(), getElementType(), dbaui::OTableTreeListBox::getQualifiedTableName(), getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::iter_parent(), m_aLists, weld::TreeView::make_iterator(), nPos, and sComposedName.
Referenced by dbaui::OApplicationDetailView::getQualifiedName(), and getSelectionElementNames().
sal_Int32 OAppDetailPageHelper::getSelectionCount | ( | ) |
returns the count of selected entries
Definition at line 444 of file AppDetailPageHelper.cxx.
References weld::TreeView::count_selected_rows(), dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), m_aLists, nCount, and nPos.
Referenced by dbaui::OApplicationDetailView::getSelectionCount().
void OAppDetailPageHelper::getSelectionElementNames | ( | std::vector< OUString > & | _rNames | ) | const |
returns the element names which are selected
_rNames | The list will be filled. |
Definition at line 255 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, dbaui::E_TABLE, eType, weld::TreeView::get_text(), getElementType(), getQualifiedName(), getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), weld::TreeView::iter_has_child(), weld::TreeView::iter_parent(), m_aLists, weld::TreeView::make_iterator(), weld::TreeView::n_children(), nCount, nPos, weld::TreeView::selected_foreach(), and sName.
Referenced by dbaui::OApplicationDetailView::getSelectionElementNames().
|
private |
returns the index of the visible control
Definition at line 187 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, i, and m_aLists.
Referenced by getElementCount(), getElementType(), getEntry(), getQualifiedName(), getSelectionCount(), getSelectionElementNames(), GrabFocus(), HasChildPathFocus(), isALeafSelected(), isSortUp(), selectAll(), selectElements(), sortDown(), and sortUp().
|
overridevirtual |
Implements dbaui::OChildWindow.
Definition at line 207 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), m_aLists, m_xMBPreview, and nPos.
|
overridevirtual |
Implements dbaui::OChildWindow.
Definition at line 216 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), m_aLists, m_xMBPreview, and nPos.
bool OAppDetailPageHelper::isALeafSelected | ( | ) | const |
returns if one of the selected entries is a leaf
Definition at line 480 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), isLeaf(), m_aLists, nPos, and weld::TreeView::selected_foreach().
Referenced by dbaui::OApplicationDetailView::isALeafSelected().
bool OAppDetailPageHelper::isFilled | ( | ) | const |
returns <TRUE> when a detail page was filled
Definition at line 714 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, i, and m_aLists.
Referenced by dbaui::OApplicationDetailView::isFilled().
|
static |
returns if an entry is a leaf
rTreeView | The TreeView rEntry belongs to |
rEntry | The entry to check |
Definition at line 470 of file AppDetailPageHelper.cxx.
References weld::TreeView::get_id().
Referenced by describeCurrentSelectionForType(), isALeafSelected(), and dbaui::OApplicationDetailView::isLeaf().
bool OAppDetailPageHelper::isPreviewEnabled | ( | ) | const |
<TRUE> if the preview is enabled
Definition at line 876 of file AppDetailPageHelper.cxx.
References m_ePreviewMode, and dbaui::NONE.
Referenced by dbaui::OApplicationDetailView::isPreviewEnabled(), showPreview(), and switchPreview().
bool OAppDetailPageHelper::isSortUp | ( | ) | const |
returns <TRUE> if it sorts ascending
Definition at line 230 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), m_aLists, and nPos.
Referenced by dbaui::OApplicationDetailView::isSortUp().
void OAppDetailPageHelper::selectAll | ( | ) |
select all entries in the visible control
Definition at line 198 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), m_aLists, and nPos.
Referenced by dbaui::OApplicationDetailView::selectAll().
void OAppDetailPageHelper::selectElements | ( | const css::uno::Sequence< OUString > & | _aNames | ) |
select all names on the currently selected container.
Non existence names where ignored.
_aNames | the element names |
Definition at line 377 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, dbaui::TreeListBox::GetEntryPosByName(), dbaui::DBTreeViewBase::getListBox(), getVisibleControlIndex(), dbaui::DBTreeViewBase::GetWidget(), m_aLists, nPos, weld::TreeView::select(), and weld::TreeView::unselect_all().
Referenced by dbaui::OApplicationDetailView::selectElements().
|
private |
sets the detail page
rTreeView | The control which should be visible. |
Definition at line 593 of file AppDetailPageHelper.cxx.
References getCurrentView(), dbaui::DBTreeViewBase::GetWidget(), weld::Widget::grab_focus(), weld::Widget::has_focus(), dbaui::DBTreeViewBase::hide(), m_ePreviewMode, m_xFL, m_xMBPreview, dbaui::DBTreeViewBase::show(), showPreview(), and switchPreview().
Referenced by createPage(), and createTablesPage().
|
private |
sets all HandleCallbacks
rTreeView | The newly created DBTreeViewBase |
Definition at line 682 of file AppDetailPageHelper.cxx.
References weld::TreeView::connect_row_activated(), getBorderWin(), vcl::Window::GetFrameWeld(), dbaui::DBTreeViewBase::getListBox(), getView(), dbaui::DBTreeViewBase::GetWidget(), LINK, m_rBorderWin, weld::TreeView::make_sorted(), weld::TreeView::set_selection_mode(), weld::Widget::set_size_request(), dbaui::TreeListBox::setContextMenuProvider(), dbaui::TreeListBox::setControlActionListener(), dbaui::TreeListBox::setCopyHandler(), dbaui::TreeListBox::setDeleteHandler(), dbaui::TreeListBox::setPasteHandler(), and dbaui::TreeListBox::SetSelChangeHdl().
Referenced by createSimpleTree(), and createTablesPage().
void dbaui::OAppDetailPageHelper::showPreview | ( | const css::uno::Reference< css::ucb::XContent > & | _xContent | ) |
shows the Preview of the content when it is enabled.
_xContent | The content which must support the "preview" command. |
Referenced by clearPages(), elementRemoved(), setDetailPage(), showPreview(), and dbaui::OApplicationDetailView::showPreview().
void OAppDetailPageHelper::showPreview | ( | const OUString & | _sDataSourceName, |
const OUString & | _sName, | ||
bool | _bTable | ||
) |
shows the Preview of a table or query
_sDataSourceName | the name of the data source |
_sName | the name of table or query |
_bTable | <TRUE> if it is a table, otherwise <FALSE> |
Definition at line 1000 of file AppDetailPageHelper.cxx.
References Any, Exception, getBorderWin(), vcl::Window::GetFrameWeld(), getView(), isPreviewEnabled(), m_rBorderWin, m_xDocumentInfo, m_xFrame, m_xPreview, m_xTablePreview, m_xWindow, PROPERTY_SHOWMENU(), comphelper::NamedValueCollection::put(), and showPreview().
|
private |
sorts the entries in the tree list box.
nPos | Which list should be sorted. |
bAscending | If sort should be Ascending of Descending |
Definition at line 224 of file AppDetailPageHelper.cxx.
References m_aLists, and nPos.
Referenced by sortDown(), and sortUp().
void OAppDetailPageHelper::sortDown | ( | ) |
sorts all entries ascending
Definition at line 241 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), nPos, and sort().
Referenced by dbaui::OApplicationDetailView::sortDown().
void OAppDetailPageHelper::sortUp | ( | ) |
sorts all entries descending
Definition at line 248 of file AppDetailPageHelper.cxx.
References dbaui::E_ELEMENT_TYPE_COUNT, getVisibleControlIndex(), nPos, and sort().
Referenced by dbaui::OApplicationDetailView::sortUp().
void OAppDetailPageHelper::switchPreview | ( | PreviewMode | _eMode, |
bool | _bForce = false |
||
) |
switches to the given preview mode
_eMode | the mode to set for the preview |
_bForce | Force the preview to be reset |
Definition at line 889 of file AppDetailPageHelper.cxx.
References aCommand, aProperties, dbaui::Document, dbaui::DocumentInfo, weld::TreeView::get_selected(), dbaui::OApplicationView::getAppController(), getBorderWin(), vcl::CommandInfoProvider::GetCommandProperties(), getCurrentView(), vcl::CommandInfoProvider::GetLabelForCommand(), dbaui::OAppBorderWindow::getView(), getView(), dbaui::DBTreeViewBase::GetWidget(), isPreviewEnabled(), m_ePreviewMode, m_xDocumentInfo, m_xMBPreview, m_xPreview, m_xTablePreview, dbaui::NONE, dbaui::OApplicationController::onSelectionChanged(), and dbaui::OApplicationController::previewChanged().
Referenced by setDetailPage(), and dbaui::OApplicationDetailView::switchPreview().
|
private |
Definition at line 77 of file AppDetailPageHelper.hxx.
Referenced by clearPages(), createPage(), createTablesPage(), describeCurrentSelectionForControl(), describeCurrentSelectionForType(), elementAdded(), fillNames(), getCurrentView(), getElementCount(), getEntry(), getQualifiedName(), getSelectionCount(), getSelectionElementNames(), getVisibleControlIndex(), GrabFocus(), HasChildPathFocus(), isALeafSelected(), isFilled(), isSortUp(), selectAll(), selectElements(), sort(), and ~OAppDetailPageHelper().
|
private |
Definition at line 91 of file AppDetailPageHelper.hxx.
Referenced by getPreviewMode(), isPreviewEnabled(), setDetailPage(), and switchPreview().
|
private |
Definition at line 78 of file AppDetailPageHelper.hxx.
Referenced by adjustMenuPosition(), getBorderWin(), getMenuParent(), setupTree(), and showPreview().
|
private |
Definition at line 79 of file AppDetailPageHelper.hxx.
Referenced by createSimpleTree(), createTablesPage(), and ~OAppDetailPageHelper().
|
private |
Definition at line 86 of file AppDetailPageHelper.hxx.
Referenced by OAppDetailPageHelper(), showPreview(), switchPreview(), and ~OAppDetailPageHelper().
|
private |
Definition at line 87 of file AppDetailPageHelper.hxx.
Referenced by ~OAppDetailPageHelper().
|
private |
Definition at line 80 of file AppDetailPageHelper.hxx.
Referenced by setDetailPage(), and ~OAppDetailPageHelper().
|
private |
Definition at line 93 of file AppDetailPageHelper.hxx.
Referenced by showPreview(), and ~OAppDetailPageHelper().
|
private |
Definition at line 81 of file AppDetailPageHelper.hxx.
Referenced by GrabFocus(), HasChildPathFocus(), OAppDetailPageHelper(), setDetailPage(), switchPreview(), and ~OAppDetailPageHelper().
|
private |
Definition at line 83 of file AppDetailPageHelper.hxx.
Referenced by OAppDetailPageHelper(), showPreview(), switchPreview(), and ~OAppDetailPageHelper().
|
private |
Definition at line 84 of file AppDetailPageHelper.hxx.
Referenced by ~OAppDetailPageHelper().
|
private |
Definition at line 89 of file AppDetailPageHelper.hxx.
Referenced by OAppDetailPageHelper(), showPreview(), switchPreview(), and ~OAppDetailPageHelper().
|
private |
Definition at line 95 of file AppDetailPageHelper.hxx.
Referenced by OAppDetailPageHelper(), showPreview(), and ~OAppDetailPageHelper().