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

#include <QueryViewSwitch.hxx>

Collaboration diagram for dbaui::OQueryViewSwitch:
[legend]

Public Member Functions

 OQueryViewSwitch (OQueryContainerWindow *pParent, OQueryController &_rController, const css::uno::Reference< css::uno::XComponentContext > &)
 
 ~OQueryViewSwitch ()
 
bool isCutAllowed () const
 
bool isPasteAllowed () const
 
bool isCopyAllowed () const
 
void copy ()
 
void cut ()
 
void paste ()
 
void clear ()
 
bool checkStatement ()
 
void setStatement (const OUString &_rsStatement)
 
OUString getStatement ()
 
void Construct ()
 late construction More...
 
void initialize ()
 
bool switchView (::dbtools::SQLExceptionInfo *_pErrorInfo)
 show the text or the design view More...
 
void forceInitialView ()
 
bool isSlotEnabled (sal_Int32 _nSlotId)
 
void setSlotEnabled (sal_Int32 _nSlotId, bool _bEnable)
 
void setNoneVisibleRow (sal_Int32 _nRows)
 
void SaveUIConfig ()
 
void reset ()
 
void GrabFocus ()
 
OAddTableDlggetAddTableDialog ()
 
OQueryDesignViewgetDesignView () const
 
OQueryContainerWindowgetContainer () const
 
void SetPosSizePixel (Point _rPt, Size _rSize)
 
css::uno::Reference< css::uno::XComponentContext > const & getORB () const
 

Private Member Functions

void impl_forceSQLView ()
 
bool impl_postViewSwitch (const bool i_bGraphicalDesign, const bool i_bSuccess)
 

Private Attributes

VclPtr< OQueryDesignViewm_pDesignView
 
VclPtr< OQueryTextViewm_pTextView
 
bool m_bAddTableDialogWasVisible
 

Detailed Description

Definition at line 38 of file QueryViewSwitch.hxx.

Constructor & Destructor Documentation

◆ OQueryViewSwitch()

OQueryViewSwitch::OQueryViewSwitch ( OQueryContainerWindow pParent,
OQueryController _rController,
const css::uno::Reference< css::uno::XComponentContext > &   
)

◆ ~OQueryViewSwitch()

OQueryViewSwitch::~OQueryViewSwitch ( )

Definition at line 39 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Member Function Documentation

◆ checkStatement()

bool OQueryViewSwitch::checkStatement ( )

Definition at line 58 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::checkStatement().

◆ clear()

void OQueryViewSwitch::clear ( )

Definition at line 72 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::clear().

◆ Construct()

void OQueryViewSwitch::Construct ( )

late construction

Definition at line 46 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::Construct().

◆ copy()

void OQueryViewSwitch::copy ( )

Definition at line 94 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::copy().

◆ cut()

void OQueryViewSwitch::cut ( )

Definition at line 123 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::cut().

◆ forceInitialView()

void OQueryViewSwitch::forceInitialView ( )

◆ getAddTableDialog()

OAddTableDlg * OQueryViewSwitch::getAddTableDialog ( )

Definition at line 242 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by forceInitialView(), impl_forceSQLView(), impl_postViewSwitch(), and switchView().

◆ getContainer()

OQueryContainerWindow * OQueryViewSwitch::getContainer ( ) const

Definition at line 139 of file QueryViewSwitch.cxx.

References getDesignView(), and vcl::Window::GetParent().

Referenced by impl_postViewSwitch().

◆ getDesignView()

OQueryDesignView * dbaui::OQueryViewSwitch::getDesignView ( ) const
inline

◆ getORB()

Reference< XComponentContext > const & OQueryViewSwitch::getORB ( ) const

Definition at line 272 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::showPreview().

◆ getStatement()

OUString OQueryViewSwitch::getStatement ( )

Definition at line 65 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::getStatement().

◆ GrabFocus()

void OQueryViewSwitch::GrabFocus ( )

Definition at line 80 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::GetFocus(), and impl_postViewSwitch().

◆ impl_forceSQLView()

void OQueryViewSwitch::impl_forceSQLView ( )
private

◆ impl_postViewSwitch()

bool OQueryViewSwitch::impl_postViewSwitch ( const bool  i_bGraphicalDesign,
const bool  i_bSuccess 
)
private

◆ initialize()

void OQueryViewSwitch::initialize ( )

Definition at line 51 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::initialize().

◆ isCopyAllowed()

bool OQueryViewSwitch::isCopyAllowed ( ) const

Definition at line 109 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::isCopyAllowed().

◆ isCutAllowed()

bool OQueryViewSwitch::isCutAllowed ( ) const

Definition at line 102 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::isCutAllowed().

◆ isPasteAllowed()

bool OQueryViewSwitch::isPasteAllowed ( ) const

Definition at line 116 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::isPasteAllowed().

◆ isSlotEnabled()

bool OQueryViewSwitch::isSlotEnabled ( sal_Int32  _nSlotId)

Definition at line 249 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::isSlotEnabled().

◆ paste()

void OQueryViewSwitch::paste ( )

Definition at line 131 of file QueryViewSwitch.cxx.

References m_pDesignView, and m_pTextView.

Referenced by dbaui::OQueryContainerWindow::paste().

◆ reset()

void OQueryViewSwitch::reset ( )

Definition at line 277 of file QueryViewSwitch.cxx.

References m_pDesignView, and switchView().

Referenced by dbaui::OQueryContainerWindow::reset().

◆ SaveUIConfig()

void OQueryViewSwitch::SaveUIConfig ( )

Definition at line 259 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::SaveUIConfig().

◆ setNoneVisibleRow()

void OQueryViewSwitch::setNoneVisibleRow ( sal_Int32  _nRows)

Definition at line 286 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::setNoneVisibleRow().

◆ SetPosSizePixel()

void OQueryViewSwitch::SetPosSizePixel ( Point  _rPt,
Size  _rSize 
)

◆ setSlotEnabled()

void OQueryViewSwitch::setSlotEnabled ( sal_Int32  _nSlotId,
bool  _bEnable 
)

Definition at line 254 of file QueryViewSwitch.cxx.

References m_pDesignView.

Referenced by dbaui::OQueryContainerWindow::setSlotEnabled().

◆ setStatement()

void OQueryViewSwitch::setStatement ( const OUString &  _rsStatement)

Definition at line 88 of file QueryViewSwitch.cxx.

References m_pTextView.

Referenced by dbaui::OQueryContainerWindow::setStatement().

◆ switchView()

bool OQueryViewSwitch::switchView ( ::dbtools::SQLExceptionInfo _pErrorInfo)

show the text or the design view

Returns
<TRUE> if and only if the view could be successfully, switched, <FALSE> otherwise (In the latter case, the controller will issue another switchView call to restore the old state)

Definition at line 189 of file QueryViewSwitch.cxx.

References getAddTableDialog(), impl_forceSQLView(), impl_postViewSwitch(), m_pDesignView, m_pTextView, and dbaui::OAddTableDlg::Update().

Referenced by reset(), and dbaui::OQueryContainerWindow::switchView().

Member Data Documentation

◆ m_bAddTableDialogWasVisible

bool dbaui::OQueryViewSwitch::m_bAddTableDialogWasVisible
private

Definition at line 42 of file QueryViewSwitch.hxx.

Referenced by impl_forceSQLView(), and impl_postViewSwitch().

◆ m_pDesignView

VclPtr<OQueryDesignView> dbaui::OQueryViewSwitch::m_pDesignView
private

◆ m_pTextView

VclPtr<OQueryTextView> dbaui::OQueryViewSwitch::m_pTextView
private

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