[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: border line width
From: Korinek Pavol <pavol.korinek () ixonos ! com>
Date: 2010-03-23 14:54:58
Message-ID: C495228385CC1D409A54846080C9CBA56811EECF0E () jklmail01 ! ixonos ! local
[Download RAW message or body]
[Attachment #2 (text/plain)]
Hello,
let me introduce you into my problem how to setup pen width when painting borders. I have input file from \
MS Office which have border line width ½ pt. We can parse value 4 which specifies the border width in \
1/8 - point increments. (http://msdn.microsoft.com/en-us/library/dd907496.aspx). Later in code we do \
width = parsed_width / 8.0. Then we are using that width as input to function pen.setWidthF(width). This \
function sets the pen width in pixels with floating point precision. Is it correct ? Do you thing we need \
some conversion there ?
There are problems to paint border of width smaller than 1. If width is smaller than 1 than every style \
is painted as solid, resp. we can see it as solid.
Palo
Best regards
Mgr. Pavol Korinek
SW Developer
Ixonos Slovakia, s.r.o.
Štúrova 27
04001 Košice, Slovakia
Mobile: +421 918 718 984
e-mail: pavol.korinek@ixonos.com<mailto:pavol.korinek@ixonos.com>
www.ixonos.com<http://www.ixonos.com>
[Attachment #3 (text/html)]
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page Section1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
{page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=FI link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><o:p> </o:p></p>
<p class=MsoNormal><span lang=EN-US>Hello,<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>let me introduce you into my problem how to
setup pen width when painting borders. I have input file from MS Office which
have border line width ½ pt. We can parse value 4 which specifies the border
width in 1/8 - point increments. (<a
href="http://msdn.microsoft.com/en-us/library/dd907496.aspx">http://msdn.microsoft.com/en-us/library/dd907496.aspx</a>).
Later in code we do width = parsed_width / 8.0. Then we are using that width as
input to function pen.setWidthF(width). This function sets the pen width in
pixels with floating point precision. Is it correct ? Do you thing we need some
conversion there ?<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>There are problems to paint border of width
smaller than 1. If width is smaller than 1 than every style is painted as solid,
resp. we can see it as solid.<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US>Palo<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Best
regards<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US \
style='font-size:10.5pt;font-family:Consolas'><o:p> </o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>Mgr.
Pavol Korinek<o:p></o:p></span></p>
<p class=MsoNormal><span lang=EN-US style='font-size:10.5pt;font-family:Consolas'>SW
Developer<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>Ixonos
Slovakia, s.r.o.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>Štúrova
27<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>04001
Košice, Slovakia<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>Mobile:
+421 918 718 984<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'>e-mail: <a
href="mailto:pavol.korinek@ixonos.com">pavol.korinek@ixonos.com</a><o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:10.5pt;font-family:Consolas'><a
href="http://www.ixonos.com">www.ixonos.com</a><o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
</div>
</body>
</html>
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
--===============0877482322==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic