namespace dbaui
{ class OApplicationView; class OApplicationDetailView; class OApplicationSwapWindow; class OTitleWindow; class OApplicationController;
class OAppBorderWindow final : public InterimItemWindow
{
std::unique_ptr<weld::Container> m_xPanelParent;
std::unique_ptr<weld::Container> m_xDetailViewParent;
std::unique_ptr<OTitleWindow> m_xPanel;
std::unique_ptr<OApplicationDetailView> m_xDetailView;
VclPtr<OApplicationView> m_xView;
/// get the left panel
OApplicationSwapWindow* getPanel() const { return m_pWin->getPanel(); } /// get the detail page
OApplicationDetailView* getDetailView() const { return m_pWin->getDetailView(); }
/** returns if an entry is a leaf @paramrTreeView TheTreeViewrEntrybelongsto @paramrEntry Theentrytocheck @return <TRUE/>iftheentryisaleaf,otherwise<FALSE/>
*/ bool isLeaf(const weld::TreeView& rTreeView, const weld::TreeIter& rEntry) const;
/** returns if one of the selected entries is a leaf @return <TRUE/>iftheentryisaleaf,otherwise<FALSE/>
*/ bool isALeafSelected() const;
/** select all entries in the detail page
*/ void selectAll();
/// returns <TRUE/> if it sorts ascending bool isSortUp() const;
/// sort the entries in the detail page down void sortDown();
/// sort the entries in the detail page up void sortUp();
/// returns <TRUE/> when a detail page was filled bool isFilled() const;
/// return the element of currently select entry
ElementType getElementType() const;
/// returns the count of entries
sal_Int32 getElementCount() const;
/// returns the count of selected entries
sal_Int32 getSelectionCount() const;
/** clears the detail page and the selection on the left side. Thetaskwindowwillalsobecleared.
*/ void clearPages();
/** returns the element names which are selected @param_rNames Thelistwillbefilled.
*/ void getSelectionElementNames( std::vector< OUString>& _rNames ) const;
/** describes the current selection for the given control
*/ void describeCurrentSelectionForControl( const weld::TreeView& rControl,
css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
);
/** describes the current selection for the given ElementType
*/ void describeCurrentSelectionForType( const ElementType _eType,
css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
);
/** get the menu parent window for the given control
*/
vcl::Window* getMenuParent() const;
/** adjust rPos relative to rControl to instead relative to getMenuParent */ void adjustMenuPosition(const weld::TreeView& rControl, ::Point& rPos) const;
/** select all names on the currently selected container. Non existence names where ignored. * *\param_aNamestheelementnames
*/ void selectElements(const css::uno::Sequence< OUString>& _aNames);
/** adds a new object to the detail page. @param_eType Thetypewheretheentryshouldbeappended. @param_rName Thenameoftheobjecttobeinserted @param_rObject Theobjecttoadd. @param_rxConn Ifweinsertatable,theconnectionmustbeset.
*/
std::unique_ptr<weld::TreeIter> elementAdded(ElementType eType, const OUString& rName, const css::uno::Any& rObject);
/** replaces an objects name with a new one @param_eType Thetypewheretheentryshouldbeappended. @param_rOldName Theoldnameoftheobjecttobereplaced @param_rNewName Thenewnameoftheobjecttobereplaced @param_rxConn Ifweinsertatable,theconnectionmustbeset. @param_xObject Theobjectwhichwasreplaced
*/ void elementReplaced(ElementType eType
,const OUString& _rOldName
,const OUString& _rNewName );
/** removes an element from the detail page. @param_eType Thetypewheretheentryshouldbeappended. @param_rName Thenameoftheelementtoberemoved. @param_rxConn Ifweremoveatable,theconnectionmustbeset.
*/ void elementRemoved(ElementType _eType
,const OUString& _rName );
/** changes the container which should be displayed. The select handler will also be called. @param_eType Whichcontainertoshow.
*/ void selectContainer(ElementType _eType);
/// returns the preview mode
PreviewMode getPreviewMode() const;
/// <TRUE/> if the preview is enabled bool isPreviewEnabled() const;
/** switches to the given preview mode @param_eMode themodetosetforthepreview
*/ void switchPreview(PreviewMode _eMode);
/** shows the Preview of the content when it is enabled. @param_xContent Thecontentwhichmustsupportthe"preview"command.
*/ void showPreview(const css::uno::Reference< css::ucb::XContent >& _xContent);
/** shows the Preview of a table or query @param_sDataSourceName thenameofthedatasource @param_xConnection theconnectionwhichwillbeshared @param_sName thenameoftableorquery @param_bTable <TRUE/>ifitisatable,otherwise<FALSE/> @returnvoid
*/ void showPreview( const OUString& _sDataSourceName, const css::uno::Reference< css::sdbc::XConnection>& _xConnection, const OUString& _sName, bool _bTable);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.