LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dbaui::OApplicationSwapWindow Class Reference

#include <AppSwapWindow.hxx>

Inheritance diagram for dbaui::OApplicationSwapWindow:
[legend]
Collaboration diagram for dbaui::OApplicationSwapWindow:
[legend]

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< OApplicationIconControlm_xIconControl
 
std::unique_ptr< weld::CustomWeldm_xIconControlWin
 
ElementType m_eLastType
 
OAppBorderWindowm_rBorderWin
 
ImplSVEventm_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::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 

Detailed Description

Definition at line 32 of file AppSwapWindow.hxx.

Constructor & Destructor Documentation

◆ OApplicationSwapWindow()

OApplicationSwapWindow::OApplicationSwapWindow ( weld::Container pParent,
OAppBorderWindow rBorderWindow 
)

◆ ~OApplicationSwapWindow()

OApplicationSwapWindow::~OApplicationSwapWindow ( )
overridevirtual

Definition at line 63 of file AppSwapWindow.cxx.

References m_nChangeEvent, and Application::RemoveUserEvent().

Member Function Documentation

◆ clearSelection()

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().

◆ copy()

void dbaui::OApplicationSwapWindow::copy ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 54 of file AppSwapWindow.hxx.

◆ createIconAutoMnemonics()

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.

◆ cut()

void dbaui::OApplicationSwapWindow::cut ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 55 of file AppSwapWindow.hxx.

◆ DECL_LINK() [1/2]

dbaui::OApplicationSwapWindow::DECL_LINK ( ChangeToLastSelected  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/2]

dbaui::OApplicationSwapWindow::DECL_LINK ( OnContainerSelectHdl  ,
const ThumbnailViewItem ,
void   
)
private

◆ getElementType()

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().

◆ GrabFocus()

void OApplicationSwapWindow::GrabFocus ( )
overridevirtual

Implements dbaui::OChildWindow.

Definition at line 52 of file AppSwapWindow.cxx.

References m_xIconControl.

◆ HasChildPathFocus()

bool OApplicationSwapWindow::HasChildPathFocus ( ) const
overridevirtual

Implements dbaui::OChildWindow.

Definition at line 58 of file AppSwapWindow.cxx.

References m_xIconControl.

◆ interceptKeyInput()

bool OApplicationSwapWindow::interceptKeyInput ( const KeyEvent _rEvent)

called to give the window the chance to intercept key events, while it has not the focus

Returns
<TRUE> if and only if the event has been handled, and should not not be further processed

Definition at line 80 of file AppSwapWindow.cxx.

References KeyEvent::GetKeyCode(), vcl::KeyCode::GetModifier(), KEY_MOD2, and m_xIconControl.

◆ isCopyAllowed()

bool dbaui::OApplicationSwapWindow::isCopyAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 52 of file AppSwapWindow.hxx.

◆ isCutAllowed()

bool dbaui::OApplicationSwapWindow::isCutAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 51 of file AppSwapWindow.hxx.

◆ isPasteAllowed()

bool dbaui::OApplicationSwapWindow::isPasteAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 53 of file AppSwapWindow.hxx.

◆ onContainerSelected()

bool OApplicationSwapWindow::onContainerSelected ( ElementType  _eType)
private

◆ paste()

void dbaui::OApplicationSwapWindow::paste ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 56 of file AppSwapWindow.hxx.

◆ selectContainer()

void OApplicationSwapWindow::selectContainer ( ElementType  _eType)

changes the container which should be displayed.

The select handler will also be called.

Parameters
_eTypeWhich container to show.

Definition at line 127 of file AppSwapWindow.cxx.

References eType, and m_xIconControl.

Referenced by dbaui::OApplicationView::selectContainer().

Member Data Documentation

◆ m_eLastType

ElementType dbaui::OApplicationSwapWindow::m_eLastType
private

Definition at line 37 of file AppSwapWindow.hxx.

Referenced by onContainerSelected().

◆ m_nChangeEvent

ImplSVEvent* dbaui::OApplicationSwapWindow::m_nChangeEvent
private

Definition at line 39 of file AppSwapWindow.hxx.

Referenced by onContainerSelected(), and ~OApplicationSwapWindow().

◆ m_rBorderWin

OAppBorderWindow& dbaui::OApplicationSwapWindow::m_rBorderWin
private

Definition at line 38 of file AppSwapWindow.hxx.

Referenced by OApplicationSwapWindow(), and onContainerSelected().

◆ m_xIconControl

std::unique_ptr<OApplicationIconControl> dbaui::OApplicationSwapWindow::m_xIconControl
private

◆ m_xIconControlWin

std::unique_ptr<weld::CustomWeld> dbaui::OApplicationSwapWindow::m_xIconControlWin
private

Definition at line 36 of file AppSwapWindow.hxx.


The documentation for this class was generated from the following files: