kbrown / rpms / libreoffice

Forked from rpms/libreoffice 2 years ago
Clone

Blame SOURCES/0001-add-a-format-all-comments-feature.patch

f085be
From ebb728c9c01b5e86926381fa816cf69cb3eb1e37 Mon Sep 17 00:00:00 2001
f085be
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
f085be
Date: Tue, 22 Apr 2014 17:06:26 +0100
f085be
Subject: [PATCH] add a 'format all comments' feature
f085be
f085be
Change-Id: Ie9530f0f58b38d014beda60b9efba3ce93fe5c0e
f085be
---
f085be
 .../org/openoffice/Office/UI/GenericCommands.xcu   |  5 ++
f085be
 sw/inc/PostItMgr.hxx                               |  5 ++
f085be
 sw/inc/cmdid.h                                     |  2 +-
f085be
 sw/inc/swcommands.h                                |  1 +
f085be
 sw/sdi/_annotsh.sdi                                |  6 ++
f085be
 sw/sdi/_textsh.sdi                                 |  5 ++
f085be
 sw/sdi/swriter.sdi                                 | 24 +++++++
f085be
 .../core/uibase/docvw/AnnotationMenuButton.cxx     |  2 +
f085be
 sw/source/core/uibase/docvw/PostItMgr.cxx          | 77 +++++++++++++++++++++-
f085be
 sw/source/core/uibase/docvw/SidebarWin.cxx         |  1 +
f085be
 sw/source/core/uibase/docvw/annotation.hrc         |  1 +
f085be
 sw/source/core/uibase/inc/annotsh.hxx              |  2 +
f085be
 sw/source/core/uibase/shells/annotsh.cxx           | 17 +++--
f085be
 sw/source/core/uibase/shells/textfld.cxx           | 14 +++-
f085be
 sw/source/ui/app/mn.src                            |  6 ++
f085be
 sw/source/ui/docvw/annotation.src                  |  5 ++
f085be
 16 files changed, 166 insertions(+), 7 deletions(-)
f085be
f085be
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
f085be
index a16b900..a2d997c 100644
f085be
--- a/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
f085be
+++ b/officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
f085be
@@ -5298,6 +5298,11 @@
f085be
           <value xml:lang="en-US">Delete All Comments</value>
f085be
         </prop>
f085be
       </node>
f085be
+      <node oor:name=".uno:FormatAllNotes" oor:op="replace">
f085be
+        <prop oor:name="Label" oor:type="xs:string">
f085be
+          <value xml:lang="en-US">Format All Comments</value>
f085be
+        </prop>
f085be
+      </node>
f085be
       <node oor:name=".uno:DeleteAuthor" oor:op="replace">
f085be
         <prop oor:name="Label" oor:type="xs:string">
f085be
           <value xml:lang="en-US">Delete All Comments by This Author</value>
f085be
diff --git a/sw/inc/PostItMgr.hxx b/sw/inc/PostItMgr.hxx
f085be
index 0ac0273..56760fd 100644
f085be
--- a/sw/inc/PostItMgr.hxx
f085be
+++ b/sw/inc/PostItMgr.hxx
f085be
@@ -44,6 +44,8 @@ class SfxBroadcaster;
f085be
 class SfxHint;
f085be
 class SwEditWin;
f085be
 class Color;
f085be
+class SfxItemPool;
f085be
+class SfxItemSet;
f085be
 class SvxSearchItem;
f085be
 class SvxLanguageItem;
