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
ab2703c8
Commit
ab2703c8
authored
Oct 26, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XlsFormat - vps
parent
08ce8cb3
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
14 additions
and
28 deletions
+14
-28
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/AutoFilter.cpp
...sFile2/source/XlsFormat/Logic/Biff_records/AutoFilter.cpp
+4
-17
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/BiffRecord.h
...XlsFile2/source/XlsFormat/Logic/Biff_records/BiffRecord.h
+1
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/CellXF.h
...eXlsFile2/source/XlsFormat/Logic/Biff_structures/CellXF.h
+1
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/PtgFuncVar.cpp
...le2/source/XlsFormat/Logic/Biff_structures/PtgFuncVar.cpp
+0
-1
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/RC4EncryptionHeader.cpp
...e/XlsFormat/Logic/Biff_structures/RC4EncryptionHeader.cpp
+2
-2
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/StyleXF.h
...XlsFile2/source/XlsFormat/Logic/Biff_structures/StyleXF.h
+1
-1
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
+5
-5
No files found.
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/AutoFilter.cpp
View file @
ab2703c8
...
...
@@ -37,21 +37,8 @@
namespace
XLS
{
//static inline std::wstring <rim(std::wstring &s)
//{
// s.erase(s.begin(), std::find_if(s.begin(), s.end(), std::not1(std::ptr_fun<int, int>(isspace))));
// return s;
//}
//
//// trim from end
//static inline std::wstring &rtrim(std::wstring &s)
//{
// s.erase(std::find_if(s.rbegin(), s.rend(), std::not1(std::ptr_fun<int, int>(isspace))).base(), s.end());
// return s;
//}
// trim from both ends
static
inline
void
/*std::wstring &*/
trim
(
std
::
wstring
&
s
)
static
inline
void
trim
(
std
::
wstring
&
s
)
{
int
new_size
=
s
.
length
();
for
(
int
i
=
new_size
-
1
;
i
>=
0
;
i
--
)
...
...
@@ -61,7 +48,6 @@ static inline void/*std::wstring &*/trim(std::wstring &s)
}
if
(
new_size
<
s
.
length
())
s
.
erase
(
new_size
);
//return ltrim(rtrim(s));
}
AutoFilter
::
AutoFilter
()
...
...
@@ -102,11 +88,12 @@ void AutoFilter::readFields(CFRecord& record)
unsigned
short
_wTopN
=
wTopN
;
if
(
fTopN
!=
1
)
{
record
>>
doper1
;
if
(
fTopN
!=
1
)
record
>>
doper2
;
}
if
((
doper1
.
vt
==
BIFF_BYTE
(
0
))
&&
(
doper
1
.
vt
==
BIFF_BYTE
(
0
)))
if
((
doper1
.
vt
==
BIFF_BYTE
(
0
))
&&
(
doper
2
.
vt
==
BIFF_BYTE
(
0
)))
{
m_bAutoFilter12
=
true
;
return
;
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_records/BiffRecord.h
View file @
ab2703c8
...
...
@@ -53,7 +53,7 @@ public:
virtual
const
CFRecordType
::
TypeId
getTypeId
()
const
=
0
;
// made virtual to let derived assign their own names (for example, EOF_T)
static
const
ElementType
type
=
typeBiffRecord
;
virtual
ElementType
get_type
()
const
{
return
type
;
}
virtual
ElementType
get_type
()
{
return
type
;
}
//-----------------------------
virtual
void
readFollowingContinue
(
CFStreamCacheReader
&
reader
);
virtual
const
bool
storeRecordAndDecideProceeding
(
CFRecordPtr
record
);
// This function is overridden in BiffRecordSplit
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/CellXF.h
View file @
ab2703c8
...
...
@@ -59,7 +59,7 @@ public:
bool
fWrap
;
unsigned
char
alcV
;
bool
fJustLast
;
unsigned
char
trot
;
unsigned
short
trot
;
unsigned
char
cIndent
;
bool
fShrinkToFit
;
unsigned
char
iReadOrder
;
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/PtgFuncVar.cpp
View file @
ab2703c8
...
...
@@ -95,7 +95,6 @@ void PtgFuncVar::assemble(AssemblerStack& ptg_stack, PtgQueue& extra_data, bool
func_name
==
L"DAYSINMONTH"
||
func_name
==
L"ISLEAPYEAR"
||
func_name
==
L"MONTHS"
||
func_name
==
L"WEEKS"
||
func_name
==
L"WEEKSINYEAR"
||
func_name
==
L"YEARS"
)
{
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/RC4EncryptionHeader.cpp
View file @
ab2703c8
...
...
@@ -95,7 +95,7 @@ void RC4EncryptionHeader::load(XLS::CFRecord& record)
if
(
pDataRead
)
{
crypt_data_aes
.
saltValue
=
std
::
string
((
char
*
)
pDataRead
,
crypt_data_aes
.
saltSize
);
delete
pDataRead
;
delete
[]
pDataRead
;
}
pDataRead
=
new
unsigned
char
[
0x10
];
...
...
@@ -119,7 +119,7 @@ void RC4EncryptionHeader::load(XLS::CFRecord& record)
if
(
pDataRead
)
{
crypt_data_aes
.
encryptedVerifierValue
=
std
::
string
((
char
*
)
pDataRead
,
szEncryptedVerifierHash
);
delete
pDataRead
;
delete
[]
pDataRead
;
}
pos
=
record
.
getRdPtr
();
...
...
ASCOfficeXlsFile2/source/XlsFormat/Logic/Biff_structures/StyleXF.h
View file @
ab2703c8
...
...
@@ -67,7 +67,7 @@ public:
bool
fWrap
;
unsigned
char
alcV
;
bool
fJustLast
;
unsigned
char
trot
;
unsigned
short
trot
;
unsigned
char
cIndent
;
bool
fShrinkToFit
;
unsigned
char
iReadOrder
;
...
...
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
View file @
ab2703c8
...
...
@@ -1663,7 +1663,7 @@ void XlsConverter::convert_geometry_text(std::vector<ODRAW::OfficeArtFOPTEPtr> &
if
(
bools
->
fUsegFItalic
&&
bools
->
fItalic
)
xlsx_context
->
get_drawing_context
().
set_wordart_italic
(
true
);
if
(
bools
->
fUsegFVertical
&&
bools
->
fVertical
)
xlsx_context
->
get_drawing_context
().
set_wordart_vertical
(
true
);
if
(
bools
->
fUsegFUnderline
&&
bools
->
fUnderline
)
xlsx_context
->
get_drawing_context
().
set_wordart_underline
(
true
);
if
(
bools
->
fStrikethrough
&&
bools
->
fStrikethrough
)
xlsx_context
->
get_drawing_context
().
set_wordart_strike
(
true
);
if
(
bools
->
f
Useg
Strikethrough
&&
bools
->
fStrikethrough
)
xlsx_context
->
get_drawing_context
().
set_wordart_strike
(
true
);
//if (bools->fUsegFShrinkFit && bools->fShrinkFit)
}
...
...
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