Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
ebb728c9
Kaydet (Commit)
ebb728c9
authored
Nis 22, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add a 'format all comments' feature
Change-Id: Ie9530f0f58b38d014beda60b9efba3ce93fe5c0e
üst
43d68d4e
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
166 additions
and
7 deletions
+166
-7
GenericCommands.xcu
...egistry/data/org/openoffice/Office/UI/GenericCommands.xcu
+5
-0
PostItMgr.hxx
sw/inc/PostItMgr.hxx
+5
-0
cmdid.h
sw/inc/cmdid.h
+1
-1
swcommands.h
sw/inc/swcommands.h
+1
-0
_annotsh.sdi
sw/sdi/_annotsh.sdi
+6
-0
_textsh.sdi
sw/sdi/_textsh.sdi
+5
-0
swriter.sdi
sw/sdi/swriter.sdi
+24
-0
AnnotationMenuButton.cxx
sw/source/core/uibase/docvw/AnnotationMenuButton.cxx
+2
-0
PostItMgr.cxx
sw/source/core/uibase/docvw/PostItMgr.cxx
+76
-1
SidebarWin.cxx
sw/source/core/uibase/docvw/SidebarWin.cxx
+1
-0
annotation.hrc
sw/source/core/uibase/docvw/annotation.hrc
+1
-0
annotsh.hxx
sw/source/core/uibase/inc/annotsh.hxx
+2
-0
annotsh.cxx
sw/source/core/uibase/shells/annotsh.cxx
+13
-4
textfld.cxx
sw/source/core/uibase/shells/textfld.cxx
+13
-1
mn.src
sw/source/ui/app/mn.src
+6
-0
annotation.src
sw/source/ui/docvw/annotation.src
+5
-0
No files found.
officecfg/registry/data/org/openoffice/Office/UI/GenericCommands.xcu
Dosyayı görüntüle @
ebb728c9
...
@@ -5308,6 +5308,11 @@
...
@@ -5308,6 +5308,11 @@
<value
xml:lang=
"en-US"
>
Delete All Comments
</value>
<value
xml:lang=
"en-US"
>
Delete All Comments
</value>
</prop>
</prop>
</node>
</node>
<node
oor:name=
".uno:FormatAllNotes"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Format All Comments
</value>
</prop>
</node>
<node
oor:name=
".uno:DeleteAuthor"
oor:op=
"replace"
>
<node
oor:name=
".uno:DeleteAuthor"
oor:op=
"replace"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<prop
oor:name=
"Label"
oor:type=
"xs:string"
>
<value
xml:lang=
"en-US"
>
Delete All Comments by This Author
</value>
<value
xml:lang=
"en-US"
>
Delete All Comments by This Author
</value>
...
...
sw/inc/PostItMgr.hxx
Dosyayı görüntüle @
ebb728c9
...
@@ -44,6 +44,8 @@ class SfxBroadcaster;
...
@@ -44,6 +44,8 @@ class SfxBroadcaster;
class
SfxHint
;
class
SfxHint
;
class
SwEditWin
;
class
SwEditWin
;
class
Color
;
class
Color
;
class
SfxItemPool
;
class
SfxItemSet
;
class
SvxSearchItem
;
class
SvxSearchItem
;
class
SvxLanguageItem
;
class
SvxLanguageItem
;
namespace
sw
{
namespace
annotation
{
namespace
sw
{
namespace
annotation
{
...
@@ -218,6 +220,9 @@ class SwPostItMgr: public SfxListener
...
@@ -218,6 +220,9 @@ class SwPostItMgr: public SfxListener
void
Delete
(
const
OUString
&
aAuthor
);
void
Delete
(
const
OUString
&
aAuthor
);
void
Delete
();
void
Delete
();
void
ExecuteFormatAllDialog
(
SwView
&
rView
);
void
FormatAll
(
const
SfxItemSet
&
rNewAttr
);
void
Hide
(
const
OUString
&
rAuthor
);
void
Hide
(
const
OUString
&
rAuthor
);
void
Hide
();
void
Hide
();
void
Show
();
void
Show
();
...
...
sw/inc/cmdid.h
Dosyayı görüntüle @
ebb728c9
...
@@ -783,7 +783,7 @@ included in c-context files, so c++ style stuff will cause problems.
...
@@ -783,7 +783,7 @@ included in c-context files, so c++ style stuff will cause problems.
#define FN_DELETE_COMMENT (FN_NOTES+6)
#define FN_DELETE_COMMENT (FN_NOTES+6)
#define FN_REPLY (FN_NOTES+7)
#define FN_REPLY (FN_NOTES+7)
#define FN_FORMAT_ALL_NOTES (FN_NOTES+8)
#define FN_HEADERFOOTER_EDIT (FN_HEADERFOOTER+1)
#define FN_HEADERFOOTER_EDIT (FN_HEADERFOOTER+1)
#define FN_HEADERFOOTER_DELETE (FN_HEADERFOOTER+2)
#define FN_HEADERFOOTER_DELETE (FN_HEADERFOOTER+2)
...
...
sw/inc/swcommands.h
Dosyayı görüntüle @
ebb728c9
...
@@ -116,6 +116,7 @@
...
@@ -116,6 +116,7 @@
#define CMD_FN_DELETE_COMMENT ".uno:DeleteComment"
#define CMD_FN_DELETE_COMMENT ".uno:DeleteComment"
#define CMD_FN_DELETE_NOTE_AUTHOR ".uno:DeleteAuthor"
#define CMD_FN_DELETE_NOTE_AUTHOR ".uno:DeleteAuthor"
#define CMD_FN_DELETE_ALL_NOTES ".uno:DeleteAllNotes"
#define CMD_FN_DELETE_ALL_NOTES ".uno:DeleteAllNotes"
#define CMD_FN_FORMAT_ALL_NOTES ".uno:FormatAllNotes"
#define CMD_FN_HIDE_NOTE ".uno:HideNote"
#define CMD_FN_HIDE_NOTE ".uno:HideNote"
#define CMD_FN_HIDE_NOTE_AUTHOR ".uno:HideAuthor"
#define CMD_FN_HIDE_NOTE_AUTHOR ".uno:HideAuthor"
#define CMD_FN_HIDE_ALL_NOTES ".uno:HideAllNotes"
#define CMD_FN_HIDE_ALL_NOTES ".uno:HideAllNotes"
...
...
sw/sdi/_annotsh.sdi
Dosyayı görüntüle @
ebb728c9
...
@@ -37,6 +37,12 @@ interface _Annotation
...
@@ -37,6 +37,12 @@ interface _Annotation
StateMethod = GetNoteState ;
StateMethod = GetNoteState ;
]
]
FN_FORMAT_ALL_NOTES
[
ExecMethod = NoteExec ;
StateMethod = GetNoteState ;
]
FN_HIDE_NOTE
FN_HIDE_NOTE
[
[
ExecMethod = NoteExec ;
ExecMethod = NoteExec ;
...
...
sw/sdi/_textsh.sdi
Dosyayı görüntüle @
ebb728c9
...
@@ -940,6 +940,11 @@ interface BaseText
...
@@ -940,6 +940,11 @@ interface BaseText
ExecMethod = ExecField ;
ExecMethod = ExecField ;
StateMethod = StateField;
StateMethod = StateField;
]
]
FN_FORMAT_ALL_NOTES
[
ExecMethod = ExecField ;
StateMethod = StateField;
]
FN_HIDE_NOTE
FN_HIDE_NOTE
[
[
ExecMethod = ExecField ;
ExecMethod = ExecField ;
...
...
sw/sdi/swriter.sdi
Dosyayı görüntüle @
ebb728c9
...
@@ -9604,6 +9604,30 @@ SfxVoidItem DeleteAllNotes FN_DELETE_ALL_NOTES
...
@@ -9604,6 +9604,30 @@ SfxVoidItem DeleteAllNotes FN_DELETE_ALL_NOTES
GroupId = GID_EDIT;
GroupId = GID_EDIT;
]
]
SfxVoidItem FormatAllNotes FN_FORMAT_ALL_NOTES
()
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = FALSE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_EDIT;
]
SfxVoidItem HideNote FN_HIDE_NOTE
SfxVoidItem HideNote FN_HIDE_NOTE
()
()
[
[
...
...
sw/source/core/uibase/docvw/AnnotationMenuButton.cxx
Dosyayı görüntüle @
ebb728c9
...
@@ -75,12 +75,14 @@ void AnnotationMenuButton::MouseButtonDown( const MouseEvent& rMEvt )
...
@@ -75,12 +75,14 @@ void AnnotationMenuButton::MouseButtonDown( const MouseEvent& rMEvt )
pButtonPopup
->
EnableItem
(
FN_DELETE_COMMENT
,
false
);
pButtonPopup
->
EnableItem
(
FN_DELETE_COMMENT
,
false
);
pButtonPopup
->
EnableItem
(
FN_DELETE_NOTE_AUTHOR
,
false
);
pButtonPopup
->
EnableItem
(
FN_DELETE_NOTE_AUTHOR
,
false
);
pButtonPopup
->
EnableItem
(
FN_DELETE_ALL_NOTES
,
false
);
pButtonPopup
->
EnableItem
(
FN_DELETE_ALL_NOTES
,
false
);
pButtonPopup
->
EnableItem
(
FN_FORMAT_ALL_NOTES
,
false
);
}
}
else
else
{
{
pButtonPopup
->
EnableItem
(
FN_DELETE_COMMENT
,
!
mrSidebarWin
.
IsProtected
()
);
pButtonPopup
->
EnableItem
(
FN_DELETE_COMMENT
,
!
mrSidebarWin
.
IsProtected
()
);
pButtonPopup
->
EnableItem
(
FN_DELETE_NOTE_AUTHOR
,
true
);
pButtonPopup
->
EnableItem
(
FN_DELETE_NOTE_AUTHOR
,
true
);
pButtonPopup
->
EnableItem
(
FN_DELETE_ALL_NOTES
,
true
);
pButtonPopup
->
EnableItem
(
FN_DELETE_ALL_NOTES
,
true
);
pButtonPopup
->
EnableItem
(
FN_FORMAT_ALL_NOTES
,
true
);
}
}
if
(
mrSidebarWin
.
IsProtected
()
)
if
(
mrSidebarWin
.
IsProtected
()
)
...
...
sw/source/core/uibase/docvw/PostItMgr.cxx
Dosyayı görüntüle @
ebb728c9
...
@@ -34,8 +34,8 @@
...
@@ -34,8 +34,8 @@
#include <vcl/outdev.hxx>
#include <vcl/outdev.hxx>
#include <vcl/settings.hxx>
#include <vcl/settings.hxx>
#include <chrdlgmodes.hxx>
#include <viewopt.hxx>
#include <viewopt.hxx>
#include <view.hxx>
#include <view.hxx>
#include <docsh.hxx>
#include <docsh.hxx>
#include <wrtsh.hxx>
#include <wrtsh.hxx>
...
@@ -67,11 +67,14 @@
...
@@ -67,11 +67,14 @@
#include <svx/svdview.hxx>
#include <svx/svdview.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/langitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/outliner.hxx>
#include <editeng/outliner.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/mslangid.hxx>
#include <i18nlangtag/lang.h>
#include <i18nlangtag/lang.h>
#include "annotsh.hxx"
#include "swabstdlg.hxx"
#include "swevent.hxx"
#include "swevent.hxx"
#include "switerator.hxx"
#include "switerator.hxx"
...
@@ -1242,6 +1245,78 @@ void SwPostItMgr::Delete()
...
@@ -1242,6 +1245,78 @@ void SwPostItMgr::Delete()
CalcRects
();
CalcRects
();
LayoutPostIts
();
LayoutPostIts
();
}
}
void
SwPostItMgr
::
ExecuteFormatAllDialog
(
SwView
&
rView
)
{
if
(
mvPostItFlds
.
empty
())
return
;
sw
::
sidebarwindows
::
SwSidebarWin
*
pOrigActiveWin
=
GetActiveSidebarWin
();
sw
::
sidebarwindows
::
SwSidebarWin
*
pWin
=
pOrigActiveWin
;
if
(
!
pWin
)
{
for
(
SwSidebarItem_iterator
i
=
mvPostItFlds
.
begin
();
i
!=
mvPostItFlds
.
end
();
++
i
)
{
pWin
=
(
*
i
)
->
pPostIt
;
if
(
pWin
)
break
;
}
}
if
(
!
pWin
)
return
;
SetActiveSidebarWin
(
pWin
);
OutlinerView
*
pOLV
=
pWin
->
GetOutlinerView
();
SfxItemSet
aEditAttr
(
pOLV
->
GetAttribs
());
SfxItemPool
*
pPool
(
SwAnnotationShell
::
GetAnnotationPool
(
rView
));
SfxItemSet
aDlgAttr
(
*
pPool
,
EE_ITEMS_START
,
EE_ITEMS_END
);
aDlgAttr
.
Put
(
aEditAttr
);
SwAbstractDialogFactory
*
pFact
=
SwAbstractDialogFactory
::
Create
();
SfxAbstractTabDialog
*
pDlg
=
pFact
->
CreateSwCharDlg
(
rView
.
GetWindow
(),
rView
,
aDlgAttr
,
DLG_CHAR_ANN
);
sal_uInt16
nRet
=
pDlg
->
Execute
();
if
(
RET_OK
==
nRet
)
{
aDlgAttr
.
Put
(
*
pDlg
->
GetOutputItemSet
());
FormatAll
(
aDlgAttr
);
}
delete
pDlg
;
SetActiveSidebarWin
(
pOrigActiveWin
);
}
void
SwPostItMgr
::
FormatAll
(
const
SfxItemSet
&
rNewAttr
)
{
mpWrtShell
->
StartAllAction
();
SwRewriter
aRewriter
;
aRewriter
.
AddRule
(
UndoArg1
,
SW_RES
(
STR_FORMAT_ALL_NOTES
)
);
mpWrtShell
->
StartUndo
(
UNDO_INSATTR
,
&
aRewriter
);
for
(
SwSidebarItem_iterator
i
=
mvPostItFlds
.
begin
();
i
!=
mvPostItFlds
.
end
()
;
++
i
)
{
if
(
!
(
*
i
)
->
pPostIt
)
continue
;
OutlinerView
*
pOLV
=
(
*
i
)
->
pPostIt
->
GetOutlinerView
();
//save old selection
ESelection
aOrigSel
(
pOLV
->
GetSelection
());
//select all
Outliner
*
pOutliner
=
pOLV
->
GetOutliner
();
if
(
pOutliner
)
{
sal_Int32
nParaCount
=
pOutliner
->
GetParagraphCount
();
if
(
nParaCount
>
0
)
pOLV
->
SelectRange
(
0
,
nParaCount
);
}
//set new char properties
pOLV
->
SetAttribs
(
rNewAttr
);
//restore old selection
pOLV
->
SetSelection
(
aOrigSel
);
}
mpWrtShell
->
EndUndo
();
PrepareView
();
mpWrtShell
->
EndAllAction
();
mbLayout
=
true
;
CalcRects
();
LayoutPostIts
();
}
void
SwPostItMgr
::
Hide
(
const
OUString
&
rAuthor
)
void
SwPostItMgr
::
Hide
(
const
OUString
&
rAuthor
)
{
{
for
(
SwSidebarItem_iterator
i
=
mvPostItFlds
.
begin
();
i
!=
mvPostItFlds
.
end
()
;
++
i
)
for
(
SwSidebarItem_iterator
i
=
mvPostItFlds
.
begin
();
i
!=
mvPostItFlds
.
end
()
;
++
i
)
...
...
sw/source/core/uibase/docvw/SidebarWin.cxx
Dosyayı görüntüle @
ebb728c9
...
@@ -1054,6 +1054,7 @@ void SwSidebarWin::ExecuteCommand(sal_uInt16 nSlot)
...
@@ -1054,6 +1054,7 @@ void SwSidebarWin::ExecuteCommand(sal_uInt16 nSlot)
//Delete(); // do not kill the parent of our open popup menu
//Delete(); // do not kill the parent of our open popup menu
mnEventId
=
Application
::
PostUserEvent
(
LINK
(
this
,
SwSidebarWin
,
DeleteHdl
),
0
);
mnEventId
=
Application
::
PostUserEvent
(
LINK
(
this
,
SwSidebarWin
,
DeleteHdl
),
0
);
break
;
break
;
case
FN_FORMAT_ALL_NOTES
:
case
FN_DELETE_ALL_NOTES
:
case
FN_DELETE_ALL_NOTES
:
case
FN_HIDE_ALL_NOTES
:
case
FN_HIDE_ALL_NOTES
:
// not possible as slot as this would require that "this" is the active postit
// not possible as slot as this would require that "this" is the active postit
...
...
sw/source/core/uibase/docvw/annotation.hrc
Dosyayı görüntüle @
ebb728c9
...
@@ -32,6 +32,7 @@
...
@@ -32,6 +32,7 @@
#define STR_NOAUTHOR (RC_ANNOTATION_BEGIN + 6)
#define STR_NOAUTHOR (RC_ANNOTATION_BEGIN + 6)
#define STR_REPLY (RC_ANNOTATION_BEGIN + 7)
#define STR_REPLY (RC_ANNOTATION_BEGIN + 7)
#define STR_FORMAT_ALL_NOTES (RC_ANNOTATION_BEGIN + 8)
#define ANNOTATION_ACT_END STR_REPLY
#define ANNOTATION_ACT_END STR_REPLY
...
...
sw/source/core/uibase/inc/annotsh.hxx
Dosyayı görüntüle @
ebb728c9
...
@@ -72,6 +72,8 @@ public:
...
@@ -72,6 +72,8 @@ public:
virtual
::
svl
::
IUndoManager
*
virtual
::
svl
::
IUndoManager
*
GetUndoManager
()
SAL_OVERRIDE
;
GetUndoManager
()
SAL_OVERRIDE
;
static
SfxItemPool
*
GetAnnotationPool
(
SwView
&
rV
);
};
};
#endif
#endif
...
...
sw/source/core/uibase/shells/annotsh.cxx
Dosyayı görüntüle @
ebb728c9
...
@@ -147,11 +147,16 @@ void SwAnnotationShell::InitInterface_Impl()
...
@@ -147,11 +147,16 @@ void SwAnnotationShell::InitInterface_Impl()
TYPEINIT1
(
SwAnnotationShell
,
SfxShell
)
TYPEINIT1
(
SwAnnotationShell
,
SfxShell
)
SfxItemPool
*
SwAnnotationShell
::
GetAnnotationPool
(
SwView
&
rV
)
{
SwWrtShell
&
rSh
=
rV
.
GetWrtShell
();
return
rSh
.
GetAttrPool
().
GetSecondaryPool
();
}
SwAnnotationShell
::
SwAnnotationShell
(
SwView
&
r
)
SwAnnotationShell
::
SwAnnotationShell
(
SwView
&
r
)
:
rView
(
r
)
:
rView
(
r
)
{
{
SwWrtShell
&
rSh
=
rView
.
GetWrtShell
();
SetPool
(
SwAnnotationShell
::
GetAnnotationPool
(
rView
));
SetPool
(
rSh
.
GetAttrPool
().
GetSecondaryPool
());
SfxShell
::
SetContextName
(
sfx2
::
sidebar
::
EnumContext
::
GetContextName
(
sfx2
::
sidebar
::
EnumContext
::
Context_Annotation
));
SfxShell
::
SetContextName
(
sfx2
::
sidebar
::
EnumContext
::
GetContextName
(
sfx2
::
sidebar
::
EnumContext
::
Context_Annotation
));
}
}
...
@@ -1080,9 +1085,12 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
...
@@ -1080,9 +1085,12 @@ void SwAnnotationShell::NoteExec(SfxRequest &rReq)
pPostItMgr
->
GetActiveSidebarWin
()
->
ExecuteCommand
(
nSlot
);
pPostItMgr
->
GetActiveSidebarWin
()
->
ExecuteCommand
(
nSlot
);
break
;
break
;
case
FN_DELETE_ALL_NOTES
:
case
FN_DELETE_ALL_NOTES
:
pPostItMgr
->
Delete
();
pPostItMgr
->
Delete
();
break
;
break
;
case
FN_FORMAT_ALL_NOTES
:
pPostItMgr
->
ExecuteFormatAllDialog
(
rView
);
break
;
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_NOTE_AUTHOR
:
{
{
SFX_REQUEST_ARG
(
rReq
,
pItem
,
SfxStringItem
,
nSlot
,
false
);
SFX_REQUEST_ARG
(
rReq
,
pItem
,
SfxStringItem
,
nSlot
,
false
);
...
@@ -1117,6 +1125,7 @@ void SwAnnotationShell::GetNoteState(SfxItemSet &rSet)
...
@@ -1117,6 +1125,7 @@ void SwAnnotationShell::GetNoteState(SfxItemSet &rSet)
case
FN_POSTIT
:
case
FN_POSTIT
:
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_ALL_NOTES
:
case
FN_DELETE_ALL_NOTES
:
case
FN_FORMAT_ALL_NOTES
:
case
FN_HIDE_NOTE
:
case
FN_HIDE_NOTE
:
case
FN_HIDE_NOTE_AUTHOR
:
case
FN_HIDE_NOTE_AUTHOR
:
case
FN_HIDE_ALL_NOTES
:
case
FN_HIDE_ALL_NOTES
:
...
...
sw/source/core/uibase/shells/textfld.cxx
Dosyayı görüntüle @
ebb728c9
...
@@ -17,9 +17,13 @@
...
@@ -17,9 +17,13 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
*/
#include <chrdlgmodes.hxx>
#include <crsskip.hxx>
#include <crsskip.hxx>
#include <hintids.hxx>
#include <hintids.hxx>
#include <SidebarWin.hxx>
#include <editeng/eeitem.hxx>
#include <editeng/kernitem.hxx>
#include <editeng/outliner.hxx>
#include <sfx2/lnkbase.hxx>
#include <sfx2/lnkbase.hxx>
#include <fmtfld.hxx>
#include <fmtfld.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/msgbox.hxx>
...
@@ -320,6 +324,13 @@ void SwTextShell::ExecField(SfxRequest &rReq)
...
@@ -320,6 +324,13 @@ void SwTextShell::ExecField(SfxRequest &rReq)
if
(
GetView
().
GetPostItMgr
()
)
if
(
GetView
().
GetPostItMgr
()
)
GetView
().
GetPostItMgr
()
->
Delete
();
GetView
().
GetPostItMgr
()
->
Delete
();
break
;
break
;
case
FN_FORMAT_ALL_NOTES
:
{
SwPostItMgr
*
pPostItMgr
=
GetView
().
GetPostItMgr
();
if
(
pPostItMgr
)
pPostItMgr
->
ExecuteFormatAllDialog
(
GetView
());
}
break
;
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_NOTE_AUTHOR
:
{
{
SFX_REQUEST_ARG
(
rReq
,
pNoteItem
,
SfxStringItem
,
nSlot
,
false
);
SFX_REQUEST_ARG
(
rReq
,
pNoteItem
,
SfxStringItem
,
nSlot
,
false
);
...
@@ -623,6 +634,7 @@ void SwTextShell::StateField( SfxItemSet &rSet )
...
@@ -623,6 +634,7 @@ void SwTextShell::StateField( SfxItemSet &rSet )
case
FN_DELETE_COMMENT
:
case
FN_DELETE_COMMENT
:
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_NOTE_AUTHOR
:
case
FN_DELETE_ALL_NOTES
:
case
FN_DELETE_ALL_NOTES
:
case
FN_FORMAT_ALL_NOTES
:
case
FN_HIDE_NOTE
:
case
FN_HIDE_NOTE
:
case
FN_HIDE_NOTE_AUTHOR
:
case
FN_HIDE_NOTE_AUTHOR
:
case
FN_HIDE_ALL_NOTES
:
case
FN_HIDE_ALL_NOTES
:
...
...
sw/source/ui/app/mn.src
Dosyayı görüntüle @
ebb728c9
...
@@ -750,6 +750,12 @@
...
@@ -750,6 +750,12 @@
HelpId = CMD_FN_DELETE_ALL_NOTES ;\
HelpId = CMD_FN_DELETE_ALL_NOTES ;\
Text [ en-US ] = "~Delete All Comments" ;\
Text [ en-US ] = "~Delete All Comments" ;\
};\
};\
MenuItem\
{\
Identifier = FN_FORMAT_ALL_NOTES ;\
HelpId = CMD_FN_FORMAT_ALL_NOTES ;\
Text [ en-US ] = "~Format All Comments" ;\
};\
/*
/*
MenuItem\
MenuItem\
{\
{\
...
...
sw/source/ui/docvw/annotation.src
Dosyayı görüntüle @
ebb728c9
...
@@ -35,6 +35,11 @@ String STR_DELETE_ALL_NOTES
...
@@ -35,6 +35,11 @@ String STR_DELETE_ALL_NOTES
Text [ en-US ] = "All Comments" ;
Text [ en-US ] = "All Comments" ;
};
};
String STR_FORMAT_ALL_NOTES
{
Text [ en-US ] = "All Comments" ;
};
String STR_DELETE_AUTHOR_NOTES
String STR_DELETE_AUTHOR_NOTES
{
{
Text [ en-US ] = "Comments by " ;
Text [ en-US ] = "Comments by " ;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment