textrendering/word/group/word.rss
changeset 0 1fb32624e06b
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     1 /*
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 		     
       
    19 NAME "WORD"
       
    20 
       
    21 #include <techview/eikon.rh>
       
    22 #include <uiklafgt/eikcore.rsg>
       
    23 #include <eikctl.rsg>
       
    24 #include <eikcoctl.rsg>
       
    25 #include <eikfile.rsg>
       
    26 #include <eikprint.rsg>
       
    27 #include <eikon.mbg>
       
    28 
       
    29 #include <word.mbg>
       
    30 #include "WORD.HRH"
       
    31 
       
    32 /* TOOLBAR & TOOLBAND MEASUREMENTS */
       
    33 #define KWStdToolbandSpacer						10
       
    34 
       
    35 
       
    36 // Structure definition for the outline control
       
    37 
       
    38 STRUCT OUTLINE_CONTROL
       
    39 	{
       
    40 	WORD width=320;
       
    41 	WORD height=180;
       
    42 	}
       
    43 
       
    44 
       
    45 RESOURCE RSS_SIGNATURE { }
       
    46 
       
    47 RESOURCE TBUF { buf="Word"; } // default filename
       
    48 
       
    49 RESOURCE EIK_APP_INFO
       
    50 	{
       
    51 	hotkeys=r_word_hotkeys;
       
    52 	menubar=r_word_menubar;
       
    53 	toolbar=r_word_toolbar;
       
    54 	toolband=r_word_toolband;
       
    55 	}
       
    56 
       
    57 RESOURCE HOTKEYS r_word_hotkeys
       
    58 	{
       
    59 	control=
       
    60 		{
       
    61 		HOTKEY { command=EEikCmdEditSelectAll; key='a'; },
       
    62 		HOTKEY { command=EEikCmdFontBold; key='b'; },
       
    63 		HOTKEY { command=EEikCmdEditCopy; key='c'; },
       
    64 		HOTKEY { command=EEikCmdParaIndent; key='d'; },
       
    65 		HOTKEY { command=EEikCmdExit; key='e'; },
       
    66 		HOTKEY { command=EEikCmdSearchFind; key='f'; },
       
    67 		HOTKEY { command=EWordCmdGoTo; key='g'; },
       
    68 		HOTKEY { command=EEikCmdSearchReplace; key='h'; },
       
    69 		HOTKEY { command=EEikCmdFontItalic; key='i'; },
       
    70 		HOTKEY { command=EEikCmdSearchFindAgain; key='j'; },
       
    71 		HOTKEY { command=EWordCmdViewPreferences; key='k'; },
       
    72 		HOTKEY { command=EEikCmdZoomIn; key='m';},
       
    73 		HOTKEY { command=EEikCmdFileNew; key='n'; },
       
    74 		HOTKEY { command=EEikCmdFileOpen; key='o'; },
       
    75 		HOTKEY { command=EEikCmdPrintPrint; key='p'; },
       
    76 		HOTKEY { command=EEikCmdFileRevert; key='r'; },
       
    77 		HOTKEY { command=EEikCmdFileSave; key='s'; },
       
    78 		HOTKEY { command=EWordCmdToolbar; key='t';},
       
    79 		HOTKEY { command=EEikCmdFontUnderline; key='u'; },
       
    80 		HOTKEY { command=EEikCmdEditPaste; key='v'; },
       
    81 		HOTKEY { command=EWordCmdWrapToScreen; key='w'; },
       
    82 		HOTKEY { command=EEikCmdEditCut; key='x'; },
       
    83 		HOTKEY { command=EEikCmdEditRedo; key='y'; },
       
    84 		HOTKEY { command=EEikCmdEditUndo; key='z';}
       
    85 		};
       
    86 	shift_control=
       
    87 		{
       
    88 		HOTKEY { command=EEikCmdParaAlign; key='a'; },
       
    89 		HOTKEY { command=EWordCmdInsertBullet; key='b'; },
       
    90 		HOTKEY { command=EEikCmdInsertSymbol; key='c';},
       
    91 		HOTKEY { command=EEikCmdParaBorder; key='d'; },
       
    92 		HOTKEY { command=EWordCmdZoomSet; key='e'; },
       
    93 		HOTKEY { command=EEikCmdFontChange; key='f'; },
       
    94 		HOTKEY { command=EWordCmdStyleGallery; key='g'; },
       
    95 		HOTKEY { command=EWordCmdFormatBullet; key='h'; },
       
    96 		HOTKEY { command=EWordCmdRevertToStyleChar; key='i'; },
       
    97 		HOTKEY { command=EEikCmdEditPictureFormat; key='j'; },
       
    98 		HOTKEY { command=EWordCmdObjectPreferences; key='k'; },
       
    99 		HOTKEY { command=EWordCmdOutline; key='l'; },
       
   100 		HOTKEY { command=EEikCmdZoomOut; key='m';},
       
   101 		HOTKEY { command=EEikCmdParaSpacing; key='n'; },
       
   102 		HOTKEY { command=EWordCmdInsertObject; key='o';},
       
   103 		HOTKEY { command=EEikCmdPrintSetup; key='p'; },
       
   104 		HOTKEY { command=EWordCmdRevertToStylePara; key='r'; },
       
   105 		HOTKEY { command=EEikCmdFileSaveAs; key='s'; },
       
   106 		HOTKEY { command=EWordCmdToolband; key='t';},
       
   107 		HOTKEY { command=EWordCmdPageSetup; key='u'; },
       
   108 		HOTKEY { command=EEikCmdPrintPreview; key='v'; },
       
   109 		HOTKEY { command=EWordCmdCount; key='w'; },
       
   110 		HOTKEY { command=EEikCmdParaTabs; key='y';},
       
   111 		HOTKEY { command=EWordCmdReEditObject; key='z'; }
       
   112 		};
       
   113 	}		  
       
   114 		
       
   115 RESOURCE MENU_BAR r_word_menubar
       
   116     {
       
   117     titles=
       
   118         {
       
   119 		MENU_TITLE { menu_pane=r_word_file_menu; txt="File"; },
       
   120 		MENU_TITLE { menu_pane=r_word_edit_menu; txt="Edit"; },
       
   121 		MENU_TITLE { menu_pane=r_word_view_menu; txt="View"; },
       
   122 		MENU_TITLE { menu_pane=r_word_insert_menu; txt="Insert"; },
       
   123 		MENU_TITLE { menu_pane=r_word_text_menu; txt="Text"; },
       
   124 		MENU_TITLE { menu_pane=r_word_paragraph_menu; txt="Paragraph"; },
       
   125 		MENU_TITLE { menu_pane=r_word_tools_menu; txt="Tools"; },
       
   126 		MENU_TITLE { menu_pane=r_word_test_menu; txt="Test"; }
       
   127         };
       
   128     }
       
   129 
       
   130 RESOURCE TOOLBAR r_word_toolbar
       
   131     {
       
   132 	breadth=KEikStdToolBarWidth;
       
   133 	flags=EEikToolBarDelayActivation;
       
   134     controls=
       
   135         {
       
   136 		TBAR_CTRL 
       
   137 			{ 
       
   138 			type=EEikCtFileNameLabel; 
       
   139 			id=EWordCmdFileName; 
       
   140 			flags=EEikToolBarCtrlHasSetMinLength;
       
   141 			length=KEikStdFileNameLabelHeight;
       
   142 			},
       
   143 		TBAR_BUTTON { id=EWordCmdInsertSketch; flags=EEikToolBarCtrlHasSetMinLength; length=KEikStdToolBarButtonHeight; txt="Insert\nSketch"; layout=EEikCmdButTextRightPictureLeft|EEikCmdButDenseFont|EEikCmdButExcessToText; bmpid=EMbmEikonSketch; bmpmask=EMbmEikonSketchm; },
       
   144 		TBAR_BUTTON { id=EWordCmdInsertSheet; flags=EEikToolBarCtrlHasSetMinLength; length=KEikStdToolBarButtonHeight; txt="Insert\nGraph"; layout=EEikCmdButTextRightPictureLeft|EEikCmdButDenseFont|EEikCmdButExcessToText; bmpid=EMbmEikonChart; bmpmask=EMbmEikonChartm; },
       
   145 		TBAR_BUTTON { id=EEikCmdPrintPreview; flags=EEikToolBarCtrlHasSetMinLength; length=KEikStdToolBarButtonHeight; layout=EEikCmdButTextRightPictureLeft|EEikCmdButDenseFont|EEikCmdButExcessToText; txt="Print"; bmpid=EMbmEikonPrint; bmpmask=EMbmEikonPrintm; },
       
   146 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength|EEikToolBarCtrlIsStretchable; length=0; control=SPACER; },
       
   147 		TBAR_CTRL
       
   148 			{
       
   149 			type=EEikCtClock;
       
   150 			id=0;
       
   151 			control=CLOCK { digitalresourceid=R_EIK_DIGITAL_CLOCK; analogresourceid=R_EIK_ANALOG_CLOCK; };
       
   152 			},
       
   153 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength; length=KEikStdGapBelowClock; control=SPACER { color=EEikSpacerWhite; }; }
       
   154         };
       
   155     }
       
   156 
       
   157 RESOURCE TOOLBAND r_word_toolband
       
   158     {
       
   159 	breadth=KEikStdToolBandHeight;
       
   160 	flags=EEikToolBarHorizontal|EEikToolBarDelayActivation;
       
   161     controls=
       
   162         {
       
   163 		TBAR_BUTTON 
       
   164 			{
       
   165 			id=EWordButtonStyle;
       
   166 			flags=EEikToolBarCtrlHasSetMinLength;
       
   167 			length=EEikStdLongTextPopoutToolBandButtonWidth;
       
   168 			behavior=EEikButReportOnPointerDown;
       
   169 			layout=EEikCmdButTextLeftPictureRight|EEikCmdButExcessToText;
       
   170 			txt="Normal";
       
   171 			bmpid=EMbmEikonDarrow; bmpmask=EMbmEikonDarrow;
       
   172 			},
       
   173 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength; length=KWStdToolbandSpacer; control=SPACER { color=EEikSpacerDitheredGray; }; },
       
   174 		TBAR_BUTTON 
       
   175 			{
       
   176 			id=EWordButtonFont;
       
   177 			flags=EEikToolBarCtrlHasSetMinLength;
       
   178 			length=EEikStdLongTextPopoutToolBandButtonWidth;
       
   179 			behavior=EEikButReportOnPointerDown;
       
   180 			layout=EEikCmdButTextLeftPictureRight|EEikCmdButExcessToText;
       
   181 			txt=" Arial      ";
       
   182 			bmpid=EMbmEikonDarrow; bmpmask=EMbmEikonDarrow;
       
   183 			},
       
   184 		TBAR_BUTTON 
       
   185 			{
       
   186 			id=EWordButtonFontSize;
       
   187 			flags=EEikToolBarCtrlHasSetMinLength;
       
   188 			length=EEikStdShortTextPopoutToolBandButtonWidth;
       
   189 			behavior=EEikButReportOnPointerDown;
       
   190 			layout=EEikCmdButTextLeftPictureRight|EEikCmdButExcessToText;
       
   191 			txt=" 10pt";
       
   192 			bmpid=EMbmEikonDarrow; bmpmask=EMbmEikonDarrow;
       
   193 			},
       
   194 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength; length=KWStdToolbandSpacer; control=SPACER { color=EEikSpacerDitheredGray; }; },
       
   195         TBAR_BUTTON 
       
   196 			{
       
   197 			id=EEikCmdFontBold;
       
   198 			flags=EEikToolBarCtrlHasSetMinLength;
       
   199 			length=EEikStdTwoStateIconicToolBandButtonWidth;
       
   200 			behavior=EEikButLatches;
       
   201 			bmpid=EMbmEikonBold; bmpmask=EMbmEikonBoldm;
       
   202 			},
       
   203         TBAR_BUTTON 
       
   204 			{
       
   205 			id=EEikCmdFontItalic;
       
   206 			flags=EEikToolBarCtrlHasSetMinLength;
       
   207 			length=EEikStdTwoStateIconicToolBandButtonWidth;
       
   208 			behavior=EEikButLatches;
       
   209 			bmpid=EMbmEikonItalic; bmpmask=EMbmEikonItalicm;
       
   210 			},
       
   211         TBAR_BUTTON 
       
   212 			{
       
   213 			id=EEikCmdFontUnderline;
       
   214 			flags=EEikToolBarCtrlHasSetMinLength;
       
   215 			length=EEikStdTwoStateIconicToolBandButtonWidth;
       
   216 			behavior=EEikButLatches;
       
   217 			bmpid=EMbmEikonUline; bmpmask=EMbmEikonUline;
       
   218 			},
       
   219 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength; length=KWStdToolbandSpacer; control=SPACER { color=EEikSpacerDitheredGray; }; },
       
   220         TBAR_CTRL
       
   221 			{
       
   222 			type=EEikCtBitmapButton;
       
   223 			id=EWordButtonAlign;
       
   224 			flags=EEikToolBarCtrlHasSetMinLength;
       
   225 			length=EEikStdIconicPopoutToolBandButtonWidth;
       
   226 			control=BMPBUT
       
   227 				{
       
   228 				behavior=EEikButReportOnPointerDown;
       
   229 				layout=EEikCmdButFirstLeftSecondRight|EEikCmdButExcessToFirst;
       
   230 				bmp1id=EMbmEikonLefta; bmp1mask=EMbmEikonLefta;
       
   231 				bmp2id=EMbmEikonDarrow; bmp2mask=EMbmEikonDarrow;
       
   232 				};
       
   233 			},
       
   234         TBAR_CTRL
       
   235 			{
       
   236 			type=EEikCtBitmapButton;
       
   237 			id=EWordButtonBorders;
       
   238 			flags=EEikToolBarCtrlHasSetMinLength;
       
   239 			length=EEikStdIconicPopoutToolBandButtonWidth;
       
   240 			control=BMPBUT
       
   241 				{
       
   242 				behavior=EEikButReportOnPointerDown;
       
   243 				layout=EEikCmdButFirstLeftSecondRight|EEikCmdButExcessToFirst;
       
   244  				bmp1file="*"; bmp1id=EMbmWordBordern; bmp1mask=EMbmWordBordernm;
       
   245 				bmp2id=EMbmEikonDarrow; bmp2mask=EMbmEikonDarrow;
       
   246 				};
       
   247 			},
       
   248 		TBAR_BUTTON 
       
   249 			{
       
   250 			id=EWordButtonBullets;
       
   251 			flags=EEikToolBarCtrlHasSetMinLength;
       
   252 			length=EEikStdTwoStateIconicToolBandButtonWidth;
       
   253 			behavior=EEikButLatches;
       
   254 			bmpid=EMbmEikonBullets; bmpmask=EMbmEikonBullets;
       
   255 			},
       
   256 		TBAR_CTRL { type=EEikCtSpacer; id=EWordCidToolbarSpacer; flags=EEikToolBarCtrlHasSetMinLength|EEikToolBarCtrlIsStretchable; length=0; control=SPACER { color=EEikSpacerDitheredGray; }; },
       
   257 		TBAR_CTRL 
       
   258 			{ 
       
   259 			type=EEikCtFileNameLabel; 
       
   260 			id=EWordCmdFileName; 
       
   261 			flags=EEikToolBarCtrlHasSetMinLength;
       
   262 			length=KEikStdFileNameLabelWidth;
       
   263 			}
       
   264         };
       
   265     }
       
   266 
       
   267 
       
   268 RESOURCE MENU_PANE r_word_file_menu
       
   269     {
       
   270     items=
       
   271         {
       
   272         MENU_ITEM
       
   273             {
       
   274 			command=EEikCmdFileNew;
       
   275             txt="Create new file"<KEllipsis>;
       
   276             },
       
   277         MENU_ITEM
       
   278             {
       
   279 			command=EEikCmdFileOpen;
       
   280             txt="Open file"<KEllipsis>;
       
   281             flags=EEikMenuItemSeparatorAfter;
       
   282             },
       
   283         MENU_ITEM
       
   284             {
       
   285             cascade=r_word_printextra_menu;
       
   286            	txt="Printing";
       
   287             },
       
   288         MENU_ITEM
       
   289             {
       
   290             cascade=r_word_fileoptions_menu;
       
   291             txt="More";
       
   292             flags=EEikMenuItemSeparatorAfter;
       
   293             },
       
   294         MENU_ITEM
       
   295             {
       
   296             command=EEikCmdExit;
       
   297             txt="Close";
       
   298             }
       
   299         };
       
   300     }
       
   301 
       
   302 RESOURCE MENU_PANE r_word_fileoptions_menu
       
   303     {
       
   304     items=
       
   305         {
       
   306         MENU_ITEM
       
   307             {
       
   308             command=EEikCmdFileSaveAs;
       
   309             txt="Save as"<KEllipsis>;
       
   310             },
       
   311         MENU_ITEM
       
   312             {
       
   313             command=EEikCmdFileSave;
       
   314             txt="Save";
       
   315             },
       
   316         MENU_ITEM
       
   317             {
       
   318             command=EEikCmdFileRevert;
       
   319             txt="Revert to saved";
       
   320             flags=EEikMenuItemSeparatorAfter;
       
   321             },
       
   322 		MENU_ITEM
       
   323 			{
       
   324 			command=EWordCmdFileSaveAsTemplate;
       
   325 			txt="Save as template"<KEllipsis>;
       
   326 			},
       
   327 		MENU_ITEM
       
   328 			{
       
   329 			command=EWordCmdFileDeleteTemplate;
       
   330 			txt="Delete template"<KEllipsis>;
       
   331             flags=EEikMenuItemSeparatorAfter;
       
   332 			},
       
   333 		MENU_ITEM
       
   334 			{
       
   335 			command=EEikCmdFileImport;
       
   336 			txt="Import text file"<KEllipsis>;
       
   337 			},
       
   338 		MENU_ITEM
       
   339 			{
       
   340 			command=EEikCmdFileExport;
       
   341 			txt="Export as text file"<KEllipsis>;
       
   342 			},
       
   343 		MENU_ITEM
       
   344 			{
       
   345 			command=EWordCmdHtmlImport;
       
   346 			txt="Import HTML file"<KEllipsis>;
       
   347 			}
       
   348 		};
       
   349 	}
       
   350     
       
   351 RESOURCE MENU_PANE r_word_printextra_menu
       
   352     {
       
   353     items=
       
   354         {
       
   355         MENU_ITEM
       
   356             {
       
   357             command=EWordCmdPageSetup;
       
   358             txt="Page setup"<KEllipsis>;
       
   359             },
       
   360         MENU_ITEM
       
   361             {
       
   362             command=EEikCmdPrintSetup;
       
   363             txt="Print setup"<KEllipsis>;
       
   364             },
       
   365         MENU_ITEM
       
   366             {
       
   367             command=EEikCmdPrintPreview;
       
   368             txt="Print preview"<KEllipsis>;
       
   369             },
       
   370         MENU_ITEM
       
   371             {
       
   372 		    command=EEikCmdPrintPrint;
       
   373             txt="Print"<KEllipsis>;
       
   374             }
       
   375         };
       
   376     }
       
   377 
       
   378 RESOURCE MENU_PANE r_word_edit_menu
       
   379     {
       
   380     items=
       
   381         {
       
   382 		MENU_ITEM
       
   383 			{
       
   384 			command=EEikCmdEditUndo;
       
   385             txt="Undo";
       
   386 			},
       
   387 		MENU_ITEM
       
   388 			{
       
   389 			command=EEikCmdEditRedo;
       
   390             txt="Redo";
       
   391 			flags=EEikMenuItemSeparatorAfter;
       
   392 			},
       
   393         MENU_ITEM
       
   394             {
       
   395 			command=EEikCmdEditCut;
       
   396             txt="Cut";
       
   397             },
       
   398         MENU_ITEM
       
   399             {
       
   400             command=EEikCmdEditCopy;
       
   401             txt="Copy";
       
   402             },
       
   403         MENU_ITEM
       
   404             {
       
   405             command=EEikCmdEditPaste;
       
   406             txt="Paste";
       
   407             },
       
   408 		MENU_ITEM
       
   409             {
       
   410             command=EEikCmdEditSelectAll;
       
   411             txt="Select all";
       
   412 			flags=EEikMenuItemSeparatorAfter;
       
   413             },
       
   414         MENU_ITEM
       
   415             {
       
   416 			cascade=r_word_editfind_menu;
       
   417 			txt="Find";
       
   418             },
       
   419 		MENU_ITEM
       
   420 			{
       
   421             cascade=r_word_editoptions_menu;
       
   422             txt="Object";
       
   423 			}
       
   424         };
       
   425     }
       
   426 
       
   427 RESOURCE MENU_PANE r_word_editfind_menu
       
   428 	{
       
   429 	items=
       
   430 		{
       
   431         MENU_ITEM
       
   432             {
       
   433 			command=EEikCmdSearchFind;
       
   434             txt="Find"<KEllipsis>;
       
   435             },
       
   436         MENU_ITEM
       
   437             {
       
   438 			command=EEikCmdSearchFindAgain;
       
   439             txt="Find next";
       
   440             },
       
   441         MENU_ITEM
       
   442             {
       
   443             command=EEikCmdSearchReplace;
       
   444             txt="Replace"<KEllipsis>;
       
   445             },
       
   446         MENU_ITEM
       
   447             {
       
   448             command=EWordCmdGoTo;
       
   449             txt="Go to"<KEllipsis>;
       
   450             }
       
   451 		};
       
   452 	}
       
   453 
       
   454 RESOURCE MENU_PANE r_word_editoptions_menu
       
   455     {
       
   456     items=
       
   457         {
       
   458 		MENU_ITEM
       
   459             {
       
   460             command=EWordCmdReEditObject;
       
   461             txt="Edit object"<KEllipsis>;
       
   462             },
       
   463 		MENU_ITEM
       
   464             {
       
   465 			command=EEikCmdEditPictureFormat;
       
   466 			txt="Format object"<KEllipsis>;
       
   467             }
       
   468 		};
       
   469     }
       
   470 
       
   471 RESOURCE MENU_PANE r_word_insert_menu
       
   472     {
       
   473     items=
       
   474         {
       
   475         MENU_ITEM
       
   476             {
       
   477             command=EWordCmdInsertSketch;
       
   478             txt="Sketch";
       
   479             },
       
   480         MENU_ITEM
       
   481             {
       
   482             command=EWordCmdInsertSheet;
       
   483             txt="Graph";
       
   484             },
       
   485         MENU_ITEM
       
   486             {
       
   487             command=EWordCmdInsertObject;
       
   488             txt="Other object"<KEllipsis>;
       
   489 			flags=EEikMenuItemSeparatorAfter;
       
   490             },
       
   491         MENU_ITEM
       
   492             {
       
   493 			command=EWordCmdInsertPageBreak;
       
   494             txt="Page break";
       
   495 			extratxt="Ctrl+Enter";
       
   496             },
       
   497         MENU_ITEM
       
   498             {
       
   499             command=EWordCmdInsertLineBreak;
       
   500             txt="Line break";
       
   501 			extratxt="Shift+Enter";
       
   502 			flags=EEikMenuItemSeparatorAfter;
       
   503             },
       
   504         MENU_ITEM
       
   505             {
       
   506 			command=EEikCmdInsertSymbol;
       
   507             txt="Special character"<KEllipsis>;
       
   508             }
       
   509 		};
       
   510 	}
       
   511 
       
   512 RESOURCE MENU_PANE r_word_paragraph_menu
       
   513     {
       
   514     items=
       
   515         {
       
   516 		MENU_ITEM
       
   517             {
       
   518       		command=EEikCmdParaIndent;
       
   519 			txt="Indents"<KEllipsis>;
       
   520             },
       
   521 		MENU_ITEM
       
   522             {
       
   523             command=EEikCmdParaTabs;
       
   524             txt="Tab positions"<KEllipsis>;
       
   525             },
       
   526 		MENU_ITEM
       
   527             {
       
   528 			command=EEikCmdParaSpacing;
       
   529 			txt="Line spacing"<KEllipsis>;
       
   530             },
       
   531 		MENU_ITEM
       
   532             {
       
   533 			command=EEikCmdParaBorder;
       
   534 			txt="Borders"<KEllipsis>;
       
   535 			},
       
   536 		MENU_ITEM
       
   537             {
       
   538 			cascade=r_word_para_alignment_menu;
       
   539             txt="Alignment";
       
   540             },
       
   541 		MENU_ITEM
       
   542 			{
       
   543 			cascade=r_word_para_bullets_menu;
       
   544 			txt="Bullets";
       
   545 			},
       
   546 		MENU_ITEM
       
   547 			{
       
   548 			command=EWordCmdRevertToStylePara;
       
   549 			txt="Remove formatting";
       
   550 			flags=EEikMenuItemSeparatorAfter;
       
   551 			},
       
   552 		MENU_ITEM
       
   553 			{
       
   554             command=EWordCmdStyleGallery;
       
   555             txt="Style gallery"<KEllipsis>;
       
   556 			}
       
   557 		};
       
   558     }
       
   559 
       
   560 RESOURCE MENU_PANE r_word_para_bullets_menu
       
   561     {
       
   562     items=
       
   563         {
       
   564         MENU_ITEM
       
   565             {
       
   566             command=EWordCmdInsertBullet;
       
   567             txt="Insert";
       
   568             },
       
   569         MENU_ITEM
       
   570             {
       
   571             command=EWordCmdFormatBullet;
       
   572             txt="Format"<KEllipsis>;
       
   573 			}
       
   574 		};
       
   575     }
       
   576 
       
   577 RESOURCE MENU_PANE r_word_para_alignment_menu
       
   578     {
       
   579     items=
       
   580         {
       
   581         MENU_ITEM
       
   582             {
       
   583             command=EWordCmdAlignLeft;
       
   584             txt="Left";
       
   585             flags=EEikMenuItemRadioStart;
       
   586             },
       
   587         MENU_ITEM
       
   588             {
       
   589             command=EWordCmdAlignRight;
       
   590             txt="Right";
       
   591             flags=EEikMenuItemRadioMiddle;
       
   592             },
       
   593         MENU_ITEM
       
   594             {
       
   595             command=EWordCmdAlignCenter;
       
   596             txt="Centred";
       
   597             flags=EEikMenuItemRadioMiddle;
       
   598             },
       
   599         MENU_ITEM
       
   600             {
       
   601             command=EWordCmdAlignJustify;
       
   602             txt="Justified";
       
   603             flags=EEikMenuItemRadioEnd;
       
   604             }
       
   605 		};
       
   606     }
       
   607 
       
   608 RESOURCE MENU_PANE r_word_text_menu
       
   609     {
       
   610     items=
       
   611         {
       
   612         MENU_ITEM
       
   613             {
       
   614             command=EEikCmdFontBold;
       
   615             txt="Bold";
       
   616 			flags=EEikMenuItemCheckBox;
       
   617             },
       
   618         MENU_ITEM
       
   619             {
       
   620             command=EEikCmdFontItalic;
       
   621 	        txt="Italic";
       
   622  			flags=EEikMenuItemCheckBox;
       
   623             },
       
   624         MENU_ITEM
       
   625             {
       
   626             command=EEikCmdFontUnderline;
       
   627             txt="Underline";
       
   628 			flags=EEikMenuItemSeparatorAfter|EEikMenuItemCheckBox;
       
   629             },
       
   630 		MENU_ITEM
       
   631 			{
       
   632 			command=EWordCmdRevertToStyleChar;
       
   633 			txt="Remove formatting";
       
   634 			flags=EEikMenuItemSeparatorAfter;
       
   635 			},
       
   636         MENU_ITEM
       
   637             {
       
   638             command=EEikCmdFontChange;
       
   639             txt="Font"<KEllipsis>;
       
   640             }
       
   641         };
       
   642     }  
       
   643 
       
   644 RESOURCE MENU_PANE r_word_tools_menu
       
   645     {
       
   646     items=
       
   647         {
       
   648 		MENU_ITEM
       
   649             {
       
   650 			command=EWordCmdViewPreferences;
       
   651             txt="View preferences"<KEllipsis>;
       
   652 			},
       
   653  		MENU_ITEM
       
   654             {
       
   655 			command=EWordCmdObjectPreferences;
       
   656             txt="Object preferences"<KEllipsis>;
       
   657  			flags=EEikMenuItemSeparatorAfter;
       
   658 			},
       
   659        MENU_ITEM
       
   660            {
       
   661             command=EWordCmdCount;
       
   662             txt="Word count";
       
   663             },
       
   664        MENU_ITEM
       
   665             {
       
   666             command=EEikCmdPrintPaginate;
       
   667             txt="Paginate";
       
   668  			flags=EEikMenuItemSeparatorAfter;
       
   669             },
       
   670         MENU_ITEM
       
   671             {
       
   672             cascade=r_word_tools_infrared;
       
   673 			txt="Infrared";
       
   674             }
       
   675         };
       
   676     }
       
   677 
       
   678 RESOURCE MENU_PANE r_word_test_menu
       
   679     {
       
   680     items=
       
   681         {
       
   682 		MENU_ITEM
       
   683             {
       
   684 			cascade=r_word_keyboard_menu;
       
   685             txt="Keyboard";
       
   686 			},
       
   687  		MENU_ITEM
       
   688             {
       
   689 			command=EWordCmdHighlight;
       
   690             txt="Highlight";
       
   691 			flags=EEikMenuItemCheckBox;
       
   692 			},
       
   693  		MENU_ITEM
       
   694             {
       
   695 			command=EWordCmdShadow;
       
   696             txt="Shadow";
       
   697 			flags=EEikMenuItemCheckBox;
       
   698 			},
       
   699  		MENU_ITEM
       
   700             {
       
   701 			command=EWordCmdCustomHighlight;
       
   702             txt="Custom highlight";
       
   703 			flags=EEikMenuItemCheckBox;
       
   704 			},
       
   705 		MENU_ITEM
       
   706             {
       
   707 			cascade=r_word_picture_alignment_menu;
       
   708             txt="Picture alignment";
       
   709             },
       
   710 		MENU_ITEM
       
   711             {
       
   712 			cascade=r_word_cursor_style_menu;
       
   713             txt="Cursor style";
       
   714             },
       
   715 		MENU_ITEM
       
   716 			{
       
   717 			command=EWordCmdRuledPaper;
       
   718 			txt="Ruled paper";
       
   719 			flags=EEikMenuItemCheckBox;
       
   720 			},
       
   721 		MENU_ITEM
       
   722 			{
       
   723 			command=EWordCmdBackgroundBitmap;
       
   724 			txt="Background bitmap";
       
   725 			flags=EEikMenuItemCheckBox;
       
   726 			},
       
   727 		MENU_ITEM
       
   728 			{
       
   729 			command=EWordCmdUpperCase;
       
   730 			txt="Uppercase";
       
   731 			flags=EEikMenuItemCheckBox;
       
   732 			},
       
   733 		MENU_ITEM
       
   734 			{
       
   735 			command=EWordCmdBenchmark;
       
   736 			txt="Benchmark reformatting";
       
   737 			},
       
   738 		MENU_ITEM
       
   739 			{
       
   740 			command=EWordCmdTruncateWithEllipsis;
       
   741 			txt="Truncate with ellipsis";
       
   742 			flags=EEikMenuItemCheckBox;
       
   743 			},
       
   744 		MENU_ITEM
       
   745 			{
       
   746 			command=EWordCmdWrapOn;
       
   747 			txt="Wrap on";
       
   748 			},
       
   749 		MENU_ITEM
       
   750 			{
       
   751 			command=EWordCmdWrapOff;
       
   752 			txt="Wrap off";
       
   753 			},
       
   754 		MENU_ITEM
       
   755 			{
       
   756 			command=EWordCmdInsertPicture;
       
   757 			txt="Insert Picture";
       
   758 			},
       
   759 		MENU_ITEM
       
   760 			{
       
   761 			cascade=r_word_positioning_hint_test_menu;
       
   762 			txt="Set cursor positioning hint";
       
   763 			},
       
   764 		MENU_ITEM
       
   765 			{
       
   766 			cascade=r_word_undo_test_menu;
       
   767 			txt="Undo tests";
       
   768 			},
       
   769 		MENU_ITEM
       
   770 			{
       
   771 			cascade=r_word_selection_highlight_menu;
       
   772 			txt="Selection Highlight";
       
   773 			}
       
   774         };
       
   775     }
       
   776 
       
   777 RESOURCE MENU_PANE r_word_positioning_hint_test_menu
       
   778 	{
       
   779 	items=
       
   780 		{
       
   781 		MENU_ITEM
       
   782 			{
       
   783 			command=EWordCmdPositioningHintNeutral;
       
   784 			txt="Neutral";
       
   785 			flags=EEikMenuItemRadioStart;
       
   786 			},
       
   787 		MENU_ITEM
       
   788 			{
       
   789 			command=EWordCmdPositioningHintInsertLeftToRight;
       
   790 			txt="Inserting strong left to right";
       
   791 			flags=EEikMenuItemRadioMiddle;
       
   792 			},
       
   793 		MENU_ITEM
       
   794 			{
       
   795 			command=EWordCmdPositioningHintInsertRightToLeft;
       
   796 			txt="Inserting strong right to left";
       
   797 			flags=EEikMenuItemRadioEnd;
       
   798 			}
       
   799 		};
       
   800 	}
       
   801 
       
   802 RESOURCE MENU_PANE r_word_undo_test_menu
       
   803 	{
       
   804 	items=
       
   805 		{
       
   806 		MENU_ITEM
       
   807 			{
       
   808 			command=EWordCmdUndoTestNotUndoable;
       
   809 			txt="Not Undoable Command";
       
   810 			}
       
   811 		};
       
   812 	}
       
   813 
       
   814 RESOURCE MENU_PANE r_word_picture_alignment_menu
       
   815     {
       
   816     items=
       
   817         {
       
   818         MENU_ITEM
       
   819             {
       
   820             command=EWordCmdPictureAlignTop;
       
   821             txt="Top";
       
   822             flags=EEikMenuItemRadioStart;
       
   823             },
       
   824         MENU_ITEM
       
   825             {
       
   826             command=EWordCmdPictureAlignBottom;
       
   827             txt="Bottom";
       
   828             flags=EEikMenuItemRadioMiddle;
       
   829             },
       
   830         MENU_ITEM
       
   831             {
       
   832             command=EWordCmdPictureAlignCenter;
       
   833             txt="Centred";
       
   834             flags=EEikMenuItemRadioMiddle;
       
   835             },
       
   836         MENU_ITEM
       
   837             {
       
   838             command=EWordCmdPictureAlignBaseline;
       
   839             txt="Baseline";
       
   840             flags=EEikMenuItemRadioEnd;
       
   841             }
       
   842 		};
       
   843     }
       
   844 
       
   845 RESOURCE MENU_PANE r_word_selection_highlight_menu
       
   846     {
       
   847     items=
       
   848         {
       
   849         MENU_ITEM
       
   850             {
       
   851             command=EWordCmdSelectionHighlightNormal;
       
   852             txt="Normal";
       
   853             flags=EEikMenuItemRadioStart;
       
   854             },
       
   855         MENU_ITEM
       
   856             {
       
   857             command=EWordCmdSelectionHighlightCustom1;
       
   858             txt="Blue XOR";
       
   859             flags=EEikMenuItemRadioMiddle;
       
   860             },
       
   861         MENU_ITEM
       
   862             {
       
   863             command=EWordCmdSelectionHighlightCustom2;
       
   864             txt="White on red";
       
   865             flags=EEikMenuItemRadioEnd;
       
   866             }
       
   867 		};
       
   868     }
       
   869 
       
   870 RESOURCE MENU_PANE r_word_cursor_style_menu
       
   871     {
       
   872     items=
       
   873         {
       
   874         MENU_ITEM
       
   875             {
       
   876             command=EWordCmdCursorStyleFlash;
       
   877             txt="Flash";
       
   878 			flags=EEikMenuItemCheckBox;
       
   879             },
       
   880 		MENU_ITEM
       
   881 			{
       
   882 			command=EWordCmdCursorStyleHeavy;
       
   883 			txt="Heavy";
       
   884 			flags=EEikMenuItemCheckBox;
       
   885 			},
       
   886 		MENU_ITEM
       
   887 			{
       
   888 			command=EWordCmdCursorStyleRed;
       
   889 			txt="Red";
       
   890 			flags=EEikMenuItemCheckBox;
       
   891 			},
       
   892         MENU_ITEM
       
   893             {
       
   894             command=EWordCmdCursorStyleVertical;
       
   895             txt="Vertical";
       
   896             flags=EEikMenuItemRadioStart;
       
   897             },
       
   898         MENU_ITEM
       
   899             {
       
   900             command=EWordCmdCursorStyleUnderlineNext;
       
   901             txt="Underline next character";
       
   902             flags=EEikMenuItemRadioMiddle;
       
   903             },
       
   904         MENU_ITEM
       
   905             {
       
   906             command=EWordCmdCursorStyleUnderlinePrev;
       
   907             txt="Underline previous character";
       
   908             flags=EEikMenuItemRadioEnd;
       
   909             }
       
   910 		};
       
   911     }
       
   912 
       
   913 RESOURCE MENU_PANE r_word_keyboard_menu
       
   914     {
       
   915     items=
       
   916         {
       
   917 		MENU_ITEM
       
   918             {
       
   919 			command=EWordCmdStandardKeyboard;
       
   920             txt="Standard (Latin) keyboard";
       
   921 			flags=EEikMenuItemRadioStart;
       
   922 			},
       
   923 		MENU_ITEM
       
   924             {
       
   925 			command=EWordCmdArabicKeyboard;
       
   926             txt="Arabic keyboard";
       
   927 			flags=EEikMenuItemRadioMiddle;
       
   928 			},
       
   929 		MENU_ITEM
       
   930             {
       
   931 			command=EWordCmdGreekKeyboard;
       
   932             txt="Greek keyboard";
       
   933 			flags=EEikMenuItemRadioMiddle;
       
   934 			},
       
   935 		MENU_ITEM
       
   936             {
       
   937 			command=EWordCmdRussianKeyboard;
       
   938             txt="Russian keyboard";
       
   939 			flags=EEikMenuItemRadioMiddle;
       
   940 			},
       
   941 		MENU_ITEM
       
   942 			{
       
   943 			command=EWordCmdChineseOn;
       
   944 			txt="Chinese FEP on";
       
   945 			flags=EEikMenuItemRadioMiddle;
       
   946 			},
       
   947 		MENU_ITEM
       
   948 			{
       
   949 			command=EWordCmdChineseOff;
       
   950 			txt="Chinese FEP off";
       
   951 			flags=EEikMenuItemRadioEnd;
       
   952 			}
       
   953 		};
       
   954 	}
       
   955 
       
   956 RESOURCE MENU_PANE r_word_tools_infrared
       
   957 	{
       
   958 	items=
       
   959 		{
       
   960         MENU_ITEM
       
   961             {
       
   962 			command=EEikCmdIrdaSend;
       
   963 			txt="Send";
       
   964             },
       
   965         MENU_ITEM
       
   966             {
       
   967             command=EEikCmdIrdaReceive;
       
   968             txt="Receive";
       
   969             }
       
   970 		};
       
   971 	}
       
   972 
       
   973 RESOURCE MENU_PANE r_word_view_menu
       
   974     {
       
   975     items=
       
   976         {
       
   977         MENU_ITEM
       
   978             {
       
   979 			command=EEikCmdZoomIn;
       
   980             txt="Zoom in";
       
   981             },
       
   982         MENU_ITEM
       
   983             {
       
   984             command=EEikCmdZoomOut;
       
   985             txt="Zoom out";
       
   986 			},
       
   987         MENU_ITEM
       
   988             {
       
   989             command=EWordCmdZoomSet;
       
   990             txt="Set zoom"<KEllipsis>;
       
   991   			flags=EEikMenuItemSeparatorAfter;
       
   992 			},
       
   993 		MENU_ITEM
       
   994             {
       
   995             command=EWordCmdToolbar;
       
   996             txt="Show toolbar";
       
   997 			flags=EEikMenuItemCheckBox;
       
   998             },
       
   999 		MENU_ITEM
       
  1000             {
       
  1001             command=EWordCmdToolband;
       
  1002             txt="Show top toolbar";
       
  1003 			flags=EEikMenuItemCheckBox;
       
  1004             },
       
  1005         MENU_ITEM
       
  1006             {
       
  1007 			command=EWordCmdWrapToScreen;
       
  1008             txt="Wrap to screen";
       
  1009 			flags=EEikMenuItemSeparatorAfter|EEikMenuItemCheckBox;
       
  1010             },
       
  1011 		MENU_ITEM
       
  1012 			{
       
  1013 			command=EWordCmdOutline;
       
  1014 			txt="Outline"<KEllipsis>;
       
  1015 			}
       
  1016 		};
       
  1017 	}
       
  1018 
       
  1019 RESOURCE DIALOG r_word_dialog_goto
       
  1020     {
       
  1021     flags=EEikDialogFlagWait;
       
  1022     title="Go to page";
       
  1023 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1024     items=
       
  1025         {
       
  1026         DLG_LINE
       
  1027             {
       
  1028             prompt="Go to page";
       
  1029             type=EEikCtNumberEditor;
       
  1030             id=EWordCidPageNumber;
       
  1031 			control=NUMBER_EDITOR { min=0; max=99999; };
       
  1032 			},
       
  1033 		DLG_LINE
       
  1034 			{
       
  1035 			prompt="Pages in this file:";
       
  1036             type=EEikCtLabel;
       
  1037 			id=EWordCidPages;
       
  1038 			control=LABEL { txt=""; };
       
  1039 			}
       
  1040 		};
       
  1041     }
       
  1042 
       
  1043 
       
  1044 RESOURCE DIALOG r_word_dialog_outline
       
  1045     {
       
  1046     flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight;
       
  1047     title="Document outline";
       
  1048 	buttons=r_word_outline_buttons;
       
  1049     items=
       
  1050         {
       
  1051 		DLG_LINE
       
  1052 			{
       
  1053             type=EWordCtOutlineNav;
       
  1054 			id=EWordCidOutline;
       
  1055             control=OUTLINE_CONTROL
       
  1056 				{
       
  1057 				width=390;
       
  1058 				height=180;
       
  1059 				};
       
  1060 			}
       
  1061 		};
       
  1062     }
       
  1063 
       
  1064 RESOURCE DLG_BUTTONS r_word_outline_buttons
       
  1065     {
       
  1066     buttons=
       
  1067         {
       
  1068         DLG_BUTTON { id=EWordBidOpenAll; button=CMBUT {txt="Open all";}; hotkey='Y'; },
       
  1069         DLG_BUTTON { id=EWordBidCloseAll; button=CMBUT {txt="Close all";}; hotkey='U'; },
       
  1070         DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Done";}; hotkey=EEikBidCancel; },
       
  1071         DLG_BUTTON { id=EEikBidOk; button= CMBUT {txt="Go to";}; hotkey=EEikBidOk; }
       
  1072       };
       
  1073     }
       
  1074 
       
  1075 RESOURCE DIALOG r_word_dialog_bullet
       
  1076 	{
       
  1077     flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight;
       
  1078 	title="Select bullet character";
       
  1079 	buttons=r_word_buttons_bullet;
       
  1080     items=
       
  1081         {
       
  1082 		DLG_LINE
       
  1083 			{
       
  1084             type=EEikCtCharMap;
       
  1085 			id=EWordCidBulletCharMap;
       
  1086             // no value
       
  1087 			}
       
  1088 		};
       
  1089 	}
       
  1090 
       
  1091 RESOURCE DLG_BUTTONS r_word_buttons_bullet
       
  1092     {
       
  1093     buttons=
       
  1094         {
       
  1095 		DLG_BUTTON { id=EWordCidFormatBullet; button=CMBUT {txt="Format"<KEllipsis>;}; hotkey='F'; },
       
  1096         DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Cancel";}; hotkey=EEikBidCancel; flags=0;},
       
  1097         DLG_BUTTON { id=EEikBidOk; button= CMBUT {txt="OK";}; hotkey=EEikBidOk; flags=0; }
       
  1098       };
       
  1099     }
       
  1100 
       
  1101 RESOURCE DIALOG r_word_dialog_format_bullet
       
  1102 	{
       
  1103     flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight;
       
  1104 	title="Format bullet character";
       
  1105 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1106 	items=
       
  1107 		{
       
  1108 		DLG_LINE
       
  1109 			{
       
  1110 			type=EWordCtBulletPreviewLabel;
       
  1111 			prompt="Bullet";
       
  1112 			id=EWordCidBulletCharacter;
       
  1113 			control=LABEL { vert_align=EEikLabelAlignVCenter; txt=""; };
       
  1114 			},
       
  1115 		DLG_LINE
       
  1116 			{
       
  1117 			type=EEikCtGraySelector;
       
  1118 			prompt="Colour";
       
  1119 			id=EWordCidBulletColor;
       
  1120 			control=GRAYSEL { flags=EEikGraySelDisplay4Gray; };
       
  1121 			},
       
  1122 		DLG_LINE
       
  1123 			{
       
  1124 			type=EEikCtChoiceList;
       
  1125 			prompt="Size";
       
  1126 			id=EWordCidBulletHeight;
       
  1127 			control=CHOICELIST { };
       
  1128 			},
       
  1129 		DLG_LINE
       
  1130 			{
       
  1131 			type=EEikCtCheckBox;
       
  1132 			prompt="Indent";
       
  1133 			id=EWordCidBulletIndent;
       
  1134 			}
       
  1135 		};
       
  1136 	}
       
  1137 
       
  1138 RESOURCE DIALOG r_word_dialog_style_gallery
       
  1139     {
       
  1140     title="Style gallery";
       
  1141     flags=EEikDialogFlagWait|EEikDialogFlagDensePacking; // |EEikDialogFlagButtonsRight
       
  1142 	buttons=r_word_buttons_styleoption;
       
  1143     items=
       
  1144         {
       
  1145         DLG_LINE
       
  1146             {
       
  1147 			type = EEikCtColListBox;
       
  1148 			id=EWordCidStyleNameList;
       
  1149             control=LISTBOX 
       
  1150 				{
       
  1151 				height=4;
       
  1152 				};
       
  1153            	},
       
  1154         DLG_LINE
       
  1155             {
       
  1156 			type=EEikCtGlobalTextEditor;
       
  1157 			id=EWordCidStyleInfo;
       
  1158 			control=GTXTED
       
  1159 				{
       
  1160 				width=252;
       
  1161 				height=50;
       
  1162 				numlines=3;
       
  1163 				flags=EEikEdwinDisplayOnly|EEikEdwinNoAutoSelection|EEikEdwinInclusiveSizeFixed;
       
  1164 				};
       
  1165            	}
       
  1166 		};
       
  1167     }
       
  1168 
       
  1169 
       
  1170 RESOURCE DLG_BUTTONS r_word_buttons_styleoption
       
  1171     {
       
  1172     buttons=
       
  1173         {
       
  1174 		DLG_BUTTON { id=EWordCidAddStyle; button=CMBUT {txt="New"<KEllipsis>;}; hotkey='N'; },
       
  1175 		DLG_BUTTON { id=EWordCidModifyStyle; button=CMBUT {txt="Modify"<KEllipsis>;}; hotkey='M'; },
       
  1176 		DLG_BUTTON { id=EEikBidDelete; button=CMBUT {txt="Delete";}; hotkey=EEikBidDelete; },
       
  1177         DLG_BUTTON { id=EEikBidCancel; button=CMBUT {txt="Cancel";}; hotkey=EEikBidCancel; flags	=0; },
       
  1178         DLG_BUTTON { id=EEikBidOk; button=CMBUT {txt="Apply";}; hotkey=EEikBidOk; }
       
  1179       };
       
  1180     }
       
  1181 
       
  1182 RESOURCE DIALOG r_word_dialog_style_format
       
  1183     {
       
  1184     title="Add new style";
       
  1185     flags=EEikDialogFlagWait;
       
  1186 	buttons=r_word_buttons_styleaddoption;
       
  1187     items=
       
  1188         {
       
  1189         DLG_LINE
       
  1190             {
       
  1191             type=EEikCtEdwin;
       
  1192             prompt="Name";
       
  1193 			id=EWordCidStyleName;
       
  1194             control= EDWIN { width=10; maxlength=32; };
       
  1195            	},
       
  1196 		DLG_LINE
       
  1197 			{
       
  1198 			type=EWordCtStyleShortcutKeyEditor;
       
  1199 			prompt="Shortcut key: Ctrl+Fn+";
       
  1200 			id=EWordCidHotKey;
       
  1201 			},
       
  1202 		DLG_LINE
       
  1203 			{
       
  1204             id=EWordCidBullet;
       
  1205             type=EEikCtCheckBox;
       
  1206             prompt="Insert bullet";
       
  1207             },		
       
  1208 		DLG_LINE
       
  1209 			{
       
  1210 			id=EWordCidOutline;
       
  1211 			type=EEikCtNumberEditor;
       
  1212 			prompt="Outline level";
       
  1213             control=NUMBER_EDITOR {min=0; max=99; };
       
  1214 			}
       
  1215 		};
       
  1216     }
       
  1217 
       
  1218 
       
  1219 RESOURCE MENU_PANE r_word_style_format_menu
       
  1220     {
       
  1221     items=
       
  1222         {
       
  1223         MENU_ITEM
       
  1224             {
       
  1225             command=EEikCmdFontChange;
       
  1226             txt="Font"<KEllipsis>;
       
  1227             },
       
  1228 		MENU_ITEM
       
  1229             {
       
  1230             command=EEikCmdParaIndent;
       
  1231             txt="Indents"<KEllipsis>;
       
  1232             },
       
  1233 		MENU_ITEM
       
  1234             {
       
  1235             command=EEikCmdParaTabs;
       
  1236             txt="Tab positions"<KEllipsis>;
       
  1237             },
       
  1238 		MENU_ITEM
       
  1239             {
       
  1240             command=EEikCmdParaSpacing;
       
  1241             txt="Line spacing"<KEllipsis>;
       
  1242             },
       
  1243         MENU_ITEM
       
  1244             {
       
  1245             command=EEikCmdParaBorder;
       
  1246             txt="Borders"<KEllipsis>;
       
  1247             },
       
  1248 		MENU_ITEM
       
  1249 			{
       
  1250 			command=EWordCmdFormatBullet;
       
  1251 			txt="Bullets"<KEllipsis>;
       
  1252 			},
       
  1253         MENU_ITEM
       
  1254             {
       
  1255             command=EEikCmdParaAlign;
       
  1256             txt="Alignment"<KEllipsis>;
       
  1257             }
       
  1258 		};
       
  1259     }
       
  1260 
       
  1261 RESOURCE DLG_BUTTONS r_word_buttons_styleaddoption
       
  1262 	{
       
  1263 	buttons=
       
  1264 		{
       
  1265 		DLG_BUTTON { id=EWordCidFormatList;
       
  1266 					 buttontype=EEikCtMenuButton;
       
  1267 					 button=MNBUT { popout=r_word_style_format_menu;
       
  1268 								    txt="Format"; bmpfile="z:\\system\\data\\eikon.mbm";
       
  1269 									bmpid=EMbmEikonSarrow;
       
  1270 									bmpmask=EMbmEikonSarrow;
       
  1271 								  };
       
  1272 					hotkey='F';
       
  1273 					},
       
  1274 		DLG_BUTTON { id=EEikBidCancel; button=CMBUT{ txt="Cancel";}; hotkey=EEikBidCancel; flags=0; },
       
  1275 		DLG_BUTTON { id=EEikBidOk; button=CMBUT{ txt="OK";}; hotkey=EEikBidOk; flags=0; }
       
  1276 		};
       
  1277 	}
       
  1278 
       
  1279 RESOURCE ARRAY r_word_view_pref_array
       
  1280 	{
       
  1281 	items=
       
  1282 		{
       
  1283 		LBUF { txt="All"; },
       
  1284 		LBUF { txt="Some"; },
       
  1285 		LBUF { txt="None"; }
       
  1286 		};
       
  1287 	}
       
  1288 
       
  1289 RESOURCE DIALOG r_word_dialog_view_preferences
       
  1290 	{
       
  1291     flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight; 
       
  1292 	title="View preferences";
       
  1293 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1294     items=
       
  1295         {
       
  1296 		DLG_LINE
       
  1297             {
       
  1298             prompt="Show tabs";
       
  1299             type=EEikCtCheckBox;
       
  1300 			id=EWordCidTab;
       
  1301             },
       
  1302         DLG_LINE
       
  1303             {
       
  1304             prompt="Show spaces";
       
  1305             type=EEikCtCheckBox;
       
  1306 			id=EWordCidSpaces;
       
  1307             },
       
  1308         DLG_LINE
       
  1309             {
       
  1310             prompt="Show non-breaking spaces";
       
  1311             type=EEikCtCheckBox;
       
  1312 			id=EWordCidNonBreakingSpace;
       
  1313             },
       
  1314         DLG_LINE
       
  1315             {
       
  1316             prompt="Show paragraph ends";
       
  1317             type=EEikCtCheckBox;
       
  1318 			id=EWordCidParaEnds;
       
  1319             },
       
  1320         DLG_LINE
       
  1321             {
       
  1322             prompt="Show forced line breaks";
       
  1323             type=EEikCtCheckBox;
       
  1324 			id=EWordCidForcedLineBreaks;
       
  1325             },
       
  1326         DLG_LINE
       
  1327             {
       
  1328             prompt="Show hard hyphens";
       
  1329             type=EEikCtCheckBox;
       
  1330 			id=EWordCidHardHyphens;
       
  1331             }
       
  1332 		};
       
  1333 	}
       
  1334 
       
  1335 RESOURCE DIALOG r_word_dialog_object_preferences
       
  1336 	{
       
  1337     flags=EEikDialogFlagWait|EEikDialogFlagButtonsRight;
       
  1338 	title="Object preferences";
       
  1339 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1340     items=
       
  1341 		{
       
  1342         DLG_LINE
       
  1343             {
       
  1344             prompt="Show new sketch as icon";
       
  1345             type=EEikCtCheckBox;
       
  1346 			id=EWordCidShowSketch;
       
  1347             },
       
  1348         DLG_LINE
       
  1349             {
       
  1350             prompt="Show new graph as icon";
       
  1351             type=EEikCtCheckBox;
       
  1352 			id=EWordCidShowGraph;
       
  1353             }
       
  1354 		};
       
  1355 	}
       
  1356 
       
  1357 RESOURCE DIALOG r_word_dialog_zoom_set
       
  1358 	{
       
  1359 	flags=EEikDialogFlagWait;
       
  1360     title="Set zoom factor";
       
  1361 	buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1362 	items=
       
  1363 		{
       
  1364 		DLG_LINE
       
  1365             {
       
  1366 		    type=EEikCtNumberEditor;
       
  1367             prompt="Zoom to";
       
  1368 			trailer="%";
       
  1369 		    id=EWordCidZoomSet;
       
  1370 			control= NUMBER_EDITOR {min=1;max=200;};
       
  1371 			}
       
  1372 	    };
       
  1373     }
       
  1374 
       
  1375 RESOURCE DIALOG r_word_template_file_new
       
  1376     {
       
  1377     flags=EEikDialogFlagWait;
       
  1378     title="Open file";
       
  1379     buttons=R_EIK_BUTTONS_BROWSE_CANCEL_OK;
       
  1380     items=
       
  1381         {
       
  1382         DLG_LINE
       
  1383             {
       
  1384             prompt="Name";
       
  1385             type=EEikCtFileNameEd;
       
  1386             id=EEikCidFileNameEd;
       
  1387             control=FILENAMEEDITOR {};
       
  1388             },
       
  1389         DLG_LINE
       
  1390             {
       
  1391             prompt="Folder";
       
  1392             type=EEikCtFolderNameSel;
       
  1393             id=EEikCidFolderNameSel;
       
  1394             control=FOLDERNAMESELECTOR {};
       
  1395             },
       
  1396         DLG_LINE
       
  1397             {
       
  1398             prompt="Disk";
       
  1399             type=EEikCtDriveNameSel;
       
  1400             id=EEikCidDriveNameSel;
       
  1401             control=DRIVENAMESELECTOR {};
       
  1402             },
       
  1403         DLG_LINE
       
  1404             {
       
  1405 			type=EEikCtCheckBox;
       
  1406             prompt="Use new file";
       
  1407 			id=EEikCidUseNewFileChbx;
       
  1408             },
       
  1409 		DLG_LINE
       
  1410 			{
       
  1411 			prompt="Template";
       
  1412 			type=EWordUnifiedFileNameSelector;
       
  1413             id=EEikCtUnifiedFileSel;
       
  1414 			control=UNIFIEDNAMESELECTOR {};
       
  1415    			}
       
  1416         };
       
  1417     }
       
  1418 
       
  1419 RESOURCE DIALOG r_word_template_save_as
       
  1420     {
       
  1421     flags=EEikDialogFlagWait;
       
  1422     title="Save as template";
       
  1423     buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1424     items=
       
  1425         {
       
  1426 		DLG_LINE
       
  1427 			{
       
  1428 			type=EEikCtLabel;
       
  1429 			id=EWordCidTemplateSaveAsLabel1;
       
  1430 			control=LABEL
       
  1431 				{
       
  1432 				horiz_align=EEikLabelAlignHLeft;
       
  1433 				standard_font=EEikLabelFontAnnotation;
       
  1434 				txt = "To save as a standard template, save with the name \"Normal\""; 
       
  1435 				};
       
  1436 			},
       
  1437         DLG_LINE
       
  1438             {
       
  1439             prompt="Template name";
       
  1440             type=EEikCtFileNameEd;
       
  1441             id=EEikCidFileNameEd;
       
  1442             control=FILENAMEEDITOR {};
       
  1443             },
       
  1444         DLG_LINE
       
  1445             {
       
  1446             prompt="Disk";
       
  1447             type=EEikCtDriveNameSel;
       
  1448             id=EEikCidDriveNameSel;
       
  1449             control=DRIVENAMESELECTOR {};
       
  1450             }
       
  1451         };
       
  1452     }
       
  1453 
       
  1454 RESOURCE DIALOG r_word_template_delete
       
  1455     {
       
  1456     flags=EEikDialogFlagWait;
       
  1457     title="Delete template";
       
  1458     buttons=R_EIK_BUTTONS_CANCEL_OK;
       
  1459     items=
       
  1460         {
       
  1461 		DLG_LINE
       
  1462 			{
       
  1463 			type=EEikCtLabel;
       
  1464 			id=EEikCtLabel;
       
  1465 			control=LABEL
       
  1466 				{
       
  1467 				horiz_align=EEikLabelAlignHLeft;
       
  1468 				standard_font=EEikLabelFontAnnotation;
       
  1469 				txt = "You can only delete templates you created yourself"; 
       
  1470 				};
       
  1471 			},
       
  1472 		DLG_LINE
       
  1473 			{
       
  1474 			prompt="Template to delete";
       
  1475 			type=EEikCtUnifiedFileSel;
       
  1476             id=EEikCtUnifiedFileSel;
       
  1477 			control=UNIFIEDNAMESELECTOR {};
       
  1478 			}
       
  1479         };
       
  1480     }
       
  1481 
       
  1482 /* NORMAL TEMPLATE FILE NAME */
       
  1483 RESOURCE TBUF r_word_normal_template_file_name { buf="Normal"; }
       
  1484 RESOURCE TBUF r_word_blank_template_file_name { buf="Blank"; }
       
  1485 /* TEMPLATE MESSAGES */
       
  1486 RESOURCE TBUF r_word_template_saving_file { buf="Saving template"; }
       
  1487 RESOURCE TBUF r_word_template_delete_confirmation_pre { buf="Delete template \""; } // max length 30
       
  1488 RESOURCE TBUF r_word_template_delete_confirmation_post { buf="\"?"; } // max length 30
       
  1489 RESOURCE TBUF r_word_template_not_available { buf="Template not available"; }
       
  1490 RESOURCE TBUF32 r_word_template_saved_message { buf="Template saved as %S"; }
       
  1491 
       
  1492 /* FILE OPERATIONS TEXT */
       
  1493 RESOURCE TBUF r_word_document_unchanged { buf="File has not changed"; }
       
  1494 RESOURCE TBUF r_word_text_import_dialog_title { buf="Import text file"; }
       
  1495 RESOURCE TBUF r_word_html_import_dialog_title { buf="Import HTML file"; }
       
  1496 RESOURCE TBUF r_word_text_export_dialog_title { buf="Export text file"; }
       
  1497 RESOURCE TBUF r_word_file_read_only { buf="This file is read-only"; }
       
  1498 RESOURCE TBUF r_word_file_save_read_only { buf="Read-only file"; }
       
  1499 RESOURCE TBUF r_word_file_create_file { buf="Creating file from template"; }
       
  1500 
       
  1501 /* SPELLING DIALOGS TEXT */
       
  1502 RESOURCE TBUF r_word_spell_no_suggestions { buf="No suggestions"; } // max length 30
       
  1503 RESOURCE TBUF r_word_spell_correction { buf="Enter a correction"; }
       
  1504 RESOURCE TBUF r_word_spell_unrecognized_word { buf="Unrecognised word \"%S\""; } // max length 40
       
  1505 RESOURCE TBUF r_word_spell_one_unrecognized_word { buf="1 unrecognised word"; } // max length 32
       
  1506 RESOURCE TBUF r_word_spell_many_unrecognized_words { buf="%D unrecognised words"; } // max length 29
       
  1507 RESOURCE TBUF r_word_spell_one_unrecognized_word_in_selection { buf="1 unrecognised word in the selection"; } // max length 52
       
  1508 RESOURCE TBUF r_word_spell_many_unrecognized_words_in_selection { buf="%D unrecognised words in the selection"; } // max length 49
       
  1509 RESOURCE TBUF r_word_spell_load_dictionary { buf="Opening dictionaries... "; }
       
  1510 RESOURCE TBUF r_word_spell_user_dict_not_enabled { buf="Personal dictionary is not enabled"; } 
       
  1511 RESOURCE TBUF r_word_spell_dict_not_available { buf="Personal dictionary is not available"; } 
       
  1512 RESOURCE TBUF r_word_spell_selection { buf="Spell checking selection"; } // dialog title
       
  1513 RESOURCE TBUF r_word_spell_not_started { buf="Cannot start spell checker"; } 
       
  1514 RESOURCE TBUF r_word_spell_information { buf="Information"; } 
       
  1515 RESOURCE TBUF r_word_spell_nothing_to_check { buf="No words to spell check"; } 
       
  1516 
       
  1517 /* STYLE DIALOGS TEXT */
       
  1518 RESOURCE TBUF r_word_style_revert_title { buf= "Revert to style"; }
       
  1519 RESOURCE TBUF r_word_style_revert_char { buf= "Remove manual character formatting"; }
       
  1520 RESOURCE TBUF r_word_style_revert_para { buf= "Remove manual paragraph formatting"; }
       
  1521 RESOURCE TBUF r_word_styleformat_title_modify { buf= "Modify \"%S\""; } // max length 24
       
  1522 RESOURCE TBUF r_word_styleformat_title_add { buf= "Add new style"; }
       
  1523 RESOURCE TBUF r_word_normal { buf="Normal"; }  // KMaxParagraphStyleName length = 32
       
  1524 RESOURCE TBUF r_word_nostylename { buf="Type in a style name";}
       
  1525 RESOURCE TBUF r_word_stylenameexists { buf="Style with this name already exists"; }
       
  1526 RESOURCE TBUF r_word_close { buf="Close"; }  // max length 20
       
  1527 RESOURCE TBUF r_word_delete_style_title { buf="Delete style \"%S\""; }
       
  1528 RESOURCE TBUF r_word_hotkeyexists { buf="Shortcut is currently assigned to \"%S\""; } // max length 48
       
  1529 RESOURCE TBUF r_word_hotkey_invalid { buf="Invalid shortcut - letter or number only"; }
       
  1530 RESOURCE TBUF r_word_hotkey { buf="Ctrl+Fn+"; }   // max length 20
       
  1531 RESOURCE ARRAY r_word_style_gallery_descriptions
       
  1532     {
       
  1533 /* DO NOT REORDER THE FOLLOWING RESOURCES */
       
  1534     items=
       
  1535         {
       
  1536 		LBUF { txt=""; },
       
  1537 		LBUF { txt=""; },
       
  1538 		LBUF { txt="Left indent"; },
       
  1539 		LBUF { txt="Right indent"; },
       
  1540 		LBUF { txt="1st line indent"; },
       
  1541 		LBUF { txt=""; },
       
  1542 		LBUF { txt=""; },
       
  1543 		LBUF { txt="Line spacing"; },
       
  1544 		LBUF { txt=""; },
       
  1545 		LBUF { txt="Sp before"; },
       
  1546 		LBUF { txt="Sp after"; },
       
  1547 		LBUF { txt="Keep together"; },
       
  1548 		LBUF { txt="Keep with next"; },
       
  1549 		LBUF { txt="Start new page"; },
       
  1550 		LBUF { txt="Widow/orphan"; },
       
  1551 		LBUF { txt=""; },
       
  1552 		LBUF { txt="Border margin"; },
       
  1553 		LBUF { txt="Top border"; },
       
  1554 		LBUF { txt="Bottom border"; },
       
  1555 		LBUF { txt="Left border"; },
       
  1556 		LBUF { txt="Right border"; },
       
  1557 		LBUF { txt="Bullet"; },
       
  1558 		LBUF { txt=""; },
       
  1559 		LBUF { txt="Tab"; },
       
  1560 		LBUF { txt="Italic"; },
       
  1561 		LBUF { txt="Bold"; },
       
  1562 		LBUF { txt="Superscript"; },
       
  1563 		LBUF { txt="Subscript"; },
       
  1564 		LBUF { txt="Underline"; },
       
  1565 		LBUF { txt="Strikethrough"; },
       
  1566 		LBUF { txt="Left aligned"; },
       
  1567 		LBUF { txt="Centred"; },
       
  1568 		LBUF { txt="Right aligned"; },
       
  1569 		LBUF { txt="Justified"; }
       
  1570         };
       
  1571     }
       
  1572 
       
  1573 
       
  1574 /* MISCELLANEOUS TEXT */
       
  1575 RESOURCE TBUF r_word_font_units { buf=" pt";}
       
  1576 RESOURCE TBUF r_word_no_words { buf="Words: %d"; }
       
  1577 
       
  1578 RESOURCE TBUF r_word_no_outline { buf="Nothing to show in outline"; }
       
  1579 RESOURCE TBUF r_word_normal_outline { buf="Not available for Normal style";}
       
  1580 RESOURCE TBUF r_word_outline { buf = "Outlining..."; }
       
  1581 RESOURCE TBUF r_word_expand_outline { buf = "Expanding Items..."; }
       
  1582 RESOURCE TBUF r_word_collapse_outline { buf = "Collapsing Items..."; }
       
  1583 
       
  1584 RESOURCE TBUF r_word_not_undoable_title { buf = "This operation cannot be undone"; }
       
  1585 RESOURCE TBUF r_word_not_undoable_text { buf = "would you like to proceed anyway?"; }
       
  1586 
       
  1587 RESOURCE TBUF r_word_no_html_converter { buf = "Converter not available"; }
       
  1588 RESOURCE TBUF r_word_no_text_to_paste { buf="There is no text on the clipboard"; }
       
  1589 
       
  1590 /* CONFIRMATION DIALOGS TEXT */
       
  1591 RESOURCE ARRAY r_word_confirmation_texts
       
  1592 	{
       
  1593 /* DO NOT REORDER THE FOLLOWING RESOURCES */
       
  1594 	items=
       
  1595 		{
       
  1596 		LBUF {txt="Revert to saved?"; },
       
  1597 		LBUF {txt="All changes will be lost"; }
       
  1598 		};
       
  1599 	}