summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Fischer <af@apache.org>2013-04-23 10:41:58 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:18 +0100
commitb99b51a7a36132224cfc50a35d369247255e59c2 (patch)
treed11e6fe2177a33fc08e20c0f7d21a138047fbfa3
parent60285fdc868635f99644ef1d8a195a2be87074c7 (diff)
Related: #i122144#: Use AOO icons for flipping shapes.
(cherry picked from commit 52450684d9c02f0d6d96bff731c348d85ca4ced1) Conflicts: icon-themes/galaxy/svx/res/symphony/FlipHorizontally_16x16.png icon-themes/galaxy/svx/res/symphony/FlipVertically_16x16.png Change-Id: I99e3d3b9e7046ee0de60075f49dc47f086e17dcc
-rwxr-xr-xicon-themes/galaxy/svx/res/symphony/FlipHorizontally_16x16.pngbin3071 -> 0 bytes
-rwxr-xr-xicon-themes/galaxy/svx/res/symphony/FlipVertically_16x16.pngbin3123 -> 0 bytes
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.cxx15
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.hrc2
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.hxx4
-rw-r--r--svx/source/sidebar/possize/PosSizePropertyPanel.src17
6 files changed, 9 insertions, 29 deletions
diff --git a/icon-themes/galaxy/svx/res/symphony/FlipHorizontally_16x16.png b/icon-themes/galaxy/svx/res/symphony/FlipHorizontally_16x16.png
deleted file mode 100755
index 281ee466886d..000000000000
--- a/icon-themes/galaxy/svx/res/symphony/FlipHorizontally_16x16.png
+++ /dev/null
Binary files differ
diff --git a/icon-themes/galaxy/svx/res/symphony/FlipVertically_16x16.png b/icon-themes/galaxy/svx/res/symphony/FlipVertically_16x16.png
deleted file mode 100755
index 7c9c4c45e205..000000000000
--- a/icon-themes/galaxy/svx/res/symphony/FlipVertically_16x16.png
+++ /dev/null
Binary files differ
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
index 97abed54aecf..0eb31253251b 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx
@@ -27,6 +27,7 @@
#include <sfx2/bindings.hxx>
#include <sfx2/viewsh.hxx>
#include <sfx2/objsh.hxx>
+#include <sfx2/imagemgr.hxx>
#include <svx/dlgutil.hxx>
#include <unotools/viewoptions.hxx>
#include <vcl/virdev.hxx>
@@ -95,8 +96,6 @@ PosSizePropertyPanel::PosSizePropertyPanel(
maAutoWidthControl(SID_ATTR_TRANSFORM_AUTOWIDTH, *pBindings, *this),
maAutoHeightControl(SID_ATTR_TRANSFORM_AUTOHEIGHT, *pBindings, *this),
m_aMetricCtl(SID_ATTR_METRIC, *pBindings, *this),
- maImgFlipHori(SVX_RES(IMG_HORI_FLIP)),
- maImgFlipVert(SVX_RES(IMG_VERT_FLIP)),
mxFrame(rxFrame),
maContext(),
mpBindings(pBindings),
@@ -178,10 +177,14 @@ void PosSizePropertyPanel::Initialize()
//flip:
mpFlipTbx->SetSelectHdl( LINK( this, PosSizePropertyPanel, FlipHdl) );
- mpFlipTbx->SetItemImage(FLIP_HORIZONTAL,maImgFlipHori);
- mpFlipTbx->SetItemImage(FLIP_VERTICAL,maImgFlipVert);
- mpFlipTbx->SetQuickHelpText(FLIP_HORIZONTAL,String(SVX_RES(STR_QH_HORI_FLIP))); //Add
- mpFlipTbx->SetQuickHelpText(FLIP_VERTICAL,String(SVX_RES(STR_QH_VERT_FLIP))); //Add
+ mpFlipTbx->SetItemImage(
+ FLIP_HORIZONTAL,
+ GetImage(mxFrame, A2S(".uno:FlipHorizontal"), sal_False));
+ mpFlipTbx->SetItemImage(
+ FLIP_VERTICAL,
+ GetImage(mxFrame, A2S(".uno:FlipVertical"), sal_False));
+ mpFlipTbx->SetQuickHelpText(FLIP_HORIZONTAL, SVX_RESSTR(STR_QH_HORI_FLIP)); //Add
+ mpFlipTbx->SetQuickHelpText(FLIP_VERTICAL, SVX_RESSTR(STR_QH_VERT_FLIP)); //Add
mpMtrPosX->SetAccessibleRelationLabeledBy(mpFtPosX.get());
mpMtrPosY->SetAccessibleRelationLabeledBy(mpFtPosY.get());
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hrc b/svx/source/sidebar/possize/PosSizePropertyPanel.hrc
index 8a4cabad21a3..249d182fb554 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.hrc
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hrc
@@ -33,8 +33,6 @@
#define DIAL_CONTROL 17
#define FLIP_HORIZONTAL 18
#define FLIP_VERTICAL 19
-#define IMG_HORI_FLIP 20
-#define IMG_VERT_FLIP 21
#define FT_FLIP 22
#define STR_QH_HORI_FLIP 23
#define STR_QH_VERT_FLIP 24
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
index 7beb0825f0a9..fb5ce8eedc6f 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.hxx
@@ -121,10 +121,6 @@ private:
::sfx2::sidebar::ControllerItem maAutoHeightControl;
::sfx2::sidebar::ControllerItem m_aMetricCtl;
- // images from ressource
- Image maImgFlipHori;
- Image maImgFlipVert;
-
cssu::Reference< css::frame::XFrame > mxFrame;
::sfx2::sidebar::EnumContext maContext;
SfxBindings* mpBindings;
diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.src b/svx/source/sidebar/possize/PosSizePropertyPanel.src
index fd5996f51ce9..df686a56639a 100644
--- a/svx/source/sidebar/possize/PosSizePropertyPanel.src
+++ b/svx/source/sidebar/possize/PosSizePropertyPanel.src
@@ -176,20 +176,12 @@ Control RID_SIDEBAR_POSSIZE_PANEL
Identifier = FLIP_VERTICAL ;
Text [ en-US ] = "Flip Vertically" ;
HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_VERTICAL;
- ItemBitmap = Bitmap
- {
- File = "symphony/FlipVertically_16x16.png";
- };
};
ToolBoxItem
{
Identifier = FLIP_HORIZONTAL ;
Text [ en-US ] = "Flip Horizontally" ;
HelpID = HID_PROPERTY_PANEL_POSIZE_FLIP_HORIZONTAL;
- ItemBitmap = Bitmap
- {
- File = "symphony/FlipHorizontally_16x16.png";
- };
};
};
};
@@ -203,15 +195,6 @@ Control RID_SIDEBAR_POSSIZE_PANEL
Text [ en-US ] = "Flip the selected object vertically.";
};
- Image IMG_HORI_FLIP
- {
- ImageBitmap = Bitmap{File = "symphony/FlipHorizontally_16x16.png";};
- };
- Image IMG_VERT_FLIP
- {
- ImageBitmap = Bitmap{File = "symphony/FlipVertically_16x16.png";};
- };
-
Control DIAL_CONTROL
{
Pos = MAP_APPFONT ( ROTATE_CONTROL_X , ROTATE_CONTROL_Y );