f085be
 namespace sw { namespace annotation {
f085be
@@ -219,6 +221,9 @@ class SwPostItMgr: public SfxListener
f085be
             void Delete(OUString aAuthor);
f085be
             void Delete();
f085be
 
f085be
+            void ExecuteFormatAllDialog(SwView& rView);
f085be
+            void FormatAll(const SfxItemSet &rNewAttr);
f085be
+
f085be
             void Hide( const OUString& rAuthor );
f085be
             void Hide();
f085be
             void Show();
f085be
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
f085be
index 7d506a3..b10359a 100644
f085be
--- a/sw/inc/cmdid.h
f085be
+++ b/sw/inc/cmdid.h
f085be
@@ -780,7 +780,7 @@ included in c-context files, so c++ style stuff will cause problems.
f085be
 
f085be
 #define FN_DELETE_COMMENT           (FN_NOTES+6)
f085be
 #define FN_REPLY                    (FN_NOTES+7)
f085be
-
f085be
+#define FN_FORMAT_ALL_NOTES         (FN_NOTES+8)
f085be
 
f085be
 #define FN_HEADERFOOTER_EDIT        (FN_HEADERFOOTER+1)
f085be
 #define FN_HEADERFOOTER_DELETE      (FN_HEADERFOOTER+2)
f085be
diff --git a/sw/inc/swcommands.h b/sw/inc/swcommands.h
f085be
index 0f5cd54..cc9bc07 100644
f085be
--- a/sw/inc/swcommands.h
f085be
+++ b/sw/inc/swcommands.h
f085be
@@ -116,6 +116,7 @@
f085be
 #define CMD_FN_DELETE_COMMENT                       ".uno:DeleteComment"
f085be
 #define CMD_FN_DELETE_NOTE_AUTHOR                   ".uno:DeleteAuthor"
f085be
 #define CMD_FN_DELETE_ALL_NOTES                     ".uno:DeleteAllNotes"
f085be
+#define CMD_FN_FORMAT_ALL_NOTES                     ".uno:FormatAllNotes"
f085be
 #define CMD_FN_HIDE_NOTE                            ".uno:HideNote"
f085be
 #define CMD_FN_HIDE_NOTE_AUTHOR                     ".uno:HideAuthor"
f085be
 #define CMD_FN_HIDE_ALL_NOTES                       ".uno:HideAllNotes"
f085be
diff --git a/sw/sdi/_annotsh.sdi b/sw/sdi/_annotsh.sdi
f085be
index 142d5e7..15f03ad 100644
f085be
--- a/sw/sdi/_annotsh.sdi
f085be
+++ b/sw/sdi/_annotsh.sdi
f085be
@@ -37,6 +37,12 @@ interface _Annotation
f085be
         StateMethod = GetNoteState ;
f085be
     ]
f085be
 
f085be
+    FN_FORMAT_ALL_NOTES
f085be
+    [
f085be
+        ExecMethod = NoteExec ;
f085be
+        StateMethod = GetNoteState ;
f085be
+    ]
f085be
+
f085be
     FN_HIDE_NOTE
f085be
     [
f085be
         ExecMethod = NoteExec ;
f085be
diff --git a/sw/sdi/_textsh.sdi b/sw/sdi/_textsh.sdi
f085be
index 0fb5cdb..c90bfcd 100644
f085be
--- a/sw/sdi/_textsh.sdi
f085be
+++ b/sw/sdi/_textsh.sdi
f085be
@@ -941,6 +941,11 @@ interface BaseText
f085be
         ExecMethod = ExecField ;
f085be
         StateMethod = StateField;
f085be
     ]
f085be
+    FN_FORMAT_ALL_NOTES
f085be
+    [
f085be
+        ExecMethod = ExecField ;
f085be
+        StateMethod = StateField;
f085be
+    ]
f085be
     FN_HIDE_NOTE
f085be
     [
f085be
         ExecMethod = ExecField ;
f085be
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
f085be
index f8218fe..9312844 100644
f085be
--- a/sw/sdi/swriter.sdi
f085be
+++ b/sw/sdi/swriter.sdi
f085be
@@ -9920,6 +9920,30 @@ SfxVoidItem DeleteAllNotes FN_DELETE_ALL_NOTES
f085be
     GroupId = GID_EDIT;
f085be
 ]
f085be
 
f085be
+SfxVoidItem FormatAllNotes FN_FORMAT_ALL_NOTES
f085be
+()
f085be
+[
f085be
+    /* flags: */
f085be
+    AutoUpdate = FALSE,
f085be
+    Cachable = Cachable,
f085be
+    FastCall = FALSE,
f085be
+    HasCoreId = FALSE,
f085be
+    HasDialog = FALSE,
f085be
+    ReadOnlyDoc = FALSE,
f085be
+    Toggle = FALSE,
f085be
+    Container = FALSE,
f085be
+    RecordAbsolute = FALSE,
f085be
+    RecordPerSet;
f085be
+    Synchron;
f085be
+
f085be
+    /* config: */
f085be
+    AccelConfig = TRUE,
f085be
+    MenuConfig = TRUE,
f085be
+    StatusBarConfig = FALSE,
f085be
+    ToolBoxConfig = TRUE,
f085be
+    GroupId = GID_EDIT;
f085be
+]
f085be
+
f085be
 //--------------------------------------------------------------------------
f085be
 SfxVoidItem HideNote FN_HIDE_NOTE
f085be
 ()
f085be
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src
f085be
index eb5ee0e..94ddb2f 100644
f085be
--- a/sw/source/ui/app/mn.src
f085be
+++ b/sw/source/ui/app/mn.src
f085be
@@ -761,6 +761,12 @@ location: <project>/uiconfig/[swriter|sweb|sglobal]/menubar/menubar.xml
f085be
         HelpId = CMD_FN_DELETE_ALL_NOTES ;\
f085be
         Text [ en-US ] = "~Delete All Comments" ;\
f085be
     };\
