summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Dominguez <venccsralph@gmail.com>2012-07-02 22:59:53 -0430
committerRafael Dominguez <venccsralph@gmail.com>2012-07-03 16:03:30 -0430
commit007ad58e5108431b01db5e2aa93fd21b6ca508f2 (patch)
treec778fe60fa9a7240ab58fd5d082ad51fb0f96bbd
parent93a378e081d7311ee43ea4f8f283eed38814ca0e (diff)
Add icons to toolbar buttons and menus.
Change-Id: Ia1415d3cab1f381a7b84ad3cabeacefe739a047c
-rw-r--r--icon-themes/galaxy/sfx2/res/create_draw.pngbin0 -> 1178 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/create_present.pngbin0 -> 1055 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/create_sheet.pngbin0 -> 1069 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/create_text.pngbin0 -> 973 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/exec_action.pngbin0 -> 403 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/import.pngbin0 -> 543 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/search.pngbin0 -> 963 bytes
-rw-r--r--icon-themes/galaxy/sfx2/res/sortascending.pngbin0 -> 574 bytes
-rw-r--r--sfx2/source/doc/templatedlg.cxx10
-rw-r--r--sfx2/source/doc/templatedlg.hrc5
-rw-r--r--sfx2/source/doc/templatedlg.src63
11 files changed, 72 insertions, 6 deletions
diff --git a/icon-themes/galaxy/sfx2/res/create_draw.png b/icon-themes/galaxy/sfx2/res/create_draw.png
new file mode 100644
index 000000000000..f99e50310d0b
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/create_draw.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/create_present.png b/icon-themes/galaxy/sfx2/res/create_present.png
new file mode 100644
index 000000000000..f3e7e2671a81
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/create_present.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/create_sheet.png b/icon-themes/galaxy/sfx2/res/create_sheet.png
new file mode 100644
index 000000000000..e3176590135c
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/create_sheet.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/create_text.png b/icon-themes/galaxy/sfx2/res/create_text.png
new file mode 100644
index 000000000000..35bc877ef401
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/create_text.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/exec_action.png b/icon-themes/galaxy/sfx2/res/exec_action.png
new file mode 100644
index 000000000000..e57abd7692b8
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/exec_action.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/import.png b/icon-themes/galaxy/sfx2/res/import.png
new file mode 100644
index 000000000000..37f64066a9ce
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/import.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/search.png b/icon-themes/galaxy/sfx2/res/search.png
new file mode 100644
index 000000000000..228d958d9938
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/search.png
Binary files differ
diff --git a/icon-themes/galaxy/sfx2/res/sortascending.png b/icon-themes/galaxy/sfx2/res/sortascending.png
new file mode 100644
index 000000000000..3d710f99663f
--- /dev/null
+++ b/icon-themes/galaxy/sfx2/res/sortascending.png
Binary files differ
diff --git a/sfx2/source/doc/templatedlg.cxx b/sfx2/source/doc/templatedlg.cxx
index 4a8322ed8ccb..2483dcb3c43e 100644
--- a/sfx2/source/doc/templatedlg.cxx
+++ b/sfx2/source/doc/templatedlg.cxx
@@ -82,14 +82,14 @@ SfxTemplateManagerDlg::SfxTemplateManagerDlg (Window *parent)
// Create popup menus
mpCreateMenu = new PopupMenu;
- mpCreateMenu->InsertItem(MNI_CREATE_TEXT,SfxResId(STR_CREATE_TEXT).toString());
- mpCreateMenu->InsertItem(MNI_CREATE_SHEET,SfxResId(STR_CREATE_SHEET).toString());
- mpCreateMenu->InsertItem(MNI_CREATE_PRESENT,SfxResId(STR_CREATE_PRESENT).toString());
- mpCreateMenu->InsertItem(MNI_CREATE_DRAW,SfxResId(STR_CREATE_DRAW).toString());
+ mpCreateMenu->InsertItem(MNI_CREATE_TEXT,SfxResId(STR_CREATE_TEXT).toString(),SfxResId(IMG_CREATE_TEXT));
+ mpCreateMenu->InsertItem(MNI_CREATE_SHEET,SfxResId(STR_CREATE_SHEET).toString(),SfxResId(IMG_CREATE_SHEET));
+ mpCreateMenu->InsertItem(MNI_CREATE_PRESENT,SfxResId(STR_CREATE_PRESENT).toString(),SfxResId(IMG_CREATE_PRESENT));
+ mpCreateMenu->InsertItem(MNI_CREATE_DRAW,SfxResId(STR_CREATE_DRAW).toString(),SfxResId(IMG_CREATE_DRAW));
mpCreateMenu->SetSelectHdl(LINK(this, SfxTemplateManagerDlg, MenuSelectHdl));
mpActionMenu = new PopupMenu;
- mpActionMenu->InsertItem(MNI_ACTION_SORT_NAME,SfxResId(STR_ACTION_SORT_NAME).toString());
+ mpActionMenu->InsertItem(MNI_ACTION_SORT_NAME,SfxResId(STR_ACTION_SORT_NAME).toString(),SfxResId(IMG_ACTION_SORT));
mpActionMenu->SetSelectHdl(LINK(this,SfxTemplateManagerDlg,MenuSelectHdl));
Size aWinSize = GetOutputSize();
diff --git a/sfx2/source/doc/templatedlg.hrc b/sfx2/source/doc/templatedlg.hrc
index 245466f87aa9..b24d844ccdd4 100644
--- a/sfx2/source/doc/templatedlg.hrc
+++ b/sfx2/source/doc/templatedlg.hrc
@@ -53,3 +53,8 @@
#define STR_MOVE_DELETE 270
#define IMG_ONLINE_REPOSITORY 100
+#define IMG_CREATE_TEXT 300
+#define IMG_CREATE_SHEET 301
+#define IMG_CREATE_PRESENT 302
+#define IMG_CREATE_DRAW 303
+#define IMG_ACTION_SORT 304
diff --git a/sfx2/source/doc/templatedlg.src b/sfx2/source/doc/templatedlg.src
index f4b69620634c..27fdfbbc647c 100644
--- a/sfx2/source/doc/templatedlg.src
+++ b/sfx2/source/doc/templatedlg.src
@@ -129,10 +129,51 @@ ModalDialog DLG_TEMPLATE_MANAGER
{
ImageBitmap = Bitmap
{
- File = "signet.png";
+ File = "ln053.png";
};
};
+ Image IMG_CREATE_TEXT
+ {
+ ImageBitmap = Bitmap
+ {
+ File = "create_text.png";
+ };
+ };
+
+ Image IMG_CREATE_SHEET
+ {
+ ImageBitmap = Bitmap
+ {
+ File = "create_sheet.png";
+ };
+ };
+
+ Image IMG_CREATE_PRESENT
+ {
+ ImageBitmap = Bitmap
+ {
+ File = "create_present.png";
+ };
+ };
+
+ Image IMG_CREATE_DRAW
+ {
+ ImageBitmap = Bitmap
+ {
+ File = "create_draw.png";
+ };
+ };
+
+ Image IMG_ACTION_SORT
+ {
+ ImageBitmap = Bitmap
+ {
+ File = "sortascending.png";
+ };
+ };
+
+
ToolBox TBX_ACTION_VIEW
{
SVLook = TRUE ;
@@ -145,12 +186,22 @@ ModalDialog DLG_TEMPLATE_MANAGER
{
Identifier = TBI_TEMPLATE_CREATE;
Text [ en-US ] = "Create a template" ;
+
+ ItemImage = Image
+ {
+ ImageBitmap = Bitmap { File = "create_text.png" ; };
+ };
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_IMPORT ;
Text [ en-US ] = "Import a template" ;
+
+ ItemImage = Image
+ {
+ ImageBitmap = Bitmap { File = "import.png" ; };
+ };
};
};
};
@@ -167,12 +218,22 @@ ModalDialog DLG_TEMPLATE_MANAGER
{
Identifier = TBI_TEMPLATE_SEARCH;
Text [en-US] = "Search";
+
+ ItemImage = Image
+ {
+ ImageBitmap = Bitmap { File = "search.png" ; };
+ };
};
ToolBoxItem
{
Identifier = TBI_TEMPLATE_ACTION;
Text [en-US] = "Action Menu";
+
+ ItemImage = Image
+ {
+ ImageBitmap = Bitmap { File = "exec_action.png" ; };
+ };
};
};
};