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
436b901a
Kaydet (Commit)
436b901a
authored
Nis 11, 2013
tarafından
Armin Le Grand
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
i122039 Take GraphicAttr into account for SVGs in Writer GraphicObjects
üst
f4533526
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
1 deletion
+36
-1
notxtfrm.cxx
sw/source/core/doc/notxtfrm.cxx
+36
-1
No files found.
sw/source/core/doc/notxtfrm.cxx
Dosyayı görüntüle @
436b901a
...
...
@@ -75,6 +75,8 @@
#include <drawinglayer/processor2d/baseprocessor2d.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <drawinglayer/processor2d/processor2dtools.hxx>
#include <basegfx/matrix/b2dhommatrixtools.hxx>
#include <drawinglayer/primitive2d/bitmapprimitive2d.hxx>
using
namespace
com
::
sun
::
star
;
...
...
@@ -1036,10 +1038,43 @@ void SwNoTxtFrm::PaintPicture( OutputDevice* pOut, const SwRect &rGrfArea ) cons
aAlignedGrfArea
.
Left
(),
aAlignedGrfArea
.
Top
(),
aAlignedGrfArea
.
Right
(),
aAlignedGrfArea
.
Bottom
());
const
bool
bCropped
(
aGrfAttr
.
IsCropped
());
drawinglayer
::
primitive2d
::
Primitive2DSequence
aContent
;
GraphicAttr
aSuppressGraphicAttr
(
aGrfAttr
);
aSuppressGraphicAttr
.
SetCrop
(
0
,
0
,
0
,
0
);
aSuppressGraphicAttr
.
SetRotation
(
0
);
aSuppressGraphicAttr
.
SetMirrorFlags
(
0
);
const
bool
bNeedTransformedGraphic
(
aSuppressGraphicAttr
.
IsSpecialDrawMode
()
||
aSuppressGraphicAttr
.
IsAdjusted
()
||
aSuppressGraphicAttr
.
IsMirrored
()
||
aSuppressGraphicAttr
.
IsRotated
()
||
aSuppressGraphicAttr
.
IsTransparent
());
if
(
bNeedTransformedGraphic
)
{
// #122039# need to apply graphic transformation if GraphicAttr are used qwhich need this
const
Graphic
aTransformedGraphic
(
rGrfObj
.
GetTransformedGraphic
(
&
aSuppressGraphicAttr
));
const
basegfx
::
B2DRange
aRange
(
rSvgDataPtr
->
getRange
());
const
basegfx
::
B2DHomMatrix
aTransform
(
basegfx
::
tools
::
createScaleTranslateB2DHomMatrix
(
aRange
.
getRange
(),
aRange
.
getMinimum
()));
aContent
.
realloc
(
1
);
aContent
[
0
]
=
new
drawinglayer
::
primitive2d
::
BitmapPrimitive2D
(
aTransformedGraphic
.
GetBitmapEx
(),
aTransform
);
}
else
{
aContent
=
rSvgDataPtr
->
getPrimitive2DSequence
();
}
bDone
=
paintUsingPrimitivesHelper
(
*
pOut
,
rSvgDataPtr
->
getPrimitive2DSequence
()
,
aContent
,
rSvgDataPtr
->
getRange
(),
aTargetRange
,
bCropped
?
aGrfAttr
.
GetLeftCrop
()
:
0
,
...
...
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