[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2021-03-08 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

Dipanshu Garg  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|libreoffice-b...@lists.free |dipan...@iitk.ac.in
   |desktop.org |

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2021-03-08 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

--- Comment #9 from Dipanshu Garg  ---
Hi, I would like to work on this.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2020-10-25 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

--- Comment #8 from Jim Raykowski  ---
(In reply to Jim Raykowski from comment #7)

> Any selection(s) when the cycle is initiated should be cleared and word
> selection should be done from current cursor position.

Maybe not clearing the current selections, like the ctrl+lmouse multiclicks
behavior, is better. SwCursorShell::ClearMark should be useful for implementing
this behavior and SwWrtShell::IsSelection and SwWrtShell::MoveCursor not
needed.

FWIW: sw/soure/uibase/docvw/edtwin.cxx SwEditWin::MouseButtonDown is where the
mouse multiclicks selection is implemented.

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2020-10-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

Heiko Tietze  changed:

   What|Removed |Added

   Keywords||difficultyMedium, easyHack,
   ||skillCpp, topicUI

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2020-10-24 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

--- Comment #7 from Jim Raykowski  ---
I think this is a nice opportunity for some fun LO hacking indeed :-)

Here are some code pointers: 

A user command for this will be needed.
Perhaps .uno:CycleSelection or .uno:SelectionCycle? 
Feel free to chime in with a better command name.

An example how to add a Writer user interface command is here:
https://gerrit.libreoffice.org/c/core/+/91605

Details of how this works is here:
https://wiki.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2

Look here to do the implemention of the command:
sw/source/uibase/uiview/view2.cxx
void SwView::ExecuteSfxRequest )

The original cursor position, point and mark positions of the selection cycle,
and selection cycle step number will be useful to store. A struct with a member
variable assigned in the SwView class might work well for this purpose.

Any selection(s) when the cycle is initiated should be cleared and word
selection should be done from current cursor position.
If point and/or mark positions are changed before the next selection cycle step
the cycle step should return to word selection.

The following functions will be of use to cycle selection thru word, sentence,
and paragraph and to set the cursor to the original cursor position with no
selection.

sw/inc/crsrsh.hxx
SwCursorShell::GetCursor_
SwCursorShell::SetCursor 

sw/inc/viscrs.hxx
SwShellCursor::GetPtPos
SwShellCursor::GetMkPos

sw/source/uibase/inc/wrtsh.hxx
SwWrtShell::IsSelection
SwWrtShell::MoveCursor
SwWrtShell::SelWrd
SwWrtShell::SelSentence
SwWrtShell::SelPara

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs


[Libreoffice-bugs] [Bug 137494] Cycle text selection per shortcut

2020-10-22 Thread bugzilla-daemon
https://bugs.documentfoundation.org/show_bug.cgi?id=137494

Heiko Tietze  changed:

   What|Removed |Added

Summary|Mode for text marking   |Cycle text selection per
   ||shortcut

-- 
You are receiving this mail because:
You are the assignee for the bug.___
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs