WordRTC
0.5.0
メインページ
クラス
ファイル
ファイル一覧
ファイルメンバ
全て
クラス
ファイル
関数
変数
WordObject.h
説明を見る。
1
// -*-C++-*-
6
#ifndef WordObject_H
7
#define WordObject_H
8
9
//using namespace Microsoft::Office::Interop::Word;
10
#define Word Microsoft::Office::Interop::Word
11
12
#include <iostream>
13
#include <string>
14
#include <vector>
15
#include <windows.h>
16
17
#include "
SubFunctions.h
"
18
19
24
ref class
WordObject
25
{
26
public
:
30
WordObject
();
31
32
static
WordObject
^
Obj
;
39
void
Open
(System::String^ fn);
40
44
void
Close
();
45
46
52
void
setWord
(std::string st, std::string m_code);
53
58
void
setFontSize
(
float
fs);
59
64
void
setFontName
(std::string fn);
65
66
72
void
moveSelection
(Word::WdUnits m_type,
int
leng);
73
74
79
System::String^
getSelWord
();
80
81
88
void
setFontColor
(
int
r,
int
g,
int
b);
89
90
97
void
setBackColor
(
int
r,
int
g,
int
b);
98
103
float
oCurrentCursorPositionX
();
108
float
oCurrentCursorPositionY
();
112
void
gotoStart
();
116
void
gotoEnd
();
120
void
gotoStartOfLine
();
124
void
gotoEndOfLine
();
125
126
127
System::String^
filename
;
128
Word::Application^
dcApplication
;
129
Word::Documents^
dcDocuments
;
130
Word::Document^
dcDocument
;
132
System::String^
fontName
;
133
float
fontSize
;
135
int
char_Red, char_Green,
char_Blue
;
137
bool
movementType
;
138
bool
italic
;
139
bool
bold
;
141
bool
underline
;
142
bool
shadow
;
143
bool
strikeout
;
144
bool
contoured
;
145
bool
emphasis
;
147
int
back_Red, back_Green,
back_Blue
;
155
static
char
*
utf8_to_sjis
(
const
char
*pUtf8Str,
int
*nBytesOut);
156
163
static
char
*
utf16be_to_sjis
(
const
wchar_t
*pUcsStr,
int
*nBytesOut);
164
174
static
int
utf8_to_utf16be_sub
(
wchar_t
*pUcs2,
const
char
*pUtf8,
int
nUtf8Num, BOOL bCountOnly, BOOL bBigEndian);
175
183
static
wchar_t
*
utf8_to_utf16be
(
const
char
*pUtf8Str,
int
*nNumOut, BOOL bBigEndian);
184
185
};
186
187
188
189
#endif
WordRTCに対してWed Nov 19 2014 11:57:32に生成されました。
1.8.1