summaryrefslogtreecommitdiff
path: root/sw/sdi
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
commitbc1d00dd14e90fcae2aaae0812f15f61f434d093 (patch)
treedebf6b19203b72d8a74666612f2bada95e389eba /sw/sdi
parent091a1c5e9ae9d6c29b4ff285c15cb9964dac6c0a (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
Diffstat (limited to 'sw/sdi')
-rw-r--r--sw/sdi/_grfsh.sdi5
-rw-r--r--sw/sdi/swriter.sdi27
2 files changed, 32 insertions, 0 deletions
diff --git a/sw/sdi/_grfsh.sdi b/sw/sdi/_grfsh.sdi
index 3d7fd41af98d..d60dc39d4b36 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 c2fcc53bf29a..081681e025b5 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
()