[Libreoffice] Fix Bug 32559

Bálint Dózsa dozsabalint at gmail.com
Wed Mar 16 13:45:22 PDT 2011


Hi,

Here is a modification. (Shift+F3 is not hardcoded)

Balint

2011. március 16. 17:56 Bálint Dózsa írta, <dozsabalint at gmail.com>:

> Thanks for helping.
> I'm working on it
>
> Balint
>
> 2011. március 15. 17:43 Caolán McNamara írta, <caolanm at redhat.com>:
>
> On Wed, 2011-03-09 at 15:50 +0100, Bálint Dózsa wrote:
>> > Hi,
>> >
>> > Here is the correction patch
>>
>> This looks reasonable so far, though it might be better to avoid
>> hardcoding a "case KEY_F3 | KEY_SHIFT" to run this stuff, and instead
>> move it around a bit to make it configurable, (though that seems like a
>> good default)
>>
>> Doing it the configurable way is a bit[1] involved, but here's the rough
>> guide
>>
>> search for something similar, e.g. SID_TRANSLITERATE_TOGGLE_CASE
>>
>> starting at
>> http://opengrok.libreoffice.org/xref/libs-core/svx/inc/svx/svxids.hrc
>> add a new one, e.g. SID_TRANSLITERATE_ROTATE_CASE
>>
>> In svx/sdi/svx.sdi copy and paste the
>> SfxVoidItem ChangeCaseToToggleCase SID_TRANSLITERATE_TOGGLE_CASE entry
>> to e.g.
>> SfxVoidItem ChangeCaseRotateCase SID_TRANSLITERATE_ROTATE_CASE
>>
>> Where SID_TRANSLITERATE_TOGGLE_CASE appears in the other .sdi files (use
>> opengrok to find them, e.g. sw/sdi/_textsh.sdi) add an entry for
>> SID_TRANSLITERATE_ROTATE_CASE by copying and pasting the
>> SID_TRANSLITERATE_ROTATE_CASE one except change the impl name e.g.
>> ExecTransliteration -> ExecRotateTransliteration
>>
>> For writer you can then implement ExecRotateTransliteration like you've
>> already done to call TransliterateText with a nMode which advances from
>> the previous one on each attempt.
>>
>> In officecfg/registry grep for ChangeCaseToToggleCase and some cut and
>> paste to give yourself a ChangeCaseRotateCase entry in there
>>
>> To set an accelerator key combo for it then see
>> officecfg/registry/data/org/openoffice/Office/Accelerators.xcu
>> Doing is this involved way allows the feature to appear in
>> tools->customize->keyboard etc.
>>
>> C.
>>
>> [1] understatement of the year
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110316/a2534c7e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0020-FIX-BUG-32559.patch
Type: text/x-patch
Size: 6928 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110316/a2534c7e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0021-FIX-BUG-32559.patch
Type: text/x-patch
Size: 3059 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/libreoffice/attachments/20110316/a2534c7e/attachment-0001.bin>


More information about the LibreOffice mailing list