LibreOffice Module dbaccess (master) 1
|
#include <sqledit.hxx>
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 EditView * | GetEditView () const |
virtual EditEngine * | GetEditEngine () 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::ScrolledWindow > | m_xScrolledWindow |
Link< LinkParamNone *, void > | m_aModifyLink |
const svtools::ColorConfig | m_aColorConfig |
Timer | m_aUpdateDataTimer |
const SyntaxHighlighter | m_aHighlighter |
svtools::ColorConfig | m_ColorConfig |
rtl::Reference< SfxItemPool > | m_pItemPool |
rtl::Reference< ChangesListener > | m_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 OutputDevice & | EditViewOutputDevice () 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::Widget * | EditViewPopupParent () const override |
Protected Attributes inherited from WeldEditView | |
bool | m_bAcceptsTab |
css::uno::Reference< css::datatransfer::dnd::XDropTarget > | m_xDropTarget |
std::unique_ptr< EditEngine > | m_xEditEngine |
std::unique_ptr< EditView > | m_xEditView |
rtl::Reference< WeldEditAccessible > | m_xAccessible |
Definition at line 34 of file sqledit.hxx.
SQLEditView::SQLEditView | ( | std::unique_ptr< weld::ScrolledWindow > | xScrolledWindow | ) |
Definition at line 71 of file sqledit.cxx.
References LINK, m_xScrolledWindow, and SQL.
|
overridevirtual |
Definition at line 156 of file sqledit.cxx.
References m_ColorConfig, m_listener, m_mutex, m_notifier, and n.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 366 of file sqledit.cxx.
References WeldEditView::Command(), EditView::Copy(), Application::CreateBuilder(), EditView::Cut(), EditView::DeleteSelected(), CommandEvent::GetCommand(), WeldEditView::GetEditView(), vcl::GetGetSpecialCharsFunction(), CommandEvent::GetMousePosPixel(), EditView::HasSelection(), EditView::InsertText(), EditView::IsReadOnly(), WeldEditView::m_xEditEngine, EditView::Paste(), and EditView::SetSelection().
|
overridevirtual |
Implements utl::ConfigurationListener.
Definition at line 499 of file sqledit.cxx.
References UpdateData().
|
private |
|
private |
|
private |
|
private |
void SQLEditView::DisableInternalUndo | ( | ) |
Definition at line 81 of file sqledit.cxx.
References EditEngine::EnableUndo(), WeldEditView::GetEditEngine(), and m_bDisableInternalUndo.
|
private |
Definition at line 234 of file sqledit.cxx.
References EE_CHAR_COLOR(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), i, WeldEditView::m_xEditEngine, WeldEditView::m_xEditView, nCount, ESelection::nStartPara, ESelection::nStartPos, SfxItemSet::Put(), and WEIGHT_ULTRABOLD.
Referenced by KeyInput().
|
private |
Definition at line 487 of file sqledit.cxx.
References WeldEditView::m_xEditView, and m_xScrolledWindow.
|
overrideprivatevirtual |
Definition at line 439 of file sqledit.cxx.
References SetScrollBarRange().
Definition at line 187 of file sqledit.cxx.
References SyntaxHighlighter::GetLanguage(), GetSyntaxHighlightColor(), m_aColorConfig, and m_aHighlighter.
Referenced by UpdateData().
|
static |
Definition at line 311 of file sqledit.cxx.
References svtools::ColorConfig::GetColorValue(), svtools::ColorConfigValue::nColor, svtools::SQLCOMMENT, svtools::SQLIDENTIFIER, svtools::SQLKEYWORD, svtools::SQLNUMBER, svtools::SQLOPERATOR, svtools::SQLPARAMETER, and svtools::SQLSTRING.
Referenced by GetColorValue().
|
private |
Definition at line 504 of file sqledit.cxx.
References EditEngine::Clear(), WeldEditView::GetEditEngine(), EditEngine::GetText(), m_pItemPool, SetItemPoolFont(), and SetTextAndUpdate().
Referenced by dbaui::SQLEditView::ChangesListener::propertiesChange(), and SetDrawingArea().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 352 of file sqledit.cxx.
References DoBracketHilight(), KeyEvent::GetCharCode(), vcl::KeyCode::GetFunction(), KeyEvent::GetKeyCode(), WeldEditView::KeyInput(), and m_bDisableInternalUndo.
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 117 of file sqledit.cxx.
References EditEngine::CreatePool(), m_pItemPool, WeldEditView::m_xEditEngine, and SetItemPoolFont().
|
overridevirtual |
Reimplemented from WeldEditView.
Definition at line 125 of file sqledit.cxx.
References ChangesListener, WeldEditView::GetEditEngine(), ImplSetFont(), LINK, m_aUpdateDataTimer, m_ColorConfig, m_listener, m_mutex, m_notifier, n, EditEngine::SetDefaultHorizontalTextDirection(), WeldEditView::SetDrawingArea(), Timer::SetInvokeHandler(), EditEngine::SetModifyHdl(), EditEngine::SetStatusEventHdl(), and Timer::SetTimeout().
|
staticprivate |
Definition at line 87 of file sqledit.cxx.
References EE_CHAR_FONTHEIGHT(), EE_CHAR_FONTHEIGHT_CJK(), EE_CHAR_FONTHEIGHT_CTL(), EE_CHAR_FONTINFO(), EE_CHAR_FONTINFO_CJK(), EE_CHAR_FONTINFO_CTL(), OutputDevice::GetDefaultFont(), vcl::Font::GetFamilyName(), vcl::Font::GetFamilyType(), vcl::Font::GetFontHeight(), Application::GetSettings(), PITCH_DONTKNOW, and SfxItemPool::SetPoolDefaultItem().
Referenced by ImplSetFont(), and makeEditEngine().
|
inline |
Definition at line 86 of file sqledit.hxx.
References m_aModifyLink.
|
private |
Definition at line 445 of file sqledit.cxx.
References WeldEditView::GetEditEngine(), WeldEditView::GetEditView(), EditView::GetOutputArea(), tools::Rectangle::GetSize(), EditEngine::GetTextHeight(), EditView::GetVisArea(), Size::Height(), m_xScrolledWindow, and tools::Rectangle::Top().
Referenced by EditViewScrollStateChange().
void SQLEditView::SetTextAndUpdate | ( | const OUString & | rNewText | ) |
Definition at line 169 of file sqledit.cxx.
References WeldEditView::SetText(), and UpdateData().
Referenced by ImplSetFont().
|
private |
Definition at line 192 of file sqledit.cxx.
References Link< typename Arg, typename Ret >::Call(), EditEngine::ClearModifyFlag(), EE_CHAR_COLOR(), EE_CHAR_WEIGHT(), EE_CHAR_WEIGHT_CJK(), EE_CHAR_WEIGHT_CTL(), EE_TEXTPOS_ALL, EditEngine::EnableUndo(), GetColorValue(), WeldEditView::GetEditEngine(), EditEngine::GetEmptyItemSet(), SyntaxHighlighter::getHighlightPortions(), EditEngine::GetParagraphCount(), EditEngine::GetText(), EditEngine::IsModified(), EditEngine::IsUndoEnabled(), m_aHighlighter, m_aModifyLink, m_bInUpdate, SfxItemSet::Put(), EditEngine::QuickSetAttribs(), and EditEngine::RemoveAttribs().
Referenced by ConfigurationChanged(), and SetTextAndUpdate().
|
friend |
Definition at line 38 of file sqledit.hxx.
Referenced by SetDrawingArea().
|
private |
Definition at line 42 of file sqledit.hxx.
Referenced by GetColorValue().
|
private |
Definition at line 44 of file sqledit.hxx.
Referenced by GetColorValue(), and UpdateData().
|
private |
Definition at line 41 of file sqledit.hxx.
Referenced by SetModifyHdl(), and UpdateData().
|
private |
Definition at line 43 of file sqledit.hxx.
Referenced by SetDrawingArea().
|
private |
Definition at line 53 of file sqledit.hxx.
Referenced by DisableInternalUndo(), and KeyInput().
|
private |
Definition at line 52 of file sqledit.hxx.
Referenced by UpdateData().
|
private |
Definition at line 45 of file sqledit.hxx.
Referenced by SetDrawingArea(), and ~SQLEditView().
|
private |
Definition at line 48 of file sqledit.hxx.
Referenced by SetDrawingArea(), and ~SQLEditView().
|
private |
Definition at line 49 of file sqledit.hxx.
Referenced by dbaui::SQLEditView::ChangesListener::disposing(), SetDrawingArea(), and ~SQLEditView().
|
private |
Definition at line 50 of file sqledit.hxx.
Referenced by dbaui::SQLEditView::ChangesListener::disposing(), SetDrawingArea(), and ~SQLEditView().
|
private |
Definition at line 46 of file sqledit.hxx.
Referenced by ImplSetFont(), and makeEditEngine().
|
private |
Definition at line 40 of file sqledit.hxx.
Referenced by DoScroll(), SetScrollBarRange(), and SQLEditView().