diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2013-06-16 17:47:50 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2013-06-16 17:58:06 +0200 |
commit | 4c3d2dcdadbcb8f2ffc2caab07d50a286341df96 (patch) | |
tree | aa748068e99583613d4d8dae638c494f162c3a07 /svtools/source | |
parent | eb04af85a7f928564d29c4400d5c0ff1828f4304 (diff) |
Add UI for fine dashed border type
Commit 7d632ff29e601c2e680c4a689997fbf552592a4b added document model /
layout support for this, but UI was lacking.
First, add a new item to the list box in
SvxBorderTabPage::FillLineListBox_Impl(). Second, handle MAP_TWIP unit
in svtools::GetDashing() for STYLE_FINE_DASHED. Pick up some values that
give visually the fine dashed result when painted. (The original values
from 2f0d406911f9790a434e46bc82ea36bb8ae714e7 in other cases seem to be
a bit consistent already anyway.)
Change-Id: Ibf1ed235d51515b065d23a6a5d5eef433162899f
Diffstat (limited to 'svtools/source')
-rw-r--r-- | svtools/source/control/ctrlbox.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index a071cb27dc09..dce1f9a73a45 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -643,6 +643,11 @@ namespace svtools aPattern.push_back( 4 ); aPattern.push_back( 1 ); } + else if ( eUnit == MAP_TWIP ) + { + aPattern.push_back( 120.0 ); + aPattern.push_back( 30.0 ); + } break; default: break; |