Hi team!
I'm Alan. I'm building the module writer "sw"
In one part of the tutorial I want insert the following code:
--- sw/source/ui/app/mn.src 2004-11-29 14:29:10.000000000 +0530
+++ sw/source/ui/app/mn.src 2004-12-21 20:28:27.000000000 +0530
@@ -945,6 +945,13 @@ Menu MN_GRF_POPUPMENU
SEPARATOR ;
MenuItem
{
+ Identifier = FN_SAVE_GRAPHIC ;
+ HelpID = FN_SAVE_GRAPHIC ;
+ Text [ de ] = "~Grafik speichern..." ;
+ Text [ en-US ] = "Save ~Graphic..." ;
+ };
+ MenuItem
+ {
Identifier = FN_FORMAT_GRAFIC_DLG ;
HelpID = FN_FORMAT_GRAFIC_DLG ;
Text [ de ] = "~Grafik..." ;
------------------------------------------------------------------------------------
and I did so:
Menu MN_GRF_POPUPMENU
{
ItemList =
{
MN_ALIGN_FRAME
MN_MOUSE_FRAME_WITH_CONTOUR
// --> OD 2009-07-14 #i73249#
SEPARATOR ;
MN_TITLE_DESCRIPTION_SHAPE
// <--
SEPARATOR ;
MenuItem
{
Identifier = FN_FORMAT_GRAFIC_DLG ;
HelpId = CMD_FN_FORMAT_GRAFIC_DLG ;
Text [ en-US ] = "~Picture..." ;
};
MenuItem
{
Identifier = FN_SAVE_GRAPHIC;
Identifier = FN_SAVE_GRAPHIC ;
HelpId = CMD_FN_SAVE_GRAPHIC;
HelpID = FN_SAVE_GRAPHIC ;
Text [ de ] = "~Grafik speichern..." ;
Text [ en-US ] = "Save Graphics..." ;
};
MenuItem
{
Identifier = FN_FORMAT_GRAFIC_DLG ;
HelpID = FN_FORMAT_GRAFIC_DLG ;
Text [ de ] = "~Grafik..." ;
};
MN_FRM_CAPTION_ITEM
MenuItem
{
ITEM_EDIT_IMAP
};
};
};
------------------------------------------------------------------
but when I building the module, I have the following error:
=============
Building module sw
=============
Entering /home/alan/aoo/main/sw/prj
cd .. && make -s -r -j1 debug=true && make -s -r deliverlog
[ build DEP ] SRS:sw/res
make: *** Warning: .LOW_RESOLUTION_TIME file
`/home/alan/aoo/main/solver/350/unxlngi6.pro/bin/swen-US.res' has a high
resolution time stamp
cpp: line 710, Warning: Redefining defined variable "FN_SAVE_GRAPHIC"
#define FN_SAVE_GRAPHIC (FN_FORMAT2 + 160)
from file /home/alan/aoo/main/sw/source/ui/app/mn.src, line 26:
#include "cmdid.h"
Text [ de ] = "~Grafik speichern..." ;
^
f257: "/home/alan/aoo/main/sw/source/ui/app/mn.src", line 1314: Error in
the object (Type: Chars):
The used type is not allowed.
Text [ de ] = "~Grafik..." ;
^
f257: "/home/alan/aoo/main/sw/source/ui/app/mn.src", line 1321: Error in
the object (Type: Chars):
The used type is not allowed.
f256: Error: !! 2 Error found!!
Error starting rsc2 compiler
make: *** [/home/alan/aoo/main/solver/350/
unxlngi6.pro/workdir/SrsPartTarget/sw/source/ui/app/mn.src] Error 1
dmake: Error code 2, while making 'all'
ERROR: error 65280 occurred while making /home/alan/aoo/main/sw/prj
Apparently I'm not inserting the code well, I need you help. how inserting
the code in the archive mn.src very well.
Regards.