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
20edef65
Commit
20edef65
authored
May 25, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
7ad7db5b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
ASCOfficeOdfFile/src/odf/draw_common.cpp
ASCOfficeOdfFile/src/odf/draw_common.cpp
+5
-2
ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp
ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp
+2
-2
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
+1
-1
No files found.
ASCOfficeOdfFile/src/odf/draw_common.cpp
View file @
20edef65
...
...
@@ -333,7 +333,7 @@ void Compute_GradientFill(draw_gradient * image_style,oox::oox_gradient_fill_ptr
void
Compute_GraphicFill
(
const
common_draw_fill_attlist
&
props
,
const
office_element_ptr
&
style_image
,
styles_lite_container
&
styles
,
oox
::
_oox_fill
&
fill
)
{
if
(
fill
.
type
<
1
)
fill
.
type
=
0
;
if
(
fill
.
type
<
1
)
fill
.
type
=
0
;
if
(
props
.
draw_opacity_
)
fill
.
opacity
=
props
.
draw_opacity_
->
get_value
();
if
(
props
.
draw_opacity_name_
)
...
...
@@ -438,6 +438,7 @@ void Compute_GraphicFill(const common_draw_fill_attlist & props, const office_el
{
if
(
draw_gradient
*
image_style
=
dynamic_cast
<
draw_gradient
*>
(
style
.
get
()))
{
fill
.
type
=
3
;
fill
.
gradient
=
oox
::
oox_gradient_fill
::
create
();
Compute_GradientFill
(
image_style
,
fill
.
gradient
);
...
...
@@ -451,6 +452,7 @@ void Compute_GraphicFill(const common_draw_fill_attlist & props, const office_el
{
if
(
draw_hatch
*
image_style
=
dynamic_cast
<
draw_hatch
*>
(
style
.
get
()))
{
fill
.
type
=
4
;
fill
.
hatch
=
oox
::
oox_hatch_fill
::
create
();
Compute_HatchFill
(
image_style
,
fill
.
hatch
);
...
...
@@ -461,7 +463,8 @@ void Compute_GraphicFill(const common_draw_fill_attlist & props, const office_el
fill
.
hatch
->
color_back_ref
=
props
.
draw_fill_color_
->
get_hex_value
();
}
}
if
(
props
.
draw_fill_
)
fill
.
type
=
props
.
draw_fill_
->
get_type
();
if
(
props
.
draw_fill_
)
fill
.
type
=
props
.
draw_fill_
->
get_type
();
}
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
ASCOfficePPTXFile/Editor/BinaryFileReaderWriter.cpp
View file @
20edef65
...
...
@@ -226,8 +226,8 @@ namespace NSBinPptxRW
BYTE
head
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
};
//LittleEndian
unsigned
char
*
aData
=
(
unsigned
char
*
)
sDataUtf8
.
c_str
();
uint32_t
nDataSize
=
sDataUtf8
.
size
();
memcpy
(
head
,
&
nDataSize
,
sizeof
(
uint32_t
));
_UINT32
nDataSize
=
sDataUtf8
.
size
();
memcpy
(
head
,
&
nDataSize
,
sizeof
(
_UINT32
));
POLE
::
Stream
oStream
(
&
oStorage
,
"
\001
Ole10Native"
,
true
,
arraysize
(
head
)
+
nDataSize
);
oStream
.
write
(
head
,
arraysize
(
head
));
oStream
.
write
(
aData
,
nDataSize
);
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Pic.cpp
View file @
20edef65
...
...
@@ -174,7 +174,7 @@ namespace PPTX
{
BYTE
head
[]
=
{
0x00
,
0x00
,
0x00
,
0x00
};
oStream
.
read
(
head
,
4
);
uint32_t
nDataSize
=
(
uint32_t
)((
head
[
0
]
<<
0
)
|
((
head
[
1
])
<<
8
)
|
((
head
[
2
])
<<
16
)
|
((
head
[
3
])
<<
24
));
_UINT32
nDataSize
=
(
_UINT32
)((
head
[
0
]
<<
0
)
|
((
head
[
1
])
<<
8
)
|
((
head
[
2
])
<<
16
)
|
((
head
[
3
])
<<
24
));
BYTE
*
aData
=
new
BYTE
[
nDataSize
];
oStream
.
read
(
aData
,
nDataSize
);
sRes
=
NSFile
::
CUtf8Converter
::
GetUnicodeStringFromUTF8
(
aData
,
nDataSize
);
...
...
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