Commit 51a9fda2 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

linux build (not work)

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@64350 954022d7-b5bf-4e40-9824-e11837661b57
parent bab31c41
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#if defined(_LINUX) && !defined(_MAC) #if defined(_LINUX) && !defined(_MAC)
#include <X11/X.h>
#define WindowHandleId XID #define WindowHandleId XID
#endif #endif
......
...@@ -272,11 +272,11 @@ namespace NSCommon ...@@ -272,11 +272,11 @@ namespace NSCommon
oRenderer.put_FontPath(strFontPath); oRenderer.put_FontPath(strFontPath);
pManager->LoadFontFromFile(strFontPath, lFaceIndex, 14, dDpi, dDpi); pManager->LoadFontFromFile(strFontPath, lFaceIndex, 14, dDpi, dDpi);
BOOL bIsSymbol = FALSE; bool bIsSymbol = FALSE;
if (pManager->m_pFont) if (pManager->m_pFont)
{ {
bIsSymbol = (-1 != (pManager->m_pFont->m_nSymbolic)) ? TRUE : FALSE; bIsSymbol = (-1 != (pManager->m_pFont->m_nSymbolic)) ? true : false;
if (!bIsSymbol) if (!bIsSymbol)
{ {
...@@ -288,7 +288,7 @@ namespace NSCommon ...@@ -288,7 +288,7 @@ namespace NSCommon
if (NULL != pOS2) if (NULL != pOS2)
{ {
if (0 == (pOS2->ulCodePageRange1 & 0xF0000000)) if (0 == (pOS2->ulCodePageRange1 & 0xF0000000))
bIsSymbol = TRUE; bIsSymbol = true;
} }
} }
} }
...@@ -691,7 +691,7 @@ protected: ...@@ -691,7 +691,7 @@ protected:
oDownloader.Start( 0 ); oDownloader.Start( 0 );
while ( oDownloader.IsRunned() ) while ( oDownloader.IsRunned() )
{ {
::Sleep( 10 ); NSThreads::Sleep( 10 );
} }
m_bRunThread = FALSE; m_bRunThread = FALSE;
...@@ -1034,7 +1034,7 @@ void CAscApplicationManager::SendKeyboardAttack() ...@@ -1034,7 +1034,7 @@ void CAscApplicationManager::SendKeyboardAttack()
void CAscApplicationManager::CheckFonts(bool bAsync) void CAscApplicationManager::CheckFonts(bool bAsync)
{ {
if (!NSDirectory::Exists(m_oSettings.fonts_cache_info_path)) if (!NSDirectory::Exists(m_oSettings.fonts_cache_info_path))
NSDirectory::CreateDirectoryW(m_oSettings.fonts_cache_info_path); NSDirectory::CreateDirectory(m_oSettings.fonts_cache_info_path);
bool bIsStarted = m_pInternal->IsRunned(); bool bIsStarted = m_pInternal->IsRunned();
bool bIsInit = IsInitFonts(); bool bIsInit = IsInitFonts();
......
...@@ -260,7 +260,7 @@ class ClientHandler : public CefClient, ...@@ -260,7 +260,7 @@ class ClientHandler : public CefClient,
// Returns true if this handler uses off-screen rendering. // Returns true if this handler uses off-screen rendering.
bool is_osr() const { return is_osr_; } bool is_osr() const { return is_osr_; }
private: protected:
// Create a new popup window using the specified information. |is_devtools| // Create a new popup window using the specified information. |is_devtools|
// will be true if the window will be used for DevTools. Return true to // will be true if the window will be used for DevTools. Return true to
// proceed with popup browser creation or false to cancel the popup browser. // proceed with popup browser creation or false to cancel the popup browser.
......
...@@ -125,7 +125,7 @@ class ClientAppRenderer : public ClientApp, ...@@ -125,7 +125,7 @@ class ClientAppRenderer : public ClientApp,
CefProcessId source_process, CefProcessId source_process,
CefRefPtr<CefProcessMessage> message) OVERRIDE; CefRefPtr<CefProcessMessage> message) OVERRIDE;
private: protected:
// Set of supported Delegates. // Set of supported Delegates.
DelegateSet delegates_; DelegateSet delegates_;
......
...@@ -5,7 +5,10 @@ ...@@ -5,7 +5,10 @@
#include "cefwrapper/client_scheme.h" #include "cefwrapper/client_scheme.h"
#include "cefclient/browser/main_context_impl.h" #include "cefclient/browser/main_context_impl.h"
#ifdef WIN32
#include "cefclient/browser/main_message_loop_multithreaded_win.h" #include "cefclient/browser/main_message_loop_multithreaded_win.h"
#endif
#include "cefclient/browser/main_message_loop_std.h" #include "cefclient/browser/main_message_loop_std.h"
class CApplicationCEF_Private class CApplicationCEF_Private
......
...@@ -167,10 +167,10 @@ public: ...@@ -167,10 +167,10 @@ public:
std::wstring strAppPathEditors = strAppPath + L"/" + NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)m_sVersion.c_str(), (LONG)m_sVersion.length()); std::wstring strAppPathEditors = strAppPath + L"/" + NSFile::CUtf8Converter::GetUnicodeStringFromUTF8((BYTE*)m_sVersion.c_str(), (LONG)m_sVersion.length());
if (!NSDirectory::Exists(strAppPathEditors)) if (!NSDirectory::Exists(strAppPathEditors))
{ {
NSDirectory::CreateDirectoryW(strAppPathEditors); NSDirectory::CreateDirectory(strAppPathEditors);
NSDirectory::CreateDirectoryW(strAppPathEditors + L"/word"); NSDirectory::CreateDirectory(strAppPathEditors + L"/word");
NSDirectory::CreateDirectoryW(strAppPathEditors + L"/excel"); NSDirectory::CreateDirectory(strAppPathEditors + L"/excel");
NSDirectory::CreateDirectoryW(strAppPathEditors + L"/powerpoint"); NSDirectory::CreateDirectory(strAppPathEditors + L"/powerpoint");
} }
CefRefPtr<CefV8Value> val = *arguments.begin(); CefRefPtr<CefV8Value> val = *arguments.begin();
...@@ -850,7 +850,7 @@ public: ...@@ -850,7 +850,7 @@ public:
oDownloader.Start( 0 ); oDownloader.Start( 0 );
while ( oDownloader.IsRunned() ) while ( oDownloader.IsRunned() )
{ {
::Sleep( 10 ); NSThreads::Sleep(10);
} }
return oDownloader.IsFileDownloaded(); return oDownloader.IsFileDownloaded();
} }
......
...@@ -211,8 +211,6 @@ void CAscKeyboardChecker::Check(CAscApplicationManager* pManager, int nLangInput ...@@ -211,8 +211,6 @@ void CAscKeyboardChecker::Check(CAscApplicationManager* pManager, int nLangInput
default: default:
break; break;
} }
OutputDebugStringA(sLang.c_str());
#endif #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