namespace dbaui
{ class OAppBorderWindow; class OApplicationDetailView; class OAppDetailPageHelper; class TreeListBox;
struct TaskEntry
{
OUString sUNOCommand;
TranslateId pHelpID;
OUString sTitle; bool bHideWhenDisabled; // TODO: we should be consistent in the task pane and the menus/toolbars: // If an entry is disabled in the latter, it should also be disabled in the former. // If an entry is *hidden* in the former, it should also be hidden in the latter.
struct TaskPaneData
{ /// the tasks available in the pane
TaskEntryList aTasks; /// the resource ID for the title of the pane
TranslateId pTitleId;
};
class OTasksWindow final : public OChildWindow
{
std::unique_ptr<weld::TreeView> m_xTreeView;
std::unique_ptr<weld::Label> m_xDescription;
std::unique_ptr<weld::TextView> m_xHelpText;
OApplicationDetailView* m_pDetailView;
/** creates the page for the specific type. @param_eType Thetypewhichshouldbecreated.E_TABLEisn'tallowed. @param_xContainer Thecontaineroftheelementstobeinserted.
*/ void createPage(ElementType _eType,const css::uno::Reference< css::container::XNameAccess >& _xContainer);
/// returns the count of entries
sal_Int32 getElementCount() const;
/// returns the count of selected entries
sal_Int32 getSelectionCount();
/** 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; 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 );
/// 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_sName thenameoftableorquery @param_bTable <TRUE/>ifitisatable,otherwise<FALSE/> @returnvoid
*/ void showPreview( const OUString& _sDataSourceName, 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.