20#include <svx/svxids.hrc>
36 , m_xSQL(new
SQLEditView(m_xBuilder->weld_scrolled_window(
"scrolledwindow", true)))
37 , m_xSQLEd(new
weld::CustomWeld(*m_xBuilder,
"sql", *m_xSQL))
38 , m_timerUndoActionCreation(
"dbaccess OQueryTextView m_timerUndoActionCreation")
39 , m_timerInvalidate(
"dbaccess OQueryTextView m_timerInvalidate")
42 m_xSQL->DisableInternalUndo();
45 m_xSQL->SetAcceptsTab(
true);
57 if (m_timerUndoActionCreation.IsActive())
58 m_timerUndoActionCreation.Stop();
59 m_timerUndoActionCreation.Start();
71 OUString aText = m_xSQL->GetText();
72 if (aText == m_strOrigText)
78 xUndoAct->SetOriginalText(m_strOrigText);
84 m_strOrigText = aText;
92 m_timerInvalidate.Start();
137 xUndoAct->SetOriginalText(
m_xSQL->GetText());
153 OnUndoActionTimer(
nullptr);
156 m_xSQL->SetTextAndUpdate(rNewText);
virtual void dispose() override
virtual void GetFocus() override
virtual void AddUndoAction(std::unique_ptr< SfxUndoAction > pAction, bool bTryMerg=false)
void SetTimeout(sal_uInt64 nTimeoutMs)
void SetInvokeHandler(const Link< Timer *, void > &rLink)
virtual void Start(bool bStartTimer=true) override
OUString GetSQLText() const
std::unique_ptr< SQLEditView > m_xSQL
virtual ~OQueryTextView() override
Timer m_timerUndoActionCreation
void SetSQLText(const OUString &rNewText)
bool isCutAllowed() const
std::unique_ptr< weld::CustomWeld > m_xSQLEd
virtual void dispose() override
void setStatement(const OUString &_rsStatement)
OQueryController & m_rController
OUString getStatement() const
virtual void GetFocus() override
void addUndoActionAndInvalidate(std::unique_ptr< SfxUndoAction > pAction)
addUndoActionAndInvalidate adds an undo action to the undoManager, additionally invalidates the UNDO ...
ClassificationCategoriesController & m_rController
constexpr OUStringLiteral HID_CTL_QRYSQLEDIT
#define LINK(Instance, Class, Member)
IMPL_LINK_NOARG(OApplicationController, OnClipboardChanged, TransferableDataHelper *, void)