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
3b28811f
Commit
3b28811f
authored
Mar 28, 2016
by
ElenaSubbotina
Committed by
Alexander Trofimov
May 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XlsFormat 5.0 - вертикальные текст + разметка в текст боксах
parent
3e93d9aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
8 deletions
+25
-8
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
+22
-8
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
...XlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
+3
-0
No files found.
ASCOfficeXlsFile2/source/XlsXlsxConverter/XlsConverter.cpp
View file @
3b28811f
...
...
@@ -1635,19 +1635,33 @@ void XlsConverter::convert(XLS::TxO * text_obj)
if
(
rot
>
0
)
{
xlsx_context
->
get_drawing_context
().
set_text_align
(
text_obj
->
vAlignment
);
if
(
rot
==
3
)
switch
(
rot
)
{
case
1
:
//text appears top to bottom; letters are upright
{
xlsx_context
->
get_drawing_context
().
set_text_vertical
(
5
);
}
break
;
case
2
:
//text is rotated 90 degrees counterclockwise
{
if
(
text_obj
->
hAlignment
==
(
unsigned
char
)
1
)
text_obj
->
hAlignment
=
3
;
else
if
(
text_obj
->
hAlignment
==
(
unsigned
char
)
3
)
text_obj
->
hAlignment
=
1
;
xlsx_context
->
get_drawing_context
().
set_text_vertical
(
2
);
}
break
;
case
3
:
//text is rotated 90 degrees clockwise
{
if
(
text_obj
->
vAlignment
==
(
unsigned
char
)
1
)
text_obj
->
vAlignment
=
3
;
else
if
(
text_obj
->
vAlignment
==
(
unsigned
char
)
3
)
text_obj
->
vAlignment
=
1
;
xlsx_context
->
get_drawing_context
().
set_text_vertical
(
3
);
}
break
;
}
xlsx_context
->
get_drawing_context
().
set_text_vert_align
(
text_obj
->
hAlignment
);
}
else
{
xlsx_context
->
get_drawing_context
().
set_text_align
(
text_obj
->
hAlignment
);
xlsx_context
->
get_drawing_context
().
set_text_vert_align
(
text_obj
->
vAlignment
);
}
xlsx_context
->
get_drawing_context
().
set_text
(
strm
.
str
());
}
...
...
ASCOfficeXlsFile2/source/XlsXlsxConverter/xlsx_drawing_context.cpp
View file @
3b28811f
...
...
@@ -1777,6 +1777,9 @@ void xlsx_drawing_context::set_flag_old_version(_UINT16 val, _UINT16 val2)
{
flips_flag
=
val
;
}
if
(
current_drawing_states
->
back
()
->
shape_id
==
MSOSPT
::
msosptTextBox
)
{
}
if
(
current_drawing_states
->
back
()
->
shape_id
==
MSOSPT
::
msosptLine
)
{
unsigned
char
nArrowType
=
GETBITS
(
val
,
0
,
3
);
...
...
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