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
709ee194
Commit
709ee194
authored
Dec 19, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug #36568
parent
e59eff3a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
26 deletions
+38
-26
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
+9
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/String.cpp
...ceXlsFile2/source/XlsFormat/Logic/Biff_records/String.cpp
+2
-0
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/String.h
...ficeXlsFile2/source/XlsFormat/Logic/Biff_records/String.h
+1
-3
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/FORMULA_bu.cpp
...lsFile2/source/XlsFormat/Logic/Biff_unions/FORMULA_bu.cpp
+26
-22
No files found.
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
View file @
709ee194
...
...
@@ -48,7 +48,7 @@
PreprocessorDefinitions=
"WIN32;_DEBUG;_CONSOLE;USE_ATL_CSTRINGS;_USE_LIBXML2_READER_;LIBXML_READER_ENABLED;USE_LITE_READER;_USE_XMLLITE_READER_;DONT_WRITE_EMBEDDED_FONTS"
MinimalRebuild=
"false"
BasicRuntimeChecks=
"3"
RuntimeLibrary=
"
3
"
RuntimeLibrary=
"
1
"
UsePrecompiledHeader=
"0"
WarningLevel=
"3"
Detect64BitPortabilityProblems=
"true"
...
...
@@ -392,6 +392,14 @@
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\DocWrapper\XlsxSerializer.cpp"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
"/bigobj"
/>
</FileConfiguration>
</File>
</Filter>
<File
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/String.cpp
View file @
709ee194
...
...
@@ -60,7 +60,9 @@ void String::readFields(CFRecord& record)
string
=
s
;
}
else
{
record
>>
string
;
}
}
}
// namespace XLS
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/String.h
View file @
709ee194
...
...
@@ -32,13 +32,11 @@
#pragma once
#include "BiffRecordContinued.h"
#include
<Logic/Biff_structures/BiffString.h>
#include
"../Biff_structures/BiffString.h"
namespace
XLS
{
// Logical representation of String record in BIFF8
class
String
:
public
BiffRecordContinued
{
BIFF_RECORD_DEFINE_TYPE_INFO
(
String
)
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_unions/FORMULA_bu.cpp
View file @
709ee194
...
...
@@ -31,16 +31,17 @@
*/
#include "FORMULA.h"
#include <Logic/Biff_records/Uncalced.h>
#include <Logic/Biff_records/Formula.h>
#include <Logic/Biff_records/Array.h>
#include <Logic/Biff_records/Table.h>
#include <Logic/Biff_records/ShrFmla.h>
#include <Logic/Biff_unions/SUB.h>
#include <Logic/Biff_records/String.h>
#include <Logic/Biff_records/Continue.h>
#include <utils.h>
#include "../Biff_records/Uncalced.h"
#include "../Biff_records/Formula.h"
#include "../Biff_records/Array.h"
#include "../Biff_records/Table.h"
#include "../Biff_records/ShrFmla.h"
#include "../Biff_unions/SUB.h"
#include "../Biff_records/String.h"
#include "../Biff_records/Continue.h"
#include "../../../../source/Common/utils.h"
#include "../../../../../Common/DocxFormat/Source/XML/Utils.h"
namespace
XLS
{
...
...
@@ -105,14 +106,18 @@ const bool FORMULA::loadContent(BinProcessor& proc)
m_sharedIndex
=
shared_formulas_locations_ref_
.
size
();
shared_formulas_locations_ref_
.
push_back
(
shr_formula
.
ref_
);
}
//proc.optional<SUB>();
else
{
//proc.optional<SUB>();
}
}
if
((
formula
)
&&
(
formula
->
fShrFmla
))
{
for
(
size_t
i
=
0
;
i
<
shared_formulas_locations_ref_
.
size
();
i
++
)
{
if
(
shared_formulas_locations_ref_
[
i
].
inRange
(
location
))
m_sharedIndex
=
i
;
if
(
shared_formulas_locations_ref_
[
i
].
inRange
(
location
))
m_sharedIndex
=
i
;
}
}
...
...
@@ -208,21 +213,20 @@ int FORMULA::serialize(std::wostream & stream)
}
}
//if (formula_cash.empty())
//{ todooo неверно читается - general_formulas.xls
// if (m_Cash)
//
// String * str = dynamic_cast<String*>(m_Cash.get());
// if (str)
// formula_cash =str->string.value();
// }
//}
if
(
formula_cash
.
empty
()
&&
m_Cash
)
{
String
*
str
=
dynamic_cast
<
String
*>
(
m_Cash
.
get
());
if
(
str
)
{
formula_cash
=
str
->
string
.
value
();
}
}
if
(
!
formula_cash
.
empty
())
{
CP_XML_NODE
(
L"v"
)
{
CP_XML_STREAM
()
<<
xml
::
utils
::
replace_text_to_xml
(
formula_cash
);
CP_XML_STREAM
()
<<
XmlUtils
::
EncodeXmlString
(
formula_cash
,
true
);
}
}
}
...
...
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