summaryrefslogtreecommitdiff
path: root/svx/source/dialog/compressgraphicdialog.src
diff options
context:
space:
mode:
authorTomaž Vajngerl <quikee@gmail.com>2012-07-08 23:36:30 +0200
committerTomaž Vajngerl <quikee@gmail.com>2012-07-09 00:07:22 +0200
commit4d7581b9075d826feebfb095310c74627314a484 (patch)
tree7966b832c69de8c422880afc9e46a334125527d2 /svx/source/dialog/compressgraphicdialog.src
parent9a7e4eac50523df3f24008430340635d7b870328 (diff)
Compress Graphic functionallity added (currently only for Draw)
This is a initial commit of "Compress Graphics" functionallity. Compress Graphics is accesible via pop-up menu option to graphics objects. Currently this funtionallity is only available in Draw. When the menu option is triggered, a Compress Graphics modal dialog opens to define DPI, compression level and type of compression. When OK is clicked, the graphics in Draw is compressed and exchanged. The current implementation is not final as it needs handling in case when the graphics is croped. Additionally cropped areas could be removed when compressing, depending on a checkbox in the dialog. Special cases of graphics need to be checked too, and some tests would not hurt. Change-Id: I9ec1a71f6ff4364a49b2521e42d88c3ba224dd87
Diffstat (limited to 'svx/source/dialog/compressgraphicdialog.src')
-rw-r--r--svx/source/dialog/compressgraphicdialog.src165
1 files changed, 165 insertions, 0 deletions
diff --git a/svx/source/dialog/compressgraphicdialog.src b/svx/source/dialog/compressgraphicdialog.src
new file mode 100644
index 000000000000..a336fd1906fe
--- /dev/null
+++ b/svx/source/dialog/compressgraphicdialog.src
@@ -0,0 +1,165 @@
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * 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/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed
+ * with this work for additional information regarding copyright
+ * ownership. The ASF licenses this file to you under the Apache
+ * License, Version 2.0 (the "License"); you may not use this file
+ * except in compliance with the License. You may obtain a copy of
+ * the License at http://www.apache.org/licenses/LICENSE-2.0 .
+ */
+
+#include <svx/dialogs.hrc>
+#include "helpid.hrc"
+#include "compressgraphicdialog.hrc"
+
+ModalDialog RID_SVXDLG_COMPRESSGRAPHICS
+{
+ HelpID = "svx:ModalDialog:RID_SVXDLG_COMPRESSGRAPHICS";
+ OutputSize = TRUE ;
+ SVLook = TRUE ;
+ Size = MAP_APPFONT ( 226 , 200 ) ;
+ Moveable = TRUE ;
+ Sizeable = TRUE ;
+ Closeable = TRUE ;
+ Hide = TRUE ;
+ Text [ en-US ] = "Compress Graphics" ;
+
+ FixedText FT_CG_2_X
+ {
+ Pos = MAP_APPFONT ( 6 , 8 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text [ en-US ] = "Original Size:" ;
+ };
+
+ FixedText FT_CG_2
+ {
+ Pos = MAP_APPFONT ( 56 , 8 ) ;
+ Size = MAP_APPFONT ( 124 , 10 ) ;
+ };
+
+ FixedText FT_CG_3_X
+ {
+ Pos = MAP_APPFONT ( 6 , 20 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text [ en-US ] = "View Size:" ;
+ };
+
+ FixedText FT_CG_3
+ {
+ Pos = MAP_APPFONT ( 56 , 20 ) ;
+ Size = MAP_APPFONT ( 124 , 10 ) ;
+ };
+
+ FixedText FT_CG_4_X
+ {
+ Pos = MAP_APPFONT ( 6 , 32 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text [ en-US ] = "Compressed Size:" ;
+ };
+
+ FixedText FT_CG_4
+ {
+ Pos = MAP_APPFONT ( 56 , 32 ) ;
+ Size = MAP_APPFONT ( 124 , 10 ) ;
+ };
+
+ FixedText FT_CG_5_X
+ {
+ Pos = MAP_APPFONT ( 6 , 44 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text [ en-US ] = "Image Capacity:" ;
+ };
+
+ FixedText FT_CG_5
+ {
+ Pos = MAP_APPFONT ( 56 , 44 ) ;
+ Size = MAP_APPFONT ( 124 , 10 ) ;
+ };
+
+ FixedText FT_CG_6_X
+ {
+ Pos = MAP_APPFONT ( 6 , 56 ) ;
+ Size = MAP_APPFONT ( 50 , 10 ) ;
+ Text [ en-US ] = "New Capacity:" ;
+ };
+
+ FixedText FT_CG_6
+ {
+ Pos = MAP_APPFONT ( 56 , 56 ) ;
+ Size = MAP_APPFONT ( 124 , 10 ) ;
+ };
+
+ ComboBox LB_CG_RESOLUTION
+ {
+ HelpID = "sfx2:ListBox:TP_COMMONPRINTOPTIONS:LB_REDUCEBITMAPS_RESOLUTION";
+ TabStop = TRUE;
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 6, 68 ) ;
+ Size = MAP_APPFONT ( 60, 100 ) ;
+ DropDown = TRUE;
+ StringList [ en-US ] =
+ {
+ "75 DPI";
+ "96 DPI";
+ "150 DPI";
+ "200 DPI";
+ "300 DPI";
+ "600 DPI";
+ };
+ };
+
+ MetricField MF_CG_QUALITY
+ {
+ Border = TRUE ;
+ Pos = MAP_APPFONT ( 70, 68 ) ;
+ Size = MAP_APPFONT ( 29 , 12 ) ;
+ TabStop = TRUE ;
+ Repeat = TRUE ;
+ Spin = TRUE ;
+ Maximum = 99 ;
+ Last = 99 ;
+ SpinSize = 1 ;
+ Unit = FUNIT_PERCENT ;
+ };
+
+ CheckBox CB_CG_LOSSLESS
+ {
+ Pos = MAP_APPFONT ( 6 , 80 ) ;
+ Size = MAP_APPFONT ( 118 , 10 ) ;
+ Text [ en-US ] = "Lossless";
+ };
+
+ OKButton BUTTON_CG_OK
+ {
+ Pos = MAP_APPFONT ( 170 , 6 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ DefButton = TRUE ;
+ };
+
+ CancelButton BUTTON_CG_CANCEL
+ {
+ Pos = MAP_APPFONT ( 170 , 23 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+
+ HelpButton BUTTON_CG_HELP
+ {
+ Pos = MAP_APPFONT ( 170 , 43 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ };
+
+ PushButton BUTTON_CG_CALCULATE
+ {
+ Pos = MAP_APPFONT ( 170 , 63 ) ;
+ Size = MAP_APPFONT ( 50 , 14 ) ;
+ Text [ en-US ] = "Calculate";
+ };
+};