Adding icons to the template manager
Alexander Wilms
alexander.wilms at zoho.com
Mon Nov 12 15:15:09 PST 2012
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
When compiling it I get the following error, but I don't know what's
the difference to the syntax in navigatr.src:
[build srs] /home/alexander/libo/sfx2/source/doc/templatedlg.src
Warning : Can't open
/home/alexander/libo/workdir/unxlngx6.pro/CustomTarget/translations/translate/sdf/sfx2/source/doc/localize.sdf
{
^
f4101:
"/home/alexander/libo/workdir/unxlngx6.pro/SrsPartMergeTarget/sfx2/source/doc/templatedlg.src",
line 242: Warning in the object (Type: ImageList):
Resources without name are ignored.
{
^
f640:
"/home/alexander/libo/workdir/unxlngx6.pro/SrsPartMergeTarget/sfx2/source/doc/templatedlg.src",
line 242: Error: syntax error
f256: Error: !! 1 Error found!!
Error starting rsc2 compiler
make[2]: ***
[/home/alexander/libo/workdir/unxlngx6.pro/SrsPartTarget/sfx2/source/doc/templatedlg.src]
Fehler 1
Should it basically look like the code below?
Kind Regards
Alex
/*
* Copyright 2012 LibreOffice contributors.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "doc.hrc"
#include "templatedlg.hrc"
#include "helpid.hrc"
String STR_ACTION_SORT_NAME
{
Text [ en-US ] = "Sort by name";
};
String STR_ACTION_REFRESH
{
Text [ en-US ] = "Refresh";
};
String STR_ACTION_DEFAULT
{
Text [ en-US ] = "Reset Default Template "; /* leave ending space */
};
String STR_MOVE_NEW
{
Text [ en-US ] = "New folder";
};
String STR_INPUT_NEW
{
Text [ en-US ] = "Enter folder name:";
};
String STR_REPOSITORY_LOCAL
{
Text [ en-US ] = "Local";
};
String STR_REPOSITORY_NEW
{
Text [ en-US ] = "New Repository";
};
String STR_MSG_ERROR_LOCAL_MOVE
{
Text [ en-US ] = "Error moving the following templates to $1.\n$2" ;
};
String STR_MSG_ERROR_REMOTE_MOVE
{
Text [ en-US ] = "Error moving the following templates from
repository $1 to folder $2.\n$3" ;
};
String STR_MSG_ERROR_EXPORT
{
Text [ en-US ] = "Error exporting the following templates:\n$1";
};
String STR_MSG_ERROR_IMPORT
{
Text [ en-US ] = "Error importing the following templates to
$1:\n$2";
};
String STR_MSG_ERROR_DELETE_TEMPLATE
{
Text [ en-US ] = "The following templates cannot be deleted:\n$1";
};
String STR_MSG_ERROR_DELETE_FOLDER
{
Text [ en-US ] = "The following folders cannot be deleted:\n$1";
};
String STR_MSG_ERROR_REPOSITORY_NAME
{
Text [ en-US ] = "Failed to create repository \"$1\".\nA repository
with this name may already exist.";
};
String STR_MSG_ERROR_SELECT_FOLDER
{
Text [ en-US ] = "Select the destination folder(s) to save the
template.";
};
String STR_INPUT_TEMPLATE_NEW
{
Text [ en-US ] = "Enter template name:";
};
String STR_QMSG_SEL_FOLDER_DELETE
{
Text [ en-US ] = "Do you want to delete the selected folders?";
};
String STR_QMSG_TEMPLATE_OVERWRITE
{
Text [ en-US ] = "A template named $1 already exist in $2. Do you
want to overwrite it?";
};
ModelessDialog DLG_TEMPLATE_MANAGER
{
OutputSize = TRUE;
SVLook = TRUE;
Moveable = TRUE;
Closeable = TRUE;
Hide = TRUE;
Size = MAP_APPFONT ( 290 , 250 );
Text [en-US] = "Template Manager";
PushButton BTN_SELECT_ALL
{
Pos = MAP_APPFONT(10,5);
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
DefButton = TRUE;
Text [en-US] = "All";
};
PushButton BTN_SELECT_DOCS
{
Pos = MAP_APPFONT(60,5);
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
Text [en-US] = "Documents";
};
PushButton BTN_SELECT_PRESENTATIONS
{
Pos = MAP_APPFONT(110,5);
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
Text [en-US] = "Presentations";
};
PushButton BTN_SELECT_SHEETS
{
Pos = MAP_APPFONT(160,5);
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
Text [en-US] = "Spreedsheets";
};
PushButton BTN_SELECT_DRAWS
{
Pos = MAP_APPFONT(210,5);
Size = MAP_APPFONT(50,14);
TabStop = TRUE;
Text [en-US] = "Drawings";
};
ImageButton BTN_SELECTION_MODE
{
Pos = MAP_APPFONT(260,5);
Size = MAP_APPFONT(20,14);
TabStop = TRUE;
ButtonImage = Image
{
ImageBitmap = Bitmap { File = "select.png" ; };
};
QuickHelpText [en-US] = "Enables selecting items by just
clicking in the thumbnail or title.";
};
Control TEMPLATE_VIEW
{
Pos = MAP_APPFONT(5,30);
Size = MAP_APPFONT(280,220);
TabStop = TRUE;
};
Image IMG_ACTION_SORT
{
ImageBitmap = Bitmap
{
File = "sortascending.png";
};
};
Image IMG_ACTION_REFRESH
{
ImageBitmap = Bitmap
{
File = "reload.png";
};
};
ToolBox TBX_ACTION_VIEW
{
SVLook = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 4 , 22 ) ;
ItemList =
{
ToolBoxItem
{
Identifier = TBI_TEMPLATE_REPOSITORY;
Text [ en-US ] = "Repository";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_IMPORT ;
Hide = TRUE;
Text [ en-US ] = "Import" ;
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_FOLDER_DEL;
Hide = TRUE;
Text [ en-US ] = "Delete";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_SAVE;
Hide = TRUE;
Text [ en-US ] = "Save";
};
};
};
#define ACTIONVIEW_IDLIST \
IdList = \
{ \
TBI_TEMPLATE_REPOSITORY ; \
TBI_TEMPLATE_IMPORT ; \
TBI_TEMPLATE_FOLDER_DEL ; \
TBI_TEMPLATE_SAVE ; \
}; \
IdCount = { 2 ; };
#define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000;
Blue = 0xff00; }
ImageList IL_ACTIONVIEW
{
Prefix = "actionview";
MaskColor = IMAGE_STDBTN_COLOR ;
ACTIONVIEW_IDLIST
};
ToolBox TBX_ACTION_ACTION
{
SVLook = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 4 , 22 ) ;
ItemList =
{
ToolBoxItem
{
Identifier = TBI_TEMPLATE_SEARCH;
Text [en-US] = "Search";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_ACTION;
Text [en-US] = "Action Menu";
};
};
};
#define ACTIONACTION_IDLIST \
IdList = \
{ \
TBI_TEMPLATE_SEARCH ; \
TBI_TEMPLATE_ACTION ; \
}; \
IdCount = { 2 ; };
#define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000;
Blue = 0xff00; }
ImageList IL_ACTIONTEMPLATES
{
Prefix = "actionaction";
MaskColor = IMAGE_STDBTN_COLOR ;
ACTIONACTION_IDLIST
};
ToolBox TBX_ACTION_TEMPLATES
{
SVLook = TRUE ;
TabStop = TRUE ;
Pos = MAP_APPFONT ( 4 , 22 ) ;
Hide = TRUE;
ItemList =
{
ToolBoxItem
{
Identifier = TBI_TEMPLATE_EDIT;
Text [ en-US ] = "Edit";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_PROPERTIES;
Text [ en-US ] = "Properties";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_DEFAULT;
Text [ en-US ] = "Set as default";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_MOVE;
Text [ en-US ] = "Move to folder" ;
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_EXPORT;
Text [ en-US ] = "Export";
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_DELETE;
Text [ en-US ] = "Delete";
};
};
};
#define ACTIONTEMPLATES_IDLIST \
IdList = \
{ \
TBI_PEN ; \
TBI_FIRST ; \
TBI_TEMPLATE_EDIT ; \
TBI_TEMPLATE_PROPERTIES ; \
TBI_TEMPLATE_DEFAULT ; \
TBI_TEMPLATE_MOVE ; \
TBI_TEMPLATE_EXPORT ; \
TBI_TEMPLATE_DELETE ; \
}; \
IdCount = { 8 ; };
#define IMAGE_STDBTN_COLOR Color { Red = 0xff00; Green = 0x0000;
Blue = 0xff00; }
ImageList IL_ACTIONTEMPLATES
{
Prefix = "actiontemplates";
MaskColor = IMAGE_STDBTN_COLOR ;
ACTIONTEMPLATES_IDLIST
};
};
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/
iQEcBAEBAgAGBQJQoYL8AAoJECO1/tAiWGrNOhoIAJBDSI/GSzKj62LcaPk8crNW
KyljVZyytV1w4tBDzOKoOvPvY41tUK19uvLdQxe1fyAZcmuNkw4XNlJaVz+G4vja
U0bOETT1NElU7N2DMFNd0NjCcz7f1SwlvsHDkOHwcbLuYEIOVzYyCJoz+UFsnU/j
kaYMv6Gl1+89aB5LNhV1FAze0Yj/1jJguvFZGU0rDJUenzh3cMb8EYRyuuuYvAk8
ZEaHyKZcR2jXX0tA5PxN5CPFZK6TuPRN+JjuT5OIx0gL/w1/R/v9drGlmWoTNrjN
aTRnMh/yatOrjM0MCFQCBX9TNOzR8ejBU655kpbfUCyJSOhZInJo0T6eaAimjL8=
=ak1S
-----END PGP SIGNATURE-----
More information about the LibreOffice
mailing list