f085be
+    MenuItem\
f085be
+    {\
f085be
+        Identifier = FN_FORMAT_ALL_NOTES ;\
f085be
+        HelpId = CMD_FN_FORMAT_ALL_NOTES ;\
f085be
+        Text [ en-US ] = "~Format All Comments" ;\
f085be
+    };\
f085be
     /*
f085be
     MenuItem\
f085be
     {\
f085be
diff --git a/sw/source/ui/docvw/AnnotationMenuButton.cxx b/sw/source/ui/docvw/AnnotationMenuButton.cxx
f085be
index 0bd4bf2..218daee 100644
f085be
--- a/sw/source/ui/docvw/AnnotationMenuButton.cxx
f085be
+++ b/sw/source/ui/docvw/AnnotationMenuButton.cxx
f085be
@@ -74,12 +74,14 @@ void AnnotationMenuButton::MouseButtonDown( const MouseEvent& rMEvt )
f085be
         pButtonPopup->EnableItem( FN_DELETE_COMMENT, false );
f085be
         pButtonPopup->EnableItem( FN_DELETE_NOTE_AUTHOR, false );
f085be
         pButtonPopup->EnableItem( FN_DELETE_ALL_NOTES, false );
f085be
+        pButtonPopup->EnableItem( FN_FORMAT_ALL_NOTES, false );
f085be
     }
f085be
     else
f085be
     {
f085be
         pButtonPopup->EnableItem( FN_DELETE_COMMENT, !mrSidebarWin.IsProtected() );
f085be
         pButtonPopup->EnableItem( FN_DELETE_NOTE_AUTHOR, true );
f085be
         pButtonPopup->EnableItem( FN_DELETE_ALL_NOTES, true );
f085be
+        pButtonPopup->EnableItem( FN_FORMAT_ALL_NOTES, true );
f085be
     }
f085be
 
f085be
     if ( mrSidebarWin.IsProtected() )
f085be
diff --git a/sw/source/ui/docvw/PostItMgr.cxx b/sw/source/ui/docvw/PostItMgr.cxx
f085be
index e6b7cb6..c2b1225 100644
f085be
--- a/sw/source/ui/docvw/PostItMgr.cxx
f085be
+++ b/sw/source/ui/docvw/PostItMgr.cxx
f085be
@@ -34,8 +34,8 @@
f085be
 #include <vcl/scrbar.hxx>
f085be
 #include <vcl/outdev.hxx>
f085be
 
f085be
+#include <chrdlgmodes.hxx>
f085be
 #include <viewopt.hxx>
f085be
-
f085be
 #include <view.hxx>
f085be
 #include <docsh.hxx>
f085be
 #include <wrtsh.hxx>
f085be
@@ -67,11 +67,14 @@
f085be
 #include <svx/svdview.hxx>
f085be
 #include <editeng/eeitem.hxx>
f085be
 #include <editeng/langitem.hxx>
f085be
+#include <editeng/kernitem.hxx>
f085be
 #include <editeng/outliner.hxx>
f085be
 
f085be
 #include <i18nlangtag/mslangid.hxx>
f085be
 #include <i18nlangtag/lang.h>
f085be
 
f085be
+#include "annotsh.hxx"
f085be
+#include "swabstdlg.hxx"
f085be
 #include "swevent.hxx"
f085be
 #include "switerator.hxx"
f085be
 
f085be
@@ -1227,6 +1230,78 @@ void SwPostItMgr::Delete()
f085be
     CalcRects();
f085be
     LayoutPostIts();
f085be
 }
f085be
+
f085be
+void SwPostItMgr::ExecuteFormatAllDialog(SwView& rView)
f085be
+{
f085be
+    if (mvPostItFlds.empty())
f085be
+        return;
f085be
+    sw::sidebarwindows::SwSidebarWin *pOrigActiveWin = GetActiveSidebarWin();
f085be
+    sw::sidebarwindows::SwSidebarWin *pWin = pOrigActiveWin;
f085be
+    if (!pWin)
f085be
+    {
f085be
+        for (SwSidebarItem_iterator i = mvPostItFlds.begin(); i != mvPostItFlds.end(); ++i)
f085be
+        {
f085be
+            pWin = (*i)->pPostIt;
f085be
+            if (pWin)
f085be
+                break;
f085be
+        }
f085be
+    }
f085be
+    if (!pWin)
f085be
+        return;
f085be
+    SetActiveSidebarWin(pWin);
f085be
+    OutlinerView* pOLV = pWin->GetOutlinerView();
f085be
+    SfxItemSet aEditAttr(pOLV->GetAttribs());
f085be
+    SfxItemPool* pPool(SwAnnotationShell::GetAnnotationPool(rView));
f085be
+    SfxItemSet aDlgAttr(*pPool, EE_ITEMS_START, EE_ITEMS_END);
f085be
+    aDlgAttr.Put(aEditAttr);
f085be
+    SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
f085be
+    SfxAbstractTabDialog* pDlg = pFact->CreateSwCharDlg(rView.GetWindow(), rView, aDlgAttr, DLG_CHAR_ANN);
f085be
+    sal_uInt16 nRet = pDlg->Execute();
f085be
+    if (RET_OK == nRet)
f085be
+    {
f085be
+        aDlgAttr.Put(*pDlg->GetOutputItemSet());
f085be
+        FormatAll(aDlgAttr);
f085be
+    }
f085be
+    delete pDlg;
f085be
+    SetActiveSidebarWin(pOrigActiveWin);
f085be
+}
f085be
+
f085be
+void SwPostItMgr::FormatAll(const SfxItemSet &rNewAttr)
f085be
+{
f085be
+    mpWrtShell->StartAllAction();
f085be
+    SwRewriter aRewriter;
f085be
+    aRewriter.AddRule(UndoArg1, SW_RES(STR_FORMAT_ALL_NOTES) );
f085be
+    mpWrtShell->StartUndo( UNDO_INSATTR, &aRewriter );
f085be
+
f085be
+    for(SwSidebarItem_iterator i = mvPostItFlds.begin(); i != mvPostItFlds.end() ; ++i)
f085be
+    {
f085be
+        if (!(*i)->pPostIt)
f085be
+            continue;
f085be
+        OutlinerView* pOLV = (*i)->pPostIt->GetOutlinerView();
f085be
+        //save old selection
f085be
+        ESelection aOrigSel(pOLV->GetSelection());
f085be
+        //select all
f085be
+        Outliner *pOutliner = pOLV->GetOutliner();
f085be
+        if (pOutliner)
f085be
+        {
f085be
+            sal_Int32 nParaCount = pOutliner->GetParagraphCount();
f085be
+            if (nParaCount > 0)
f085be
+                pOLV->SelectRange(0, nParaCount);
f085be
+        }
f085be
+        //set new char properties
f085be
+        pOLV->SetAttribs(rNewAttr);
f085be
+        //restore old selection
f085be
+        pOLV->SetSelection(aOrigSel);
f085be
+    }
f085be
+
f085be
+    mpWrtShell->EndUndo();
f085be
+    PrepareView();
f085be
+    mpWrtShell->EndAllAction();
f085be
+    mbLayout = true;
f085be
+    CalcRects();
f085be
+    LayoutPostIts();
f085be
+}
f085be
+
f085be
 void SwPostItMgr::Hide( const OUString& rAuthor )
f085be
 {
f085be
     for(SwSidebarItem_iterator i = mvPostItFlds.begin(); i != mvPostItFlds.end() ; ++i)
f085be
diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx
f085be
index 275b72e..4a0d4a7 100644
f085be
--- a/sw/source/ui/docvw/SidebarWin.cxx
f085be
+++ b/sw/source/ui/docvw/SidebarWin.cxx
f085be
@@ -971,6 +971,7 @@ void SwSidebarWin::ExecuteCommand(sal_uInt16 nSlot)
f085be
                 //Delete(); // do not kill the parent of our open popup menu
f085be
                 mnEventId = Application::PostUserEvent( LINK( this, SwSidebarWin, DeleteHdl), 0 );
f085be
             break;
f085be
+        case FN_FORMAT_ALL_NOTES:
f085be
         case FN_DELETE_ALL_NOTES:
f085be
         case FN_HIDE_ALL_NOTES:
f085be
             // not possible as slot as this would require that "this" is the active postit
f085be
diff --git a/sw/source/ui/docvw/annotation.hrc b/sw/source/ui/docvw/annotation.hrc
f085be
index 7daf555..5fe3e49 100644
f085be
--- a/sw/source/ui/docvw/annotation.hrc
f085be
+++ b/sw/source/ui/docvw/annotation.hrc
f085be
@@ -32,6 +32,7 @@
f085be
 #define STR_NOAUTHOR                    (RC_ANNOTATION_BEGIN +  6)
f085be
 
f085be
 #define STR_REPLY                       (RC_ANNOTATION_BEGIN +  7)
f085be
+#define STR_FORMAT_ALL_NOTES            (RC_ANNOTATION_BEGIN +  8)
f085be
 
f085be
 
f085be
 #define ANNOTATION_ACT_END   STR_REPLY
f085be
diff --git a/sw/source/ui/docvw/annotation.src b/sw/source/ui/docvw/annotation.src
f085be
index 46afad9..a45c3ca 100644
f085be
--- a/sw/source/ui/docvw/annotation.src
f085be
+++ b/sw/source/ui/docvw/annotation.src
f085be
@@ -35,6 +35,11 @@ String STR_DELETE_ALL_NOTES
f085be
     Text [ en-US ] = "All Comments" ;
f085be
 };
f085be
 
f085be
+String STR_FORMAT_ALL_NOTES
f085be
+{
f085be
+    Text [ en-US ] = "All Comments" ;
f085be
+};
f085be
+
f085be
 String STR_DELETE_AUTHOR_NOTES
f085be
 {
f085be
     Text [ en-US ] = "Comments by " ;
f085be
diff --git a/sw/source/ui/inc/annotsh.hxx b/sw/source/ui/inc/annotsh.hxx
f085be
index 5872c95..09961a7 100644
f085be
--- a/sw/source/ui/inc/annotsh.hxx
f085be
+++ b/sw/source/ui/inc/annotsh.hxx
f085be
@@ -68,6 +68,8 @@ public:
f085be
 
f085be
     virtual ::svl::IUndoManager*
f085be
                 GetUndoManager();
f085be
+
f085be
+    static SfxItemPool* GetAnnotationPool(SwView& rV);
f085be
 };
f085be
 
f085be
 #endif
f085be
diff --git a/sw/source/ui/shells/annotsh.cxx b/sw/source/ui/shells/annotsh.cxx
f085be
index 1106013..c83a99d 100644
f085be
--- a/sw/source/ui/shells/annotsh.cxx
f085be
+++ b/sw/source/ui/shells/annotsh.cxx
f085be
@@ -145,11 +145,16 @@ SFX_IMPL_INTERFACE(SwAnnotationShell, SfxShell, SW_RES(STR_SHELLNAME_DRAW_TEXT))
f085be
 
f085be
 TYPEINIT1(SwAnnotationShell,SfxShell)
f085be
 
f085be
+SfxItemPool* SwAnnotationShell::GetAnnotationPool(SwView& rV)
f085be
+{
f085be
+    SwWrtShell &rSh = rV.GetWrtShell();
f085be
+    return rSh.GetAttrPool().GetSecondaryPool();
f085be
+}
f085be
+
f085be
 SwAnnotationShell::SwAnnotationShell( SwView& r )
f085be
-: rView(r)
f085be
+    : rView(r)
f085be
 {
f085be
-    SwWrtShell &rSh = rView.GetWrtShell();
f085be
-    SetPool(rSh.GetAttrPool().GetSecondaryPool());
f085be
+    SetPool(SwAnnotationShell::GetAnnotationPool(rView));
f085be
     SfxShell::SetContextName(sfx2::sidebar::EnumContext::GetContextName(sfx2::sidebar::EnumContext::Context_Annotation));
f085be
 }
f085be
 
f085be
@@ -1087,9 +1092,12 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
f085be
             pPostItMgr->GetActiveSidebarWin()->ExecuteCommand(nSlot);
f085be
         break;
f085be
 
f085be
-    case FN_DELETE_ALL_NOTES:
f085be
+        case FN_DELETE_ALL_NOTES:
f085be
             pPostItMgr->Delete();
f085be
             break;
f085be
+        case FN_FORMAT_ALL_NOTES:
f085be
+            pPostItMgr->ExecuteFormatAllDialog(rView);
f085be
+            break;
f085be
         case FN_DELETE_NOTE_AUTHOR:
f085be
         {
f085be
             SFX_REQUEST_ARG( rReq, pItem, SfxStringItem, nSlot, sal_False);
f085be
@@ -1124,6 +1132,7 @@ void SwAnnotationShell::GetNoteState(SfxItemSet &rSet)
f085be
         case FN_POSTIT:
f085be
         case FN_DELETE_NOTE_AUTHOR:
f085be
         case FN_DELETE_ALL_NOTES:
f085be
+        case FN_FORMAT_ALL_NOTES:
f085be
         case FN_HIDE_NOTE:
f085be
         case FN_HIDE_NOTE_AUTHOR:
f085be
         case FN_HIDE_ALL_NOTES:
f085be
diff --git a/sw/source/ui/shells/textfld.cxx b/sw/source/ui/shells/textfld.cxx
f085be
index a7050c4..7289f37 100644
f085be
--- a/sw/source/ui/shells/textfld.cxx
f085be
+++ b/sw/source/ui/shells/textfld.cxx
f085be
@@ -18,9 +18,13 @@
f085be
  */
