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
18a96323
Commit
18a96323
authored
Nov 27, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPTFormatReader - shape convert fix
parent
e3d6d370
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
11 deletions
+27
-11
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
+8
-0
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/Formula.h
...TXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/Formula.h
+14
-11
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/ppt2pptxshapeconverter.h
...rawing/Shapes/BaseShape/PPTShape/ppt2pptxshapeconverter.h
+5
-0
No files found.
ASCOfficePPTFile/PPTFormatLib/Win32/PPTFormatLib.vcproj
View file @
18a96323
...
...
@@ -369,6 +369,14 @@
<File
RelativePath=
"..\..\..\ASCOfficeDocxFile2\DocWrapper\DocxSerializer.cpp"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
"/bigobj"
/>
</FileConfiguration>
<FileConfiguration
Name=
"Debug|x64"
>
...
...
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/Formula.h
View file @
18a96323
...
...
@@ -116,42 +116,44 @@ namespace NSGuidesVML
ptValue
=
2
};
static
LONG
GetValue
(
CString
strParam
,
ParamType
&
ptType
,
bool
&
bRes
,
static
long
GetValue
(
CString
strParam
,
ParamType
&
ptType
,
bool
&
bRes
,
long
lShapeWidth
=
ShapeSizeVML
,
long
lShapeHeight
=
ShapeSizeVML
)
{
ptType
=
ptValue
;
bRes
=
true
;
ptType
=
ptValue
;
bRes
=
true
;
long
val
=
0
;
if
(
'#'
==
strParam
[
0
])
{
ptType
=
ptAdjust
;
return
(
LONG
)
XmlUtils
::
GetInteger
(
strParam
.
Mid
(
1
));
val
=
XmlUtils
::
GetInteger
(
strParam
.
Mid
(
1
));
}
else
if
(
'@'
==
strParam
[
0
])
{
ptType
=
ptFormula
;
return
(
LONG
)
XmlUtils
::
GetInteger
(
strParam
.
Mid
(
1
));
val
=
XmlUtils
::
GetInteger
(
strParam
.
Mid
(
1
));
}
else
if
(
!
NSStringUtils
::
IsNumber
(
strParam
))
{
if
(
_T
(
"width"
)
==
strParam
)
{
return
lShapeWidth
;
val
=
lShapeWidth
;
}
else
if
(
_T
(
"height"
)
==
strParam
)
{
return
lShapeHeight
;
val
=
lShapeHeight
;
}
else
if
(
_T
(
"pixelWidth"
)
==
strParam
)
{
return
lShapeWidth
;
val
=
lShapeWidth
;
}
else
if
(
_T
(
"pixelHeight"
)
==
strParam
)
{
return
lShapeHeight
;
val
=
lShapeHeight
;
}
else
if
(
_T
(
"pixelLineWidth"
)
==
strParam
||
_T
(
"lineDrawn"
)
==
strParam
)
{
return
1
;
val
=
1
;
}
else
{
...
...
@@ -162,8 +164,9 @@ namespace NSGuidesVML
else
{
ptType
=
ptValue
;
return
(
LONG
)
XmlUtils
::
GetInteger
(
strParam
);
val
=
XmlUtils
::
GetInteger
(
strParam
);
}
return
val
;
}
static
FormulaType
GetFormula
(
CString
strName
,
bool
&
bRes
)
...
...
ASCOfficePPTXFile/Editor/Drawing/Shapes/BaseShape/PPTShape/ppt2pptxshapeconverter.h
View file @
18a96323
...
...
@@ -2669,6 +2669,11 @@ namespace NSGuidesVML
{
if
(
0
!=
m_arSlicesPath
.
size
())
{
if
(
lValue
>=
0x7fffff00
||
lValue
<=
-
0x7fffff00
)
{
lValue
=
0
;
//process(2).ppt - todooo разобраться что за хрень это ваще приплыла
}
m_arSlicesPath
[
m_arSlicesPath
.
size
()
-
1
].
AddParam
(
lValue
,
eParamType
);
}
}
...
...
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