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
7e52ebca
Commit
7e52ebca
authored
Jun 26, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
4925b470
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
30 additions
and
20 deletions
+30
-20
ASCOfficeDocFile/Common/FormatUtils.h
ASCOfficeDocFile/Common/FormatUtils.h
+0
-1
ASCOfficeDocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
...ocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
+3
-1
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
+2
-0
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
+2
-0
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
+1
-0
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
+5
-3
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
+4
-4
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
+2
-0
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
+6
-6
ASCOfficePPTFile/PPTFormatLib/Reader/ReadStructures.h
ASCOfficePPTFile/PPTFormatLib/Reader/ReadStructures.h
+5
-5
No files found.
ASCOfficeDocFile/Common/FormatUtils.h
View file @
7e52ebca
...
...
@@ -963,4 +963,3 @@ namespace DocFormatUtils
};
}
using
namespace
DocFormatUtils
;
ASCOfficeDocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
View file @
7e52ebca
...
...
@@ -32,6 +32,8 @@
#include "AnnotationReferenceDescriptor.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
ByteStructure
*
AnnotationReferenceDescriptor
::
ConstructObject
(
VirtualStreamReader
*
reader
,
int
length
)
...
...
@@ -76,4 +78,4 @@ namespace DocFileFormat
return
static_cast
<
ByteStructure
*>
(
newObject
);
}
}
\ No newline at end of file
}
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
View file @
7e52ebca
...
...
@@ -34,6 +34,8 @@
#include "IVisitable.h"
#include "Global.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
typedef
enum
_BorderType
...
...
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
View file @
7e52ebca
...
...
@@ -33,6 +33,8 @@
#include "../Common/FormatUtils.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
class
DateAndTime
...
...
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
View file @
7e52ebca
...
...
@@ -33,6 +33,7 @@
#include "DrawingPrimitives.h"
#include "VirtualStreamReader.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
...
...
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
View file @
7e52ebca
...
...
@@ -34,6 +34,8 @@
#include "VirtualStreamReader.h"
#include "../../ASCOfficeXlsFile2/source/XlsFormat/Crypt/Decryptor.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
typedef
enum
FibVersion
...
...
@@ -1189,9 +1191,9 @@ namespace DocFileFormat
m_FibBase
.
fDot
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0001
);
m_FibBase
.
fGlsy
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0002
);
m_FibBase
.
fComplex
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0002
);
m_FibBase
.
fHasPic
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0008
);
m_FibBase
.
cQuickSaves
=
(
WORD
)(((
int
)
flag16
&
0x00F0
)
>>
4
);
m_FibBase
.
fEncrypted
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0100
);
m_FibBase
.
fHasPic
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0008
);
m_FibBase
.
cQuickSaves
=
(
WORD
)(((
int
)
flag16
&
0x00F0
)
>>
4
);
m_FibBase
.
fEncrypted
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0100
);
m_FibBase
.
fWhichTblStm
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0200
);
m_FibBase
.
fReadOnlyRecommended
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0400
);
m_FibBase
.
fWriteReservation
=
FormatUtils
::
BitmaskToBool
((
int
)
flag16
,
0x0800
);
...
...
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
View file @
7e52ebca
...
...
@@ -72,7 +72,7 @@ public:
if
(
m_Data
)
{
rdUShort
=
FormatUtils
::
BytesToUInt16
(
m_Data
,
m_Position
,
m_Size
);
rdUShort
=
DocFormatUtils
::
FormatUtils
::
BytesToUInt16
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdUShort
);
}
...
...
@@ -85,7 +85,7 @@ public:
if
(
m_Data
)
{
rdShort
=
FormatUtils
::
BytesToInt16
(
m_Data
,
m_Position
,
m_Size
);
rdShort
=
DocFormatUtils
::
FormatUtils
::
BytesToInt16
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdShort
);
}
...
...
@@ -98,7 +98,7 @@ public:
if
(
m_Data
)
{
rdInt
=
FormatUtils
::
BytesToInt32
(
m_Data
,
m_Position
,
m_Size
);
rdInt
=
DocFormatUtils
::
FormatUtils
::
BytesToInt32
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdInt
);
}
...
...
@@ -111,7 +111,7 @@ public:
if
(
m_Data
)
{
rdUInt
=
FormatUtils
::
BytesToUInt32
(
m_Data
,
m_Position
,
m_Size
);
rdUInt
=
DocFormatUtils
::
FormatUtils
::
BytesToUInt32
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdUInt
);
}
...
...
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
View file @
7e52ebca
...
...
@@ -32,6 +32,8 @@
#include "Spa.h"
#include "VirtualStreamReader.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
...
...
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
View file @
7e52ebca
...
...
@@ -197,20 +197,20 @@ public:
int
cchSize
=
1
;
cch
=
ReadBytes
(
cchSize
,
true
);
int
xstzSize
=
FormatUtils
::
BytesToUChar
(
cch
,
0
,
cchSize
)
*
1
;
int
xstzSize
=
DocFormatUtils
::
FormatUtils
::
BytesToUChar
(
cch
,
0
,
cchSize
)
*
1
;
xstz
=
ReadBytes
(
xstzSize
,
true
);
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_WINDOWS_1250
);
DocFormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_WINDOWS_1250
);
}
else
{
int
cchSize
=
2
;
cch
=
ReadBytes
(
cchSize
,
true
);
int
xstzSize
=
FormatUtils
::
BytesToInt16
(
cch
,
0
,
cchSize
)
*
2
;
int
xstzSize
=
DocFormatUtils
::
FormatUtils
::
BytesToInt16
(
cch
,
0
,
cchSize
)
*
2
;
xstz
=
ReadBytes
(
xstzSize
,
true
);
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_UTF16
);
DocFormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_UTF16
);
}
RELEASEARRAYOBJECTS
(
xstz
);
...
...
@@ -234,7 +234,7 @@ public:
//dont read the terminating zero
unsigned
char
*
stringBytes
=
ReadBytes
(
(
cch
*
2
),
true
);
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
(
cch
*
2
)
-
2
),
ENCODING_UTF16
);
DocFormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
(
cch
*
2
)
-
2
),
ENCODING_UTF16
);
RELEASEARRAYOBJECTS
(
stringBytes
);
}
...
...
@@ -278,7 +278,7 @@ public:
//dont read the terminating zero
stringBytes
=
ReadBytes
(
cch
,
true
);
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
cch
-
1
),
ENCODING_WINDOWS_1250
);
DocFormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
cch
-
1
),
ENCODING_WINDOWS_1250
);
}
RELEASEARRAYOBJECTS
(
stringBytes
);
...
...
ASCOfficePPTFile/PPTFormatLib/Reader/ReadStructures.h
View file @
7e52ebca
...
...
@@ -94,11 +94,11 @@ struct SFileIdCluster
}
};
#if !defined(_WIN32) && !defined (_WIN64)
typedef
struct
tagPOINT
{
long
x
;
long
y
;
}
POINT
;
typedef
struct
tagPOINT
{
long
x
;
long
y
;
}
POINT
;
typedef
struct
tagSIZE
{
...
...
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