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
f4dd7d54
Kaydet (Commit)
f4dd7d54
authored
May 13, 2014
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
improve some spelling and grammar
Change-Id: Ieee3f787d41f9540b9c369f93da7f7ebbe371999
üst
416543e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
16 deletions
+14
-16
swfwriter1.cxx
filter/source/flash/swfwriter1.cxx
+14
-16
No files found.
filter/source/flash/swfwriter1.cxx
Dosyayı görüntüle @
f4dd7d54
...
...
@@ -118,8 +118,6 @@ sal_Int32 Writer::mapRelative( sal_Int32 n100thMM ) const
/**
*/
void
Writer
::
Impl_addPolygon
(
BitStream
&
rBits
,
const
Polygon
&
rPoly
,
bool
bFilled
)
{
Point
aLastPoint
(
rPoly
[
0
]
);
...
...
@@ -175,7 +173,7 @@ void Writer::Impl_addPolygon( BitStream& rBits, const Polygon& rPoly, bool bFill
/**
e
xports a style change record with a move to (x,y) and depending on bFilled a line style 1 or fill style 1
/**
E
xports a style change record with a move to (x,y) and depending on bFilled a line style 1 or fill style 1
*/
void
Writer
::
Impl_addShapeRecordChange
(
BitStream
&
rBits
,
sal_Int16
dx
,
sal_Int16
dy
,
bool
bFilled
)
{
...
...
@@ -198,7 +196,7 @@ void Writer::Impl_addShapeRecordChange( BitStream& rBits, sal_Int16 dx, sal_Int1
/**
e
xports a straight edge record
/**
E
xports a straight edge record
*/
void
Writer
::
Impl_addStraightEdgeRecord
(
BitStream
&
rBits
,
sal_Int16
dx
,
sal_Int16
dy
)
{
...
...
@@ -232,7 +230,7 @@ void Writer::Impl_addStraightEdgeRecord( BitStream& rBits, sal_Int16 dx, sal_Int
/**
e
xports a curved edge record
/**
E
xports a curved edge record
*/
void
Writer
::
Impl_addCurvedEdgeRecord
(
BitStream
&
rBits
,
sal_Int16
control_dx
,
sal_Int16
control_dy
,
sal_Int16
anchor_dx
,
sal_Int16
anchor_dy
)
{
...
...
@@ -255,7 +253,7 @@ void Writer::Impl_addCurvedEdgeRecord( BitStream& rBits, sal_Int16 control_dx, s
/**
e
xports a end shape record
/**
E
xports a end shape record
*/
void
Writer
::
Impl_addEndShapeRecord
(
BitStream
&
rBits
)
{
...
...
@@ -328,7 +326,7 @@ void Writer::Impl_writePolyPolygon( const PolyPolygon& rPolyPoly, bool bFilled,
/**
a
gradient is a transition from one color to another, rendered inside a given polypolygon */
/**
A
gradient is a transition from one color to another, rendered inside a given polypolygon */
void
Writer
::
Impl_writeGradientEx
(
const
PolyPolygon
&
rPolyPoly
,
const
Gradient
&
rGradient
)
{
if
(
rPolyPoly
.
Count
()
)
...
...
@@ -591,7 +589,7 @@ void Writer::Impl_writeText( const Point& rPos, const OUString& rText, const sal
// write text element
#if 0 // makes the calculated bound rect visible for debuging
#if 0 // makes the calculated bound rect visible for debug
g
ing
{
Polygon aTmpPoly( aPoly );
sal_uInt16 nID = FlashGeometryExporter::writePolygonShape( aMovieStream, aTmpPoly, false, Color(COL_MAGENTA), Color(COL_MAGENTA), mpClipPolyPolygon );
...
...
@@ -600,7 +598,7 @@ void Writer::Impl_writeText( const Point& rPos, const OUString& rText, const sal
#endif
// CL: This is still a hack until we figure out how to calculate a correct bound rect
// for rotate
t
text
// for rotate
d
text
Rectangle
textBounds
(
0
,
0
,
static_cast
<
long
>
(
mnDocWidth
*
mnDocXScale
),
static_cast
<
long
>
(
mnDocHeight
*
mnDocYScale
)
);
double
scale
=
1.0
;
...
...
@@ -806,7 +804,7 @@ sal_uInt16 Writer::defineBitmap( const BitmapEx &bmpSource, sal_Int32 nJPEGQuali
// AS: OK, we have a good image, so now we decide whether or not to JPEG it or
// or Lossless compress it.
//Figure out lossless size
//
Figure out lossless size
sal_uInt8
*
pImageData
,
*
pAlphaData
;
sal_uInt32
width
,
height
;
...
...
@@ -843,7 +841,7 @@ sal_uInt16 Writer::defineBitmap( const BitmapEx &bmpSource, sal_Int32 nJPEGQuali
#endif
}
//Figure out JPEG size
//
Figure out JPEG size
const
sal_uInt8
*
pJpgData
=
NULL
;;
sal_uInt32
nJpgDataLength
=
0xffffffff
;
...
...
@@ -914,7 +912,7 @@ void Writer::Impl_writeImage( const BitmapEx& rBmpEx, const Point& rPt, const Si
Rectangle
cropRect
(
destRect
);
// AS: The bmp origi
o
n is always 0,0 so we have to adjust before we crop.
// AS: The bmp origin is always 0,0 so we have to adjust before we crop.
cropRect
.
Move
(
-
srcPt
.
X
(),
-
srcPt
.
Y
());
// AS: Rectangle has no scale function (?!) so I do it manually...
Rectangle
cropPixelRect
(
static_cast
<
long
>
(
cropRect
.
Left
()
*
XScale
),
...
...
@@ -963,7 +961,7 @@ void Writer::Impl_writeImage( const BitmapEx& rBmpEx, const Point& rPt, const Si
Polygon
aPoly
(
destRect
);
// AS: Since images are being cropped now, no translation is normally necessary.
// However, some things like graphical bullet points
are
still get translated.
// However, some things like graphical bullet points still get translated.
::
basegfx
::
B2DHomMatrix
m
;
// #i73264#
m
.
scale
(
1.0
/
XScale
,
1.0
/
YScale
);
if
(
destRect
.
Left
()
||
destRect
.
Top
())
...
...
@@ -997,7 +995,7 @@ void Writer::Impl_writeBmp( sal_uInt16 nBitmapId, sal_uInt32 width, sal_uInt32 h
void
Writer
::
Impl_writeJPEG
(
sal_uInt16
nBitmapId
,
const
sal_uInt8
*
pJpgData
,
sal_uInt32
nJpgDataLength
,
sal_uInt8
*
pAlphaCompressed
,
sal_uInt32
alpha_compressed_size
)
{
// AS: Go through the actual
l
JPEG bits, separating out the
// AS: Go through the actual JPEG bits, separating out the
// header fields from the actual image fields. Fields are
// identifed by 0xFFXX where XX is the field type. Both
// the header and the image need start and stop (D8 and D9),
...
...
@@ -1170,7 +1168,7 @@ void Writer::Impl_writeEllipse( const Point& rCenter, long nRadX, long nRadY )
}
/**
w
rites the stroke defined by SvtGraphicStroke and returns true or it returns
/**
W
rites the stroke defined by SvtGraphicStroke and returns true or it returns
false if it can't handle this stroke.
*/
bool
Writer
::
Impl_writeStroke
(
SvtGraphicStroke
&
rStroke
)
...
...
@@ -1214,7 +1212,7 @@ bool Writer::Impl_writeStroke( SvtGraphicStroke& rStroke )
/**
w
rites the filling defined by SvtGraphicFill and returns true or it returns
/**
W
rites the filling defined by SvtGraphicFill and returns true or it returns
false if it can't handle this filling.
*/
bool
Writer
::
Impl_writeFilling
(
SvtGraphicFill
&
rFilling
)
...
...
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