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
Hide 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,16 +50,24 @@ namespace PPTX
}
void
MathParaWrapper
::
fromXML
(
XmlUtils
::
CXmlLiteReader
&
oReader
)
{
std
::
wstring
name
=
oReader
.
GetName
();
if
(
L"oMathPara"
==
name
)
{
m_oMathPara
=
oReader
;
}
else
if
(
L"oMath"
==
name
)
if
(
oReader
.
IsEmptyNode
()
)
return
;
int
nCurDepth
=
oReader
.
GetDepth
();
while
(
oReader
.
ReadNextSiblingNode
(
nCurDepth
)
)
{
m_oMath
=
oReader
;
std
::
wstring
strName
=
XmlUtils
::
GetNameNoNS
(
oReader
.
GetName
());
if
(
L"oMathPara"
==
strName
)
{
m_oMathPara
=
oReader
;
}
else
if
(
L"oMath"
==
strName
)
{
m_oMath
=
oReader
;
}
}
FillParentPointersForChilds
();
}
void
MathParaWrapper
::
fromXML
(
XmlUtils
::
CXmlNode
&
node
)
{
...
...
@@ -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
);
break
;
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