summaryrefslogtreecommitdiff
path: root/svx/source/sidebar/line
diff options
context:
space:
mode:
authorArmin Le Grand <alg@apache.org>2013-04-11 13:11:46 +0000
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:12 +0100
commit05038d1bd0a7bc9ecb6676ba1309576ac74f849f (patch)
treecdb6b1d7aa01aed83a2222947e14dfc683a6fe86 /svx/source/sidebar/line
parentaa8c54950bc005b83a47fbe184291e84b0cbd09a (diff)
Related: #i121791# Corrected names for LineDashes, cleaned up resources
(cherry picked from commit f8f9cb1148f70f61f486517a1f353c4a3de8211f) Conflicts: svx/inc/svx/xtable.hxx svx/source/sidebar/line/LinePropertyPanel.cxx svx/source/sidebar/line/LinePropertyPanel.hrc svx/source/sidebar/line/LinePropertyPanel.src Change-Id: Ie49b28503e092c6685fb02c00820d4a3eaa3abb6
Diffstat (limited to 'svx/source/sidebar/line')
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.cxx6
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.hrc26
-rw-r--r--svx/source/sidebar/line/LinePropertyPanel.src94
3 files changed, 5 insertions, 121 deletions
diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx
index 74fdb7afbd83..8172091608ee 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.cxx
+++ b/svx/source/sidebar/line/LinePropertyPanel.cxx
@@ -742,7 +742,11 @@ IMPL_LINK_NOARG(LinePropertyPanel, ChangeLineStyleHdl)
{
// XLINE_DASH
const XLineStyleItem aItemA(XLINE_DASH);
- const XLineDashItem aItemB(mpLBStyle->GetSelectEntry(), mxLineStyleList->GetDash(nPos - 2)->GetDash());
+ const XDashEntry* pDashEntry = mxLineStyleList->GetDash(nPos - 2);
+ OSL_ENSURE(pDashEntry, "OOps, got empty XDash from XDashList (!)");
+ const XLineDashItem aItemB(
+ pDashEntry ? pDashEntry->GetName() : String(),
+ pDashEntry ? pDashEntry->GetDash() : XDash());
GetBindings()->GetDispatcher()->Execute(SID_ATTR_LINE_STYLE, SFX_CALLMODE_RECORD, &aItemA, 0L);
GetBindings()->GetDispatcher()->Execute(SID_ATTR_LINE_DASH, SFX_CALLMODE_RECORD, &aItemB, 0L);
diff --git a/svx/source/sidebar/line/LinePropertyPanel.hrc b/svx/source/sidebar/line/LinePropertyPanel.hrc
index 81c9e319bb10..740741cdf9ae 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.hrc
+++ b/svx/source/sidebar/line/LinePropertyPanel.hrc
@@ -64,32 +64,6 @@
#define VS_STYLE 1
#define PB_OPTIONS 2
-#define IMG_LINE1 5
-#define IMG_LINE2 7
-#define IMG_LINE3 9
-#define IMG_LINE4 11
-#define IMG_LINE5 13
-#define IMG_LINE6 15
-#define IMG_LINE7 17
-#define IMG_LINE8 19
-#define IMG_LINE9 21
-#define IMG_LINE10 23
-#define IMG_LINE11 25
-
-// #define STR_STYLE_NONE_TIP 30
-#define STR_STYLE_NONE 31
-#define STR_STYLE_LINE1 32
-#define STR_STYLE_LINE2 33
-#define STR_STYLE_LINE3 34
-#define STR_STYLE_LINE4 35
-#define STR_STYLE_LINE5 36
-#define STR_STYLE_LINE6 37
-#define STR_STYLE_LINE7 38
-#define STR_STYLE_LINE8 39
-#define STR_STYLE_LINE9 40
-#define STR_STYLE_LINE10 41
-#define STR_STYLE_LINE11 42
-
//width popup page
#define VS_WIDTH 1
#define MF_WIDTH 2
diff --git a/svx/source/sidebar/line/LinePropertyPanel.src b/svx/source/sidebar/line/LinePropertyPanel.src
index 049c9ad0df2c..7adc42f7441c 100644
--- a/svx/source/sidebar/line/LinePropertyPanel.src
+++ b/svx/source/sidebar/line/LinePropertyPanel.src
@@ -321,100 +321,6 @@ Control RID_POPUPPANEL_LINEPAGE_STYLE
TabStop = TRUE;
Text [ en-US ] = "~More Options...";
};
-
- String STR_STYLE_NONE
- {
- Text [ en-US ] = "None";
- };
- String STR_STYLE_LINE1
- {
- Text [ en-US ] = "Continuous";
- };
- String STR_STYLE_LINE2
- {
- Text [ en-US ] = "Ultrafine dashed";
- };
- String STR_STYLE_LINE3
- {
- Text [ en-US ] = "Dashed (variable)";
- };
- String STR_STYLE_LINE4
- {
- Text [ en-US ] = "Fine dashed (variable)";
- };
- String STR_STYLE_LINE5
- {
- Text [ en-US ] = "Fine dashed";
- };
- String STR_STYLE_LINE6
- {
- Text [ en-US ] = "Fine dotted";
- };
- String STR_STYLE_LINE7
- {
- Text [ en-US ] = "Ultrafine dotted (variable)";
- };
- String STR_STYLE_LINE8
- {
- Text [ en-US ] = "3 dashes 3 dots (variable)";
- };
- String STR_STYLE_LINE9
- {
- Text [ en-US ] = "2 dots 1 dash";
- };
- String STR_STYLE_LINE10
- {
- Text [ en-US ] = "Ultrafine 2 dots 3 dashes";
- };
- String STR_STYLE_LINE11
- {
- Text [ en-US ] = "Line with fine dots";
- };
-
- Image IMG_LINE1
- {
- ImageBitmap = Bitmap{File = "symphony/style_line1.png";};
- };
- Image IMG_LINE2
- {
- ImageBitmap = Bitmap{File = "symphony/style_line2.png";};
- };
- Image IMG_LINE3
- {
- ImageBitmap = Bitmap{File = "symphony/style_line3.png";};
- };
- Image IMG_LINE4
- {
- ImageBitmap = Bitmap{File = "symphony/style_line4.png";};
- };
- Image IMG_LINE5
- {
- ImageBitmap = Bitmap{File = "symphony/style_line5.png";};
- };
- Image IMG_LINE6
- {
- ImageBitmap = Bitmap{File = "symphony/style_line6.png";};
- };
- Image IMG_LINE7
- {
- ImageBitmap = Bitmap{File = "symphony/style_line7.png";};
- };
- Image IMG_LINE8
- {
- ImageBitmap = Bitmap{File = "symphony/style_line8.png";};
- };
- Image IMG_LINE9
- {
- ImageBitmap = Bitmap{File = "symphony/style_line9.png";};
- };
- Image IMG_LINE10
- {
- ImageBitmap = Bitmap{File = "symphony/style_line10.png";};
- };
- Image IMG_LINE11
- {
- ImageBitmap = Bitmap{File = "symphony/style_line11.png";};
- };
};
Control RID_POPUPPANEL_LINEPAGE_WIDTH
{