f085be
 
f085be
 
f085be
+#include <chrdlgmodes.hxx>
f085be
 #include <crsskip.hxx>
f085be
 #include <hintids.hxx>
f085be
-
f085be
+#include <SidebarWin.hxx>
f085be
+#include <editeng/eeitem.hxx>
f085be
+#include <editeng/kernitem.hxx>
f085be
+#include <editeng/outliner.hxx>
f085be
 #include <sfx2/lnkbase.hxx>
f085be
 #include <fmtfld.hxx>
f085be
 #include <vcl/msgbox.hxx>
f085be
@@ -321,6 +325,13 @@ void SwTextShell::ExecField(SfxRequest &rReq)
f085be
                 if ( GetView().GetPostItMgr() )
f085be
                     GetView().GetPostItMgr()->Delete();
f085be
             break;
f085be
+            case FN_FORMAT_ALL_NOTES:
f085be
+            {
f085be
+                SwPostItMgr* pPostItMgr = GetView().GetPostItMgr();
f085be
+                if (pPostItMgr)
f085be
+                    pPostItMgr->ExecuteFormatAllDialog(GetView());
f085be
+            }
f085be
+            break;
f085be
             case FN_DELETE_NOTE_AUTHOR:
f085be
             {
f085be
                 SFX_REQUEST_ARG( rReq, pNoteItem, SfxStringItem, nSlot, sal_False);
f085be
@@ -629,6 +640,7 @@ void SwTextShell::StateField( SfxItemSet &rSet )
f085be
         case FN_DELETE_COMMENT:
f085be
         case FN_DELETE_NOTE_AUTHOR:
f085be
         case FN_DELETE_ALL_NOTES:
f085be
+        case FN_FORMAT_ALL_NOTES:
f085be
         case FN_HIDE_NOTE:
f085be
         case FN_HIDE_NOTE_AUTHOR:
f085be
         case FN_HIDE_ALL_NOTES: