[Libreoffice] Fix Bug 32559
Bálint Dózsa
dozsabalint at gmail.com
Wed Mar 16 09:56:48 PDT 2011
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/9f97c8bb/attachment.htm>
More information about the LibreOffice
mailing list