Commit 7280393a authored by Ivan.Shulga's avatar Ivan.Shulga Committed by Alexander Trofimov

linux build

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@58441 954022d7-b5bf-4e40-9824-e11837661b57
parent 29a58ecf
......@@ -53,9 +53,6 @@ SOURCES += docxformatlib.cpp \
../Source/DocxFormat/IFileContainer.cpp \
../Source/SystemUtility/FileSystem/DirectoryPosix.cpp \
../Source/SystemUtility/FileSystem/File.cpp \
../Source/SystemUtility/Solution/FileSystemTest/AssemblyInfo.cpp \
../Source/SystemUtility/Solution/FileSystemTest/DirectoryTest.cpp \
../Source/SystemUtility/Solution/FileSystemTest/stdafx.cpp \
../Source/SystemUtility/SystemUtility.cpp \
../Source/Utility/codecvt.cpp \
../Source/Utility/DateTime.cpp \
......@@ -287,9 +284,6 @@ HEADERS += docxformatlib.h \
../Source/SystemUtility/FileSystem/File.h \
../Source/SystemUtility/FileSystem/FileSystem.h \
../Source/SystemUtility/FileSystem/Settings.h \
../Source/SystemUtility/Solution/FileSystemTest/resource.h \
../Source/SystemUtility/Solution/FileSystemTest/stdafx.h \
../Source/SystemUtility/File.h \
../Source/SystemUtility/SystemUtility.h \
../Source/Utility/codecvt.h \
../Source/Utility/DateTime.h \
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 3.1.1, 2014-09-16T18:17:09. -->
<!-- Written by QtCreator 3.1.1, 2014-09-22T17:52:31. -->
<qtcreator>
<data>
<variable>ProjectExplorer.Project.ActiveTarget</variable>
......
......@@ -2,6 +2,7 @@
#include "../XML/xmlutils.h"
#ifdef _WIN32
class CFile
{
public:
......@@ -672,3 +673,24 @@ namespace StreamUtils
StreamSeek((long)(ulPos.LowPart - lCount), pStream);
}
}
#else
namespace CDirectory
{
static void SaveToFile(CString strFileName, CString strXml)
{
std::string aContentUtf8 = stringWstingToUtf8String (strXml);
std::string aFileNameUtf8 = stringWstingToUtf8String (strFileName);
FILE *pFile = fopen(aFileNameUtf8.c_str(), "wb");
if (NULL == pFile)
{
throw std::exception();
}
fwrite (aContentUtf8.c_str() , sizeof(char), aContentUtf8.size(), pFile);
fclose (pFile);
}
}
#endif
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