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
49934d52
Commit
49934d52
authored
Sep 30, 2016
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x2t 2.0.2.395 fix bugs
parent
5c3b05f4
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
30 additions
and
11 deletions
+30
-11
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
...fficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
+1
-1
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXDocumentReader.h
...iceRtfFile/RtfFormatLib/source/Reader/OOXDocumentReader.h
+5
-3
ASCOfficeRtfFile/RtfFormatLib/source/RtfDocument.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfDocument.cpp
+3
-2
Common/DocxFormat/Source/Base/Base.h
Common/DocxFormat/Source/Base/Base.h
+18
-2
Common/DocxFormat/Source/XML/Utils.h
Common/DocxFormat/Source/XML/Utils.h
+2
-2
X2tConverter/build/Qt/X2tConverter.pro
X2tConverter/build/Qt/X2tConverter.pro
+1
-1
No files found.
ASCOfficeOdfFileW/source/OdfFormat/odt_conversion_context.cpp
View file @
49934d52
...
...
@@ -752,7 +752,7 @@ void odt_conversion_context::start_note_content()
{
notes_context_
.
start_note_content
();
office_element_ptr
&
note_content_element
=
notes_context_
.
get_note_content
();
office_element_ptr
note_content_element
=
notes_context_
.
get_note_content
();
odf_element_state
state
=
{
note_content_element
,
L""
,
office_element_ptr
(),
(
int
)
text_context
()
->
current_level_
.
size
()};
text_context
()
->
current_level_
.
push_back
(
state
);
...
...
ASCOfficeRtfFile/RtfFormatLib/source/Reader/OOXDocumentReader.h
View file @
49934d52
...
...
@@ -74,7 +74,8 @@ public:
{
if
(
para
->
m_oParagraphProperty
->
m_oSectPr
.
IsInit
()
)
{
_section
section
(
RtfSectionPtr
(
new
RtfSection
()
),
last_section_start
,
i
+
1
);
RtfSectionPtr
s
(
new
RtfSection
());
_section
section
(
s
,
last_section_start
,
i
+
1
);
last_section_start
=
i
+
1
;
...
...
@@ -96,7 +97,8 @@ public:
if
(
last_section
.
end_para
<
m_ooxDocument
->
m_arrItems
.
size
())
{
_section
section
(
RtfSectionPtr
(
new
RtfSection
()
),
last_section
.
end_para
,
m_ooxDocument
->
m_arrItems
.
size
());
RtfSectionPtr
s
(
new
RtfSection
());
_section
section
(
s
,
last_section
.
end_para
,
m_ooxDocument
->
m_arrItems
.
size
());
section
.
props
->
m_oProperty
.
SetDefaultOOX
();
if
(
m_ooxDocument
->
m_oSectPr
.
IsInit
())
// свойства последней секции
...
...
@@ -121,4 +123,4 @@ public:
}
return
true
;
}
};
\ No newline at end of file
};
ASCOfficeRtfFile/RtfFormatLib/source/RtfDocument.cpp
View file @
49934d52
...
...
@@ -41,7 +41,8 @@
RtfDocument
::
RtfDocument
()
{
_section
section
(
RtfSectionPtr
(
new
RtfSection
()),
0
,
0
);
RtfSectionPtr
s
(
new
RtfSection
());
_section
section
(
s
,
0
,
0
);
m_aArray
.
push_back
(
section
);
m_oProperty
.
SetDefaultOOX
();
...
...
@@ -60,4 +61,4 @@ CString RtfDocument::RenderToRtf(RenderParameter oRenderParameter)
CString
RtfDocument
::
RenderToOOX
(
RenderParameter
oRenderParameter
)
{
return
_T
(
""
);
}
\ No newline at end of file
}
Common/DocxFormat/Source/Base/Base.h
View file @
49934d52
...
...
@@ -107,11 +107,27 @@ using namespace ATL;
#ifndef _wtof
#include <string>
#define _wtof std::stod
#define _wtoi std::stoi
//
#define _wtoi std::stoi
#define _wtoi64(p) std::wcstoll((p),NULL,10)
static
int
_wtoi
(
std
::
wstring
sVal
)
{
int
iVal
=
0
;
try
{
iVal
=
std
::
stod
(
sVal
.
c_str
());
}
catch
(...)
{
try
{
iVal
=
std
::
wcstoll
(
sVal
.
c_str
(),
NULL
,
10
);
}
catch
(...)
{
}
}
return
iVal
;
}
#ifdef UNICODE
#define _ttoi _wtoi
#define _tstof _wtof
...
...
Common/DocxFormat/Source/XML/Utils.h
View file @
49934d52
...
...
@@ -119,7 +119,7 @@ namespace XmlUtils
try
{
return
_
t
toi
(
string
);
return
_
w
toi
(
string
);
}
catch
(...)
{
...
...
@@ -139,7 +139,7 @@ namespace XmlUtils
if
(
string
.
GetLength
()
<
1
)
return
0
;
try
{
return
(
size_t
)
_
t
toi
(
string
);
return
(
size_t
)
_
w
toi
(
string
);
}
catch
(...)
{
...
...
X2tConverter/build/Qt/X2tConverter.pro
View file @
49934d52
...
...
@@ -7,7 +7,7 @@
QT
-=
core
QT
-=
gui
VERSION
=
2.0
.
2.39
2
VERSION
=
2.0
.
2.39
5
DEFINES
+=
INTVER
=
$$
VERSION
TEMPLATE
=
app
...
...
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