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
3dbcce8c
Commit
3dbcce8c
authored
Jun 28, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
cc945935
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
ASCOfficeOdfFile/src/docx/oox_drawing.cpp
ASCOfficeOdfFile/src/docx/oox_drawing.cpp
+2
-1
ASCOfficeOdfFile/src/odf/draw_shapes.cpp
ASCOfficeOdfFile/src/odf/draw_shapes.cpp
+5
-1
ASCOfficeOdfFile/src/odf/draw_shapes.h
ASCOfficeOdfFile/src/odf/draw_shapes.h
+2
-1
No files found.
ASCOfficeOdfFile/src/docx/oox_drawing.cpp
View file @
3dbcce8c
...
...
@@ -107,6 +107,7 @@ static const std::wstring _ooxShapeType[]=
L"path"
,
L"custGeom"
,
//uses sub-sub type,
L"polygon"
,
L"roundRect"
,
};
...
...
@@ -355,7 +356,7 @@ void _oox_drawing::serialize_shape(std::wostream & strm)
shapeGeomPreset
=
L"rect"
;
}
}
else
if
(
sub_type
<
9
&&
sub_type
>=
0
)
else
if
(
sub_type
<
10
&&
sub_type
>=
0
)
{
shapeGeomPreset
=
_ooxShapeType
[
sub_type
];
//odf -> oox
}
...
...
ASCOfficeOdfFile/src/odf/draw_shapes.cpp
View file @
3dbcce8c
...
...
@@ -74,7 +74,7 @@ void draw_shape::add_child_element( xml::sax * Reader, const std::wstring & Ns,
}
void
draw_shape
::
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
)
{
CP_APPLY_ATTR
(
L"draw:id"
,
draw_id_
);
//или сюда draw_shape_attlist_???
CP_APPLY_ATTR
(
L"draw:id"
,
draw_id_
);
//или сюда draw_shape_attlist_???
common_draw_attlists_
.
shape_with_text_and_styles_
.
add_attributes
(
Attributes
);
common_draw_attlists_
.
position_
.
add_attributes
(
Attributes
);
...
...
@@ -87,6 +87,7 @@ void draw_shape::add_attributes( const xml::attributes_wc_ptr & Attributes )
void
draw_rect_attlist
::
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
)
{
CP_APPLY_ATTR
(
L"draw:filter-name"
,
draw_filter_name_
);
CP_APPLY_ATTR
(
L"draw:corner-radius"
,
draw_corner_radius_
);
}
const
wchar_t
*
draw_rect
::
ns
=
L"draw"
;
...
...
@@ -98,6 +99,9 @@ void draw_rect::add_attributes( const xml::attributes_wc_ptr & Attributes )
draw_shape
::
add_attributes
(
Attributes
);
sub_type_
=
2
;
if
(
draw_rect_attlist_
.
draw_corner_radius_
)
sub_type_
=
9
;
}
...
...
ASCOfficeOdfFile/src/odf/draw_shapes.h
View file @
3dbcce8c
...
...
@@ -101,7 +101,8 @@ public:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
public:
_CP_OPT
(
std
::
wstring
)
draw_filter_name_
;
_CP_OPT
(
std
::
wstring
)
draw_filter_name_
;
_CP_OPT
(
odf_types
::
length
)
draw_corner_radius_
;
};
...
...
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