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
3e9aa8b2
Kaydet (Commit)
3e9aa8b2
authored
Haz 03, 2016
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lotuswordpro: fix some endian issues
Change-Id: I224c2d894071d6ec7d0afd5e2780a42b842aa32e
üst
4849f342
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
lwpsdwfileloader.cxx
lotuswordpro/source/filter/lwpsdwfileloader.cxx
+1
-1
lwpsdwgrouploaderv0102.cxx
lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx
+13
-13
No files found.
lotuswordpro/source/filter/lwpsdwfileloader.cxx
Dosyayı görüntüle @
3e9aa8b2
...
@@ -84,7 +84,7 @@ void LwpSdwFileLoader::CreateDrawObjects(std::vector< rtl::Reference<XFFrame> >*
...
@@ -84,7 +84,7 @@ void LwpSdwFileLoader::CreateDrawObjects(std::vector< rtl::Reference<XFFrame> >*
if
(
BinSignature
[
0
]
==
'S'
&&
BinSignature
[
1
]
==
'M'
)
if
(
BinSignature
[
0
]
==
'S'
&&
BinSignature
[
1
]
==
'M'
)
{
{
unsigned
short
nVersion
;
unsigned
short
nVersion
;
m_pStream
->
Read
(
&
nVersion
,
2
);
m_pStream
->
Read
UInt16
(
nVersion
);
m_pStream
->
Seek
(
0
);
m_pStream
->
Seek
(
0
);
if
(
nVersion
<
0x0102
)
if
(
nVersion
<
0x0102
)
...
...
lotuswordpro/source/filter/lwpsdwgrouploaderv0102.cxx
Dosyayı görüntüle @
3e9aa8b2
...
@@ -106,7 +106,7 @@ void LwpSdwGroupLoaderV0102::BeginDrawObjects(std::vector< rtl::Reference<XFFram
...
@@ -106,7 +106,7 @@ void LwpSdwGroupLoaderV0102::BeginDrawObjects(std::vector< rtl::Reference<XFFram
}
}
//version
//version
unsigned
short
nVersion
;
unsigned
short
nVersion
;
m_pStream
->
Read
(
&
nVersion
,
2
);
m_pStream
->
Read
UInt16
(
nVersion
);
if
(
nVersion
<
0x0102
)
if
(
nVersion
<
0x0102
)
{
{
assert
(
false
);
assert
(
false
);
...
@@ -116,15 +116,15 @@ void LwpSdwGroupLoaderV0102::BeginDrawObjects(std::vector< rtl::Reference<XFFram
...
@@ -116,15 +116,15 @@ void LwpSdwGroupLoaderV0102::BeginDrawObjects(std::vector< rtl::Reference<XFFram
m_pStream
->
SeekRel
(
4
);
m_pStream
->
SeekRel
(
4
);
//record count
//record count
unsigned
short
nRecCount
;
unsigned
short
nRecCount
;
m_pStream
->
Read
(
&
nRecCount
,
2
);
m_pStream
->
Read
UInt16
(
nRecCount
);
// selCount
// selCount
m_pStream
->
SeekRel
(
2
);
m_pStream
->
SeekRel
(
2
);
//boundrect
//boundrect
unsigned
short
left
,
top
,
right
,
bottom
;
unsigned
short
left
,
top
,
right
,
bottom
;
m_pStream
->
Read
(
&
left
,
2
);
m_pStream
->
Read
UInt16
(
left
);
m_pStream
->
Read
(
&
top
,
2
);
m_pStream
->
Read
UInt16
(
top
);
m_pStream
->
Read
(
&
right
,
2
);
m_pStream
->
Read
UInt16
(
right
);
m_pStream
->
Read
(
&
bottom
,
2
);
m_pStream
->
Read
UInt16
(
bottom
);
// fileSize
// fileSize
m_pStream
->
SeekRel
(
2
);
m_pStream
->
SeekRel
(
2
);
...
@@ -251,7 +251,7 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject()
...
@@ -251,7 +251,7 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject()
}
}
//version
//version
unsigned
short
nVersion
;
unsigned
short
nVersion
;
m_pStream
->
Read
(
&
nVersion
,
2
);
m_pStream
->
Read
UInt16
(
nVersion
);
if
(
nVersion
<
0x0102
)
if
(
nVersion
<
0x0102
)
{
{
assert
(
false
);
assert
(
false
);
...
@@ -261,15 +261,15 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject()
...
@@ -261,15 +261,15 @@ XFDrawGroup* LwpSdwGroupLoaderV0102::CreateDrawGroupObject()
m_pStream
->
SeekRel
(
4
);
m_pStream
->
SeekRel
(
4
);
//record count
//record count
unsigned
short
nRecCount
;
unsigned
short
nRecCount
;
m_pStream
->
Read
(
&
nRecCount
,
2
);
m_pStream
->
Read
UInt16
(
nRecCount
);
// selCount
// selCount
m_pStream
->
SeekRel
(
2
);
m_pStream
->
SeekRel
(
2
);
//boundrect
//boundrect
unsigned
short
left
,
top
,
right
,
bottom
;
unsigned
short
left
,
top
,
right
,
bottom
;
m_pStream
->
Read
(
&
left
,
2
);
m_pStream
->
Read
UInt16
(
left
);
m_pStream
->
Read
(
&
top
,
2
);
m_pStream
->
Read
UInt16
(
top
);
m_pStream
->
Read
(
&
right
,
2
);
m_pStream
->
Read
UInt16
(
right
);
m_pStream
->
Read
(
&
bottom
,
2
);
m_pStream
->
Read
UInt16
(
bottom
);
// fileSize
// fileSize
m_pStream
->
SeekRel
(
2
);
m_pStream
->
SeekRel
(
2
);
...
@@ -304,7 +304,7 @@ XFFrame* LwpSdwGroupLoaderV0102::CreateDrawObject()
...
@@ -304,7 +304,7 @@ XFFrame* LwpSdwGroupLoaderV0102::CreateDrawObject()
{
{
//record type
//record type
unsigned
char
recType
;
unsigned
char
recType
;
m_pStream
->
Read
(
&
recType
,
1
);
m_pStream
->
Read
UChar
(
recType
);
LwpDrawObj
*
pDrawObj
=
nullptr
;
LwpDrawObj
*
pDrawObj
=
nullptr
;
XFFrame
*
pRetObjct
=
nullptr
;
XFFrame
*
pRetObjct
=
nullptr
;
...
...
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