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
10964d32
Commit
10964d32
authored
Feb 01, 2017
by
ElenaSubbotina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
da2493ed
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
85 additions
and
1751 deletions
+85
-1751
ASCOfficeDocFile/DocDocxConverter/NumberingMapping.cpp
ASCOfficeDocFile/DocDocxConverter/NumberingMapping.cpp
+0
-2
ASCOfficeDocFile/DocFormatTest/DocFile_VS2005.sln
ASCOfficeDocFile/DocFormatTest/DocFile_VS2005.sln
+20
-1744
ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp
ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp
+3
-3
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
+60
-0
ASCOfficeRtfFile/RtfFormatLib/source/RtfOldList.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfOldList.cpp
+1
-1
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
+1
-1
No files found.
ASCOfficeDocFile/DocDocxConverter/NumberingMapping.cpp
View file @
10964d32
...
@@ -307,13 +307,11 @@ namespace DocFileFormat
...
@@ -307,13 +307,11 @@ namespace DocFileFormat
if
(
!
FormatUtils
::
IsControlSymbol
(
xchBullet
))
if
(
!
FormatUtils
::
IsControlSymbol
(
xchBullet
))
{
{
ret
.
push_back
(
lvl
.
xst
[
0
]);
ret
.
push_back
(
lvl
.
xst
[
0
]);
ret
.
push_back
(
L'\0'
);
}
}
}
}
else
else
{
{
ret
.
push_back
(
L
'\
xF0B7
'
);
ret
.
push_back
(
L
'\
xF0B7
'
);
ret
.
push_back
(
L'\0'
);
}
}
}
}
else
else
...
...
ASCOfficeDocFile/DocFormatTest/DocFile_VS2005.sln
View file @
10964d32
This source diff could not be displayed because it is too large. You can
view the blob
instead.
ASCOfficeDocFile/DocFormatTest/DocFormatTest.cpp
View file @
10964d32
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
//
//
#include "../DocFormatLib/DocFormatLib.h"
#include "../DocFormatLib/DocFormatLib.h"
#include "../
win32
/ASCOfficeCriticalSection.h"
#include "../
../OfficeUtils/src
/ASCOfficeCriticalSection.h"
#include "../../OfficeUtils/src/OfficeUtils.h"
#include "../../OfficeUtils/src/OfficeUtils.h"
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
#include <string>
#include <string>
#include <windows.h>
#include <windows.h>
#include <tchar.h>
#if defined(_WIN64)
#if defined(_WIN64)
#pragma comment(lib, "../../build/bin/icu/win_64/icuuc.lib")
#pragma comment(lib, "../../build/bin/icu/win_64/icuuc.lib")
...
@@ -58,7 +59,6 @@ int _tmain(int argc, _TCHAR* argv[])
...
@@ -58,7 +59,6 @@ int _tmain(int argc, _TCHAR* argv[])
std
::
wstring
outputDir
=
NSDirectory
::
GetFolderPath
(
sDstDocx
);
std
::
wstring
outputDir
=
NSDirectory
::
GetFolderPath
(
sDstDocx
);
std
::
wstring
dstTempPath
=
NSDirectory
::
CreateDirectoryWithUniqueName
(
outputDir
);
std
::
wstring
dstTempPath
=
NSDirectory
::
CreateDirectoryWithUniqueName
(
outputDir
);
// doc->docx
COfficeDocFile
docFile
;
COfficeDocFile
docFile
;
docFile
.
m_sTempFolder
=
outputDir
;
docFile
.
m_sTempFolder
=
outputDir
;
...
@@ -71,7 +71,7 @@ int _tmain(int argc, _TCHAR* argv[])
...
@@ -71,7 +71,7 @@ int _tmain(int argc, _TCHAR* argv[])
hRes
=
oCOfficeUtils
.
CompressFileOrDirectory
(
dstTempPath
.
c_str
(),
sDstDocx
,
-
1
);
hRes
=
oCOfficeUtils
.
CompressFileOrDirectory
(
dstTempPath
.
c_str
(),
sDstDocx
,
-
1
);
}
}
FileSystem
::
Directory
::
DeleteDirectory
(
dstTempPath
);
NS
Directory
::
DeleteDirectory
(
dstTempPath
);
return
hRes
;
return
hRes
;
}
}
...
...
ASCOfficeDocFile/DocFormatTest/DocFormatTest.vcproj
View file @
10964d32
...
@@ -338,6 +338,58 @@
...
@@ -338,6 +338,58 @@
<References>
<References>
</References>
</References>
<Files>
<Files>
<Filter
Name=
"Common"
>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\BinWriter\BinWriters.cpp"
>
</File>
<File
RelativePath=
"..\..\XlsxSerializerCom\Reader\ChartFromToBinary.cpp"
>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\DocWrapper\ChartWriter.cpp"
>
</File>
<File
RelativePath=
"..\..\XlsxSerializerCom\Common\Common.cpp"
>
</File>
<File
RelativePath=
"..\..\XlsxSerializerCom\Reader\CommonWriter.cpp"
>
</File>
<File
RelativePath=
"..\..\XlsxSerializerCom\Reader\CSVReader.cpp"
>
</File>
<File
RelativePath=
"..\..\XlsxSerializerCom\Writer\CSVWriter.cpp"
>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\DocWrapper\DocxSerializer.cpp"
>
<FileConfiguration
Name=
"Debug|Win32"
>
<Tool
Name=
"VCCLCompilerTool"
AdditionalOptions=
"/bigobj
"
/>
</FileConfiguration>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\DocWrapper\FontProcessor.cpp"
>
</File>
<File
RelativePath=
"..\..\ASCOfficeDocxFile2\DocWrapper\XlsxSerializer.cpp"
>
</File>
</Filter>
<File
<File
RelativePath=
".\DocFormatTest.cpp"
RelativePath=
".\DocFormatTest.cpp"
>
>
...
@@ -386,6 +438,14 @@
...
@@ -386,6 +438,14 @@
RelativePath=
"..\..\UnicodeConverter\UnicodeConverter.cpp"
RelativePath=
"..\..\UnicodeConverter\UnicodeConverter.cpp"
>
>
</File>
</File>
<File
RelativePath=
"..\..\DesktopEditor\xml\src\xmldom.cpp"
>
</File>
<File
RelativePath=
"..\..\DesktopEditor\xml\src\xmllight.cpp"
>
</File>
</Files>
</Files>
<Globals>
<Globals>
</Globals>
</Globals>
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfOldList.cpp
View file @
10964d32
...
@@ -95,7 +95,7 @@ std::wstring RtfOldList::RenderToOOX(RenderParameter oRenderParameter)
...
@@ -95,7 +95,7 @@ std::wstring RtfOldList::RenderToOOX(RenderParameter oRenderParameter)
{
{
if
(
PROP_DEF
!=
m_nLs
&&
PROP_DEF
!=
m_nIlvl
)
if
(
PROP_DEF
!=
m_nLs
&&
PROP_DEF
!=
m_nIlvl
)
sResult
+=
L"<w:numPr><w:ilvl w:val=
\"
"
+
std
::
to_wstring
(
m_nLs
)
+
sResult
+=
L"<w:numPr><w:ilvl w:val=
\"
"
+
std
::
to_wstring
(
m_nLs
)
+
L"
\"
/><w:numId w:val=
\"
%
"
+
std
::
to_wstring
(
m_nLs
)
+
L"
\"
/></w:numPr>"
;
L"
\"
/><w:numId w:val=
\"
"
+
std
::
to_wstring
(
m_nLs
)
+
L"
\"
/></w:numPr>"
;
}
}
}
}
return
sResult
;
return
sResult
;
...
...
ASCOfficeRtfFile/RtfFormatLib/source/RtfProperty.cpp
View file @
10964d32
...
@@ -2090,7 +2090,7 @@ std::wstring RtfParagraphProperty::RenderToOOX(RenderParameter oRenderParameter)
...
@@ -2090,7 +2090,7 @@ std::wstring RtfParagraphProperty::RenderToOOX(RenderParameter oRenderParameter)
case
tbw_txbxtwno
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
none
\"
/>"
;
break
;
case
tbw_txbxtwno
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
none
\"
/>"
;
break
;
case
tbw_txbxtwalways
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
allLines
\"
/>"
;
break
;
case
tbw_txbxtwalways
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
allLines
\"
/>"
;
break
;
case
tbw_txbxtwfirstlast
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
firstAndLastLine
\"
/>"
;
break
;
case
tbw_txbxtwfirstlast
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
firstAndLastLine
\"
/>"
;
break
;
case
tbw_txbxtwfirst
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
firstLineOnly
\"
/>"
;
break
;
case
tbw_txbxtwfirst
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
firstLineOnly
\"
/>"
;
break
;
case
tbw_txbxtwlast
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
lastLineOnly
\"
/>"
;
break
;
case
tbw_txbxtwlast
:
sResult
+=
L"<w:textboxTightWrap w:val=
\"
lastLineOnly
\"
/>"
;
break
;
}
}
if
(
PROP_DEF
!=
m_nListId
&&
PROP_DEF
!=
m_nListLevel
)
if
(
PROP_DEF
!=
m_nListId
&&
PROP_DEF
!=
m_nListLevel
)
...
...
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