Commit 6f9ce15f authored by konovalovsergey's avatar konovalovsergey

convertion ods->xlsx->json

parent 83f59cb8
...@@ -31,13 +31,13 @@ ...@@ -31,13 +31,13 @@
*/ */
#include "WordDocument.h" #include "WordDocument.h"
#include "../../../Common/OfficeFileErrorDescription.h" #include "../../Common/OfficeFileErrorDescription.h"
#include "../../../ASCOfficeXlsFile2/source/XlsFormat/Logic/SummaryInformationStream/SummaryInformation.h" #include "../../ASCOfficeXlsFile2/source/XlsFormat/Logic/SummaryInformationStream/SummaryInformation.h"
#include "../../../ASCOfficeXlsFile2/source/XlsFormat/Binary/CFStream.h" #include "../../ASCOfficeXlsFile2/source/XlsFormat/Binary/CFStream.h"
#include "../../../Common/DocxFormat/Source/SystemUtility/FileSystem/Directory.h" #include "../../Common/DocxFormat/Source/SystemUtility/FileSystem/Directory.h"
#include "../../../DesktopEditor/common/File.h" #include "../../DesktopEditor/common/File.h"
namespace DocFileFormat namespace DocFileFormat
{ {
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
*/ */
#pragma once #pragma once
#include "../../../Common/3dParty/pole/pole.h" #include "../../../../Common/3dParty/pole/pole.h"
#include "CFRecordType.h" #include "CFRecordType.h"
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
#include <string> #include <string>
#include <boost/shared_ptr.hpp> #include <boost/shared_ptr.hpp>
#include "../../../Common/DocxFormat/Source/Base/Types_32.h" #include "../../../../Common/DocxFormat/Source/Base/Types_32.h"
namespace CRYPT namespace CRYPT
{ {
......
...@@ -233,16 +233,10 @@ namespace CSVWriter ...@@ -233,16 +233,10 @@ namespace CSVWriter
if (0 <= nValue && nValue < pSharedStrings->m_arrItems.size()) if (0 <= nValue && nValue < pSharedStrings->m_arrItems.size())
{ {
OOX::Spreadsheet::CSi *pSi = static_cast<OOX::Spreadsheet::CSi *>(pSharedStrings->m_arrItems[nValue]); OOX::Spreadsheet::CSi *pSi = static_cast<OOX::Spreadsheet::CSi *>(pSharedStrings->m_arrItems[nValue]);
if (NULL != pSi && pSi->m_arrItems.size() > 0) if(NULL != pSi)
if(NULL != pSi && pSi->m_arrItems.size() > 0) {
{ sCellValue = pSi->ToString();
OOX::Spreadsheet::WritingElement* pWe = pSi->m_arrItems[0]; }
if(OOX::Spreadsheet::et_t == pWe->getType())
{
OOX::Spreadsheet::CText* pText = static_cast<OOX::Spreadsheet::CText*>(pWe);
sCellValue = pText->m_sText;
}
}
} }
} }
else else
......
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