21#include <com/sun/star/container/XNameAccess.hpp>
22#include <com/sun/star/sdbc/XConnection.hpp>
23#include <com/sun/star/ucb/XContent.hpp>
24#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp>
34 class OAppBorderWindow;
35 class OApplicationDetailView;
36 class OAppDetailPageHelper;
120 void createTablesPage(
const css::uno::Reference< css::sdbc::XConnection>& _xConnection);
128 void createPage(
ElementType _eType,
const css::uno::Reference< css::container::XNameAccess >& _xContainer);
138 void copy()
override;
140 void paste()
override;
208 css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
215 css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
227 void selectElements(
const css::uno::Sequence< OUString>& _aNames);
240 const OUString& rName,
241 const css::uno::Any& rObject);
256 ,
const OUString& _rOldName
257 ,
const OUString& _rNewName );
268 ,
const OUString& _rName );
286 void showPreview(
const css::uno::Reference< css::ucb::XContent >& _xContent);
297 void showPreview(
const OUString& _sDataSourceName,
298 const OUString& _sName,
301 std::unique_ptr<weld::TreeIter>
getEntry(
const Point& rPosPixel)
const;
309 const css::uno::Reference< css::sdbc::XConnection >& _rxConnection,
310 const css::uno::Reference< css::container::XNameAccess >& _rxNonTableElements
sal_Int32 getElementCount() const
returns the count of entries
std::unique_ptr< weld::TreeIter > getEntry(const Point &rPosPixel) const
void impl_createPage(ElementType _eType, const css::uno::Reference< css::sdbc::XConnection > &_rxConnection, const css::uno::Reference< css::container::XNameAccess > &_rxNonTableElements)
void createPage(ElementType _eType, const css::uno::Reference< css::container::XNameAccess > &_xContainer)
creates the page for the specific type.
void impl_fillTaskPaneData(ElementType _eType, TaskPaneData &_rData) const
std::vector< TaskPaneData > m_aTaskPaneData
std::shared_ptr< OChildWindow > m_xControlHelper
void createTablesPage(const css::uno::Reference< css::sdbc::XConnection > &_xConnection)
creates the tables page
std::unique_ptr< weld::Container > m_xTasksParent
static bool isLeaf(const weld::TreeView &rTreeView, const weld::TreeIter &rEntry)
returns if an entry is a leaf
void selectAll()
select all entries in the detail page
OUString getQualifiedName(const weld::TreeIter *_pEntry) const
return the qualified name.
sal_Int32 getSelectionCount()
returns the count of selected entries
std::unique_ptr< weld::Container > m_xContainer
const OAppDetailPageHelper * GetControlHelper() const
void setTaskExternalMnemonics(MnemonicGenerator const &_rMnemonics)
void elementRemoved(ElementType _eType, const OUString &_rName)
removes an element from the detail page.
void sortUp()
sort the entries in the detail page up
PreviewMode getPreviewMode() const
returns the preview mode
std::unique_ptr< weld::Paned > m_xHorzSplitter
const TaskPaneData & impl_getTaskPaneData(ElementType _eType)
OTasksWindow & getTasksWindow() const
bool isCopyAllowed() override
ElementType getElementType() const
return the element of currently select entry
std::unique_ptr< weld::TreeIter > elementAdded(ElementType eType, const OUString &rName, const css::uno::Any &rObject)
adds a new object to the detail page.
bool isPasteAllowed() override
vcl::Window * getMenuParent() const
get the menu parent window for the given control
void selectElements(const css::uno::Sequence< OUString > &_aNames)
select all names on the currently selected container.
void describeCurrentSelectionForControl(const weld::TreeView &rControl, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects)
describes the current selection for the given control
bool isALeafSelected() const
returns if one of the selected entries is a leaf
bool isPreviewEnabled() const
<TRUE> if the preview is enabled
OAppBorderWindow & getBorderWin() const
bool isFilled() const
returns <TRUE> when a detail page was filled
MnemonicGenerator m_aExternalMnemonics
void clearPages(bool _bTaskAlso=true)
clears the detail pages.
void showPreview(const css::uno::Reference< css::ucb::XContent > &_xContent)
shows the Preview of the content when it is enabled.
OAppBorderWindow & m_rBorderWin
void describeCurrentSelectionForType(const ElementType _eType, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects)
describes the current selection for the given ElementType
void elementReplaced(ElementType eType, const OUString &_rOldName, const OUString &_rNewName)
replaces an objects name with a new one
bool isCutAllowed() override
~OApplicationDetailView()
bool isSortUp() const
returns <TRUE> if it sorts ascending
std::unique_ptr< OTitleWindow > m_xTasks
bool HasChildPathFocus() const
void sortDown()
sort the entries in the detail page down
std::unique_ptr< weld::Builder > m_xBuilder
std::unique_ptr< OTitleWindow > m_xTitleContainer
std::unique_ptr< weld::Container > m_xContainerParent
void switchPreview(PreviewMode _eMode)
switches to the given preview mode
OApplicationDetailView(weld::Container *pParent, OAppBorderWindow &rBorder, PreviewMode ePreviewMode)
void adjustMenuPosition(const weld::TreeView &rControl, ::Point &rPos) const
TreeListBox * getTreeWindow() const
void getSelectionElementNames(std::vector< OUString > &_rNames) const
returns the element names which are selected
DECL_LINK(onSelected, weld::TreeView &, bool)
void setHelpText(TranslateId pId)
DECL_LINK(FocusInHdl, weld::Widget &, void)
OTasksWindow(weld::Container *pParent, OApplicationDetailView *pDetailView)
DECL_LINK(OnEntrySelectHdl, weld::TreeView &, void)
virtual void GrabFocus() override
void fillTaskEntryList(const TaskEntryList &_rList)
fills the Creation listbox with the necessary strings and images
OApplicationDetailView * getDetailView() const
std::unique_ptr< weld::Label > m_xDescription
virtual bool HasChildPathFocus() const override
OApplicationDetailView * m_pDetailView
std::unique_ptr< weld::TextView > m_xHelpText
std::unique_ptr< weld::TreeView > m_xTreeView
DECL_LINK(FocusOutHdl, weld::Widget &, void)
std::vector< TaskEntry > TaskEntryList
TaskEntry(const char *_pAsciiUNOCommand, TranslateId pHelpID, TranslateId pTitleResourceID, bool _bHideWhenDisabled=false)
TaskEntryList aTasks
the tasks available in the pane
TranslateId pTitleId
the resource ID for the title of the pane