-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPowerPointTask.cpp
More file actions
48 lines (34 loc) · 835 Bytes
/
Copy pathPowerPointTask.cpp
File metadata and controls
48 lines (34 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// -*-C++-*-
/*!
* @file PowerPointTask.cpp
* @brief PowerPointの起動、COMの参照をするスレッド
*
*/
#include "PowerPointTask.h"
#include "PowerPointObject.h"
/**
*@brief PowerPointの起動、COMの参照をするスレッドのコンストラクタ
*/
PowerPointTask::PowerPointTask(PowerPointControl *m_rtc)
{
mrtc = m_rtc;
}
/**
*@brief スレッドを実行
* @return
*/
int PowerPointTask::svc()
{
PowerPointObject::Obj = gcnew PowerPointObject();
std::string filePath = mrtc->getFileName();
if (filePath == "NewFile")
{
filePath = "";
}
//coil::Properties& prop(::RTC::Manager::instance().getConfig());
//getProperty(prop, "powerpoint.filename", filePath);
//filePath = Replace(filePath, "/", "\\");
coil::replaceString(filePath, "/", "\\");
PowerPointObject::Obj->Open(gcnew System::String(filePath.c_str()));
return 0;
}