Was thinking to add 'Remove Direct Character Formats' to the Styles menu but it didnt work the way that i thought it would and wondered if anyone know what it does.
I think the dev mailing list is the proper place to ask such a question.
From http://opengrok.libreoffice.org/xref/core/sw/source/core/txtnode/ndtxt.cxx#1273 : // If positioned exactly at the end of a CharStyle or Hyperlink, // set its DontExpand flag. So basically if you put the cursor at the end of a text, this command will make the next text you type not follow the formatting of the former. It doesn't work with selected text.
(In reply to Maxim Monastirsky from comment #2) > So basically if you put the cursor at the end of a text, this command will > make the next text you type not follow the formatting of the former. It > doesn't work with selected text. Can this be modified to also work with selected text, or should we create a new UNO command for such a feature?
(In reply to Yousuf Philips (jay) from comment #3) > (In reply to Maxim Monastirsky from comment #2) > > So basically if you put the cursor at the end of a text, this command will > > make the next text you type not follow the formatting of the former. It > > doesn't work with selected text. "Remove Direct Character Formats" has shortcut keys Ctrl+Shift+X. It works. > > Can this be modified to also work with selected text, or should we create a > new UNO command for such a feature? Neither modify nor new command. There exists already Ctrl+M for selected text, which calls .uno:ResetAttributes, which is command "Clear" from category "Formatting" in the customize dialog.
(In reply to Regina Henschel from comment #4) > Neither modify nor new command. There exists already Ctrl+M for selected > text, which calls .uno:ResetAttributes, which is command "Clear" from > category "Formatting" in the customize dialog. That clears both paragraph and character level direct formatting when selecting an entire paragraph, and we do need a UNO command for clearing only character level direct formatting, which this command does but not for selected text.
(In reply to Yousuf Philips (jay) from comment #5) > and we do need a UNO command for clearing > only character level direct formatting, which this command does but not for > selected text. This commands also seems to revert to the default character style, so this is not what we want anyway.
(In reply to Maxim Monastirsky from comment #6) > This commands also seems to revert to the default character style, so this > is not what we want anyway. True. I guess creating new commands is the right option (bug 78371).