Commit 10964d32 authored by ElenaSubbotina's avatar ElenaSubbotina

...

parent da2493ed
...@@ -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
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -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); NSDirectory::DeleteDirectory(dstTempPath);
return hRes; return hRes;
} }
......
...@@ -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&#x0D;&#x0A;"
/>
</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>
......
...@@ -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;
......
...@@ -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 )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment