25#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
26#include <com/sun/star/sdb/XQueriesSupplier.hpp>
33using namespace ::
dbaui;
43using ::com::sun::star::sdb::application::NamedDatabaseObject;
46 :
InterimItemWindow(pParent,
"dbaccess/ui/appborderwindow.ui",
"AppBorderWindow", false)
47 , m_xPanelParent(m_xBuilder->weld_container(
"panel"))
48 , m_xDetailViewParent(m_xBuilder->weld_container(
"detail"))
54 std::shared_ptr<OChildWindow> xSwap = std::make_shared<OApplicationSwapWindow>(
m_xPanel->getChildContainer(), *
this);
96 ,m_rAppController( _rAppController )
121 m_pWin->getPanel()->createIconAutoMnemonics( _rMnemonics );
127 m_pWin->getDetailView()->setTaskExternalMnemonics( _rMnemonics );
134 if ( (rDCEvt.
GetType() == DataChangedEventType::FONTS) ||
135 (rDCEvt.
GetType() == DataChangedEventType::DISPLAY) ||
136 (rDCEvt.
GetType() == DataChangedEventType::FONTSUBSTITUTION) ||
137 ((rDCEvt.
GetType() == DataChangedEventType::SETTINGS) &&
138 (rDCEvt.
GetFlags() & AllSettingsFlags::STYLE)) )
177 case NotifyEventType::KEYINPUT:
355 ,
const OUString& _rOldName
356 ,
const OUString& _rNewName )
409 const css::uno::Reference< css::sdbc::XConnection>& _xConnection,
410 const OUString& _sName,
426 xNameAccess = xSup->getTables();
432 xNameAccess = xSup->getQueries();
434 if ( xNameAccess.is() && xNameAccess->hasByName(_sName) )
435 m_xObject.set(xNameAccess->getByName(_sName),UNO_QUERY);
const StyleSettings & GetStyleSettings() const
DataChangedEventType GetType() const
AllSettingsFlags GetFlags() const
virtual void dispose() override
const KeyEvent * GetKeyEvent() const
NotifyEventType GetType() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
const Color & GetFieldTextColor() const
const Color & GetFieldColor() const
const vcl::Font & GetFieldFont() const
const Color & GetWindowTextColor() const
static VclPtr< reference_type > Create(Arg &&... arg)
virtual bool isCutAllowed()=0
virtual bool isPasteAllowed()=0
virtual bool isCopyAllowed()=0
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
virtual ~OAppBorderWindow() override
VclPtr< OApplicationView > m_xView
std::unique_ptr< OApplicationDetailView > m_xDetailView
virtual void dispose() override
sal_Int32 getElementCount() const
returns the count of entries
std::unique_ptr< weld::TreeIter > getEntry(const Point &rPosPixel) const
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
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
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.
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
bool isFilled() const
returns <TRUE> when a detail page was filled
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.
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 isSortUp() const
returns <TRUE> if it sorts ascending
bool HasChildPathFocus() const
void sortDown()
sort the entries in the detail page down
void switchPreview(PreviewMode _eMode)
switches to the given preview mode
void adjustMenuPosition(const weld::TreeView &rControl, ::Point &rPos) const
void getSelectionElementNames(std::vector< OUString > &_rNames) const
returns the element names which are selected
ElementType getElementType() const
return the element of currently select entry
void selectContainer(ElementType _eType)
changes the container which should be displayed.
void clearSelection()
clears the selection in the icon choice control and calls the handler
sal_Int32 getSelectionCount() const
returns the count of selected entries
OApplicationDetailView * getDetailView() const
get the detail page
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
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
virtual void dispose() override
virtual bool PreNotify(NotifyEvent &rNEvt) override
void startComponentListening(const css::uno::Reference< css::lang::XComponent > &_rxComp)
void stopComponentListening(const css::uno::Reference< css::lang::XComponent > &_rxComp)
void SetColor(const Color &)
void SetStyle(WinBits nStyle)
bool HasChildPathFocus(bool bSystemWindow=false) const
Point LogicToPixel(const Point &rLogicPt) const
const AllSettings & GetSettings() const
::OutputDevice const * GetOutDev() const
virtual void DataChanged(const DataChangedEvent &rDCEvt)
void SetPointFont(vcl::RenderContext &rRenderContext, const vcl::Font &rFont)
void Invalidate(InvalidateFlags nFlags=InvalidateFlags::NONE)
weld::Window * GetFrameWeld() const
void SetTextColor(const Color &rColor)
#define DBG_UNHANDLED_EXCEPTION(...)
WinBits const WB_DIALOGCONTROL