summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSurendran Mahendran <surenspost@gmail.com>2010-12-02 01:45:15 +0100
committerThorsten Behrens <tbehrens@novell.com>2010-12-03 16:25:14 +0100
commit1a48fadfd622edc727c48c6ccfedeb73908b951c (patch)
tree7ae4236f5acbaba4042a391e17df7942866945e3
parente288d15b2127c5fe50a9fd9f23da77a3d5692dd9 (diff)
Adding "Edit via External Tool" to Graphic Popup
1) add unique identifier to cmdid.h 2) add ExecMethod and StateMethod to _grfsh.sdi 3) add additional details for the identifier in swriter.sdi 4) add the item to the popup menu in mn.src
-rw-r--r--sw/inc/cmdid.h2
-rw-r--r--sw/sdi/_grfsh.sdi5
-rw-r--r--sw/sdi/swriter.sdi27
-rw-r--r--sw/source/ui/app/mn.src8
4 files changed, 42 insertions, 0 deletions
diff --git a/sw/inc/cmdid.h b/sw/inc/cmdid.h
index beb4e8a42b..08d928efa6 100644
--- a/sw/inc/cmdid.h
+++ b/sw/inc/cmdid.h
@@ -858,6 +858,8 @@ included in c-context files, so c++ style stuff will cause problems.
#define FN_UNO_TABLE_NAME (FN_EXTRA2 + 111)
#define FN_UNO_META (FN_EXTRA2 + 112)
#define FN_UNO_NESTED_TEXT_CONTENT (FN_EXTRA2 + 113)
+/* Edit Graphic with External Tool */
+#define FN_EXTERNAL_EDIT (FN_EXTRA2 + 114)
/*------------------------------------------------ --------------------
Area: Help
diff --git a/sw/sdi/_grfsh.sdi b/sw/sdi/_grfsh.sdi
index 161db94235..7cd69dfaa2 100644
--- a/sw/sdi/_grfsh.sdi
+++ b/sw/sdi/_grfsh.sdi
@@ -58,6 +58,11 @@ interface BaseTextGraphic
StateMethod = GetAttrState ;
]
+ FN_EXTERNAL_EDIT
+ [
+ ExecMethod = Execute ;
+ StateMethod = GetAttrState ;
+ ]
SID_INSERT_GRAPHIC // zeigt auf FN_FORMAT_GRAFIC_DLG
[
ExecMethod = Execute ;
diff --git a/sw/sdi/swriter.sdi b/sw/sdi/swriter.sdi
index c2fcc53bf2..081681e025 100644
--- a/sw/sdi/swriter.sdi
+++ b/sw/sdi/swriter.sdi
@@ -3510,6 +3510,33 @@ SfxVoidItem SaveGraphic FN_SAVE_GRAPHIC
GroupId = GID_GRAPHIC;
]
+//------------------------------------------------------------------------
+SfxVoidItem ExternalEdit FN_EXTERNAL_EDIT
+()
+[
+ /* flags: */
+ AutoUpdate = FALSE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = FALSE,
+ ReadOnlyDoc = TRUE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Synchron;
+
+ /* config: */
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_GRAPHIC;
+]
+//------------------------------------------------------------------------
+
+
//--------------------------------------------------------------------------
SfxVoidItem Grow FN_GROW_FONT_SIZE
()
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src
index f57afa61cf..a252388251 100644
--- a/sw/source/ui/app/mn.src
+++ b/sw/source/ui/app/mn.src
@@ -941,6 +941,14 @@ Menu MN_GRF_POPUPMENU
Text [ en-US ] = "Save Graphics..." ;
};
MN_FRM_CAPTION_ITEM
+ SEPARATOR;
+ MenuItem
+ {
+ Identifier = FN_EXTERNAL_EDIT ;
+ HelpID = FN_EXTERNAL_EDIT ;
+ Text [ en-US ] = "Edit with External Tool...";
+ };
+ SEPARATOR;
MenuItem
{
ITEM_EDIT_IMAP