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
0e2d9bb2
Commit
0e2d9bb2
authored
Aug 10, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OdfFormatReader - small refactoring
parent
e8c184c5
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
114 additions
and
165 deletions
+114
-165
ASCOfficeOdfFile/src/docx/xlsx_drawing_context.h
ASCOfficeOdfFile/src/docx/xlsx_drawing_context.h
+2
-2
ASCOfficeOdfFile/src/odf/font_face.h
ASCOfficeOdfFile/src/odf/font_face.h
+16
-35
ASCOfficeOdfFile/src/odf/office_document.h
ASCOfficeOdfFile/src/odf/office_document.h
+1
-1
ASCOfficeOdfFile/src/odf/styles.h
ASCOfficeOdfFile/src/odf/styles.h
+95
-127
No files found.
ASCOfficeOdfFile/src/docx/xlsx_drawing_context.h
View file @
0e2d9bb2
...
...
@@ -65,7 +65,7 @@ public:
const
std
::
vector
<
drawing_elm
>
&
content
()
const
;
friend
class
xlsx_drawing_context
;
private:
class
Impl
;
_CP_PTR
(
Impl
)
impl_
;
};
...
...
ASCOfficeOdfFile/src/odf/font_face.h
View file @
0e2d9bb2
...
...
@@ -56,7 +56,6 @@ class common_svg_font_face_xlink_attlist
public:
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
private:
odf_types
::
common_xlink_attlist
common_xlink_attlist_
;
};
...
...
@@ -71,18 +70,15 @@ public:
CPDOCCORE_DEFINE_VISITABLE
();
public:
virtual
::
std
::
wostream
&
text_to_stream
(
::
std
::
wostream
&
_Wostream
)
const
;
common_svg_font_face_xlink_attlist
common_svg_font_face_xlink_attlist_
;
office_element_ptr_array
svg_font_face_format_
;
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
virtual
void
add_text
(
const
std
::
wstring
&
Text
);
private:
common_svg_font_face_xlink_attlist
common_svg_font_face_xlink_attlist_
;
office_element_ptr_array
svg_font_face_format_
;
};
class
svg_font_face_format
:
public
office_element_impl
<
svg_font_face_format
>
...
...
@@ -95,16 +91,14 @@ public:
CPDOCCORE_DEFINE_VISITABLE
();
public:
virtual
::
std
::
wostream
&
text_to_stream
(
::
std
::
wostream
&
_Wostream
)
const
;
optional
<
std
::
wstring
>::
Type
svg_string_
;
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
virtual
void
add_text
(
const
std
::
wstring
&
Text
);
private:
optional
<
std
::
wstring
>::
Type
svg_string_
;
};
CP_REGISTER_OFFICE_ELEMENT2
(
svg_font_face_format
);
...
...
@@ -120,17 +114,13 @@ public:
CPDOCCORE_DEFINE_VISITABLE
();
public:
virtual
::
std
::
wostream
&
text_to_stream
(
::
std
::
wostream
&
_Wostream
)
const
;
optional
<
std
::
wstring
>::
Type
name_
;
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
virtual
void
add_text
(
const
std
::
wstring
&
Text
);
private:
optional
<
std
::
wstring
>::
Type
name_
;
};
CP_REGISTER_OFFICE_ELEMENT2
(
svg_font_face_name
);
...
...
@@ -146,13 +136,11 @@ public:
CPDOCCORE_DEFINE_VISITABLE
();
common_svg_font_face_xlink_attlist
common_svg_font_face_xlink_attlist_
;
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
private:
common_svg_font_face_xlink_attlist
common_svg_font_face_xlink_attlist_
;
};
CP_REGISTER_OFFICE_ELEMENT2
(
svg_definition_src
);
...
...
@@ -175,7 +163,7 @@ private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
p
rivate
:
p
ublic
:
optional
<
std
::
wstring
>::
Type
style_name_
;
optional
<
std
::
wstring
>::
Type
style_font_adornments_
;
...
...
@@ -217,13 +205,8 @@ private:
optional
<
int
>::
Type
svg_overline_position_
;
optional
<
int
>::
Type
svg_overline_thickness_
;
private:
// svg-font-face-src
office_element_ptr_array
svg_font_face_uri_
;
// svg-font-face-uri
office_element_ptr_array
svg_font_face_name_
;
// svg-font-face-name
//svg-definition-src
office_element_ptr_array
svg_font_face_uri_
;
office_element_ptr_array
svg_font_face_name_
;
office_element_ptr
svg_definition_src_
;
friend
class
odf_document
;
...
...
@@ -244,15 +227,13 @@ public:
void
docx_convert
(
oox
::
docx_conversion_context
&
Context
);
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
private:
office_element_ptr_array
style_font_face_
;
friend
class
odf_document
;
private:
virtual
void
add_attributes
(
const
xml
::
attributes_wc_ptr
&
Attributes
);
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
};
CP_REGISTER_OFFICE_ELEMENT2
(
office_font_face_decls
);
...
...
ASCOfficeOdfFile/src/odf/office_document.h
View file @
0e2d9bb2
...
...
@@ -61,7 +61,7 @@ private:
virtual
void
add_child_element
(
xml
::
sax
*
Reader
,
const
::
std
::
wstring
&
Ns
,
const
::
std
::
wstring
&
Name
);
virtual
void
add_text
(
const
std
::
wstring
&
Text
);
p
rivate
:
p
ublic
:
std
::
wstring
office_mimetype_
;
std
::
wstring
office_version_
;
...
...
ASCOfficeOdfFile/src/odf/styles.h
View file @
0e2d9bb2
This diff is collapsed.
Click to expand it.
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