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

#include <sqledit.hxx>

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

Classes

class  ChangesListener
 

Public Member Functions

 SQLEditView (std::unique_ptr< weld::ScrolledWindow > xScrolledWindow)
 
virtual void makeEditEngine () override
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual ~SQLEditView () override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
void SetTextAndUpdate (const OUString &rNewText)
 
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
 
void DisableInternalUndo ()
 
virtual void ConfigurationChanged (utl::ConfigurationBroadcaster *, ConfigurationHints) override
 
- Public Member Functions inherited from WeldEditView
 WeldEditView ()
 
virtual void SetDrawingArea (weld::DrawingArea *pDrawingArea) override
 
virtual int GetSurroundingText (OUString &rSurrounding) override
 
virtual bool DeleteSurroundingText (const Selection &rRange) override
 
void SetText (const OUString &rStr)
 
OUString GetText () const
 
virtual FactoryFunction GetUITestFactory () const override
 
void SetModifyHdl (const Link< LinkParamNone *, void > &rLink)
 
virtual EditViewGetEditView () const
 
virtual EditEngineGetEditEngine () const
 
bool HasSelection () const
 
void Delete ()
 
void Cut ()
 
void Copy ()
 
void Paste ()
 
virtual ~WeldEditView () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual bool MouseMove (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonDown (const MouseEvent &rMEvt) override
 
virtual bool MouseButtonUp (const MouseEvent &rMEvt) override
 
virtual bool KeyInput (const KeyEvent &rKEvt) override
 
virtual bool Command (const CommandEvent &rCEvt) override
 
virtual bool CanFocus () const
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void Resize () override
 
virtual css::uno::Reference< css::datatransfer::clipboard::XClipboard > GetClipboard () const override
 
virtual css::uno::Reference< css::datatransfer::dnd::XDropTarget > GetDropTarget () override
 
bool GetAcceptsTab () const
 
void SetAcceptsTab (bool bAcceptsTab)
 
- Public Member Functions inherited from utl::ConfigurationListener
virtual ~ConfigurationListener ()
 
virtual void ConfigurationChanged (ConfigurationBroadcaster *p, ConfigurationHints nHint)=0
 

Static Public Member Functions

static Color GetSyntaxHighlightColor (const svtools::ColorConfig &rColorConfig, HighlighterLanguage eLanguage, TokenType aToken)
 

Private Member Functions

 DECL_LINK (ModifyHdl, LinkParamNone *, void)
 
 DECL_LINK (ImplUpdateDataHdl, Timer *, void)
 
 DECL_LINK (ScrollHdl, weld::ScrolledWindow &, void)
 
 DECL_LINK (EditStatusHdl, EditStatus &, void)
 
Color GetColorValue (TokenType aToken)
 
void ImplSetFont ()
 
void DoBracketHilight (sal_uInt16 nKey)
 
void UpdateData ()
 
void SetScrollBarRange ()
 
void DoScroll ()
 
virtual void EditViewScrollStateChange () override
 

Static Private Member Functions

static void SetItemPoolFont (SfxItemPool *pItemPool)
 

Private Attributes

std::unique_ptr< weld::ScrolledWindowm_xScrolledWindow
 
Link< LinkParamNone *, void > m_aModifyLink
 
const svtools::ColorConfig m_aColorConfig
 
Timer m_aUpdateDataTimer
 
const SyntaxHighlighter m_aHighlighter
 
svtools::ColorConfig m_ColorConfig
 
rtl::Reference< SfxItemPoolm_pItemPool
 
rtl::Reference< ChangesListenerm_listener
 
std::mutex m_mutex
 
css::uno::Reference< css::beans::XMultiPropertySet > m_notifier
 
bool m_bInUpdate
 
bool m_bDisableInternalUndo
 

Friends

class ChangesListener
 

Additional Inherited Members

- Protected Member Functions inherited from WeldEditView
virtual void makeEditEngine ()
 
void InitAccessible ()
 
void DoPaint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
virtual void EditViewInvalidate (const tools::Rectangle &rRect) override
 
virtual void EditViewSelectionChange () override
 
virtual OutputDeviceEditViewOutputDevice () const override
 
virtual Point EditViewPointerPosPixel () const override
 
virtual void EditViewInputContext (const InputContext &rInputContext) override
 
virtual void EditViewCursorRect (const tools::Rectangle &rRect, int nExtTextInputWidth) override
 
virtual weld::WidgetEditViewPopupParent () const override
 
- Protected Attributes inherited from WeldEditView
bool m_bAcceptsTab
 
css::uno::Reference< css::datatransfer::dnd::XDropTarget > m_xDropTarget
 
std::unique_ptr< EditEnginem_xEditEngine
 
std::unique_ptr< EditViewm_xEditView
 
rtl::Reference< WeldEditAccessiblem_xAccessible
 

Detailed Description

Definition at line 34 of file sqledit.hxx.

Constructor & Destructor Documentation

◆ SQLEditView()

SQLEditView::SQLEditView ( std::unique_ptr< weld::ScrolledWindow xScrolledWindow)

Definition at line 71 of file sqledit.cxx.

References LINK, m_xScrolledWindow, and SQL.

◆ ~SQLEditView()

SQLEditView::~SQLEditView ( )
overridevirtual

Definition at line 156 of file sqledit.cxx.

References m_ColorConfig, m_listener, m_mutex, m_notifier, and n.

Member Function Documentation

◆ Command()

bool SQLEditView::Command ( const CommandEvent rCEvt)
overridevirtual

◆ ConfigurationChanged()

void SQLEditView::ConfigurationChanged ( utl::ConfigurationBroadcaster ,
ConfigurationHints   
)
overridevirtual

Implements utl::ConfigurationListener.

Definition at line 499 of file sqledit.cxx.

References UpdateData().

◆ DECL_LINK() [1/4]

dbaui::SQLEditView::DECL_LINK ( EditStatusHdl  ,
EditStatus ,
void   
)
private

◆ DECL_LINK() [2/4]

dbaui::SQLEditView::DECL_LINK ( ImplUpdateDataHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [3/4]

dbaui::SQLEditView::DECL_LINK ( ModifyHdl  ,
LinkParamNone ,
void   
)
private

◆ DECL_LINK() [4/4]

dbaui::SQLEditView::DECL_LINK ( ScrollHdl  ,
weld::ScrolledWindow ,
void   
)
private

◆ DisableInternalUndo()

void SQLEditView::DisableInternalUndo ( )

◆ DoBracketHilight()

void SQLEditView::DoBracketHilight ( sal_uInt16  nKey)
private

◆ DoScroll()

void SQLEditView::DoScroll ( )
private

Definition at line 487 of file sqledit.cxx.

References WeldEditView::m_xEditView, and m_xScrolledWindow.

◆ EditViewScrollStateChange()

void SQLEditView::EditViewScrollStateChange ( )
overrideprivatevirtual

Definition at line 439 of file sqledit.cxx.

References SetScrollBarRange().

◆ GetColorValue()

Color SQLEditView::GetColorValue ( TokenType  aToken)
private

◆ GetSyntaxHighlightColor()

Color SQLEditView::GetSyntaxHighlightColor ( const svtools::ColorConfig rColorConfig,
HighlighterLanguage  eLanguage,
TokenType  aToken 
)
static

◆ ImplSetFont()

void SQLEditView::ImplSetFont ( )
private

◆ KeyInput()

bool SQLEditView::KeyInput ( const KeyEvent rKEvt)
overridevirtual

◆ makeEditEngine()

void SQLEditView::makeEditEngine ( )
overridevirtual

Reimplemented from WeldEditView.

Definition at line 117 of file sqledit.cxx.

References EditEngine::CreatePool(), m_pItemPool, WeldEditView::m_xEditEngine, and SetItemPoolFont().

◆ SetDrawingArea()

void SQLEditView::SetDrawingArea ( weld::DrawingArea pDrawingArea)
overridevirtual

◆ SetItemPoolFont()

void SQLEditView::SetItemPoolFont ( SfxItemPool pItemPool)
staticprivate

◆ SetModifyHdl()

void dbaui::SQLEditView::SetModifyHdl ( const Link< LinkParamNone *, void > &  rLink)
inline

Definition at line 86 of file sqledit.hxx.

References m_aModifyLink.

◆ SetScrollBarRange()

void SQLEditView::SetScrollBarRange ( )
private

◆ SetTextAndUpdate()

void SQLEditView::SetTextAndUpdate ( const OUString &  rNewText)

Definition at line 169 of file sqledit.cxx.

References WeldEditView::SetText(), and UpdateData().

Referenced by ImplSetFont().

◆ UpdateData()

void SQLEditView::UpdateData ( )
private

Friends And Related Function Documentation

◆ ChangesListener

friend class ChangesListener
friend

Definition at line 38 of file sqledit.hxx.

Referenced by SetDrawingArea().

Member Data Documentation

◆ m_aColorConfig

const svtools::ColorConfig dbaui::SQLEditView::m_aColorConfig
private

Definition at line 42 of file sqledit.hxx.

Referenced by GetColorValue().

◆ m_aHighlighter

const SyntaxHighlighter dbaui::SQLEditView::m_aHighlighter
private

Definition at line 44 of file sqledit.hxx.

Referenced by GetColorValue(), and UpdateData().

◆ m_aModifyLink

Link<LinkParamNone*,void> dbaui::SQLEditView::m_aModifyLink
private

Definition at line 41 of file sqledit.hxx.

Referenced by SetModifyHdl(), and UpdateData().

◆ m_aUpdateDataTimer

Timer dbaui::SQLEditView::m_aUpdateDataTimer
private

Definition at line 43 of file sqledit.hxx.

Referenced by SetDrawingArea().

◆ m_bDisableInternalUndo

bool dbaui::SQLEditView::m_bDisableInternalUndo
private

Definition at line 53 of file sqledit.hxx.

Referenced by DisableInternalUndo(), and KeyInput().

◆ m_bInUpdate

bool dbaui::SQLEditView::m_bInUpdate
private

Definition at line 52 of file sqledit.hxx.

Referenced by UpdateData().

◆ m_ColorConfig

svtools::ColorConfig dbaui::SQLEditView::m_ColorConfig
private

Definition at line 45 of file sqledit.hxx.

Referenced by SetDrawingArea(), and ~SQLEditView().

◆ m_listener

rtl::Reference<ChangesListener> dbaui::SQLEditView::m_listener
private

Definition at line 48 of file sqledit.hxx.

Referenced by SetDrawingArea(), and ~SQLEditView().

◆ m_mutex

std::mutex dbaui::SQLEditView::m_mutex
private

◆ m_notifier

css::uno::Reference<css::beans::XMultiPropertySet> dbaui::SQLEditView::m_notifier
private

◆ m_pItemPool

rtl::Reference<SfxItemPool> dbaui::SQLEditView::m_pItemPool
private

Definition at line 46 of file sqledit.hxx.

Referenced by ImplSetFont(), and makeEditEngine().

◆ m_xScrolledWindow

std::unique_ptr<weld::ScrolledWindow> dbaui::SQLEditView::m_xScrolledWindow
private

Definition at line 40 of file sqledit.hxx.

Referenced by DoScroll(), SetScrollBarRange(), and SQLEditView().


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