DirectPrint/DirectPrintApp/data/directprintapp.rss
changeset 19 2275db202402
parent 11 613a5ff70823
equal deleted inserted replaced
2:acc370d7f2f6 19:2275db202402
       
     1 /*
       
     2 * Copyright (c) 2010 Kanrikogaku Kenkyusho, Ltd.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "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 * Kanrikogaku Kenkyusho, Ltd. - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  
       
    15 *
       
    16 */
       
    17 
       
    18 //  RESOURCE IDENTIFIER
       
    19 NAME DIRE	// 4 letter ID
       
    20 
       
    21 
       
    22 //  INCLUDES
       
    23 #include <eikon.rh>
       
    24 #include <avkon.rsg>
       
    25 #include <avkon.mbg>
       
    26 #include <avkon.rh>
       
    27 #include <appinfo.rh>
       
    28 #include "DirectPrintApp.hrh"
       
    29 #include "DirectPrintApp.loc"
       
    30 
       
    31 #define AVKON_BMPFILE_NAME "z:\\resource\\apps\\avkon2.mbm"
       
    32 
       
    33 //  RESOURCE DEFINITIONS
       
    34 // -----------------------------------------------------------------------------
       
    35 //
       
    36 //	Define the resource file signature
       
    37 //	This resource should be empty.
       
    38 //
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 RESOURCE RSS_SIGNATURE
       
    42 	{
       
    43 	}
       
    44 
       
    45 // -----------------------------------------------------------------------------
       
    46 //
       
    47 //	Default Document Name
       
    48 //
       
    49 // -----------------------------------------------------------------------------
       
    50 //
       
    51 RESOURCE TBUF r_default_document_name
       
    52 	{
       
    53 	buf="DIRE";
       
    54 	}
       
    55 
       
    56 // -----------------------------------------------------------------------------
       
    57 //
       
    58 //	Define default menu and CBA key.
       
    59 //
       
    60 // -----------------------------------------------------------------------------
       
    61 //
       
    62 RESOURCE EIK_APP_INFO
       
    63 	{
       
    64 	menubar = r_directprint_menubar;
       
    65 	cba = R_AVKON_SOFTKEYS_OPTIONS_EXIT;
       
    66 	}
       
    67 
       
    68 
       
    69 // -----------------------------------------------------------------------------
       
    70 //
       
    71 //   r_directprint_menubar
       
    72 //   Main menubar
       
    73 //
       
    74 // -----------------------------------------------------------------------------
       
    75 //
       
    76 RESOURCE MENU_BAR r_directprint_menubar
       
    77 	{
       
    78 	titles =
       
    79 		{
       
    80 		MENU_TITLE { menu_pane = r_directprint_menu; }
       
    81 		};
       
    82 	}
       
    83 
       
    84 
       
    85 // -----------------------------------------------------------------------------
       
    86 //
       
    87 //   r_directprint_menu
       
    88 //   Menu for "Options"
       
    89 //
       
    90 // -----------------------------------------------------------------------------
       
    91 //
       
    92 RESOURCE MENU_PANE r_directprint_menu
       
    93 	{
       
    94 	items =
       
    95 		{
       
    96 		MENU_ITEM
       
    97 				{
       
    98 				command = EDirectPrintCmdIdMainViewHelp;
       
    99 				txt = text_directprint_menu_item_help;
       
   100 				},
       
   101 		MENU_ITEM
       
   102 				{
       
   103 				command = EDirectPrintCmdIdMainViewAbout;
       
   104 				txt = text_directprint_menu_item_about;
       
   105 				},
       
   106 		MENU_ITEM
       
   107 				{
       
   108 				command = EAknSoftkeyExit;
       
   109 				txt = text_directprint_menu_item_exit;
       
   110 				}
       
   111 		};
       
   112 	}
       
   113 
       
   114 // -----------------------------------------------------------------------------
       
   115 //
       
   116 // About dialog resource.
       
   117 //
       
   118 // -----------------------------------------------------------------------------
       
   119 //
       
   120 RESOURCE DIALOG r_about_query_dialog
       
   121 	{
       
   122 	flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
       
   123 	buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
       
   124 	items=
       
   125 		{
       
   126 		DLG_LINE 
       
   127 			{
       
   128 			type = EAknCtPopupHeadingPane;
       
   129 			id = EAknMessageQueryHeaderId;
       
   130 			itemflags = EEikDlgItemNonFocusing;
       
   131 			control = AVKON_HEADING
       
   132 				{
       
   133 				};
       
   134 			},
       
   135 		DLG_LINE
       
   136 			{
       
   137 			type = EAknCtMessageQuery;
       
   138 			id = EAknMessageQueryContentId;
       
   139 			control = AVKON_MESSAGE_QUERY
       
   140 				{
       
   141 				};
       
   142 			}
       
   143 		};
       
   144 	}
       
   145 
       
   146 //-----------------------------------------------------------------------------
       
   147 //
       
   148 //    r_directprint_print_progress_note
       
   149 //    For progress note.
       
   150 //
       
   151 //-----------------------------------------------------------------------------
       
   152 //
       
   153 RESOURCE DIALOG r_directprint_print_progress_note
       
   154     {
       
   155     flags = EAknProgressNoteFlags;
       
   156     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
   157     items =
       
   158         {
       
   159         DLG_LINE
       
   160             {
       
   161             type = EAknCtNote;
       
   162             id = EDirectPrintCtrlIdPrintProgressNote;
       
   163             control = AVKON_NOTE
       
   164                 {
       
   165                 layout = EProgressLayout;
       
   166                 singular_label = text_directprint_printing_progress;
       
   167                 imagefile = AVKON_BMPFILE_NAME;
       
   168                 imageid = EMbmAvkonQgn_note_progress;
       
   169                 imagemask = EMbmAvkonQgn_note_progress_mask;
       
   170                 };
       
   171             }
       
   172         };
       
   173     }
       
   174 
       
   175 //-----------------------------------------------------------------------------
       
   176 //
       
   177 //    r_directprint_search_progress_note
       
   178 //    For progress note.
       
   179 //
       
   180 //-----------------------------------------------------------------------------
       
   181 //
       
   182 RESOURCE DIALOG r_directprint_search_progress_note
       
   183     {
       
   184     flags = EAknProgressNoteFlags;
       
   185     buttons = R_AVKON_SOFTKEYS_CANCEL;
       
   186     items =
       
   187         {
       
   188         DLG_LINE
       
   189             {
       
   190             type = EAknCtNote;
       
   191             id = EDirectPrintCtrlIdSearchProgressNote;
       
   192             control = AVKON_NOTE
       
   193                 {
       
   194                 layout = EProgressLayout;
       
   195                 singular_label = text_directprint_searching_progress;
       
   196                 imagefile = AVKON_BMPFILE_NAME;
       
   197                 imageid = EMbmAvkonQgn_note_progress;
       
   198                 imagemask = EMbmAvkonQgn_note_progress_mask;
       
   199 				animation = R_QGN_GRAF_WAIT_BAR_ANIM;
       
   200 
       
   201                 };
       
   202             }
       
   203         };
       
   204     }
       
   205 
       
   206 
       
   207 // -----------------------------------------------------------------------------
       
   208 //
       
   209 // Resources for messages.
       
   210 //
       
   211 // -----------------------------------------------------------------------------
       
   212 //
       
   213 RESOURCE TBUF r_directprint_caption_string     { buf=text_directprint_captionstring; }
       
   214 RESOURCE TBUF r_directprint_about_dialog_title { buf=text_directprint_about_dialog_title; }
       
   215 RESOURCE TBUF r_directprint_about_dialog_text    { buf=text_directprint_about_dialog_text; }
       
   216 
       
   217 RESOURCE TBUF r_directprint_msg_print_in_use        { buf=text_directprint_msg_print_in_use; }
       
   218 RESOURCE TBUF r_directprint_msg_param_file_not_found { buf=text_directprint_msg_param_file_not_found; }
       
   219 RESOURCE TBUF r_directprint_msg_param_incorrect     { buf=text_directprint_msg_param_incorrect; }
       
   220 RESOURCE TBUF r_directprint_msg_bearer_open_err     { buf=text_directprint_msg_bearer_open_err; }
       
   221 RESOURCE TBUF r_directprint_msg_submit_print_err    { buf=text_directprint_msg_submit_print_err; }
       
   222 RESOURCE TBUF r_directprint_msg_preview_err { buf=text_directprint_msg_preview_err; }
       
   223 
       
   224 RESOURCE TBUF r_directprint_msg_printing_progress { buf=text_directprint_printing_progress; }
       
   225 RESOURCE TBUF r_directprint_msg_searching_progress { buf=text_directprint_searching_progress; }
       
   226 
       
   227 RESOURCE TBUF r_directprint_msg_now_printing { buf=text_directprint_msg_now_printing; }
       
   228 
       
   229 // ---------------------------------------------------------------------------- 
       
   230 //
       
   231 // r_directprint_localisable_app_info
       
   232 //
       
   233 // ---------------------------------------------------------------------------- 
       
   234 //
       
   235 RESOURCE LOCALISABLE_APP_INFO r_directprint_localisable_app_info
       
   236 	{
       
   237 	short_caption = text_directprint_captionstring;
       
   238 	caption_and_icon = 
       
   239 	CAPTION_AND_ICON_INFO
       
   240 		{
       
   241 		caption = text_directprint_captionstring;
       
   242 		number_of_icons = 1;
       
   243 		icon_file = "\\resource\\apps\\DirectPrintApp.mif";
       
   244 		};
       
   245 	}
       
   246 
       
   247 // -----------------------------------------------------------------------------
       
   248 //
       
   249 // Resources for messages.
       
   250 //
       
   251 // -----------------------------------------------------------------------------
       
   252 //
       
   253 RESOURCE TBUF r_directprint_setting_directory { buf=text_directprint_setting_directory; }
       
   254 RESOURCE TBUF r_directprint_setting_file      { buf=text_directprint_setting_file; }
       
   255 
       
   256 ////////////////////////////////////////////////////////////////////////////////
       
   257 //
       
   258 // Print Main View
       
   259 //
       
   260 ////////////////////////////////////////////////////////////////////////////////
       
   261 //
       
   262 //
       
   263 // ---------------------------------------------------------------------------- 
       
   264 //
       
   265 // r_directprint_mainview
       
   266 //
       
   267 // ---------------------------------------------------------------------------- 
       
   268 //
       
   269 RESOURCE AVKON_VIEW r_directprint_mainview
       
   270 	{
       
   271 	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
   272 	menubar = r_directprint_mainview_options_menu;
       
   273 	toolbar = r_directprint_mainview_toolbar;
       
   274 	}
       
   275 
       
   276 // ---------------------------------------------------------------------------- 
       
   277 //
       
   278 // r_directprint_mainview_title
       
   279 //
       
   280 // ---------------------------------------------------------------------------- 
       
   281 //
       
   282 RESOURCE TITLE_PANE r_directprint_mainview_title
       
   283 	{
       
   284 	txt = text_directprint_mainview_title;
       
   285 	}
       
   286 
       
   287 // ---------------------------------------------------------------------------- 
       
   288 //
       
   289 // r_directprint_mainview_options_menu
       
   290 //
       
   291 // ---------------------------------------------------------------------------- 
       
   292 //
       
   293 RESOURCE MENU_BAR r_directprint_mainview_options_menu
       
   294 	{
       
   295 	titles =
       
   296 		{
       
   297 		MENU_TITLE
       
   298 			{
       
   299 			menu_pane = r_directprint_mainview_options_menu_pane;
       
   300 			}
       
   301 		};
       
   302 	}
       
   303 
       
   304 // ---------------------------------------------------------------------------- 
       
   305 //
       
   306 // r_directprint_mainview_options_menu_pane
       
   307 //
       
   308 // ---------------------------------------------------------------------------- 
       
   309 //
       
   310 RESOURCE MENU_PANE r_directprint_mainview_options_menu_pane
       
   311 	{
       
   312 	items =
       
   313 		{
       
   314 		MENU_ITEM
       
   315 			{
       
   316 			command = EDirectPrintCmdIdMainViewPrint;
       
   317 			txt = text_directprint_menu_print;
       
   318 			},
       
   319 		MENU_ITEM
       
   320 			{
       
   321 			command = EDirectPrintCmdIdMainViewPreview;
       
   322 			txt = text_directprint_menu_preview;
       
   323 			},
       
   324 		MENU_ITEM
       
   325 			{
       
   326 			command = EDirectPrintCmdIdMainViewPropertySetting;
       
   327 			txt = text_directprint_mainview_menu_propertysetting;
       
   328 			},
       
   329 		MENU_ITEM
       
   330 			{
       
   331 			command = EDirectPrintCmdIdMainViewExit;
       
   332 			txt = text_directprint_mainview_menu_exit;
       
   333 			}
       
   334 		};
       
   335 	}
       
   336 
       
   337 // ---------------------------------------------------------------------------- 
       
   338 //
       
   339 // r_directprint_mainview_options_menu_pane
       
   340 //
       
   341 // ---------------------------------------------------------------------------- 
       
   342 //
       
   343 RESOURCE AVKON_TOOLBAR r_directprint_mainview_toolbar
       
   344 	{
       
   345 	flags = KAknToolbarFixed;
       
   346 	items =
       
   347 		{
       
   348 		TBAR_CTRL
       
   349 			{
       
   350 			type = EAknCtButton;
       
   351 			id = EDirectPrintCmdIdMainViewPrint;
       
   352 			control = AVKON_BUTTON
       
   353 				{
       
   354 				flags = 0;
       
   355 				states = 
       
   356 					{
       
   357 					AVKON_BUTTON_STATE
       
   358 						{
       
   359 						txt = text_directprint_toolbar_print;
       
   360 						}
       
   361 					};
       
   362 				};
       
   363 			},
       
   364 		TBAR_CTRL
       
   365 			{
       
   366 			type = EAknCtButton;
       
   367 			id = EDirectPrintCmdIdMainViewPreview;
       
   368 			control = AVKON_BUTTON
       
   369 				{
       
   370 				flags = 0;
       
   371 				states = 
       
   372 					{
       
   373 					AVKON_BUTTON_STATE
       
   374 						{
       
   375 						txt = text_directprint_toolbar_preview;
       
   376 						}
       
   377 					};
       
   378 				};
       
   379 			},
       
   380 		TBAR_CTRL
       
   381 			{
       
   382 			type = EAknCtButton;
       
   383 			id = EDirectPrintCmdIdMainViewPropertySetting;
       
   384 			control = AVKON_BUTTON
       
   385 				{
       
   386 				flags = 0;
       
   387 				states = 
       
   388 					{
       
   389 					AVKON_BUTTON_STATE
       
   390 						{
       
   391 						txt = text_directprint_mainview_toolbar_propertysetting;
       
   392 						}
       
   393 					};
       
   394 				};
       
   395 			}
       
   396 		};
       
   397 	}
       
   398 
       
   399 // ---------------------------------------------------------------------------- 
       
   400 //
       
   401 // r_directprint_mainview_listbox
       
   402 //
       
   403 // ---------------------------------------------------------------------------- 
       
   404 //
       
   405 RESOURCE LISTBOX r_directprint_mainview_listbox
       
   406 	{
       
   407 	flags = EAknListBoxSelectionList;
       
   408 //	array_id = r_directprint_mainview_listbox_items;
       
   409 	}
       
   410 
       
   411 // ---------------------------------------------------------------------------- 
       
   412 //
       
   413 // r_directprint_mainview_listbox_items
       
   414 //
       
   415 // ---------------------------------------------------------------------------- 
       
   416 //
       
   417 RESOURCE ARRAY r_directprint_mainview_listbox_items
       
   418 	{
       
   419 	items =
       
   420 		{
       
   421 		LBUF
       
   422 			{
       
   423 			txt = text_directprint_mainview_item_printername;
       
   424 			},
       
   425 		LBUF
       
   426 			{
       
   427 			txt = text_directprint_mainview_item_bearer;
       
   428 			},
       
   429 		LBUF
       
   430 			{
       
   431 			txt = text_directprint_mainview_item_propertysettings;
       
   432 			}
       
   433 		};
       
   434 	}
       
   435 
       
   436 // ---------------------------------------------------------------------------- 
       
   437 //
       
   438 // Resources for item title.
       
   439 //
       
   440 // ---------------------------------------------------------------------------- 
       
   441 //
       
   442 RESOURCE TBUF r_directprint_mainview_item_printername      { buf=text_directprint_mainview_item_printername; }
       
   443 RESOURCE TBUF r_directprint_mainview_item_bearer           { buf=text_directprint_mainview_item_bearer; }
       
   444 RESOURCE TBUF r_directprint_mainview_item_propertysettings { buf=text_directprint_mainview_item_propertysettings; }
       
   445 
       
   446 ////////////////////////////////////////////////////////////////////////////////
       
   447 //
       
   448 // Printer List View
       
   449 //
       
   450 ////////////////////////////////////////////////////////////////////////////////
       
   451 //
       
   452 // 
       
   453 // ---------------------------------------------------------------------------- 
       
   454 //
       
   455 // r_directprint_printerlist_view
       
   456 //
       
   457 // ---------------------------------------------------------------------------- 
       
   458 //
       
   459 RESOURCE AVKON_VIEW r_directprint_printerlist_view
       
   460 	{
       
   461 	cba = R_AVKON_SOFTKEYS_OPTIONS_DONE;
       
   462 	menubar = r_directprint_printerlist_options_menu;
       
   463 	toolbar = r_directprint_printerlist_toolbar;
       
   464 	}
       
   465 
       
   466 // ---------------------------------------------------------------------------- 
       
   467 //
       
   468 // r_directprint_printerlist_title
       
   469 //
       
   470 // ---------------------------------------------------------------------------- 
       
   471 //
       
   472 RESOURCE TITLE_PANE r_directprint_printerlist_title
       
   473 	{
       
   474 	txt = text_directprint_printerlist_title;
       
   475 	}
       
   476 
       
   477 // ---------------------------------------------------------------------------- 
       
   478 //
       
   479 // r_directprint_printerlist_options_menu
       
   480 //
       
   481 // ---------------------------------------------------------------------------- 
       
   482 //
       
   483 RESOURCE MENU_BAR r_directprint_printerlist_options_menu
       
   484 	{
       
   485 	titles =
       
   486 		{
       
   487 		MENU_TITLE
       
   488 			{
       
   489 			menu_pane = r_directprint_printerlist_options_menu_pane;
       
   490 			}
       
   491 		};
       
   492 	}
       
   493 
       
   494 // ---------------------------------------------------------------------------- 
       
   495 //
       
   496 // r_directprint_printerlist_options_menu_pane
       
   497 //
       
   498 // ---------------------------------------------------------------------------- 
       
   499 //
       
   500 RESOURCE MENU_PANE r_directprint_printerlist_options_menu_pane
       
   501 	{
       
   502 	items =
       
   503 		{
       
   504 		MENU_ITEM
       
   505 			{
       
   506 			command = EDirectPrintCmdIdPrinterListViewSearch;
       
   507 			txt = text_directprint_printerlist_menu_search;
       
   508 			},
       
   509 		MENU_ITEM
       
   510 			{
       
   511 			command = EDirectPrintCmdIdPrinterListViewNew;
       
   512 			txt = text_directprint_printerlist_menu_new;
       
   513 			},
       
   514 		MENU_ITEM
       
   515 			{
       
   516 			command = EDirectPrintCmdIdPrinterListViewEdit;
       
   517 			txt = text_directprint_printerlist_menu_edit;
       
   518 			},
       
   519 		MENU_ITEM
       
   520 			{
       
   521 			command = EDirectPrintCmdIdPrinterListViewDelete;
       
   522 			txt = text_directprint_printerlist_menu_delete;
       
   523 			}
       
   524 		};
       
   525 	}
       
   526 
       
   527 // ---------------------------------------------------------------------------- 
       
   528 //
       
   529 // r_directprint_printerlist_toolbar
       
   530 //
       
   531 // ---------------------------------------------------------------------------- 
       
   532 //
       
   533 RESOURCE AVKON_TOOLBAR r_directprint_printerlist_toolbar
       
   534 	{
       
   535 	flags = KAknToolbarFixed;
       
   536 	items =
       
   537 		{
       
   538 		TBAR_CTRL
       
   539 			{
       
   540 			type = EAknCtButton;
       
   541 			id = EDirectPrintCmdIdPrinterListViewSearch;
       
   542 			control = AVKON_BUTTON
       
   543 				{
       
   544 				flags = 0;
       
   545 				states = 
       
   546 					{
       
   547 					AVKON_BUTTON_STATE
       
   548 						{
       
   549 						txt = text_directprint_printerlist_menu_search;
       
   550 						}
       
   551 					};
       
   552 				};
       
   553 			},
       
   554 		TBAR_CTRL
       
   555 			{
       
   556 			type = EAknCtButton;
       
   557 			id = EDirectPrintCmdIdPrinterListViewNew;
       
   558 			control = AVKON_BUTTON
       
   559 				{
       
   560 				flags = 0;
       
   561 				states = 
       
   562 					{
       
   563 					AVKON_BUTTON_STATE
       
   564 						{
       
   565 						txt = text_directprint_printerlist_menu_new;
       
   566 						}
       
   567 					};
       
   568 				};
       
   569 			},
       
   570 		TBAR_CTRL
       
   571 			{
       
   572 			type = EAknCtButton;
       
   573 			id = EDirectPrintCmdIdPrinterListViewEdit;
       
   574 			control = AVKON_BUTTON
       
   575 				{
       
   576 				flags = 0;
       
   577 				states = 
       
   578 					{
       
   579 					AVKON_BUTTON_STATE
       
   580 						{
       
   581 						txt = text_directprint_printerlist_menu_edit;
       
   582 						}
       
   583 					};
       
   584 				};
       
   585 			}
       
   586 		};
       
   587 	}
       
   588 
       
   589 ////////////////////////////////////////////////////////////////////////////////
       
   590 //
       
   591 // Printer search result View
       
   592 //
       
   593 ////////////////////////////////////////////////////////////////////////////////
       
   594 //
       
   595 //
       
   596 // ---------------------------------------------------------------------------- 
       
   597 //
       
   598 // r_directprint_searchresult_view
       
   599 //
       
   600 // ---------------------------------------------------------------------------- 
       
   601 //
       
   602 //
       
   603 RESOURCE AVKON_VIEW r_directprint_searchresult_view
       
   604 	{
       
   605 	cba = R_AVKON_SOFTKEYS_OPTIONS_CANCEL;
       
   606 	menubar = r_directprint_searchresult_options_menu;
       
   607 	toolbar = r_directprint_searchresult_toolbar;
       
   608 	}
       
   609 
       
   610 // ---------------------------------------------------------------------------- 
       
   611 //
       
   612 // r_directprint_printersearch_title
       
   613 //
       
   614 // ---------------------------------------------------------------------------- 
       
   615 //
       
   616 // 
       
   617 RESOURCE TITLE_PANE r_directprint_printersearch_title
       
   618 	{
       
   619 	txt = text_directprint_printersearch_title;
       
   620 	}
       
   621 
       
   622 
       
   623 // ---------------------------------------------------------------------------- 
       
   624 //
       
   625 // r_directprint_printerlist_options_menu
       
   626 //
       
   627 // ---------------------------------------------------------------------------- 
       
   628 //
       
   629 RESOURCE MENU_BAR r_directprint_searchresult_options_menu
       
   630 	{
       
   631 	titles =
       
   632 		{
       
   633 		MENU_TITLE
       
   634 			{
       
   635 			menu_pane = r_directprint_searchresult_options_menu_pane;
       
   636 			}
       
   637 		};
       
   638 	}
       
   639 
       
   640 // ---------------------------------------------------------------------------- 
       
   641 //
       
   642 // r_directprint_printerlist_options_menu_pane
       
   643 //
       
   644 // ---------------------------------------------------------------------------- 
       
   645 //
       
   646 RESOURCE MENU_PANE r_directprint_searchresult_options_menu_pane
       
   647 	{
       
   648 	items =
       
   649 		{
       
   650 		MENU_ITEM
       
   651 			{
       
   652 			command = EDirectPrintCmdIdSearchResultViewSearch;
       
   653 			txt = text_directprint_searchresult_menu_search;
       
   654 			}
       
   655 		};
       
   656 	}
       
   657 
       
   658 // ---------------------------------------------------------------------------- 
       
   659 //
       
   660 // r_directprint_printerlist_toolbar
       
   661 //
       
   662 // ---------------------------------------------------------------------------- 
       
   663 //
       
   664 RESOURCE AVKON_TOOLBAR r_directprint_searchresult_toolbar
       
   665 	{
       
   666 	flags = KAknToolbarFixed;
       
   667 	items =
       
   668 		{
       
   669 		TBAR_CTRL
       
   670 			{
       
   671 			type = EAknCtButton;
       
   672 			id = EDirectPrintCmdIdSearchResultViewSearch;
       
   673 			control = AVKON_BUTTON
       
   674 				{
       
   675 				flags = 0;
       
   676 				states = 
       
   677 					{
       
   678 					AVKON_BUTTON_STATE
       
   679 						{
       
   680 						txt = text_directprint_searchresult_menu_search;
       
   681 						}
       
   682 					};
       
   683 				};
       
   684 			}
       
   685 		};
       
   686 	}
       
   687 
       
   688 ////////////////////////////////////////////////////////////////////////////////
       
   689 //
       
   690 // Printer Setting View
       
   691 //
       
   692 ////////////////////////////////////////////////////////////////////////////////
       
   693 //
       
   694 //
       
   695 // ---------------------------------------------------------------------------- 
       
   696 //
       
   697 // r_directprint_printersetting_view
       
   698 //
       
   699 // ---------------------------------------------------------------------------- 
       
   700 //
       
   701 // 
       
   702 RESOURCE AVKON_VIEW r_directprint_printersetting_view
       
   703 	{
       
   704 	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
   705 	menubar = r_directprint_printersetting_options_menu;
       
   706 	}
       
   707 
       
   708 // ---------------------------------------------------------------------------- 
       
   709 //
       
   710 // r_directprint_printersetting_title
       
   711 //
       
   712 // ---------------------------------------------------------------------------- 
       
   713 //
       
   714 // 
       
   715 RESOURCE TITLE_PANE r_directprint_printersetting_title
       
   716 	{
       
   717 	txt = text_directprint_printersetting_title;
       
   718 	}
       
   719 
       
   720 // ---------------------------------------------------------------------------- 
       
   721 //
       
   722 // r_directprint_printersetting_options_menu
       
   723 //
       
   724 // ---------------------------------------------------------------------------- 
       
   725 //
       
   726 //
       
   727 RESOURCE MENU_BAR r_directprint_printersetting_options_menu
       
   728 	{
       
   729 	titles =
       
   730 		{
       
   731 		MENU_TITLE
       
   732 			{
       
   733 			menu_pane = r_directprint_printersetting_options_menu_pane;
       
   734 			}
       
   735 		};
       
   736 	}
       
   737 
       
   738 // ---------------------------------------------------------------------------- 
       
   739 //
       
   740 // r_directprint_printersetting_options_menu_pane
       
   741 //
       
   742 // ---------------------------------------------------------------------------- 
       
   743 //
       
   744 //
       
   745 RESOURCE MENU_PANE r_directprint_printersetting_options_menu_pane
       
   746 	{
       
   747 	items =
       
   748 		{
       
   749 		MENU_ITEM
       
   750 			{
       
   751 			command = EDirectPrintCmdIdPrinterSettingViewChange;
       
   752 			txt = text_directprint_menu_change;
       
   753 			}
       
   754 		};
       
   755 	}
       
   756 
       
   757 // ---------------------------------------------------------------------------- 
       
   758 //
       
   759 // r_directprint_printersetting_item_list
       
   760 //
       
   761 // ---------------------------------------------------------------------------- 
       
   762 //
       
   763 //
       
   764 RESOURCE AVKON_SETTING_ITEM_LIST r_directprint_printersetting_item_list
       
   765 	{
       
   766 	title = text_directprint_printersetting_title;
       
   767 	}
       
   768 
       
   769 // ---------------------------------------------------------------------------- 
       
   770 //
       
   771 // r_directprint_printersetting_popup_setting_page
       
   772 //
       
   773 // ---------------------------------------------------------------------------- 
       
   774 //
       
   775 //
       
   776 RESOURCE AVKON_SETTING_PAGE r_directprint_printersetting_popup_setting_page
       
   777 	{
       
   778 	type = EAknCtPopupSettingList;
       
   779 	editor_resource_id = r_directprint_printersetting_popup_setting_list;
       
   780 	}
       
   781 	
       
   782 // ---------------------------------------------------------------------------- 
       
   783 //
       
   784 // r_directprint_printersetting_popup_setting_list
       
   785 //
       
   786 // ---------------------------------------------------------------------------- 
       
   787 //
       
   788 //
       
   789 RESOURCE POPUP_SETTING_LIST r_directprint_printersetting_popup_setting_list
       
   790 	{
       
   791 	flags = 0;
       
   792 	}
       
   793 
       
   794 // ---------------------------------------------------------------------------- 
       
   795 //
       
   796 // r_directprint_printersetting_text_setting_page
       
   797 //
       
   798 // ---------------------------------------------------------------------------- 
       
   799 //
       
   800 //
       
   801 RESOURCE AVKON_SETTING_PAGE r_directprint_printersetting_text_setting_page
       
   802 	{
       
   803 	type = EEikCtEdwin;
       
   804 	editor_resource_id = r_directprint_printersetting_text_edwin;
       
   805 	}
       
   806 
       
   807 // ---------------------------------------------------------------------------- 
       
   808 //
       
   809 // r_directprint_printersetting_text_setting_page
       
   810 //
       
   811 // ---------------------------------------------------------------------------- 
       
   812 //
       
   813 //
       
   814 RESOURCE EDWIN r_directprint_printersetting_text_edwin
       
   815 	{
       
   816 	width = 10;
       
   817 	maxlength = 50;
       
   818 	}
       
   819 
       
   820 // ---------------------------------------------------------------------------- 
       
   821 //
       
   822 // r_directprint_printersetting_integer_setting_page
       
   823 //
       
   824 // ---------------------------------------------------------------------------- 
       
   825 //
       
   826 //
       
   827 RESOURCE AVKON_SETTING_PAGE r_directprint_printersetting_integer_setting_page
       
   828 	{
       
   829 	type = EAknCtIntegerEdwin;
       
   830 	editor_resource_id = r_directprint_printersetting_integer_edwin;
       
   831 	}
       
   832 
       
   833 // ---------------------------------------------------------------------------- 
       
   834 //
       
   835 // r_directprint_printersetting_integer_edwin
       
   836 //
       
   837 // ---------------------------------------------------------------------------- 
       
   838 //
       
   839 //
       
   840 RESOURCE AVKON_INTEGER_EDWIN r_directprint_printersetting_integer_edwin
       
   841 	{
       
   842 	min = 0;
       
   843 	max = 65535;
       
   844 	}
       
   845 
       
   846 // ---------------------------------------------------------------------------- 
       
   847 //
       
   848 // r_directprint_printersetting_ipfield_setting_page
       
   849 //
       
   850 // ---------------------------------------------------------------------------- 
       
   851 //
       
   852 //
       
   853 RESOURCE AVKON_SETTING_PAGE r_directprint_printersetting_ipfield_setting_page
       
   854 	{
       
   855 	type = EAknCtIpFieldEditor;
       
   856 	editor_resource_id = r_directprint_printersetting_ip_editor;
       
   857 	}
       
   858 	
       
   859 // ---------------------------------------------------------------------------- 
       
   860 //
       
   861 // r_directprint_printersetting_ip_editor
       
   862 //
       
   863 // ---------------------------------------------------------------------------- 
       
   864 //
       
   865 //
       
   866 RESOURCE IP_FIELD_EDITOR r_directprint_printersetting_ip_editor
       
   867 	{
       
   868 	min_field_values = IP_FIELD
       
   869 		{ 
       
   870 		first_field = 0;
       
   871 		second_field = 0;
       
   872 		third_field = 0;
       
   873 		fourth_field = 0;
       
   874 		};
       
   875 	max_field_values = IP_FIELD
       
   876 		{
       
   877 		first_field = 255;
       
   878 		second_field = 255;
       
   879 		third_field = 255;
       
   880 		fourth_field = 255;
       
   881 		};
       
   882 	}
       
   883 
       
   884 // ---------------------------------------------------------------------------- 
       
   885 //
       
   886 // r_directprint_printersetting_driver_popup_setting_texts
       
   887 //
       
   888 // ---------------------------------------------------------------------------- 
       
   889 //
       
   890 //
       
   891 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_printersetting_driver_popup_setting_texts
       
   892 	{
       
   893 	setting_texts_resource = r_directprint_printersetting_driver_texts;
       
   894 	}
       
   895 
       
   896 // ---------------------------------------------------------------------------- 
       
   897 //
       
   898 // r_directprint_printersetting_driver_texts
       
   899 //
       
   900 // ---------------------------------------------------------------------------- 
       
   901 //
       
   902 //
       
   903 RESOURCE ARRAY r_directprint_printersetting_driver_texts
       
   904 	{
       
   905 	items =
       
   906 		{
       
   907 		AVKON_ENUMERATED_TEXT { value=0; text = "General";},
       
   908 		AVKON_ENUMERATED_TEXT { value=1; text = "Canon";},
       
   909 		AVKON_ENUMERATED_TEXT { value=2; text = "HP";}
       
   910 		};
       
   911 	}
       
   912 
       
   913 // ---------------------------------------------------------------------------- 
       
   914 //
       
   915 // r_directprint_printersetting_bearer_popup_setting_texts
       
   916 //
       
   917 // ---------------------------------------------------------------------------- 
       
   918 //
       
   919 //
       
   920 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_printersetting_bearer_popup_setting_texts
       
   921 	{
       
   922 	setting_texts_resource = r_directprint_printersetting_bearer_texts;
       
   923 	}
       
   924 
       
   925 // ---------------------------------------------------------------------------- 
       
   926 //
       
   927 // r_directprint_printersetting_bearer_texts
       
   928 //
       
   929 // ---------------------------------------------------------------------------- 
       
   930 //
       
   931 //
       
   932 RESOURCE ARRAY r_directprint_printersetting_bearer_texts
       
   933 	{
       
   934 	items =
       
   935 		{
       
   936 		AVKON_ENUMERATED_TEXT { value=0; text = "File output";},
       
   937 		AVKON_ENUMERATED_TEXT { value=1; text = "LPR";}
       
   938 		};
       
   939 	}
       
   940 
       
   941 // ---------------------------------------------------------------------------- 
       
   942 //
       
   943 // r_directprint_printersetting_bearer_popup_setting_texts
       
   944 //
       
   945 // ---------------------------------------------------------------------------- 
       
   946 //
       
   947 //
       
   948 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_printersetting_accesspoint_popup_setting_texts
       
   949 	{
       
   950 	setting_texts_resource = r_directprint_printersetting_accesspoint_texts;
       
   951 	}
       
   952 
       
   953 // ---------------------------------------------------------------------------- 
       
   954 //
       
   955 // r_directprint_printersetting_accesspoint_texts
       
   956 //
       
   957 // ---------------------------------------------------------------------------- 
       
   958 //
       
   959 //
       
   960 RESOURCE ARRAY r_directprint_printersetting_accesspoint_texts
       
   961 	{
       
   962 	items =
       
   963 		{
       
   964 		AVKON_ENUMERATED_TEXT { value=0; text = "WLAN_ap1";},
       
   965 		AVKON_ENUMERATED_TEXT { value=1; text = "WLAN_ap2";}
       
   966 		};
       
   967 	}
       
   968 
       
   969 // ---------------------------------------------------------------------------- 
       
   970 //
       
   971 // r_directprint_printersetting_type_popup_setting_texts
       
   972 //
       
   973 // ---------------------------------------------------------------------------- 
       
   974 //
       
   975 //
       
   976 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_printersetting_type_popup_setting_texts
       
   977 	{
       
   978 	setting_texts_resource = r_directprint_printersetting_type_texts;
       
   979 	}
       
   980 
       
   981 // ---------------------------------------------------------------------------- 
       
   982 //
       
   983 // r_directprint_printersetting_type_texts
       
   984 //
       
   985 // ---------------------------------------------------------------------------- 
       
   986 //
       
   987 //
       
   988 RESOURCE ARRAY r_directprint_printersetting_type_texts
       
   989 	{
       
   990 	items =
       
   991 		{
       
   992 		AVKON_ENUMERATED_TEXT { value=0; text = "MP990";},
       
   993 		AVKON_ENUMERATED_TEXT { value=1; text = "MP640";},
       
   994 		AVKON_ENUMERATED_TEXT { value=2; text = "MP560";},
       
   995 		AVKON_ENUMERATED_TEXT { value=3; text = "MX860";}
       
   996 		};
       
   997 	}
       
   998 
       
   999 // ---------------------------------------------------------------------------- 
       
  1000 //
       
  1001 // r_directprint_printersetting_popup_setting_texts
       
  1002 //
       
  1003 // ---------------------------------------------------------------------------- 
       
  1004 //
       
  1005 //
       
  1006 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_printersetting_popup_setting_texts
       
  1007 	{
       
  1008 	setting_texts_resource = r_directprint_printersetting_texts;
       
  1009 	}
       
  1010 
       
  1011 // ---------------------------------------------------------------------------- 
       
  1012 //
       
  1013 // r_directprint_printersetting_type_texts
       
  1014 //
       
  1015 // ---------------------------------------------------------------------------- 
       
  1016 //
       
  1017 //
       
  1018 RESOURCE ARRAY r_directprint_printersetting_texts
       
  1019 	{
       
  1020 	items =
       
  1021 		{
       
  1022 		AVKON_ENUMERATED_TEXT { value=0; text = "dummy";}
       
  1023 		};
       
  1024 	}
       
  1025 
       
  1026 // ---------------------------------------------------------------------------- 
       
  1027 //
       
  1028 // Resources for item title.
       
  1029 //
       
  1030 // ---------------------------------------------------------------------------- 
       
  1031 //
       
  1032 RESOURCE TBUF r_directprint_printersetting_item_printername { buf=text_directprint_printersetting_item_printername; }
       
  1033 RESOURCE TBUF r_directprint_printersetting_item_driver      { buf=text_directprint_printersetting_item_driver; }
       
  1034 RESOURCE TBUF r_directprint_printersetting_item_bearer      { buf=text_directprint_printersetting_item_bearer; }
       
  1035 RESOURCE TBUF r_directprint_printersetting_item_accesspoint { buf=text_directprint_printersetting_item_accesspoint; }
       
  1036 RESOURCE TBUF r_directprint_printersetting_item_host        { buf=text_directprint_printersetting_item_host; }
       
  1037 RESOURCE TBUF r_directprint_printersetting_item_port        { buf=text_directprint_printersetting_item_port; }
       
  1038 RESOURCE TBUF r_directprint_printersetting_item_username    { buf=text_directprint_printersetting_item_username; }
       
  1039 RESOURCE TBUF r_directprint_printersetting_item_que         { buf=text_directprint_printersetting_item_que; }
       
  1040 RESOURCE TBUF r_directprint_printersetting_item_type        { buf=text_directprint_printersetting_item_type; }
       
  1041 
       
  1042 ////////////////////////////////////////////////////////////////////////////////
       
  1043 //
       
  1044 // Property Setting View
       
  1045 //
       
  1046 ////////////////////////////////////////////////////////////////////////////////
       
  1047 //
       
  1048 //
       
  1049 // ---------------------------------------------------------------------------- 
       
  1050 //
       
  1051 // r_directprint_propertysetting_view
       
  1052 //
       
  1053 // ---------------------------------------------------------------------------- 
       
  1054 //
       
  1055 //
       
  1056 RESOURCE AVKON_VIEW r_directprint_propertysetting_view
       
  1057 	{
       
  1058 	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
  1059 	menubar = r_directprint_propertysetting_options_menu;
       
  1060 	toolbar = r_directprint_propertysetting_toolbar;
       
  1061 	}
       
  1062 
       
  1063 // ---------------------------------------------------------------------------- 
       
  1064 //
       
  1065 // r_directprint_propertysetting_title
       
  1066 //
       
  1067 // ---------------------------------------------------------------------------- 
       
  1068 //
       
  1069 // 
       
  1070 RESOURCE TITLE_PANE r_directprint_propertysetting_title
       
  1071 	{
       
  1072 	txt = text_directprint_propertysetting_title;
       
  1073 	}
       
  1074 
       
  1075 // ---------------------------------------------------------------------------- 
       
  1076 //
       
  1077 // r_directprint_propertysetting_options_menu
       
  1078 //
       
  1079 // ---------------------------------------------------------------------------- 
       
  1080 //
       
  1081 //
       
  1082 RESOURCE MENU_BAR r_directprint_propertysetting_options_menu
       
  1083 	{
       
  1084 	titles =
       
  1085 		{
       
  1086 		MENU_TITLE
       
  1087 			{
       
  1088 			menu_pane = r_directprint_propertysetting_options_menu_pane;
       
  1089 			}
       
  1090 		};
       
  1091 	}
       
  1092 
       
  1093 // ---------------------------------------------------------------------------- 
       
  1094 //
       
  1095 // r_directprint_propertysetting_options_menu_pane
       
  1096 //
       
  1097 // ---------------------------------------------------------------------------- 
       
  1098 //
       
  1099 //
       
  1100 RESOURCE MENU_PANE r_directprint_propertysetting_options_menu_pane
       
  1101 	{
       
  1102 	items =
       
  1103 		{
       
  1104 		MENU_ITEM
       
  1105 			{
       
  1106 			command = EDirectPrintCmdIdPropertySettingViewChange;
       
  1107 			txt = text_directprint_menu_change;
       
  1108 			},
       
  1109 		MENU_ITEM
       
  1110 			{
       
  1111 			command = EDirectPrintCmdIdPropertySettingViewPrint;
       
  1112 			txt = text_directprint_menu_print;
       
  1113 			},
       
  1114 		MENU_ITEM
       
  1115 			{
       
  1116 			command = EDirectPrintCmdIdPropertySettingViewPreview;
       
  1117 			txt = text_directprint_menu_preview;
       
  1118 			}
       
  1119 		};
       
  1120 	}
       
  1121 
       
  1122 // ---------------------------------------------------------------------------- 
       
  1123 //
       
  1124 // r_directprint_propertysetting_toolbar
       
  1125 //
       
  1126 // ---------------------------------------------------------------------------- 
       
  1127 //
       
  1128 //
       
  1129 RESOURCE AVKON_TOOLBAR r_directprint_propertysetting_toolbar
       
  1130 	{
       
  1131 	flags = KAknToolbarFixed;
       
  1132 	items =
       
  1133 		{
       
  1134 		TBAR_CTRL
       
  1135 			{
       
  1136 			type = EAknCtButton;
       
  1137 			id = EDirectPrintCmdIdPropertySettingViewPrint;
       
  1138 			control = AVKON_BUTTON
       
  1139 				{
       
  1140 				flags = 0;
       
  1141 				states = 
       
  1142 					{
       
  1143 					AVKON_BUTTON_STATE
       
  1144 						{
       
  1145 						txt = text_directprint_toolbar_print;
       
  1146 						}
       
  1147 					};
       
  1148 				};
       
  1149 			},
       
  1150 		TBAR_CTRL
       
  1151 			{
       
  1152 			type = EAknCtButton;
       
  1153 			id = EDirectPrintCmdIdPropertySettingViewPreview;
       
  1154 			control = AVKON_BUTTON
       
  1155 				{
       
  1156 				flags = 0;
       
  1157 				states = 
       
  1158 					{
       
  1159 					AVKON_BUTTON_STATE
       
  1160 						{
       
  1161 						txt = text_directprint_toolbar_preview;
       
  1162 						}
       
  1163 					};
       
  1164 				};
       
  1165 			}
       
  1166 		};
       
  1167 	}
       
  1168 
       
  1169 // ---------------------------------------------------------------------------- 
       
  1170 //
       
  1171 // r_directprint_propertysetting_navi_decorator
       
  1172 //
       
  1173 // ---------------------------------------------------------------------------- 
       
  1174 //
       
  1175 //
       
  1176 RESOURCE NAVI_DECORATOR r_directprint_propertysetting_navi_decorator
       
  1177 	{
       
  1178 	type = ENaviDecoratorControlTabGroup;
       
  1179 	control = TAB_GROUP
       
  1180 		{
       
  1181 		tab_width = EAknTabWidthWithTwoLongTabs;
       
  1182 		active = 0;
       
  1183 		tabs =
       
  1184 			{
       
  1185 			TAB
       
  1186 				{
       
  1187 				id = EDirectPrintPaperSettingTab;
       
  1188 				txt = text_directprint_propertysetting_tab_paper;
       
  1189 				},
       
  1190 			TAB
       
  1191 				{
       
  1192 				id = EDirectPrintPageSettingTab;
       
  1193 				txt = text_directprint_propertysetting_tab_page;
       
  1194 				},
       
  1195 			TAB
       
  1196 				{
       
  1197 				id = EDirectPrintMarginSettingTab;
       
  1198 				txt = text_directprint_propertysetting_tab_margin;
       
  1199 				},
       
  1200 			TAB
       
  1201 				{
       
  1202 				id = EDirectPrintHeaderSettingTab;
       
  1203 				txt = text_directprint_propertysetting_tab_header;
       
  1204 				},
       
  1205 			TAB
       
  1206 				{
       
  1207 				id = EDirectPrintFooterSettingTab;
       
  1208 				txt = text_directprint_propertysetting_tab_footer;
       
  1209 				}
       
  1210 			};
       
  1211 		};
       
  1212 	}
       
  1213 
       
  1214 // ---------------------------------------------------------------------------- 
       
  1215 //
       
  1216 // r_directprint_propertysetting_setting_item_list
       
  1217 //
       
  1218 // ---------------------------------------------------------------------------- 
       
  1219 //
       
  1220 //
       
  1221 RESOURCE AVKON_SETTING_ITEM_LIST r_directprint_propertysetting_setting_item_list
       
  1222 	{
       
  1223 	title = text_directprint_propertysetting_title;
       
  1224 	}
       
  1225 
       
  1226 // ---------------------------------------------------------------------------- 
       
  1227 //
       
  1228 // r_directprint_propertysetting_popup_setting_page
       
  1229 //
       
  1230 // ---------------------------------------------------------------------------- 
       
  1231 //
       
  1232 //
       
  1233 RESOURCE AVKON_SETTING_PAGE r_directprint_propertysetting_popup_setting_page
       
  1234 	{
       
  1235 	type = EAknCtPopupSettingList;
       
  1236 	editor_resource_id = r_directprint_propertysetting_popup_setting_list;
       
  1237 	}
       
  1238 	
       
  1239 // ---------------------------------------------------------------------------- 
       
  1240 //
       
  1241 // r_directprint_propertysetting_popup_setting_list
       
  1242 //
       
  1243 // ---------------------------------------------------------------------------- 
       
  1244 //
       
  1245 //
       
  1246 RESOURCE POPUP_SETTING_LIST r_directprint_propertysetting_popup_setting_list
       
  1247 	{
       
  1248 	flags = 0;
       
  1249 	}
       
  1250 
       
  1251 // ---------------------------------------------------------------------------- 
       
  1252 //
       
  1253 // r_directprint_propertysetting_text_setting_page
       
  1254 //
       
  1255 // ---------------------------------------------------------------------------- 
       
  1256 //
       
  1257 //
       
  1258 RESOURCE AVKON_SETTING_PAGE r_directprint_propertysetting_text_setting_page
       
  1259 	{
       
  1260 	type = EEikCtEdwin;
       
  1261 	editor_resource_id = r_directprint_propertysetting_text_edwin;
       
  1262 	}
       
  1263 
       
  1264 // ---------------------------------------------------------------------------- 
       
  1265 //
       
  1266 // r_directprint_propertysetting_text_edwin
       
  1267 //
       
  1268 // ---------------------------------------------------------------------------- 
       
  1269 //
       
  1270 //
       
  1271 RESOURCE EDWIN r_directprint_propertysetting_text_edwin
       
  1272 	{
       
  1273 	width = 10;
       
  1274 	maxlength = 50;
       
  1275 	}
       
  1276 
       
  1277 // ---------------------------------------------------------------------------- 
       
  1278 //
       
  1279 // r_directprint_propertysetting_integer_setting_page
       
  1280 //
       
  1281 // ---------------------------------------------------------------------------- 
       
  1282 //
       
  1283 //
       
  1284 RESOURCE AVKON_SETTING_PAGE r_directprint_propertysetting_integer_setting_page
       
  1285 	{
       
  1286 	type = EAknCtIntegerEdwin;
       
  1287 	editor_resource_id = r_directprint_propertysetting_integer_edwin;
       
  1288 	}
       
  1289 
       
  1290 // ---------------------------------------------------------------------------- 
       
  1291 //
       
  1292 // r_directprint_propertysetting_integer_edwin
       
  1293 //
       
  1294 // ---------------------------------------------------------------------------- 
       
  1295 //
       
  1296 //
       
  1297 RESOURCE AVKON_INTEGER_EDWIN r_directprint_propertysetting_integer_edwin
       
  1298 	{
       
  1299 	min = 0;
       
  1300 	max = 150;
       
  1301 	}
       
  1302 
       
  1303 // ---------------------------------------------------------------------------- 
       
  1304 //
       
  1305 // r_directprint_propertysetting_size_popup_setting_texts
       
  1306 //
       
  1307 // ---------------------------------------------------------------------------- 
       
  1308 //
       
  1309 //
       
  1310 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_size_popup_setting_texts
       
  1311 	{
       
  1312 	setting_texts_resource = r_directprint_propertysetting_size_texts;
       
  1313 	}
       
  1314 
       
  1315 // ---------------------------------------------------------------------------- 
       
  1316 //
       
  1317 // r_directprint_propertysetting_size_texts
       
  1318 //
       
  1319 // ---------------------------------------------------------------------------- 
       
  1320 //
       
  1321 //
       
  1322 RESOURCE ARRAY r_directprint_propertysetting_size_texts
       
  1323 	{
       
  1324 	items =
       
  1325 		{
       
  1326 		AVKON_ENUMERATED_TEXT { value=0; text = "A4";},
       
  1327 		AVKON_ENUMERATED_TEXT { value=1; text = "A5";},
       
  1328 		AVKON_ENUMERATED_TEXT { value=2; text = "B5";},
       
  1329 		AVKON_ENUMERATED_TEXT { value=3; text = "Letter";},
       
  1330 		AVKON_ENUMERATED_TEXT { value=4; text = "Regal";},
       
  1331 		AVKON_ENUMERATED_TEXT { value=5; text = "Post card";},
       
  1332 		AVKON_ENUMERATED_TEXT { value=6; text = "Envelope";}
       
  1333 		};
       
  1334 	}
       
  1335 
       
  1336 // ---------------------------------------------------------------------------- 
       
  1337 //
       
  1338 // r_directprint_propertysetting_orientation_popup_setting_texts
       
  1339 //
       
  1340 // ---------------------------------------------------------------------------- 
       
  1341 //
       
  1342 //
       
  1343 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_orientation_popup_setting_texts
       
  1344 	{
       
  1345 	setting_texts_resource = r_directprint_propertysetting_orientation_texts;
       
  1346 	}
       
  1347 
       
  1348 // ---------------------------------------------------------------------------- 
       
  1349 //
       
  1350 // r_directprint_propertysetting_orientation_texts
       
  1351 //
       
  1352 // ---------------------------------------------------------------------------- 
       
  1353 //
       
  1354 //
       
  1355 RESOURCE ARRAY r_directprint_propertysetting_orientation_texts
       
  1356 	{
       
  1357 	items =
       
  1358 		{
       
  1359 		AVKON_ENUMERATED_TEXT
       
  1360 			{
       
  1361 			value=0; 
       
  1362 			text = text_directprint_orientation_portrate;
       
  1363 			},
       
  1364 		AVKON_ENUMERATED_TEXT
       
  1365 			{
       
  1366 			value=1;
       
  1367 			text = text_directprint_orientation_landscape;
       
  1368 			}
       
  1369 		};
       
  1370 	}
       
  1371 
       
  1372 // ---------------------------------------------------------------------------- 
       
  1373 //
       
  1374 // r_directprint_propertysetting_mediatype_popup_setting_texts
       
  1375 //
       
  1376 // ---------------------------------------------------------------------------- 
       
  1377 //
       
  1378 //
       
  1379 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_mediatype_popup_setting_texts
       
  1380 	{
       
  1381 	setting_texts_resource = r_directprint_propertysetting_mediatype_texts;
       
  1382 	}
       
  1383 
       
  1384 // ---------------------------------------------------------------------------- 
       
  1385 //
       
  1386 // r_directprint_propertysetting_orientation_texts
       
  1387 //
       
  1388 // ---------------------------------------------------------------------------- 
       
  1389 //
       
  1390 //
       
  1391 RESOURCE ARRAY r_directprint_propertysetting_mediatype_texts
       
  1392 	{
       
  1393 	items =
       
  1394 		{
       
  1395 		AVKON_ENUMERATED_TEXT
       
  1396 			{
       
  1397 			value = 0; 
       
  1398 			text = "Plain";
       
  1399 			},
       
  1400 		AVKON_ENUMERATED_TEXT
       
  1401 			{
       
  1402 			value=1;
       
  1403 			text = "Photo";
       
  1404 			}
       
  1405 		};
       
  1406 	}
       
  1407 
       
  1408 // ---------------------------------------------------------------------------- 
       
  1409 //
       
  1410 // r_directprint_propertysetting_boaderless_popup_setting_texts
       
  1411 //
       
  1412 // ---------------------------------------------------------------------------- 
       
  1413 //
       
  1414 //
       
  1415 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_boaderless_popup_setting_texts
       
  1416 	{
       
  1417 	setting_texts_resource = r_directprint_propertysetting_boaderless_texts;
       
  1418 	}
       
  1419 
       
  1420 // ---------------------------------------------------------------------------- 
       
  1421 //
       
  1422 // r_directprint_propertysetting_orientation_texts
       
  1423 //
       
  1424 // ---------------------------------------------------------------------------- 
       
  1425 //
       
  1426 //
       
  1427 RESOURCE ARRAY r_directprint_propertysetting_boaderless_texts
       
  1428 	{
       
  1429 	items =
       
  1430 		{
       
  1431 		AVKON_ENUMERATED_TEXT
       
  1432 			{
       
  1433 			value = 0; 
       
  1434 			text = "OFF";
       
  1435 			},
       
  1436 		AVKON_ENUMERATED_TEXT
       
  1437 			{
       
  1438 			value=1;
       
  1439 			text = "ON";
       
  1440 			}
       
  1441 		};
       
  1442 	}
       
  1443 
       
  1444 // ---------------------------------------------------------------------------- 
       
  1445 //
       
  1446 // r_directprint_propertysetting_page_popup_setting_texts
       
  1447 //
       
  1448 // ---------------------------------------------------------------------------- 
       
  1449 //
       
  1450 //
       
  1451 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_range_popup_setting_texts
       
  1452 	{
       
  1453 	setting_texts_resource = r_directprint_propertysetting_range_texts;
       
  1454 	}
       
  1455 
       
  1456 // ---------------------------------------------------------------------------- 
       
  1457 //
       
  1458 // r_directprint_propertysetting_range_texts
       
  1459 //
       
  1460 // ---------------------------------------------------------------------------- 
       
  1461 //
       
  1462 //
       
  1463 RESOURCE ARRAY r_directprint_propertysetting_range_texts
       
  1464 	{
       
  1465 	items =
       
  1466 		{
       
  1467 		AVKON_ENUMERATED_TEXT { value=0; text = text_directprint_range_all;},
       
  1468 		AVKON_ENUMERATED_TEXT { value=1; text = text_directprint_range_odd;},
       
  1469 		AVKON_ENUMERATED_TEXT { value=2; text = text_directprint_range_even;}
       
  1470 		};
       
  1471 	}
       
  1472 
       
  1473 // ---------------------------------------------------------------------------- 
       
  1474 //
       
  1475 // r_directprint_propertysetting_print_popup_setting_texts
       
  1476 //
       
  1477 // ---------------------------------------------------------------------------- 
       
  1478 //
       
  1479 //
       
  1480 RESOURCE AVKON_POPUP_SETTING_TEXTS r_directprint_propertysetting_print_popup_setting_texts
       
  1481 	{
       
  1482 	setting_texts_resource = r_directprint_propertysetting_print_texts;
       
  1483 	}
       
  1484 
       
  1485 // ---------------------------------------------------------------------------- 
       
  1486 //
       
  1487 // r_directprint_propertysetting_print_texts
       
  1488 //
       
  1489 // ---------------------------------------------------------------------------- 
       
  1490 //
       
  1491 //
       
  1492 RESOURCE ARRAY r_directprint_propertysetting_print_texts
       
  1493 	{
       
  1494 	items =
       
  1495 		{
       
  1496 		AVKON_ENUMERATED_TEXT { value=0; text = text_directprint_no;},
       
  1497 		AVKON_ENUMERATED_TEXT { value=1; text = text_directprint_yes;}
       
  1498 		};
       
  1499 	}
       
  1500 
       
  1501 // ---------------------------------------------------------------------------- 
       
  1502 //
       
  1503 // Resources for item title.
       
  1504 //
       
  1505 // ---------------------------------------------------------------------------- 
       
  1506 //
       
  1507 RESOURCE TBUF r_directprint_propertysetting_item_papersize       { buf=text_directprint_propertysetting_item_papersize; }
       
  1508 RESOURCE TBUF r_directprint_propertysetting_item_orientation     { buf=text_directprint_propertysetting_item_orientation; }
       
  1509 RESOURCE TBUF r_directprint_propertysetting_item_mediatype       { buf=text_directprint_propertysetting_item_mediatype; }
       
  1510 RESOURCE TBUF r_directprint_propertysetting_item_printpage       { buf=text_directprint_propertysetting_item_printpage; }
       
  1511 RESOURCE TBUF r_directprint_propertysetting_item_printrange      { buf=text_directprint_propertysetting_item_printrange; }
       
  1512 RESOURCE TBUF r_directprint_propertysetting_item_copy            { buf=text_directprint_propertysetting_item_copy; }
       
  1513 RESOURCE TBUF r_directprint_propertysetting_item_leftmargin      { buf=text_directprint_propertysetting_item_leftmargin; }
       
  1514 RESOURCE TBUF r_directprint_propertysetting_item_rightmargin     { buf=text_directprint_propertysetting_item_rightmargin; }
       
  1515 RESOURCE TBUF r_directprint_propertysetting_item_topmargin       { buf=text_directprint_propertysetting_item_topmargin; }
       
  1516 RESOURCE TBUF r_directprint_propertysetting_item_bottommargin    { buf=text_directprint_propertysetting_item_bottommargin; }
       
  1517 RESOURCE TBUF r_directprint_propertysetting_item_headertext      { buf=text_directprint_propertysetting_item_headertext; }
       
  1518 RESOURCE TBUF r_directprint_propertysetting_item_headerdistance  { buf=text_directprint_propertysetting_item_headerdistance; }
       
  1519 RESOURCE TBUF r_directprint_propertysetting_item_headerfirstpage { buf=text_directprint_propertysetting_item_headerfirstpage; }
       
  1520 RESOURCE TBUF r_directprint_propertysetting_item_footertext      { buf=text_directprint_propertysetting_item_footertext; }
       
  1521 RESOURCE TBUF r_directprint_propertysetting_item_footerdistance  { buf=text_directprint_propertysetting_item_footerdistance; }
       
  1522 RESOURCE TBUF r_directprint_propertysetting_item_footerfirstpage { buf=text_directprint_propertysetting_item_footerfirstpage; }
       
  1523 
       
  1524 RESOURCE TBUF r_directprint_propertysetting_item_boaderless      { buf=text_directprint_propertysetting_item_boaderless; }
       
  1525 
       
  1526 ////////////////////////////////////////////////////////////////////////////////
       
  1527 //
       
  1528 // Preview View
       
  1529 //
       
  1530 ////////////////////////////////////////////////////////////////////////////////
       
  1531 //
       
  1532 //
       
  1533 // ---------------------------------------------------------------------------- 
       
  1534 //
       
  1535 // r_directprint_preview_view
       
  1536 //
       
  1537 // ---------------------------------------------------------------------------- 
       
  1538 //
       
  1539 //
       
  1540 RESOURCE AVKON_VIEW r_directprint_preview_view
       
  1541 	{
       
  1542 	cba = R_AVKON_SOFTKEYS_OPTIONS_BACK;
       
  1543 	menubar = r_directprint_preview_options_menu;
       
  1544 	toolbar = r_directprint_preview_toolbar;
       
  1545 	}
       
  1546 
       
  1547 // ---------------------------------------------------------------------------- 
       
  1548 //
       
  1549 // r_directprint_preview_title
       
  1550 //
       
  1551 // ---------------------------------------------------------------------------- 
       
  1552 //
       
  1553 // 
       
  1554 RESOURCE TITLE_PANE r_directprint_preview_title
       
  1555 	{
       
  1556 	txt = text_directprint_previewview_title;
       
  1557 	}
       
  1558 
       
  1559 // ---------------------------------------------------------------------------- 
       
  1560 //
       
  1561 // r_directprint_preview_options_menu
       
  1562 //
       
  1563 // ---------------------------------------------------------------------------- 
       
  1564 //
       
  1565 //
       
  1566 RESOURCE MENU_BAR r_directprint_preview_options_menu
       
  1567 	{
       
  1568 	titles =
       
  1569 		{
       
  1570 		MENU_TITLE
       
  1571 			{
       
  1572 			menu_pane = r_directprint_preview_options_menu_pane;
       
  1573 			}
       
  1574 		};
       
  1575 	}
       
  1576 
       
  1577 // ---------------------------------------------------------------------------- 
       
  1578 //
       
  1579 // r_directprint_preview_options_menu_pane
       
  1580 //
       
  1581 // ---------------------------------------------------------------------------- 
       
  1582 //
       
  1583 //
       
  1584 RESOURCE MENU_PANE r_directprint_preview_options_menu_pane
       
  1585 	{
       
  1586 	items =
       
  1587 		{
       
  1588 		MENU_ITEM
       
  1589 			{
       
  1590 			command = EDirectPrintCmdIdPreviewViewPrint;
       
  1591 			txt = text_directprint_menu_print;
       
  1592 			},
       
  1593 		MENU_ITEM
       
  1594 			{
       
  1595 			command = EDirectPrintCmdIdPreviewViewExpand;
       
  1596 			txt = text_directprint_previewview_expand;
       
  1597 			},
       
  1598 		MENU_ITEM
       
  1599 			{
       
  1600 			command = EDirectPrintCmdIdPreviewViewReduce;
       
  1601 			txt = text_directprint_previewview_reduce;
       
  1602 			}
       
  1603 		};
       
  1604 	}
       
  1605 
       
  1606 // ---------------------------------------------------------------------------- 
       
  1607 //
       
  1608 // r_directprint_preview_toolbar
       
  1609 //
       
  1610 // ---------------------------------------------------------------------------- 
       
  1611 //
       
  1612 //
       
  1613 RESOURCE AVKON_TOOLBAR r_directprint_preview_toolbar
       
  1614 	{
       
  1615 	flags = KAknToolbarFixed;
       
  1616 	items =
       
  1617 		{
       
  1618 		TBAR_CTRL
       
  1619 			{
       
  1620 			type = EAknCtButton;
       
  1621 			id = EDirectPrintCmdIdPreviewViewPrint;
       
  1622 			control = AVKON_BUTTON
       
  1623 				{
       
  1624 				flags = 0;
       
  1625 				states = 
       
  1626 					{
       
  1627 					AVKON_BUTTON_STATE
       
  1628 						{
       
  1629 						txt = text_directprint_toolbar_print;
       
  1630 						}
       
  1631 					};
       
  1632 				};
       
  1633 			},
       
  1634 		TBAR_CTRL
       
  1635 			{
       
  1636 			type = EAknCtButton;
       
  1637 			id = EDirectPrintCmdIdPreviewViewExpand;
       
  1638 			control = AVKON_BUTTON
       
  1639 				{
       
  1640 				flags = 0;
       
  1641 				states = 
       
  1642 					{
       
  1643 					AVKON_BUTTON_STATE
       
  1644 						{
       
  1645 						txt = text_directprint_previewview_expand;
       
  1646 						}
       
  1647 					};
       
  1648 				};
       
  1649 			},
       
  1650 		TBAR_CTRL
       
  1651 			{
       
  1652 			type = EAknCtButton;
       
  1653 			id = EDirectPrintCmdIdPreviewViewReduce;
       
  1654 			control = AVKON_BUTTON
       
  1655 				{
       
  1656 				flags = 0;
       
  1657 				states = 
       
  1658 					{
       
  1659 					AVKON_BUTTON_STATE
       
  1660 						{
       
  1661 						txt = text_directprint_previewview_reduce;
       
  1662 						}
       
  1663 					};
       
  1664 				};
       
  1665 			}
       
  1666 		};
       
  1667 	}
       
  1668 
       
  1669 
       
  1670 
       
  1671 
       
  1672 
       
  1673 // ---------------------------------------------------------------------------- 
       
  1674 //
       
  1675 // For directprint engine
       
  1676 //
       
  1677 // ---------------------------------------------------------------------------- 
       
  1678 //
       
  1679 //
       
  1680 
       
  1681 // d:List box format string - do not localize this!
       
  1682 #define qtn_lbox_format "\t%0U\t\t%1U"
       
  1683 
       
  1684 // Resource strings
       
  1685 RESOURCE TBUF R_QTN_LBOX_FORMAT { buf = qtn_lbox_format; }
       
  1686 RESOURCE TBUF R_EMPTY { buf = ""; }
       
  1687 
       
  1688 // Paper sizes
       
  1689 RESOURCE TBUF R_QTN_STR_PAPER_SIZE { buf = qtn_print_settings_paper_size; }
       
  1690 RESOURCE TBUF R_QTN_STR_SIZE_AUTO { buf = qtn_print_paper_size_auto; }
       
  1691 RESOURCE TBUF R_QTN_STR_SIZE_LETTER { buf = qtn_print_paper_size_letter; }
       
  1692 RESOURCE TBUF R_QTN_STR_SIZE_A4 { buf = qtn_print_paper_size_a4; }
       
  1693 RESOURCE TBUF R_QTN_STR_SIZE_A6 { buf = qtn_print_paper_size_a6; }
       
  1694 RESOURCE TBUF R_QTN_STR_SIZE_4X6 { buf = qtn_print_paper_size_4x6; }
       
  1695 RESOURCE TBUF R_QTN_STR_SIZE_5X7 { buf = qtn_print_paper_size_5x7; }
       
  1696 RESOURCE TBUF R_QTN_STR_SIZE_STICKER { buf = qtn_print_paper_size_sticker; }
       
  1697 
       
  1698 // Print quality
       
  1699 RESOURCE TBUF R_QTN_STR_QUALITY { buf = qtn_print_settings_print_quality; }
       
  1700 RESOURCE TBUF R_QTN_STR_QUAL_AUTO { buf = qtn_print_quality_auto; }
       
  1701 RESOURCE TBUF R_QTN_STR_QUAL_NORMAL { buf = qtn_print_quality_normal; }
       
  1702 RESOURCE TBUF R_QTN_STR_QUAL_DRAFT { buf = qtn_print_quality_draft; }
       
  1703 RESOURCE TBUF R_QTN_STR_QUAL_FINE { buf = qtn_print_quality_fine; }
       
  1704 
       
  1705 // Template
       
  1706 RESOURCE TBUF R_QTN_STR_TEMPLATE { buf = qtn_print_settings_template; }
       
  1707 RESOURCE TBUF R_QTN_STR_TEMPLATE_BLESS { buf = qtn_print_settings_bless; }
       
  1708 RESOURCE TBUF R_QTN_STR_TEMPLATE_ONE { buf = "1"; }
       
  1709 RESOURCE TBUF R_QTN_STR_TEMPLATE_TWO { buf = "2"; }
       
  1710 RESOURCE TBUF R_QTN_STR_TEMPLATE_FOUR { buf = "4"; }
       
  1711 RESOURCE TBUF R_QTN_STR_TEMPLATE_SIX { buf = "6"; }
       
  1712 RESOURCE TBUF R_QTN_STR_TEMPLATE_NINE { buf = "9"; }
       
  1713 RESOURCE TBUF R_QTN_STR_TEMPLATE_TWELVE { buf = "12"; }
       
  1714 RESOURCE TBUF R_QTN_STR_TEMPLATE_SIXTEEN { buf = "16"; }
       
  1715 
       
  1716 // 
       
  1717 RESOURCE TBUF r_qtn_print_no_printers { buf = qtn_print_no_printers; }	
       
  1718 RESOURCE TBUF r_qtn_print_settings_default_usb { buf = qtn_print_settings_default_usb; }	
       
  1719 RESOURCE TBUF r_qtn_print_settings_default_bt { buf = qtn_print_settings_default_bt; }	
       
  1720 RESOURCE TBUF r_qtn_print_settings_default_wlan { buf = qtn_print_settings_default_wlan; }	
       
  1721 RESOURCE TBUF r_qtn_print_settings_default_lpr { buf = qtn_print_settings_default_lpr; }	
       
  1722 RESOURCE TBUF r_qtn_print_memory_card { buf = qtn_print_memory_card; }
       
  1723 
       
  1724 // DirectPrint
       
  1725 RESOURCE TBUF R_QTN_STR_ACCESS_POINT { buf = qtn_print_settings_accesspoint; }
       
  1726 RESOURCE TBUF R_QTN_STR_HOST { buf = qtn_print_settings_host; }
       
  1727 RESOURCE TBUF R_QTN_STR_PORT { buf = qtn_print_settings_port; }
       
  1728 RESOURCE TBUF R_QTN_STR_USER { buf = qtn_print_settings_user; }
       
  1729 RESOURCE TBUF R_QTN_STR_QUE { buf = qtn_print_settings_que; }
       
  1730 
       
  1731 // Extent
       
  1732 RESOURCE TBUF R_QTN_STR_EXTENT { buf = qtn_print_settings_extent; }
       
  1733 RESOURCE TBUF R_QTN_STR_EXTENT2 { buf = qtn_print_settings_extent2; }
       
  1734 RESOURCE TBUF R_QTN_STR_EXTENT_SELECT1 { buf = qtn_print_settings_extent_select1; }
       
  1735 RESOURCE TBUF R_QTN_STR_EXTENT_SELECT2 { buf = qtn_print_settings_extent_select2; }
       
  1736 RESOURCE TBUF R_QTN_STR_EXTENT_SELECT3 { buf = qtn_print_settings_extent_select3; }
       
  1737 RESOURCE TBUF R_QTN_STR_EXTENT_SELECT4 { buf = qtn_print_settings_extent_select4; }
       
  1738 
       
  1739 
       
  1740 // End of File