LibreOffice Module dbaccess (master) 1
|
#include <AppSwapWindow.hxx>
Public Member Functions | |
OApplicationSwapWindow (weld::Container *pParent, OAppBorderWindow &rBorderWindow) | |
virtual | ~OApplicationSwapWindow () override |
virtual void | GrabFocus () override |
virtual bool | HasChildPathFocus () const override |
bool | isCutAllowed () override |
bool | isCopyAllowed () override |
bool | isPasteAllowed () override |
void | copy () override |
void | cut () override |
void | paste () override |
void | createIconAutoMnemonics (MnemonicGenerator &_rMnemonics) |
automatically creates mnemonics for the icon/texts in our left hand side panel More... | |
bool | interceptKeyInput (const KeyEvent &_rEvent) |
called to give the window the chance to intercept key events, while it has not the focus More... | |
ElementType | getElementType () const |
return the element of currently select entry More... | |
void | clearSelection () |
clears the selection in the icon choice control and calls the handler More... | |
void | selectContainer (ElementType _eType) |
changes the container which should be displayed. More... | |
Public Member Functions inherited from dbaui::OChildWindow | |
virtual | ~OChildWindow () |
virtual void | GrabFocus ()=0 |
virtual bool | HasChildPathFocus () const =0 |
void | Enable (bool bEnable) |
void | SetHelpId (const OUString &rHelpId) |
void | Show () |
virtual bool | isCutAllowed ()=0 |
virtual bool | isCopyAllowed ()=0 |
virtual bool | isPasteAllowed ()=0 |
virtual void | copy ()=0 |
virtual void | cut ()=0 |
virtual void | paste ()=0 |
Private Member Functions | |
DECL_LINK (OnContainerSelectHdl, const ThumbnailViewItem *, void) | |
DECL_LINK (ChangeToLastSelected, void *, void) | |
bool | onContainerSelected (ElementType _eType) |
Private Attributes | |
std::unique_ptr< OApplicationIconControl > | m_xIconControl |
std::unique_ptr< weld::CustomWeld > | m_xIconControlWin |
ElementType | m_eLastType |
OAppBorderWindow & | m_rBorderWin |
ImplSVEvent * | m_nChangeEvent |
Additional Inherited Members | |
Protected Member Functions inherited from dbaui::OChildWindow | |
OChildWindow (weld::Container *pParent, const OUString &rUIXMLDescription, const OUString &rID) | |
Protected Member Functions inherited from dbaui::IClipboardTest | |
~IClipboardTest () | |
Protected Attributes inherited from dbaui::OChildWindow | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
Definition at line 32 of file AppSwapWindow.hxx.
OApplicationSwapWindow::OApplicationSwapWindow | ( | weld::Container * | pParent, |
OAppBorderWindow & | rBorderWindow | ||
) |
Definition at line 35 of file AppSwapWindow.cxx.
References dbaui::OApplicationView::getAppController(), dbaui::OAppBorderWindow::getView(), HID_APP_SWAP_ICONCONTROL, LINK, m_rBorderWin, dbaui::OChildWindow::m_xContainer, and m_xIconControl.
|
overridevirtual |
Definition at line 63 of file AppSwapWindow.cxx.
References m_nChangeEvent, and Application::RemoveUserEvent().
void OApplicationSwapWindow::clearSelection | ( | ) |
clears the selection in the icon choice control and calls the handler
Definition at line 69 of file AppSwapWindow.cxx.
References dbaui::E_NONE, m_xIconControl, and onContainerSelected().
Referenced by dbaui::OApplicationView::clearPages().
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 54 of file AppSwapWindow.hxx.
void OApplicationSwapWindow::createIconAutoMnemonics | ( | MnemonicGenerator & | _rMnemonics | ) |
automatically creates mnemonics for the icon/texts in our left hand side panel
Definition at line 75 of file AppSwapWindow.cxx.
References m_xIconControl.
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 55 of file AppSwapWindow.hxx.
|
private |
|
private |
ElementType OApplicationSwapWindow::getElementType | ( | ) | const |
return the element of currently select entry
Definition at line 89 of file AppSwapWindow.cxx.
References m_xIconControl.
Referenced by dbaui::OApplicationView::getElementType().
|
overridevirtual |
Implements dbaui::OChildWindow.
Definition at line 52 of file AppSwapWindow.cxx.
References m_xIconControl.
|
overridevirtual |
Implements dbaui::OChildWindow.
Definition at line 58 of file AppSwapWindow.cxx.
References m_xIconControl.
bool OApplicationSwapWindow::interceptKeyInput | ( | const KeyEvent & | _rEvent | ) |
called to give the window the chance to intercept key events, while it has not the focus
Definition at line 80 of file AppSwapWindow.cxx.
References KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), KEY_MOD2, and m_xIconControl.
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 52 of file AppSwapWindow.hxx.
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 51 of file AppSwapWindow.hxx.
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 53 of file AppSwapWindow.hxx.
|
private |
Definition at line 94 of file AppSwapWindow.cxx.
References dbaui::E_NONE, dbaui::OApplicationView::getAppController(), dbaui::OAppBorderWindow::getView(), LINK, m_eLastType, m_nChangeEvent, m_rBorderWin, dbaui::OApplicationController::onContainerSelect(), and Application::PostUserEvent().
Referenced by clearSelection().
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 56 of file AppSwapWindow.hxx.
void OApplicationSwapWindow::selectContainer | ( | ElementType | _eType | ) |
changes the container which should be displayed.
The select handler will also be called.
_eType | Which container to show. |
Definition at line 127 of file AppSwapWindow.cxx.
References eType, and m_xIconControl.
Referenced by dbaui::OApplicationView::selectContainer().
|
private |
Definition at line 37 of file AppSwapWindow.hxx.
Referenced by onContainerSelected().
|
private |
Definition at line 39 of file AppSwapWindow.hxx.
Referenced by onContainerSelected(), and ~OApplicationSwapWindow().
|
private |
Definition at line 38 of file AppSwapWindow.hxx.
Referenced by OApplicationSwapWindow(), and onContainerSelected().
|
private |
Definition at line 35 of file AppSwapWindow.hxx.
Referenced by clearSelection(), createIconAutoMnemonics(), getElementType(), GrabFocus(), HasChildPathFocus(), interceptKeyInput(), OApplicationSwapWindow(), and selectContainer().
|
private |
Definition at line 36 of file AppSwapWindow.hxx.