https://bugs.documentfoundation.org/show_bug.cgi?id=159444

--- Comment #3 from Hossein <[email protected]> ---
(In reply to Heiko Tietze from comment #1)
> Prototype in https://gerrit.libreoffice.org/c/core/+/153505
> 
> Hossein, please add a code pointer where the Fieldnames command is execute
> (cannot find a SID_FIELDNAMES).
Starting from the menu text, "View > Field Names", one can find pointers:

$ git grep "Field Names"
officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu:         
<value xml:lang="en-US">~Field Names</value>

This is the relevant part from the above file:
      <node oor:name=".uno:Fieldnames" oor:op="replace">
        <prop oor:name="Label" oor:type="xs:string">
          <value xml:lang="en-US">~Field Names</value>
        </prop>
        <prop oor:name="Properties" oor:type="xs:int">
          <value>1</value>
        </prop>
      </node>

Then UNO command for this purpose is ".uno:Fieldnames". Searching for this
command leads to sw/sdi/swriter.sdi which defines it:

$ git grep Fieldnames
...
sw/sdi/swriter.sdi:SfxBoolItem Fieldnames FN_VIEW_FIELDNAME
...

And this is the relevant part:

SfxBoolItem Fieldnames FN_VIEW_FIELDNAME

[
    AutoUpdate = FALSE,
    FastCall = FALSE,
    ReadOnlyDoc = TRUE,
    Toggle = FALSE,
    Container = FALSE,
    RecordAbsolute = FALSE,
    RecordPerSet;


    AccelConfig = TRUE,
    MenuConfig = TRUE,
    ToolBoxConfig = TRUE,
    GroupId = SfxGroupId::View;
]

Following FN_VIEW_FIELDNAME, one can find sw/source/uibase/uiview/view0.cxx,
which is used to handle that menu option, and also as an accelerator with
F9_MOD1 (Ctrl+F9) in
officecfg/registry/data/org/openoffice/Office/Accelerators.xcu:

$ git grep FN_VIEW_FIELDNAME *.cxx
sw/source/uibase/uiview/view0.cxx:            //FN_VIEW_FIELDNAME,    /**/
sw/source/uibase/uiview/view0.cxx:            case FN_VIEW_FIELDNAME:
sw/source/uibase/uiview/view0.cxx:    case FN_VIEW_FIELDNAME:

EasyHacker should do something similar done in below patch, to define a dialog
that will be showed for the first time. The code changes should be done in
sw/source/uibase/uiview/view0.cxx. After querying configuration to make sure
that showing hint is still enabled (should be true for the first time), then
the hint dialog should be displayed.

153505: Resolves tdf#155561 - Notification for the overwrite mode
https://gerrit.libreoffice.org/c/core/+/153505

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to