Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
d47c595b
Commit
d47c595b
authored
Aug 03, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XlsFormatReader - fix ukr 1c
parent
c1f41d0e
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
242 additions
and
2 deletions
+242
-2
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.cpp
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.cpp
+1
-1
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFStream.cpp
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFStream.cpp
+1
-0
ASCOfficeXlsFile2/source/XlsFormat/Binary/CompoundFile.cpp
ASCOfficeXlsFile2/source/XlsFormat/Binary/CompoundFile.cpp
+2
-0
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/DXFN12.cpp
...lsFile2/source/XlsFormat/Logic/Biff_structures/DXFN12.cpp
+3
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/CELLTABLE.cpp
...XlsFile2/source/XlsFormat/Logic/Biff_unions/CELLTABLE.cpp
+3
-0
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
+232
-0
No files found.
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.cpp
View file @
d47c595b
...
...
@@ -47,7 +47,7 @@ CFRecord::CFRecord(CFStreamPtr stream, GlobalWorkbookInfoPtr global_info)
:
rdPtr
(
0
),
// seek to the start
global_info_
(
global_info
)
{
file_ptr
=
static_cast
<
unsigned
int
>
(
stream
->
getStreamPointer
());
// Assume that files have size < 4Gb
file_ptr
=
static_cast
<
unsigned
int
>
(
stream
->
getStreamPointer
());
*
stream
>>
type_id_
;
unsigned
short
size_short
;
*
stream
>>
size_short
;
...
...
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFStream.cpp
View file @
d47c595b
...
...
@@ -69,6 +69,7 @@ void CFStream::read(void* buf, const size_t size)
if
(
num_read
<
size
)
{
stream_
->
seek
(
stream_
->
size
());
// 5217417.xls
return
;
// EndOfStreamReached
}
}
...
...
ASCOfficeXlsFile2/source/XlsFormat/Binary/CompoundFile.cpp
View file @
d47c595b
...
...
@@ -90,6 +90,8 @@ CFStreamPtr CompoundFile::getWorkbookStream()
{
CFStreamPtr
stream
=
getNamedStream
(
"Workbook"
);
if
(
stream
==
NULL
)
stream
=
getNamedStream
(
"WORKBOOK"
);
//6447323.xls
if
(
stream
==
NULL
)
stream
=
getNamedStream
(
"Book"
);
if
(
stream
==
NULL
)
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/DXFN12.cpp
View file @
d47c595b
...
...
@@ -91,7 +91,9 @@ void DXFN12::load(CFRecord& record)
int
DXFN12
::
serialize
(
std
::
wostream
&
stream
)
{
if
(
dxfn
&&
!
xfext
)
if
(
!
dxfn
)
return
0
;
if
(
!
xfext
)
{
dxfn
->
serialize
(
stream
);
}
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/CELLTABLE.cpp
View file @
d47c595b
...
...
@@ -197,6 +197,9 @@ int CELL_GROUP::serialize(std::wostream & stream)
{
//skip cells
row
->
serialize
(
stream
);
current_row
++
;
if
(
current_row
==
m_rows
.
end
())
break
;
row
=
dynamic_cast
<
Row
*>
(
current_row
->
get
());
}
}
...
...
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
View file @
d47c595b
This diff is collapsed.
Click to expand it.
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