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
dc81f97b
Commit
dc81f97b
authored
Apr 09, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bugs after refactoring
parent
d194249f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
17 deletions
+33
-17
ASCOfficeOdfFile/src/docx/xlsx_hyperlinks.cpp
ASCOfficeOdfFile/src/docx/xlsx_hyperlinks.cpp
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/CubicBezTo.h
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/CubicBezTo.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/LineTo.h
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/LineTo.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/MoveTo.h
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/MoveTo.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/QuadBezTo.h
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/QuadBezTo.h
+1
-1
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
+17
-10
ASCOfficePPTXFile/PPTXFormat/Logic/SpTreeElem.cpp
ASCOfficePPTXFile/PPTXFormat/Logic/SpTreeElem.cpp
+11
-2
No files found.
ASCOfficeOdfFile/src/docx/xlsx_hyperlinks.cpp
View file @
dc81f97b
...
...
@@ -91,7 +91,7 @@ public:
int
pos
=
target
.
find
(
L"."
);
if
(
pos
<
0
)
{
target
=
target
+
std
::
wstring
(
L
".A1"
);
target
=
L"
\"
"
+
target
+
std
::
wstring
(
L"
\
"
.A1"
);
}
r
.
location
=
converter_
.
convert_ref
(
std
::
wstring
(
target
.
begin
()
+
1
,
target
.
end
()));
r
.
type
=
L"Internal"
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/CubicBezTo.h
View file @
dc81f97b
...
...
@@ -100,7 +100,7 @@ namespace PPTX
{
std
::
wstring
sName
=
oReader
.
GetName
();
if
(
sName
==
L"a:p
os
"
)
if
(
sName
==
L"a:p
t
"
)
{
ReadAttributes2
(
oReader
,
x
[
count
],
y
[
count
]);
count
++
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/LineTo.h
View file @
dc81f97b
...
...
@@ -70,7 +70,7 @@ namespace PPTX
{
std
::
wstring
sName
=
oReader
.
GetName
();
if
(
sName
==
L"a:p
os
"
)
if
(
sName
==
L"a:p
t
"
)
{
ReadAttributes2
(
oReader
);
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/MoveTo.h
View file @
dc81f97b
...
...
@@ -69,7 +69,7 @@ namespace PPTX
{
std
::
wstring
sName
=
oReader
.
GetName
();
if
(
sName
==
L"a:p
os
"
)
if
(
sName
==
L"a:p
t
"
)
{
ReadAttributes2
(
oReader
);
}
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Path2D/QuadBezTo.h
View file @
dc81f97b
...
...
@@ -73,7 +73,7 @@ namespace PPTX
{
std
::
wstring
sName
=
oReader
.
GetName
();
if
(
sName
==
L"a:p
os
"
)
if
(
sName
==
L"a:p
t
"
)
{
ReadAttributes2
(
oReader
,
x
[
count
],
y
[
count
]);
count
++
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/Runs/MathParaWrapper.cpp
View file @
dc81f97b
...
...
@@ -50,17 +50,25 @@ namespace PPTX
}
void
MathParaWrapper
::
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
std
::
wstring
name
=
oReader
.
GetName
();
if
(
oReader
.
IsEmptyNode
()
)
return
;
int
nCurDepth
=
oReader
.
GetDepth
();
while
(
oReader
.
ReadNextSiblingNode
(
nCurDepth
)
)
{
std
::
wstring
strName
=
XmlUtils
::
GetNameNoNS
(
oReader
.
GetName
());
if
(
L"oMathPara"
==
n
ame
)
if
(
L"oMathPara"
==
strN
ame
)
{
m_oMathPara
=
oReader
;
}
else
if
(
L"oMath"
==
n
ame
)
else
if
(
L"oMath"
==
strN
ame
)
{
m_oMath
=
oReader
;
}
}
FillParentPointersForChilds
();
}
void
MathParaWrapper
::
fromXML
(
XmlUtils
::
CXmlNode
&
node
)
{
std
::
wstring
sBegin
(
_T
(
"<root xmlns:wpc=
\"
http://schemas.microsoft.com/office/word/2010/wordprocessingCanvas
\"
xmlns:mc=
\"
http://schemas.openxmlformats.org/markup-compatibility/2006
\"
xmlns:p=
\"
urn:schemas-microsoft-com:office:powerpoint
\"
xmlns:v=
\"
urn:schemas-microsoft-com:vml
\"
xmlns:x=
\"
urn:schemas-microsoft-com:office:excel
\"
xmlns:o=
\"
urn:schemas-microsoft-com:office:office
\"
xmlns:w10=
\"
urn:schemas-microsoft-com:office:word
\"
xmlns:r=
\"
http://schemas.openxmlformats.org/officeDocument/2006/relationships
\"
xmlns:m=
\"
http://schemas.openxmlformats.org/officeDocument/2006/math
\"
xmlns:ve=
\"
http://schemas.openxmlformats.org/markup-compatibility/2006
\"
xmlns:w=
\"
http://schemas.openxmlformats.org/wordprocessingml/2006/main
\"
xmlns:wp=
\"
http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing
\"
xmlns:wp14=
\"
http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing
\"
xmlns:w14=
\"
http://schemas.microsoft.com/office/word/2010/wordml
\"
xmlns:w15=
\"
http://schemas.microsoft.com/office/word/2012/wordml
\"
xmlns:wpg=
\"
http://schemas.microsoft.com/office/word/2010/wordprocessingGroup
\"
xmlns:wpi=
\"
http://schemas.microsoft.com/office/word/2010/wordprocessingInk
\"
xmlns:wne=
\"
http://schemas.microsoft.com/office/word/2006/wordml
\"
xmlns:wps=
\"
http://schemas.microsoft.com/office/word/2010/wordprocessingShape
\"
xmlns:a=
\"
http://schemas.openxmlformats.org/drawingml/2006/main
\"
xmlns:a14=
\"
http://schemas.microsoft.com/office/drawing/2010/main
\"
xmlns:pic=
\"
http://schemas.openxmlformats.org/drawingml/2006/picture
\"
xmlns:xdr=
\"
http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing
\"
>"
));
...
...
@@ -151,8 +159,7 @@ namespace PPTX
oDrawingConverter
.
m_pBinaryWriter
=
pWriter
;
DocWrapper
::
FontProcessor
fp
;
BinDocxRW
::
ParamsWriter
oParamsWriter
(
pWriter
,
&
fp
,
&
oDrawingConverter
,
NULL
);
oDocxSerializer
.
m_pParamsWriter
=
&
oParamsWriter
;
oDocxSerializer
.
m_pParamsWriter
=
new
BinDocxRW
::
ParamsWriter
(
pWriter
,
&
fp
,
&
oDrawingConverter
,
NULL
);
oDocxSerializer
.
getBinaryContentElem
(
eElemType
,
pElem
,
*
pWriter
,
lDataSize
);
//*oDrawingConverter.m_pBinaryWriter->m_pCommonRels = pOldRels;
oDrawingConverter
.
m_pBinaryWriter
=
pOldWriter
;
...
...
ASCOfficePPTXFile/PPTXFormat/Logic/SpTreeElem.cpp
View file @
dc81f97b
...
...
@@ -247,19 +247,28 @@ namespace PPTX
m_elem
.
reset
(
new
Logic
::
GraphicFrame
(
oReader
));
else
if
(
name
==
_T
(
"AlternateContent"
))
{
bool
isEmpty
=
true
;
if
(
oReader
.
IsEmptyNode
()
)
return
;
int
nCurDepth
=
oReader
.
GetDepth
();
while
(
oReader
.
ReadNextSiblingNode
(
nCurDepth
)
)
{
std
::
wstring
strName
=
oReader
.
GetName
();
if
(
oReader
.
IsEmptyNode
()
)
continue
;
if
(
strName
==
L"mc:Choice"
)
{
oReader
.
ReadNextSiblingNode
(
nCurDepth
+
1
);
//GetAttributeIfExist(L"Requires", sRequires) && L"a14" == sRequires)
fromXML
(
oReader
);
if
(
m_elem
.
is_init
())
break
;
}
else
if
(
strName
==
L"mc:Fallback"
)
{
oReader
.
ReadNextSiblingNode
(
nCurDepth
+
1
);
fromXML
(
oReader
);
}
}
...
...
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