Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
44bdc8bb
Kaydet (Commit)
44bdc8bb
authored
Şub 25, 2014
tarafından
Markus Mohrhard
Kaydeden (comit)
Markus Mohrhard
Şub 25, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix text rendering for titles
Change-Id: I1072c8af6d822422943dc2d29bbaee351c735349
üst
413415dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
OpenglShapeFactory.cxx
chart2/source/view/main/OpenglShapeFactory.cxx
+14
-2
No files found.
chart2/source/view/main/OpenglShapeFactory.cxx
Dosyayı görüntüle @
44bdc8bb
...
...
@@ -51,6 +51,8 @@
#include <basegfx/point/b2dpoint.hxx>
#include <basegfx/matrix/b3dhommatrix.hxx>
#include "RelativeSizeHelper.hxx"
#include <algorithm>
#include <iostream>
using
namespace
std
;
...
...
@@ -411,12 +413,22 @@ uno::Reference< drawing::XShape >
OpenglShapeFactory
::
createText
(
const
uno
::
Reference
<
drawing
::
XShapes
>&
xTarget
,
const
awt
::
Size
&
rSize
,
const
awt
::
Point
&
rPos
,
uno
::
Sequence
<
uno
::
Reference
<
chart2
::
XFormattedString
>
>&
rFormattedString
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
,
const
uno
::
Reference
<
beans
::
XPropertySet
>
&
xTextProperties
,
double
,
const
OUString
&
rName
)
{
dummy
::
DummyFormattedText
*
pText
=
new
dummy
::
DummyFormattedText
(
rFormattedString
);
uno
::
Reference
<
drawing
::
XShape
>
xShape
(
pText
);
uno
::
Reference
<
beans
::
XPropertySet
>
xTargetProps
(
xShape
,
uno
::
UNO_QUERY_THROW
);
awt
::
Size
aOldRefSize
;
bool
bHasRefPageSize
=
(
xTextProperties
->
getPropertyValue
(
"ReferencePageSize"
)
>>=
aOldRefSize
);
// adapt font size according to page size
if
(
bHasRefPageSize
)
{
RelativeSizeHelper
::
adaptFontSizes
(
xTargetProps
,
aOldRefSize
,
rSize
);
}
pText
->
setPosition
(
rPos
);
pText
->
setSize
(
rSize
);
pText
->
setSize
(
awt
::
Size
(
0
,
0
)
);
pText
->
setName
(
rName
);
xTarget
->
add
(
pText
);
return
pText
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment