[Libreoffice-commits] .: sw/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Jan 23 13:15:23 PST 2013


 sw/source/ui/misc/outline.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit c3ea61ab29648bf93b3b4f809c7e98c40c1113f8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jan 23 21:14:53 2013 +0000

    set all format->untitled X menu entries to the same helpid
    
    Change-Id: I1d112948f6e0595329f44e34d8d1cba37ae8fd6e

diff --git a/sw/source/ui/misc/outline.cxx b/sw/source/ui/misc/outline.cxx
index a5d1142..5038025 100644
--- a/sw/source/ui/misc/outline.cxx
+++ b/sw/source/ui/misc/outline.cxx
@@ -244,6 +244,14 @@ IMPL_LINK( SwOutlineTabDialog, FormHdl, Button *, pBtn )
         if( pRules )
             pFormMenu->SetItemText(pFormMenu->GetItemId(i), pRules->GetName());
     }
+
+    OString sHelpId(pFormMenu->GetHelpId(pFormMenu->GetItemId("form1")));
+    for (sal_Int32 i = 2; i <= 9; ++i)
+    {
+        OString sForm("form");
+        pFormMenu->SetHelpId(pFormMenu->GetItemId(sForm + OString::valueOf(i)), sHelpId);
+    }
+
     pFormMenu->SetSelectHdl(LINK(this, SwOutlineTabDialog, MenuSelectHdl));
     pFormMenu->Execute(pBtn, Rectangle(Point(0,0), pBtn->GetSizePixel()), POPUPMENU_EXECUTE_DOWN);
     return 0;


More information about the Libreoffice-commits mailing list