22#include <com/sun/star/ucb/XContent.hpp>
23#include <com/sun/star/sdb/application/NamedDatabaseObject.hpp>
24#include <com/sun/star/sdbc/XConnection.hpp>
37 class OApplicationView;
38 class OApplicationDetailView;
39 class OApplicationSwapWindow;
41 class OApplicationController;
54 virtual void dispose()
override;
76 css::uno::Reference< css::lang::XComponent >
91 virtual void _disposing(
const css::lang::EventObject& _rSource )
override;
97 ,
const css::uno::Reference< css::uno::XComponentContext >&
102 virtual void dispose()
override;
120 virtual void copy()
override;
121 virtual void cut()
override;
122 virtual void paste()
override;
194 css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
201 css::uno::Sequence< css::sdb::application::NamedDatabaseObject >& _out_rSelectedObjects
215 void selectElements(
const css::uno::Sequence< OUString>& _aNames);
228 const OUString& rName,
229 const css::uno::Any& rObject);
244 ,
const OUString& _rOldName
245 ,
const OUString& _rNewName );
256 ,
const OUString& _rName );
280 void showPreview(
const css::uno::Reference< css::ucb::XContent >& _xContent);
293 void showPreview(
const OUString& _sDataSourceName,
294 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
295 const OUString& _sName,
298 std::unique_ptr<weld::TreeIter>
getEntry(
const Point& rPosPixel)
const;
std::unique_ptr< weld::Container > m_xContainer
std::unique_ptr< weld::Container > m_xPanelParent
std::unique_ptr< weld::Container > m_xDetailViewParent
virtual void GetFocus() override
OApplicationSwapWindow * getPanel() const
std::unique_ptr< OTitleWindow > m_xPanel
weld::Container & getTopLevel()
OAppBorderWindow(OApplicationView *pParent, PreviewMode ePreviewMode)
OApplicationDetailView * getDetailView() const
virtual ~OAppBorderWindow() override
VclPtr< OApplicationView > m_xView
OApplicationView * getView() const
std::unique_ptr< OApplicationDetailView > m_xDetailView
virtual void dispose() override
sal_Int32 getSelectionCount() const
returns the count of selected entries
OApplicationDetailView * getDetailView() const
get the detail page
OApplicationController & getAppController() const
bool isALeafSelected() const
returns if one of the selected entries is a leaf
bool isFilled() const
returns <TRUE> when a detail page was filled
virtual bool isPasteAllowed() override
std::unique_ptr< weld::TreeIter > elementAdded(ElementType eType, const OUString &rName, const css::uno::Any &rObject)
adds a new object to the detail page.
OApplicationView(vcl::Window *pParent, const css::uno::Reference< css::uno::XComponentContext > &, OApplicationController &_rAppController, PreviewMode _ePreviewMode)
PreviewMode getPreviewMode() const
returns the preview mode
OUString getQualifiedName(const weld::TreeIter *_pEntry) const
return the qualified name.
void showPreview(const css::uno::Reference< css::ucb::XContent > &_xContent)
shows the Preview of the content when it is enabled.
void elementReplaced(ElementType eType, const OUString &_rOldName, const OUString &_rNewName)
replaces an objects name with a new one
bool isPreviewEnabled() const
<TRUE> if the preview is enabled
void selectElements(const css::uno::Sequence< OUString > &_aNames)
select all names on the currently selected container.
virtual void GetFocus() override
virtual void dispose() override
void clearPages()
clears the detail page and the selection on the left side.
void getSelectionElementNames(std::vector< OUString > &_rNames) const
returns the element names which are selected
virtual bool isCopyAllowed() override
void selectAll()
select all entries in the detail page
css::uno::Reference< css::lang::XComponent > m_xObject
void switchPreview(PreviewMode _eMode)
switches to the given preview mode
bool isSortUp() const
returns <TRUE> if it sorts ascending
void elementRemoved(ElementType _eType, const OUString &_rName)
removes an element from the detail page.
virtual bool PreNotify(NotifyEvent &rNEvt) override
ElementType getElementType() const
return the element of currently select entry
void sortDown()
sort the entries in the detail page down
virtual void resizeDocumentView(tools::Rectangle &rRect) override
sal_Int32 getElementCount() const
returns the count of entries
void selectContainer(ElementType _eType)
changes the container which should be displayed.
void createIconAutoMnemonics(MnemonicGenerator &_rMnemonics)
automatically creates mnemonics for the icon/texts in our left hand side panel
vcl::Window * getMenuParent() const
get the menu parent window for the given control
OApplicationController & m_rAppController
void describeCurrentSelectionForType(const ElementType _eType, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects)
describes the current selection for the given ElementType
virtual void paste() override
void sortUp()
sort the entries in the detail page up
IClipboardTest * getActiveChild() const
virtual void cut() override
virtual void _disposing(const css::lang::EventObject &_rSource) override
void adjustMenuPosition(const weld::TreeView &rControl, ::Point &rPos) const
adjust rPos relative to rControl to instead relative to getMenuParent
void describeCurrentSelectionForControl(const weld::TreeView &rControl, css::uno::Sequence< css::sdb::application::NamedDatabaseObject > &_out_rSelectedObjects)
describes the current selection for the given control
virtual void copy() override
std::unique_ptr< weld::TreeIter > getEntry(const Point &rPosPixel) const
ChildFocusState getChildFocus() const
OApplicationSwapWindow * getPanel() const
get the left panel
virtual bool isCutAllowed() override
VclPtr< OAppBorderWindow > m_pWin
bool isLeaf(const weld::TreeView &rTreeView, const weld::TreeIter &rEntry) const
returns if an entry is a leaf
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
virtual ~OApplicationView() override
void setTaskExternalMnemonics(MnemonicGenerator const &_rMnemonics)
automatically creates mnemonics for the texts in our task pane
class SAL_NO_VTABLE XPropertySet