summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/m_srmm_int.h6
-rw-r--r--libs/win32/mir_app.libbin299036 -> 299050 bytes
-rw-r--r--libs/win64/mir_app.libbin299058 -> 299072 bytes
-rw-r--r--plugins/IEView/src/ieview_logger.cpp2
-rw-r--r--plugins/NewStory/src/history_log.cpp4
-rw-r--r--plugins/Scriver/src/msgdialog.cpp2
-rw-r--r--plugins/TabSRMM/src/msgdialog.cpp2
-rw-r--r--src/mir_app/src/mir_app.def2
-rw-r--r--src/mir_app/src/mir_app64.def2
-rw-r--r--src/mir_app/src/srmm_log_hpp.cpp2
-rw-r--r--src/mir_app/src/srmm_log_rtf.cpp2
11 files changed, 12 insertions, 12 deletions
diff --git a/include/m_srmm_int.h b/include/m_srmm_int.h
index b33980c301..31f5b38ec0 100644
--- a/include/m_srmm_int.h
+++ b/include/m_srmm_int.h
@@ -133,14 +133,14 @@ public:
virtual void Clear() = 0;
virtual int GetType() = 0;
virtual HWND GetHwnd() = 0;
- virtual wchar_t* GetSelection() = 0;
+ virtual wchar_t* GetSelectedText() = 0;
virtual void LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) = 0;
virtual void LogChatEvents(const LOGINFO *lin) = 0;
virtual void Resize() = 0;
virtual void ScrollToBottom() = 0;
virtual void UpdateOptions() {};
- virtual INT_PTR Notify(WPARAM, LPARAM) { return 0; }
+ virtual INT_PTR Notify(WPARAM, LPARAM) { return 0; }
__forceinline CMsgDialog& GetDialog() const
{ return m_pDlg;
@@ -260,7 +260,7 @@ public:
bool AtBottom() override;
void Clear() override;
HWND GetHwnd() override;
- wchar_t* GetSelection() override;
+ wchar_t* GetSelectedText() override;
int GetType() override;
void Resize() override;
void ScrollToBottom() override;
diff --git a/libs/win32/mir_app.lib b/libs/win32/mir_app.lib
index fc7ac5fc2a..79cb0fda50 100644
--- a/libs/win32/mir_app.lib
+++ b/libs/win32/mir_app.lib
Binary files differ
diff --git a/libs/win64/mir_app.lib b/libs/win64/mir_app.lib
index 3fd991676e..d6e30a429e 100644
--- a/libs/win64/mir_app.lib
+++ b/libs/win64/mir_app.lib
Binary files differ
diff --git a/plugins/IEView/src/ieview_logger.cpp b/plugins/IEView/src/ieview_logger.cpp
index 20391f34a3..e70eac0b20 100644
--- a/plugins/IEView/src/ieview_logger.cpp
+++ b/plugins/IEView/src/ieview_logger.cpp
@@ -78,7 +78,7 @@ public:
return m_hwnd;
}
- wchar_t* GetSelection() override
+ wchar_t* GetSelectedText() override
{
auto *view = IEView::get(m_hwnd);
return (view != nullptr) ? view->selection() : nullptr;
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index 1cd971f388..7f1b35bb9b 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -63,9 +63,9 @@ public:
return m_hwnd;
}
- wchar_t *GetSelection() override
+ wchar_t* GetSelectedText() override
{
- return nullptr;
+ return m_histCtrl->GatherSelected(true).Detach();
}
int GetType() override
diff --git a/plugins/Scriver/src/msgdialog.cpp b/plugins/Scriver/src/msgdialog.cpp
index 69783ba143..ff8c9b9a98 100644
--- a/plugins/Scriver/src/msgdialog.cpp
+++ b/plugins/Scriver/src/msgdialog.cpp
@@ -371,7 +371,7 @@ void CMsgDialog::onClick_Quote(CCtrlButton*)
if (!hDbEventLast)
return;
- wchar_t *buffer = m_pLog->GetSelection();
+ wchar_t *buffer = m_pLog->GetSelectedText();
if (buffer != nullptr) {
SetMessageText(Srmm_Quote(buffer));
mir_free(buffer);
diff --git a/plugins/TabSRMM/src/msgdialog.cpp b/plugins/TabSRMM/src/msgdialog.cpp
index 8cd71399bb..d9fd2c3804 100644
--- a/plugins/TabSRMM/src/msgdialog.cpp
+++ b/plugins/TabSRMM/src/msgdialog.cpp
@@ -904,7 +904,7 @@ void CMsgDialog::onClick_Quote(CCtrlButton*)
CMStringW szQuoted;
int iOutputWidth = M.GetDword("quoteLineLength", 64);
- wchar_t *selected = m_pLog->GetSelection();
+ wchar_t *selected = m_pLog->GetSelectedText();
if (selected != nullptr)
szQuoted = Srmm_Quote(selected, iOutputWidth);
else {
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def
index f6235f268c..893a2882d6 100644
--- a/src/mir_app/src/mir_app.def
+++ b/src/mir_app/src/mir_app.def
@@ -664,7 +664,7 @@ UnregisterHppLogger @786
?Clear@CRtfLogWindow@@UAEXXZ @795 NONAME
?Detach@CRtfLogWindow@@UAEXXZ @796 NONAME
?GetHwnd@CRtfLogWindow@@UAEPAUHWND__@@XZ @797 NONAME
-?GetSelection@CRtfLogWindow@@UAEPA_WXZ @798 NONAME
+?GetSelectedText@CRtfLogWindow@@UAEPA_WXZ @798 NONAME
?Notify@CRtfLogWindow@@UAEHIJ@Z @799 NONAME
?Notify@CSrmmLogWindow@@UAEHIJ@Z @800 NONAME
?Resize@CRtfLogWindow@@UAEXXZ @801 NONAME
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def
index a09d88051d..cdb622cf2a 100644
--- a/src/mir_app/src/mir_app64.def
+++ b/src/mir_app/src/mir_app64.def
@@ -664,7 +664,7 @@ UnregisterHppLogger @786
?Clear@CRtfLogWindow@@UEAAXXZ @795 NONAME
?Detach@CRtfLogWindow@@UEAAXXZ @796 NONAME
?GetHwnd@CRtfLogWindow@@UEAAPEAUHWND__@@XZ @797 NONAME
-?GetSelection@CRtfLogWindow@@UEAAPEA_WXZ @798 NONAME
+?GetSelectedText@CRtfLogWindow@@UEAAPEA_WXZ @798 NONAME
?Notify@CRtfLogWindow@@UEAA_J_K_J@Z @799 NONAME
?Notify@CSrmmLogWindow@@UEAA_J_K_J@Z @800 NONAME
?Resize@CRtfLogWindow@@UEAAXXZ @801 NONAME
diff --git a/src/mir_app/src/srmm_log_hpp.cpp b/src/mir_app/src/srmm_log_hpp.cpp
index 6ed8df33d5..8ba597d173 100644
--- a/src/mir_app/src/srmm_log_hpp.cpp
+++ b/src/mir_app/src/srmm_log_hpp.cpp
@@ -85,7 +85,7 @@ public:
return 2;
}
- wchar_t* GetSelection() override
+ wchar_t* GetSelectedText() override
{
IEVIEWEVENT event = {};
event.hwnd = m_hwnd;
diff --git a/src/mir_app/src/srmm_log_rtf.cpp b/src/mir_app/src/srmm_log_rtf.cpp
index 0531b3e445..96ebee13ab 100644
--- a/src/mir_app/src/srmm_log_rtf.cpp
+++ b/src/mir_app/src/srmm_log_rtf.cpp
@@ -138,7 +138,7 @@ static DWORD CALLBACK StreamOutCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG
return 0;
}
-wchar_t* CRtfLogWindow::GetSelection()
+wchar_t* CRtfLogWindow::GetSelectedText()
{
CHARRANGE sel;
SendMessage(m_rtf.GetHwnd(), EM_EXGETSEL, 0, (LPARAM)&sel);