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
04be1d61
Commit
04be1d61
authored
Mar 30, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XlsFormat - правка ошибок по результатам тестирования
parent
8608d0aa
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
163 additions
and
15 deletions
+163
-15
ASCOfficeXlsFile2/source/XlsFormat/Auxiliary/HelpFunc.cpp
ASCOfficeXlsFile2/source/XlsFormat/Auxiliary/HelpFunc.cpp
+2
-2
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.cpp
...fficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.cpp
+19
-0
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.h
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.h
+2
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/XTI.cpp
...ceXlsFile2/source/XlsFormat/Logic/Biff_structures/XTI.cpp
+3
-2
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/AUTOFILTER_bu.cpp
...ile2/source/XlsFormat/Logic/Biff_unions/AUTOFILTER_bu.cpp
+10
-0
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/LBL_bu.cpp
...iceXlsFile2/source/XlsFormat/Logic/Biff_unions/LBL_bu.cpp
+1
-1
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
+126
-9
No files found.
ASCOfficeXlsFile2/source/XlsFormat/Auxiliary/HelpFunc.cpp
View file @
04be1d61
...
...
@@ -600,7 +600,7 @@ const std::wstring tab2sheet_name(const short tabid, std::vector<std::wstring>&
{
return
sheets_names
[
tabid
];
}
return
L"#REF
!
"
;
return
L"#REF"
;
}
//
...
...
@@ -617,7 +617,7 @@ const std::wstring xti_indexes2sheet_name(const short itabFirst, const short ita
{
if
(
-
1
==
itabFirst
)
{
return
L"#REF
!
"
;
return
L"#REF"
;
}
static
boost
::
wregex
correct_sheet_name
(
L"^
\\
'.+?
\\
'$"
);
static
boost
::
wregex
test_sheet_name
(
L"[
\\
s)(
\\
':.-]+"
);
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.cpp
View file @
04be1d61
...
...
@@ -4,6 +4,15 @@
namespace
XLS
{
const
wchar_t
*
const
AutoFilterDefineNames
[]
=
{
L"_FilterDatabase"
,
// English
L"_FilterDatenbank"
,
// German
L"_"
// Russian
};
Lbl
::
Lbl
()
:
rgce
(
false
)
{
...
...
@@ -168,6 +177,16 @@ void Lbl::readFields(CFRecord& record)
if
(
!
fBuiltin
)
{
Name
=
Name_bin
.
getEscaped_ST_Xstring
();
for
(
int
i
=
0
;
i
<
3
;
i
++
)
{
int
res
=
Name_bin
.
value
().
find
(
AutoFilterDefineNames
[
i
]);
if
(
res
>=
0
)
{
Name
=
Name_bin
=
(
L"_xlnm._FilterDatabase"
);
break
;
}
}
}
else
{
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/Lbl.h
View file @
04be1d61
...
...
@@ -4,9 +4,10 @@
#include <Logic/Biff_structures/BiffString.h>
#include <Logic/Biff_structures/NameParsedFormula.h>
namespace
XLS
{
// Logical representation of Lbl record in BIFF8
class
Lbl
:
public
BiffRecord
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/XTI.cpp
View file @
04be1d61
...
...
@@ -30,8 +30,9 @@ void XTI::load(CFRecord& record)
}
else
{
record
.
getGlobalWorkbookInfo
()
->
xti_parsed
.
push_back
(
XMLSTUFF
::
xti_indexes2sheet_name
(
itabFirst
,
itabLast
,
record
.
getGlobalWorkbookInfo
()
->
sheets_names
));
std
::
wstring
name
=
XMLSTUFF
::
xti_indexes2sheet_name
(
itabFirst
,
itabLast
,
record
.
getGlobalWorkbookInfo
()
->
sheets_names
);
if
(
name
==
L"#REF"
)
name
+=
L"!"
;
record
.
getGlobalWorkbookInfo
()
->
xti_parsed
.
push_back
(
name
);
}
}
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/AUTOFILTER_bu.cpp
View file @
04be1d61
...
...
@@ -139,6 +139,16 @@ int AUTOFILTER::serialize(std::wostream & stream)
ref
.
erase
(
0
,
pos
+
1
);
}
}
sheet_name
=
L"#REF"
;
{
int
pos
=
ref
.
find
(
sheet_name
);
if
(
pos
>=
0
)
{
pos
=
ref
.
find
(
L"!"
);
if
(
pos
>=
0
)
ref
.
erase
(
0
,
pos
+
1
);
}
}
CP_XML_WRITER
(
stream
)
{
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/LBL_bu.cpp
View file @
04be1d61
...
...
@@ -50,7 +50,7 @@ const bool LBL::loadContent(BinProcessor& proc)
if
(
lbl
->
fBuiltin
)
name
=
lbl
->
Name
.
value
().
get_value_or
(
L""
);
if
(
name
.
empty
())
name
=
lbl
->
Name_bin
.
value
();
std
::
wstring
value
=
lbl
->
rgce
.
getAssembledFormula
(
lbl
->
itab
==
0
?
true
:
false
);
std
::
wstring
value
=
lbl
->
rgce
.
getAssembledFormula
(
lbl
->
fWorkbookParam
/*lbl->itab == 0 ? true : false*/
);
NameCmt
namecmt
(
name
);
if
(
proc
.
optional
(
namecmt
))
...
...
ASCOfficeXlsFile2/win32/ASCOfficeXlsFile2.sln
View file @
04be1d61
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