Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


Hi,

here is a small patch to vertically align the fields in the conditional
formatting dialog.
Additionnaly it give more room for several strings which is useful for
FR translation.
To easily understand the code, I reordered it according to the lines in
the dialog.

Best regards.
JBF

-- 
Seuls des formats ouverts peuvent assurer la pérennité de vos documents.

From 998885a7fb9f7e17fe3c9a03e66f5c7daa8dc938 Mon Sep 17 00:00:00 2001
From: Jean-Baptiste FAURE <jbf.faure@orange.fr>
Date: Tue, 31 Jul 2012 10:03:16 +0200
Subject: [PATCH] vertically align and enlarge fields in cond.formatting
 dialog

add more room in several fields: usefull for FR translation
reorder the code by levels/lines in the dialog

Change-Id: I2c4cbaf926ade87b35a5900ab5461477e0157822
---
 sc/source/ui/src/condformatdlg.src |   56 ++++++++++++++++++------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/sc/source/ui/src/condformatdlg.src b/sc/source/ui/src/condformatdlg.src
index 174da1f..12d4ef9 100644
--- a/sc/source/ui/src/condformatdlg.src
+++ b/sc/source/ui/src/condformatdlg.src
@@ -95,7 +95,7 @@ Control RID_COND_ENTRY
     ListBox LB_TYPE
     {
         Pos = MAP_APPFONT( 5, 15 );
-        Size = MAP_APPFONT( 60, 40 );
+        Size = MAP_APPFONT( 80, 40 );
         Border = TRUE;
         DropDown = TRUE;
         StringList [ en-US ] =
@@ -107,7 +107,7 @@ Control RID_COND_ENTRY
     };
     ListBox LB_CELLIS_TYPE
     {
-        Pos = MAP_APPFONT( 70, 15 );
+        Pos = MAP_APPFONT( 90, 15 );
         Size = MAP_APPFONT( 80, 40 );
         Border = TRUE;
         DropDown = TRUE;
@@ -125,52 +125,52 @@ Control RID_COND_ENTRY
             "not duplicate";
         };
     };
-    FixedText FT_STYLE
-    {
-        Pos = MAP_APPFONT( 10, 32 );
-        Size = MAP_APPFONT( 35, 14 );
-        Text [ en-US ] = "Apply Style";
-    };
     Edit ED_VAL1
     {
-        Pos = MAP_APPFONT( 155, 15 );
+        Pos = MAP_APPFONT( 175, 15 );
         Size = MAP_APPFONT( 50, 12 );
         Border = TRUE;
     };
     Edit ED_VAL2
     {
-        Pos = MAP_APPFONT( 210, 15 );
+        Pos = MAP_APPFONT( 230, 15 );
         Size = MAP_APPFONT( 50, 12 );
         Border = TRUE;
     };
-    ListBox LB_STYLE
+    ListBox LB_COLOR_FORMAT
     {
-        Pos = MAP_APPFONT( 50, 32 );
-        Size = MAP_APPFONT( 50, 80 );
+        Pos = MAP_APPFONT( 100, 15 );
+        Size = MAP_APPFONT( 100, 60);
         Border = TRUE;
         DropDown = TRUE;
         StringList [ en-US ] =
         {
-            "New Style...";
+            "Color Scale (2 Entries)";
+            "Color Scale (3 Entries)";
+            "Data Bar";
         };
     };
-    ListBox LB_COLOR_FORMAT
+    FixedText FT_STYLE
     {
-        Pos = MAP_APPFONT( 70, 15 );
-        Size = MAP_APPFONT( 80, 60);
+        Pos = MAP_APPFONT( 5, 32 );
+        Size = MAP_APPFONT( 50, 14 );
+        Text [ en-US ] = "Apply Style";
+    };
+    ListBox LB_STYLE
+    {
+        Pos = MAP_APPFONT( 90, 32 );
+        Size = MAP_APPFONT( 80, 80 );
         Border = TRUE;
         DropDown = TRUE;
         StringList [ en-US ] =
         {
-            "Color Scale (2 Entries)";
-            "Color Scale (3 Entries)";
-            "Data Bar";
+            "New Style...";
         };
     };
     ListBox LB_TYPE_COL_SCALE
     {
         Pos = MAP_APPFONT( 5, 32 );
-        Size = MAP_APPFONT( 60, 60 );
+        Size = MAP_APPFONT( 80, 60 );
         Border = TRUE;
         DropDown = TRUE;
         StringList [ en-US ] =
@@ -183,17 +183,17 @@ Control RID_COND_ENTRY
             "Formula";
         };
     };
-    Edit ED_COL_SCALE
+    Window WD_PREVIEW
     {
-        Pos = MAP_APPFONT( 5, 48 );
-        Size = MAP_APPFONT( 60, 12 );
+        Pos = MAP_APPFONT( 175, 32 );
+        Size = MAP_APPFONT( 105, 14 );
+        Text [ en-US ] = "Example";
         Border = TRUE;
     };
-    Window WD_PREVIEW
+    Edit ED_COL_SCALE
     {
-        Pos = MAP_APPFONT( 150, 32 );
-        Size = MAP_APPFONT( 60, 14 );
-        Text [ en-US ] = "Example";
+        Pos = MAP_APPFONT( 5, 48 );
+        Size = MAP_APPFONT( 60, 12 );
         Border = TRUE;
     };
     ListBox LB_COL
-- 
1.7.5.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.