summaryrefslogtreecommitdiff
path: root/sw/source/filter/ww1/w1sprm.cxx
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedricbosdo@openoffice.org>2010-10-06 23:50:39 +0200
committerCédric Bosdonnat <cedricbosdo@openoffice.org>2010-10-06 23:50:39 +0200
commitd18feffd49f4481626417daac7984b2a7e70c3bf (patch)
tree4a9ea631acf741900fba19c75dddc7cbec5e98c7 /sw/source/filter/ww1/w1sprm.cxx
parent2849318bb617f38451e0e55a8768444f8f5f6e63 (diff)
fate#307731, fate#307730: Dotted and dashed border types
Diffstat (limited to 'sw/source/filter/ww1/w1sprm.cxx')
-rw-r--r--sw/source/filter/ww1/w1sprm.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sw/source/filter/ww1/w1sprm.cxx b/sw/source/filter/ww1/w1sprm.cxx
index c03ff6419395..087ff6fa1e7c 100644
--- a/sw/source/filter/ww1/w1sprm.cxx
+++ b/sw/source/filter/ww1/w1sprm.cxx
@@ -208,6 +208,7 @@ STOP1(Ww1SingleSprmPPageBreakBefore, RES_BREAK)
SvxBorderLine* Ww1SingleSprmPBrc::SetBorder(SvxBorderLine* pLine, W1_BRC10* pBrc)
{
USHORT nCode;
+ SvxBorderStyle eStyle = SOLID;
if(pBrc->dxpLine2WidthGet() == 0)
{
switch(pBrc->dxpLine1WidthGet())
@@ -219,9 +220,18 @@ SvxBorderLine* Ww1SingleSprmPBrc::SetBorder(SvxBorderLine* pLine, W1_BRC10* pBrc
case 3: nCode = DEF_LINE_WIDTH_2; break;
case 4: nCode = DEF_LINE_WIDTH_3; break;
case 5: nCode = DEF_LINE_WIDTH_4; break;
+ case 6:
+ nCode = DEF_LINE_WIDTH_5;
+ eStyle = DOTTED;
+ break;
+ case 7:
+ nCode = DEF_LINE_WIDTH_5;
+ eStyle = DASHED;
+ break;
}
pLine->SetOutWidth(nCode);
pLine->SetInWidth(0);
+ pLine->SetStyle( eStyle );
}
else
{