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
15475286
Kaydet (Commit)
15475286
authored
May 15, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
wmf: add SAL_INFOs for interesting things at WMF import
Change-Id: Ic21709896fe156c7393ece54345b00bceb37587d
üst
f9e81786
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
8 deletions
+34
-8
winmtf.cxx
vcl/source/filter/wmf/winmtf.cxx
+2
-5
winwmf.cxx
vcl/source/filter/wmf/winwmf.cxx
+32
-3
No files found.
vcl/source/filter/wmf/winmtf.cxx
Dosyayı görüntüle @
15475286
...
...
@@ -246,7 +246,7 @@ WinMtfFontStyle::WinMtfFontStyle( LOGFONTW& rFont )
// Convert height to positive
aFontSize
.
Height
()
=
std
::
abs
(
aFontSize
.
Height
());
aFont
.
SetSize
(
aFontSize
);
aFont
.
SetSize
(
aFontSize
);
};
WinMtf
::
WinMtf
(
WinMtfOutput
*
pWinMtfOutput
,
SvStream
&
rStreamWMF
,
FilterConfigItem
*
pConfigItem
)
...
...
@@ -631,10 +631,7 @@ void WinMtfOutput::SetTextAlign( sal_uInt32 nAlign )
void
WinMtfOutput
::
ImplResizeObjectArry
(
sal_uInt32
nNewEntrys
)
{
sal_uInt32
i
=
vGDIObj
.
size
();
vGDIObj
.
resize
(
nNewEntrys
);
for
(
;
i
<
nNewEntrys
;
i
++
)
vGDIObj
[
i
]
=
NULL
;
vGDIObj
.
resize
(
nNewEntrys
,
NULL
);
}
void
WinMtfOutput
::
ImplDrawClippedPolyPolygon
(
const
PolyPolygon
&
rPolyPoly
)
...
...
vcl/source/filter/wmf/winwmf.cxx
Dosyayı görüntüle @
15475286
...
...
@@ -1102,8 +1102,13 @@ bool WMFReader::ReadHeader()
Rectangle
aPlaceableBound
;
if
(
nPlaceableMetaKey
==
0x9ac6cdd7L
)
{
//TODO do some real error handling here
bool
bPlaceable
=
nPlaceableMetaKey
==
0x9ac6cdd7L
;
SAL_INFO
(
"vcl.wmf"
,
"Placeable:
\"
"
<<
(
bPlaceable
?
"yes"
:
"no"
)
<<
"
\"
"
);
if
(
bPlaceable
)
{
//TODO do some real error handling here
sal_Int16
nVal
;
// Skip reserved bytes
...
...
@@ -1143,6 +1148,11 @@ bool WMFReader::ReadHeader()
(
double
)
pExternalHeader
->
xExt
*
567
*
nUnitsPerInch
/
1440000
,
(
double
)
pExternalHeader
->
yExt
*
567
*
nUnitsPerInch
/
1440000
);
aPlaceableBound
=
aExtRect
;
SAL_INFO
(
"vcl.wmf"
,
"External header size "
<<
" t: "
<<
aPlaceableBound
.
Left
()
<<
" l: "
<<
aPlaceableBound
.
Top
()
<<
" b: "
<<
aPlaceableBound
.
Right
()
<<
" r: "
<<
aPlaceableBound
.
Bottom
());
pOut
->
SetMapMode
(
pExternalHeader
->
mapMode
);
}
else
...
...
@@ -1163,6 +1173,10 @@ bool WMFReader::ReadHeader()
aPlaceableBound
.
Top
()
/
fRatio
,
aPlaceableBound
.
Right
()
/
fRatio
,
aPlaceableBound
.
Bottom
()
/
fRatio
);
SAL_INFO
(
"vcl.wmf"
,
"Placeable bounds "
<<
" t: "
<<
aPlaceableBound
.
Left
()
<<
" l: "
<<
aPlaceableBound
.
Top
()
<<
" b: "
<<
aPlaceableBound
.
Right
()
<<
" r: "
<<
aPlaceableBound
.
Bottom
());
}
}
...
...
@@ -1173,6 +1187,9 @@ bool WMFReader::ReadHeader()
Size
aWMFSize
(
labs
(
aPlaceableBound
.
GetWidth
()
),
labs
(
aPlaceableBound
.
GetHeight
()
)
);
pOut
->
SetWinExt
(
aWMFSize
);
SAL_INFO
(
"vcl.wmf"
,
"WMF size "
<<
" w: "
<<
aWMFSize
.
Width
()
<<
" h: "
<<
aWMFSize
.
Height
());
Size
aDevExt
(
10000
,
10000
);
if
(
(
labs
(
aWMFSize
.
Width
()
)
>
1
)
&&
(
labs
(
aWMFSize
.
Height
()
)
>
1
)
)
{
...
...
@@ -1183,6 +1200,9 @@ bool WMFReader::ReadHeader()
}
pOut
->
SetDevExt
(
aDevExt
);
SAL_INFO
(
"vcl.wmf"
,
"Dev size "
<<
" w: "
<<
aDevExt
.
Width
()
<<
" h: "
<<
aDevExt
.
Height
());
// read the METAHEADER
sal_uInt32
nMetaKey
(
0
);
pWMF
->
ReadUInt32
(
nMetaKey
);
// type and headersize
...
...
@@ -1453,7 +1473,7 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
nPoints
+=
nP
;
}
SAL_WARN_IF
(
!
bRecordOk
,
"vcl.
filter
"
,
"polypolygon record has more polygons than we can handle"
);
SAL_WARN_IF
(
!
bRecordOk
,
"vcl.
wmf
"
,
"polypolygon record has more polygons than we can handle"
);
bRecordOk
=
bRecordOk
&&
pStm
->
good
();
...
...
@@ -1587,14 +1607,23 @@ bool WMFReader::GetPlaceableBound( Rectangle& rPlaceableBound, SvStream* pStm )
if
(
aWinOrg
&&
aWinExt
)
{
rPlaceableBound
=
Rectangle
(
*
aWinOrg
,
*
aWinExt
);
SAL_INFO
(
"vcl.wmf"
,
"Window dimension "
<<
" t: "
<<
rPlaceableBound
.
Left
()
<<
" l: "
<<
rPlaceableBound
.
Top
()
<<
" b: "
<<
rPlaceableBound
.
Right
()
<<
" r: "
<<
rPlaceableBound
.
Bottom
());
}
else
if
(
aViewportOrg
&&
aViewportExt
)
{
rPlaceableBound
=
Rectangle
(
*
aViewportOrg
,
*
aViewportExt
);
SAL_INFO
(
"vcl.wmf"
,
"Viewport dimension "
<<
" t: "
<<
rPlaceableBound
.
Left
()
<<
" l: "
<<
rPlaceableBound
.
Top
()
<<
" b: "
<<
rPlaceableBound
.
Right
()
<<
" r: "
<<
rPlaceableBound
.
Bottom
());
}
else
{
rPlaceableBound
=
aBound
;
SAL_INFO
(
"vcl.wmf"
,
"Detemined dimension "
<<
" t: "
<<
rPlaceableBound
.
Left
()
<<
" l: "
<<
rPlaceableBound
.
Top
()
<<
" b: "
<<
rPlaceableBound
.
Right
()
<<
" r: "
<<
rPlaceableBound
.
Bottom
());
}
}
...
...
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