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

SaveToPDFParams

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@68157 954022d7-b5bf-4e40-9824-e11837661b57
parent 22c64834
...@@ -34,6 +34,7 @@ namespace NSDoctRenderer ...@@ -34,6 +34,7 @@ namespace NSDoctRenderer
int m_nMailMergeIndexEnd; int m_nMailMergeIndexEnd;
bool m_bIsRetina; bool m_bIsRetina;
int m_nSaveToPDFParams;
public: public:
CExecuteParams() : m_arChanges() CExecuteParams() : m_arChanges()
...@@ -56,6 +57,7 @@ namespace NSDoctRenderer ...@@ -56,6 +57,7 @@ namespace NSDoctRenderer
m_nMailMergeIndexEnd = -1; m_nMailMergeIndexEnd = -1;
m_bIsRetina = false; m_bIsRetina = false;
m_nSaveToPDFParams = 0;
} }
~CExecuteParams() ~CExecuteParams()
{ {
...@@ -110,6 +112,9 @@ namespace NSDoctRenderer ...@@ -110,6 +112,9 @@ namespace NSDoctRenderer
if (nParams & 0x01) if (nParams & 0x01)
m_bIsRetina = true; m_bIsRetina = true;
if (nParams & 0x02)
m_nSaveToPDFParams = 1;
return true; return true;
} }
}; };
...@@ -458,6 +463,7 @@ namespace NSDoctRenderer ...@@ -458,6 +463,7 @@ namespace NSDoctRenderer
if (js_func_get_file_s->IsFunction()) if (js_func_get_file_s->IsFunction())
{ {
v8::Handle<v8::Function> func_get_file_s = v8::Handle<v8::Function>::Cast(js_func_get_file_s); v8::Handle<v8::Function> func_get_file_s = v8::Handle<v8::Function>::Cast(js_func_get_file_s);
args[0] = v8::Int32::New(isolate, pParams->m_nSaveToPDFParams);
v8::Local<v8::Value> js_result2 = func_get_file_s->Call(global_js, 1, args); v8::Local<v8::Value> js_result2 = func_get_file_s->Call(global_js, 1, args);
if (try_catch.HasCaught()) if (try_catch.HasCaught())
......
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