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
1fc9280a
Commit
1fc9280a
authored
Jun 27, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
28ebf5aa
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
27 additions
and
31 deletions
+27
-31
ASCOfficeDocFile/Common/FormatUtils.h
ASCOfficeDocFile/Common/FormatUtils.h
+1
-1
ASCOfficeDocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
...ocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
+0
-2
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
+0
-2
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
+0
-2
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
+0
-2
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
+0
-2
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
+4
-4
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/ChildAnchor.h
...fficeDocFile/DocDocxConverter/OfficeDrawing/ChildAnchor.h
+2
-2
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/GroupShapeRecord.h
...DocFile/DocDocxConverter/OfficeDrawing/GroupShapeRecord.h
+2
-2
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
+0
-2
ASCOfficeDocFile/DocDocxConverter/TablePropertiesMapping.cpp
ASCOfficeDocFile/DocDocxConverter/TablePropertiesMapping.cpp
+1
-1
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
+1
-1
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
+6
-6
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
+8
-0
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.h
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.h
+2
-2
No files found.
ASCOfficeDocFile/Common/FormatUtils.h
View file @
1fc9280a
...
...
@@ -58,7 +58,7 @@
#include <boost/format.hpp>
namespace
DocF
ormatUtils
namespace
DocF
ileFormat
{
typedef
unsigned
char
Bool8
;
typedef
unsigned
short
Bool16
;
...
...
ASCOfficeDocFile/DocDocxConverter/AnnotationReferenceDescriptor.cpp
View file @
1fc9280a
...
...
@@ -32,8 +32,6 @@
#include "AnnotationReferenceDescriptor.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
ByteStructure
*
AnnotationReferenceDescriptor
::
ConstructObject
(
VirtualStreamReader
*
reader
,
int
length
)
...
...
ASCOfficeDocFile/DocDocxConverter/BorderCode.h
View file @
1fc9280a
...
...
@@ -34,8 +34,6 @@
#include "IVisitable.h"
#include "Global.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
typedef
enum
_BorderType
...
...
ASCOfficeDocFile/DocDocxConverter/DateAndTime.h
View file @
1fc9280a
...
...
@@ -33,8 +33,6 @@
#include "../Common/FormatUtils.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
class
DateAndTime
...
...
ASCOfficeDocFile/DocDocxConverter/DrawingPrimitives.cpp
View file @
1fc9280a
...
...
@@ -33,8 +33,6 @@
#include "DrawingPrimitives.h"
#include "VirtualStreamReader.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
DrawingPrimitive
*
DrawingPrimitive
::
Create
(
VirtualStreamReader
*
reader
,
int
length
,
short
dpk
)
...
...
ASCOfficeDocFile/DocDocxConverter/FileInformationBlock.h
View file @
1fc9280a
...
...
@@ -34,8 +34,6 @@
#include "VirtualStreamReader.h"
#include "../../ASCOfficeXlsFile2/source/XlsFormat/Crypt/Decryptor.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
typedef
enum
FibVersion
...
...
ASCOfficeDocFile/DocDocxConverter/MemoryStream.h
View file @
1fc9280a
...
...
@@ -72,7 +72,7 @@ public:
if
(
m_Data
)
{
rdUShort
=
DocF
ormatUtils
::
FormatUtils
::
BytesToUInt16
(
m_Data
,
m_Position
,
m_Size
);
rdUShort
=
DocF
ileFormat
::
FormatUtils
::
BytesToUInt16
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdUShort
);
}
...
...
@@ -85,7 +85,7 @@ public:
if
(
m_Data
)
{
rdShort
=
DocF
ormatUtils
::
FormatUtils
::
BytesToInt16
(
m_Data
,
m_Position
,
m_Size
);
rdShort
=
DocF
ileFormat
::
FormatUtils
::
BytesToInt16
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdShort
);
}
...
...
@@ -98,7 +98,7 @@ public:
if
(
m_Data
)
{
rdInt
=
DocF
ormatUtils
::
FormatUtils
::
BytesToInt32
(
m_Data
,
m_Position
,
m_Size
);
rdInt
=
DocF
ileFormat
::
FormatUtils
::
BytesToInt32
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdInt
);
}
...
...
@@ -111,7 +111,7 @@ public:
if
(
m_Data
)
{
rdUInt
=
DocF
ormatUtils
::
FormatUtils
::
BytesToUInt32
(
m_Data
,
m_Position
,
m_Size
);
rdUInt
=
DocF
ileFormat
::
FormatUtils
::
BytesToUInt32
(
m_Data
,
m_Position
,
m_Size
);
m_Position
+=
sizeof
(
rdUInt
);
}
...
...
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/ChildAnchor.h
View file @
1fc9280a
...
...
@@ -60,7 +60,7 @@ namespace DocFileFormat
_size
.
cx
=
Right
-
Left
;
_size
.
cy
=
Bottom
-
Top
;
rcgBounds
=
DocF
ormatUtils
::
Rectangle
(
_point
,
_size
);
rcgBounds
=
DocF
ileFormat
::
Rectangle
(
_point
,
_size
);
}
virtual
~
ChildAnchor
()
...
...
@@ -75,7 +75,7 @@ namespace DocFileFormat
public:
/// Rectangle that describes the bounds of the anchor
DocF
ormatUtils
::
Rectangle
rcgBounds
;
DocF
ileFormat
::
Rectangle
rcgBounds
;
int
Left
;
int
Top
;
int
Right
;
...
...
ASCOfficeDocFile/DocDocxConverter/OfficeDrawing/GroupShapeRecord.h
View file @
1fc9280a
...
...
@@ -64,7 +64,7 @@ namespace DocFileFormat
oSize
.
cx
=
(
right
-
left
);
oSize
.
cy
=
(
bottom
-
top
);
rcgBounds
=
DocF
ormatUtils
::
Rectangle
(
oPoint
,
oSize
);
rcgBounds
=
DocF
ileFormat
::
Rectangle
(
oPoint
,
oSize
);
}
virtual
~
GroupShapeRecord
()
...
...
@@ -77,6 +77,6 @@ namespace DocFileFormat
return
new
GroupShapeRecord
(
_reader
,
bodySize
,
typeCode
,
version
,
instance
);
}
DocF
ormatUtils
::
Rectangle
rcgBounds
;
DocF
ileFormat
::
Rectangle
rcgBounds
;
};
}
ASCOfficeDocFile/DocDocxConverter/Spa.cpp
View file @
1fc9280a
...
...
@@ -32,8 +32,6 @@
#include "Spa.h"
#include "VirtualStreamReader.h"
using
namespace
DocFormatUtils
;
namespace
DocFileFormat
{
...
...
ASCOfficeDocFile/DocDocxConverter/TablePropertiesMapping.cpp
View file @
1fc9280a
...
...
@@ -488,7 +488,7 @@ namespace DocFileFormat
{
for
(
unsigned
int
i
=
0
,
nSize
=
_grid
->
size
();
i
<
nSize
;
i
++
)
{
if
(
_grid
->
at
(
i
)
%
DocF
ormatUtils
::
gc_nZeroWidth
!=
0
)
if
(
_grid
->
at
(
i
)
%
DocF
ileFormat
::
gc_nZeroWidth
!=
0
)
{
bWriteGridCol
=
true
;
break
;
...
...
ASCOfficeDocFile/DocDocxConverter/VMLShapeMapping.cpp
View file @
1fc9280a
...
...
@@ -1441,7 +1441,7 @@ namespace DocFileFormat
{
if
((
style
!=
NULL
)
&&
(
anchor
!=
NULL
))
{
DocF
ormatUtils
::
Rectangle
bounds
=
anchor
->
rcgBounds
;
DocF
ileFormat
::
Rectangle
bounds
=
anchor
->
rcgBounds
;
if
(
twistDimensions
)
{
...
...
ASCOfficeDocFile/DocDocxConverter/VirtualStreamReader.h
View file @
1fc9280a
...
...
@@ -197,20 +197,20 @@ public:
int
cchSize
=
1
;
cch
=
ReadBytes
(
cchSize
,
true
);
int
xstzSize
=
DocF
ormatUtils
::
FormatUtils
::
BytesToUChar
(
cch
,
0
,
cchSize
)
*
1
;
int
xstzSize
=
DocF
ileFormat
::
FormatUtils
::
BytesToUChar
(
cch
,
0
,
cchSize
)
*
1
;
xstz
=
ReadBytes
(
xstzSize
,
true
);
DocF
ormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_WINDOWS_1250
);
DocF
ileFormat
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_WINDOWS_1250
);
}
else
{
int
cchSize
=
2
;
cch
=
ReadBytes
(
cchSize
,
true
);
int
xstzSize
=
DocF
ormatUtils
::
FormatUtils
::
BytesToInt16
(
cch
,
0
,
cchSize
)
*
2
;
int
xstzSize
=
DocF
ileFormat
::
FormatUtils
::
BytesToInt16
(
cch
,
0
,
cchSize
)
*
2
;
xstz
=
ReadBytes
(
xstzSize
,
true
);
DocF
ormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
wstrResult
,
xstz
,
xstzSize
,
ENCODING_UTF16
);
DocF
ileFormat
::
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
);
DocF
ormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
(
cch
*
2
)
-
2
),
ENCODING_UTF16
);
DocF
ileFormat
::
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
);
DocF
ormatUtils
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
cch
-
1
),
ENCODING_WINDOWS_1250
);
DocF
ileFormat
::
FormatUtils
::
GetSTLCollectionFromBytes
<
std
::
wstring
>
(
&
result
,
stringBytes
,
(
cch
-
1
),
ENCODING_WINDOWS_1250
);
}
RELEASEARRAYOBJECTS
(
stringBytes
);
...
...
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
View file @
1fc9280a
...
...
@@ -342,6 +342,14 @@
<Filter
Name=
"Common"
>
<File
RelativePath=
"..\..\..\ASCOfficeXlsFile2\source\XlsFormat\Binary\CFRecord.cpp"
>
</File>
<File
RelativePath=
"..\..\..\ASCOfficeXlsFile2\source\XlsFormat\Binary\CFStream.cpp"
>
</File>
<File
RelativePath=
"..\..\..\XlsxSerializerCom\Reader\ChartFromToBinary.cpp"
>
...
...
ASCOfficeXlsFile2/source/XlsFormat/Binary/CFRecord.h
View file @
1fc9280a
...
...
@@ -36,8 +36,8 @@
#include "BinSmartPointers.h"
#include "../Logic/GlobalWorkbookInfo.h"
#include
<common.h>
#include
<Auxiliary/HelpFunc.h>
#include
"../../Common/common.h"
#include
"../Auxiliary/HelpFunc.h"
#include "../../../Common/DocxFormat/Source/Base/unicode_util.h"
namespace
XLS
...
...
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