blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
3
264
content_id
stringlengths
40
40
detected_licenses
listlengths
0
85
license_type
stringclasses
2 values
repo_name
stringlengths
5
140
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
986 values
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
3.89k
681M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
145 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
10.4M
extension
stringclasses
122 values
content
stringlengths
3
10.4M
authors
listlengths
1
1
author_id
stringlengths
0
158
aedf5b71750e9cb02be3fbe2bb14ecbe98cecc8c
a0b0eb383ecfeaeed3d2b0271657a0c32472bf8e
/lydsy/2056.cpp
d2bc77b53d32e9a1841828877513cc7efc680af1
[ "Apache-2.0" ]
permissive
tangjz/acm-icpc
45764d717611d545976309f10bebf79c81182b57
f1f3f15f7ed12c0ece39ad0dd044bfe35df9136d
refs/heads/master
2023-04-07T10:23:07.075717
2022-12-24T15:30:19
2022-12-26T06:22:53
13,367,317
53
20
Apache-2.0
2022-12-26T06:22:54
2013-10-06T18:57:09
C++
GB18030
C++
false
false
752
cpp
/* * 恶心题 注意内存 * 答案在2^3 ~ 2^64之间 * 对于溢出unsigned long long的2^64进行特判输出 */ #include <stdio.h> #include <string.h> int t, x; unsigned long long i, ans; int main() { scanf("%d", &t); while(t--) { ans = 0; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%d", &x); ans += 1ll << x; scanf("%Lu", &i); ans += i; if(!ans) printf("18446744073709551616\n"); else printf("%llu\n", ans); } return 0; }
[ "t251346744@gmail.com" ]
t251346744@gmail.com
51ef8278cf9f17aaf7c7fb6b312a8564d3310e89
cde7fc7ca2072085dd44441a5f3872a7c785af75
/GyroControlTest2/GyroControlTest2.ino
21c9430b376527270efaab21ab0517d0e6a94f50
[]
no_license
ShehryarX/vaccinaire
f1495491510e3f8a37fa914477b2a40a14c59f3d
3efde9aea54d5fb6dcc27e66ae45896d4c61053b
refs/heads/master
2020-04-03T09:12:32.667047
2018-10-17T14:57:44
2018-10-17T14:57:44
null
0
0
null
null
null
null
UTF-8
C++
false
false
4,429
ino
#include <Servo.h> #include <Wire.h> #include <Adafruit_Sensor.h> #include <Adafruit_LSM303_U.h> #include <Adafruit_L3GD20_U.h> #include <Adafruit_9DOF.h> Servo servox1; Servo servox2; Servo servoy1; Servo servoy2; int originRoll = 0; int originPitch = 0; int originMag = 0; /* Assign a unique ID to the sensors */ Adafruit_9DOF dof = Adafruit_9DOF(); Adafruit_LSM303_Accel_Unified accel = Adafruit_LSM303_Accel_Unified(30301); Adafruit_LSM303_Mag_Unified mag = Adafruit_LSM303_Mag_Unified(30302); /* Update this with the correct SLP for accurate altitude measurements */ float seaLevelPressure = SENSORS_PRESSURE_SEALEVELHPA; /**************************************************************************/ /*! @brief Initialises all the sensors used by this example */ /**************************************************************************/ void initSensors() { if(!accel.begin()) { /* There was a problem detecting the LSM303 ... check your connections */ Serial.println(F("Ooops, no LSM303 detected ... Check your wiring!")); while(1); } if(!mag.begin()) { /* There was a problem detecting the LSM303 ... check your connections */ Serial.println("Ooops, no LSM303 detected ... Check your wiring!"); while(1); } } void calibrate(void) { sensors_event_t accel_event; sensors_event_t mag_event; sensors_vec_t orientation; /* Calculate pitch and roll from the raw accelerometer data */ accel.getEvent(&accel_event); if (dof.accelGetOrientation(&accel_event, &orientation)) { originRoll = orientation.roll; originPitch = orientation.pitch; } /* Calculate the heading using the magnetometer */ mag.getEvent(&mag_event); if (dof.magGetOrientation(SENSOR_AXIS_Z, &mag_event, &orientation)) { originMag = orientation.heading; } } /**************************************************************************/ /*! */ /**************************************************************************/ void setup(void) { Serial.begin(115200); Serial.println(F("Adafruit 9 DOF Pitch/Roll/Heading Example")); Serial.println(""); servox1.attach(8); servox2.attach(9); servoy1.attach(10); servoy2.attach(11); /* Initialise the sensors */ initSensors(); calibrate(); } void spindown(void){ } void stablize(void){ sensors_event_t accel_event; sensors_event_t mag_event; sensors_vec_t orientation; /* Calculate pitch and roll from the raw accelerometer data */ accel.getEvent(&accel_event); if (dof.accelGetOrientation(&accel_event, &orientation)) { int angleX = orientation.roll - originRoll; int angleY = orientation.pitch - originPitch; int valx1 = (int) angleX + 90; int valx2 = (int) (-1*angleX) + 90; int valy1 = (int) angleY + 90; int valy2 = (int) (-1*angleY) + 90; Serial.print("valx1:"); Serial.println(valx1); Serial.print("valx2:"); Serial.println(valx2); Serial.print("valy1:"); Serial.println(valy1); Serial.print("valy2:"); Serial.println(valy2 ); servox1.write(valx1); servox2.write(valx2); servoy1.write(valy1); servoy2.write(valy2); } } /**************************************************************************/ /*! @brief Constantly check the roll/pitch/heading/altitude/temperature */ /**************************************************************************/ void loop(void) { sensors_event_t accel_event; sensors_event_t mag_event; sensors_vec_t orientation; /* Calculate pitch and roll from the raw accelerometer data */ accel.getEvent(&accel_event); if (dof.accelGetOrientation(&accel_event, &orientation)) { int angleX = orientation.roll - originRoll; int angleY = orientation.pitch - originPitch; int offsetX = analogRead(A0); // A0 int offsetY = analogRead(A1); offsetX = map(offsetX, 0, 1023, -45, 45); offsetY = map(offsetY, 0, 1023, -45, 45); Serial.print("Offset X: "); Serial.println(offsetX); Serial.print("Offset Y: "); Serial.println(offsetY); int valx2 = (int) angleX + 90 + offsetX; int valx1 = (int) -1 * (angleX + offsetX) + 90 ; int valy2 = (int) angleY + 90 + offsetY; int valy1 = (int) -1 * (angleY + offsetY) + 90; servox1.write(valx1); servox2.write(valx2); servoy1.write(valy1); servoy2.write(valy2); } Serial.println(F("")); delay(1); }
[ "abhinavboyed@v1022-rn-229-51.campus-dynamic.uwaterloo.ca" ]
abhinavboyed@v1022-rn-229-51.campus-dynamic.uwaterloo.ca
70a5c1e6e8c05c67e7d740c9f2600b03074bf996
76832fb7b958ce304c76e7bb61f574fa23fc2a33
/src/imageConverter.cpp
1332d4f117283d5df9f6a6fc645b7b43d11cac66
[]
no_license
wangzhecoder/cam_waylens_ros
b1dbbbc18edb14ab541a5e3cad71fb74d425b569
ec69c72bb836e7628a85e7cbedb25c1c59601b3c
refs/heads/master
2021-07-18T02:04:44.834532
2017-10-25T10:48:53
2017-10-25T10:48:53
108,257,104
0
0
null
null
null
null
UTF-8
C++
false
false
8,029
cpp
/* * imageConverter.cpp * * Created on: Feb 20, 2017 * Author: Zhe Wang */ #include <ros/ros.h> #include <ros/console.h> #include <message_filters/subscriber.h> #include <image_transport/image_transport.h> #include <cv_bridge/cv_bridge.h> #include <sensor_msgs/image_encodings.h> #include <visualization_msgs/MarkerArray.h> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/core/core.hpp> #include <opencv2/contrib/openfabmap.hpp> #include <vector> #include <boost/thread.hpp> #include <multi_robot_slam/Scenenode.h> class ImageConverter { ros::NodeHandle nh_; image_transport::ImageTransport it_; image_transport::Subscriber image_sub_; image_transport::Publisher image_pub_; image_transport::ImageTransport depth_it_; image_transport::Subscriber depth_image_sub; ros::Subscriber mark_sub; ros::Publisher scene_node_pub; bool detSwitch; int sceneFrames; std::vector<cv::Mat> voc_src; cv::Mat vocab; cv::Mat mask; typedef struct { double x,y; std::vector<cv::KeyPoint> keyPoints; }sceneNode; sceneNode s_node; public: ImageConverter(); ~ImageConverter(); void orbDetect(cv_bridge::CvImagePtr &cv_ptr,sceneNode node); void imageCb(const sensor_msgs::ImageConstPtr& msg); void markArrayCallback(const visualization_msgs::MarkerArray::ConstPtr& msg); void getdepthMask(const sensor_msgs::ImageConstPtr& msg); }; ImageConverter::ImageConverter() : it_(nh_), sceneFrames(0), depth_it_(nh_) { // Subscrive to input video feed and publish output video feed detSwitch = false; image_sub_ = it_.subscribe("/camera/rgb/image_raw", 1,&ImageConverter::imageCb, this); image_pub_ = it_.advertise("/image_converter/output_video", 1); mark_sub = nh_.subscribe("visualization_marker_array",1,&ImageConverter::markArrayCallback,this); scene_node_pub = nh_.advertise<multi_robot_slam::Scenenode>("/image_converter/scene_node",1); depth_image_sub = depth_it_.subscribe("/camera/depth_registered/image_raw",1,&ImageConverter::getdepthMask,this); //read vocabular from file cv::FileStorage fs; fs.open("/home/turtlebot/catkin_ws/src/multi_robot_slam/src/vocab.yml", cv::FileStorage::READ); fs["Vocabulary"] >> vocab; if (vocab.empty()) { ROS_INFO("vocab Invaild"); } fs.release(); } ImageConverter::~ImageConverter() { } //******************************************************************* //detect ORB features and descriptors and computer BOW data //******************************************************************* void ImageConverter::orbDetect(cv_bridge::CvImagePtr &cv_ptr,sceneNode node)//cv::Mat & img { cv::Ptr<cv::FeatureDetector> orb_detector = cv::FeatureDetector::create("ORB"); ROS_INFO("orb created"); std::vector<cv::KeyPoint> keyPoints; cv::Mat descriptors; multi_robot_slam::Scenenode msg; sensor_msgs::Image img; cv_bridge::CvImage des_ptr;//(cv_ptr->header,sensor_msgs::image_encodings::MONO8,descriptors); cv_bridge::CvImagePtr des_ptrr; des_ptr.header=cv_ptr->header; des_ptr.encoding=sensor_msgs::image_encodings::TYPE_32FC1; ROS_INFO("before orb created"); orb_detector->detect(cv_ptr->image, keyPoints,mask); ROS_INFO("orb_detector detected"); if(!keyPoints.empty()) { //extract the descriptors cv::Ptr<cv::DescriptorExtractor> descriptor_extractor = cv::DescriptorExtractor::create("ORB"); descriptor_extractor->compute(cv_ptr->image,keyPoints,descriptors); cv::Mat data; descriptors.convertTo(data, CV_32F); voc_src.push_back(data); if(sceneFrames%1==0&&sceneFrames!=0) { // cv::BOWKMeansTrainer voc_trainer(100);//100 // std::vector<cv::Mat>::iterator v; // for(v = voc_src.begin();v!=voc_src.end();v++) // voc_trainer.add(*v); // ROS_INFO("voc added"); // cv::Mat vocab = voc_trainer.cluster(); //change vocab format from CV_32F to CV_8U cv::Mat vocab_uchar; float min=1.0,max=1.0; for(int m = 0; m < vocab.rows; m++) { for(int l = 0; l < vocab.cols; l++) { if(vocab.at<float>(m,l)<min) min=vocab.at<float>(m,l); if(vocab.at<float>(m,l)>max) max=vocab.at<float>(m,l); } } if(min!=max) vocab.convertTo(vocab_uchar, CV_8U,255.0/(max-min),-255.0*min/(max-min)); ROS_INFO("voc clustered"); //compute training data which needed by FabMap cv::Ptr<cv::DescriptorExtractor> extractor = cv::DescriptorExtractor::create("ORB"); ROS_INFO("ORB created"); cv::Ptr<cv::DescriptorMatcher> matcher = cv::DescriptorMatcher::create("BruteForce-Hamming"); ROS_INFO("matcher created"); cv::BOWImgDescriptorExtractor bide(extractor, matcher); bide.setVocabulary(vocab_uchar); ROS_INFO("bide vocab setted"); bide.compute(cv_ptr->image, keyPoints, des_ptr.image); //drawKeypoints cv::Mat kepointImg; cv::drawKeypoints(cv_ptr->image,keyPoints,kepointImg,cv::Scalar(0,255,255),4); cv::imshow("keypoints", kepointImg); //transform des_ptr.toImageMsg(img); ROS_INFO("des_ptr->image SIZE:[%d,%d]",des_ptr.image.rows,des_ptr.image.cols); msg.image=img; msg.px=node.x; msg.py=node.y; scene_node_pub.publish(msg); ROS_INFO("published"); voc_src.clear(); cv::FileStorage fs("vocabular.yml",cv::FileStorage::WRITE); fs<<"vocab"<<vocab; fs.release(); } sceneFrames++; } } //******************************************************************* //get image from ROS msg and change to OpenCV image format //******************************************************************* void ImageConverter::imageCb(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::RGB8); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } if(detSwitch) { orbDetect(cv_ptr,s_node); ROS_INFO("Add SceneNode!Position[%lf,%lf]",s_node.x,s_node.y); detSwitch= false; } // Update GUI Window cv::waitKey(33); // Output modified video stream image_pub_.publish(cv_ptr->toImageMsg()); } //******************************************************************* //give pose value to msg //******************************************************************* void ImageConverter::markArrayCallback(const visualization_msgs::MarkerArray::ConstPtr& msg) { ROS_INFO("Marker:[%lf,%lf]",msg->markers[msg->markers.size()-2].pose.position.x,msg->markers[msg->markers.size()-2].pose.position.y); if(msg->markers.size()>=2) { s_node.x=msg->markers[msg->markers.size()-2].pose.position.x; s_node.y=msg->markers[msg->markers.size()-2].pose.position.y; } else { s_node.x=msg->markers.back().pose.position.x; s_node.y=msg->markers.back().pose.position.y; } detSwitch = true; } //******************************************************************* //Set distance depth image to mask //******************************************************************* void ImageConverter::getdepthMask(const sensor_msgs::ImageConstPtr& msg) { cv_bridge::CvImagePtr cv_ptr; try { cv_ptr = cv_bridge::toCvCopy(msg, sensor_msgs::image_encodings::TYPE_16UC1); } catch (cv_bridge::Exception& e) { ROS_ERROR("cv_bridge exception: %s", e.what()); return; } cv::Mat msk,msk1,msk2; int min=1,max=1; for(int m = 0; m < cv_ptr->image.rows; m++) { for(int l = 0; l < cv_ptr->image.cols; l++) { if(cv_ptr->image.at<ushort>(m,l)<min) min=cv_ptr->image.at<ushort>(m,l); if(cv_ptr->image.at<ushort>(m,l)>max) max=cv_ptr->image.at<ushort>(m,l); } } if(min!=max) cv_ptr->image.convertTo(msk, CV_8U,255.0/(max-min),-255.0*min/(max-min)); cv::threshold(msk, msk1, 2.0, 255, cv::THRESH_BINARY); cv::threshold(msk, msk2, 150, 255, cv::THRESH_BINARY_INV); cv::bitwise_and(msk1, msk2, mask, cv::Mat()); // cv::imshow("mask", mask); // cv::waitKey(33); } int main(int argc, char** argv) { ros::init(argc, argv, "image_converter"); ImageConverter ic; ros::spin(); return 0; }
[ "wangzhe936@outlook.com" ]
wangzhe936@outlook.com
ba0ee6b14293c3db78858401ead178cb75c9b1fa
9922edafddb080ccefb36858e5ffd1a106beae95
/mdk/MAsyncDatabase/MDatabaseDefine.h
644b4e3f5168bd73887781e963ec77cd1743aeec
[]
no_license
saerich/RaiderZ-Evolved-Develop
ee93f46d866ed0310107a07ad0a4a2db3a2fd529
b2a20e2a5b058a330b2e18a3f0a45a10f71f2cb0
refs/heads/master
2023-02-25T15:43:26.276331
2021-02-04T01:37:25
2021-02-04T01:37:25
281,212,532
3
1
null
null
null
null
UTF-8
C++
false
false
513
h
#pragma once namespace mdb { /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define CHK_SQLRET_FAIL(ret, ret_val) if ((SQL_SUCCESS != ret) && (SQL_SUCCESS_WITH_INFO != ret) && (SQL_NO_DATA != ret)) \ { \ return ret_val; \ } /////////////////////////////////////////////////////////////////////////////////////////////////////////////////// #define MDB_MAX_MESSAGE_LENGTH SQL_MAX_MESSAGE_LENGTH }
[ "fabs1996@live.co.uk" ]
fabs1996@live.co.uk
ba59f379cede998944dd6d15593d3dabf9b09028
b6c994a8d40d95d8bfaabe327e887e3566bdd3d3
/sitoVector.cpp
23a5bb82236a33574801a51048d1d78e2aeb5e7f
[]
no_license
cMoon0016/sieve_of_eratosthenes
f80ebf518be81a2236317e849352e390e7a73724
048e6c46070bc95dc5a595e91af59f1e8e0e5d9f
refs/heads/main
2023-04-06T14:23:28.423718
2021-04-11T17:01:27
2021-04-11T17:01:27
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,491
cpp
#include <iostream> #include <windows.h> #include <cstdlib> #include <cmath> #include <time.h> #include <iomanip> #include "sitoDynamiczne.h" #include "sitoVector.h" using namespace std; cSitoVector::cSitoVector(long long aRoz) { mVec.resize(aRoz); mRozmiar = aRoz; for(int i=0; i<aRoz; i++) //wypelnienie { mVec[i].setIndeks(i); } } cSitoVector::~cSitoVector() { mVec.erase(mVec.begin(), mVec.end()); } void cSitoVector::wyswietl() const { if(mCzyOdsiane == false) { cout<<"Najpierw musisz odsiac liczby!"<<endl; return; } HANDLE hOut; //ustawianie koloru wyswietlania liczb; hOut = GetStdHandle( STD_OUTPUT_HANDLE ); for(int i=0; i<mRozmiar; i++) { if(i>0 && i%10 == 0) cout<<endl; if(mVec[i].getCzyWykreslone() == true) SetConsoleTextAttribute( hOut, BACKGROUND_RED | BACKGROUND_INTENSITY); //czerwone tlo else SetConsoleTextAttribute( hOut, BACKGROUND_GREEN | BACKGROUND_INTENSITY); //zielone jasne tlo cout<<mVec[i].mIndeks<<"\t"; SetConsoleTextAttribute( hOut, FOREGROUND_RED | FOREGROUND_GREEN | FOREGROUND_BLUE ); //normalne tlo poprzez ustawienie bialego koloru czcionki } } void cSitoVector::odsiej() { clock_t start, stop; //mierzenie cykli procesora start = clock(); mVec[0].wykresl(); //0 ani 1 nie sa liczbami pierwszymi mVec[1].wykresl(); for(int i=2; i<=sqrt(mRozmiar); i++) { if(mVec[i].getCzyWykreslone() == false) for(int j=2*i; j<mRozmiar; j+=i) //wykresla wielokrotnosci i poczawszy od 2i mVec[j].wykresl(); } stop = clock(); mCzyOdsiane = true; //ustawienie flagi double czas = (stop-start)/static_cast<double>(CLOCKS_PER_SEC); cout<<"Czas odsiewania: "<<czas<<endl; } void cSitoVector::zmien_rozmiar(long long aRoz) { mRozmiar = aRoz; mVec.resize(aRoz); for(int i=0; i<aRoz; i++) //wypelnienie { mVec[i].setIndeks(i); } mCzyOdsiane = false; //po zmianie sita trzeba znow odsiac } void cSitoVector::sprawdz(int x) { if(mCzyOdsiane == false) { cout<<"Najpierw musisz odsiac liczby!"<<endl; return; } if(mVec[x].getCzyWykreslone() == true) cout<<"To nie jest liczba pierwsza"<<endl; else cout<<"To jest liczba pierwsza"<<endl; }
[ "noreply@github.com" ]
cMoon0016.noreply@github.com
007eeab4507441971f38240015a4c6344622da20
642227f9a45c71299f833be42301485771ee6968
/luogu/普及练习场/P1003.cpp
225e625c196fe6b637363485f299002881dd2f95
[]
no_license
Laizl95/Algorithm
f1fe0309d76424d4af923f0f91532a5c4a7b7e85
f92a25de18f0dae922e3ecf3ed0b71b59126d4ac
refs/heads/master
2021-12-26T04:32:22.470220
2021-08-16T14:25:56
2021-08-16T14:25:56
176,264,425
0
0
null
null
null
null
UTF-8
C++
false
false
692
cpp
#include<bits/stdc++.h> #define rep(i,x,y) for(int i=x;i<y;++i) #define per(i,x,y) for(int i=y-1;i>=x;--i) #define ms(x,y) memset(x,y,sizeof(x)) #define pb(x) push_back(x) #define mp(x,y) make_pair(x,y) #define pii pair<int,int> using namespace std; const int N=2e5+5,inf=1e9+5; typedef long long LL; int l_x[N],r_x[N],l_y[N],r_y[N]; int main(){ int n; scanf("%d",&n); int x,y,a,b; rep(i,0,n){ scanf("%d %d %d %d",&x,&y,&a,&b); l_x[i]=x;r_x[i]=x+a; l_y[i]=y;r_y[i]=y+b; } scanf("%d %d",&x,&y); int ans=-1; per(i,0,n) if(x>=l_x[i] && x<=r_x[i] && y>=l_y[i] && y<=r_y[i]){ ans=i+1;break; } printf("%d\n",ans); return 0; }
[ "641449078@qq.com" ]
641449078@qq.com
c55ba2ad30fb5c3cdcb3290ddfe7a6021f4f2daa
9802c62e743c0bbfba65d87dc2aff07448247996
/src/test1.h
4a10b2b45a25c1a1299e5f44331cc4ad9cf3575f
[ "MIT" ]
permissive
ADKosm/Mouse-Tracking
5f447db994fd283d86a1af9a538179b6d0df2fcd
fdb2743b24dd4bc5bc688deaf8f76120314e60a4
refs/heads/master
2021-01-17T07:14:37.671935
2016-06-03T21:54:50
2016-06-03T21:54:50
55,618,140
0
0
null
null
null
null
UTF-8
C++
false
false
1,034
h
#ifndef TEST1_H #define TEST1_H #include "ITest.h" class TestGraphicsScene1 : public QGraphicsScene { Q_OBJECT public: explicit TestGraphicsScene1(QObject *parent = 0); ~TestGraphicsScene1(); void setObjects(); private: int screenWidth; int screenHeight; int ballSize; QColor targetBallColor; bool recording; startButton * sButton; QGraphicsEllipseItem * targetBall; QGraphicsTextItem * escText; QTime time; int shots; QDateTime time_id; QVector< QPair<QPointF, int> > recordData; void startRecord(); void stopRecord(); void storeData(); QRect getAvailableGeometry(QGraphicsScene * scene); private slots: void mousePressEvent(QGraphicsSceneMouseEvent * mouseEvent); void mouseMoveEvent(QGraphicsSceneMouseEvent * mouseEvent); void keyPressEvent(QKeyEvent *event); }; class Test1: public ITest { private: QGraphicsView * view; TestGraphicsScene1 * scene; public: Test1(); void run(); ~Test1(); }; #endif // TEST1_H
[ "adkosmachev@edu.hse.ru" ]
adkosmachev@edu.hse.ru
2ef32bb88bf52600de488017d9ffbce314383231
188d55269ca8f0d2c61c326bdc218a75f26a40db
/src/processors/RISC-V/rv5s/rv5s_idex.h
36d98c37e6ba97596c84a11e30a290f6fb892a2f
[ "MIT" ]
permissive
Stmen/Ripes
df62e0c7f8624c5d66c220ab3e349bb333a5f767
abeb4e67a86e1017601e73584e2076799acf377f
refs/heads/master
2023-08-15T18:24:05.864696
2021-10-16T12:14:52
2021-10-16T12:14:52
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,341
h
#pragma once #include "VSRTL/core/vsrtl_component.h" #include "VSRTL/core/vsrtl_constant.h" #include "VSRTL/core/vsrtl_register.h" #include "../riscv.h" #include "../rv5s_no_fw_hz/rv5s_no_fw_hz_idex.h" namespace vsrtl { namespace core { using namespace Ripes; /** * @brief The RV5S_IDEX class * A specialization of the default IDEX stage separating register utilized by the rv5s_no_fw_hz processor. Storage of * register read indices is added, which are required by the forwarding unit. */ template <unsigned XLEN> class RV5S_IDEX : public IDEX<XLEN> { public: RV5S_IDEX(std::string name, SimComponent* parent) : IDEX<XLEN>(name, parent) { CONNECT_REGISTERED_CLEN_INPUT(rd_reg1_idx, this->clear, this->enable); CONNECT_REGISTERED_CLEN_INPUT(rd_reg2_idx, this->clear, this->enable); CONNECT_REGISTERED_CLEN_INPUT(opcode, this->clear, this->enable); // We want stalling info to persist through clearing of the register, so stalled register is always enabled and // never cleared. CONNECT_REGISTERED_CLEN_INPUT(stalled, 0, 1); } REGISTERED_CLEN_INPUT(rd_reg1_idx, c_RVRegsBits); REGISTERED_CLEN_INPUT(rd_reg2_idx, c_RVRegsBits); REGISTERED_CLEN_INPUT(opcode, RVInstr::width()); REGISTERED_CLEN_INPUT(stalled, 1); }; } // namespace core } // namespace vsrtl
[ "morten_bp@live.dk" ]
morten_bp@live.dk
6214f13882a742bd1a103cb9474efe1176569ec6
4d5d638890bbf0ad5911ec66ecac8ba3ed0ac210
/ComputeLibrary_v1712/src/core/CL/kernels/CLGEMMMatrixMultiplyKernel.cpp
16706dd748b1a23d58c8b3897dc9d26e45f4272a
[ "MIT" ]
permissive
zhaofenqiang/ACLPerformanceTest
9559fca9d09233d7e129a51df0d45830965f0eb3
4d87fde6eef44573c8501be78dbc9ddbd196550d
refs/heads/master
2021-05-02T01:39:54.938650
2018-03-06T09:47:08
2018-03-06T09:47:08
120,872,710
2
0
null
null
null
null
UTF-8
C++
false
false
10,765
cpp
/* * Copyright (c) 2017 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ #include "arm_compute/core/CL/kernels/CLGEMMMatrixMultiplyKernel.h" #include "arm_compute/core/AccessWindowStatic.h" #include "arm_compute/core/AccessWindowTranspose.h" #include "arm_compute/core/CL/CLHelpers.h" #include "arm_compute/core/CL/CLKernelLibrary.h" #include "arm_compute/core/CL/ICLTensor.h" #include "arm_compute/core/CL/OpenCL.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/FixedPoint.h" #include "arm_compute/core/Helpers.h" #include "arm_compute/core/Types.h" #include "arm_compute/core/Utils.h" #include "arm_compute/core/Validate.h" #include "arm_compute/core/Window.h" #include <set> #include <string> using namespace arm_compute; CLGEMMMatrixMultiplyKernel::CLGEMMMatrixMultiplyKernel() : _input0(nullptr), _input1(nullptr), _output(nullptr) { } void CLGEMMMatrixMultiplyKernel::configure(const ICLTensor *input0, const ICLTensor *input1, ICLTensor *output, float alpha, bool is_interleaved_transposed) { ARM_COMPUTE_ERROR_ON_DATA_TYPE_CHANNEL_NOT_IN(input0, 1, DataType::QS8, DataType::QS16, DataType::F16, DataType::F32); ARM_COMPUTE_ERROR_ON_MISMATCHING_DATA_TYPES(input0, input1, output); ARM_COMPUTE_ERROR_ON_MISMATCHING_FIXED_POINT(input0, input1, output); if(!is_interleaved_transposed) { ARM_COMPUTE_ERROR_ON(input0->info()->dimension(0) != input1->info()->dimension(1)); } _input0 = input0; _input1 = input1; _output = output; const DataType data_type = input0->info()->data_type(); const int fp_pos = input0->info()->fixed_point_position(); // Get target architecture GPUTarget arch_target = get_arch_from_target(get_target()); // Configure LWS hint if(arch_target == GPUTarget::BIFROST && input1->info()->dimension(1) == 24) { // LWS optimized for the 11x11 AlexNet convolution on Bifrost. _lws_hint = cl::NDRange(2, 2); } else if(output->info()->dimension(1) == 196) { _lws_hint = cl::NDRange(1, 7); } else { _lws_hint = cl::NDRange(8, 8); } // Create build options CLBuildOptions build_opts; build_opts.add_option_if(is_data_type_fixed_point(data_type), "-DFIXED_POINT_POSITION=" + support::cpp11::to_string(fp_pos)); const bool multiply_alpha = std::abs(1.0f - alpha) > 0.00001f; // Only define ALPHA when alpha is not 1.0f. This avoids performing unnecessary multiplications. if(multiply_alpha) { build_opts.add_option_if_else(is_data_type_fixed_point(data_type), "-DALPHA=" + support::cpp11::to_string((data_type == DataType::QS8 ? sqcvt_qs8_f32(alpha, fp_pos) : sqcvt_qs16_f32(alpha, fp_pos))), "-DALPHA=" + float_to_string_with_full_precision(alpha)); } std::string kernel_name; if(is_interleaved_transposed) { build_opts.add_option("-DCOLS_B=" + support::cpp11::to_string(input1->info()->dimension(0))); if(data_type == DataType::F32) { kernel_name = "gemm_mm_interleaved_transposed_f32_" + string_from_target(arch_target); } else { kernel_name = "gemm_mm_interleaved_transposed_" + lower_string(string_from_data_type(data_type)); } // Configure kernel window const unsigned int num_elems_processed_per_iteration_x = max_cl_vector_width / data_size_from_type(data_type); constexpr unsigned int num_elems_processed_per_iteration_y = 4; Window win = calculate_max_window(*output->info(), Steps(num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y)); AccessWindowRectangle input0_access(input0->info(), 0, 0, num_elems_processed_per_iteration_y, 1, 1.f, 0.25f); AccessWindowTranspose input1_access(input1->info(), 0, 0, num_elems_processed_per_iteration_x, 1, 0.f, 0.25f); AccessWindowRectangle output_access(output->info(), 0, 0, num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y); update_window_and_padding(win, input0_access, input1_access, output_access); output_access.set_valid_region(win, ValidRegion(Coordinates(0, 0), output->info()->tensor_shape())); ICLKernel::configure(win); } else // The input tensors have not been reshaped { build_opts.add_option("-DCOLS_A=" + support::cpp11::to_string(input0->info()->dimension(0))); // Special case for 1xN, 2xN, 3xN and 4xN input0 tensor. num_elems_processed_per_iteration_x is set up for the default case. unsigned int num_elems_processed_per_iteration_x = max_cl_vector_width / data_size_from_type(data_type); const unsigned int num_elems_processed_per_iteration_y = std::min(static_cast<int>(output->info()->dimension(1)), 4); // Create kernels according to the architecture, data type and input size. if(arch_target == GPUTarget::BIFROST && data_type == DataType::F32) { // The first kernel is optimized for the case of 1000 or less output elements (e.g. FC8 of AlexNet and VGG-16, and // FC1 of Inception v3). The second kernel is optimized for the case of greater than 1000 output elements (e.g. // FC6 and FC7 of AlexNet and VGG-16). if(input1->info()->dimension(0) <= 1000) { // Each work-item processes 2 elements in the X dimension. num_elems_processed_per_iteration_x = 2; kernel_name = "gemm_mm_floating_point_f32_bifrost_1000"; } else { // Each work-item processes 4 elements in the X dimension (as in the default case). num_elems_processed_per_iteration_x = 4; kernel_name = "gemm_mm_floating_point_f32_bifrost"; } // The work-group size equal to the Bifrost quad size has been proved to be optimal for these kernels // via exhaustive autotuning over a range of representative layer configurations. _lws_hint = cl::NDRange(4); } else if(is_data_type_fixed_point(data_type)) { kernel_name = "gemm_mm_" + lower_string(string_from_data_type(data_type)); } else // (MIDGARD and F32) or (F16) { build_opts.add_option("-DDATA_TYPE=" + get_cl_type_from_data_type(data_type)); kernel_name = "gemm_mm_floating_point"; } build_opts.add_option("-DNUM_ELEMS_PROCESSED_PER_THREAD_Y=" + support::cpp11::to_string(num_elems_processed_per_iteration_y)); build_opts.add_option("-DNUM_ELEMS_PROCESSED_PER_THREAD_X=" + support::cpp11::to_string(num_elems_processed_per_iteration_x)); // Configure window Window win = calculate_max_window(*output->info(), Steps(num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y)); AccessWindowStatic input0_access(input0->info(), 0, 0, input0->info()->dimension(0), ceil_to_multiple(input0->info()->dimension(1), num_elems_processed_per_iteration_y)); AccessWindowStatic input1_access(input1->info(), 0, 0, ceil_to_multiple(input1->info()->dimension(0), num_elems_processed_per_iteration_x), input1->info()->dimension(1)); AccessWindowRectangle output_access(output->info(), 0, 0, num_elems_processed_per_iteration_x, num_elems_processed_per_iteration_y); update_window_and_padding(win, input0_access, input1_access, output_access); Coordinates coord; coord.set_num_dimensions(output->info()->num_dimensions()); output_access.set_valid_region(win, ValidRegion(coord, output->info()->tensor_shape())); ICLKernel::configure(win); } // Create kernel _kernel = static_cast<cl::Kernel>(CLKernelLibrary::get().create_kernel(kernel_name, build_opts.options())); // Set config_id for enabling LWS tuning _config_id = "gemm_"; _config_id += (is_interleaved_transposed ? "reshaped_" : ""); _config_id += lower_string(string_from_data_type(input0->info()->data_type())); _config_id += "_"; _config_id += support::cpp11::to_string(output->info()->dimension(1)); _config_id += "_"; _config_id += support::cpp11::to_string(output->info()->dimension(0)); _config_id += "_"; _config_id += (is_interleaved_transposed ? support::cpp11::to_string(input1->info()->dimension(0)) : support::cpp11::to_string(input1->info()->dimension(1))); } void CLGEMMMatrixMultiplyKernel::run(const Window &window, cl::CommandQueue &queue) { ARM_COMPUTE_ERROR_ON_UNCONFIGURED_KERNEL(this); ARM_COMPUTE_ERROR_ON_INVALID_SUBWINDOW(ICLKernel::window(), window); Window slice = window.first_slice_window_2D(); Window slice_matrix_b = slice; slice_matrix_b.set(Window::DimX, Window::Dimension(0, 1, 1)); slice_matrix_b.set(Window::DimY, Window::Dimension(0, 1, 1)); do { Window slice_b = slice; // Don't slice matrix B along the z dimension if matrix B has just 2 dimensions and matrix A more than 2 // This scenario can happen when the the matrix multiplication is used to perform a convolution operation if(_input1->info()->num_dimensions() < 3) { slice_b = slice_matrix_b; } unsigned int idx = 0; add_2D_tensor_argument(idx, _input0, slice); add_2D_tensor_argument(idx, _input1, slice_b); add_2D_tensor_argument(idx, _output, slice); enqueue(queue, *this, slice, _lws_hint); } while(window.slide_window_slice_2D(slice)); }
[ "773974336@qq.com" ]
773974336@qq.com
7a9ba100e101517aead7b1c7b8887c75f3b74a34
f47aa2eb5c072054df24291f0d54c9a92935e213
/Assert.cpp
eb42b211d5db58d226aa475074fcbd02158f74e3
[]
no_license
PhamTDuc/C-Quicktips
6ada4e89c54e63c2db29be9e23de9ef20511ea44
2862514abf53d0aed8848ca05d4a9594434dd2c0
refs/heads/master
2021-06-27T13:17:46.729514
2021-01-13T09:44:07
2021-01-13T09:44:07
204,173,295
0
0
null
null
null
null
UTF-8
C++
false
false
173
cpp
#include <iostream> #include <cassert> //static_assert(1>10,"Compile time Error."); int main(int argc, char const *argv[]) { assert(2<-2 && "Runtime Error"); return 0; }
[ "phamduc0701@gmail.com" ]
phamduc0701@gmail.com
42764e8ea466d22fc59b7859cce4e749912a0229
e0a61cc2b240328c342d56ad7b5a0d3251ab95db
/src/testevaluation.cpp
6d61709cab7f26aa06bf6a626c3525afd4cd9bec
[ "Apache-2.0" ]
permissive
huleiak47/game-gobang
5d051037b6c02628f818a8fe41b0f02fb2c1b87f
1d8fcdba1476f3e22faa7b9183f4a641a622e405
refs/heads/master
2021-01-19T00:05:48.053631
2016-12-10T10:33:03
2016-12-10T10:33:03
47,304,374
0
0
null
null
null
null
UTF-8
C++
false
false
1,461
cpp
#include <iostream> #include "evaluation.h" #include "checkerboard.h" //#include "testdata.h" uint8_t g_board[15][15] = { { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 1, 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0xff, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, }; void init_checkerboard(checkerboard& board) { for (int x = 0; x < 15; ++x) { for (int y = 0; y < 15; ++y) { board.setpiece(x, y, g_board[x][y]); } } } int main(int argc, char** argv) { checkerboard& board = checkerboard::getinstance(); init_checkerboard(board); cout << "black side: " << evaluate_checkerboard(board, checkerboard::PIECE_BLACK) << endl; cout << "white side: " << evaluate_checkerboard(board, checkerboard::PIECE_WHITE) << endl; return 0; }
[ "huleiak47@gmail.com" ]
huleiak47@gmail.com
5258709a72e9cf49b1610b48d59ce76df2270fc1
749e6814d6488aea461676385780d847e07fd380
/Core/tests/EventsExtension.cpp
f262c66d1503b93e46ca64b096b4fce09f741fb2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
4ian/GDevelop
258a007a2aa74bfd97c75a6c1753bc3fd48e634f
134886eedcfaeaa04139463aaf826b71c11819c5
refs/heads/master
2023-08-18T23:14:56.149709
2023-08-18T20:39:40
2023-08-18T20:39:40
21,331,090
4,722
748
NOASSERTION
2023-09-14T21:40:54
2014-06-29T19:58:38
JavaScript
UTF-8
C++
false
false
2,613
cpp
/* * GDevelop Core * Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights * reserved. This project is released under the MIT License. */ /** * @file Tests covering events-based extensions */ #include "GDCore/IDE/WholeProjectRefactorer.h" #include <algorithm> #include <stdexcept> #include "DummyPlatform.h" #include "GDCore/Events/Builtin/LinkEvent.h" #include "GDCore/Events/Builtin/StandardEvent.h" #include "GDCore/Events/Event.h" #include "GDCore/Extensions/Metadata/MetadataProvider.h" #include "GDCore/Extensions/Metadata/ParameterMetadataTools.h" #include "GDCore/Extensions/Platform.h" #include "GDCore/Extensions/PlatformExtension.h" #include "GDCore/IDE/UnfilledRequiredBehaviorPropertyProblem.h" #include "GDCore/Project/Behavior.h" #include "GDCore/Project/EventsFunctionsExtension.h" #include "GDCore/Project/ExternalEvents.h" #include "GDCore/Project/ExternalLayout.h" #include "GDCore/Project/Layout.h" #include "GDCore/Project/Object.h" #include "GDCore/Project/Project.h" #include "GDCore/Project/Variable.h" #include "catch.hpp" namespace { gd::EventsFunctionsExtension & SetupProjectWithEventsFunctionExtension(gd::Project &project) { auto &eventsExtension = project.InsertNewEventsFunctionsExtension("MyEventsExtension", 0); // Add an events-based behavior { auto &eventsBasedBehavior = eventsExtension.GetEventsBasedBehaviors().InsertNew( "MyEventsBasedBehavior", 0); eventsBasedBehavior.SetFullName("My events based behavior"); eventsBasedBehavior.SetDescription("An events based behavior for test"); // Add a property eventsBasedBehavior.GetPropertyDescriptors() .InsertNew("MyProperty", 0) .SetValue("123") .SetType("Number"); } return eventsExtension; } } // namespace TEST_CASE("Events-based extension", "[common]") { SECTION("Behavior property default value") { gd::Project project; gd::Platform platform; SetupProjectWithDummyPlatform(project, platform); auto &eventsExtension = SetupProjectWithEventsFunctionExtension(project); auto &layout1 = project.InsertNewLayout("Layout1", 0); auto &object = layout1.InsertNewObject(project, "MyExtension::Sprite", "Object1", 0); // Attach a behavior to an object. auto *behavior = object.AddNewBehavior(project, "MyEventsExtension::MyEventsBasedBehavior", "MyEventsBasedBehavior"); behavior->InitializeContent(); // The behavior has the default value. REQUIRE(behavior->GetProperties().size() == 1); REQUIRE(behavior->GetProperties().at("MyProperty").GetValue() == "123"); } }
[ "noreply@github.com" ]
4ian.noreply@github.com
6d5a7bfe79cefb425de135b4b6d3ececa0ee19a5
6484f4d0bd1bd429f4ce373c2b43d4de09b3cd64
/src/qt/notificator.h
d9348a5dec94dc916e06d4bfd902a6fd8cb9be12
[ "MIT" ]
permissive
seduscoin/seduscoin
2c4b138374b7066dc85e0ea371111b9fb98672d7
a584075870d4adca3c7b545e1a4a9b88bdaade9f
refs/heads/master
2020-03-30T23:38:07.018445
2018-10-05T13:53:43
2018-10-05T13:53:43
148,973,399
0
0
null
null
null
null
UTF-8
C++
false
false
2,876
h
// Copyright (c) 2011-2015 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #ifndef BITCOIN_QT_NOTIFICATOR_H #define BITCOIN_QT_NOTIFICATOR_H #if defined(HAVE_CONFIG_H) #include "config/sedus-config.h" #endif #include <QIcon> #include <QObject> QT_BEGIN_NAMESPACE class QSystemTrayIcon; #ifdef USE_DBUS class QDBusInterface; #endif QT_END_NAMESPACE /** Cross-platform desktop notification client. */ class Notificator: public QObject { Q_OBJECT public: /** Create a new notificator. @note Ownership of trayIcon is not transferred to this object. */ Notificator(const QString &programName, QSystemTrayIcon *trayIcon, QWidget *parent); ~Notificator(); // Message class enum Class { Information, /**< Informational message */ Warning, /**< Notify user of potential problem */ Critical /**< An error occurred */ }; public Q_SLOTS: /** Show notification message. @param[in] cls general message class @param[in] title title shown with message @param[in] text message content @param[in] icon optional icon to show with message @param[in] millisTimeout notification timeout in milliseconds (defaults to 10 seconds) @note Platform implementations are free to ignore any of the provided fields except for \a text. */ void notify(Class cls, const QString &title, const QString &text, const QIcon &icon = QIcon(), int millisTimeout = 10000); private: QWidget *parent; enum Mode { None, /**< Ignore informational notifications, and show a modal pop-up dialog for Critical notifications. */ Freedesktop, /**< Use DBus org.freedesktop.Notifications */ QSystemTray, /**< Use QSystemTray::showMessage */ Growl12, /**< Use the Growl 1.2 notification system (Mac only) */ Growl13, /**< Use the Growl 1.3 notification system (Mac only) */ UserNotificationCenter /**< Use the 10.8+ User Notification Center (Mac only) */ }; QString programName; Mode mode; QSystemTrayIcon *trayIcon; #ifdef USE_DBUS QDBusInterface *interface; void notifyDBus(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout); #endif void notifySystray(Class cls, const QString &title, const QString &text, const QIcon &icon, int millisTimeout); #ifdef Q_OS_MAC void notifyGrowl(Class cls, const QString &title, const QString &text, const QIcon &icon); void notifyMacUserNotificationCenter(Class cls, const QString &title, const QString &text, const QIcon &icon); #endif }; #endif // BITCOIN_QT_NOTIFICATOR_H
[ "43329933+seduscoin@users.noreply.github.com" ]
43329933+seduscoin@users.noreply.github.com
8f68a906ad12ad998ce4ef177f432a912aaef202
5e95e1a37fdb4713c5eb30bfbf1e5be2cf311915
/src/UniverseAdvanced/OfficePlus/WordPlus/msword.h
458df269634468ad0169961658bd460f1c050e8f
[]
no_license
CycCoder/OpenUniverse
bd489d2be99665ce702c31b1aae74c66f8ab7490
cba537a9fedb7ea1f31637a813283e9226f82f33
refs/heads/master
2023-04-03T00:43:09.523448
2021-02-02T00:11:51
2021-02-02T00:11:51
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,211,347
h
/******************************************************************************** * Web Runtime for Application - Version 1.0.0.202102020022 ******************************************************************************** * Copyright (C) 2002-2021 by Tangram Team. All Rights Reserved. * There are Three Key Features of Webruntime: * 1. Built-in Modern Web Browser; * 2. DOM Plus: DOMPlus is a natural extension of the standard DOM system. * It allows the application system to support a kind of generalized web pages, * which are composed of standard DOM elements and binary components supported * by the application system; * 3. JavaScript for Application: Similar to VBA in MS office, JavaScript will * become a built-in programmable language in the application system, so that * the application system can be expanded and developed for the Internet based * on modern javscript/Web technology. // Use of this source code is governed by a BSD-style license that // can be found in the LICENSE file. * * CONTACT INFORMATION: * mailto:tangramteam@outlook.com or mailto:sunhuizlz@yeah.net * https://www.tangram.dev * *******************************************************************************/ // Created by Microsoft (R) C/C++ Compiler Version 15.00.21022.08 (cd9e3377). // C++ source equivalent of Win32 type library C:\Program Files\Microsoft Office\Office15\MSWORD.OLB // compiler-generated file created 08/05/12 at 15:16:47 - DO NOT EDIT! // // Cross-referenced type libraries: // #include "mso.h" // #pragma once #pragma pack(push, 8) #include <comdef.h> namespace Word { // // Forward references and typedefs // struct __declspec(uuid("00020905-0000-0000-c000-000000000046")) /* LIBID */ __Word; enum WdMailSystem; enum WdTemplateType; enum WdContinue; enum WdIMEMode; enum WdBaselineAlignment; enum WdIndexFilter; enum WdIndexSortBy; enum WdJustificationMode; enum WdFarEastLineBreakLevel; enum WdMultipleWordConversionsMode; enum WdColorIndex; enum WdTextureIndex; enum WdUnderline; enum WdEmphasisMark; enum WdInternationalIndex; enum WdAutoMacros; enum WdCaptionPosition; enum WdCountry; enum WdHeadingSeparator; enum WdSeparatorType; enum WdPageNumberAlignment; enum WdBorderType; enum WdBorderTypeHID; enum WdFramePosition; enum WdAnimation; enum WdCharacterCase; enum WdCharacterCaseHID; enum WdSummaryMode; enum WdSummaryLength; enum WdStyleType; enum WdUnits; enum WdGoToItem; enum WdGoToDirection; enum WdCollapseDirection; enum WdRowHeightRule; enum WdFrameSizeRule; enum WdInsertCells; enum WdDeleteCells; enum WdListApplyTo; enum WdAlertLevel; enum WdCursorType; enum WdEnableCancelKey; enum WdRulerStyle; enum WdParagraphAlignment; enum WdParagraphAlignmentHID; enum WdListLevelAlignment; enum WdRowAlignment; enum WdTabAlignment; enum WdVerticalAlignment; enum WdCellVerticalAlignment; enum WdTrailingCharacter; enum WdListGalleryType; enum WdListNumberStyle; enum WdListNumberStyleHID; enum WdNoteNumberStyle; enum WdNoteNumberStyleHID; enum WdCaptionNumberStyle; enum WdCaptionNumberStyleHID; enum WdPageNumberStyle; enum WdPageNumberStyleHID; enum WdStatistic; enum WdStatisticHID; enum WdBuiltInProperty; enum WdLineSpacing; enum WdNumberType; enum WdListType; enum WdStoryType; enum WdSaveFormat; enum WdOpenFormat; enum WdHeaderFooterIndex; enum WdTocFormat; enum WdTofFormat; enum WdToaFormat; enum WdLineStyle; enum WdLineWidth; enum WdBreakType; enum WdTabLeader; enum WdTabLeaderHID; enum WdMeasurementUnits; enum WdMeasurementUnitsHID; enum WdDropPosition; enum WdNumberingRule; enum WdFootnoteLocation; enum WdEndnoteLocation; enum WdSortSeparator; enum WdTableFieldSeparator; enum WdSortFieldType; enum WdSortFieldTypeHID; enum WdSortOrder; enum WdTableFormat; enum WdTableFormatApply; enum WdLanguageID; enum WdFieldType; enum WdBuiltinStyle; enum WdWordDialogTab; enum WdWordDialogTabHID; enum WdWordDialog; enum WdWordDialogHID; enum WdFieldKind; enum WdTextFormFieldType; enum WdChevronConvertRule; enum WdMailMergeMainDocType; enum WdMailMergeState; enum WdMailMergeDestination; enum WdMailMergeActiveRecord; enum WdMailMergeDefaultRecord; enum WdMailMergeDataSource; enum WdMailMergeComparison; enum WdBookmarkSortBy; enum WdWindowState; enum WdPictureLinkType; enum WdLinkType; enum WdWindowType; enum WdViewType; enum WdSeekView; enum WdSpecialPane; enum WdPageFit; enum WdBrowseTarget; enum WdPaperTray; enum WdOrientation; enum WdSelectionType; enum WdCaptionLabelID; enum WdReferenceType; enum WdReferenceKind; enum WdIndexFormat; enum WdIndexType; enum WdRevisionsWrap; enum WdRevisionType; enum WdRoutingSlipDelivery; enum WdRoutingSlipStatus; enum WdSectionStart; enum WdSaveOptions; enum WdDocumentKind; enum WdDocumentType; enum WdOriginalFormat; enum WdRelocate; enum WdInsertedTextMark; enum WdRevisedLinesMark; enum WdDeletedTextMark; enum WdRevisedPropertiesMark; enum WdFieldShading; enum WdDefaultFilePath; enum WdCompatibility; enum WdPaperSize; enum WdCustomLabelPageSize; enum WdProtectionType; enum WdPartOfSpeech; enum WdSubscriberFormats; enum WdEditionType; enum WdEditionOption; enum WdRelativeHorizontalPosition; enum WdRelativeVerticalPosition; enum WdHelpType; enum WdHelpTypeHID; enum WdKeyCategory; enum WdKey; enum WdOLEType; enum WdOLEVerb; enum WdOLEPlacement; enum WdEnvelopeOrientation; enum WdLetterStyle; enum WdLetterheadLocation; enum WdSalutationType; enum WdSalutationGender; enum WdMovementType; enum WdConstants; enum WdPasteDataType; enum WdPrintOutItem; enum WdPrintOutPages; enum WdPrintOutRange; enum WdDictionaryType; enum WdDictionaryTypeHID; enum WdSpellingWordType; enum WdSpellingErrorType; enum WdProofreadingErrorType; enum WdInlineShapeType; enum WdArrangeStyle; enum WdSelectionFlags; enum WdAutoVersions; enum WdOrganizerObject; enum WdFindMatch; enum WdFindWrap; enum WdInformation; enum WdWrapType; enum WdWrapSideType; enum WdOutlineLevel; enum WdTextOrientation; enum WdTextOrientationHID; enum WdPageBorderArt; enum WdBorderDistanceFrom; enum WdReplace; enum WdFontBias; struct __declspec(uuid("00020970-0000-0000-c000-000000000046")) /* dual interface */ _Application; struct __declspec(uuid("000209b9-0000-0000-c000-000000000046")) /* dual interface */ _WordGlobal; struct __declspec(uuid("0002096f-0000-0000-c000-000000000046")) /* dual interface */ FontNames; struct __declspec(uuid("0002096e-0000-0000-c000-000000000046")) /* dual interface */ Languages; struct __declspec(uuid("0002096d-0000-0000-c000-000000000046")) /* dual interface */ Language; struct __declspec(uuid("0002096c-0000-0000-c000-000000000046")) /* dual interface */ Documents; struct __declspec(uuid("0002096b-0000-0000-c000-000000000046")) /* dual interface */ _Document; struct __declspec(uuid("0002096a-0000-0000-c000-000000000046")) /* dual interface */ Template; struct __declspec(uuid("000209a2-0000-0000-c000-000000000046")) /* dual interface */ Templates; struct __declspec(uuid("00020969-0000-0000-c000-000000000046")) /* dual interface */ RoutingSlip; struct __declspec(uuid("00020968-0000-0000-c000-000000000046")) /* dual interface */ Bookmark; struct __declspec(uuid("00020967-0000-0000-c000-000000000046")) /* dual interface */ Bookmarks; struct __declspec(uuid("00020966-0000-0000-c000-000000000046")) /* dual interface */ Variable; struct __declspec(uuid("00020965-0000-0000-c000-000000000046")) /* dual interface */ Variables; struct __declspec(uuid("00020964-0000-0000-c000-000000000046")) /* dual interface */ RecentFile; struct __declspec(uuid("00020963-0000-0000-c000-000000000046")) /* dual interface */ RecentFiles; struct __declspec(uuid("00020962-0000-0000-c000-000000000046")) /* dual interface */ Window; struct __declspec(uuid("00020961-0000-0000-c000-000000000046")) /* dual interface */ Windows; struct __declspec(uuid("00020960-0000-0000-c000-000000000046")) /* dual interface */ Pane; struct __declspec(uuid("0002095f-0000-0000-c000-000000000046")) /* dual interface */ Panes; struct __declspec(uuid("0002095e-0000-0000-c000-000000000046")) /* dual interface */ Range; struct __declspec(uuid("000209c0-0000-0000-c000-000000000046")) /* dual interface */ ListFormat; struct __declspec(uuid("000209b0-0000-0000-c000-000000000046")) /* dual interface */ Find; struct __declspec(uuid("000209b1-0000-0000-c000-000000000046")) /* dual interface */ Replacement; struct __declspec(uuid("0002095d-0000-0000-c000-000000000046")) /* dual interface */ Characters; struct __declspec(uuid("0002095c-0000-0000-c000-000000000046")) /* dual interface */ Words; struct __declspec(uuid("0002095b-0000-0000-c000-000000000046")) /* dual interface */ Sentences; struct __declspec(uuid("0002095a-0000-0000-c000-000000000046")) /* dual interface */ Sections; struct __declspec(uuid("00020959-0000-0000-c000-000000000046")) /* dual interface */ Section; struct __declspec(uuid("00020958-0000-0000-c000-000000000046")) /* dual interface */ Paragraphs; struct __declspec(uuid("00020957-0000-0000-c000-000000000046")) /* dual interface */ Paragraph; struct __declspec(uuid("00020956-0000-0000-c000-000000000046")) /* dual interface */ DropCap; struct __declspec(uuid("00020955-0000-0000-c000-000000000046")) /* dual interface */ TabStops; struct __declspec(uuid("00020954-0000-0000-c000-000000000046")) /* dual interface */ TabStop; struct __declspec(uuid("00020953-0000-0000-c000-000000000046")) /* dual interface */ _ParagraphFormat; struct __declspec(uuid("00020952-0000-0000-c000-000000000046")) /* dual interface */ _Font; struct __declspec(uuid("00020951-0000-0000-c000-000000000046")) /* dual interface */ Table; struct __declspec(uuid("00020950-0000-0000-c000-000000000046")) /* dual interface */ Row; struct __declspec(uuid("0002094f-0000-0000-c000-000000000046")) /* dual interface */ Column; struct __declspec(uuid("0002094e-0000-0000-c000-000000000046")) /* dual interface */ Cell; struct __declspec(uuid("0002094d-0000-0000-c000-000000000046")) /* dual interface */ Tables; struct __declspec(uuid("0002094c-0000-0000-c000-000000000046")) /* dual interface */ Rows; struct __declspec(uuid("0002094b-0000-0000-c000-000000000046")) /* dual interface */ Columns; struct __declspec(uuid("0002094a-0000-0000-c000-000000000046")) /* dual interface */ Cells; struct __declspec(uuid("00020949-0000-0000-c000-000000000046")) /* dual interface */ AutoCorrect; struct __declspec(uuid("00020948-0000-0000-c000-000000000046")) /* dual interface */ AutoCorrectEntries; struct __declspec(uuid("00020947-0000-0000-c000-000000000046")) /* dual interface */ AutoCorrectEntry; struct __declspec(uuid("00020946-0000-0000-c000-000000000046")) /* dual interface */ FirstLetterExceptions; struct __declspec(uuid("00020945-0000-0000-c000-000000000046")) /* dual interface */ FirstLetterException; struct __declspec(uuid("00020944-0000-0000-c000-000000000046")) /* dual interface */ TwoInitialCapsExceptions; struct __declspec(uuid("00020943-0000-0000-c000-000000000046")) /* dual interface */ TwoInitialCapsException; struct __declspec(uuid("00020942-0000-0000-c000-000000000046")) /* dual interface */ Footnotes; struct __declspec(uuid("00020941-0000-0000-c000-000000000046")) /* dual interface */ Endnotes; struct __declspec(uuid("00020940-0000-0000-c000-000000000046")) /* dual interface */ Comments; struct __declspec(uuid("0002093f-0000-0000-c000-000000000046")) /* dual interface */ Footnote; struct __declspec(uuid("0002093e-0000-0000-c000-000000000046")) /* dual interface */ Endnote; struct __declspec(uuid("0002093d-0000-0000-c000-000000000046")) /* dual interface */ Comment; struct __declspec(uuid("0002093c-0000-0000-c000-000000000046")) /* dual interface */ Borders; struct __declspec(uuid("0002093b-0000-0000-c000-000000000046")) /* dual interface */ Border; struct __declspec(uuid("0002093a-0000-0000-c000-000000000046")) /* dual interface */ Shading; struct __declspec(uuid("00020939-0000-0000-c000-000000000046")) /* dual interface */ TextRetrievalMode; struct __declspec(uuid("00020937-0000-0000-c000-000000000046")) /* dual interface */ AutoTextEntries; struct __declspec(uuid("00020936-0000-0000-c000-000000000046")) /* dual interface */ AutoTextEntry; struct __declspec(uuid("00020935-0000-0000-c000-000000000046")) /* dual interface */ System; struct __declspec(uuid("00020933-0000-0000-c000-000000000046")) /* dual interface */ OLEFormat; struct __declspec(uuid("00020931-0000-0000-c000-000000000046")) /* dual interface */ LinkFormat; struct __declspec(uuid("000209a4-0000-0000-c000-000000000046")) /* dual interface */ _OLEControl; struct __declspec(uuid("00020930-0000-0000-c000-000000000046")) /* dual interface */ Fields; struct __declspec(uuid("0002092f-0000-0000-c000-000000000046")) /* dual interface */ Field; struct __declspec(uuid("0002092e-0000-0000-c000-000000000046")) /* dual interface */ Browser; struct __declspec(uuid("0002092d-0000-0000-c000-000000000046")) /* dual interface */ Styles; struct __declspec(uuid("0002092c-0000-0000-c000-000000000046")) /* dual interface */ Style; struct __declspec(uuid("0002092b-0000-0000-c000-000000000046")) /* dual interface */ Frames; struct __declspec(uuid("0002092a-0000-0000-c000-000000000046")) /* dual interface */ Frame; struct __declspec(uuid("00020929-0000-0000-c000-000000000046")) /* dual interface */ FormFields; struct __declspec(uuid("00020928-0000-0000-c000-000000000046")) /* dual interface */ FormField; struct __declspec(uuid("00020927-0000-0000-c000-000000000046")) /* dual interface */ TextInput; struct __declspec(uuid("00020926-0000-0000-c000-000000000046")) /* dual interface */ CheckBox; struct __declspec(uuid("00020925-0000-0000-c000-000000000046")) /* dual interface */ DropDown; struct __declspec(uuid("00020924-0000-0000-c000-000000000046")) /* dual interface */ ListEntries; struct __declspec(uuid("00020923-0000-0000-c000-000000000046")) /* dual interface */ ListEntry; struct __declspec(uuid("00020922-0000-0000-c000-000000000046")) /* dual interface */ TablesOfFigures; struct __declspec(uuid("00020921-0000-0000-c000-000000000046")) /* dual interface */ TableOfFigures; struct __declspec(uuid("00020920-0000-0000-c000-000000000046")) /* dual interface */ MailMerge; struct __declspec(uuid("0002091f-0000-0000-c000-000000000046")) /* dual interface */ MailMergeFields; struct __declspec(uuid("0002091e-0000-0000-c000-000000000046")) /* dual interface */ MailMergeField; struct __declspec(uuid("0002091d-0000-0000-c000-000000000046")) /* dual interface */ MailMergeDataSource; struct __declspec(uuid("0002091c-0000-0000-c000-000000000046")) /* dual interface */ MailMergeFieldNames; struct __declspec(uuid("0002091b-0000-0000-c000-000000000046")) /* dual interface */ MailMergeFieldName; struct __declspec(uuid("0002091a-0000-0000-c000-000000000046")) /* dual interface */ MailMergeDataFields; struct __declspec(uuid("00020919-0000-0000-c000-000000000046")) /* dual interface */ MailMergeDataField; struct __declspec(uuid("00020918-0000-0000-c000-000000000046")) /* dual interface */ Envelope; struct __declspec(uuid("00020917-0000-0000-c000-000000000046")) /* dual interface */ MailingLabel; struct __declspec(uuid("00020916-0000-0000-c000-000000000046")) /* dual interface */ CustomLabels; struct __declspec(uuid("00020915-0000-0000-c000-000000000046")) /* dual interface */ CustomLabel; struct __declspec(uuid("00020914-0000-0000-c000-000000000046")) /* dual interface */ TablesOfContents; struct __declspec(uuid("00020913-0000-0000-c000-000000000046")) /* dual interface */ TableOfContents; struct __declspec(uuid("00020912-0000-0000-c000-000000000046")) /* dual interface */ TablesOfAuthorities; struct __declspec(uuid("00020911-0000-0000-c000-000000000046")) /* dual interface */ TableOfAuthorities; struct __declspec(uuid("00020910-0000-0000-c000-000000000046")) /* dual interface */ Dialogs; struct __declspec(uuid("000209b8-0000-0000-c000-000000000046")) /* dual interface */ Dialog; struct __declspec(uuid("00020971-0000-0000-c000-000000000046")) /* dual interface */ PageSetup; struct __declspec(uuid("00020972-0000-0000-c000-000000000046")) /* dual interface */ LineNumbering; struct __declspec(uuid("00020973-0000-0000-c000-000000000046")) /* dual interface */ TextColumns; struct __declspec(uuid("00020974-0000-0000-c000-000000000046")) /* dual interface */ TextColumn; struct __declspec(uuid("00020975-0000-0000-c000-000000000046")) /* dual interface */ Selection; struct __declspec(uuid("00020976-0000-0000-c000-000000000046")) /* dual interface */ TablesOfAuthoritiesCategories; struct __declspec(uuid("00020977-0000-0000-c000-000000000046")) /* dual interface */ TableOfAuthoritiesCategory; struct __declspec(uuid("00020978-0000-0000-c000-000000000046")) /* dual interface */ CaptionLabels; struct __declspec(uuid("00020979-0000-0000-c000-000000000046")) /* dual interface */ CaptionLabel; struct __declspec(uuid("0002097a-0000-0000-c000-000000000046")) /* dual interface */ AutoCaptions; struct __declspec(uuid("0002097b-0000-0000-c000-000000000046")) /* dual interface */ AutoCaption; struct __declspec(uuid("0002097c-0000-0000-c000-000000000046")) /* dual interface */ Indexes; struct __declspec(uuid("0002097d-0000-0000-c000-000000000046")) /* dual interface */ Index; struct __declspec(uuid("0002097e-0000-0000-c000-000000000046")) /* dual interface */ AddIn; struct __declspec(uuid("0002097f-0000-0000-c000-000000000046")) /* dual interface */ AddIns; struct __declspec(uuid("00020980-0000-0000-c000-000000000046")) /* dual interface */ Revisions; struct __declspec(uuid("00020981-0000-0000-c000-000000000046")) /* dual interface */ Revision; struct __declspec(uuid("00020982-0000-0000-c000-000000000046")) /* dual interface */ Task; struct __declspec(uuid("00020983-0000-0000-c000-000000000046")) /* dual interface */ Tasks; struct __declspec(uuid("00020984-0000-0000-c000-000000000046")) /* dual interface */ HeadersFooters; struct __declspec(uuid("00020985-0000-0000-c000-000000000046")) /* dual interface */ HeaderFooter; struct __declspec(uuid("00020986-0000-0000-c000-000000000046")) /* dual interface */ PageNumbers; struct __declspec(uuid("00020987-0000-0000-c000-000000000046")) /* dual interface */ PageNumber; struct __declspec(uuid("00020988-0000-0000-c000-000000000046")) /* dual interface */ Subdocuments; struct __declspec(uuid("00020989-0000-0000-c000-000000000046")) /* dual interface */ Subdocument; struct __declspec(uuid("0002098a-0000-0000-c000-000000000046")) /* dual interface */ HeadingStyles; struct __declspec(uuid("0002098b-0000-0000-c000-000000000046")) /* dual interface */ HeadingStyle; struct __declspec(uuid("0002098c-0000-0000-c000-000000000046")) /* dual interface */ StoryRanges; struct __declspec(uuid("0002098d-0000-0000-c000-000000000046")) /* dual interface */ ListLevel; struct __declspec(uuid("0002098e-0000-0000-c000-000000000046")) /* dual interface */ ListLevels; struct __declspec(uuid("0002098f-0000-0000-c000-000000000046")) /* dual interface */ ListTemplate; struct __declspec(uuid("00020990-0000-0000-c000-000000000046")) /* dual interface */ ListTemplates; struct __declspec(uuid("00020991-0000-0000-c000-000000000046")) /* dual interface */ ListParagraphs; struct __declspec(uuid("00020992-0000-0000-c000-000000000046")) /* dual interface */ List; struct __declspec(uuid("00020993-0000-0000-c000-000000000046")) /* dual interface */ Lists; struct __declspec(uuid("00020994-0000-0000-c000-000000000046")) /* dual interface */ ListGallery; struct __declspec(uuid("00020995-0000-0000-c000-000000000046")) /* dual interface */ ListGalleries; struct __declspec(uuid("00020996-0000-0000-c000-000000000046")) /* dual interface */ KeyBindings; struct __declspec(uuid("00020997-0000-0000-c000-000000000046")) /* dual interface */ KeysBoundTo; struct __declspec(uuid("00020998-0000-0000-c000-000000000046")) /* dual interface */ KeyBinding; struct __declspec(uuid("00020999-0000-0000-c000-000000000046")) /* dual interface */ FileConverter; struct __declspec(uuid("0002099a-0000-0000-c000-000000000046")) /* dual interface */ FileConverters; struct __declspec(uuid("0002099b-0000-0000-c000-000000000046")) /* dual interface */ SynonymInfo; struct __declspec(uuid("0002099c-0000-0000-c000-000000000046")) /* dual interface */ Hyperlinks; struct __declspec(uuid("0002099d-0000-0000-c000-000000000046")) /* dual interface */ Hyperlink; struct __declspec(uuid("0002099f-0000-0000-c000-000000000046")) /* dual interface */ Shapes; struct __declspec(uuid("000209b5-0000-0000-c000-000000000046")) /* dual interface */ ShapeRange; struct __declspec(uuid("000209b6-0000-0000-c000-000000000046")) /* dual interface */ GroupShapes; struct __declspec(uuid("000209a0-0000-0000-c000-000000000046")) /* dual interface */ Shape; struct __declspec(uuid("000209b2-0000-0000-c000-000000000046")) /* dual interface */ TextFrame; struct __declspec(uuid("000209a1-0000-0000-c000-000000000046")) /* dual interface */ _LetterContent; struct __declspec(uuid("000209a5-0000-0000-c000-000000000046")) /* dual interface */ View; struct __declspec(uuid("000209a6-0000-0000-c000-000000000046")) /* dual interface */ Zoom; struct __declspec(uuid("000209a7-0000-0000-c000-000000000046")) /* dual interface */ Zooms; struct __declspec(uuid("000209a8-0000-0000-c000-000000000046")) /* dual interface */ InlineShape; struct __declspec(uuid("000209a9-0000-0000-c000-000000000046")) /* dual interface */ InlineShapes; struct __declspec(uuid("000209aa-0000-0000-c000-000000000046")) /* dual interface */ SpellingSuggestions; struct __declspec(uuid("000209ab-0000-0000-c000-000000000046")) /* dual interface */ SpellingSuggestion; struct __declspec(uuid("000209ac-0000-0000-c000-000000000046")) /* dual interface */ Dictionaries; struct __declspec(uuid("000209e0-0000-0000-c000-000000000046")) /* dual interface */ HangulHanjaConversionDictionaries; struct __declspec(uuid("000209ad-0000-0000-c000-000000000046")) /* dual interface */ Dictionary; struct __declspec(uuid("000209ae-0000-0000-c000-000000000046")) /* dual interface */ ReadabilityStatistics; struct __declspec(uuid("000209af-0000-0000-c000-000000000046")) /* dual interface */ ReadabilityStatistic; struct __declspec(uuid("000209b3-0000-0000-c000-000000000046")) /* dual interface */ Versions; struct __declspec(uuid("000209b4-0000-0000-c000-000000000046")) /* dual interface */ Version; struct __declspec(uuid("000209b7-0000-0000-c000-000000000046")) /* dual interface */ Options; struct __declspec(uuid("000209ba-0000-0000-c000-000000000046")) /* dual interface */ MailMessage; struct __declspec(uuid("000209bb-0000-0000-c000-000000000046")) /* dual interface */ ProofreadingErrors; struct __declspec(uuid("000209bd-0000-0000-c000-000000000046")) /* dual interface */ Mailer; struct __declspec(uuid("000209c3-0000-0000-c000-000000000046")) /* dual interface */ WrapFormat; struct __declspec(uuid("000209d1-0000-0000-c000-000000000046")) /* dual interface */ HangulAndAlphabetExceptions; struct __declspec(uuid("000209d2-0000-0000-c000-000000000046")) /* dual interface */ HangulAndAlphabetException; struct __declspec(uuid("000209c4-0000-0000-c000-000000000046")) /* dual interface */ Adjustments; struct __declspec(uuid("000209c5-0000-0000-c000-000000000046")) /* dual interface */ CalloutFormat; struct __declspec(uuid("000209c6-0000-0000-c000-000000000046")) /* dual interface */ ColorFormat; struct __declspec(uuid("000209c7-0000-0000-c000-000000000046")) /* dual interface */ ConnectorFormat; struct __declspec(uuid("000209c8-0000-0000-c000-000000000046")) /* dual interface */ FillFormat; struct __declspec(uuid("000209c9-0000-0000-c000-000000000046")) /* dual interface */ FreeformBuilder; struct __declspec(uuid("000209ca-0000-0000-c000-000000000046")) /* dual interface */ LineFormat; struct __declspec(uuid("000209cb-0000-0000-c000-000000000046")) /* dual interface */ PictureFormat; struct __declspec(uuid("000209cc-0000-0000-c000-000000000046")) /* dual interface */ ShadowFormat; struct __declspec(uuid("000209cd-0000-0000-c000-000000000046")) /* dual interface */ ShapeNode; struct __declspec(uuid("000209ce-0000-0000-c000-000000000046")) /* dual interface */ ShapeNodes; struct __declspec(uuid("000209cf-0000-0000-c000-000000000046")) /* dual interface */ TextEffectFormat; struct __declspec(uuid("000209d0-0000-0000-c000-000000000046")) /* dual interface */ ThreeDFormat; struct __declspec(uuid("000209f7-0000-0000-c000-000000000046")) /* dispinterface */ ApplicationEvents; struct /* coclass */ WordGlobal; struct /* coclass */ Application; struct __declspec(uuid("000209f6-0000-0000-c000-000000000046")) /* dispinterface */ DocumentEvents; struct /* coclass */ Document; struct /* coclass */ Font; struct /* coclass */ ParagraphFormat; struct __declspec(uuid("000209f3-0000-0000-c000-000000000046")) /* dispinterface */ OCXEvents; struct /* coclass */ OLEControl; struct /* coclass */ LetterContent; struct __declspec(uuid("000209f7-0001-0000-c000-000000000046")) /* dual interface */ IApplicationEvents; struct __declspec(uuid("000209fe-0001-0000-c000-000000000046")) /* dual interface */ IApplicationEvents2; struct __declspec(uuid("000209fe-0000-0000-c000-000000000046")) /* dispinterface */ ApplicationEvents2; enum WdBrowserLevel; enum WdEnclosureType; enum WdEncloseStyle; enum WdHighAnsiText; enum WdLayoutMode; enum WdDocumentMedium; enum WdMailerPriority; enum WdDocumentViewDirection; enum WdArabicNumeral; enum WdMonthNames; enum WdCursorMovement; enum WdVisualSelection; enum WdTableDirection; enum WdFlowDirection; enum WdDiacriticColor; enum WdGutterStyle; enum WdGutterStyleOld; enum WdSectionDirection; enum WdDateLanguage; enum WdCalendarTypeBi; enum WdCalendarType; enum WdReadingOrder; enum WdHebSpellStart; enum WdAraSpeller; enum WdColor; enum WdShapePosition; enum WdTablePosition; enum WdDefaultListBehavior; enum WdDefaultTableBehavior; enum WdAutoFitBehavior; enum WdPreferredWidthType; enum WdFarEastLineBreakLanguageID; enum WdViewTypeOld; enum WdFramesetType; enum WdFramesetSizeType; enum WdFramesetNewFrameLocation; enum WdScrollbarType; enum WdTwoLinesInOneType; enum WdHorizontalInVerticalType; enum WdHorizontalLineAlignment; enum WdHorizontalLineWidthType; enum WdPhoneticGuideAlignmentType; enum WdNewDocumentType; enum WdKana; enum WdCharacterWidth; enum WdNumberStyleWordBasicBiDi; enum WdTCSCConverterDirection; struct __declspec(uuid("000209d7-0000-0000-c000-000000000046")) /* dual interface */ EmailAuthor; struct __declspec(uuid("000209db-0000-0000-c000-000000000046")) /* dual interface */ EmailOptions; struct __declspec(uuid("000209dc-0000-0000-c000-000000000046")) /* dual interface */ EmailSignature; struct __declspec(uuid("000209dd-0000-0000-c000-000000000046")) /* dual interface */ Email; struct __declspec(uuid("000209de-0000-0000-c000-000000000046")) /* dual interface */ HorizontalLineFormat; struct __declspec(uuid("000209e2-0000-0000-c000-000000000046")) /* dual interface */ Frameset; struct __declspec(uuid("000209e3-0000-0000-c000-000000000046")) /* dual interface */ WordDefaultWebOptions; struct __declspec(uuid("000209e4-0000-0000-c000-000000000046")) /* dual interface */ WordWebOptions; struct __declspec(uuid("000209df-0000-0000-c000-000000000046")) /* dual interface */ OtherCorrectionsExceptions; struct __declspec(uuid("000209e1-0000-0000-c000-000000000046")) /* dual interface */ OtherCorrectionsException; struct __declspec(uuid("000209e5-0000-0000-c000-000000000046")) /* dual interface */ EmailSignatureEntries; struct __declspec(uuid("000209e6-0000-0000-c000-000000000046")) /* dual interface */ EmailSignatureEntry; struct __declspec(uuid("000209e7-0000-0000-c000-000000000046")) /* dual interface */ HTMLDivision; struct __declspec(uuid("000209e8-0000-0000-c000-000000000046")) /* dual interface */ HTMLDivisions; struct __declspec(uuid("000209e9-0000-0000-c000-000000000046")) /* dual interface */ DiagramNode; struct __declspec(uuid("000209ea-0000-0000-c000-000000000046")) /* dual interface */ DiagramNodeChildren; struct __declspec(uuid("000209eb-0000-0000-c000-000000000046")) /* dual interface */ DiagramNodes; struct __declspec(uuid("000209ec-0000-0000-c000-000000000046")) /* dual interface */ Diagram; struct __declspec(uuid("b923fde0-f08c-11d3-91b0-00105a0a19fd")) /* dual interface */ CustomProperty; struct __declspec(uuid("b923fde1-f08c-11d3-91b0-00105a0a19fd")) /* dual interface */ CustomProperties; struct __declspec(uuid("000209ed-0000-0000-c000-000000000046")) /* dual interface */ SmartTag; struct __declspec(uuid("000209ee-0000-0000-c000-000000000046")) /* dual interface */ SmartTags; struct __declspec(uuid("000209ef-0000-0000-c000-000000000046")) /* dual interface */ StyleSheet; struct __declspec(uuid("07b7cc7e-e66c-11d3-9454-00105aa31a08")) /* dual interface */ StyleSheets; struct __declspec(uuid("5d311669-ea51-11d3-87cc-00105aa31a34")) /* dual interface */ MappedDataField; struct __declspec(uuid("799a6814-ea41-11d3-87cc-00105aa31a34")) /* dual interface */ MappedDataFields; struct __declspec(uuid("396f9073-f9fd-11d3-8ea0-0050049a1a01")) /* dual interface */ CanvasShapes; struct __declspec(uuid("b7564e97-0519-4c68-b400-3803e7c63242")) /* dual interface */ TableStyle; struct __declspec(uuid("1498f56d-ed33-41f9-b37b-ef30e50b08ac")) /* dual interface */ ConditionalStyle; struct __declspec(uuid("bea85a24-d7da-4f3d-b58c-ed90fb01d615")) /* dual interface */ FootnoteOptions; struct __declspec(uuid("bf043168-f4de-4e7c-b206-741a8b3ef71a")) /* dual interface */ EndnoteOptions; struct __declspec(uuid("12dcdc9a-5418-48a3-bbe6-eb57bae275e8")) /* dual interface */ Reviewers; struct __declspec(uuid("47cef4ae-dc32-4220-8aa5-19ccc0e6633a")) /* dual interface */ Reviewer; struct __declspec(uuid("b9f1a4e2-0d0a-43b7-8495-139e7acbd840")) /* dual interface */ TaskPane; struct __declspec(uuid("e6aaec05-e543-4085-ba92-9bf7d2474f5c")) /* dual interface */ TaskPanes; struct __declspec(uuid("00020a00-0001-0000-c000-000000000046")) /* dual interface */ IApplicationEvents3; struct __declspec(uuid("00020a00-0000-0000-c000-000000000046")) /* dispinterface */ ApplicationEvents3; enum WdDisableFeaturesIntroducedAfter; enum WdWrapTypeMerged; enum WdRecoveryType; enum WdLineEndingType; enum WdStyleSheetLinkType; enum WdStyleSheetPrecedence; enum WdEmailHTMLFidelity; enum WdMailMergeMailFormat; enum WdMappedDataFields; enum WdConditionCode; enum WdCompareTarget; enum WdMergeTarget; enum WdUseFormattingFrom; enum WdRevisionsView; enum WdRevisionsMode; enum WdRevisionsBalloonWidthType; enum WdRevisionsBalloonPrintOrientation; enum WdRevisionsBalloonMargin; enum WdTaskPanes; enum WdShowFilter; enum WdMergeSubType; enum WdDocumentDirection; enum WdLanguageID2000; struct __declspec(uuid("dfb6aa6c-1068-420f-969d-01280fcc1630")) /* dual interface */ SmartTagAction; struct __declspec(uuid("cde12cd8-767b-4757-8a31-13029a086305")) /* dual interface */ SmartTagActions; struct __declspec(uuid("15ebe471-0182-4cce-98d0-b6614d1c32a1")) /* dual interface */ SmartTagRecognizer; struct __declspec(uuid("f2b60a10-ded5-46fb-a914-3c6f4ebb6451")) /* dual interface */ SmartTagRecognizers; struct __declspec(uuid("5e9a888c-e5dc-4dcb-8308-3c91fb61e6f4")) /* dual interface */ SmartTagType; struct __declspec(uuid("db8e3072-e106-4453-8e7c-53056f1d30dc")) /* dual interface */ SmartTagTypes; struct __declspec(uuid("ae6ce2f5-b9d3-407d-85a8-0f10c63289a4")) /* dual interface */ Line; struct __declspec(uuid("e2e8a400-0615-427d-adcc-cad39ffebd42")) /* dual interface */ Lines; struct __declspec(uuid("add4edf3-2f33-4734-9ce6-d476097c5ada")) /* dual interface */ Rectangle; struct __declspec(uuid("7d0f7985-68d9-4d93-91cb-8109280e76cc")) /* dual interface */ Rectangles; struct __declspec(uuid("79635bf1-bd1d-4b3f-a520-c1106f1aaad8")) /* dual interface */ Break; struct __declspec(uuid("16be9309-d708-4322-bb1a-b056f58d17ea")) /* dual interface */ Breaks; struct __declspec(uuid("352840a9-af7d-4ca4-87fc-21c68fdab3e4")) /* dual interface */ Page; struct __declspec(uuid("91807402-6c6f-47cd-b8fa-c42fee8ee924")) /* dual interface */ Pages; struct __declspec(uuid("09760240-0b89-49f7-a79d-479f24723f56")) /* dual interface */ XMLNode; struct __declspec(uuid("d36c1f42-7044-4b9e-9ca3-85919454db04")) /* dual interface */ XMLNodes; struct __declspec(uuid("fe0971f0-5e60-4985-bcda-95cb0b8e0308")) /* dual interface */ XMLSchemaReference; struct __declspec(uuid("356b06ec-4908-42a4-81fc-4b5a51f3483b")) /* dual interface */ XMLSchemaReferences; struct __declspec(uuid("a87e00e9-3ac3-4b53-abe3-7379653d0e82")) /* dual interface */ XMLChildNodeSuggestion; struct __declspec(uuid("de63b5ac-ca4f-46fe-9184-a5719ab9ed5b")) /* dual interface */ XMLChildNodeSuggestions; struct __declspec(uuid("b140a023-4850-4da6-bc5f-cc459c4507bc")) /* dual interface */ XMLNamespace; struct __declspec(uuid("656bbed7-e82d-4b0a-8f97-ec742ba11ffa")) /* dual interface */ XMLNamespaces; struct __declspec(uuid("e3124493-7d6a-410f-9a48-cc822c033cec")) /* dual interface */ XSLTransform; struct __declspec(uuid("c774f5ea-a539-4284-a1be-30aec052d899")) /* dual interface */ XSLTransforms; struct __declspec(uuid("aed7e08c-14f0-4f33-921d-4c5353137bf6")) /* dual interface */ Editors; struct __declspec(uuid("dd947d72-f33c-4198-9bdf-f86181d05e41")) /* dual interface */ Editor; struct __declspec(uuid("00020a01-0001-0000-c000-000000000046")) /* interface */ IApplicationEvents4; struct __declspec(uuid("00020a01-0000-0000-c000-000000000046")) /* dispinterface */ ApplicationEvents4; struct __declspec(uuid("00020a02-0000-0000-c000-000000000046")) /* dispinterface */ DocumentEvents2; enum WdRectangleType; enum WdLineType; enum WdXMLNodeType; enum WdXMLSelectionChangeReason; enum WdXMLNodeLevel; enum WdSmartTagControlType; enum WdEditorType; enum WdXMLValidationStatus; struct __declspec(uuid("4a6ae865-199d-4ea3-9f6b-125bd9c40edf")) /* dual interface */ Source; struct __declspec(uuid("fa02a26b-6550-45c5-b6f0-80e757cd3482")) /* dual interface */ Sources; struct __declspec(uuid("3834f60f-ee8c-455d-a441-d766675d6d3b")) /* dual interface */ Bibliography; struct __declspec(uuid("873e774b-926a-4cb1-878d-635a45187595")) /* dual interface */ OMaths; struct __declspec(uuid("e4442a83-f623-459c-8e95-8bfb44dcf23a")) /* dual interface */ OMath; struct __declspec(uuid("497142a4-16fd-42c6-bc58-15d89345fc21")) /* dual interface */ OMathFunctions; struct __declspec(uuid("8245795b-9aed-4943-a16d-e586ed8180d1")) /* dual interface */ OMathArgs; struct __declspec(uuid("f1f37152-1db1-4901-ad9a-c740f99464b4")) /* dual interface */ OMathFunction; struct __declspec(uuid("f258de05-c41b-4c33-a778-f0d3f98ceeb3")) /* dual interface */ OMathAcc; struct __declspec(uuid("f08b45f1-8f23-4156-9d63-1820c0ed229a")) /* dual interface */ OMathBar; struct __declspec(uuid("842c37fe-c76f-4b2b-9b60-c408cb5e838e")) /* dual interface */ OMathBox; struct __declspec(uuid("2503b6ee-0889-44df-b920-6d6f9659dea3")) /* dual interface */ OMathBorderBox; struct __declspec(uuid("c94688a6-a2a7-4133-a26d-726cd569d5f3")) /* dual interface */ OMathDelim; struct __declspec(uuid("1f998a61-71c6-44c2-a0f2-1d66169b47cb")) /* dual interface */ OMathEqArray; struct __declspec(uuid("50209974-ba32-4a03-8fa6-bac56cc056fd")) /* dual interface */ OMathFrac; struct __declspec(uuid("0d951adf-10a6-4c9b-bcd9-0fb8cbad9a87")) /* dual interface */ OMathFunc; struct __declspec(uuid("02b17cb4-7d55-4b34-b38b-10381433441f")) /* dual interface */ OMathGroupChar; struct __declspec(uuid("74de9576-8e99-4e28-912b-cb30747c60ce")) /* dual interface */ OMathLimLow; struct __declspec(uuid("fc9086c6-0287-4997-b2e1-816c334a22f8")) /* dual interface */ OMathLimUpp; struct __declspec(uuid("3e061a7e-67ad-4eaa-bc1e-55057d5e596f")) /* dual interface */ OMathMat; struct __declspec(uuid("1b426348-607d-433c-9216-c5d2bf0ef31f")) /* dual interface */ OMathMatRows; struct __declspec(uuid("efc71f9c-7f42-4cd4-a7a7-970d7a48cd27")) /* dual interface */ OMathMatCols; struct __declspec(uuid("5daa8bb6-054e-48f6-beac-eaad02be0cc7")) /* dual interface */ OMathMatRow; struct __declspec(uuid("cae36175-3818-4c60-bcbf-0645d51eb33b")) /* dual interface */ OMathMatCol; struct __declspec(uuid("cebd4184-4e6d-4fc6-a42d-2142b1b76af5")) /* dual interface */ OMathNary; struct __declspec(uuid("db77d541-85c3-42e8-8649-afbd7cf87866")) /* dual interface */ OMathPhantom; struct __declspec(uuid("afaf0c0e-8603-40f6-8fd1-42726cac21e3")) /* dual interface */ OMathScrPre; struct __declspec(uuid("67a7eec5-285d-4024-b071-bd6b33b88547")) /* dual interface */ OMathRad; struct __declspec(uuid("98dfbd12-96cb-4f07-90ea-749ff1d6b89d")) /* dual interface */ OMathScrSub; struct __declspec(uuid("dc489ad4-23c4-4f4b-990f-45a51c7c0c4f")) /* dual interface */ OMathScrSubSup; struct __declspec(uuid("d0a95726-678a-4b9d-8103-1e2b86735ae7")) /* dual interface */ OMathScrSup; struct __declspec(uuid("6f9d1f68-06f7-49ef-8902-185e54eb5e87")) /* dual interface */ OMathAutoCorrect; struct __declspec(uuid("18cd5ec8-8b7b-42c8-992a-2a407468642c")) /* dual interface */ OMathAutoCorrectEntries; struct __declspec(uuid("d8779f01-4869-4403-b334-d60c5f9c9175")) /* dual interface */ OMathAutoCorrectEntry; struct __declspec(uuid("44fee887-6600-41ab-95a5-de33c605116c")) /* dual interface */ OMathRecognizedFunctions; struct __declspec(uuid("5c04bd93-2f3f-4668-918d-9738ec901039")) /* dual interface */ OMathRecognizedFunction; struct __declspec(uuid("804cd967-f83b-432d-9446-c61a45cfeff0")) /* dual interface */ ContentControls; struct __declspec(uuid("ee95afe3-3026-4172-b078-0e79dab5cc3d")) /* dual interface */ ContentControl; struct __declspec(uuid("0c1fabe7-f737-406f-9ca3-b07661f9d1a2")) /* dual interface */ XMLMapping; struct __declspec(uuid("54f46dc4-f6a6-48cc-bd66-46c1ddeadd22")) /* dual interface */ ContentControlListEntries; struct __declspec(uuid("0c6fa8ca-e65f-4fc7-ab8f-20729eecbb14")) /* dual interface */ ContentControlListEntry; struct __declspec(uuid("b5828b50-0e3d-448a-962d-a40702a5868d")) /* dual interface */ BuildingBlockTypes; struct __declspec(uuid("817f99fa-ccc4-4971-8e9d-1238f735aaff")) /* dual interface */ BuildingBlockType; struct __declspec(uuid("6e47678b-a879-4e56-8698-3b7cf169fad4")) /* dual interface */ Categories; struct __declspec(uuid("ecfbdb5e-acd2-4530-ad79-4560b7ff055c")) /* dual interface */ Category; struct __declspec(uuid("c6d50987-25d7-408a-bff2-90bf86a24e93")) /* dual interface */ BuildingBlocks; struct __declspec(uuid("bfd3fc23-f763-4ff8-826e-1afbf598a4e7")) /* dual interface */ BuildingBlock; struct __declspec(uuid("39709229-56a0-4e29-9112-b31dd067ebfd")) /* dual interface */ BuildingBlockEntries; struct __declspec(uuid("e2e0f3a7-204c-40c5-baa5-290f374fdf5a")) /* dual interface */ OMathBreaks; struct __declspec(uuid("65e515d5-f50b-4951-8f38-fa6ac8707387")) /* dual interface */ OMathBreak; struct __declspec(uuid("e6aaec05-e543-4085-ba92-9bf7d2474f51")) /* dual interface */ Research; struct __declspec(uuid("d040daf9-6ce4-4be8-839d-f4538a4301cf")) /* dual interface */ SoftEdgeFormat; struct __declspec(uuid("f1b14f40-5c32-4c8c-b5b2-de537bb6b89d")) /* dual interface */ GlowFormat; struct __declspec(uuid("f01943ff-1985-445e-8602-8fb8f39cca75")) /* dual interface */ ReflectionFormat; enum WdStyleSort; enum WdRemoveDocInfoType; enum WdCheckInVersionType; enum WdMoveToTextMark; enum WdMoveFromTextMark; enum WdOMathFunctionType; enum WdOMathHorizAlignType; enum WdOMathVertAlignType; enum WdOMathFracType; enum WdOMathSpacingRule; enum WdOMathType; enum WdOMathShapeType; enum WdOMathJc; enum WdOMathBreakBin; enum WdOMathBreakSub; enum WdReadingLayoutMargin; enum WdContentControlType; enum WdCompareDestination; enum WdGranularity; enum WdMergeFormatFrom; enum WdShowSourceDocuments; enum WdPasteOptions; enum WdBuildingBlockTypes; enum WdAlignmentTabRelative; enum WdAlignmentTabAlignment; enum WdCellColor; enum WdTextboxTightWrap; enum WdShapePositionRelative; enum WdShapeSizeRelative; enum WdRelativeHorizontalSize; enum WdRelativeVerticalSize; enum WdThemeColorIndex; enum WdExportFormat; enum WdExportOptimizeFor; enum WdExportCreateBookmarks; enum WdExportItem; enum WdExportRange; enum WdFrenchSpeller; enum WdDocPartInsertOptions; enum WdContentControlDateStorageFormat; struct __declspec(uuid("4a304b59-31ff-42dd-b436-7fc9c5db7559")) /* dual interface */ ChartData; struct __declspec(uuid("6ffa84bb-a350-4442-bb53-a43653459a84")) /* dual interface */ Chart; struct __declspec(uuid("ae6d45e5-981e-4547-8752-674bb55420a5")) /* dual interface */ Corners; struct __declspec(uuid("b3a1e8c6-e1ce-4a46-8d12-e017157b03d7")) /* dual interface */ Legend; struct __declspec(uuid("ab0d33a3-c9ea-485b-9443-4c1bb3656cea")) /* dual interface */ ChartBorder; struct __declspec(uuid("a2e94180-7564-4d97-806b-bbc0d0a1350c")) /* dual interface */ Walls; struct __declspec(uuid("7e64d2be-2818-48cb-8f8a-cc7b61d9e860")) /* dual interface */ Floor; struct __declspec(uuid("56afd330-440c-4f4c-a39c-ed306d084d5f")) /* dual interface */ PlotArea; struct __declspec(uuid("c75ad98a-74e9-49fe-8bf1-544839cc08a5")) /* dual interface */ ChartArea; struct __declspec(uuid("5d7f6c15-36ce-44cc-9692-5a1f8b8c906d")) /* dual interface */ SeriesLines; struct __declspec(uuid("36162c62-b59a-4278-af3d-f2ac1eb999d9")) /* dual interface */ LeaderLines; struct __declspec(uuid("fc9090af-0ddb-4ec1-86e8-8751f2199f2c")) /* dual interface */ Gridlines; struct __declspec(uuid("86905ac9-33f3-4a88-96c8-b289b0390bca")) /* dual interface */ UpBars; struct __declspec(uuid("84a6a663-aef4-4fcd-83fd-9bb707f157ca")) /* dual interface */ DownBars; struct __declspec(uuid("b184502b-587a-4c6a-8dc4-ece4354883c6")) /* dual interface */ Interior; struct __declspec(uuid("f152d349-7d20-4c01-a42b-2d6de4f3891c")) /* dual interface */ ChartFillFormat; struct __declspec(uuid("b6511068-70bf-4751-a741-55c1d41ad96f")) /* dual interface */ LegendEntries; struct __declspec(uuid("cdb0ff41-e862-47bb-ae77-3fa7b1ae3189")) /* dual interface */ ChartFont; struct __declspec(uuid("dd8f80b8-9b80-4e89-9bec-f12df35e43b3")) /* dual interface */ ChartColorFormat; struct __declspec(uuid("c4a02049-024c-4273-8934-e48cc21479a9")) /* dual interface */ LegendEntry; struct __declspec(uuid("df076fde-8781-4051-a5bc-99f6b7dc04d4")) /* dual interface */ LegendKey; struct __declspec(uuid("8feb78f7-35c6-4871-918c-193c3cdd886d")) /* dual interface */ SeriesCollection; struct __declspec(uuid("40810760-068a-4486-bec9-8ea58c7029f5")) /* dual interface */ Series; struct __declspec(uuid("194f8476-b79d-4572-a609-294207de77c1")) /* dual interface */ ErrorBars; struct __declspec(uuid("91c46192-3124-4346-a815-10b8873f5a06")) /* dual interface */ Trendline; struct __declspec(uuid("54b7061a-d56c-40e5-b85b-58146446c782")) /* dual interface */ Trendlines; struct __declspec(uuid("d8252c5e-eb9f-4d74-aa72-c178b128fac4")) /* dual interface */ DataLabels; struct __declspec(uuid("1fd94df1-3569-4465-94ff-e8b22d28eeb0")) /* dual interface */ DataLabel; struct __declspec(uuid("c1a870a0-850e-4d38-98a7-741cb8c3bca4")) /* dual interface */ Points; struct __declspec(uuid("8a342fa0-5831-4b5e-82e1-003d0a0c635d")) /* dual interface */ Point; struct __declspec(uuid("354ab591-a217-48b4-99e4-14f58f15667d")) /* dual interface */ Axes; struct __declspec(uuid("7ebc66bd-f788-42c3-91f4-e8c841a69005")) /* dual interface */ Axis; struct __declspec(uuid("dce9f2c4-4c02-43ba-840e-b4276550ef79")) /* dual interface */ DataTable; struct __declspec(uuid("c1ad33e4-f088-40a9-9d2f-d94017d115c4")) /* dual interface */ ChartTitle; struct __declspec(uuid("8b0e45db-3a7b-42ee-9d17-a92af69b79c1")) /* dual interface */ AxisTitle; struct __declspec(uuid("c04865a3-9f8a-486c-bb58-b4c3e6563136")) /* dual interface */ DisplayUnitLabel; struct __declspec(uuid("935d59f5-e365-4f92-b7f5-1c499a63eca8")) /* dual interface */ TickLabels; struct __declspec(uuid("9f1df642-3cce-4d83-a770-d2634a05d278")) /* dual interface */ DropLines; struct __declspec(uuid("7a1bce11-5783-4c7d-bd02-f3d84ab40e7f")) /* dual interface */ HiLoLines; struct __declspec(uuid("86488fb4-9633-4c93-8057-fc1fa7a847ae")) /* dual interface */ ChartGroup; struct __declspec(uuid("f8ddb497-ca6c-4711-9ba4-2718fa3bb6fe")) /* dual interface */ ChartGroups; struct __declspec(uuid("ff06fef2-da89-41c0-a0a8-5cd434e210ad")) /* dual interface */ ChartCharacters; struct __declspec(uuid("b66d3c1a-4541-4961-b35b-a353c03f6a99")) /* dual interface */ ChartFormat; enum XlChartSplitType; enum XlSizeRepresents; enum XlAxisGroup; enum XlBackground; enum XlChartGallery; enum XlChartPicturePlacement; enum XlDataLabelSeparator; enum XlPattern; enum XlPictureAppearance; enum XlCopyPictureFormat; enum XlRgbColor; enum XlConstants; enum XlReadingOrder; enum XlBorderWeight; enum XlLegendPosition; enum XlUnderlineStyle; enum XlColorIndex; enum XlMarkerStyle; enum XlRowCol; enum XlDataLabelsType; enum XlErrorBarInclude; enum XlErrorBarType; enum XlErrorBarDirection; enum XlChartPictureType; enum XlChartItem; enum XlBarShape; enum XlEndStyleCap; enum XlTrendlineType; enum XlAxisType; enum XlAxisCrosses; enum XlTickMark; enum XlScaleType; enum XlTickLabelPosition; enum XlTimeUnit; enum XlCategoryType; enum XlDisplayUnit; enum XlOrientation; enum XlTickLabelOrientation; enum XlDisplayBlanksAs; enum XlDataLabelPosition; enum XlPivotFieldOrientation; enum XlHAlign; enum XlVAlign; enum XlLineStyle; enum XlChartElementPosition; struct __declspec(uuid("e598e358-2852-42d4-8775-160bd91b7244")) /* dual interface */ UndoRecord; struct __declspec(uuid("99755f80-fe96-4f7d-b636-b8e800e54f44")) /* dual interface */ CoAuthLock; struct __declspec(uuid("dff99ac2-cd2a-43ad-91b1-a2be40bc7146")) /* dual interface */ CoAuthLocks; struct __declspec(uuid("9e6b5ec5-e8e4-40af-9540-6203f71e2823")) /* dual interface */ CoAuthUpdate; struct __declspec(uuid("30225cfc-5a71-4fe6-b527-90a52c54ae77")) /* dual interface */ CoAuthUpdates; struct __declspec(uuid("e59544d5-c299-46a0-84c1-c51ab38f9759")) /* dual interface */ CoAuthor; struct __declspec(uuid("256b6aba-6a38-4d39-971c-91fda9922814")) /* dual interface */ CoAuthors; struct __declspec(uuid("65df9f31-b1e3-4651-87e8-51d55f302161")) /* dual interface */ CoAuthoring; struct __declspec(uuid("c2b83a65-b061-4469-83b6-8877437cb8a0")) /* dual interface */ Conflicts; struct __declspec(uuid("6215e4b1-545a-406e-9824-0a5b5ac8ad21")) /* dual interface */ Conflict; struct __declspec(uuid("fd0a74e8-c719-49f6-ba1b-f6d9839d1ab9")) /* dual interface */ ProtectedViewWindows; struct __declspec(uuid("f743edd0-9b97-4b09-89cc-77be19b51481")) /* dual interface */ ProtectedViewWindow; enum WdUpdateStyleListBehavior; enum WdApplyQuickStyleSets; enum WdLigatures; enum WdNumberForm; enum WdNumberSpacing; enum WdStylisticSet; enum WdSpanishSpeller; enum WdLockType; enum XlPieSliceLocation; enum XlPieSliceIndex; enum WdCompatibilityMode; enum WdProtectedViewCloseReason; enum WdPortugueseReform; struct __declspec(uuid("53faca33-db22-473f-bb51-96c2c86c9304")) /* dual interface */ RepeatingSectionItemColl; struct __declspec(uuid("4265ed97-a922-4ca4-8cd8-99684cca9cdb")) /* dual interface */ RepeatingSectionItem; struct __declspec(uuid("4dacc469-630b-457e-9c8f-08158d57fc7c")) /* dual interface */ FullSeriesCollection; struct __declspec(uuid("5a90588c-c066-4bd4-8fe5-722454a15553")) /* dual interface */ ChartCategory; struct __declspec(uuid("04124c2d-039d-4442-9c68-8fa38d11ddd6")) /* dual interface */ CategoryCollection; struct __declspec(uuid("b67de22c-bc01-4a73-a99b-070d1b5a795d")) /* dual interface */ Broadcast; struct __declspec(uuid("d523c26b-7278-4fa9-aa0b-0827dc8b41ce")) /* dual interface */ RevisionsFilter; enum WdContentControlAppearance; enum WdContentControlLevel; enum XlCategoryLabelLevel; enum XlSeriesNameLevel; enum WdPageColor; enum WdColumnWidth; enum WdRevisionsMarkup; // // Smart pointer typedef declarations // _COM_SMARTPTR_TYPEDEF(_OLEControl, __uuidof(_OLEControl)); _COM_SMARTPTR_TYPEDEF(ApplicationEvents, __uuidof(ApplicationEvents)); _COM_SMARTPTR_TYPEDEF(FontNames, __uuidof(FontNames)); _COM_SMARTPTR_TYPEDEF(RoutingSlip, __uuidof(RoutingSlip)); _COM_SMARTPTR_TYPEDEF(Variable, __uuidof(Variable)); _COM_SMARTPTR_TYPEDEF(Variables, __uuidof(Variables)); _COM_SMARTPTR_TYPEDEF(DropCap, __uuidof(DropCap)); _COM_SMARTPTR_TYPEDEF(TabStop, __uuidof(TabStop)); _COM_SMARTPTR_TYPEDEF(TabStops, __uuidof(TabStops)); _COM_SMARTPTR_TYPEDEF(FirstLetterException, __uuidof(FirstLetterException)); _COM_SMARTPTR_TYPEDEF(FirstLetterExceptions, __uuidof(FirstLetterExceptions)); _COM_SMARTPTR_TYPEDEF(TwoInitialCapsException, __uuidof(TwoInitialCapsException)); _COM_SMARTPTR_TYPEDEF(TwoInitialCapsExceptions, __uuidof(TwoInitialCapsExceptions)); _COM_SMARTPTR_TYPEDEF(TextRetrievalMode, __uuidof(TextRetrievalMode)); _COM_SMARTPTR_TYPEDEF(System, __uuidof(System)); _COM_SMARTPTR_TYPEDEF(OLEFormat, __uuidof(OLEFormat)); _COM_SMARTPTR_TYPEDEF(LinkFormat, __uuidof(LinkFormat)); _COM_SMARTPTR_TYPEDEF(Browser, __uuidof(Browser)); _COM_SMARTPTR_TYPEDEF(TextInput, __uuidof(TextInput)); _COM_SMARTPTR_TYPEDEF(CheckBox, __uuidof(CheckBox)); _COM_SMARTPTR_TYPEDEF(ListEntry, __uuidof(ListEntry)); _COM_SMARTPTR_TYPEDEF(ListEntries, __uuidof(ListEntries)); _COM_SMARTPTR_TYPEDEF(DropDown, __uuidof(DropDown)); _COM_SMARTPTR_TYPEDEF(MailMergeFieldName, __uuidof(MailMergeFieldName)); _COM_SMARTPTR_TYPEDEF(MailMergeFieldNames, __uuidof(MailMergeFieldNames)); _COM_SMARTPTR_TYPEDEF(MailMergeDataField, __uuidof(MailMergeDataField)); _COM_SMARTPTR_TYPEDEF(MailMergeDataFields, __uuidof(MailMergeDataFields)); _COM_SMARTPTR_TYPEDEF(CustomLabel, __uuidof(CustomLabel)); _COM_SMARTPTR_TYPEDEF(CustomLabels, __uuidof(CustomLabels)); _COM_SMARTPTR_TYPEDEF(Dialog, __uuidof(Dialog)); _COM_SMARTPTR_TYPEDEF(Dialogs, __uuidof(Dialogs)); _COM_SMARTPTR_TYPEDEF(LineNumbering, __uuidof(LineNumbering)); _COM_SMARTPTR_TYPEDEF(TextColumn, __uuidof(TextColumn)); _COM_SMARTPTR_TYPEDEF(TableOfAuthoritiesCategory, __uuidof(TableOfAuthoritiesCategory)); _COM_SMARTPTR_TYPEDEF(TablesOfAuthoritiesCategories, __uuidof(TablesOfAuthoritiesCategories)); _COM_SMARTPTR_TYPEDEF(CaptionLabel, __uuidof(CaptionLabel)); _COM_SMARTPTR_TYPEDEF(CaptionLabels, __uuidof(CaptionLabels)); _COM_SMARTPTR_TYPEDEF(AutoCaption, __uuidof(AutoCaption)); _COM_SMARTPTR_TYPEDEF(AutoCaptions, __uuidof(AutoCaptions)); _COM_SMARTPTR_TYPEDEF(AddIn, __uuidof(AddIn)); _COM_SMARTPTR_TYPEDEF(AddIns, __uuidof(AddIns)); _COM_SMARTPTR_TYPEDEF(Task, __uuidof(Task)); _COM_SMARTPTR_TYPEDEF(Tasks, __uuidof(Tasks)); _COM_SMARTPTR_TYPEDEF(PageNumber, __uuidof(PageNumber)); _COM_SMARTPTR_TYPEDEF(PageNumbers, __uuidof(PageNumbers)); _COM_SMARTPTR_TYPEDEF(HeadingStyle, __uuidof(HeadingStyle)); _COM_SMARTPTR_TYPEDEF(HeadingStyles, __uuidof(HeadingStyles)); _COM_SMARTPTR_TYPEDEF(KeyBinding, __uuidof(KeyBinding)); _COM_SMARTPTR_TYPEDEF(KeyBindings, __uuidof(KeyBindings)); _COM_SMARTPTR_TYPEDEF(KeysBoundTo, __uuidof(KeysBoundTo)); _COM_SMARTPTR_TYPEDEF(FileConverter, __uuidof(FileConverter)); _COM_SMARTPTR_TYPEDEF(FileConverters, __uuidof(FileConverters)); _COM_SMARTPTR_TYPEDEF(SynonymInfo, __uuidof(SynonymInfo)); _COM_SMARTPTR_TYPEDEF(Zoom, __uuidof(Zoom)); _COM_SMARTPTR_TYPEDEF(Zooms, __uuidof(Zooms)); _COM_SMARTPTR_TYPEDEF(SpellingSuggestion, __uuidof(SpellingSuggestion)); _COM_SMARTPTR_TYPEDEF(SpellingSuggestions, __uuidof(SpellingSuggestions)); _COM_SMARTPTR_TYPEDEF(Dictionary, __uuidof(Dictionary)); _COM_SMARTPTR_TYPEDEF(Language, __uuidof(Language)); _COM_SMARTPTR_TYPEDEF(Languages, __uuidof(Languages)); _COM_SMARTPTR_TYPEDEF(Dictionaries, __uuidof(Dictionaries)); _COM_SMARTPTR_TYPEDEF(HangulHanjaConversionDictionaries, __uuidof(HangulHanjaConversionDictionaries)); _COM_SMARTPTR_TYPEDEF(ReadabilityStatistic, __uuidof(ReadabilityStatistic)); _COM_SMARTPTR_TYPEDEF(ReadabilityStatistics, __uuidof(ReadabilityStatistics)); _COM_SMARTPTR_TYPEDEF(MailMessage, __uuidof(MailMessage)); _COM_SMARTPTR_TYPEDEF(Mailer, __uuidof(Mailer)); _COM_SMARTPTR_TYPEDEF(WrapFormat, __uuidof(WrapFormat)); _COM_SMARTPTR_TYPEDEF(HangulAndAlphabetException, __uuidof(HangulAndAlphabetException)); _COM_SMARTPTR_TYPEDEF(HangulAndAlphabetExceptions, __uuidof(HangulAndAlphabetExceptions)); _COM_SMARTPTR_TYPEDEF(Adjustments, __uuidof(Adjustments)); _COM_SMARTPTR_TYPEDEF(CalloutFormat, __uuidof(CalloutFormat)); _COM_SMARTPTR_TYPEDEF(PictureFormat, __uuidof(PictureFormat)); _COM_SMARTPTR_TYPEDEF(ShapeNode, __uuidof(ShapeNode)); _COM_SMARTPTR_TYPEDEF(ShapeNodes, __uuidof(ShapeNodes)); _COM_SMARTPTR_TYPEDEF(TextEffectFormat, __uuidof(TextEffectFormat)); _COM_SMARTPTR_TYPEDEF(DocumentEvents, __uuidof(DocumentEvents)); _COM_SMARTPTR_TYPEDEF(Documents, __uuidof(Documents)); _COM_SMARTPTR_TYPEDEF(RecentFile, __uuidof(RecentFile)); _COM_SMARTPTR_TYPEDEF(RecentFiles, __uuidof(RecentFiles)); _COM_SMARTPTR_TYPEDEF(MailingLabel, __uuidof(MailingLabel)); _COM_SMARTPTR_TYPEDEF(Version, __uuidof(Version)); _COM_SMARTPTR_TYPEDEF(Versions, __uuidof(Versions)); _COM_SMARTPTR_TYPEDEF(OCXEvents, __uuidof(OCXEvents)); _COM_SMARTPTR_TYPEDEF(_LetterContent, __uuidof(_LetterContent)); _COM_SMARTPTR_TYPEDEF(IApplicationEvents, __uuidof(IApplicationEvents)); _COM_SMARTPTR_TYPEDEF(ApplicationEvents2, __uuidof(ApplicationEvents2)); _COM_SMARTPTR_TYPEDEF(TextColumns, __uuidof(TextColumns)); _COM_SMARTPTR_TYPEDEF(PageSetup, __uuidof(PageSetup)); _COM_SMARTPTR_TYPEDEF(Border, __uuidof(Border)); _COM_SMARTPTR_TYPEDEF(Borders, __uuidof(Borders)); _COM_SMARTPTR_TYPEDEF(Shading, __uuidof(Shading)); _COM_SMARTPTR_TYPEDEF(HorizontalLineFormat, __uuidof(HorizontalLineFormat)); _COM_SMARTPTR_TYPEDEF(Frameset, __uuidof(Frameset)); _COM_SMARTPTR_TYPEDEF(WordDefaultWebOptions, __uuidof(WordDefaultWebOptions)); _COM_SMARTPTR_TYPEDEF(WordWebOptions, __uuidof(WordWebOptions)); _COM_SMARTPTR_TYPEDEF(OtherCorrectionsException, __uuidof(OtherCorrectionsException)); _COM_SMARTPTR_TYPEDEF(OtherCorrectionsExceptions, __uuidof(OtherCorrectionsExceptions)); _COM_SMARTPTR_TYPEDEF(EmailSignatureEntry, __uuidof(EmailSignatureEntry)); _COM_SMARTPTR_TYPEDEF(CustomProperty, __uuidof(CustomProperty)); _COM_SMARTPTR_TYPEDEF(CustomProperties, __uuidof(CustomProperties)); _COM_SMARTPTR_TYPEDEF(MappedDataField, __uuidof(MappedDataField)); _COM_SMARTPTR_TYPEDEF(ConditionalStyle, __uuidof(ConditionalStyle)); _COM_SMARTPTR_TYPEDEF(FootnoteOptions, __uuidof(FootnoteOptions)); _COM_SMARTPTR_TYPEDEF(EndnoteOptions, __uuidof(EndnoteOptions)); _COM_SMARTPTR_TYPEDEF(Reviewer, __uuidof(Reviewer)); _COM_SMARTPTR_TYPEDEF(Reviewers, __uuidof(Reviewers)); _COM_SMARTPTR_TYPEDEF(TaskPane, __uuidof(TaskPane)); _COM_SMARTPTR_TYPEDEF(ApplicationEvents3, __uuidof(ApplicationEvents3)); _COM_SMARTPTR_TYPEDEF(StyleSheet, __uuidof(StyleSheet)); _COM_SMARTPTR_TYPEDEF(StyleSheets, __uuidof(StyleSheets)); _COM_SMARTPTR_TYPEDEF(MappedDataFields, __uuidof(MappedDataFields)); _COM_SMARTPTR_TYPEDEF(MailMergeDataSource, __uuidof(MailMergeDataSource)); _COM_SMARTPTR_TYPEDEF(TableStyle, __uuidof(TableStyle)); _COM_SMARTPTR_TYPEDEF(TaskPanes, __uuidof(TaskPanes)); _COM_SMARTPTR_TYPEDEF(SmartTagRecognizer, __uuidof(SmartTagRecognizer)); _COM_SMARTPTR_TYPEDEF(SmartTagRecognizers, __uuidof(SmartTagRecognizers)); _COM_SMARTPTR_TYPEDEF(XMLSchemaReference, __uuidof(XMLSchemaReference)); _COM_SMARTPTR_TYPEDEF(XMLSchemaReferences, __uuidof(XMLSchemaReferences)); _COM_SMARTPTR_TYPEDEF(XSLTransform, __uuidof(XSLTransform)); _COM_SMARTPTR_TYPEDEF(XSLTransforms, __uuidof(XSLTransforms)); _COM_SMARTPTR_TYPEDEF(XMLNamespace, __uuidof(XMLNamespace)); _COM_SMARTPTR_TYPEDEF(XMLNamespaces, __uuidof(XMLNamespaces)); _COM_SMARTPTR_TYPEDEF(ApplicationEvents4, __uuidof(ApplicationEvents4)); _COM_SMARTPTR_TYPEDEF(DocumentEvents2, __uuidof(DocumentEvents2)); _COM_SMARTPTR_TYPEDEF(SmartTagAction, __uuidof(SmartTagAction)); _COM_SMARTPTR_TYPEDEF(SmartTagActions, __uuidof(SmartTagActions)); _COM_SMARTPTR_TYPEDEF(SmartTagType, __uuidof(SmartTagType)); _COM_SMARTPTR_TYPEDEF(SmartTagTypes, __uuidof(SmartTagTypes)); _COM_SMARTPTR_TYPEDEF(Source, __uuidof(Source)); _COM_SMARTPTR_TYPEDEF(Sources, __uuidof(Sources)); _COM_SMARTPTR_TYPEDEF(Bibliography, __uuidof(Bibliography)); _COM_SMARTPTR_TYPEDEF(OMathAutoCorrectEntry, __uuidof(OMathAutoCorrectEntry)); _COM_SMARTPTR_TYPEDEF(OMathAutoCorrectEntries, __uuidof(OMathAutoCorrectEntries)); _COM_SMARTPTR_TYPEDEF(OMathRecognizedFunction, __uuidof(OMathRecognizedFunction)); _COM_SMARTPTR_TYPEDEF(OMathRecognizedFunctions, __uuidof(OMathRecognizedFunctions)); _COM_SMARTPTR_TYPEDEF(OMathAutoCorrect, __uuidof(OMathAutoCorrect)); _COM_SMARTPTR_TYPEDEF(XMLMapping, __uuidof(XMLMapping)); _COM_SMARTPTR_TYPEDEF(ContentControlListEntry, __uuidof(ContentControlListEntry)); _COM_SMARTPTR_TYPEDEF(ContentControlListEntries, __uuidof(ContentControlListEntries)); _COM_SMARTPTR_TYPEDEF(Research, __uuidof(Research)); _COM_SMARTPTR_TYPEDEF(SoftEdgeFormat, __uuidof(SoftEdgeFormat)); _COM_SMARTPTR_TYPEDEF(ReflectionFormat, __uuidof(ReflectionFormat)); _COM_SMARTPTR_TYPEDEF(_ParagraphFormat, __uuidof(_ParagraphFormat)); _COM_SMARTPTR_TYPEDEF(ColorFormat, __uuidof(ColorFormat)); _COM_SMARTPTR_TYPEDEF(FillFormat, __uuidof(FillFormat)); _COM_SMARTPTR_TYPEDEF(LineFormat, __uuidof(LineFormat)); _COM_SMARTPTR_TYPEDEF(ShadowFormat, __uuidof(ShadowFormat)); _COM_SMARTPTR_TYPEDEF(ThreeDFormat, __uuidof(ThreeDFormat)); _COM_SMARTPTR_TYPEDEF(GlowFormat, __uuidof(GlowFormat)); _COM_SMARTPTR_TYPEDEF(ChartData, __uuidof(ChartData)); _COM_SMARTPTR_TYPEDEF(Corners, __uuidof(Corners)); _COM_SMARTPTR_TYPEDEF(ChartBorder, __uuidof(ChartBorder)); _COM_SMARTPTR_TYPEDEF(Interior, __uuidof(Interior)); _COM_SMARTPTR_TYPEDEF(ChartFont, __uuidof(ChartFont)); _COM_SMARTPTR_TYPEDEF(ChartColorFormat, __uuidof(ChartColorFormat)); _COM_SMARTPTR_TYPEDEF(ChartFillFormat, __uuidof(ChartFillFormat)); _COM_SMARTPTR_TYPEDEF(ChartCharacters, __uuidof(ChartCharacters)); _COM_SMARTPTR_TYPEDEF(ChartFormat, __uuidof(ChartFormat)); _COM_SMARTPTR_TYPEDEF(Walls, __uuidof(Walls)); _COM_SMARTPTR_TYPEDEF(Floor, __uuidof(Floor)); _COM_SMARTPTR_TYPEDEF(ChartArea, __uuidof(ChartArea)); _COM_SMARTPTR_TYPEDEF(SeriesLines, __uuidof(SeriesLines)); _COM_SMARTPTR_TYPEDEF(LeaderLines, __uuidof(LeaderLines)); _COM_SMARTPTR_TYPEDEF(Gridlines, __uuidof(Gridlines)); _COM_SMARTPTR_TYPEDEF(UpBars, __uuidof(UpBars)); _COM_SMARTPTR_TYPEDEF(DownBars, __uuidof(DownBars)); _COM_SMARTPTR_TYPEDEF(DataTable, __uuidof(DataTable)); _COM_SMARTPTR_TYPEDEF(DropLines, __uuidof(DropLines)); _COM_SMARTPTR_TYPEDEF(HiLoLines, __uuidof(HiLoLines)); _COM_SMARTPTR_TYPEDEF(Legend, __uuidof(Legend)); _COM_SMARTPTR_TYPEDEF(LegendKey, __uuidof(LegendKey)); _COM_SMARTPTR_TYPEDEF(LegendEntry, __uuidof(LegendEntry)); _COM_SMARTPTR_TYPEDEF(LegendEntries, __uuidof(LegendEntries)); _COM_SMARTPTR_TYPEDEF(ErrorBars, __uuidof(ErrorBars)); _COM_SMARTPTR_TYPEDEF(Series, __uuidof(Series)); _COM_SMARTPTR_TYPEDEF(SeriesCollection, __uuidof(SeriesCollection)); _COM_SMARTPTR_TYPEDEF(TickLabels, __uuidof(TickLabels)); _COM_SMARTPTR_TYPEDEF(ChartGroup, __uuidof(ChartGroup)); _COM_SMARTPTR_TYPEDEF(ChartGroups, __uuidof(ChartGroups)); _COM_SMARTPTR_TYPEDEF(DataLabel, __uuidof(DataLabel)); _COM_SMARTPTR_TYPEDEF(Trendline, __uuidof(Trendline)); _COM_SMARTPTR_TYPEDEF(Trendlines, __uuidof(Trendlines)); _COM_SMARTPTR_TYPEDEF(DataLabels, __uuidof(DataLabels)); _COM_SMARTPTR_TYPEDEF(PlotArea, __uuidof(PlotArea)); _COM_SMARTPTR_TYPEDEF(ChartTitle, __uuidof(ChartTitle)); _COM_SMARTPTR_TYPEDEF(AxisTitle, __uuidof(AxisTitle)); _COM_SMARTPTR_TYPEDEF(DisplayUnitLabel, __uuidof(DisplayUnitLabel)); _COM_SMARTPTR_TYPEDEF(Axis, __uuidof(Axis)); _COM_SMARTPTR_TYPEDEF(Axes, __uuidof(Axes)); _COM_SMARTPTR_TYPEDEF(UndoRecord, __uuidof(UndoRecord)); _COM_SMARTPTR_TYPEDEF(ProtectedViewWindow, __uuidof(ProtectedViewWindow)); _COM_SMARTPTR_TYPEDEF(ProtectedViewWindows, __uuidof(ProtectedViewWindows)); _COM_SMARTPTR_TYPEDEF(_Font, __uuidof(_Font)); _COM_SMARTPTR_TYPEDEF(Point, __uuidof(Point)); _COM_SMARTPTR_TYPEDEF(Points, __uuidof(Points)); _COM_SMARTPTR_TYPEDEF(Options, __uuidof(Options)); _COM_SMARTPTR_TYPEDEF(FullSeriesCollection, __uuidof(FullSeriesCollection)); _COM_SMARTPTR_TYPEDEF(ChartCategory, __uuidof(ChartCategory)); _COM_SMARTPTR_TYPEDEF(CategoryCollection, __uuidof(CategoryCollection)); _COM_SMARTPTR_TYPEDEF(Broadcast, __uuidof(Broadcast)); _COM_SMARTPTR_TYPEDEF(Chart, __uuidof(Chart)); _COM_SMARTPTR_TYPEDEF(RevisionsFilter, __uuidof(RevisionsFilter)); _COM_SMARTPTR_TYPEDEF(View, __uuidof(View)); _COM_SMARTPTR_TYPEDEF(_Application, __uuidof(_Application)); _COM_SMARTPTR_TYPEDEF(_WordGlobal, __uuidof(_WordGlobal)); _COM_SMARTPTR_TYPEDEF(_Document, __uuidof(_Document)); _COM_SMARTPTR_TYPEDEF(Template, __uuidof(Template)); _COM_SMARTPTR_TYPEDEF(Templates, __uuidof(Templates)); _COM_SMARTPTR_TYPEDEF(Bookmark, __uuidof(Bookmark)); _COM_SMARTPTR_TYPEDEF(Bookmarks, __uuidof(Bookmarks)); _COM_SMARTPTR_TYPEDEF(Window, __uuidof(Window)); _COM_SMARTPTR_TYPEDEF(Windows, __uuidof(Windows)); _COM_SMARTPTR_TYPEDEF(Pane, __uuidof(Pane)); _COM_SMARTPTR_TYPEDEF(Panes, __uuidof(Panes)); _COM_SMARTPTR_TYPEDEF(Range, __uuidof(Range)); _COM_SMARTPTR_TYPEDEF(Characters, __uuidof(Characters)); _COM_SMARTPTR_TYPEDEF(Words, __uuidof(Words)); _COM_SMARTPTR_TYPEDEF(Sentences, __uuidof(Sentences)); _COM_SMARTPTR_TYPEDEF(Paragraph, __uuidof(Paragraph)); _COM_SMARTPTR_TYPEDEF(Paragraphs, __uuidof(Paragraphs)); _COM_SMARTPTR_TYPEDEF(AutoCorrectEntry, __uuidof(AutoCorrectEntry)); _COM_SMARTPTR_TYPEDEF(AutoCorrectEntries, __uuidof(AutoCorrectEntries)); _COM_SMARTPTR_TYPEDEF(AutoCorrect, __uuidof(AutoCorrect)); _COM_SMARTPTR_TYPEDEF(Footnote, __uuidof(Footnote)); _COM_SMARTPTR_TYPEDEF(Footnotes, __uuidof(Footnotes)); _COM_SMARTPTR_TYPEDEF(Endnote, __uuidof(Endnote)); _COM_SMARTPTR_TYPEDEF(Endnotes, __uuidof(Endnotes)); _COM_SMARTPTR_TYPEDEF(AutoTextEntry, __uuidof(AutoTextEntry)); _COM_SMARTPTR_TYPEDEF(AutoTextEntries, __uuidof(AutoTextEntries)); _COM_SMARTPTR_TYPEDEF(Frame, __uuidof(Frame)); _COM_SMARTPTR_TYPEDEF(Replacement, __uuidof(Replacement)); _COM_SMARTPTR_TYPEDEF(Find, __uuidof(Find)); _COM_SMARTPTR_TYPEDEF(Frames, __uuidof(Frames)); _COM_SMARTPTR_TYPEDEF(FormField, __uuidof(FormField)); _COM_SMARTPTR_TYPEDEF(FormFields, __uuidof(FormFields)); _COM_SMARTPTR_TYPEDEF(TableOfFigures, __uuidof(TableOfFigures)); _COM_SMARTPTR_TYPEDEF(MailMergeField, __uuidof(MailMergeField)); _COM_SMARTPTR_TYPEDEF(MailMergeFields, __uuidof(MailMergeFields)); _COM_SMARTPTR_TYPEDEF(MailMerge, __uuidof(MailMerge)); _COM_SMARTPTR_TYPEDEF(TableOfContents, __uuidof(TableOfContents)); _COM_SMARTPTR_TYPEDEF(TableOfAuthorities, __uuidof(TableOfAuthorities)); _COM_SMARTPTR_TYPEDEF(Index, __uuidof(Index)); _COM_SMARTPTR_TYPEDEF(Subdocument, __uuidof(Subdocument)); _COM_SMARTPTR_TYPEDEF(Subdocuments, __uuidof(Subdocuments)); _COM_SMARTPTR_TYPEDEF(StoryRanges, __uuidof(StoryRanges)); _COM_SMARTPTR_TYPEDEF(ListParagraphs, __uuidof(ListParagraphs)); _COM_SMARTPTR_TYPEDEF(ProofreadingErrors, __uuidof(ProofreadingErrors)); _COM_SMARTPTR_TYPEDEF(EmailSignatureEntries, __uuidof(EmailSignatureEntries)); _COM_SMARTPTR_TYPEDEF(EmailSignature, __uuidof(EmailSignature)); _COM_SMARTPTR_TYPEDEF(Break, __uuidof(Break)); _COM_SMARTPTR_TYPEDEF(Breaks, __uuidof(Breaks)); _COM_SMARTPTR_TYPEDEF(Editor, __uuidof(Editor)); _COM_SMARTPTR_TYPEDEF(Editors, __uuidof(Editors)); _COM_SMARTPTR_TYPEDEF(OMathBreak, __uuidof(OMathBreak)); _COM_SMARTPTR_TYPEDEF(OMathBreaks, __uuidof(OMathBreaks)); _COM_SMARTPTR_TYPEDEF(CoAuthUpdate, __uuidof(CoAuthUpdate)); _COM_SMARTPTR_TYPEDEF(CoAuthUpdates, __uuidof(CoAuthUpdates)); _COM_SMARTPTR_TYPEDEF(Conflict, __uuidof(Conflict)); _COM_SMARTPTR_TYPEDEF(Conflicts, __uuidof(Conflicts)); _COM_SMARTPTR_TYPEDEF(RepeatingSectionItem, __uuidof(RepeatingSectionItem)); _COM_SMARTPTR_TYPEDEF(RepeatingSectionItemColl, __uuidof(RepeatingSectionItemColl)); _COM_SMARTPTR_TYPEDEF(ListFormat, __uuidof(ListFormat)); _COM_SMARTPTR_TYPEDEF(Sections, __uuidof(Sections)); _COM_SMARTPTR_TYPEDEF(Section, __uuidof(Section)); _COM_SMARTPTR_TYPEDEF(Table, __uuidof(Table)); _COM_SMARTPTR_TYPEDEF(Tables, __uuidof(Tables)); _COM_SMARTPTR_TYPEDEF(Row, __uuidof(Row)); _COM_SMARTPTR_TYPEDEF(Rows, __uuidof(Rows)); _COM_SMARTPTR_TYPEDEF(Column, __uuidof(Column)); _COM_SMARTPTR_TYPEDEF(Cell, __uuidof(Cell)); _COM_SMARTPTR_TYPEDEF(Columns, __uuidof(Columns)); _COM_SMARTPTR_TYPEDEF(Cells, __uuidof(Cells)); _COM_SMARTPTR_TYPEDEF(Comments, __uuidof(Comments)); _COM_SMARTPTR_TYPEDEF(Comment, __uuidof(Comment)); _COM_SMARTPTR_TYPEDEF(Fields, __uuidof(Fields)); _COM_SMARTPTR_TYPEDEF(Field, __uuidof(Field)); _COM_SMARTPTR_TYPEDEF(TablesOfFigures, __uuidof(TablesOfFigures)); _COM_SMARTPTR_TYPEDEF(TablesOfContents, __uuidof(TablesOfContents)); _COM_SMARTPTR_TYPEDEF(TablesOfAuthorities, __uuidof(TablesOfAuthorities)); _COM_SMARTPTR_TYPEDEF(Indexes, __uuidof(Indexes)); _COM_SMARTPTR_TYPEDEF(Styles, __uuidof(Styles)); _COM_SMARTPTR_TYPEDEF(Style, __uuidof(Style)); _COM_SMARTPTR_TYPEDEF(Envelope, __uuidof(Envelope)); _COM_SMARTPTR_TYPEDEF(Revision, __uuidof(Revision)); _COM_SMARTPTR_TYPEDEF(Revisions, __uuidof(Revisions)); _COM_SMARTPTR_TYPEDEF(EmailAuthor, __uuidof(EmailAuthor)); _COM_SMARTPTR_TYPEDEF(EmailOptions, __uuidof(EmailOptions)); _COM_SMARTPTR_TYPEDEF(Email, __uuidof(Email)); _COM_SMARTPTR_TYPEDEF(Selection, __uuidof(Selection)); _COM_SMARTPTR_TYPEDEF(IApplicationEvents2, __uuidof(IApplicationEvents2)); _COM_SMARTPTR_TYPEDEF(IApplicationEvents3, __uuidof(IApplicationEvents3)); _COM_SMARTPTR_TYPEDEF(HeadersFooters, __uuidof(HeadersFooters)); _COM_SMARTPTR_TYPEDEF(HeaderFooter, __uuidof(HeaderFooter)); _COM_SMARTPTR_TYPEDEF(ListLevel, __uuidof(ListLevel)); _COM_SMARTPTR_TYPEDEF(ListLevels, __uuidof(ListLevels)); _COM_SMARTPTR_TYPEDEF(ListTemplate, __uuidof(ListTemplate)); _COM_SMARTPTR_TYPEDEF(ListTemplates, __uuidof(ListTemplates)); _COM_SMARTPTR_TYPEDEF(List, __uuidof(List)); _COM_SMARTPTR_TYPEDEF(Lists, __uuidof(Lists)); _COM_SMARTPTR_TYPEDEF(ListGallery, __uuidof(ListGallery)); _COM_SMARTPTR_TYPEDEF(ListGalleries, __uuidof(ListGalleries)); _COM_SMARTPTR_TYPEDEF(Hyperlinks, __uuidof(Hyperlinks)); _COM_SMARTPTR_TYPEDEF(Hyperlink, __uuidof(Hyperlink)); _COM_SMARTPTR_TYPEDEF(Shapes, __uuidof(Shapes)); _COM_SMARTPTR_TYPEDEF(ShapeRange, __uuidof(ShapeRange)); _COM_SMARTPTR_TYPEDEF(GroupShapes, __uuidof(GroupShapes)); _COM_SMARTPTR_TYPEDEF(Shape, __uuidof(Shape)); _COM_SMARTPTR_TYPEDEF(TextFrame, __uuidof(TextFrame)); _COM_SMARTPTR_TYPEDEF(InlineShape, __uuidof(InlineShape)); _COM_SMARTPTR_TYPEDEF(InlineShapes, __uuidof(InlineShapes)); _COM_SMARTPTR_TYPEDEF(ConnectorFormat, __uuidof(ConnectorFormat)); _COM_SMARTPTR_TYPEDEF(FreeformBuilder, __uuidof(FreeformBuilder)); _COM_SMARTPTR_TYPEDEF(CanvasShapes, __uuidof(CanvasShapes)); _COM_SMARTPTR_TYPEDEF(HTMLDivision, __uuidof(HTMLDivision)); _COM_SMARTPTR_TYPEDEF(HTMLDivisions, __uuidof(HTMLDivisions)); _COM_SMARTPTR_TYPEDEF(DiagramNode, __uuidof(DiagramNode)); _COM_SMARTPTR_TYPEDEF(DiagramNodeChildren, __uuidof(DiagramNodeChildren)); _COM_SMARTPTR_TYPEDEF(DiagramNodes, __uuidof(DiagramNodes)); _COM_SMARTPTR_TYPEDEF(Diagram, __uuidof(Diagram)); _COM_SMARTPTR_TYPEDEF(SmartTag, __uuidof(SmartTag)); _COM_SMARTPTR_TYPEDEF(SmartTags, __uuidof(SmartTags)); _COM_SMARTPTR_TYPEDEF(Line, __uuidof(Line)); _COM_SMARTPTR_TYPEDEF(Lines, __uuidof(Lines)); _COM_SMARTPTR_TYPEDEF(Rectangle, __uuidof(Rectangle)); _COM_SMARTPTR_TYPEDEF(Rectangles, __uuidof(Rectangles)); _COM_SMARTPTR_TYPEDEF(Page, __uuidof(Page)); _COM_SMARTPTR_TYPEDEF(Pages, __uuidof(Pages)); _COM_SMARTPTR_TYPEDEF(XMLNode, __uuidof(XMLNode)); _COM_SMARTPTR_TYPEDEF(XMLNodes, __uuidof(XMLNodes)); _COM_SMARTPTR_TYPEDEF(XMLChildNodeSuggestion, __uuidof(XMLChildNodeSuggestion)); _COM_SMARTPTR_TYPEDEF(XMLChildNodeSuggestions, __uuidof(XMLChildNodeSuggestions)); _COM_SMARTPTR_TYPEDEF(IApplicationEvents4, __uuidof(IApplicationEvents4)); _COM_SMARTPTR_TYPEDEF(OMaths, __uuidof(OMaths)); _COM_SMARTPTR_TYPEDEF(OMath, __uuidof(OMath)); _COM_SMARTPTR_TYPEDEF(OMathArgs, __uuidof(OMathArgs)); _COM_SMARTPTR_TYPEDEF(OMathAcc, __uuidof(OMathAcc)); _COM_SMARTPTR_TYPEDEF(OMathBar, __uuidof(OMathBar)); _COM_SMARTPTR_TYPEDEF(OMathBox, __uuidof(OMathBox)); _COM_SMARTPTR_TYPEDEF(OMathBorderBox, __uuidof(OMathBorderBox)); _COM_SMARTPTR_TYPEDEF(OMathDelim, __uuidof(OMathDelim)); _COM_SMARTPTR_TYPEDEF(OMathEqArray, __uuidof(OMathEqArray)); _COM_SMARTPTR_TYPEDEF(OMathFrac, __uuidof(OMathFrac)); _COM_SMARTPTR_TYPEDEF(OMathFunc, __uuidof(OMathFunc)); _COM_SMARTPTR_TYPEDEF(OMathGroupChar, __uuidof(OMathGroupChar)); _COM_SMARTPTR_TYPEDEF(OMathMatRow, __uuidof(OMathMatRow)); _COM_SMARTPTR_TYPEDEF(OMathMatRows, __uuidof(OMathMatRows)); _COM_SMARTPTR_TYPEDEF(OMathMatCol, __uuidof(OMathMatCol)); _COM_SMARTPTR_TYPEDEF(OMathMatCols, __uuidof(OMathMatCols)); _COM_SMARTPTR_TYPEDEF(OMathMat, __uuidof(OMathMat)); _COM_SMARTPTR_TYPEDEF(OMathNary, __uuidof(OMathNary)); _COM_SMARTPTR_TYPEDEF(OMathPhantom, __uuidof(OMathPhantom)); _COM_SMARTPTR_TYPEDEF(OMathRad, __uuidof(OMathRad)); _COM_SMARTPTR_TYPEDEF(OMathScrSub, __uuidof(OMathScrSub)); _COM_SMARTPTR_TYPEDEF(OMathScrSup, __uuidof(OMathScrSup)); _COM_SMARTPTR_TYPEDEF(OMathFunctions, __uuidof(OMathFunctions)); _COM_SMARTPTR_TYPEDEF(OMathFunction, __uuidof(OMathFunction)); _COM_SMARTPTR_TYPEDEF(OMathLimLow, __uuidof(OMathLimLow)); _COM_SMARTPTR_TYPEDEF(OMathLimUpp, __uuidof(OMathLimUpp)); _COM_SMARTPTR_TYPEDEF(OMathScrPre, __uuidof(OMathScrPre)); _COM_SMARTPTR_TYPEDEF(OMathScrSubSup, __uuidof(OMathScrSubSup)); _COM_SMARTPTR_TYPEDEF(ContentControls, __uuidof(ContentControls)); _COM_SMARTPTR_TYPEDEF(ContentControl, __uuidof(ContentControl)); _COM_SMARTPTR_TYPEDEF(BuildingBlockTypes, __uuidof(BuildingBlockTypes)); _COM_SMARTPTR_TYPEDEF(BuildingBlockType, __uuidof(BuildingBlockType)); _COM_SMARTPTR_TYPEDEF(Categories, __uuidof(Categories)); _COM_SMARTPTR_TYPEDEF(Category, __uuidof(Category)); _COM_SMARTPTR_TYPEDEF(BuildingBlock, __uuidof(BuildingBlock)); _COM_SMARTPTR_TYPEDEF(BuildingBlocks, __uuidof(BuildingBlocks)); _COM_SMARTPTR_TYPEDEF(BuildingBlockEntries, __uuidof(BuildingBlockEntries)); _COM_SMARTPTR_TYPEDEF(CoAuthLock, __uuidof(CoAuthLock)); _COM_SMARTPTR_TYPEDEF(CoAuthLocks, __uuidof(CoAuthLocks)); _COM_SMARTPTR_TYPEDEF(CoAuthor, __uuidof(CoAuthor)); _COM_SMARTPTR_TYPEDEF(CoAuthors, __uuidof(CoAuthors)); _COM_SMARTPTR_TYPEDEF(CoAuthoring, __uuidof(CoAuthoring)); // // Type library items // enum __declspec(uuid("67ac5ff1-fd6c-31ed-a7ed-a11543d2d4fe")) WdMailSystem { wdNoMailSystem = 0, wdMAPI = 1, wdPowerTalk = 2, wdMAPIandPowerTalk = 3 }; enum __declspec(uuid("06f6494c-22d0-33d8-83f3-f466584578a8")) WdTemplateType { wdNormalTemplate = 0, wdGlobalTemplate = 1, wdAttachedTemplate = 2 }; enum __declspec(uuid("737849e0-892d-320b-a3fd-9121557d4c3c")) WdContinue { wdContinueDisabled = 0, wdResetList = 1, wdContinueList = 2 }; enum __declspec(uuid("8be9ff6b-231c-32f4-8f21-fd47474070ba")) WdIMEMode { wdIMEModeNoControl = 0, wdIMEModeOn = 1, wdIMEModeOff = 2, wdIMEModeHiragana = 4, wdIMEModeKatakana = 5, wdIMEModeKatakanaHalf = 6, wdIMEModeAlphaFull = 7, wdIMEModeAlpha = 8, wdIMEModeHangulFull = 9, wdIMEModeHangul = 10 }; enum __declspec(uuid("d1f7d404-fe34-32ea-8235-0fb8caa2e73b")) WdBaselineAlignment { wdBaselineAlignTop = 0, wdBaselineAlignCenter = 1, wdBaselineAlignBaseline = 2, wdBaselineAlignFarEast50 = 3, wdBaselineAlignAuto = 4 }; enum __declspec(uuid("fb2904fb-acc0-36c0-8d06-aee924d88a08")) WdIndexFilter { wdIndexFilterNone = 0, wdIndexFilterAiueo = 1, wdIndexFilterAkasatana = 2, wdIndexFilterChosung = 3, wdIndexFilterLow = 4, wdIndexFilterMedium = 5, wdIndexFilterFull = 6 }; enum __declspec(uuid("30f5093a-00f9-3458-981b-0b1993b64bbb")) WdIndexSortBy { wdIndexSortByStroke = 0, wdIndexSortBySyllable = 1 }; enum __declspec(uuid("8f1c83ea-c44e-332c-96cb-aa583de5fa82")) WdJustificationMode { wdJustificationModeExpand = 0, wdJustificationModeCompress = 1, wdJustificationModeCompressKana = 2 }; enum __declspec(uuid("25e17c0c-411c-325c-8596-29df87921d53")) WdFarEastLineBreakLevel { wdFarEastLineBreakLevelNormal = 0, wdFarEastLineBreakLevelStrict = 1, wdFarEastLineBreakLevelCustom = 2 }; enum __declspec(uuid("b0174301-3877-3296-9551-0d01d6cad020")) WdMultipleWordConversionsMode { wdHangulToHanja = 0, wdHanjaToHangul = 1 }; enum __declspec(uuid("b1f5a6ab-437d-319f-8b38-0e087d112fea")) WdColorIndex { wdAuto = 0, wdBlack = 1, wdBlue = 2, wdTurquoise = 3, wdBrightGreen = 4, wdPink = 5, wdRed = 6, wdYellow = 7, wdWhite = 8, wdDarkBlue = 9, wdTeal = 10, wdGreen = 11, wdViolet = 12, wdDarkRed = 13, wdDarkYellow = 14, wdGray50 = 15, wdGray25 = 16, wdByAuthor = -1, wdNoHighlight = 0 }; enum __declspec(uuid("0213f5f4-e991-3060-a73f-79e85ba560c1")) WdTextureIndex { wdTextureNone = 0, wdTexture2Pt5Percent = 25, wdTexture5Percent = 50, wdTexture7Pt5Percent = 75, wdTexture10Percent = 100, wdTexture12Pt5Percent = 125, wdTexture15Percent = 150, wdTexture17Pt5Percent = 175, wdTexture20Percent = 200, wdTexture22Pt5Percent = 225, wdTexture25Percent = 250, wdTexture27Pt5Percent = 275, wdTexture30Percent = 300, wdTexture32Pt5Percent = 325, wdTexture35Percent = 350, wdTexture37Pt5Percent = 375, wdTexture40Percent = 400, wdTexture42Pt5Percent = 425, wdTexture45Percent = 450, wdTexture47Pt5Percent = 475, wdTexture50Percent = 500, wdTexture52Pt5Percent = 525, wdTexture55Percent = 550, wdTexture57Pt5Percent = 575, wdTexture60Percent = 600, wdTexture62Pt5Percent = 625, wdTexture65Percent = 650, wdTexture67Pt5Percent = 675, wdTexture70Percent = 700, wdTexture72Pt5Percent = 725, wdTexture75Percent = 750, wdTexture77Pt5Percent = 775, wdTexture80Percent = 800, wdTexture82Pt5Percent = 825, wdTexture85Percent = 850, wdTexture87Pt5Percent = 875, wdTexture90Percent = 900, wdTexture92Pt5Percent = 925, wdTexture95Percent = 950, wdTexture97Pt5Percent = 975, wdTextureSolid = 1000, wdTextureDarkHorizontal = -1, wdTextureDarkVertical = -2, wdTextureDarkDiagonalDown = -3, wdTextureDarkDiagonalUp = -4, wdTextureDarkCross = -5, wdTextureDarkDiagonalCross = -6, wdTextureHorizontal = -7, wdTextureVertical = -8, wdTextureDiagonalDown = -9, wdTextureDiagonalUp = -10, wdTextureCross = -11, wdTextureDiagonalCross = -12 }; enum __declspec(uuid("da77b198-31e3-312b-83eb-a0cfd52b0085")) WdUnderline { wdUnderlineNone = 0, wdUnderlineSingle = 1, wdUnderlineWords = 2, wdUnderlineDouble = 3, wdUnderlineDotted = 4, wdUnderlineThick = 6, wdUnderlineDash = 7, wdUnderlineDotDash = 9, wdUnderlineDotDotDash = 10, wdUnderlineWavy = 11, wdUnderlineWavyHeavy = 27, wdUnderlineDottedHeavy = 20, wdUnderlineDashHeavy = 23, wdUnderlineDotDashHeavy = 25, wdUnderlineDotDotDashHeavy = 26, wdUnderlineDashLong = 39, wdUnderlineDashLongHeavy = 55, wdUnderlineWavyDouble = 43 }; enum __declspec(uuid("9f76aa71-557e-3bf3-ac54-72e6d099b16b")) WdEmphasisMark { wdEmphasisMarkNone = 0, wdEmphasisMarkOverSolidCircle = 1, wdEmphasisMarkOverComma = 2, wdEmphasisMarkOverWhiteCircle = 3, wdEmphasisMarkUnderSolidCircle = 4 }; enum __declspec(uuid("5077203f-7859-39b5-bf08-8308bde14529")) WdInternationalIndex { wdListSeparator = 17, wdDecimalSeparator = 18, wdThousandsSeparator = 19, wdCurrencyCode = 20, wd24HourClock = 21, wdInternationalAM = 22, wdInternationalPM = 23, wdTimeSeparator = 24, wdDateSeparator = 25, wdProductLanguageID = 26 }; enum __declspec(uuid("9a947b78-450d-3757-b619-68cecce5bcf5")) WdAutoMacros { wdAutoExec = 0, wdAutoNew = 1, wdAutoOpen = 2, wdAutoClose = 3, wdAutoExit = 4, wdAutoSync = 5 }; enum __declspec(uuid("946db172-20cf-313f-961c-76112797145c")) WdCaptionPosition { wdCaptionPositionAbove = 0, wdCaptionPositionBelow = 1 }; enum __declspec(uuid("5a6a6ef1-8165-3efa-8982-536c7977a79d")) WdCountry { wdUS = 1, wdCanada = 2, wdLatinAmerica = 3, wdNetherlands = 31, wdFrance = 33, wdSpain = 34, wdItaly = 39, wdUK = 44, wdDenmark = 45, wdSweden = 46, wdNorway = 47, wdGermany = 49, wdPeru = 51, wdMexico = 52, wdArgentina = 54, wdBrazil = 55, wdChile = 56, wdVenezuela = 58, wdJapan = 81, wdTaiwan = 886, wdChina = 86, wdKorea = 82, wdFinland = 358, wdIceland = 354 }; enum __declspec(uuid("9b5f3357-a13f-3ee2-8123-33e385d2fd51")) WdHeadingSeparator { wdHeadingSeparatorNone = 0, wdHeadingSeparatorBlankLine = 1, wdHeadingSeparatorLetter = 2, wdHeadingSeparatorLetterLow = 3, wdHeadingSeparatorLetterFull = 4 }; enum __declspec(uuid("6840ce86-6ce5-3724-8961-31802690e713")) WdSeparatorType { wdSeparatorHyphen = 0, wdSeparatorPeriod = 1, wdSeparatorColon = 2, wdSeparatorEmDash = 3, wdSeparatorEnDash = 4 }; enum __declspec(uuid("062752c8-c44d-3cbd-a146-0dcd9544ba52")) WdPageNumberAlignment { wdAlignPageNumberLeft = 0, wdAlignPageNumberCenter = 1, wdAlignPageNumberRight = 2, wdAlignPageNumberInside = 3, wdAlignPageNumberOutside = 4 }; enum __declspec(uuid("c2bf1cfd-253f-35bf-90b4-74ac41756a39")) WdBorderType { wdBorderTop = -1, wdBorderLeft = -2, wdBorderBottom = -3, wdBorderRight = -4, wdBorderHorizontal = -5, wdBorderVertical = -6, wdBorderDiagonalDown = -7, wdBorderDiagonalUp = -8 }; enum WdBorderTypeHID { emptyenum = 0 }; enum __declspec(uuid("96c35218-1f30-3b6b-b8e9-1955ddfd52c3")) WdFramePosition { wdFrameTop = -999999, wdFrameLeft = -999998, wdFrameBottom = -999997, wdFrameRight = -999996, wdFrameCenter = -999995, wdFrameInside = -999994, wdFrameOutside = -999993 }; enum __declspec(uuid("fcfef17f-a1d7-396e-907e-c822026de484")) WdAnimation { wdAnimationNone = 0, wdAnimationLasVegasLights = 1, wdAnimationBlinkingBackground = 2, wdAnimationSparkleText = 3, wdAnimationMarchingBlackAnts = 4, wdAnimationMarchingRedAnts = 5, wdAnimationShimmer = 6 }; enum __declspec(uuid("db686ea6-1a50-3146-b8a0-868bc3c6f451")) WdCharacterCase { wdNextCase = -1, wdLowerCase = 0, wdUpperCase = 1, wdTitleWord = 2, wdTitleSentence = 4, wdToggleCase = 5, wdHalfWidth = 6, wdFullWidth = 7, wdKatakana = 8, wdHiragana = 9 }; enum WdCharacterCaseHID { // emptyenum = 0 }; enum __declspec(uuid("4f925449-10c2-34ba-81ab-6eb5c8f82f3e")) WdSummaryMode { wdSummaryModeHighlight = 0, wdSummaryModeHideAllButSummary = 1, wdSummaryModeInsert = 2, wdSummaryModeCreateNew = 3 }; enum __declspec(uuid("e4e5b4e7-b80e-3791-a642-f574f355ae9a")) WdSummaryLength { wd10Sentences = -2, wd20Sentences = -3, wd100Words = -4, wd500Words = -5, wd10Percent = -6, wd25Percent = -7, wd50Percent = -8, wd75Percent = -9 }; enum __declspec(uuid("1e795768-6e5c-3cf7-aacb-4cde284b7b04")) WdStyleType { wdStyleTypeParagraph = 1, wdStyleTypeCharacter = 2, wdStyleTypeTable = 3, wdStyleTypeList = 4, wdStyleTypeParagraphOnly = 5, wdStyleTypeLinked = 6 }; enum __declspec(uuid("d66b392b-bda5-3778-a812-f6eea5a96c2f")) WdUnits { wdCharacter = 1, wdWord = 2, wdSentence = 3, wdParagraph = 4, wdLine = 5, wdStory = 6, wdScreen = 7, wdSection = 8, wdColumn = 9, wdRow = 10, wdWindow = 11, wdCell = 12, wdCharacterFormatting = 13, wdParagraphFormatting = 14, wdTable = 15, wdItem = 16 }; enum __declspec(uuid("3568ee18-032c-39f9-a32b-179bc05cb782")) WdGoToItem { wdGoToBookmark = -1, wdGoToSection = 0, wdGoToPage = 1, wdGoToTable = 2, wdGoToLine = 3, wdGoToFootnote = 4, wdGoToEndnote = 5, wdGoToComment = 6, wdGoToField = 7, wdGoToGraphic = 8, wdGoToObject = 9, wdGoToEquation = 10, wdGoToHeading = 11, wdGoToPercent = 12, wdGoToSpellingError = 13, wdGoToGrammaticalError = 14, wdGoToProofreadingError = 15 }; enum __declspec(uuid("a1d2a478-67c7-3491-9e7e-64c6e8d43738")) WdGoToDirection { wdGoToFirst = 1, wdGoToLast = -1, wdGoToNext = 2, wdGoToRelative = 2, wdGoToPrevious = 3, wdGoToAbsolute = 1 }; enum __declspec(uuid("2def3465-d4c4-369b-b91e-68c9711f3a6c")) WdCollapseDirection { wdCollapseStart = 1, wdCollapseEnd = 0 }; enum __declspec(uuid("ad022562-7990-3b64-ba65-8c3a19b7d173")) WdRowHeightRule { wdRowHeightAuto = 0, wdRowHeightAtLeast = 1, wdRowHeightExactly = 2 }; enum __declspec(uuid("929f28b1-d115-39d0-ba39-2ea8425002f5")) WdFrameSizeRule { wdFrameAuto = 0, wdFrameAtLeast = 1, wdFrameExact = 2 }; enum __declspec(uuid("887c8129-94d1-3466-957e-664470f13d3f")) WdInsertCells { wdInsertCellsShiftRight = 0, wdInsertCellsShiftDown = 1, wdInsertCellsEntireRow = 2, wdInsertCellsEntireColumn = 3 }; enum __declspec(uuid("01f6710a-249d-3a35-a3b4-fcbf42bf72fa")) WdDeleteCells { wdDeleteCellsShiftLeft = 0, wdDeleteCellsShiftUp = 1, wdDeleteCellsEntireRow = 2, wdDeleteCellsEntireColumn = 3 }; enum __declspec(uuid("54679592-3e68-3ec3-93e5-22564d0388e7")) WdListApplyTo { wdListApplyToWholeList = 0, wdListApplyToThisPointForward = 1, wdListApplyToSelection = 2 }; enum __declspec(uuid("db697253-efc0-3ae8-818d-308f530cd32f")) WdAlertLevel { wdAlertsNone = 0, wdAlertsMessageBox = -2, wdAlertsAll = -1 }; enum __declspec(uuid("149777a8-d40c-3468-b27c-d7aea2caa817")) WdCursorType { wdCursorWait = 0, wdCursorIBeam = 1, wdCursorNormal = 2, wdCursorNorthwestArrow = 3 }; enum __declspec(uuid("a8e563f3-4acb-3b98-9507-13d0c7421517")) WdEnableCancelKey { wdCancelDisabled = 0, wdCancelInterrupt = 1 }; enum __declspec(uuid("b8749705-255f-370d-b1dd-4b027f6de5b6")) WdRulerStyle { wdAdjustNone = 0, wdAdjustProportional = 1, wdAdjustFirstColumn = 2, wdAdjustSameWidth = 3 }; enum __declspec(uuid("b46d9062-1db3-34c7-93d1-5e575e00b829")) WdParagraphAlignment { wdAlignParagraphLeft = 0, wdAlignParagraphCenter = 1, wdAlignParagraphRight = 2, wdAlignParagraphJustify = 3, wdAlignParagraphDistribute = 4, wdAlignParagraphJustifyMed = 5, wdAlignParagraphJustifyHi = 7, wdAlignParagraphJustifyLow = 8, wdAlignParagraphThaiJustify = 9 }; enum WdParagraphAlignmentHID { // emptyenum = 0 }; enum __declspec(uuid("73849dc1-4ecb-31bd-824c-bbdab04cf830")) WdListLevelAlignment { wdListLevelAlignLeft = 0, wdListLevelAlignCenter = 1, wdListLevelAlignRight = 2 }; enum __declspec(uuid("ec986bd6-35c2-368d-94d8-ac3850019aba")) WdRowAlignment { wdAlignRowLeft = 0, wdAlignRowCenter = 1, wdAlignRowRight = 2 }; enum __declspec(uuid("87364574-cad0-36ff-afe6-6106a232443b")) WdTabAlignment { wdAlignTabLeft = 0, wdAlignTabCenter = 1, wdAlignTabRight = 2, wdAlignTabDecimal = 3, wdAlignTabBar = 4, wdAlignTabList = 6 }; enum __declspec(uuid("750e1523-2ab0-3e82-9c10-65ee8ed77692")) WdVerticalAlignment { wdAlignVerticalTop = 0, wdAlignVerticalCenter = 1, wdAlignVerticalJustify = 2, wdAlignVerticalBottom = 3 }; enum __declspec(uuid("3a818b51-713a-3e63-91a4-287c06e75f3c")) WdCellVerticalAlignment { wdCellAlignVerticalTop = 0, wdCellAlignVerticalCenter = 1, wdCellAlignVerticalBottom = 3 }; enum __declspec(uuid("6a35e992-c575-318d-90c2-8f54b40236d6")) WdTrailingCharacter { wdTrailingTab = 0, wdTrailingSpace = 1, wdTrailingNone = 2 }; enum __declspec(uuid("49ec47c3-4535-3dfe-9a5c-d01f1c1bf4a4")) WdListGalleryType { wdBulletGallery = 1, wdNumberGallery = 2, wdOutlineNumberGallery = 3 }; enum __declspec(uuid("9c1dbe08-4499-311e-b83e-27b844624f91")) WdListNumberStyle { wdListNumberStyleArabic = 0, wdListNumberStyleUppercaseRoman = 1, wdListNumberStyleLowercaseRoman = 2, wdListNumberStyleUppercaseLetter = 3, wdListNumberStyleLowercaseLetter = 4, wdListNumberStyleOrdinal = 5, wdListNumberStyleCardinalText = 6, wdListNumberStyleOrdinalText = 7, wdListNumberStyleKanji = 10, wdListNumberStyleKanjiDigit = 11, wdListNumberStyleAiueoHalfWidth = 12, wdListNumberStyleIrohaHalfWidth = 13, wdListNumberStyleArabicFullWidth = 14, wdListNumberStyleKanjiTraditional = 16, wdListNumberStyleKanjiTraditional2 = 17, wdListNumberStyleNumberInCircle = 18, wdListNumberStyleAiueo = 20, wdListNumberStyleIroha = 21, wdListNumberStyleArabicLZ = 22, wdListNumberStyleBullet = 23, wdListNumberStyleGanada = 24, wdListNumberStyleChosung = 25, wdListNumberStyleGBNum1 = 26, wdListNumberStyleGBNum2 = 27, wdListNumberStyleGBNum3 = 28, wdListNumberStyleGBNum4 = 29, wdListNumberStyleZodiac1 = 30, wdListNumberStyleZodiac2 = 31, wdListNumberStyleZodiac3 = 32, wdListNumberStyleTradChinNum1 = 33, wdListNumberStyleTradChinNum2 = 34, wdListNumberStyleTradChinNum3 = 35, wdListNumberStyleTradChinNum4 = 36, wdListNumberStyleSimpChinNum1 = 37, wdListNumberStyleSimpChinNum2 = 38, wdListNumberStyleSimpChinNum3 = 39, wdListNumberStyleSimpChinNum4 = 40, wdListNumberStyleHanjaRead = 41, wdListNumberStyleHanjaReadDigit = 42, wdListNumberStyleHangul = 43, wdListNumberStyleHanja = 44, wdListNumberStyleHebrew1 = 45, wdListNumberStyleArabic1 = 46, wdListNumberStyleHebrew2 = 47, wdListNumberStyleArabic2 = 48, wdListNumberStyleHindiLetter1 = 49, wdListNumberStyleHindiLetter2 = 50, wdListNumberStyleHindiArabic = 51, wdListNumberStyleHindiCardinalText = 52, wdListNumberStyleThaiLetter = 53, wdListNumberStyleThaiArabic = 54, wdListNumberStyleThaiCardinalText = 55, wdListNumberStyleVietCardinalText = 56, wdListNumberStyleLowercaseRussian = 58, wdListNumberStyleUppercaseRussian = 59, wdListNumberStyleLowercaseGreek = 60, wdListNumberStyleUppercaseGreek = 61, wdListNumberStyleArabicLZ2 = 62, wdListNumberStyleArabicLZ3 = 63, wdListNumberStyleArabicLZ4 = 64, wdListNumberStyleLowercaseTurkish = 65, wdListNumberStyleUppercaseTurkish = 66, wdListNumberStyleLowercaseBulgarian = 67, wdListNumberStyleUppercaseBulgarian = 68, wdListNumberStylePictureBullet = 249, wdListNumberStyleLegal = 253, wdListNumberStyleLegalLZ = 254, wdListNumberStyleNone = 255 }; enum WdListNumberStyleHID { // emptyenum = 0 }; enum __declspec(uuid("aca7717a-16c6-370b-80dd-55f440008a67")) WdNoteNumberStyle { wdNoteNumberStyleArabic = 0, wdNoteNumberStyleUppercaseRoman = 1, wdNoteNumberStyleLowercaseRoman = 2, wdNoteNumberStyleUppercaseLetter = 3, wdNoteNumberStyleLowercaseLetter = 4, wdNoteNumberStyleSymbol = 9, wdNoteNumberStyleArabicFullWidth = 14, wdNoteNumberStyleKanji = 10, wdNoteNumberStyleKanjiDigit = 11, wdNoteNumberStyleKanjiTraditional = 16, wdNoteNumberStyleNumberInCircle = 18, wdNoteNumberStyleHanjaRead = 41, wdNoteNumberStyleHanjaReadDigit = 42, wdNoteNumberStyleTradChinNum1 = 33, wdNoteNumberStyleTradChinNum2 = 34, wdNoteNumberStyleSimpChinNum1 = 37, wdNoteNumberStyleSimpChinNum2 = 38, wdNoteNumberStyleHebrewLetter1 = 45, wdNoteNumberStyleArabicLetter1 = 46, wdNoteNumberStyleHebrewLetter2 = 47, wdNoteNumberStyleArabicLetter2 = 48, wdNoteNumberStyleHindiLetter1 = 49, wdNoteNumberStyleHindiLetter2 = 50, wdNoteNumberStyleHindiArabic = 51, wdNoteNumberStyleHindiCardinalText = 52, wdNoteNumberStyleThaiLetter = 53, wdNoteNumberStyleThaiArabic = 54, wdNoteNumberStyleThaiCardinalText = 55, wdNoteNumberStyleVietCardinalText = 56 }; enum WdNoteNumberStyleHID { // emptyenum = 0 }; enum __declspec(uuid("d6f59885-2962-305c-aa83-bbab24cdb85e")) WdCaptionNumberStyle { wdCaptionNumberStyleArabic = 0, wdCaptionNumberStyleUppercaseRoman = 1, wdCaptionNumberStyleLowercaseRoman = 2, wdCaptionNumberStyleUppercaseLetter = 3, wdCaptionNumberStyleLowercaseLetter = 4, wdCaptionNumberStyleArabicFullWidth = 14, wdCaptionNumberStyleKanji = 10, wdCaptionNumberStyleKanjiDigit = 11, wdCaptionNumberStyleKanjiTraditional = 16, wdCaptionNumberStyleNumberInCircle = 18, wdCaptionNumberStyleGanada = 24, wdCaptionNumberStyleChosung = 25, wdCaptionNumberStyleZodiac1 = 30, wdCaptionNumberStyleZodiac2 = 31, wdCaptionNumberStyleHanjaRead = 41, wdCaptionNumberStyleHanjaReadDigit = 42, wdCaptionNumberStyleTradChinNum2 = 34, wdCaptionNumberStyleTradChinNum3 = 35, wdCaptionNumberStyleSimpChinNum2 = 38, wdCaptionNumberStyleSimpChinNum3 = 39, wdCaptionNumberStyleHebrewLetter1 = 45, wdCaptionNumberStyleArabicLetter1 = 46, wdCaptionNumberStyleHebrewLetter2 = 47, wdCaptionNumberStyleArabicLetter2 = 48, wdCaptionNumberStyleHindiLetter1 = 49, wdCaptionNumberStyleHindiLetter2 = 50, wdCaptionNumberStyleHindiArabic = 51, wdCaptionNumberStyleHindiCardinalText = 52, wdCaptionNumberStyleThaiLetter = 53, wdCaptionNumberStyleThaiArabic = 54, wdCaptionNumberStyleThaiCardinalText = 55, wdCaptionNumberStyleVietCardinalText = 56 }; enum WdCaptionNumberStyleHID { // emptyenum = 0 }; enum __declspec(uuid("e9a67a18-2af6-3495-93a9-82262f18c4e5")) WdPageNumberStyle { wdPageNumberStyleArabic = 0, wdPageNumberStyleUppercaseRoman = 1, wdPageNumberStyleLowercaseRoman = 2, wdPageNumberStyleUppercaseLetter = 3, wdPageNumberStyleLowercaseLetter = 4, wdPageNumberStyleArabicFullWidth = 14, wdPageNumberStyleKanji = 10, wdPageNumberStyleKanjiDigit = 11, wdPageNumberStyleKanjiTraditional = 16, wdPageNumberStyleNumberInCircle = 18, wdPageNumberStyleHanjaRead = 41, wdPageNumberStyleHanjaReadDigit = 42, wdPageNumberStyleTradChinNum1 = 33, wdPageNumberStyleTradChinNum2 = 34, wdPageNumberStyleSimpChinNum1 = 37, wdPageNumberStyleSimpChinNum2 = 38, wdPageNumberStyleHebrewLetter1 = 45, wdPageNumberStyleArabicLetter1 = 46, wdPageNumberStyleHebrewLetter2 = 47, wdPageNumberStyleArabicLetter2 = 48, wdPageNumberStyleHindiLetter1 = 49, wdPageNumberStyleHindiLetter2 = 50, wdPageNumberStyleHindiArabic = 51, wdPageNumberStyleHindiCardinalText = 52, wdPageNumberStyleThaiLetter = 53, wdPageNumberStyleThaiArabic = 54, wdPageNumberStyleThaiCardinalText = 55, wdPageNumberStyleVietCardinalText = 56, wdPageNumberStyleNumberInDash = 57 }; enum WdPageNumberStyleHID { // emptyenum = 0 }; enum __declspec(uuid("315154ad-f287-33ee-aede-8781545c713f")) WdStatistic { wdStatisticWords = 0, wdStatisticLines = 1, wdStatisticPages = 2, wdStatisticCharacters = 3, wdStatisticParagraphs = 4, wdStatisticCharactersWithSpaces = 5, wdStatisticFarEastCharacters = 6 }; enum WdStatisticHID { // emptyenum = 0 }; enum __declspec(uuid("b9ede5b0-50fa-3327-b624-b21f9391ad5b")) WdBuiltInProperty { wdPropertyTitle = 1, wdPropertySubject = 2, wdPropertyAuthor = 3, wdPropertyKeywords = 4, wdPropertyComments = 5, wdPropertyTemplate = 6, wdPropertyLastAuthor = 7, wdPropertyRevision = 8, wdPropertyAppName = 9, wdPropertyTimeLastPrinted = 10, wdPropertyTimeCreated = 11, wdPropertyTimeLastSaved = 12, wdPropertyVBATotalEdit = 13, wdPropertyPages = 14, wdPropertyWords = 15, wdPropertyCharacters = 16, wdPropertySecurity = 17, wdPropertyCategory = 18, wdPropertyFormat = 19, wdPropertyManager = 20, wdPropertyCompany = 21, wdPropertyBytes = 22, wdPropertyLines = 23, wdPropertyParas = 24, wdPropertySlides = 25, wdPropertyNotes = 26, wdPropertyHiddenSlides = 27, wdPropertyMMClips = 28, wdPropertyHyperlinkBase = 29, wdPropertyCharsWSpaces = 30 }; enum __declspec(uuid("296716cf-7239-3cd0-b338-23b6bddc1bce")) WdLineSpacing { wdLineSpaceSingle = 0, wdLineSpace1pt5 = 1, wdLineSpaceDouble = 2, wdLineSpaceAtLeast = 3, wdLineSpaceExactly = 4, wdLineSpaceMultiple = 5 }; enum __declspec(uuid("e185d7da-3cbf-3644-806e-5f683669af8e")) WdNumberType { wdNumberParagraph = 1, wdNumberListNum = 2, wdNumberAllNumbers = 3 }; enum __declspec(uuid("bfb32608-3f71-3941-964a-959ad6d57a8a")) WdListType { wdListNoNumbering = 0, wdListListNumOnly = 1, wdListBullet = 2, wdListSimpleNumbering = 3, wdListOutlineNumbering = 4, wdListMixedNumbering = 5, wdListPictureBullet = 6 }; enum __declspec(uuid("28594d1a-a83a-3372-a275-c1700cfb7d42")) WdStoryType { wdMainTextStory = 1, wdFootnotesStory = 2, wdEndnotesStory = 3, wdCommentsStory = 4, wdTextFrameStory = 5, wdEvenPagesHeaderStory = 6, wdPrimaryHeaderStory = 7, wdEvenPagesFooterStory = 8, wdPrimaryFooterStory = 9, wdFirstPageHeaderStory = 10, wdFirstPageFooterStory = 11, wdFootnoteSeparatorStory = 12, wdFootnoteContinuationSeparatorStory = 13, wdFootnoteContinuationNoticeStory = 14, wdEndnoteSeparatorStory = 15, wdEndnoteContinuationSeparatorStory = 16, wdEndnoteContinuationNoticeStory = 17 }; enum __declspec(uuid("6aeebc10-0420-3fb1-8a04-5f2053c4dae9")) WdSaveFormat { wdFormatDocument = 0, wdFormatDocument97 = 0, wdFormatTemplate = 1, wdFormatTemplate97 = 1, wdFormatText = 2, wdFormatTextLineBreaks = 3, wdFormatDOSText = 4, wdFormatDOSTextLineBreaks = 5, wdFormatRTF = 6, wdFormatUnicodeText = 7, wdFormatEncodedText = 7, wdFormatHTML = 8, wdFormatWebArchive = 9, wdFormatFilteredHTML = 10, wdFormatXML = 11, wdFormatXMLDocument = 12, wdFormatXMLDocumentMacroEnabled = 13, wdFormatXMLTemplate = 14, wdFormatXMLTemplateMacroEnabled = 15, wdFormatDocumentDefault = 16, wdFormatPDF = 17, wdFormatXPS = 18, wdFormatFlatXML = 19, wdFormatFlatXMLMacroEnabled = 20, wdFormatFlatXMLTemplate = 21, wdFormatFlatXMLTemplateMacroEnabled = 22, wdFormatOpenDocumentText = 23, wdFormatStrictOpenXMLDocument = 24 }; enum __declspec(uuid("9c1b95da-5f16-303b-8b1c-9c846d96de8e")) WdOpenFormat { wdOpenFormatAuto = 0, wdOpenFormatDocument = 1, wdOpenFormatTemplate = 2, wdOpenFormatRTF = 3, wdOpenFormatText = 4, wdOpenFormatUnicodeText = 5, wdOpenFormatEncodedText = 5, wdOpenFormatAllWord = 6, wdOpenFormatWebPages = 7, wdOpenFormatXML = 8, wdOpenFormatXMLDocument = 9, wdOpenFormatXMLDocumentMacroEnabled = 10, wdOpenFormatXMLTemplate = 11, wdOpenFormatXMLTemplateMacroEnabled = 12, wdOpenFormatDocument97 = 1, wdOpenFormatTemplate97 = 2, wdOpenFormatAllWordTemplates = 13, wdOpenFormatXMLDocumentSerialized = 14, wdOpenFormatXMLDocumentMacroEnabledSerialized = 15, wdOpenFormatXMLTemplateSerialized = 16, wdOpenFormatXMLTemplateMacroEnabledSerialized = 17, wdOpenFormatOpenDocumentText = 18 }; enum __declspec(uuid("98e477b0-5ac3-3a32-8b67-108cca2440e2")) WdHeaderFooterIndex { wdHeaderFooterPrimary = 1, wdHeaderFooterFirstPage = 2, wdHeaderFooterEvenPages = 3 }; enum __declspec(uuid("381be070-999b-3575-adc6-68fc392af3d3")) WdTocFormat { wdTOCTemplate = 0, wdTOCClassic = 1, wdTOCDistinctive = 2, wdTOCFancy = 3, wdTOCModern = 4, wdTOCFormal = 5, wdTOCSimple = 6 }; enum __declspec(uuid("53781dd1-52ec-3c5f-8219-49f320aab5d6")) WdTofFormat { wdTOFTemplate = 0, wdTOFClassic = 1, wdTOFDistinctive = 2, wdTOFCentered = 3, wdTOFFormal = 4, wdTOFSimple = 5 }; enum __declspec(uuid("b12ac10c-dac9-3348-bd2b-29a0a270196b")) WdToaFormat { wdTOATemplate = 0, wdTOAClassic = 1, wdTOADistinctive = 2, wdTOAFormal = 3, wdTOASimple = 4 }; enum __declspec(uuid("54afdecb-0ec4-397d-96ab-8e2a64fd7c3a")) WdLineStyle { wdLineStyleNone = 0, wdLineStyleSingle = 1, wdLineStyleDot = 2, wdLineStyleDashSmallGap = 3, wdLineStyleDashLargeGap = 4, wdLineStyleDashDot = 5, wdLineStyleDashDotDot = 6, wdLineStyleDouble = 7, wdLineStyleTriple = 8, wdLineStyleThinThickSmallGap = 9, wdLineStyleThickThinSmallGap = 10, wdLineStyleThinThickThinSmallGap = 11, wdLineStyleThinThickMedGap = 12, wdLineStyleThickThinMedGap = 13, wdLineStyleThinThickThinMedGap = 14, wdLineStyleThinThickLargeGap = 15, wdLineStyleThickThinLargeGap = 16, wdLineStyleThinThickThinLargeGap = 17, wdLineStyleSingleWavy = 18, wdLineStyleDoubleWavy = 19, wdLineStyleDashDotStroked = 20, wdLineStyleEmboss3D = 21, wdLineStyleEngrave3D = 22, wdLineStyleOutset = 23, wdLineStyleInset = 24 }; enum __declspec(uuid("a33a1a8c-a17c-31ff-b651-1e748e509de2")) WdLineWidth { wdLineWidth025pt = 2, wdLineWidth050pt = 4, wdLineWidth075pt = 6, wdLineWidth100pt = 8, wdLineWidth150pt = 12, wdLineWidth225pt = 18, wdLineWidth300pt = 24, wdLineWidth450pt = 36, wdLineWidth600pt = 48 }; enum __declspec(uuid("58b14c6f-0fe6-3bca-880e-e3a9c039e588")) WdBreakType { wdSectionBreakNextPage = 2, wdSectionBreakContinuous = 3, wdSectionBreakEvenPage = 4, wdSectionBreakOddPage = 5, wdLineBreak = 6, wdPageBreak = 7, wdColumnBreak = 8, wdLineBreakClearLeft = 9, wdLineBreakClearRight = 10, wdTextWrappingBreak = 11 }; enum __declspec(uuid("2865fa06-2e76-3355-a5bc-60f362370c60")) WdTabLeader { wdTabLeaderSpaces = 0, wdTabLeaderDots = 1, wdTabLeaderDashes = 2, wdTabLeaderLines = 3, wdTabLeaderHeavy = 4, wdTabLeaderMiddleDot = 5 }; enum WdTabLeaderHID { // emptyenum = 0 }; enum __declspec(uuid("8793e9d7-bf93-3e72-aef2-566795531b56")) WdMeasurementUnits { wdInches = 0, wdCentimeters = 1, wdMillimeters = 2, wdPoints = 3, wdPicas = 4 }; enum WdMeasurementUnitsHID { // emptyenum = 0 }; enum __declspec(uuid("b7e0677c-2be6-3c25-8f71-a38e34a4e8ba")) WdDropPosition { wdDropNone = 0, wdDropNormal = 1, wdDropMargin = 2 }; enum __declspec(uuid("0a4d5556-fedb-329e-8eee-04ab37c53b94")) WdNumberingRule { wdRestartContinuous = 0, wdRestartSection = 1, wdRestartPage = 2 }; enum __declspec(uuid("7f3f2ed2-0b48-3fa1-8072-2f9923016adf")) WdFootnoteLocation { wdBottomOfPage = 0, wdBeneathText = 1 }; enum __declspec(uuid("183804e4-7307-32e8-8d48-2493383dc46d")) WdEndnoteLocation { wdEndOfSection = 0, wdEndOfDocument = 1 }; enum __declspec(uuid("2fddcdf6-144e-3f5c-ab71-5f689c31a753")) WdSortSeparator { wdSortSeparateByTabs = 0, wdSortSeparateByCommas = 1, wdSortSeparateByDefaultTableSeparator = 2 }; enum __declspec(uuid("5489d1d3-5b21-36be-aa09-34fb4ab52058")) WdTableFieldSeparator { wdSeparateByParagraphs = 0, wdSeparateByTabs = 1, wdSeparateByCommas = 2, wdSeparateByDefaultListSeparator = 3 }; enum __declspec(uuid("80eb5d8f-af97-3e3f-9ebd-1b1c645cbcc4")) WdSortFieldType { wdSortFieldAlphanumeric = 0, wdSortFieldNumeric = 1, wdSortFieldDate = 2, wdSortFieldSyllable = 3, wdSortFieldJapanJIS = 4, wdSortFieldStroke = 5, wdSortFieldKoreaKS = 6 }; enum WdSortFieldTypeHID { // emptyenum = 0 }; enum __declspec(uuid("b0ca07bd-9184-32b2-b361-d1d839787d06")) WdSortOrder { wdSortOrderAscending = 0, wdSortOrderDescending = 1 }; enum __declspec(uuid("6eedbba4-bd98-3f0a-a7e4-f4e97c8a6aa0")) WdTableFormat { wdTableFormatNone = 0, wdTableFormatSimple1 = 1, wdTableFormatSimple2 = 2, wdTableFormatSimple3 = 3, wdTableFormatClassic1 = 4, wdTableFormatClassic2 = 5, wdTableFormatClassic3 = 6, wdTableFormatClassic4 = 7, wdTableFormatColorful1 = 8, wdTableFormatColorful2 = 9, wdTableFormatColorful3 = 10, wdTableFormatColumns1 = 11, wdTableFormatColumns2 = 12, wdTableFormatColumns3 = 13, wdTableFormatColumns4 = 14, wdTableFormatColumns5 = 15, wdTableFormatGrid1 = 16, wdTableFormatGrid2 = 17, wdTableFormatGrid3 = 18, wdTableFormatGrid4 = 19, wdTableFormatGrid5 = 20, wdTableFormatGrid6 = 21, wdTableFormatGrid7 = 22, wdTableFormatGrid8 = 23, wdTableFormatList1 = 24, wdTableFormatList2 = 25, wdTableFormatList3 = 26, wdTableFormatList4 = 27, wdTableFormatList5 = 28, wdTableFormatList6 = 29, wdTableFormatList7 = 30, wdTableFormatList8 = 31, wdTableFormat3DEffects1 = 32, wdTableFormat3DEffects2 = 33, wdTableFormat3DEffects3 = 34, wdTableFormatContemporary = 35, wdTableFormatElegant = 36, wdTableFormatProfessional = 37, wdTableFormatSubtle1 = 38, wdTableFormatSubtle2 = 39, wdTableFormatWeb1 = 40, wdTableFormatWeb2 = 41, wdTableFormatWeb3 = 42 }; enum __declspec(uuid("397c8df3-b689-3db6-bec0-2525b93df811")) WdTableFormatApply { wdTableFormatApplyBorders = 1, wdTableFormatApplyShading = 2, wdTableFormatApplyFont = 4, wdTableFormatApplyColor = 8, wdTableFormatApplyAutoFit = 16, wdTableFormatApplyHeadingRows = 32, wdTableFormatApplyLastRow = 64, wdTableFormatApplyFirstColumn = 128, wdTableFormatApplyLastColumn = 256 }; enum __declspec(uuid("1614fdac-2173-3fb1-add3-1a35b81f8897")) WdLanguageID { wdLanguageNone = 0, wdNoProofing = 1024, wdAfrikaans = 1078, wdAlbanian = 1052, wdAmharic = 1118, wdArabicAlgeria = 5121, wdArabicBahrain = 15361, wdArabicEgypt = 3073, wdArabicIraq = 2049, wdArabicJordan = 11265, wdArabicKuwait = 13313, wdArabicLebanon = 12289, wdArabicLibya = 4097, wdArabicMorocco = 6145, wdArabicOman = 8193, wdArabicQatar = 16385, wdArabic = 1025, wdArabicSyria = 10241, wdArabicTunisia = 7169, wdArabicUAE = 14337, wdArabicYemen = 9217, wdArmenian = 1067, wdAssamese = 1101, wdAzeriCyrillic = 2092, wdAzeriLatin = 1068, wdBasque = 1069, wdByelorussian = 1059, wdBengali = 1093, wdBulgarian = 1026, wdBurmese = 1109, wdCatalan = 1027, wdCherokee = 1116, wdChineseHongKongSAR = 3076, wdChineseMacaoSAR = 5124, wdSimplifiedChinese = 2052, wdChineseSingapore = 4100, wdTraditionalChinese = 1028, wdCroatian = 1050, wdCzech = 1029, wdDanish = 1030, wdDivehi = 1125, wdBelgianDutch = 2067, wdDutch = 1043, wdEdo = 1126, wdEnglishAUS = 3081, wdEnglishBelize = 10249, wdEnglishCanadian = 4105, wdEnglishCaribbean = 9225, wdEnglishIreland = 6153, wdEnglishJamaica = 8201, wdEnglishNewZealand = 5129, wdEnglishPhilippines = 13321, wdEnglishSouthAfrica = 7177, wdEnglishTrinidadTobago = 11273, wdEnglishUK = 2057, wdEnglishUS = 1033, wdEnglishZimbabwe = 12297, wdEnglishIndonesia = 14345, wdEstonian = 1061, wdFaeroese = 1080, wdPersian = 1065, wdFilipino = 1124, wdFinnish = 1035, wdFulfulde = 1127, wdBelgianFrench = 2060, wdFrenchCameroon = 11276, wdFrenchCanadian = 3084, wdFrenchCotedIvoire = 12300, wdFrench = 1036, wdFrenchLuxembourg = 5132, wdFrenchMali = 13324, wdFrenchMonaco = 6156, wdFrenchReunion = 8204, wdFrenchSenegal = 10252, wdFrenchMorocco = 14348, wdFrenchHaiti = 15372, wdSwissFrench = 4108, wdFrenchWestIndies = 7180, wdFrenchCongoDRC = 9228, wdFrisianNetherlands = 1122, wdGaelicIreland = 2108, wdGaelicScotland = 1084, wdGalician = 1110, wdGeorgian = 1079, wdGermanAustria = 3079, wdGerman = 1031, wdGermanLiechtenstein = 5127, wdGermanLuxembourg = 4103, wdSwissGerman = 2055, wdGreek = 1032, wdGuarani = 1140, wdGujarati = 1095, wdHausa = 1128, wdHawaiian = 1141, wdHebrew = 1037, wdHindi = 1081, wdHungarian = 1038, wdIbibio = 1129, wdIcelandic = 1039, wdIgbo = 1136, wdIndonesian = 1057, wdInuktitut = 1117, wdItalian = 1040, wdSwissItalian = 2064, wdJapanese = 1041, wdKannada = 1099, wdKanuri = 1137, wdKashmiri = 1120, wdKazakh = 1087, wdKhmer = 1107, wdKirghiz = 1088, wdKonkani = 1111, wdKorean = 1042, wdKyrgyz = 1088, wdLao = 1108, wdLatin = 1142, wdLatvian = 1062, wdLithuanian = 1063, wdMacedonianFYROM = 1071, wdMalaysian = 1086, wdMalayBruneiDarussalam = 2110, wdMalayalam = 1100, wdMaltese = 1082, wdManipuri = 1112, wdMarathi = 1102, wdMongolian = 1104, wdNepali = 1121, wdNorwegianBokmol = 1044, wdNorwegianNynorsk = 2068, wdOriya = 1096, wdOromo = 1138, wdPashto = 1123, wdPolish = 1045, wdPortugueseBrazil = 1046, wdPortuguese = 2070, wdPunjabi = 1094, wdRhaetoRomanic = 1047, wdRomanianMoldova = 2072, wdRomanian = 1048, wdRussianMoldova = 2073, wdRussian = 1049, wdSamiLappish = 1083, wdSanskrit = 1103, wdSerbianCyrillic = 3098, wdSerbianLatin = 2074, wdSinhalese = 1115, wdSindhi = 1113, wdSindhiPakistan = 2137, wdSlovak = 1051, wdSlovenian = 1060, wdSomali = 1143, wdSorbian = 1070, wdSpanishArgentina = 11274, wdSpanishBolivia = 16394, wdSpanishChile = 13322, wdSpanishColombia = 9226, wdSpanishCostaRica = 5130, wdSpanishDominicanRepublic = 7178, wdSpanishEcuador = 12298, wdSpanishElSalvador = 17418, wdSpanishGuatemala = 4106, wdSpanishHonduras = 18442, wdMexicanSpanish = 2058, wdSpanishNicaragua = 19466, wdSpanishPanama = 6154, wdSpanishParaguay = 15370, wdSpanishPeru = 10250, wdSpanishPuertoRico = 20490, wdSpanishModernSort = 3082, wdSpanish = 1034, wdSpanishUruguay = 14346, wdSpanishVenezuela = 8202, wdSesotho = 1072, wdSutu = 1072, wdSwahili = 1089, wdSwedishFinland = 2077, wdSwedish = 1053, wdSyriac = 1114, wdTajik = 1064, wdTamazight = 1119, wdTamazightLatin = 2143, wdTamil = 1097, wdTatar = 1092, wdTelugu = 1098, wdThai = 1054, wdTibetan = 1105, wdTigrignaEthiopic = 1139, wdTigrignaEritrea = 2163, wdTsonga = 1073, wdTswana = 1074, wdTurkish = 1055, wdTurkmen = 1090, wdUkrainian = 1058, wdUrdu = 1056, wdUzbekCyrillic = 2115, wdUzbekLatin = 1091, wdVenda = 1075, wdVietnamese = 1066, wdWelsh = 1106, wdXhosa = 1076, wdYi = 1144, wdYiddish = 1085, wdYoruba = 1130, wdZulu = 1077 }; enum __declspec(uuid("ab7ede63-d9c9-3d21-98b0-8dcc19d5bd63")) WdFieldType { wdFieldEmpty = -1, wdFieldRef = 3, wdFieldIndexEntry = 4, wdFieldFootnoteRef = 5, wdFieldSet = 6, wdFieldIf = 7, wdFieldIndex = 8, wdFieldTOCEntry = 9, wdFieldStyleRef = 10, wdFieldRefDoc = 11, wdFieldSequence = 12, wdFieldTOC = 13, wdFieldInfo = 14, wdFieldTitle = 15, wdFieldSubject = 16, wdFieldAuthor = 17, wdFieldKeyWord = 18, wdFieldComments = 19, wdFieldLastSavedBy = 20, wdFieldCreateDate = 21, wdFieldSaveDate = 22, wdFieldPrintDate = 23, wdFieldRevisionNum = 24, wdFieldEditTime = 25, wdFieldNumPages = 26, wdFieldNumWords = 27, wdFieldNumChars = 28, wdFieldFileName = 29, wdFieldTemplate = 30, wdFieldDate = 31, wdFieldTime = 32, wdFieldPage = 33, wdFieldExpression = 34, wdFieldQuote = 35, wdFieldInclude = 36, wdFieldPageRef = 37, wdFieldAsk = 38, wdFieldFillIn = 39, wdFieldData = 40, wdFieldNext = 41, wdFieldNextIf = 42, wdFieldSkipIf = 43, wdFieldMergeRec = 44, wdFieldDDE = 45, wdFieldDDEAuto = 46, wdFieldGlossary = 47, wdFieldPrint = 48, wdFieldFormula = 49, wdFieldGoToButton = 50, wdFieldMacroButton = 51, wdFieldAutoNumOutline = 52, wdFieldAutoNumLegal = 53, wdFieldAutoNum = 54, wdFieldImport = 55, wdFieldLink = 56, wdFieldSymbol = 57, wdFieldEmbed = 58, wdFieldMergeField = 59, wdFieldUserName = 60, wdFieldUserInitials = 61, wdFieldUserAddress = 62, wdFieldBarCode = 63, wdFieldDocVariable = 64, wdFieldSection = 65, wdFieldSectionPages = 66, wdFieldIncludePicture = 67, wdFieldIncludeText = 68, wdFieldFileSize = 69, wdFieldFormTextInput = 70, wdFieldFormCheckBox = 71, wdFieldNoteRef = 72, wdFieldTOA = 73, wdFieldTOAEntry = 74, wdFieldMergeSeq = 75, wdFieldPrivate = 77, wdFieldDatabase = 78, wdFieldAutoText = 79, wdFieldCompare = 80, wdFieldAddin = 81, wdFieldSubscriber = 82, wdFieldFormDropDown = 83, wdFieldAdvance = 84, wdFieldDocProperty = 85, wdFieldOCX = 87, wdFieldHyperlink = 88, wdFieldAutoTextList = 89, wdFieldListNum = 90, wdFieldHTMLActiveX = 91, wdFieldBidiOutline = 92, wdFieldAddressBlock = 93, wdFieldGreetingLine = 94, wdFieldShape = 95, wdFieldCitation = 96, wdFieldBibliography = 97, wdFieldMergeBarcode = 98, wdFieldDisplayBarcode = 99 }; enum __declspec(uuid("200a1ef2-18fb-3bab-92ae-e3a78b2e1108")) WdBuiltinStyle { wdStyleNormal = -1, wdStyleEnvelopeAddress = -37, wdStyleEnvelopeReturn = -38, wdStyleBodyText = -67, wdStyleHeading1 = -2, wdStyleHeading2 = -3, wdStyleHeading3 = -4, wdStyleHeading4 = -5, wdStyleHeading5 = -6, wdStyleHeading6 = -7, wdStyleHeading7 = -8, wdStyleHeading8 = -9, wdStyleHeading9 = -10, wdStyleIndex1 = -11, wdStyleIndex2 = -12, wdStyleIndex3 = -13, wdStyleIndex4 = -14, wdStyleIndex5 = -15, wdStyleIndex6 = -16, wdStyleIndex7 = -17, wdStyleIndex8 = -18, wdStyleIndex9 = -19, wdStyleTOC1 = -20, wdStyleTOC2 = -21, wdStyleTOC3 = -22, wdStyleTOC4 = -23, wdStyleTOC5 = -24, wdStyleTOC6 = -25, wdStyleTOC7 = -26, wdStyleTOC8 = -27, wdStyleTOC9 = -28, wdStyleNormalIndent = -29, wdStyleFootnoteText = -30, wdStyleCommentText = -31, wdStyleHeader = -32, wdStyleFooter = -33, wdStyleIndexHeading = -34, wdStyleCaption = -35, wdStyleTableOfFigures = -36, wdStyleFootnoteReference = -39, wdStyleCommentReference = -40, wdStyleLineNumber = -41, wdStylePageNumber = -42, wdStyleEndnoteReference = -43, wdStyleEndnoteText = -44, wdStyleTableOfAuthorities = -45, wdStyleMacroText = -46, wdStyleTOAHeading = -47, wdStyleList = -48, wdStyleListBullet = -49, wdStyleListNumber = -50, wdStyleList2 = -51, wdStyleList3 = -52, wdStyleList4 = -53, wdStyleList5 = -54, wdStyleListBullet2 = -55, wdStyleListBullet3 = -56, wdStyleListBullet4 = -57, wdStyleListBullet5 = -58, wdStyleListNumber2 = -59, wdStyleListNumber3 = -60, wdStyleListNumber4 = -61, wdStyleListNumber5 = -62, wdStyleTitle = -63, wdStyleClosing = -64, wdStyleSignature = -65, wdStyleDefaultParagraphFont = -66, wdStyleBodyTextIndent = -68, wdStyleListContinue = -69, wdStyleListContinue2 = -70, wdStyleListContinue3 = -71, wdStyleListContinue4 = -72, wdStyleListContinue5 = -73, wdStyleMessageHeader = -74, wdStyleSubtitle = -75, wdStyleSalutation = -76, wdStyleDate = -77, wdStyleBodyTextFirstIndent = -78, wdStyleBodyTextFirstIndent2 = -79, wdStyleNoteHeading = -80, wdStyleBodyText2 = -81, wdStyleBodyText3 = -82, wdStyleBodyTextIndent2 = -83, wdStyleBodyTextIndent3 = -84, wdStyleBlockQuotation = -85, wdStyleHyperlink = -86, wdStyleHyperlinkFollowed = -87, wdStyleStrong = -88, wdStyleEmphasis = -89, wdStyleNavPane = -90, wdStylePlainText = -91, wdStyleHtmlNormal = -95, wdStyleHtmlAcronym = -96, wdStyleHtmlAddress = -97, wdStyleHtmlCite = -98, wdStyleHtmlCode = -99, wdStyleHtmlDfn = -100, wdStyleHtmlKbd = -101, wdStyleHtmlPre = -102, wdStyleHtmlSamp = -103, wdStyleHtmlTt = -104, wdStyleHtmlVar = -105, wdStyleNormalTable = -106, wdStyleNormalObject = -158, wdStyleTableLightShading = -159, wdStyleTableLightList = -160, wdStyleTableLightGrid = -161, wdStyleTableMediumShading1 = -162, wdStyleTableMediumShading2 = -163, wdStyleTableMediumList1 = -164, wdStyleTableMediumList2 = -165, wdStyleTableMediumGrid1 = -166, wdStyleTableMediumGrid2 = -167, wdStyleTableMediumGrid3 = -168, wdStyleTableDarkList = -169, wdStyleTableColorfulShading = -170, wdStyleTableColorfulList = -171, wdStyleTableColorfulGrid = -172, wdStyleTableLightShadingAccent1 = -173, wdStyleTableLightListAccent1 = -174, wdStyleTableLightGridAccent1 = -175, wdStyleTableMediumShading1Accent1 = -176, wdStyleTableMediumShading2Accent1 = -177, wdStyleTableMediumList1Accent1 = -178, wdStyleListParagraph = -180, wdStyleQuote = -181, wdStyleIntenseQuote = -182, wdStyleSubtleEmphasis = -261, wdStyleIntenseEmphasis = -262, wdStyleSubtleReference = -263, wdStyleIntenseReference = -264, wdStyleBookTitle = -265, wdStyleBibliography = -266, wdStyleTocHeading = -267 }; enum __declspec(uuid("5a240536-0b1f-3599-bf96-3fd550690ef3")) WdWordDialogTab { wdDialogToolsOptionsTabView = 204, wdDialogToolsOptionsTabGeneral = 203, wdDialogToolsOptionsTabEdit = 224, wdDialogToolsOptionsTabPrint = 208, wdDialogToolsOptionsTabSave = 209, wdDialogToolsOptionsTabProofread = 211, wdDialogToolsOptionsTabTrackChanges = 386, wdDialogToolsOptionsTabUserInfo = 213, wdDialogToolsOptionsTabCompatibility = 525, wdDialogToolsOptionsTabTypography = 739, wdDialogToolsOptionsTabFileLocations = 225, wdDialogToolsOptionsTabFuzzy = 790, wdDialogToolsOptionsTabHangulHanjaConversion = 786, wdDialogToolsOptionsTabBidi = 1029, wdDialogToolsOptionsTabSecurity = 1361, wdDialogFilePageSetupTabMargins = 150000, wdDialogFilePageSetupTabPaper = 150001, wdDialogFilePageSetupTabLayout = 150003, wdDialogFilePageSetupTabCharsLines = 150004, wdDialogInsertSymbolTabSymbols = 200000, wdDialogInsertSymbolTabSpecialCharacters = 200001, wdDialogNoteOptionsTabAllFootnotes = 300000, wdDialogNoteOptionsTabAllEndnotes = 300001, wdDialogInsertIndexAndTablesTabIndex = 400000, wdDialogInsertIndexAndTablesTabTableOfContents = 400001, wdDialogInsertIndexAndTablesTabTableOfFigures = 400002, wdDialogInsertIndexAndTablesTabTableOfAuthorities = 400003, wdDialogOrganizerTabStyles = 500000, wdDialogOrganizerTabAutoText = 500001, wdDialogOrganizerTabCommandBars = 500002, wdDialogOrganizerTabMacros = 500003, wdDialogFormatFontTabFont = 600000, wdDialogFormatFontTabCharacterSpacing = 600001, wdDialogFormatFontTabAnimation = 600002, wdDialogFormatBordersAndShadingTabBorders = 700000, wdDialogFormatBordersAndShadingTabPageBorder = 700001, wdDialogFormatBordersAndShadingTabShading = 700002, wdDialogToolsEnvelopesAndLabelsTabEnvelopes = 800000, wdDialogToolsEnvelopesAndLabelsTabLabels = 800001, wdDialogFormatParagraphTabIndentsAndSpacing = 1000000, wdDialogFormatParagraphTabTextFlow = 1000001, wdDialogFormatParagraphTabTeisai = 1000002, wdDialogFormatDrawingObjectTabColorsAndLines = 1200000, wdDialogFormatDrawingObjectTabSize = 1200001, wdDialogFormatDrawingObjectTabPosition = 1200002, wdDialogFormatDrawingObjectTabWrapping = 1200003, wdDialogFormatDrawingObjectTabPicture = 1200004, wdDialogFormatDrawingObjectTabTextbox = 1200005, wdDialogFormatDrawingObjectTabWeb = 1200006, wdDialogFormatDrawingObjectTabHR = 1200007, wdDialogToolsAutoCorrectExceptionsTabFirstLetter = 1400000, wdDialogToolsAutoCorrectExceptionsTabInitialCaps = 1400001, wdDialogToolsAutoCorrectExceptionsTabHangulAndAlphabet = 1400002, wdDialogToolsAutoCorrectExceptionsTabIac = 1400003, wdDialogFormatBulletsAndNumberingTabBulleted = 1500000, wdDialogFormatBulletsAndNumberingTabNumbered = 1500001, wdDialogFormatBulletsAndNumberingTabOutlineNumbered = 1500002, wdDialogLetterWizardTabLetterFormat = 1600000, wdDialogLetterWizardTabRecipientInfo = 1600001, wdDialogLetterWizardTabOtherElements = 1600002, wdDialogLetterWizardTabSenderInfo = 1600003, wdDialogToolsAutoManagerTabAutoCorrect = 1700000, wdDialogToolsAutoManagerTabAutoFormatAsYouType = 1700001, wdDialogToolsAutoManagerTabAutoText = 1700002, wdDialogToolsAutoManagerTabAutoFormat = 1700003, wdDialogToolsAutoManagerTabSmartTags = 1700004, wdDialogTablePropertiesTabTable = 1800000, wdDialogTablePropertiesTabRow = 1800001, wdDialogTablePropertiesTabColumn = 1800002, wdDialogTablePropertiesTabCell = 1800003, wdDialogEmailOptionsTabSignature = 1900000, wdDialogEmailOptionsTabStationary = 1900001, wdDialogEmailOptionsTabQuoting = 1900002, wdDialogWebOptionsBrowsers = 2000000, wdDialogWebOptionsGeneral = 2000000, wdDialogWebOptionsFiles = 2000001, wdDialogWebOptionsPictures = 2000002, wdDialogWebOptionsEncoding = 2000003, wdDialogWebOptionsFonts = 2000004, wdDialogToolsOptionsTabAcetate = 1266, wdDialogTemplates = 2100000, wdDialogTemplatesXMLSchema = 2100001, wdDialogTemplatesXMLExpansionPacks = 2100002, wdDialogTemplatesLinkedCSS = 2100003, wdDialogStyleManagementTabEdit = 2200000, wdDialogStyleManagementTabRecommend = 2200001, wdDialogStyleManagementTabRestrict = 2200002 }; enum __declspec(uuid("14a3993d-4639-3665-b2df-68d5c76e407b")) WdWordDialogTabHID { wdDialogFilePageSetupTabPaperSize = 150001, wdDialogFilePageSetupTabPaperSource = 150002 }; enum __declspec(uuid("6ec6b31b-aa8e-31a3-8211-3adb9601ac42")) WdWordDialog { wdDialogHelpAbout = 9, wdDialogHelpWordPerfectHelp = 10, wdDialogDocumentStatistics = 78, wdDialogFileNew = 79, wdDialogFileOpen = 80, wdDialogMailMergeOpenDataSource = 81, wdDialogMailMergeOpenHeaderSource = 82, wdDialogFileSaveAs = 84, wdDialogFileSummaryInfo = 86, wdDialogToolsTemplates = 87, wdDialogFilePrint = 88, wdDialogFilePrintSetup = 97, wdDialogFileFind = 99, wdDialogFormatAddrFonts = 103, wdDialogEditPasteSpecial = 111, wdDialogEditFind = 112, wdDialogEditReplace = 117, wdDialogEditStyle = 120, wdDialogEditLinks = 124, wdDialogEditObject = 125, wdDialogTableToText = 128, wdDialogTextToTable = 127, wdDialogTableInsertTable = 129, wdDialogTableInsertCells = 130, wdDialogTableInsertRow = 131, wdDialogTableDeleteCells = 133, wdDialogTableSplitCells = 137, wdDialogTableRowHeight = 142, wdDialogTableColumnWidth = 143, wdDialogToolsCustomize = 152, wdDialogInsertBreak = 159, wdDialogInsertSymbol = 162, wdDialogInsertPicture = 163, wdDialogInsertFile = 164, wdDialogInsertDateTime = 165, wdDialogInsertField = 166, wdDialogInsertMergeField = 167, wdDialogInsertBookmark = 168, wdDialogMarkIndexEntry = 169, wdDialogInsertIndex = 170, wdDialogInsertTableOfContents = 171, wdDialogInsertObject = 172, wdDialogToolsCreateEnvelope = 173, wdDialogFormatFont = 174, wdDialogFormatParagraph = 175, wdDialogFormatSectionLayout = 176, wdDialogFormatColumns = 177, wdDialogFileDocumentLayout = 178, wdDialogFilePageSetup = 178, wdDialogFormatTabs = 179, wdDialogFormatStyle = 180, wdDialogFormatDefineStyleFont = 181, wdDialogFormatDefineStylePara = 182, wdDialogFormatDefineStyleTabs = 183, wdDialogFormatDefineStyleFrame = 184, wdDialogFormatDefineStyleBorders = 185, wdDialogFormatDefineStyleLang = 186, wdDialogFormatPicture = 187, wdDialogToolsLanguage = 188, wdDialogFormatBordersAndShading = 189, wdDialogFormatFrame = 190, wdDialogToolsThesaurus = 194, wdDialogToolsHyphenation = 195, wdDialogToolsBulletsNumbers = 196, wdDialogToolsHighlightChanges = 197, wdDialogToolsRevisions = 197, wdDialogToolsCompareDocuments = 198, wdDialogTableSort = 199, wdDialogToolsOptionsGeneral = 203, wdDialogToolsOptionsView = 204, wdDialogToolsAdvancedSettings = 206, wdDialogToolsOptionsPrint = 208, wdDialogToolsOptionsSave = 209, wdDialogToolsOptionsSpellingAndGrammar = 211, wdDialogToolsOptionsUserInfo = 213, wdDialogToolsMacroRecord = 214, wdDialogToolsMacro = 215, wdDialogWindowActivate = 220, wdDialogFormatRetAddrFonts = 221, wdDialogOrganizer = 222, wdDialogToolsOptionsEdit = 224, wdDialogToolsOptionsFileLocations = 225, wdDialogToolsWordCount = 228, wdDialogControlRun = 235, wdDialogInsertPageNumbers = 294, wdDialogFormatPageNumber = 298, wdDialogCopyFile = 300, wdDialogFormatChangeCase = 322, wdDialogUpdateTOC = 331, wdDialogInsertDatabase = 341, wdDialogTableFormula = 348, wdDialogFormFieldOptions = 353, wdDialogInsertCaption = 357, wdDialogInsertCaptionNumbering = 358, wdDialogInsertAutoCaption = 359, wdDialogFormFieldHelp = 361, wdDialogInsertCrossReference = 367, wdDialogInsertFootnote = 370, wdDialogNoteOptions = 373, wdDialogToolsAutoCorrect = 378, wdDialogToolsOptionsTrackChanges = 386, wdDialogConvertObject = 392, wdDialogInsertAddCaption = 402, wdDialogConnect = 420, wdDialogToolsCustomizeKeyboard = 432, wdDialogToolsCustomizeMenus = 433, wdDialogToolsMergeDocuments = 435, wdDialogMarkTableOfContentsEntry = 442, wdDialogFileMacPageSetupGX = 444, wdDialogFilePrintOneCopy = 445, wdDialogEditFrame = 458, wdDialogMarkCitation = 463, wdDialogTableOfContentsOptions = 470, wdDialogInsertTableOfAuthorities = 471, wdDialogInsertTableOfFigures = 472, wdDialogInsertIndexAndTables = 473, wdDialogInsertFormField = 483, wdDialogFormatDropCap = 488, wdDialogToolsCreateLabels = 489, wdDialogToolsProtectDocument = 503, wdDialogFormatStyleGallery = 505, wdDialogToolsAcceptRejectChanges = 506, wdDialogHelpWordPerfectHelpOptions = 511, wdDialogToolsUnprotectDocument = 521, wdDialogToolsOptionsCompatibility = 525, wdDialogTableOfCaptionsOptions = 551, wdDialogTableAutoFormat = 563, wdDialogMailMergeFindRecord = 569, wdDialogReviewAfmtRevisions = 570, wdDialogViewZoom = 577, wdDialogToolsProtectSection = 578, wdDialogFontSubstitution = 581, wdDialogInsertSubdocument = 583, wdDialogNewToolbar = 586, wdDialogToolsEnvelopesAndLabels = 607, wdDialogFormatCallout = 610, wdDialogTableFormatCell = 612, wdDialogToolsCustomizeMenuBar = 615, wdDialogFileRoutingSlip = 624, wdDialogEditTOACategory = 625, wdDialogToolsManageFields = 631, wdDialogDrawSnapToGrid = 633, wdDialogDrawAlign = 634, wdDialogMailMergeCreateDataSource = 642, wdDialogMailMergeCreateHeaderSource = 643, wdDialogMailMerge = 676, wdDialogMailMergeCheck = 677, wdDialogMailMergeHelper = 680, wdDialogMailMergeQueryOptions = 681, wdDialogFileMacPageSetup = 685, wdDialogListCommands = 723, wdDialogEditCreatePublisher = 732, wdDialogEditSubscribeTo = 733, wdDialogEditPublishOptions = 735, wdDialogEditSubscribeOptions = 736, wdDialogFileMacCustomPageSetupGX = 737, wdDialogToolsOptionsTypography = 739, wdDialogToolsAutoCorrectExceptions = 762, wdDialogToolsOptionsAutoFormatAsYouType = 778, wdDialogMailMergeUseAddressBook = 779, wdDialogToolsHangulHanjaConversion = 784, wdDialogToolsOptionsFuzzy = 790, wdDialogEditGoToOld = 811, wdDialogInsertNumber = 812, wdDialogLetterWizard = 821, wdDialogFormatBulletsAndNumbering = 824, wdDialogToolsSpellingAndGrammar = 828, wdDialogToolsCreateDirectory = 833, wdDialogTableWrapping = 854, wdDialogFormatTheme = 855, wdDialogTableProperties = 861, wdDialogEmailOptions = 863, wdDialogCreateAutoText = 872, wdDialogToolsAutoSummarize = 874, wdDialogToolsGrammarSettings = 885, wdDialogEditGoTo = 896, wdDialogWebOptions = 898, wdDialogInsertHyperlink = 925, wdDialogToolsAutoManager = 915, wdDialogFileVersions = 945, wdDialogToolsOptionsAutoFormat = 959, wdDialogFormatDrawingObject = 960, wdDialogToolsOptions = 974, wdDialogFitText = 983, wdDialogEditAutoText = 985, wdDialogPhoneticGuide = 986, wdDialogToolsDictionary = 989, wdDialogFileSaveVersion = 1007, wdDialogToolsOptionsBidi = 1029, wdDialogFrameSetProperties = 1074, wdDialogTableTableOptions = 1080, wdDialogTableCellOptions = 1081, wdDialogIMESetDefault = 1094, wdDialogTCSCTranslator = 1156, wdDialogHorizontalInVertical = 1160, wdDialogTwoLinesInOne = 1161, wdDialogFormatEncloseCharacters = 1162, wdDialogConsistencyChecker = 1121, wdDialogToolsOptionsSmartTag = 1395, wdDialogFormatStylesCustom = 1248, wdDialogCSSLinks = 1261, wdDialogInsertWebComponent = 1324, wdDialogToolsOptionsEditCopyPaste = 1356, wdDialogToolsOptionsSecurity = 1361, wdDialogSearch = 1363, wdDialogShowRepairs = 1381, wdDialogMailMergeInsertAsk = 4047, wdDialogMailMergeInsertFillIn = 4048, wdDialogMailMergeInsertIf = 4049, wdDialogMailMergeInsertNextIf = 4053, wdDialogMailMergeInsertSet = 4054, wdDialogMailMergeInsertSkipIf = 4055, wdDialogMailMergeFieldMapping = 1304, wdDialogMailMergeInsertAddressBlock = 1305, wdDialogMailMergeInsertGreetingLine = 1306, wdDialogMailMergeInsertFields = 1307, wdDialogMailMergeRecipients = 1308, wdDialogMailMergeFindRecipient = 1326, wdDialogMailMergeSetDocumentType = 1339, wdDialogLabelOptions = 1367, wdDialogXMLElementAttributes = 1460, wdDialogSchemaLibrary = 1417, wdDialogPermission = 1469, wdDialogMyPermission = 1437, wdDialogXMLOptions = 1425, wdDialogFormattingRestrictions = 1427, wdDialogSourceManager = 1920, wdDialogCreateSource = 1922, wdDialogDocumentInspector = 1482, wdDialogStyleManagement = 1948, wdDialogInsertSource = 2120, wdDialogOMathRecognizedFunctions = 2165, wdDialogInsertPlaceholder = 2348, wdDialogBuildingBlockOrganizer = 2067, wdDialogContentControlProperties = 2394, wdDialogCompatibilityChecker = 2439, wdDialogExportAsFixedFormat = 2349, wdDialogFileNew2007 = 1116 }; enum WdWordDialogHID { // emptyenum = 0 }; enum __declspec(uuid("7eb9a8bd-3300-3492-a540-5f3aaf2f55c6")) WdFieldKind { wdFieldKindNone = 0, wdFieldKindHot = 1, wdFieldKindWarm = 2, wdFieldKindCold = 3 }; enum __declspec(uuid("79490ea3-7a77-3a2d-8d1a-a15e6b216cbe")) WdTextFormFieldType { wdRegularText = 0, wdNumberText = 1, wdDateText = 2, wdCurrentDateText = 3, wdCurrentTimeText = 4, wdCalculationText = 5 }; enum __declspec(uuid("7b607c60-cffc-318e-bdb6-60b025b19545")) WdChevronConvertRule { wdNeverConvert = 0, wdAlwaysConvert = 1, wdAskToNotConvert = 2, wdAskToConvert = 3 }; enum __declspec(uuid("49730545-588c-3e74-9c40-988f149b01cc")) WdMailMergeMainDocType { wdNotAMergeDocument = -1, wdFormLetters = 0, wdMailingLabels = 1, wdEnvelopes = 2, wdCatalog = 3, wdEMail = 4, wdFax = 5, wdDirectory = 3 }; enum __declspec(uuid("07e8576f-fd92-3f44-8dce-00c46f71a56c")) WdMailMergeState { wdNormalDocument = 0, wdMainDocumentOnly = 1, wdMainAndDataSource = 2, wdMainAndHeader = 3, wdMainAndSourceAndHeader = 4, wdDataSource = 5 }; enum __declspec(uuid("ef1c5fc6-1180-3b71-b879-33355000e318")) WdMailMergeDestination { wdSendToNewDocument = 0, wdSendToPrinter = 1, wdSendToEmail = 2, wdSendToFax = 3 }; enum __declspec(uuid("1d68a9d2-dc27-300f-8758-ac235b356b05")) WdMailMergeActiveRecord { wdNoActiveRecord = -1, wdNextRecord = -2, wdPreviousRecord = -3, wdFirstRecord = -4, wdLastRecord = -5, wdFirstDataSourceRecord = -6, wdLastDataSourceRecord = -7, wdNextDataSourceRecord = -8, wdPreviousDataSourceRecord = -9 }; enum __declspec(uuid("928e425a-4170-3fac-bacf-d7bd27641bac")) WdMailMergeDefaultRecord { wdDefaultFirstRecord = 1, wdDefaultLastRecord = -16 }; enum __declspec(uuid("d0323ce3-e503-3e8e-815f-17e83f2eff60")) WdMailMergeDataSource { wdNoMergeInfo = -1, wdMergeInfoFromWord = 0, wdMergeInfoFromAccessDDE = 1, wdMergeInfoFromExcelDDE = 2, wdMergeInfoFromMSQueryDDE = 3, wdMergeInfoFromODBC = 4, wdMergeInfoFromODSO = 5 }; enum __declspec(uuid("296798c9-94f4-30ff-bae0-d5b892e9e5c0")) WdMailMergeComparison { wdMergeIfEqual = 0, wdMergeIfNotEqual = 1, wdMergeIfLessThan = 2, wdMergeIfGreaterThan = 3, wdMergeIfLessThanOrEqual = 4, wdMergeIfGreaterThanOrEqual = 5, wdMergeIfIsBlank = 6, wdMergeIfIsNotBlank = 7 }; enum __declspec(uuid("eaf7129e-2874-33f2-9e44-7a0fe3e94992")) WdBookmarkSortBy { wdSortByName = 0, wdSortByLocation = 1 }; enum __declspec(uuid("458c4acc-b973-3a1a-8e72-f3361d5d9f55")) WdWindowState { wdWindowStateNormal = 0, wdWindowStateMaximize = 1, wdWindowStateMinimize = 2 }; enum __declspec(uuid("8dc4fed3-f278-383d-ac02-46478c0b4076")) WdPictureLinkType { wdLinkNone = 0, wdLinkDataInDoc = 1, wdLinkDataOnDisk = 2 }; enum __declspec(uuid("4179eeda-0598-3cc3-85a8-2fc201d18fc6")) WdLinkType { wdLinkTypeOLE = 0, wdLinkTypePicture = 1, wdLinkTypeText = 2, wdLinkTypeReference = 3, wdLinkTypeInclude = 4, wdLinkTypeImport = 5, wdLinkTypeDDE = 6, wdLinkTypeDDEAuto = 7, wdLinkTypeChart = 8 }; enum __declspec(uuid("a7da9c5f-296d-3269-aad9-8127de331a0a")) WdWindowType { wdWindowDocument = 0, wdWindowTemplate = 1 }; enum __declspec(uuid("32fb36ef-2e57-345c-98ba-051fb07f8f6c")) WdViewType { wdNormalView = 1, wdOutlineView = 2, wdPrintView = 3, wdPrintPreview = 4, wdMasterView = 5, wdWebView = 6, wdReadingView = 7, wdConflictView = 8 }; enum __declspec(uuid("8472d0a9-03ea-3253-8bc8-f66718cf09a6")) WdSeekView { wdSeekMainDocument = 0, wdSeekPrimaryHeader = 1, wdSeekFirstPageHeader = 2, wdSeekEvenPagesHeader = 3, wdSeekPrimaryFooter = 4, wdSeekFirstPageFooter = 5, wdSeekEvenPagesFooter = 6, wdSeekFootnotes = 7, wdSeekEndnotes = 8, wdSeekCurrentPageHeader = 9, wdSeekCurrentPageFooter = 10 }; enum __declspec(uuid("167b59a9-dbbd-34af-afdb-57ac30c2ce58")) WdSpecialPane { wdPaneNone = 0, wdPanePrimaryHeader = 1, wdPaneFirstPageHeader = 2, wdPaneEvenPagesHeader = 3, wdPanePrimaryFooter = 4, wdPaneFirstPageFooter = 5, wdPaneEvenPagesFooter = 6, wdPaneFootnotes = 7, wdPaneEndnotes = 8, wdPaneFootnoteContinuationNotice = 9, wdPaneFootnoteContinuationSeparator = 10, wdPaneFootnoteSeparator = 11, wdPaneEndnoteContinuationNotice = 12, wdPaneEndnoteContinuationSeparator = 13, wdPaneEndnoteSeparator = 14, wdPaneComments = 15, wdPaneCurrentPageHeader = 16, wdPaneCurrentPageFooter = 17, wdPaneRevisions = 18, wdPaneRevisionsHoriz = 19, wdPaneRevisionsVert = 20 }; enum __declspec(uuid("a761b997-6f90-3c4e-9677-ea06329d5926")) WdPageFit { wdPageFitNone = 0, wdPageFitFullPage = 1, wdPageFitBestFit = 2, wdPageFitTextFit = 3 }; enum __declspec(uuid("d82b33f8-1b6d-3829-bbca-57d150e4c00d")) WdBrowseTarget { wdBrowsePage = 1, wdBrowseSection = 2, wdBrowseComment = 3, wdBrowseFootnote = 4, wdBrowseEndnote = 5, wdBrowseField = 6, wdBrowseTable = 7, wdBrowseGraphic = 8, wdBrowseHeading = 9, wdBrowseEdit = 10, wdBrowseFind = 11, wdBrowseGoTo = 12 }; enum __declspec(uuid("57d6bf95-896d-30e5-b0f0-b97327e7c71d")) WdPaperTray { wdPrinterDefaultBin = 0, wdPrinterUpperBin = 1, wdPrinterOnlyBin = 1, wdPrinterLowerBin = 2, wdPrinterMiddleBin = 3, wdPrinterManualFeed = 4, wdPrinterEnvelopeFeed = 5, wdPrinterManualEnvelopeFeed = 6, wdPrinterAutomaticSheetFeed = 7, wdPrinterTractorFeed = 8, wdPrinterSmallFormatBin = 9, wdPrinterLargeFormatBin = 10, wdPrinterLargeCapacityBin = 11, wdPrinterPaperCassette = 14, wdPrinterFormSource = 15 }; enum __declspec(uuid("35023e17-f1a4-3d19-a3c9-b28d30158769")) WdOrientation { wdOrientPortrait = 0, wdOrientLandscape = 1 }; enum __declspec(uuid("475fdd97-b63f-3209-8eb6-7250fe13bcdf")) WdSelectionType { wdNoSelection = 0, wdSelectionIP = 1, wdSelectionNormal = 2, wdSelectionFrame = 3, wdSelectionColumn = 4, wdSelectionRow = 5, wdSelectionBlock = 6, wdSelectionInlineShape = 7, wdSelectionShape = 8 }; enum __declspec(uuid("fccb82a4-40ef-3de0-b972-4a14ebdc2b08")) WdCaptionLabelID { wdCaptionFigure = -1, wdCaptionTable = -2, wdCaptionEquation = -3 }; enum __declspec(uuid("bd0e5fd4-bcc4-3913-82ef-19ee05b56f04")) WdReferenceType { wdRefTypeNumberedItem = 0, wdRefTypeHeading = 1, wdRefTypeBookmark = 2, wdRefTypeFootnote = 3, wdRefTypeEndnote = 4 }; enum __declspec(uuid("394033af-e0ba-30e7-b099-a79873e55634")) WdReferenceKind { wdContentText = -1, wdNumberRelativeContext = -2, wdNumberNoContext = -3, wdNumberFullContext = -4, wdEntireCaption = 2, wdOnlyLabelAndNumber = 3, wdOnlyCaptionText = 4, wdFootnoteNumber = 5, wdEndnoteNumber = 6, wdPageNumber = 7, wdPosition = 15, wdFootnoteNumberFormatted = 16, wdEndnoteNumberFormatted = 17 }; enum __declspec(uuid("b81e5359-6200-3ccb-9b49-8be46f9a9fea")) WdIndexFormat { wdIndexTemplate = 0, wdIndexClassic = 1, wdIndexFancy = 2, wdIndexModern = 3, wdIndexBulleted = 4, wdIndexFormal = 5, wdIndexSimple = 6 }; enum __declspec(uuid("80954786-7fcb-3bfd-9f88-94f39d2c7385")) WdIndexType { wdIndexIndent = 0, wdIndexRunin = 1 }; enum __declspec(uuid("e8408dcb-9426-3394-b017-f49092a37e32")) WdRevisionsWrap { wdWrapNever = 0, wdWrapAlways = 1, wdWrapAsk = 2 }; enum __declspec(uuid("22ee5d98-3d02-3761-ad43-435c8cf763b0")) WdRevisionType { wdNoRevision = 0, wdRevisionInsert = 1, wdRevisionDelete = 2, wdRevisionProperty = 3, wdRevisionParagraphNumber = 4, wdRevisionDisplayField = 5, wdRevisionReconcile = 6, wdRevisionConflict = 7, wdRevisionStyle = 8, wdRevisionReplace = 9, wdRevisionParagraphProperty = 10, wdRevisionTableProperty = 11, wdRevisionSectionProperty = 12, wdRevisionStyleDefinition = 13, wdRevisionMovedFrom = 14, wdRevisionMovedTo = 15, wdRevisionCellInsertion = 16, wdRevisionCellDeletion = 17, wdRevisionCellMerge = 18, wdRevisionCellSplit = 19, wdRevisionConflictInsert = 20, wdRevisionConflictDelete = 21 }; enum __declspec(uuid("37f5f8cf-b92c-34d1-90cc-30acb9334ab5")) WdRoutingSlipDelivery { wdOneAfterAnother = 0, wdAllAtOnce = 1 }; enum __declspec(uuid("fab5ffac-8dcb-3ec9-8554-51dcecae5c3c")) WdRoutingSlipStatus { wdNotYetRouted = 0, wdRouteInProgress = 1, wdRouteComplete = 2 }; enum __declspec(uuid("a04eaecd-6433-3994-8b86-4e4d973c4630")) WdSectionStart { wdSectionContinuous = 0, wdSectionNewColumn = 1, wdSectionNewPage = 2, wdSectionEvenPage = 3, wdSectionOddPage = 4 }; enum __declspec(uuid("e1b4a968-3072-3060-b6b7-1a1356d45ca2")) WdSaveOptions { wdDoNotSaveChanges = 0, wdSaveChanges = -1, wdPromptToSaveChanges = -2 }; enum __declspec(uuid("fcc2234d-e8c2-3676-af72-8589e043fb64")) WdDocumentKind { wdDocumentNotSpecified = 0, wdDocumentLetter = 1, wdDocumentEmail = 2 }; enum __declspec(uuid("bfa3bc72-bcd9-31cc-9f78-1ae867df9840")) WdDocumentType { wdTypeDocument = 0, wdTypeTemplate = 1, wdTypeFrameset = 2 }; enum __declspec(uuid("62694d53-8f38-33e2-8753-e19d97489c30")) WdOriginalFormat { wdWordDocument = 0, wdOriginalDocumentFormat = 1, wdPromptUser = 2 }; enum __declspec(uuid("867b8394-0450-32ae-80a9-8861cb6ac618")) WdRelocate { wdRelocateUp = 0, wdRelocateDown = 1 }; enum __declspec(uuid("1a98aa4f-a0f3-3980-9a55-0b958b6c8158")) WdInsertedTextMark { wdInsertedTextMarkNone = 0, wdInsertedTextMarkBold = 1, wdInsertedTextMarkItalic = 2, wdInsertedTextMarkUnderline = 3, wdInsertedTextMarkDoubleUnderline = 4, wdInsertedTextMarkColorOnly = 5, wdInsertedTextMarkStrikeThrough = 6, wdInsertedTextMarkDoubleStrikeThrough = 7 }; enum __declspec(uuid("44d14fea-48e8-37d1-8446-af942183d346")) WdRevisedLinesMark { wdRevisedLinesMarkNone = 0, wdRevisedLinesMarkLeftBorder = 1, wdRevisedLinesMarkRightBorder = 2, wdRevisedLinesMarkOutsideBorder = 3 }; enum __declspec(uuid("002686ea-bc17-3b7c-be4e-eca572100016")) WdDeletedTextMark { wdDeletedTextMarkHidden = 0, wdDeletedTextMarkStrikeThrough = 1, wdDeletedTextMarkCaret = 2, wdDeletedTextMarkPound = 3, wdDeletedTextMarkNone = 4, wdDeletedTextMarkBold = 5, wdDeletedTextMarkItalic = 6, wdDeletedTextMarkUnderline = 7, wdDeletedTextMarkDoubleUnderline = 8, wdDeletedTextMarkColorOnly = 9, wdDeletedTextMarkDoubleStrikeThrough = 10 }; enum __declspec(uuid("9e20280e-224e-3492-b547-0055d8db19e8")) WdRevisedPropertiesMark { wdRevisedPropertiesMarkNone = 0, wdRevisedPropertiesMarkBold = 1, wdRevisedPropertiesMarkItalic = 2, wdRevisedPropertiesMarkUnderline = 3, wdRevisedPropertiesMarkDoubleUnderline = 4, wdRevisedPropertiesMarkColorOnly = 5, wdRevisedPropertiesMarkStrikeThrough = 6, wdRevisedPropertiesMarkDoubleStrikeThrough = 7 }; enum __declspec(uuid("4165cd13-dd2a-354b-9992-f5b446f34d40")) WdFieldShading { wdFieldShadingNever = 0, wdFieldShadingAlways = 1, wdFieldShadingWhenSelected = 2 }; enum __declspec(uuid("41700b9a-149a-3173-9324-e651080b9918")) WdDefaultFilePath { wdDocumentsPath = 0, wdPicturesPath = 1, wdUserTemplatesPath = 2, wdWorkgroupTemplatesPath = 3, wdUserOptionsPath = 4, wdAutoRecoverPath = 5, wdToolsPath = 6, wdTutorialPath = 7, wdStartupPath = 8, wdProgramPath = 9, wdGraphicsFiltersPath = 10, wdTextConvertersPath = 11, wdProofingToolsPath = 12, wdTempFilePath = 13, wdCurrentFolderPath = 14, wdStyleGalleryPath = 15, wdBorderArtPath = 19 }; enum __declspec(uuid("8b0dd4cd-d15d-3290-81ba-a73bc181e06f")) WdCompatibility { wdNoTabHangIndent = 1, wdNoSpaceRaiseLower = 2, wdPrintColBlack = 3, wdWrapTrailSpaces = 4, wdNoColumnBalance = 5, wdConvMailMergeEsc = 6, wdSuppressSpBfAfterPgBrk = 7, wdSuppressTopSpacing = 8, wdOrigWordTableRules = 9, wdTransparentMetafiles = 10, wdShowBreaksInFrames = 11, wdSwapBordersFacingPages = 12, wdLeaveBackslashAlone = 13, wdExpandShiftReturn = 14, wdDontULTrailSpace = 15, wdDontBalanceSingleByteDoubleByteWidth = 16, wdSuppressTopSpacingMac5 = 17, wdSpacingInWholePoints = 18, wdPrintBodyTextBeforeHeader = 19, wdNoLeading = 20, wdNoSpaceForUL = 21, wdMWSmallCaps = 22, wdNoExtraLineSpacing = 23, wdTruncateFontHeight = 24, wdSubFontBySize = 25, wdUsePrinterMetrics = 26, wdWW6BorderRules = 27, wdExactOnTop = 28, wdSuppressBottomSpacing = 29, wdWPSpaceWidth = 30, wdWPJustification = 31, wdLineWrapLikeWord6 = 32, wdShapeLayoutLikeWW8 = 33, wdFootnoteLayoutLikeWW8 = 34, wdDontUseHTMLParagraphAutoSpacing = 35, wdDontAdjustLineHeightInTable = 36, wdForgetLastTabAlignment = 37, wdAutospaceLikeWW7 = 38, wdAlignTablesRowByRow = 39, wdLayoutRawTableWidth = 40, wdLayoutTableRowsApart = 41, wdUseWord97LineBreakingRules = 42, wdDontBreakWrappedTables = 43, wdDontSnapTextToGridInTableWithObjects = 44, wdSelectFieldWithFirstOrLastCharacter = 45, wdApplyBreakingRules = 46, wdDontWrapTextWithPunctuation = 47, wdDontUseAsianBreakRulesInGrid = 48, wdUseWord2002TableStyleRules = 49, wdGrowAutofit = 50, wdUseNormalStyleForList = 51, wdDontUseIndentAsNumberingTabStop = 52, wdFELineBreak11 = 53, wdAllowSpaceOfSameStyleInTable = 54, wdWW11IndentRules = 55, wdDontAutofitConstrainedTables = 56, wdAutofitLikeWW11 = 57, wdUnderlineTabInNumList = 58, wdHangulWidthLikeWW11 = 59, wdSplitPgBreakAndParaMark = 60, wdDontVertAlignCellWithShape = 61, wdDontBreakConstrainedForcedTables = 62, wdDontVertAlignInTextbox = 63, wdWord11KerningPairs = 64, wdCachedColBalance = 65, wdDisableOTKerning = 66, wdFlipMirrorIndents = 67, wdDontOverrideTableStyleFontSzAndJustification = 68, wdUseWord2010TableStyleRules = 69 }; enum __declspec(uuid("8540d1f6-d74a-3fad-8be2-03f9cadc2b1e")) WdPaperSize { wdPaper10x14 = 0, wdPaper11x17 = 1, wdPaperLetter = 2, wdPaperLetterSmall = 3, wdPaperLegal = 4, wdPaperExecutive = 5, wdPaperA3 = 6, wdPaperA4 = 7, wdPaperA4Small = 8, wdPaperA5 = 9, wdPaperB4 = 10, wdPaperB5 = 11, wdPaperCSheet = 12, wdPaperDSheet = 13, wdPaperESheet = 14, wdPaperFanfoldLegalGerman = 15, wdPaperFanfoldStdGerman = 16, wdPaperFanfoldUS = 17, wdPaperFolio = 18, wdPaperLedger = 19, wdPaperNote = 20, wdPaperQuarto = 21, wdPaperStatement = 22, wdPaperTabloid = 23, wdPaperEnvelope9 = 24, wdPaperEnvelope10 = 25, wdPaperEnvelope11 = 26, wdPaperEnvelope12 = 27, wdPaperEnvelope14 = 28, wdPaperEnvelopeB4 = 29, wdPaperEnvelopeB5 = 30, wdPaperEnvelopeB6 = 31, wdPaperEnvelopeC3 = 32, wdPaperEnvelopeC4 = 33, wdPaperEnvelopeC5 = 34, wdPaperEnvelopeC6 = 35, wdPaperEnvelopeC65 = 36, wdPaperEnvelopeDL = 37, wdPaperEnvelopeItaly = 38, wdPaperEnvelopeMonarch = 39, wdPaperEnvelopePersonal = 40, wdPaperCustom = 41 }; enum __declspec(uuid("b116b479-488c-3d69-bfbe-a64dd14f3bb9")) WdCustomLabelPageSize { wdCustomLabelLetter = 0, wdCustomLabelLetterLS = 1, wdCustomLabelA4 = 2, wdCustomLabelA4LS = 3, wdCustomLabelA5 = 4, wdCustomLabelA5LS = 5, wdCustomLabelB5 = 6, wdCustomLabelMini = 7, wdCustomLabelFanfold = 8, wdCustomLabelVertHalfSheet = 9, wdCustomLabelVertHalfSheetLS = 10, wdCustomLabelHigaki = 11, wdCustomLabelHigakiLS = 12, wdCustomLabelB4JIS = 13 }; enum __declspec(uuid("992d8289-31ef-3821-87ee-f4994c1c6f55")) WdProtectionType { wdNoProtection = -1, wdAllowOnlyRevisions = 0, wdAllowOnlyComments = 1, wdAllowOnlyFormFields = 2, wdAllowOnlyReading = 3 }; enum __declspec(uuid("6af6e882-a139-3b8e-9b1c-3315a1af366d")) WdPartOfSpeech { wdAdjective = 0, wdNoun = 1, wdAdverb = 2, wdVerb = 3, wdPronoun = 4, wdConjunction = 5, wdPreposition = 6, wdInterjection = 7, wdIdiom = 8, wdOther = 9 }; enum __declspec(uuid("2aa0788c-78e4-39b9-ae23-b2a18849b924")) WdSubscriberFormats { wdSubscriberBestFormat = 0, wdSubscriberRTF = 1, wdSubscriberText = 2, wdSubscriberPict = 4 }; enum __declspec(uuid("8d0dc233-b993-3557-8702-0b855d6ecb56")) WdEditionType { wdPublisher = 0, wdSubscriber = 1 }; enum __declspec(uuid("409fce29-2640-3d59-90c8-8a808092de16")) WdEditionOption { wdCancelPublisher = 0, wdSendPublisher = 1, wdSelectPublisher = 2, wdAutomaticUpdate = 3, wdManualUpdate = 4, wdChangeAttributes = 5, wdUpdateSubscriber = 6, wdOpenSource = 7 }; enum __declspec(uuid("ec64add2-4db2-36c1-8915-2e9c64f9f57b")) WdRelativeHorizontalPosition { wdRelativeHorizontalPositionMargin = 0, wdRelativeHorizontalPositionPage = 1, wdRelativeHorizontalPositionColumn = 2, wdRelativeHorizontalPositionCharacter = 3, wdRelativeHorizontalPositionLeftMarginArea = 4, wdRelativeHorizontalPositionRightMarginArea = 5, wdRelativeHorizontalPositionInnerMarginArea = 6, wdRelativeHorizontalPositionOuterMarginArea = 7 }; enum __declspec(uuid("01dabbc6-bbf7-3830-a252-e88ad0cb5678")) WdRelativeVerticalPosition { wdRelativeVerticalPositionMargin = 0, wdRelativeVerticalPositionPage = 1, wdRelativeVerticalPositionParagraph = 2, wdRelativeVerticalPositionLine = 3, wdRelativeVerticalPositionTopMarginArea = 4, wdRelativeVerticalPositionBottomMarginArea = 5, wdRelativeVerticalPositionInnerMarginArea = 6, wdRelativeVerticalPositionOuterMarginArea = 7 }; enum __declspec(uuid("2253a7c8-c563-386d-bdc6-b55e72015c02")) WdHelpType { wdHelp = 0, wdHelpAbout = 1, wdHelpActiveWindow = 2, wdHelpContents = 3, wdHelpExamplesAndDemos = 4, wdHelpIndex = 5, wdHelpKeyboard = 6, wdHelpPSSHelp = 7, wdHelpQuickPreview = 8, wdHelpSearch = 9, wdHelpUsingHelp = 10, wdHelpIchitaro = 11, wdHelpPE2 = 12, wdHelpHWP = 13 }; enum WdHelpTypeHID { // emptyenum = 0 }; enum __declspec(uuid("13125b67-cc0f-313b-a28d-e4c74f81e126")) WdKeyCategory { wdKeyCategoryNil = -1, wdKeyCategoryDisable = 0, wdKeyCategoryCommand = 1, wdKeyCategoryMacro = 2, wdKeyCategoryFont = 3, wdKeyCategoryAutoText = 4, wdKeyCategoryStyle = 5, wdKeyCategorySymbol = 6, wdKeyCategoryPrefix = 7 }; enum __declspec(uuid("0641128d-0872-3e67-9991-e962ab36baf2")) WdKey { wdNoKey = 255, wdKeyShift = 256, wdKeyControl = 512, wdKeyCommand = 512, wdKeyAlt = 1024, wdKeyOption = 1024, wdKeyA = 65, wdKeyB = 66, wdKeyC = 67, wdKeyD = 68, wdKeyE = 69, wdKeyF = 70, wdKeyG = 71, wdKeyH = 72, wdKeyI = 73, wdKeyJ = 74, wdKeyK = 75, wdKeyL = 76, wdKeyM = 77, wdKeyN = 78, wdKeyO = 79, wdKeyP = 80, wdKeyQ = 81, wdKeyR = 82, wdKeyS = 83, wdKeyT = 84, wdKeyU = 85, wdKeyV = 86, wdKeyW = 87, wdKeyX = 88, wdKeyY = 89, wdKeyZ = 90, wdKey0 = 48, wdKey1 = 49, wdKey2 = 50, wdKey3 = 51, wdKey4 = 52, wdKey5 = 53, wdKey6 = 54, wdKey7 = 55, wdKey8 = 56, wdKey9 = 57, wdKeyBackspace = 8, wdKeyTab = 9, wdKeyNumeric5Special = 12, wdKeyReturn = 13, wdKeyPause = 19, wdKeyEsc = 27, wdKeySpacebar = 32, wdKeyPageUp = 33, wdKeyPageDown = 34, wdKeyEnd = 35, wdKeyHome = 36, wdKeyInsert = 45, wdKeyDelete = 46, wdKeyNumeric0 = 96, wdKeyNumeric1 = 97, wdKeyNumeric2 = 98, wdKeyNumeric3 = 99, wdKeyNumeric4 = 100, wdKeyNumeric5 = 101, wdKeyNumeric6 = 102, wdKeyNumeric7 = 103, wdKeyNumeric8 = 104, wdKeyNumeric9 = 105, wdKeyNumericMultiply = 106, wdKeyNumericAdd = 107, wdKeyNumericSubtract = 109, wdKeyNumericDecimal = 110, wdKeyNumericDivide = 111, wdKeyF1 = 112, wdKeyF2 = 113, wdKeyF3 = 114, wdKeyF4 = 115, wdKeyF5 = 116, wdKeyF6 = 117, wdKeyF7 = 118, wdKeyF8 = 119, wdKeyF9 = 120, wdKeyF10 = 121, wdKeyF11 = 122, wdKeyF12 = 123, wdKeyF13 = 124, wdKeyF14 = 125, wdKeyF15 = 126, wdKeyF16 = 127, wdKeyScrollLock = 145, wdKeySemiColon = 186, wdKeyEquals = 187, wdKeyComma = 188, wdKeyHyphen = 189, wdKeyPeriod = 190, wdKeySlash = 191, wdKeyBackSingleQuote = 192, wdKeyOpenSquareBrace = 219, wdKeyBackSlash = 220, wdKeyCloseSquareBrace = 221, wdKeySingleQuote = 222 }; enum __declspec(uuid("7fba9601-95d8-3525-8834-a1bb7bb5bb0d")) WdOLEType { wdOLELink = 0, wdOLEEmbed = 1, wdOLEControl = 2 }; enum __declspec(uuid("b1e1e568-a954-370d-bdde-1dee3fe965d7")) WdOLEVerb { wdOLEVerbPrimary = 0, wdOLEVerbShow = -1, wdOLEVerbOpen = -2, wdOLEVerbHide = -3, wdOLEVerbUIActivate = -4, wdOLEVerbInPlaceActivate = -5, wdOLEVerbDiscardUndoState = -6 }; enum __declspec(uuid("2f972e43-bb76-3dbb-969f-665d859f3d52")) WdOLEPlacement { wdInLine = 0, wdFloatOverText = 1 }; enum __declspec(uuid("07d962dd-b8bd-3b64-93b5-804e4692204e")) WdEnvelopeOrientation { wdLeftPortrait = 0, wdCenterPortrait = 1, wdRightPortrait = 2, wdLeftLandscape = 3, wdCenterLandscape = 4, wdRightLandscape = 5, wdLeftClockwise = 6, wdCenterClockwise = 7, wdRightClockwise = 8 }; enum __declspec(uuid("589e54f8-90c3-3c76-910b-4e6cbf21068d")) WdLetterStyle { wdFullBlock = 0, wdModifiedBlock = 1, wdSemiBlock = 2 }; enum __declspec(uuid("ac8a429b-81ff-3ca5-910e-a03f96533295")) WdLetterheadLocation { wdLetterTop = 0, wdLetterBottom = 1, wdLetterLeft = 2, wdLetterRight = 3 }; enum __declspec(uuid("760a1da4-732f-3807-9348-f1523975d7cb")) WdSalutationType { wdSalutationInformal = 0, wdSalutationFormal = 1, wdSalutationBusiness = 2, wdSalutationOther = 3 }; enum __declspec(uuid("b4ddd66f-48bf-33c4-b074-f0d61992e186")) WdSalutationGender { wdGenderFemale = 0, wdGenderMale = 1, wdGenderNeutral = 2, wdGenderUnknown = 3 }; enum __declspec(uuid("4edbff52-62d3-38cc-99d1-0ffef9bcad4a")) WdMovementType { wdMove = 0, wdExtend = 1 }; enum WdConstants { wdUndefined = 9999999, wdToggle = 9999998, wdForward = 1073741823, wdBackward = -1073741823, wdAutoPosition = 0, wdFirst = 1, wdCreatorCode = 1297307460 }; enum __declspec(uuid("773b6cf3-4435-343f-ba19-8f0b7d78cc67")) WdPasteDataType { wdPasteOLEObject = 0, wdPasteRTF = 1, wdPasteText = 2, wdPasteMetafilePicture = 3, wdPasteBitmap = 4, wdPasteDeviceIndependentBitmap = 5, wdPasteHyperlink = 7, wdPasteShape = 8, wdPasteEnhancedMetafile = 9, wdPasteHTML = 10 }; enum __declspec(uuid("96e15cce-75aa-3e47-9b68-410e9a544cd6")) WdPrintOutItem { wdPrintDocumentContent = 0, wdPrintProperties = 1, wdPrintComments = 2, wdPrintMarkup = 2, wdPrintStyles = 3, wdPrintAutoTextEntries = 4, wdPrintKeyAssignments = 5, wdPrintEnvelope = 6, wdPrintDocumentWithMarkup = 7 }; enum __declspec(uuid("359eab69-7ea9-3179-b5d8-808a3ca74365")) WdPrintOutPages { wdPrintAllPages = 0, wdPrintOddPagesOnly = 1, wdPrintEvenPagesOnly = 2 }; enum __declspec(uuid("64dc8298-b347-32ee-bb16-96c885822088")) WdPrintOutRange { wdPrintAllDocument = 0, wdPrintSelection = 1, wdPrintCurrentPage = 2, wdPrintFromTo = 3, wdPrintRangeOfPages = 4 }; enum __declspec(uuid("6aa9dbaf-eddb-31da-88c3-fff0fba0fc96")) WdDictionaryType { wdSpelling = 0, wdGrammar = 1, wdThesaurus = 2, wdHyphenation = 3, wdSpellingComplete = 4, wdSpellingCustom = 5, wdSpellingLegal = 6, wdSpellingMedical = 7, wdHangulHanjaConversion = 8, wdHangulHanjaConversionCustom = 9 }; enum WdDictionaryTypeHID { // emptyenum = 0 }; enum __declspec(uuid("38d365ee-71c2-3b51-9bd2-ec09e5875c59")) WdSpellingWordType { wdSpellword = 0, wdWildcard = 1, wdAnagram = 2 }; enum __declspec(uuid("3f83f6c0-d880-32ce-97a9-d13517aa8f3f")) WdSpellingErrorType { wdSpellingCorrect = 0, wdSpellingNotInDictionary = 1, wdSpellingCapitalization = 2 }; enum __declspec(uuid("ca88e198-7d52-30f9-b8f9-f2cbc7a83370")) WdProofreadingErrorType { wdSpellingError = 0, wdGrammaticalError = 1 }; enum __declspec(uuid("eeec37a7-495b-30f5-8404-37644fc0358f")) WdInlineShapeType { wdInlineShapeEmbeddedOLEObject = 1, wdInlineShapeLinkedOLEObject = 2, wdInlineShapePicture = 3, wdInlineShapeLinkedPicture = 4, wdInlineShapeOLEControlObject = 5, wdInlineShapeHorizontalLine = 6, wdInlineShapePictureHorizontalLine = 7, wdInlineShapeLinkedPictureHorizontalLine = 8, wdInlineShapePictureBullet = 9, wdInlineShapeScriptAnchor = 10, wdInlineShapeOWSAnchor = 11, wdInlineShapeChart = 12, wdInlineShapeDiagram = 13, wdInlineShapeLockedCanvas = 14, wdInlineShapeSmartArt = 15, wdInlineShapeWebVideo = 16 }; enum __declspec(uuid("670a5813-db2f-3ace-874d-c5bb2053d1ea")) WdArrangeStyle { wdTiled = 0, wdIcons = 1 }; enum __declspec(uuid("83857847-1a45-3bd4-8ecb-576d355911ee")) WdSelectionFlags { wdSelStartActive = 1, wdSelAtEOL = 2, wdSelOvertype = 4, wdSelActive = 8, wdSelReplace = 16 }; enum __declspec(uuid("2745dbfe-9993-3daf-96cd-aa9827f23217")) WdAutoVersions { wdAutoVersionOff = 0, wdAutoVersionOnClose = 1 }; enum __declspec(uuid("7dfa7a62-26a0-3cce-adfa-f12e721fb229")) WdOrganizerObject { wdOrganizerObjectStyles = 0, wdOrganizerObjectAutoText = 1, wdOrganizerObjectCommandBars = 2, wdOrganizerObjectProjectItems = 3 }; enum __declspec(uuid("858eb926-41e4-3509-b9d9-0b62c364228a")) WdFindMatch { wdMatchParagraphMark = 65551, wdMatchTabCharacter = 9, wdMatchCommentMark = 5, wdMatchAnyCharacter = 65599, wdMatchAnyDigit = 65567, wdMatchAnyLetter = 65583, wdMatchCaretCharacter = 11, wdMatchColumnBreak = 14, wdMatchEmDash = 8212, wdMatchEnDash = 8211, wdMatchEndnoteMark = 65555, wdMatchField = 19, wdMatchFootnoteMark = 65554, wdMatchGraphic = 1, wdMatchManualLineBreak = 65551, wdMatchManualPageBreak = 65564, wdMatchNonbreakingHyphen = 30, wdMatchNonbreakingSpace = 160, wdMatchOptionalHyphen = 31, wdMatchSectionBreak = 65580, wdMatchWhiteSpace = 65655 }; enum __declspec(uuid("af00a39f-bcac-333a-9a95-32724b7057c3")) WdFindWrap { wdFindStop = 0, wdFindContinue = 1, wdFindAsk = 2 }; enum __declspec(uuid("26e3c1d3-6937-3efa-8859-7ffc81869ce5")) WdInformation { wdActiveEndAdjustedPageNumber = 1, wdActiveEndSectionNumber = 2, wdActiveEndPageNumber = 3, wdNumberOfPagesInDocument = 4, wdHorizontalPositionRelativeToPage = 5, wdVerticalPositionRelativeToPage = 6, wdHorizontalPositionRelativeToTextBoundary = 7, wdVerticalPositionRelativeToTextBoundary = 8, wdFirstCharacterColumnNumber = 9, wdFirstCharacterLineNumber = 10, wdFrameIsSelected = 11, wdWithInTable = 12, wdStartOfRangeRowNumber = 13, wdEndOfRangeRowNumber = 14, wdMaximumNumberOfRows = 15, wdStartOfRangeColumnNumber = 16, wdEndOfRangeColumnNumber = 17, wdMaximumNumberOfColumns = 18, wdZoomPercentage = 19, wdSelectionMode = 20, wdCapsLock = 21, wdNumLock = 22, wdOverType = 23, wdRevisionMarking = 24, wdInFootnoteEndnotePane = 25, wdInCommentPane = 26, wdInHeaderFooter = 28, wdAtEndOfRowMarker = 31, wdReferenceOfType = 32, wdHeaderFooterType = 33, wdInMasterDocument = 34, wdInFootnote = 35, wdInEndnote = 36, wdInWordMail = 37, wdInClipboard = 38, wdInCoverPage = 41, wdInBibliography = 42, wdInCitation = 43, wdInFieldCode = 44, wdInFieldResult = 45, wdInContentControl = 46 }; enum __declspec(uuid("c500ddd8-dc7f-30b8-8816-5d28d9f1ded1")) WdWrapType { wdWrapSquare = 0, wdWrapTight = 1, wdWrapThrough = 2, wdWrapNone = 3, wdWrapTopBottom = 4, wdWrapBehind = 5, wdWrapFront = 3, wdWrapInline = 7 }; enum __declspec(uuid("9c46779b-5d34-399b-8f02-1fd193fde323")) WdWrapSideType { wdWrapBoth = 0, wdWrapLeft = 1, wdWrapRight = 2, wdWrapLargest = 3 }; enum __declspec(uuid("0621016a-022c-3a7e-b017-f4589f97ba4e")) WdOutlineLevel { wdOutlineLevel1 = 1, wdOutlineLevel2 = 2, wdOutlineLevel3 = 3, wdOutlineLevel4 = 4, wdOutlineLevel5 = 5, wdOutlineLevel6 = 6, wdOutlineLevel7 = 7, wdOutlineLevel8 = 8, wdOutlineLevel9 = 9, wdOutlineLevelBodyText = 10 }; enum __declspec(uuid("c1432471-5cca-3c20-88be-740332643664")) WdTextOrientation { wdTextOrientationHorizontal = 0, wdTextOrientationUpward = 2, wdTextOrientationDownward = 3, wdTextOrientationVerticalFarEast = 1, wdTextOrientationHorizontalRotatedFarEast = 4, wdTextOrientationVertical = 5 }; enum WdTextOrientationHID { // emptyenum = 0 }; enum __declspec(uuid("921913f8-9206-362b-9c9d-e12b20fa517b")) WdPageBorderArt { wdArtApples = 1, wdArtMapleMuffins = 2, wdArtCakeSlice = 3, wdArtCandyCorn = 4, wdArtIceCreamCones = 5, wdArtChampagneBottle = 6, wdArtPartyGlass = 7, wdArtChristmasTree = 8, wdArtTrees = 9, wdArtPalmsColor = 10, wdArtBalloons3Colors = 11, wdArtBalloonsHotAir = 12, wdArtPartyFavor = 13, wdArtConfettiStreamers = 14, wdArtHearts = 15, wdArtHeartBalloon = 16, wdArtStars3D = 17, wdArtStarsShadowed = 18, wdArtStars = 19, wdArtSun = 20, wdArtEarth2 = 21, wdArtEarth1 = 22, wdArtPeopleHats = 23, wdArtSombrero = 24, wdArtPencils = 25, wdArtPackages = 26, wdArtClocks = 27, wdArtFirecrackers = 28, wdArtRings = 29, wdArtMapPins = 30, wdArtConfetti = 31, wdArtCreaturesButterfly = 32, wdArtCreaturesLadyBug = 33, wdArtCreaturesFish = 34, wdArtBirdsFlight = 35, wdArtScaredCat = 36, wdArtBats = 37, wdArtFlowersRoses = 38, wdArtFlowersRedRose = 39, wdArtPoinsettias = 40, wdArtHolly = 41, wdArtFlowersTiny = 42, wdArtFlowersPansy = 43, wdArtFlowersModern2 = 44, wdArtFlowersModern1 = 45, wdArtWhiteFlowers = 46, wdArtVine = 47, wdArtFlowersDaisies = 48, wdArtFlowersBlockPrint = 49, wdArtDecoArchColor = 50, wdArtFans = 51, wdArtFilm = 52, wdArtLightning1 = 53, wdArtCompass = 54, wdArtDoubleD = 55, wdArtClassicalWave = 56, wdArtShadowedSquares = 57, wdArtTwistedLines1 = 58, wdArtWaveline = 59, wdArtQuadrants = 60, wdArtCheckedBarColor = 61, wdArtSwirligig = 62, wdArtPushPinNote1 = 63, wdArtPushPinNote2 = 64, wdArtPumpkin1 = 65, wdArtEggsBlack = 66, wdArtCup = 67, wdArtHeartGray = 68, wdArtGingerbreadMan = 69, wdArtBabyPacifier = 70, wdArtBabyRattle = 71, wdArtCabins = 72, wdArtHouseFunky = 73, wdArtStarsBlack = 74, wdArtSnowflakes = 75, wdArtSnowflakeFancy = 76, wdArtSkyrocket = 77, wdArtSeattle = 78, wdArtMusicNotes = 79, wdArtPalmsBlack = 80, wdArtMapleLeaf = 81, wdArtPaperClips = 82, wdArtShorebirdTracks = 83, wdArtPeople = 84, wdArtPeopleWaving = 85, wdArtEclipsingSquares2 = 86, wdArtHypnotic = 87, wdArtDiamondsGray = 88, wdArtDecoArch = 89, wdArtDecoBlocks = 90, wdArtCirclesLines = 91, wdArtPapyrus = 92, wdArtWoodwork = 93, wdArtWeavingBraid = 94, wdArtWeavingRibbon = 95, wdArtWeavingAngles = 96, wdArtArchedScallops = 97, wdArtSafari = 98, wdArtCelticKnotwork = 99, wdArtCrazyMaze = 100, wdArtEclipsingSquares1 = 101, wdArtBirds = 102, wdArtFlowersTeacup = 103, wdArtNorthwest = 104, wdArtSouthwest = 105, wdArtTribal6 = 106, wdArtTribal4 = 107, wdArtTribal3 = 108, wdArtTribal2 = 109, wdArtTribal5 = 110, wdArtXIllusions = 111, wdArtZanyTriangles = 112, wdArtPyramids = 113, wdArtPyramidsAbove = 114, wdArtConfettiGrays = 115, wdArtConfettiOutline = 116, wdArtConfettiWhite = 117, wdArtMosaic = 118, wdArtLightning2 = 119, wdArtHeebieJeebies = 120, wdArtLightBulb = 121, wdArtGradient = 122, wdArtTriangleParty = 123, wdArtTwistedLines2 = 124, wdArtMoons = 125, wdArtOvals = 126, wdArtDoubleDiamonds = 127, wdArtChainLink = 128, wdArtTriangles = 129, wdArtTribal1 = 130, wdArtMarqueeToothed = 131, wdArtSharksTeeth = 132, wdArtSawtooth = 133, wdArtSawtoothGray = 134, wdArtPostageStamp = 135, wdArtWeavingStrips = 136, wdArtZigZag = 137, wdArtCrossStitch = 138, wdArtGems = 139, wdArtCirclesRectangles = 140, wdArtCornerTriangles = 141, wdArtCreaturesInsects = 142, wdArtZigZagStitch = 143, wdArtCheckered = 144, wdArtCheckedBarBlack = 145, wdArtMarquee = 146, wdArtBasicWhiteDots = 147, wdArtBasicWideMidline = 148, wdArtBasicWideOutline = 149, wdArtBasicWideInline = 150, wdArtBasicThinLines = 151, wdArtBasicWhiteDashes = 152, wdArtBasicWhiteSquares = 153, wdArtBasicBlackSquares = 154, wdArtBasicBlackDashes = 155, wdArtBasicBlackDots = 156, wdArtStarsTop = 157, wdArtCertificateBanner = 158, wdArtHandmade1 = 159, wdArtHandmade2 = 160, wdArtTornPaper = 161, wdArtTornPaperBlack = 162, wdArtCouponCutoutDashes = 163, wdArtCouponCutoutDots = 164 }; enum __declspec(uuid("b7721110-1d37-39de-9890-e292845d2a25")) WdBorderDistanceFrom { wdBorderDistanceFromText = 0, wdBorderDistanceFromPageEdge = 1 }; enum __declspec(uuid("739a8b0a-d71d-3c99-84ff-1e3440263312")) WdReplace { wdReplaceNone = 0, wdReplaceOne = 1, wdReplaceAll = 2 }; enum __declspec(uuid("a2d97ad7-404a-3459-870d-f8b99b52382f")) WdFontBias { wdFontBiasDontCare = 255, wdFontBiasDefault = 0, wdFontBiasFareast = 1 }; struct __declspec(uuid("000209a4-0000-0000-c000-000000000046")) _OLEControl : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Automation ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall get_AltHTML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_AltHTML ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("000209f7-0000-0000-c000-000000000046")) ApplicationEvents : IDispatch {}; struct __declspec(uuid("000209f0-0000-0000-c000-000000000046")) WordGlobal; // [ default ] interface _WordGlobal struct __declspec(uuid("000209ff-0000-0000-c000-000000000046")) Application; // [ default ] interface _Application // [ source ] dispinterface ApplicationEvents // [ source ] dispinterface ApplicationEvents2 // [ source ] dispinterface ApplicationEvents3 // [ default, source ] dispinterface ApplicationEvents4 struct __declspec(uuid("0002096f-0000-0000-c000-000000000046")) FontNames : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("00020969-0000-0000-c000-000000000046")) RoutingSlip : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Subject ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Subject ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Message ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Message ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Delivery ( /*[out,retval]*/ enum WdRoutingSlipDelivery * prop ) = 0; virtual HRESULT __stdcall put_Delivery ( /*[in]*/ enum WdRoutingSlipDelivery prop ) = 0; virtual HRESULT __stdcall get_TrackStatus ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TrackStatus ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Protect ( /*[out,retval]*/ enum WdProtectionType * prop ) = 0; virtual HRESULT __stdcall put_Protect ( /*[in]*/ enum WdProtectionType prop ) = 0; virtual HRESULT __stdcall get_ReturnWhenDone ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReturnWhenDone ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Status ( /*[out,retval]*/ enum WdRoutingSlipStatus * prop ) = 0; virtual HRESULT __stdcall get_Recipients ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall AddRecipient ( /*[in]*/ BSTR Recipient ) = 0; }; struct __declspec(uuid("00020966-0000-0000-c000-000000000046")) Variable : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020965-0000-0000-c000-000000000046")) Variables : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Variable * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Value, /*[out,retval]*/ struct Variable * * prop ) = 0; }; struct __declspec(uuid("00020956-0000-0000-c000-000000000046")) DropCap : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum WdDropPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum WdDropPosition prop ) = 0; virtual HRESULT __stdcall get_FontName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FontName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_LinesToDrop ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LinesToDrop ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceFromText ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromText ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; virtual HRESULT __stdcall Enable ( ) = 0; }; struct __declspec(uuid("00020954-0000-0000-c000-000000000046")) TabStop : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdTabAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdTabAlignment prop ) = 0; virtual HRESULT __stdcall get_Leader ( /*[out,retval]*/ enum WdTabLeader * prop ) = 0; virtual HRESULT __stdcall put_Leader ( /*[in]*/ enum WdTabLeader prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CustomTab ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct TabStop * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct TabStop * * prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; }; struct __declspec(uuid("00020955-0000-0000-c000-000000000046")) TabStops : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct TabStop * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ float Position, /*[in]*/ VARIANT * Alignment, /*[in]*/ VARIANT * Leader, /*[out,retval]*/ struct TabStop * * prop ) = 0; virtual HRESULT __stdcall ClearAll ( ) = 0; virtual HRESULT __stdcall Before ( /*[in]*/ float Position, /*[out,retval]*/ struct TabStop * * prop ) = 0; virtual HRESULT __stdcall After ( /*[in]*/ float Position, /*[out,retval]*/ struct TabStop * * prop ) = 0; }; struct __declspec(uuid("00020945-0000-0000-c000-000000000046")) FirstLetterException : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020946-0000-0000-c000-000000000046")) FirstLetterExceptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct FirstLetterException * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct FirstLetterException * * prop ) = 0; }; struct __declspec(uuid("00020943-0000-0000-c000-000000000046")) TwoInitialCapsException : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020944-0000-0000-c000-000000000046")) TwoInitialCapsExceptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct TwoInitialCapsException * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct TwoInitialCapsException * * prop ) = 0; }; struct __declspec(uuid("00020939-0000-0000-c000-000000000046")) TextRetrievalMode : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ViewType ( /*[out,retval]*/ enum WdViewType * prop ) = 0; virtual HRESULT __stdcall put_ViewType ( /*[in]*/ enum WdViewType prop ) = 0; virtual HRESULT __stdcall get_Duplicate ( /*[out,retval]*/ struct TextRetrievalMode * * prop ) = 0; virtual HRESULT __stdcall get_IncludeHiddenText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeHiddenText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IncludeFieldCodes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeFieldCodes ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020935-0000-0000-c000-000000000046")) System : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_OperatingSystem ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ProcessorType ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Version ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_FreeDiskSpace ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Country ( /*[out,retval]*/ enum WdCountry * prop ) = 0; virtual HRESULT __stdcall get_LanguageDesignation ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_HorizontalResolution ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_VerticalResolution ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ProfileString ( /*[in]*/ BSTR Section, /*[in]*/ BSTR Key, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ProfileString ( /*[in]*/ BSTR Section, /*[in]*/ BSTR Key, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_PrivateProfileString ( /*[in]*/ BSTR FileName, /*[in]*/ BSTR Section, /*[in]*/ BSTR Key, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PrivateProfileString ( /*[in]*/ BSTR FileName, /*[in]*/ BSTR Section, /*[in]*/ BSTR Key, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MathCoprocessorInstalled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ComputerType ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_MacintoshName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_QuickDrawInstalled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Cursor ( /*[out,retval]*/ enum WdCursorType * prop ) = 0; virtual HRESULT __stdcall put_Cursor ( /*[in]*/ enum WdCursorType prop ) = 0; virtual HRESULT __stdcall MSInfo ( ) = 0; virtual HRESULT __stdcall Connect ( /*[in]*/ BSTR Path, /*[in]*/ VARIANT * Drive = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing ) = 0; virtual HRESULT __stdcall get_CountryRegion ( /*[out,retval]*/ enum WdCountry * prop ) = 0; }; struct __declspec(uuid("00020933-0000-0000-c000-000000000046")) OLEFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ClassType ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ClassType ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DisplayAsIcon ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayAsIcon ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IconName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_IconName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IconPath ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_IconIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_IconIndex ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_IconLabel ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_IconLabel ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Label ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Object ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ProgID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall Edit ( ) = 0; virtual HRESULT __stdcall Open ( ) = 0; virtual HRESULT __stdcall DoVerb ( /*[in]*/ VARIANT * VerbIndex = &vtMissing ) = 0; virtual HRESULT __stdcall ConvertTo ( /*[in]*/ VARIANT * ClassType = &vtMissing, /*[in]*/ VARIANT * DisplayAsIcon = &vtMissing, /*[in]*/ VARIANT * IconFileName = &vtMissing, /*[in]*/ VARIANT * IconIndex = &vtMissing, /*[in]*/ VARIANT * IconLabel = &vtMissing ) = 0; virtual HRESULT __stdcall ActivateAs ( /*[in]*/ BSTR ClassType ) = 0; virtual HRESULT __stdcall get_PreserveFormattingOnUpdate ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PreserveFormattingOnUpdate ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020931-0000-0000-c000-000000000046")) LinkFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AutoUpdate ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoUpdate ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SourceName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SourcePath ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdLinkType * prop ) = 0; virtual HRESULT __stdcall get_SourceFullName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SourceFullName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SavePictureWithDocument ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SavePictureWithDocument ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall BreakLink ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; }; struct __declspec(uuid("0002092e-0000-0000-c000-000000000046")) Browser : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Target ( /*[out,retval]*/ enum WdBrowseTarget * prop ) = 0; virtual HRESULT __stdcall put_Target ( /*[in]*/ enum WdBrowseTarget prop ) = 0; virtual HRESULT __stdcall Next ( ) = 0; virtual HRESULT __stdcall Previous ( ) = 0; }; struct __declspec(uuid("00020927-0000-0000-c000-000000000046")) TextInput : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Valid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Default ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Default ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdTextFormFieldType * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; virtual HRESULT __stdcall EditType ( /*[in]*/ enum WdTextFormFieldType Type, /*[in]*/ VARIANT * Default = &vtMissing, /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * Enabled = &vtMissing ) = 0; }; struct __declspec(uuid("00020926-0000-0000-c000-000000000046")) CheckBox : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Valid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_AutoSize ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoSize ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Size ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Size ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Default ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Default ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020923-0000-0000-c000-000000000046")) ListEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020924-0000-0000-c000-000000000046")) ListEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ListEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ListEntry * * prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; }; struct __declspec(uuid("00020925-0000-0000-c000-000000000046")) DropDown : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Valid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Default ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Default ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ListEntries ( /*[out,retval]*/ struct ListEntries * * prop ) = 0; }; struct __declspec(uuid("0002091b-0000-0000-c000-000000000046")) MailMergeFieldName : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("0002091c-0000-0000-c000-000000000046")) MailMergeFieldNames : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct MailMergeFieldName * * prop ) = 0; }; struct __declspec(uuid("00020919-0000-0000-c000-000000000046")) MailMergeDataField : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("0002091a-0000-0000-c000-000000000046")) MailMergeDataFields : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct MailMergeDataField * * prop ) = 0; }; struct __declspec(uuid("00020915-0000-0000-c000-000000000046")) CustomLabel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TopMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SideMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SideMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_VerticalPitch ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_VerticalPitch ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalPitch ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HorizontalPitch ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_NumberAcross ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NumberAcross ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NumberDown ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NumberDown ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DotMatrix ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_PageSize ( /*[out,retval]*/ enum WdCustomLabelPageSize * prop ) = 0; virtual HRESULT __stdcall put_PageSize ( /*[in]*/ enum WdCustomLabelPageSize prop ) = 0; virtual HRESULT __stdcall get_Valid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020916-0000-0000-c000-000000000046")) CustomLabels : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct CustomLabel * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * DotMatrix, /*[out,retval]*/ struct CustomLabel * * prop ) = 0; }; struct __declspec(uuid("000209b8-0000-0000-c000-000000000046")) Dialog : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_DefaultTab ( /*[out,retval]*/ enum WdWordDialogTab * prop ) = 0; virtual HRESULT __stdcall put_DefaultTab ( /*[in]*/ enum WdWordDialogTab prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdWordDialog * prop ) = 0; virtual HRESULT __stdcall Show ( /*[in]*/ VARIANT * TimeOut, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Display ( /*[in]*/ VARIANT * TimeOut, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Execute ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; virtual HRESULT __stdcall get_CommandName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_CommandBarId ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("00020910-0000-0000-c000-000000000046")) Dialogs : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdWordDialog Index, /*[out,retval]*/ struct Dialog * * prop ) = 0; }; struct __declspec(uuid("00020972-0000-0000-c000-000000000046")) LineNumbering : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_RestartMode ( /*[out,retval]*/ enum WdNumberingRule * prop ) = 0; virtual HRESULT __stdcall put_RestartMode ( /*[in]*/ enum WdNumberingRule prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceFromText ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromText ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CountBy ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_CountBy ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Active ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Active ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("00020974-0000-0000-c000-000000000046")) TextColumn : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfter ( /*[in]*/ float prop ) = 0; }; struct __declspec(uuid("00020977-0000-0000-c000-000000000046")) TableOfAuthoritiesCategory : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("00020976-0000-0000-c000-000000000046")) TablesOfAuthoritiesCategories : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct TableOfAuthoritiesCategory * * prop ) = 0; }; struct __declspec(uuid("00020979-0000-0000-c000-000000000046")) CaptionLabel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_BuiltIn ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ enum WdCaptionLabelID * prop ) = 0; virtual HRESULT __stdcall get_IncludeChapterNumber ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeChapterNumber ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdCaptionNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdCaptionNumberStyle prop ) = 0; virtual HRESULT __stdcall get_ChapterStyleLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ChapterStyleLevel ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ enum WdSeparatorType * prop ) = 0; virtual HRESULT __stdcall put_Separator ( /*[in]*/ enum WdSeparatorType prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum WdCaptionPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum WdCaptionPosition prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020978-0000-0000-c000-000000000046")) CaptionLabels : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct CaptionLabel * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct CaptionLabel * * prop ) = 0; }; struct __declspec(uuid("0002097b-0000-0000-c000-000000000046")) AutoCaption : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_AutoInsert ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoInsert ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_CaptionLabel ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_CaptionLabel ( /*[in]*/ VARIANT * prop ) = 0; }; struct __declspec(uuid("0002097a-0000-0000-c000-000000000046")) AutoCaptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct AutoCaption * * prop ) = 0; virtual HRESULT __stdcall CancelAutoInsert ( ) = 0; }; struct __declspec(uuid("0002097e-0000-0000-c000-000000000046")) AddIn : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Installed ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Installed ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Compiled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Autoload ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("0002097f-0000-0000-c000-000000000046")) AddIns : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct AddIn * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * Install, /*[out,retval]*/ struct AddIn * * prop ) = 0; virtual HRESULT __stdcall Unload ( /*[in]*/ VARIANT_BOOL RemoveFromList ) = 0; }; struct __declspec(uuid("00020982-0000-0000-c000-000000000046")) Task : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WindowState ( /*[out,retval]*/ enum WdWindowState * prop ) = 0; virtual HRESULT __stdcall put_WindowState ( /*[in]*/ enum WdWindowState prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Activate ( /*[in]*/ VARIANT * Wait = &vtMissing ) = 0; virtual HRESULT __stdcall Close ( ) = 0; virtual HRESULT __stdcall Move ( /*[in]*/ long Left, /*[in]*/ long Top ) = 0; virtual HRESULT __stdcall Resize ( /*[in]*/ long Width, /*[in]*/ long Height ) = 0; virtual HRESULT __stdcall SendWindowMessage ( /*[in]*/ long Message, /*[in]*/ long wParam, /*[in]*/ long lParam ) = 0; }; //struct __declspec(uuid("00020983-0000-0000-c000-000000000046")) //Tasks : IDispatch //{ // // // // Raw methods provided by interface // // // // virtual HRESULT __stdcall get_Application ( // /*[out,retval]*/ struct _Application * * prop ) = 0; // virtual HRESULT __stdcall get_Creator ( // /*[out,retval]*/ long * prop ) = 0; // virtual HRESULT __stdcall get_Parent ( // /*[out,retval]*/ IDispatch * * prop ) = 0; // virtual HRESULT __stdcall get__NewEnum ( // /*[out,retval]*/ IUnknown * * prop ) = 0; // virtual HRESULT __stdcall get_Count ( // /*[out,retval]*/ long * prop ) = 0; // virtual HRESULT __stdcall Item ( // /*[in]*/ VARIANT * Index, // /*[out,retval]*/ struct Task * * prop ) = 0; // virtual HRESULT __stdcall Exists ( // /*[in]*/ BSTR Name, // /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; // virtual HRESULT __stdcall ExitWindows ( ) = 0; //}; struct __declspec(uuid("00020987-0000-0000-c000-000000000046")) PageNumber : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdPageNumberAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdPageNumberAlignment prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020986-0000-0000-c000-000000000046")) PageNumbers : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdPageNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdPageNumberStyle prop ) = 0; virtual HRESULT __stdcall get_IncludeChapterNumber ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeChapterNumber ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HeadingLevelForChapter ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HeadingLevelForChapter ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ChapterPageSeparator ( /*[out,retval]*/ enum WdSeparatorType * prop ) = 0; virtual HRESULT __stdcall put_ChapterPageSeparator ( /*[in]*/ enum WdSeparatorType prop ) = 0; virtual HRESULT __stdcall get_RestartNumberingAtSection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RestartNumberingAtSection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShowFirstPageNumber ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFirstPageNumber ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct PageNumber * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * PageNumberAlignment, /*[in]*/ VARIANT * FirstPage, /*[out,retval]*/ struct PageNumber * * prop ) = 0; virtual HRESULT __stdcall get_DoubleQuote ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DoubleQuote ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("0002098b-0000-0000-c000-000000000046")) HeadingStyle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Level ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_Level ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("0002098a-0000-0000-c000-000000000046")) HeadingStyles : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct HeadingStyle * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Style, /*[in]*/ short Level, /*[out,retval]*/ struct HeadingStyle * * prop ) = 0; }; struct __declspec(uuid("00020998-0000-0000-c000-000000000046")) KeyBinding : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Command ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_KeyString ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Protected ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_KeyCategory ( /*[out,retval]*/ enum WdKeyCategory * prop ) = 0; virtual HRESULT __stdcall get_KeyCode ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_KeyCode2 ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_CommandParameter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Context ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; virtual HRESULT __stdcall Disable ( ) = 0; virtual HRESULT __stdcall Execute ( ) = 0; virtual HRESULT __stdcall Rebind ( /*[in]*/ enum WdKeyCategory KeyCategory, /*[in]*/ BSTR Command, /*[in]*/ VARIANT * CommandParameter = &vtMissing ) = 0; }; struct __declspec(uuid("00020996-0000-0000-c000-000000000046")) KeyBindings : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Context ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ enum WdKeyCategory KeyCategory, /*[in]*/ BSTR Command, /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[in]*/ VARIANT * CommandParameter, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; virtual HRESULT __stdcall ClearAll ( ) = 0; virtual HRESULT __stdcall Key ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; }; struct __declspec(uuid("00020997-0000-0000-c000-000000000046")) KeysBoundTo : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_KeyCategory ( /*[out,retval]*/ enum WdKeyCategory * prop ) = 0; virtual HRESULT __stdcall get_Command ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_CommandParameter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Context ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; virtual HRESULT __stdcall Key ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; }; struct __declspec(uuid("00020999-0000-0000-c000-000000000046")) FileConverter : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_FormatName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ClassName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SaveFormat ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_OpenFormat ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_CanSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_CanOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Extensions ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("0002099a-0000-0000-c000-000000000046")) FileConverters : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_ConvertMacWordChevrons ( /*[out,retval]*/ enum WdChevronConvertRule * prop ) = 0; virtual HRESULT __stdcall put_ConvertMacWordChevrons ( /*[in]*/ enum WdChevronConvertRule prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct FileConverter * * prop ) = 0; }; struct __declspec(uuid("0002099b-0000-0000-c000-000000000046")) SynonymInfo : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Word ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Found ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_MeaningCount ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_MeaningList ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_PartOfSpeechList ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_SynonymList ( /*[in]*/ VARIANT * Meaning, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_AntonymList ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_RelatedExpressionList ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_RelatedWordList ( /*[out,retval]*/ VARIANT * prop ) = 0; }; struct __declspec(uuid("000209a6-0000-0000-c000-000000000046")) Zoom : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Percentage ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Percentage ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PageFit ( /*[out,retval]*/ enum WdPageFit * prop ) = 0; virtual HRESULT __stdcall put_PageFit ( /*[in]*/ enum WdPageFit prop ) = 0; virtual HRESULT __stdcall get_PageRows ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PageRows ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PageColumns ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PageColumns ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("000209a7-0000-0000-c000-000000000046")) Zooms : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdViewType Index, /*[out,retval]*/ struct Zoom * * prop ) = 0; }; struct __declspec(uuid("000209ab-0000-0000-c000-000000000046")) SpellingSuggestion : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("000209aa-0000-0000-c000-000000000046")) SpellingSuggestions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_SpellingErrorType ( /*[out,retval]*/ enum WdSpellingErrorType * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct SpellingSuggestion * * prop ) = 0; }; struct __declspec(uuid("000209ad-0000-0000-c000-000000000046")) Dictionary : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_ReadOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdDictionaryType * prop ) = 0; virtual HRESULT __stdcall get_LanguageSpecific ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LanguageSpecific ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("0002096d-0000-0000-c000-000000000046")) Language : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall get_NameLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ActiveGrammarDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall get_ActiveHyphenationDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall get_ActiveSpellingDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall get_ActiveThesaurusDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall get_DefaultWritingStyle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultWritingStyle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_WritingStyleList ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_SpellingDictionaryType ( /*[out,retval]*/ enum WdDictionaryType * prop ) = 0; virtual HRESULT __stdcall put_SpellingDictionaryType ( /*[in]*/ enum WdDictionaryType prop ) = 0; }; struct __declspec(uuid("0002096e-0000-0000-c000-000000000046")) Languages : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Language * * prop ) = 0; }; struct __declspec(uuid("000209ac-0000-0000-c000-000000000046")) Dictionaries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Maximum ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ActiveCustomDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall put_ActiveCustomDictionary ( /*[in]*/ struct Dictionary * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR FileName, /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall ClearAll ( ) = 0; }; struct __declspec(uuid("000209e0-0000-0000-c000-000000000046")) HangulHanjaConversionDictionaries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Maximum ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ActiveCustomDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall put_ActiveCustomDictionary ( /*[in]*/ struct Dictionary * prop ) = 0; virtual HRESULT __stdcall get_BuiltinDictionary ( /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR FileName, /*[out,retval]*/ struct Dictionary * * prop ) = 0; virtual HRESULT __stdcall ClearAll ( ) = 0; }; struct __declspec(uuid("000209af-0000-0000-c000-000000000046")) ReadabilityStatistic : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ float * prop ) = 0; }; struct __declspec(uuid("000209ae-0000-0000-c000-000000000046")) ReadabilityStatistics : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ReadabilityStatistic * * prop ) = 0; }; struct __declspec(uuid("000209ba-0000-0000-c000-000000000046")) MailMessage : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall CheckName ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall DisplayMoveDialog ( ) = 0; virtual HRESULT __stdcall DisplayProperties ( ) = 0; virtual HRESULT __stdcall DisplaySelectNamesDialog ( ) = 0; virtual HRESULT __stdcall Forward ( ) = 0; virtual HRESULT __stdcall GoToNext ( ) = 0; virtual HRESULT __stdcall GoToPrevious ( ) = 0; virtual HRESULT __stdcall Reply ( ) = 0; virtual HRESULT __stdcall ReplyAll ( ) = 0; virtual HRESULT __stdcall ToggleHeader ( ) = 0; }; struct __declspec(uuid("000209bd-0000-0000-c000-000000000046")) Mailer : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_BCCRecipients ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_BCCRecipients ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_CCRecipients ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_CCRecipients ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Recipients ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Recipients ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Enclosures ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Enclosures ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Sender ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SendDateTime ( /*[out,retval]*/ DATE * prop ) = 0; virtual HRESULT __stdcall get_Received ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Subject ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Subject ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("000209c3-0000-0000-c000-000000000046")) WrapFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdWrapType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdWrapType prop ) = 0; virtual HRESULT __stdcall get_Side ( /*[out,retval]*/ enum WdWrapSideType * prop ) = 0; virtual HRESULT __stdcall put_Side ( /*[in]*/ enum WdWrapSideType prop ) = 0; virtual HRESULT __stdcall get_DistanceTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceBottom ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceBottom ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceRight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceRight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_AllowOverlap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllowOverlap ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("000209d2-0000-0000-c000-000000000046")) HangulAndAlphabetException : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("000209d1-0000-0000-c000-000000000046")) HangulAndAlphabetExceptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct HangulAndAlphabetException * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct HangulAndAlphabetException * * prop ) = 0; }; struct __declspec(uuid("000209c4-0000-0000-c000-000000000046")) Adjustments : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Item ( /*[in]*/ long Index, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Item ( /*[in]*/ long Index, /*[in]*/ float prop ) = 0; }; struct __declspec(uuid("000209c5-0000-0000-c000-000000000046")) CalloutFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Accent ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Accent ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Angle ( /*[out,retval]*/ enum Office::MsoCalloutAngleType * prop ) = 0; virtual HRESULT __stdcall put_Angle ( /*[in]*/ enum Office::MsoCalloutAngleType prop ) = 0; virtual HRESULT __stdcall get_AutoAttach ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_AutoAttach ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_AutoLength ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Border ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Drop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall get_DropType ( /*[out,retval]*/ enum Office::MsoCalloutDropType * prop ) = 0; virtual HRESULT __stdcall get_Gap ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Gap ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Length ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoCalloutType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum Office::MsoCalloutType prop ) = 0; virtual HRESULT __stdcall AutomaticLength ( ) = 0; virtual HRESULT __stdcall CustomDrop ( /*[in]*/ float Drop ) = 0; virtual HRESULT __stdcall CustomLength ( /*[in]*/ float Length ) = 0; virtual HRESULT __stdcall PresetDrop ( /*[in]*/ enum Office::MsoCalloutDropType DropType ) = 0; }; struct __declspec(uuid("000209cb-0000-0000-c000-000000000046")) PictureFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Brightness ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Brightness ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ColorType ( /*[out,retval]*/ enum Office::MsoPictureColorType * prop ) = 0; virtual HRESULT __stdcall put_ColorType ( /*[in]*/ enum Office::MsoPictureColorType prop ) = 0; virtual HRESULT __stdcall get_Contrast ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Contrast ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CropBottom ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CropBottom ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CropLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CropLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CropRight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CropRight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CropTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CropTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TransparencyColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_TransparencyColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TransparentBackground ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_TransparentBackground ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall IncrementBrightness ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementContrast ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall get_Crop ( /*[out,retval]*/ struct Office::Crop * * prop ) = 0; virtual HRESULT __stdcall put_Crop ( /*[in]*/ struct Office::Crop * prop ) = 0; }; struct __declspec(uuid("000209cd-0000-0000-c000-000000000046")) ShapeNode : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_EditingType ( /*[out,retval]*/ enum Office::MsoEditingType * prop ) = 0; virtual HRESULT __stdcall get_Points ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_SegmentType ( /*[out,retval]*/ enum Office::MsoSegmentType * prop ) = 0; }; struct __declspec(uuid("000209ce-0000-0000-c000-000000000046")) ShapeNodes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ long Index ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ShapeNode * * prop ) = 0; virtual HRESULT __stdcall SetEditingType ( /*[in]*/ long Index, /*[in]*/ enum Office::MsoEditingType EditingType ) = 0; virtual HRESULT __stdcall SetPosition ( /*[in]*/ long Index, /*[in]*/ float X1, /*[in]*/ float Y1 ) = 0; virtual HRESULT __stdcall SetSegmentType ( /*[in]*/ long Index, /*[in]*/ enum Office::MsoSegmentType SegmentType ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ long Index, /*[in]*/ enum Office::MsoSegmentType SegmentType, /*[in]*/ enum Office::MsoEditingType EditingType, /*[in]*/ float X1, /*[in]*/ float Y1, /*[in]*/ float X2, /*[in]*/ float Y2, /*[in]*/ float X3, /*[in]*/ float Y3 ) = 0; }; struct __declspec(uuid("000209cf-0000-0000-c000-000000000046")) TextEffectFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum Office::MsoTextEffectAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum Office::MsoTextEffectAlignment prop ) = 0; virtual HRESULT __stdcall get_FontBold ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_FontBold ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_FontItalic ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_FontItalic ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_FontName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FontName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FontSize ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FontSize ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_KernedPairs ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_KernedPairs ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_NormalizedHeight ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_NormalizedHeight ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_PresetShape ( /*[out,retval]*/ enum Office::MsoPresetTextEffectShape * prop ) = 0; virtual HRESULT __stdcall put_PresetShape ( /*[in]*/ enum Office::MsoPresetTextEffectShape prop ) = 0; virtual HRESULT __stdcall get_PresetTextEffect ( /*[out,retval]*/ enum Office::MsoPresetTextEffect * prop ) = 0; virtual HRESULT __stdcall put_PresetTextEffect ( /*[in]*/ enum Office::MsoPresetTextEffect prop ) = 0; virtual HRESULT __stdcall get_RotatedChars ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_RotatedChars ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Tracking ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Tracking ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall ToggleVerticalText ( ) = 0; }; struct __declspec(uuid("000209f6-0000-0000-c000-000000000046")) DocumentEvents : IDispatch {}; struct __declspec(uuid("00020906-0000-0000-c000-000000000046")) Document; // [ default ] interface _Document // [ source ] dispinterface DocumentEvents // [ default, source ] dispinterface DocumentEvents2 struct __declspec(uuid("0002096c-0000-0000-c000-000000000046")) Documents : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Close ( /*[in]*/ VARIANT * SaveChanges = &vtMissing, /*[in]*/ VARIANT * OriginalFormat = &vtMissing, /*[in]*/ VARIANT * RouteDocument = &vtMissing ) = 0; virtual HRESULT __stdcall AddOld ( /*[in]*/ VARIANT * Template, /*[in]*/ VARIANT * NewTemplate, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall OpenOld ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[in]*/ VARIANT * Format, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Save ( /*[in]*/ VARIANT * NoPrompt = &vtMissing, /*[in]*/ VARIANT * OriginalFormat = &vtMissing ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Template, /*[in]*/ VARIANT * NewTemplate, /*[in]*/ VARIANT * DocumentType, /*[in]*/ VARIANT * Visible, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Open2000 ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * Encoding, /*[in]*/ VARIANT * Visible, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall CheckOut ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall CanCheckOut ( /*[in]*/ BSTR FileName, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Open2002 ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * Encoding, /*[in]*/ VARIANT * Visible, /*[in]*/ VARIANT * OpenAndRepair, /*[in]*/ VARIANT * DocumentDirection, /*[in]*/ VARIANT * NoEncodingDialog, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Open ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * Encoding, /*[in]*/ VARIANT * Visible, /*[in]*/ VARIANT * OpenAndRepair, /*[in]*/ VARIANT * DocumentDirection, /*[in]*/ VARIANT * NoEncodingDialog, /*[in]*/ VARIANT * XMLTransform, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall OpenNoRepairDialog ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * Encoding, /*[in]*/ VARIANT * Visible, /*[in]*/ VARIANT * OpenAndRepair, /*[in]*/ VARIANT * DocumentDirection, /*[in]*/ VARIANT * NoEncodingDialog, /*[in]*/ VARIANT * XMLTransform, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall AddBlogDocument ( /*[in]*/ BSTR ProviderID, /*[in]*/ BSTR PostURL, /*[in]*/ BSTR BlogName, /*[in]*/ BSTR PostID, /*[out,retval]*/ struct _Document * * prop ) = 0; }; struct __declspec(uuid("00020964-0000-0000-c000-000000000046")) RecentFile : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ReadOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadOnly ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Open ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020963-0000-0000-c000-000000000046")) RecentFiles : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Maximum ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Maximum ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct RecentFile * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Document, /*[in]*/ VARIANT * ReadOnly, /*[out,retval]*/ struct RecentFile * * prop ) = 0; }; struct __declspec(uuid("00020917-0000-0000-c000-000000000046")) MailingLabel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_DefaultPrintBarCode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultPrintBarCode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultLaserTray ( /*[out,retval]*/ enum WdPaperTray * prop ) = 0; virtual HRESULT __stdcall put_DefaultLaserTray ( /*[in]*/ enum WdPaperTray prop ) = 0; virtual HRESULT __stdcall get_CustomLabels ( /*[out,retval]*/ struct CustomLabels * * prop ) = 0; virtual HRESULT __stdcall get_DefaultLabelName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultLabelName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall CreateNewDocument2000 ( /*[in]*/ VARIANT * Name, /*[in]*/ VARIANT * Address, /*[in]*/ VARIANT * AutoText, /*[in]*/ VARIANT * ExtractAddress, /*[in]*/ VARIANT * LaserTray, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall PrintOut2000 ( /*[in]*/ VARIANT * Name = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * LaserTray = &vtMissing, /*[in]*/ VARIANT * SingleLabel = &vtMissing, /*[in]*/ VARIANT * Row = &vtMissing, /*[in]*/ VARIANT * Column = &vtMissing ) = 0; virtual HRESULT __stdcall LabelOptions ( ) = 0; virtual HRESULT __stdcall CreateNewDocument ( /*[in]*/ VARIANT * Name, /*[in]*/ VARIANT * Address, /*[in]*/ VARIANT * AutoText, /*[in]*/ VARIANT * ExtractAddress, /*[in]*/ VARIANT * LaserTray, /*[in]*/ VARIANT * PrintEPostageLabel, /*[in]*/ VARIANT * Vertical, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall PrintOut ( /*[in]*/ VARIANT * Name = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * LaserTray = &vtMissing, /*[in]*/ VARIANT * SingleLabel = &vtMissing, /*[in]*/ VARIANT * Row = &vtMissing, /*[in]*/ VARIANT * Column = &vtMissing, /*[in]*/ VARIANT * PrintEPostageLabel = &vtMissing, /*[in]*/ VARIANT * Vertical = &vtMissing ) = 0; virtual HRESULT __stdcall get_Vertical ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Vertical ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall CreateNewDocumentByID ( /*[in]*/ VARIANT * LabelID, /*[in]*/ VARIANT * Address, /*[in]*/ VARIANT * AutoText, /*[in]*/ VARIANT * ExtractAddress, /*[in]*/ VARIANT * LaserTray, /*[in]*/ VARIANT * PrintEPostageLabel, /*[in]*/ VARIANT * Vertical, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall PrintOutByID ( /*[in]*/ VARIANT * LabelID = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * LaserTray = &vtMissing, /*[in]*/ VARIANT * SingleLabel = &vtMissing, /*[in]*/ VARIANT * Row = &vtMissing, /*[in]*/ VARIANT * Column = &vtMissing, /*[in]*/ VARIANT * PrintEPostageLabel = &vtMissing, /*[in]*/ VARIANT * Vertical = &vtMissing ) = 0; }; struct __declspec(uuid("000209b4-0000-0000-c000-000000000046")) Version : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SavedBy ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Comment ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Date ( /*[out,retval]*/ DATE * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall OpenOld ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Open ( /*[out,retval]*/ struct _Document * * prop ) = 0; }; struct __declspec(uuid("000209b3-0000-0000-c000-000000000046")) Versions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_AutoVersion ( /*[out,retval]*/ enum WdAutoVersions * prop ) = 0; virtual HRESULT __stdcall put_AutoVersion ( /*[in]*/ enum WdAutoVersions prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Version * * prop ) = 0; virtual HRESULT __stdcall Save ( /*[in]*/ VARIANT * Comment = &vtMissing ) = 0; }; struct __declspec(uuid("000209f5-0000-0000-c000-000000000046")) Font; // [ default ] interface _Font struct __declspec(uuid("000209f4-0000-0000-c000-000000000046")) ParagraphFormat; // [ default ] interface _ParagraphFormat struct __declspec(uuid("000209f3-0000-0000-c000-000000000046")) OCXEvents : IDispatch {}; struct __declspec(uuid("000209f2-0000-0000-c000-000000000046")) OLEControl; // [ default ] interface _OLEControl // [ default, source ] dispinterface OCXEvents struct __declspec(uuid("000209f1-0000-0000-c000-000000000046")) LetterContent; // [ default ] interface _LetterContent struct __declspec(uuid("000209a1-0000-0000-c000-000000000046")) _LetterContent : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Duplicate ( /*[out,retval]*/ struct _LetterContent * * prop ) = 0; virtual HRESULT __stdcall get_DateFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DateFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IncludeHeaderFooter ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeHeaderFooter ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PageDesign ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PageDesign ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_LetterStyle ( /*[out,retval]*/ enum WdLetterStyle * prop ) = 0; virtual HRESULT __stdcall put_LetterStyle ( /*[in]*/ enum WdLetterStyle prop ) = 0; virtual HRESULT __stdcall get_Letterhead ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Letterhead ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LetterheadLocation ( /*[out,retval]*/ enum WdLetterheadLocation * prop ) = 0; virtual HRESULT __stdcall put_LetterheadLocation ( /*[in]*/ enum WdLetterheadLocation prop ) = 0; virtual HRESULT __stdcall get_LetterheadSize ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LetterheadSize ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RecipientName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_RecipientName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_RecipientAddress ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_RecipientAddress ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Salutation ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Salutation ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SalutationType ( /*[out,retval]*/ enum WdSalutationType * prop ) = 0; virtual HRESULT __stdcall put_SalutationType ( /*[in]*/ enum WdSalutationType prop ) = 0; virtual HRESULT __stdcall get_RecipientReference ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_RecipientReference ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MailingInstructions ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_MailingInstructions ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_AttentionLine ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_AttentionLine ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Subject ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Subject ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_EnclosureNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_EnclosureNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_CCList ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_CCList ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ReturnAddress ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ReturnAddress ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Closing ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Closing ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderCompany ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderCompany ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderJobTitle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderJobTitle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderInitials ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderInitials ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_InfoBlock ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InfoBlock ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RecipientCode ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_RecipientCode ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_RecipientGender ( /*[out,retval]*/ enum WdSalutationGender * prop ) = 0; virtual HRESULT __stdcall put_RecipientGender ( /*[in]*/ enum WdSalutationGender prop ) = 0; virtual HRESULT __stdcall get_ReturnAddressShortForm ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ReturnAddressShortForm ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderCity ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderCity ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderCode ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderCode ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SenderGender ( /*[out,retval]*/ enum WdSalutationGender * prop ) = 0; virtual HRESULT __stdcall put_SenderGender ( /*[in]*/ enum WdSalutationGender prop ) = 0; virtual HRESULT __stdcall get_SenderReference ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SenderReference ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("000209f7-0001-0000-c000-000000000046")) IApplicationEvents : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall Startup ( ) = 0; virtual HRESULT __stdcall Quit ( ) = 0; virtual HRESULT __stdcall DocumentChange ( ) = 0; }; struct __declspec(uuid("000209fe-0000-0000-c000-000000000046")) ApplicationEvents2 : IDispatch {}; enum __declspec(uuid("417ec967-acf1-3b68-9743-d9d104681fb3")) WdBrowserLevel { wdBrowserLevelV4 = 0, wdBrowserLevelMicrosoftInternetExplorer5 = 1, wdBrowserLevelMicrosoftInternetExplorer6 = 2 }; enum __declspec(uuid("f5505753-856c-33a5-9129-291f3e9f441d")) WdEnclosureType { wdEnclosureCircle = 0, wdEnclosureSquare = 1, wdEnclosureTriangle = 2, wdEnclosureDiamond = 3 }; enum __declspec(uuid("0f05520a-75c5-378a-a3b8-e7b89539f932")) WdEncloseStyle { wdEncloseStyleNone = 0, wdEncloseStyleSmall = 1, wdEncloseStyleLarge = 2 }; enum __declspec(uuid("4c4f593a-9757-3a01-ac2d-d155b45ab080")) WdHighAnsiText { wdHighAnsiIsFarEast = 0, wdHighAnsiIsHighAnsi = 1, wdAutoDetectHighAnsiFarEast = 2 }; enum __declspec(uuid("b9d5b662-c047-3ef3-97ec-b6bed7499bc9")) WdLayoutMode { wdLayoutModeDefault = 0, wdLayoutModeGrid = 1, wdLayoutModeLineGrid = 2, wdLayoutModeGenko = 3 }; enum __declspec(uuid("1dc9a70e-a0eb-34af-8a29-fe9c2032fc79")) WdDocumentMedium { wdEmailMessage = 0, wdDocument = 1, wdWebPage = 2 }; enum __declspec(uuid("27d51657-6ea9-3956-a11c-c6303ec9a3ad")) WdMailerPriority { wdPriorityNormal = 1, wdPriorityLow = 2, wdPriorityHigh = 3 }; enum __declspec(uuid("79c569a5-0a9f-3922-bc4d-908835ffed05")) WdDocumentViewDirection { wdDocumentViewRtl = 0, wdDocumentViewLtr = 1 }; enum __declspec(uuid("e6ab5a96-2ff7-37fa-b555-65573af645bc")) WdArabicNumeral { wdNumeralArabic = 0, wdNumeralHindi = 1, wdNumeralContext = 2, wdNumeralSystem = 3 }; enum __declspec(uuid("d08fa7ee-d986-3539-aa28-10dbab03e863")) WdMonthNames { wdMonthNamesArabic = 0, wdMonthNamesEnglish = 1, wdMonthNamesFrench = 2 }; enum __declspec(uuid("707ef034-24e7-3ede-bb67-748fb000cc52")) WdCursorMovement { wdCursorMovementLogical = 0, wdCursorMovementVisual = 1 }; enum __declspec(uuid("9a004eb1-0626-3809-b753-fae554e3721b")) WdVisualSelection { wdVisualSelectionBlock = 0, wdVisualSelectionContinuous = 1 }; enum __declspec(uuid("5d6daaa5-69b8-33ec-b902-21218ffc16c1")) WdTableDirection { wdTableDirectionRtl = 0, wdTableDirectionLtr = 1 }; enum __declspec(uuid("c2adf35b-d18a-351b-b61f-79d9e874de1d")) WdFlowDirection { wdFlowLtr = 0, wdFlowRtl = 1 }; struct __declspec(uuid("00020973-0000-0000-c000-000000000046")) TextColumns : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_EvenlySpaced ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_EvenlySpaced ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LineBetween ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LineBetween ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Spacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Spacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct TextColumn * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Spacing, /*[in]*/ VARIANT * EvenlySpaced, /*[out,retval]*/ struct TextColumn * * prop ) = 0; virtual HRESULT __stdcall SetCount ( /*[in]*/ long NumColumns ) = 0; virtual HRESULT __stdcall get_FlowDirection ( /*[out,retval]*/ enum WdFlowDirection * prop ) = 0; virtual HRESULT __stdcall put_FlowDirection ( /*[in]*/ enum WdFlowDirection prop ) = 0; }; enum __declspec(uuid("5c417fbe-dcba-3e9b-811d-42d0c974e938")) WdDiacriticColor { wdDiacriticColorBidi = 0, wdDiacriticColorLatin = 1 }; enum __declspec(uuid("28b55fc9-4a35-3f42-99fa-923ec633b8f1")) WdGutterStyle { wdGutterPosLeft = 0, wdGutterPosTop = 1, wdGutterPosRight = 2 }; enum __declspec(uuid("a952af67-0b87-3f27-8647-f0d2bce47722")) WdGutterStyleOld { wdGutterStyleLatin = -10, wdGutterStyleBidi = 2 }; enum __declspec(uuid("0c0568fc-fa89-3acc-b9cd-b046d85723b6")) WdSectionDirection { wdSectionDirectionRtl = 0, wdSectionDirectionLtr = 1 }; struct __declspec(uuid("00020971-0000-0000-c000-000000000046")) PageSetup : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_TopMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BottomMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BottomMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Gutter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Gutter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PageWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PageWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PageHeight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PageHeight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ enum WdOrientation * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ enum WdOrientation prop ) = 0; virtual HRESULT __stdcall get_FirstPageTray ( /*[out,retval]*/ enum WdPaperTray * prop ) = 0; virtual HRESULT __stdcall put_FirstPageTray ( /*[in]*/ enum WdPaperTray prop ) = 0; virtual HRESULT __stdcall get_OtherPagesTray ( /*[out,retval]*/ enum WdPaperTray * prop ) = 0; virtual HRESULT __stdcall put_OtherPagesTray ( /*[in]*/ enum WdPaperTray prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ enum WdVerticalAlignment * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ enum WdVerticalAlignment prop ) = 0; virtual HRESULT __stdcall get_MirrorMargins ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MirrorMargins ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HeaderDistance ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HeaderDistance ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FooterDistance ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FooterDistance ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SectionStart ( /*[out,retval]*/ enum WdSectionStart * prop ) = 0; virtual HRESULT __stdcall put_SectionStart ( /*[in]*/ enum WdSectionStart prop ) = 0; virtual HRESULT __stdcall get_OddAndEvenPagesHeaderFooter ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_OddAndEvenPagesHeaderFooter ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DifferentFirstPageHeaderFooter ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DifferentFirstPageHeaderFooter ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SuppressEndnotes ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SuppressEndnotes ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LineNumbering ( /*[out,retval]*/ struct LineNumbering * * prop ) = 0; virtual HRESULT __stdcall put_LineNumbering ( /*[in]*/ struct LineNumbering * prop ) = 0; virtual HRESULT __stdcall get_TextColumns ( /*[out,retval]*/ struct TextColumns * * prop ) = 0; virtual HRESULT __stdcall put_TextColumns ( /*[in]*/ struct TextColumns * prop ) = 0; virtual HRESULT __stdcall get_PaperSize ( /*[out,retval]*/ enum WdPaperSize * prop ) = 0; virtual HRESULT __stdcall put_PaperSize ( /*[in]*/ enum WdPaperSize prop ) = 0; virtual HRESULT __stdcall get_TwoPagesOnOne ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TwoPagesOnOne ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_GutterOnTop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_GutterOnTop ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CharsLine ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharsLine ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LinesPage ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LinesPage ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ShowGrid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowGrid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall TogglePortrait ( ) = 0; virtual HRESULT __stdcall SetAsTemplateDefault ( ) = 0; virtual HRESULT __stdcall get_GutterStyle ( /*[out,retval]*/ enum WdGutterStyleOld * prop ) = 0; virtual HRESULT __stdcall put_GutterStyle ( /*[in]*/ enum WdGutterStyleOld prop ) = 0; virtual HRESULT __stdcall get_SectionDirection ( /*[out,retval]*/ enum WdSectionDirection * prop ) = 0; virtual HRESULT __stdcall put_SectionDirection ( /*[in]*/ enum WdSectionDirection prop ) = 0; virtual HRESULT __stdcall get_LayoutMode ( /*[out,retval]*/ enum WdLayoutMode * prop ) = 0; virtual HRESULT __stdcall put_LayoutMode ( /*[in]*/ enum WdLayoutMode prop ) = 0; virtual HRESULT __stdcall get_GutterPos ( /*[out,retval]*/ enum WdGutterStyle * prop ) = 0; virtual HRESULT __stdcall put_GutterPos ( /*[in]*/ enum WdGutterStyle prop ) = 0; virtual HRESULT __stdcall get_BookFoldPrinting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BookFoldPrinting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BookFoldRevPrinting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BookFoldRevPrinting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BookFoldPrintingSheets ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_BookFoldPrintingSheets ( /*[in]*/ long prop ) = 0; }; enum __declspec(uuid("78aabe7b-69ed-3039-a665-aafd53268f74")) WdDateLanguage { wdDateLanguageBidi = 10, wdDateLanguageLatin = 1033 }; enum __declspec(uuid("e99f6ec3-9fc0-370c-ae31-1a0452ac413a")) WdCalendarTypeBi { wdCalendarTypeBidi = 99, wdCalendarTypeGregorian = 100 }; enum __declspec(uuid("2f1b54db-4a60-3b71-9eb6-7ae77033b5b5")) WdCalendarType { wdCalendarWestern = 0, wdCalendarArabic = 1, wdCalendarHebrew = 2, wdCalendarTaiwan = 3, wdCalendarJapan = 4, wdCalendarThai = 5, wdCalendarKorean = 6, wdCalendarSakaEra = 7, wdCalendarTranslitEnglish = 8, wdCalendarTranslitFrench = 9, wdCalendarUmalqura = 13 }; enum __declspec(uuid("1a41f606-6aef-37e5-a4aa-799ebe04cfa2")) WdReadingOrder { wdReadingOrderRtl = 0, wdReadingOrderLtr = 1 }; enum __declspec(uuid("7baf6c5f-e7d6-37da-95f4-0864d1128e54")) WdHebSpellStart { wdFullScript = 0, wdPartialScript = 1, wdMixedScript = 2, wdMixedAuthorizedScript = 3 }; enum __declspec(uuid("93914d16-797f-3747-8421-54b51590cef1")) WdAraSpeller { wdNone = 0, wdInitialAlef = 1, wdFinalYaa = 2, wdBoth = 3 }; enum __declspec(uuid("b95c2c1c-fa2f-319b-a6da-8d560fd44553")) WdColor { wdColorAutomatic = -16777216, wdColorBlack = 0, wdColorBlue = 16711680, wdColorTurquoise = 16776960, wdColorBrightGreen = 65280, wdColorPink = 16711935, wdColorRed = 255, wdColorYellow = 65535, wdColorWhite = 16777215, wdColorDarkBlue = 8388608, wdColorTeal = 8421376, wdColorGreen = 32768, wdColorViolet = 8388736, wdColorDarkRed = 128, wdColorDarkYellow = 32896, wdColorBrown = 13209, wdColorOliveGreen = 13107, wdColorDarkGreen = 13056, wdColorDarkTeal = 6697728, wdColorIndigo = 10040115, wdColorOrange = 26367, wdColorBlueGray = 10053222, wdColorLightOrange = 39423, wdColorLime = 52377, wdColorSeaGreen = 6723891, wdColorAqua = 13421619, wdColorLightBlue = 16737843, wdColorGold = 52479, wdColorSkyBlue = 16763904, wdColorPlum = 6697881, wdColorRose = 13408767, wdColorTan = 10079487, wdColorLightYellow = 10092543, wdColorLightGreen = 13434828, wdColorLightTurquoise = 16777164, wdColorPaleBlue = 16764057, wdColorLavender = 16751052, wdColorGray05 = 15987699, wdColorGray10 = 15132390, wdColorGray125 = 14737632, wdColorGray15 = 14277081, wdColorGray20 = 13421772, wdColorGray25 = 12632256, wdColorGray30 = 11776947, wdColorGray35 = 10921638, wdColorGray375 = 10526880, wdColorGray40 = 10066329, wdColorGray45 = 9211020, wdColorGray50 = 8421504, wdColorGray55 = 7566195, wdColorGray60 = 6710886, wdColorGray625 = 6316128, wdColorGray65 = 5855577, wdColorGray70 = 5000268, wdColorGray75 = 4210752, wdColorGray80 = 3355443, wdColorGray85 = 2500134, wdColorGray875 = 2105376, wdColorGray90 = 1644825, wdColorGray95 = 789516 }; struct __declspec(uuid("0002093b-0000-0000-c000-000000000046")) Border : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_ColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_Inside ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_LineStyle ( /*[out,retval]*/ enum WdLineStyle * prop ) = 0; virtual HRESULT __stdcall put_LineStyle ( /*[in]*/ enum WdLineStyle prop ) = 0; virtual HRESULT __stdcall get_LineWidth ( /*[out,retval]*/ enum WdLineWidth * prop ) = 0; virtual HRESULT __stdcall put_LineWidth ( /*[in]*/ enum WdLineWidth prop ) = 0; virtual HRESULT __stdcall get_ArtStyle ( /*[out,retval]*/ enum WdPageBorderArt * prop ) = 0; virtual HRESULT __stdcall put_ArtStyle ( /*[in]*/ enum WdPageBorderArt prop ) = 0; virtual HRESULT __stdcall get_ArtWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ArtWidth ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ enum WdColor prop ) = 0; }; struct __declspec(uuid("0002093c-0000-0000-c000-000000000046")) Borders : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Enable ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Enable ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceFromTop ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromTop ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_InsideLineStyle ( /*[out,retval]*/ enum WdLineStyle * prop ) = 0; virtual HRESULT __stdcall put_InsideLineStyle ( /*[in]*/ enum WdLineStyle prop ) = 0; virtual HRESULT __stdcall get_OutsideLineStyle ( /*[out,retval]*/ enum WdLineStyle * prop ) = 0; virtual HRESULT __stdcall put_OutsideLineStyle ( /*[in]*/ enum WdLineStyle prop ) = 0; virtual HRESULT __stdcall get_InsideLineWidth ( /*[out,retval]*/ enum WdLineWidth * prop ) = 0; virtual HRESULT __stdcall put_InsideLineWidth ( /*[in]*/ enum WdLineWidth prop ) = 0; virtual HRESULT __stdcall get_OutsideLineWidth ( /*[out,retval]*/ enum WdLineWidth * prop ) = 0; virtual HRESULT __stdcall put_OutsideLineWidth ( /*[in]*/ enum WdLineWidth prop ) = 0; virtual HRESULT __stdcall get_InsideColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_InsideColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_OutsideColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_OutsideColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_DistanceFromLeft ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromLeft ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceFromBottom ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromBottom ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceFromRight ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DistanceFromRight ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AlwaysInFront ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlwaysInFront ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SurroundHeader ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SurroundHeader ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SurroundFooter ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SurroundFooter ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_JoinBorders ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_JoinBorders ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasHorizontal ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_HasVertical ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_DistanceFrom ( /*[out,retval]*/ enum WdBorderDistanceFrom * prop ) = 0; virtual HRESULT __stdcall put_DistanceFrom ( /*[in]*/ enum WdBorderDistanceFrom prop ) = 0; virtual HRESULT __stdcall get_EnableFirstPageInSection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableFirstPageInSection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableOtherPagesInSection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableOtherPagesInSection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdBorderType Index, /*[out,retval]*/ struct Border * * prop ) = 0; virtual HRESULT __stdcall ApplyPageBordersToAllSections ( ) = 0; virtual HRESULT __stdcall get_InsideColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_InsideColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_OutsideColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_OutsideColor ( /*[in]*/ enum WdColor prop ) = 0; }; struct __declspec(uuid("0002093a-0000-0000-c000-000000000046")) Shading : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ForegroundPatternColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_ForegroundPatternColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_BackgroundPatternColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_BackgroundPatternColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_Texture ( /*[out,retval]*/ enum WdTextureIndex * prop ) = 0; virtual HRESULT __stdcall put_Texture ( /*[in]*/ enum WdTextureIndex prop ) = 0; virtual HRESULT __stdcall get_ForegroundPatternColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_ForegroundPatternColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_BackgroundPatternColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_BackgroundPatternColor ( /*[in]*/ enum WdColor prop ) = 0; }; enum __declspec(uuid("21e8e5b2-dcf5-3825-9f43-1da651e79c64")) WdShapePosition { wdShapeTop = -999999, wdShapeLeft = -999998, wdShapeBottom = -999997, wdShapeRight = -999996, wdShapeCenter = -999995, wdShapeInside = -999994, wdShapeOutside = -999993 }; enum __declspec(uuid("af2102b9-8c24-358e-b851-05d1803a4356")) WdTablePosition { wdTableTop = -999999, wdTableLeft = -999998, wdTableBottom = -999997, wdTableRight = -999996, wdTableCenter = -999995, wdTableInside = -999994, wdTableOutside = -999993 }; enum __declspec(uuid("d73d319d-bb39-3bfc-bc01-509855f4c15f")) WdDefaultListBehavior { wdWord8ListBehavior = 0, wdWord9ListBehavior = 1, wdWord10ListBehavior = 2 }; enum __declspec(uuid("d69495af-8f32-39ee-bd96-d683d87d6a8e")) WdDefaultTableBehavior { wdWord8TableBehavior = 0, wdWord9TableBehavior = 1 }; enum __declspec(uuid("7a27760c-ffdd-35d3-b12a-85cbec20afc8")) WdAutoFitBehavior { wdAutoFitFixed = 0, wdAutoFitContent = 1, wdAutoFitWindow = 2 }; enum __declspec(uuid("6502b78d-944a-36ee-bf60-f6b45716c4ed")) WdPreferredWidthType { wdPreferredWidthAuto = 1, wdPreferredWidthPercent = 2, wdPreferredWidthPoints = 3 }; enum __declspec(uuid("b5f5a962-1bc9-35a4-ac91-c40b9d33acb9")) WdFarEastLineBreakLanguageID { wdLineBreakJapanese = 1041, wdLineBreakKorean = 1042, wdLineBreakSimplifiedChinese = 2052, wdLineBreakTraditionalChinese = 1028 }; enum __declspec(uuid("858c6bc5-2351-363f-9177-bbffa86ccb78")) WdViewTypeOld { wdPageView = 3, wdOnlineView = 6 }; enum __declspec(uuid("b14e1d94-eac6-37d5-80d3-40cf2fc44c22")) WdFramesetType { wdFramesetTypeFrameset = 0, wdFramesetTypeFrame = 1 }; enum __declspec(uuid("bc173c05-2df7-314f-8087-7cf97f5be921")) WdFramesetSizeType { wdFramesetSizeTypePercent = 0, wdFramesetSizeTypeFixed = 1, wdFramesetSizeTypeRelative = 2 }; enum __declspec(uuid("b2762291-75f1-39d6-9297-6b8f6dd6a271")) WdFramesetNewFrameLocation { wdFramesetNewFrameAbove = 0, wdFramesetNewFrameBelow = 1, wdFramesetNewFrameRight = 2, wdFramesetNewFrameLeft = 3 }; enum __declspec(uuid("0e37eefa-84bd-300e-8ab4-7cfc2c8c3f38")) WdScrollbarType { wdScrollbarTypeAuto = 0, wdScrollbarTypeYes = 1, wdScrollbarTypeNo = 2 }; enum __declspec(uuid("a6872888-d8a9-3bfa-9ead-0998d01e37d1")) WdTwoLinesInOneType { wdTwoLinesInOneNone = 0, wdTwoLinesInOneNoBrackets = 1, wdTwoLinesInOneParentheses = 2, wdTwoLinesInOneSquareBrackets = 3, wdTwoLinesInOneAngleBrackets = 4, wdTwoLinesInOneCurlyBrackets = 5 }; enum __declspec(uuid("23ee5ced-fe35-3d2e-a069-8d44cd012d99")) WdHorizontalInVerticalType { wdHorizontalInVerticalNone = 0, wdHorizontalInVerticalFitInLine = 1, wdHorizontalInVerticalResizeLine = 2 }; enum __declspec(uuid("6cf7a114-a67b-3b17-ae17-03564598740d")) WdHorizontalLineAlignment { wdHorizontalLineAlignLeft = 0, wdHorizontalLineAlignCenter = 1, wdHorizontalLineAlignRight = 2 }; enum __declspec(uuid("6be99866-55ff-336c-9719-681e7e04e74e")) WdHorizontalLineWidthType { wdHorizontalLinePercentWidth = -1, wdHorizontalLineFixedWidth = -2 }; enum __declspec(uuid("452a1aec-5665-36cb-8e14-9c39286e8216")) WdPhoneticGuideAlignmentType { wdPhoneticGuideAlignmentCenter = 0, wdPhoneticGuideAlignmentZeroOneZero = 1, wdPhoneticGuideAlignmentOneTwoOne = 2, wdPhoneticGuideAlignmentLeft = 3, wdPhoneticGuideAlignmentRight = 4, wdPhoneticGuideAlignmentRightVertical = 5 }; enum __declspec(uuid("a921af37-36d9-30d1-9abb-fe255aaa60ae")) WdNewDocumentType { wdNewBlankDocument = 0, wdNewWebPage = 1, wdNewEmailMessage = 2, wdNewFrameset = 3, wdNewXMLDocument = 4 }; enum __declspec(uuid("1410bef9-ce35-3b3a-8830-b9d445cd0905")) WdKana { wdKanaKatakana = 8, wdKanaHiragana = 9 }; enum __declspec(uuid("ca59c2ed-82cc-31eb-9817-0158dcd475e4")) WdCharacterWidth { wdWidthHalfWidth = 6, wdWidthFullWidth = 7 }; enum __declspec(uuid("e3d0438d-d284-31c5-a2bf-a4af6a1bd014")) WdNumberStyleWordBasicBiDi { wdListNumberStyleBidi1 = 49, wdListNumberStyleBidi2 = 50, wdCaptionNumberStyleBidiLetter1 = 49, wdCaptionNumberStyleBidiLetter2 = 50, wdNoteNumberStyleBidiLetter1 = 49, wdNoteNumberStyleBidiLetter2 = 50, wdPageNumberStyleBidiLetter1 = 49, wdPageNumberStyleBidiLetter2 = 50 }; enum __declspec(uuid("047ed75f-bce6-33af-834d-611873724a72")) WdTCSCConverterDirection { wdTCSCConverterDirectionSCTC = 0, wdTCSCConverterDirectionTCSC = 1, wdTCSCConverterDirectionAuto = 2 }; struct __declspec(uuid("000209de-0000-0000-c000-000000000046")) HorizontalLineFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PercentWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PercentWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_NoShade ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NoShade ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdHorizontalLineAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdHorizontalLineAlignment prop ) = 0; virtual HRESULT __stdcall get_WidthType ( /*[out,retval]*/ enum WdHorizontalLineWidthType * prop ) = 0; virtual HRESULT __stdcall put_WidthType ( /*[in]*/ enum WdHorizontalLineWidthType prop ) = 0; }; struct __declspec(uuid("000209e2-0000-0000-c000-000000000046")) Frameset : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_ParentFrameset ( /*[out,retval]*/ struct Frameset * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdFramesetType * prop ) = 0; virtual HRESULT __stdcall get_WidthType ( /*[out,retval]*/ enum WdFramesetSizeType * prop ) = 0; virtual HRESULT __stdcall put_WidthType ( /*[in]*/ enum WdFramesetSizeType prop ) = 0; virtual HRESULT __stdcall get_HeightType ( /*[out,retval]*/ enum WdFramesetSizeType * prop ) = 0; virtual HRESULT __stdcall put_HeightType ( /*[in]*/ enum WdFramesetSizeType prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ChildFramesetCount ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ChildFramesetItem ( /*[in]*/ long Index, /*[out,retval]*/ struct Frameset * * prop ) = 0; virtual HRESULT __stdcall get_FramesetBorderWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FramesetBorderWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FramesetBorderColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_FramesetBorderColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_FrameScrollbarType ( /*[out,retval]*/ enum WdScrollbarType * prop ) = 0; virtual HRESULT __stdcall put_FrameScrollbarType ( /*[in]*/ enum WdScrollbarType prop ) = 0; virtual HRESULT __stdcall get_FrameResizable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FrameResizable ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FrameName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FrameName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FrameDisplayBorders ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FrameDisplayBorders ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FrameDefaultURL ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FrameDefaultURL ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FrameLinkToFile ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FrameLinkToFile ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall AddNewFrame ( /*[in]*/ enum WdFramesetNewFrameLocation Where, /*[out,retval]*/ struct Frameset * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("000209e3-0000-0000-c000-000000000046")) WordDefaultWebOptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_OptimizeForBrowser ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OptimizeForBrowser ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BrowserLevel ( /*[out,retval]*/ enum WdBrowserLevel * prop ) = 0; virtual HRESULT __stdcall put_BrowserLevel ( /*[in]*/ enum WdBrowserLevel prop ) = 0; virtual HRESULT __stdcall get_RelyOnCSS ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RelyOnCSS ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OrganizeInFolder ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OrganizeInFolder ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UpdateLinksOnSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateLinksOnSave ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseLongFileNames ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseLongFileNames ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CheckIfOfficeIsHTMLEditor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckIfOfficeIsHTMLEditor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CheckIfWordIsDefaultHTMLEditor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckIfWordIsDefaultHTMLEditor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RelyOnVML ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RelyOnVML ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowPNG ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowPNG ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ScreenSize ( /*[out,retval]*/ enum Office::MsoScreenSize * prop ) = 0; virtual HRESULT __stdcall put_ScreenSize ( /*[in]*/ enum Office::MsoScreenSize prop ) = 0; virtual HRESULT __stdcall get_PixelsPerInch ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PixelsPerInch ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Encoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall put_Encoding ( /*[in]*/ enum Office::MsoEncoding prop ) = 0; virtual HRESULT __stdcall get_AlwaysSaveInDefaultEncoding ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlwaysSaveInDefaultEncoding ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Fonts ( /*[out,retval]*/ struct Office::WebPageFonts * * prop ) = 0; virtual HRESULT __stdcall get_FolderSuffix ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_TargetBrowser ( /*[out,retval]*/ enum Office::MsoTargetBrowser * prop ) = 0; virtual HRESULT __stdcall put_TargetBrowser ( /*[in]*/ enum Office::MsoTargetBrowser prop ) = 0; virtual HRESULT __stdcall get_SaveNewWebPagesAsWebArchives ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SaveNewWebPagesAsWebArchives ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("000209e4-0000-0000-c000-000000000046")) WordWebOptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_OptimizeForBrowser ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OptimizeForBrowser ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BrowserLevel ( /*[out,retval]*/ enum WdBrowserLevel * prop ) = 0; virtual HRESULT __stdcall put_BrowserLevel ( /*[in]*/ enum WdBrowserLevel prop ) = 0; virtual HRESULT __stdcall get_RelyOnCSS ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RelyOnCSS ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OrganizeInFolder ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OrganizeInFolder ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseLongFileNames ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseLongFileNames ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RelyOnVML ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RelyOnVML ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowPNG ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowPNG ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ScreenSize ( /*[out,retval]*/ enum Office::MsoScreenSize * prop ) = 0; virtual HRESULT __stdcall put_ScreenSize ( /*[in]*/ enum Office::MsoScreenSize prop ) = 0; virtual HRESULT __stdcall get_PixelsPerInch ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PixelsPerInch ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Encoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall put_Encoding ( /*[in]*/ enum Office::MsoEncoding prop ) = 0; virtual HRESULT __stdcall get_FolderSuffix ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall UseDefaultFolderSuffix ( ) = 0; virtual HRESULT __stdcall get_TargetBrowser ( /*[out,retval]*/ enum Office::MsoTargetBrowser * prop ) = 0; virtual HRESULT __stdcall put_TargetBrowser ( /*[in]*/ enum Office::MsoTargetBrowser prop ) = 0; }; struct __declspec(uuid("000209e1-0000-0000-c000-000000000046")) OtherCorrectionsException : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("000209df-0000-0000-c000-000000000046")) OtherCorrectionsExceptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct OtherCorrectionsException * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct OtherCorrectionsException * * prop ) = 0; }; struct __declspec(uuid("000209e6-0000-0000-c000-000000000046")) EmailSignatureEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("b923fde0-f08c-11d3-91b0-00105a0a19fd")) CustomProperty : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("b923fde1-f08c-11d3-91b0-00105a0a19fd")) CustomProperties : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct CustomProperty * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ BSTR Value, /*[out,retval]*/ struct CustomProperty * * prop ) = 0; }; struct __declspec(uuid("5d311669-ea51-11d3-87cc-00105aa31a34")) MappedDataField : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_DataFieldName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_DataFieldIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DataFieldIndex ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("1498f56d-ed33-41f9-b37b-ef30e50b08ac")) ConditionalStyle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_BottomPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BottomPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TopPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; }; struct __declspec(uuid("bea85a24-d7da-4f3d-b58c-ed90fb01d615")) FootnoteOptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[out,retval]*/ enum WdFootnoteLocation * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ enum WdFootnoteLocation prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdNoteNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdNoteNumberStyle prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NumberingRule ( /*[out,retval]*/ enum WdNumberingRule * prop ) = 0; virtual HRESULT __stdcall put_NumberingRule ( /*[in]*/ enum WdNumberingRule prop ) = 0; virtual HRESULT __stdcall get_LayoutColumns ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LayoutColumns ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("bf043168-f4de-4e7c-b206-741a8b3ef71a")) EndnoteOptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[out,retval]*/ enum WdEndnoteLocation * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ enum WdEndnoteLocation prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdNoteNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdNoteNumberStyle prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NumberingRule ( /*[out,retval]*/ enum WdNumberingRule * prop ) = 0; virtual HRESULT __stdcall put_NumberingRule ( /*[in]*/ enum WdNumberingRule prop ) = 0; }; struct __declspec(uuid("47cef4ae-dc32-4220-8aa5-19ccc0e6633a")) Reviewer : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("12dcdc9a-5418-48a3-bbe6-eb57bae275e8")) Reviewers : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Reviewer * * prop ) = 0; }; struct __declspec(uuid("b9f1a4e2-0d0a-43b7-8495-139e7acbd840")) TaskPane : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020a00-0000-0000-c000-000000000046")) ApplicationEvents3 : IDispatch {}; enum __declspec(uuid("71dd90c6-1bc0-3963-89f6-cb8af3f73610")) WdDisableFeaturesIntroducedAfter { wd70 = 0, wd70FE = 1, wd80 = 2 }; enum __declspec(uuid("a1a8cfc6-7d77-3ca4-98ef-a456d50b540d")) WdWrapTypeMerged { wdWrapMergeInline = 0, wdWrapMergeSquare = 1, wdWrapMergeTight = 2, wdWrapMergeBehind = 3, wdWrapMergeFront = 4, wdWrapMergeThrough = 5, wdWrapMergeTopBottom = 6 }; enum __declspec(uuid("cd2c303a-f5bb-3414-a740-57fb0618169a")) WdRecoveryType { wdPasteDefault = 0, wdSingleCellText = 5, wdSingleCellTable = 6, wdListContinueNumbering = 7, wdListRestartNumbering = 8, wdTableInsertAsRows = 11, wdTableAppendTable = 10, wdTableOriginalFormatting = 12, wdChartPicture = 13, wdChart = 14, wdChartLinked = 15, wdFormatOriginalFormatting = 16, wdFormatSurroundingFormattingWithEmphasis = 20, wdFormatPlainText = 22, wdTableOverwriteCells = 23, wdListCombineWithExistingList = 24, wdListDontMerge = 25, wdUseDestinationStylesRecovery = 19 }; enum __declspec(uuid("2c1156b5-27d4-329b-b946-c3c66207ae75")) WdLineEndingType { wdCRLF = 0, wdCROnly = 1, wdLFOnly = 2, wdLFCR = 3, wdLSPS = 4 }; enum __declspec(uuid("238432dc-d657-37e7-886e-5a155e5ff117")) WdStyleSheetLinkType { wdStyleSheetLinkTypeLinked = 0, wdStyleSheetLinkTypeImported = 1 }; enum __declspec(uuid("a51000b6-7b41-3e7a-813e-db7be56c71b8")) WdStyleSheetPrecedence { wdStyleSheetPrecedenceHigher = -1, wdStyleSheetPrecedenceLower = -2, wdStyleSheetPrecedenceHighest = 1, wdStyleSheetPrecedenceLowest = 0 }; struct __declspec(uuid("000209ef-0000-0000-c000-000000000046")) StyleSheet : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_FullName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdStyleSheetLinkType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdStyleSheetLinkType prop ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Move ( /*[in]*/ enum WdStyleSheetPrecedence Precedence ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("07b7cc7e-e66c-11d3-9454-00105aa31a08")) StyleSheets : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct StyleSheet * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR FileName, /*[in]*/ enum WdStyleSheetLinkType LinkType, /*[in]*/ BSTR Title, /*[in]*/ enum WdStyleSheetPrecedence Precedence, /*[out,retval]*/ struct StyleSheet * * prop ) = 0; }; enum __declspec(uuid("35793b96-e562-3051-ab25-0afcbcc95492")) WdEmailHTMLFidelity { wdEmailHTMLFidelityLow = 1, wdEmailHTMLFidelityMedium = 2, wdEmailHTMLFidelityHigh = 3 }; enum __declspec(uuid("e8606de9-00f1-3086-ba72-ccde4f6d93e2")) WdMailMergeMailFormat { wdMailFormatPlainText = 0, wdMailFormatHTML = 1 }; enum __declspec(uuid("0785e3d2-6965-3dd2-a870-81bba8a8547f")) WdMappedDataFields { wdUniqueIdentifier = 1, wdCourtesyTitle = 2, wdFirstName = 3, wdMiddleName = 4, wdLastName = 5, wdSuffix = 6, wdNickname = 7, wdJobTitle = 8, wdCompany = 9, wdAddress1 = 10, wdAddress2 = 11, wdCity = 12, wdState = 13, wdPostalCode = 14, wdCountryRegion = 15, wdBusinessPhone = 16, wdBusinessFax = 17, wdHomePhone = 18, wdHomeFax = 19, wdEmailAddress = 20, wdWebPageURL = 21, wdSpouseCourtesyTitle = 22, wdSpouseFirstName = 23, wdSpouseMiddleName = 24, wdSpouseLastName = 25, wdSpouseNickname = 26, wdRubyFirstName = 27, wdRubyLastName = 28, wdAddress3 = 29, wdDepartment = 30 }; struct __declspec(uuid("799a6814-ea41-11d3-87cc-00105aa31a34")) MappedDataFields : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdMappedDataFields Index, /*[out,retval]*/ struct MappedDataField * * prop ) = 0; }; struct __declspec(uuid("0002091d-0000-0000-c000-000000000046")) MailMergeDataSource : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_HeaderSourceName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdMailMergeDataSource * prop ) = 0; virtual HRESULT __stdcall get_HeaderSourceType ( /*[out,retval]*/ enum WdMailMergeDataSource * prop ) = 0; virtual HRESULT __stdcall get_ConnectString ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_QueryString ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_QueryString ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ActiveRecord ( /*[out,retval]*/ enum WdMailMergeActiveRecord * prop ) = 0; virtual HRESULT __stdcall put_ActiveRecord ( /*[in]*/ enum WdMailMergeActiveRecord prop ) = 0; virtual HRESULT __stdcall get_FirstRecord ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_FirstRecord ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LastRecord ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LastRecord ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_FieldNames ( /*[out,retval]*/ struct MailMergeFieldNames * * prop ) = 0; virtual HRESULT __stdcall get_DataFields ( /*[out,retval]*/ struct MailMergeDataFields * * prop ) = 0; virtual HRESULT __stdcall FindRecord2000 ( /*[in]*/ BSTR FindText, /*[in]*/ BSTR Field, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_RecordCount ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Included ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Included ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_InvalidAddress ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InvalidAddress ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_InvalidComments ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_InvalidComments ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MappedDataFields ( /*[out,retval]*/ struct MappedDataFields * * prop ) = 0; virtual HRESULT __stdcall get_TableName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall FindRecord ( /*[in]*/ BSTR FindText, /*[in]*/ VARIANT * Field, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SetAllIncludedFlags ( /*[in]*/ VARIANT_BOOL Included ) = 0; virtual HRESULT __stdcall SetAllErrorFlags ( /*[in]*/ VARIANT_BOOL Invalid, /*[in]*/ BSTR InvalidComment ) = 0; virtual HRESULT __stdcall Close ( ) = 0; }; enum __declspec(uuid("1d415254-6d7e-315c-86cc-90a641a57703")) WdConditionCode { wdFirstRow = 0, wdLastRow = 1, wdOddRowBanding = 2, wdEvenRowBanding = 3, wdFirstColumn = 4, wdLastColumn = 5, wdOddColumnBanding = 6, wdEvenColumnBanding = 7, wdNECell = 8, wdNWCell = 9, wdSECell = 10, wdSWCell = 11 }; struct __declspec(uuid("b7564e97-0519-4c68-b400-3803e7c63242")) TableStyle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AllowPageBreaks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowPageBreaks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_BottomPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BottomPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TopPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdRowAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdRowAlignment prop ) = 0; virtual HRESULT __stdcall get_Spacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Spacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall Condition ( /*[in]*/ enum WdConditionCode ConditionCode, /*[out,retval]*/ struct ConditionalStyle * * prop ) = 0; virtual HRESULT __stdcall get_TableDirection ( /*[out,retval]*/ enum WdTableDirection * prop ) = 0; virtual HRESULT __stdcall put_TableDirection ( /*[in]*/ enum WdTableDirection prop ) = 0; virtual HRESULT __stdcall get_AllowBreakAcrossPage ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllowBreakAcrossPage ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_RowStripe ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_RowStripe ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ColumnStripe ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ColumnStripe ( /*[in]*/ long prop ) = 0; }; enum __declspec(uuid("86a89091-d6fc-3a6f-a172-7776c718e362")) WdCompareTarget { wdCompareTargetSelected = 0, wdCompareTargetCurrent = 1, wdCompareTargetNew = 2 }; enum __declspec(uuid("577f8b82-4d9c-3461-9045-c379319a9185")) WdMergeTarget { wdMergeTargetSelected = 0, wdMergeTargetCurrent = 1, wdMergeTargetNew = 2 }; enum __declspec(uuid("1ccee46e-16cc-3685-80a3-b19c6006398c")) WdUseFormattingFrom { wdFormattingFromCurrent = 0, wdFormattingFromSelected = 1, wdFormattingFromPrompt = 2 }; enum __declspec(uuid("42ce0331-0571-3322-aeb3-2309b4794847")) WdRevisionsView { wdRevisionsViewFinal = 0, wdRevisionsViewOriginal = 1 }; enum __declspec(uuid("9c68240f-079d-3fb0-ada8-09d8f318b022")) WdRevisionsMode { wdBalloonRevisions = 0, wdInLineRevisions = 1, wdMixedRevisions = 2 }; enum __declspec(uuid("f9ac6caa-eaa0-3a0a-a87e-1cc2a60aa19f")) WdRevisionsBalloonWidthType { wdBalloonWidthPercent = 0, wdBalloonWidthPoints = 1 }; enum __declspec(uuid("6bf1f6c4-9d73-3bf1-a9af-16e3ba44d471")) WdRevisionsBalloonPrintOrientation { wdBalloonPrintOrientationAuto = 0, wdBalloonPrintOrientationPreserve = 1, wdBalloonPrintOrientationForceLandscape = 2 }; enum __declspec(uuid("04b3c697-9f96-361c-a490-1d381c325429")) WdRevisionsBalloonMargin { wdLeftMargin = 0, wdRightMargin = 1 }; enum __declspec(uuid("a92a72d9-6d30-3581-b297-64a4732a6bd3")) WdTaskPanes { wdTaskPaneFormatting = 0, wdTaskPaneRevealFormatting = 1, wdTaskPaneMailMerge = 2, wdTaskPaneTranslate = 3, wdTaskPaneSearch = 4, wdTaskPaneXMLStructure = 5, wdTaskPaneDocumentProtection = 6, wdTaskPaneDocumentActions = 7, wdTaskPaneSharedWorkspace = 8, wdTaskPaneHelp = 9, wdTaskPaneResearch = 10, wdTaskPaneFaxService = 11, wdTaskPaneXMLDocument = 12, wdTaskPaneDocumentUpdates = 13, wdTaskPaneSignature = 14, wdTaskPaneStyleInspector = 15, wdTaskPaneDocumentManagement = 16, wdTaskPaneApplyStyles = 17, wdTaskPaneNav = 18, wdTaskPaneSelection = 19, wdTaskPaneProofing = 20, wdTaskPaneXMLMapping = 21, wdTaskPaneRevPaneFlex = 22, wdTaskPaneThesaurus = 23 }; struct __declspec(uuid("e6aaec05-e543-4085-ba92-9bf7d2474f5c")) TaskPanes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdTaskPanes Index, /*[out,retval]*/ struct TaskPane * * prop ) = 0; }; enum __declspec(uuid("7d94a0ad-e266-362e-b1a3-2a69d3dbd7d2")) WdShowFilter { wdShowFilterStylesAvailable = 0, wdShowFilterStylesInUse = 1, wdShowFilterStylesAll = 2, wdShowFilterFormattingInUse = 3, wdShowFilterFormattingAvailable = 4, wdShowFilterFormattingRecommended = 5 }; enum __declspec(uuid("1316b834-201f-39aa-b4c8-7f63a3431a33")) WdMergeSubType { wdMergeSubTypeOther = 0, wdMergeSubTypeAccess = 1, wdMergeSubTypeOAL = 2, wdMergeSubTypeOLEDBWord = 3, wdMergeSubTypeWorks = 4, wdMergeSubTypeOLEDBText = 5, wdMergeSubTypeOutlook = 6, wdMergeSubTypeWord = 7, wdMergeSubTypeWord2000 = 8 }; enum __declspec(uuid("f59bb1c3-b1ca-33c4-aa64-f411dd654e19")) WdDocumentDirection { wdLeftToRight = 0, wdRightToLeft = 1 }; enum __declspec(uuid("b47743d0-b1ec-3bfe-944d-183b51d50fb5")) WdLanguageID2000 { wdChineseHongKong = 3076, wdChineseMacao = 5124, wdEnglishTrinidad = 11273 }; struct __declspec(uuid("15ebe471-0182-4cce-98d0-b6614d1c32a1")) SmartTagRecognizer : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_FullName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Enabled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Enabled ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ProgID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("f2b60a10-ded5-46fb-a914-3c6f4ebb6451")) SmartTagRecognizers : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct SmartTagRecognizer * * prop ) = 0; virtual HRESULT __stdcall ReloadRecognizers ( ) = 0; }; struct __declspec(uuid("fe0971f0-5e60-4985-bcda-95cb0b8e0308")) XMLSchemaReference : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_NamespaceURI ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Reload ( ) = 0; }; struct __declspec(uuid("356b06ec-4908-42a4-81fc-4b5a51f3483b")) XMLSchemaReferences : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AutomaticValidation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutomaticValidation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowSaveAsXMLWithoutValidation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowSaveAsXMLWithoutValidation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideValidationErrors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideValidationErrors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnoreMixedContent ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnoreMixedContent ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowPlaceholderText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowPlaceholderText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct XMLSchemaReference * * prop ) = 0; virtual HRESULT __stdcall Validate ( ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * NamespaceURI, /*[in]*/ VARIANT * Alias, /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT_BOOL InstallForAllUsers, /*[out,retval]*/ struct XMLSchemaReference * * prop ) = 0; }; struct __declspec(uuid("e3124493-7d6a-410f-9a48-cc822c033cec")) XSLTransform : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Alias ( /*[in]*/ VARIANT_BOOL AllUsers, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Alias ( /*[in]*/ VARIANT_BOOL AllUsers, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[in]*/ VARIANT_BOOL AllUsers, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ VARIANT_BOOL AllUsers, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("c774f5ea-a539-4284-a1be-30aec052d899")) XSLTransforms : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct XSLTransform * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Location, /*[in]*/ VARIANT * Alias, /*[in]*/ VARIANT_BOOL InstallForAllUsers, /*[out,retval]*/ struct XSLTransform * * prop ) = 0; }; struct __declspec(uuid("b140a023-4850-4da6-bc5f-cc459c4507bc")) XMLNamespace : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_URI ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[in]*/ VARIANT_BOOL AllUsers, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ VARIANT_BOOL AllUsers, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Alias ( /*[in]*/ VARIANT_BOOL AllUsers, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Alias ( /*[in]*/ VARIANT_BOOL AllUsers, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_XSLTransforms ( /*[out,retval]*/ struct XSLTransforms * * prop ) = 0; virtual HRESULT __stdcall get_DefaultTransform ( /*[in]*/ VARIANT_BOOL AllUsers, /*[out,retval]*/ struct XSLTransform * * prop ) = 0; virtual HRESULT __stdcall put_DefaultTransform ( /*[in]*/ VARIANT_BOOL AllUsers, /*[in]*/ struct XSLTransform * prop ) = 0; virtual HRESULT __stdcall AttachToDocument ( /*[in]*/ VARIANT * Document ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("656bbed7-e82d-4b0a-8f97-ec742ba11ffa")) XMLNamespaces : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct XMLNamespace * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Path, /*[in]*/ VARIANT * NamespaceURI, /*[in]*/ VARIANT * Alias, /*[in]*/ VARIANT_BOOL InstallForAllUsers, /*[out,retval]*/ struct XMLNamespace * * prop ) = 0; virtual HRESULT __stdcall InstallManifest ( /*[in]*/ BSTR Path, /*[in]*/ VARIANT_BOOL InstallForAllUsers ) = 0; }; struct __declspec(uuid("00020a01-0000-0000-c000-000000000046")) ApplicationEvents4 : IDispatch {}; struct __declspec(uuid("00020a02-0000-0000-c000-000000000046")) DocumentEvents2 : IDispatch {}; enum __declspec(uuid("2c21a8cf-ab68-3f7e-92f9-b745177df535")) WdRectangleType { wdTextRectangle = 0, wdShapeRectangle = 1, wdMarkupRectangle = 2, wdMarkupRectangleButton = 3, wdPageBorderRectangle = 4, wdLineBetweenColumnRectangle = 5, wdSelection = 6, wdSystem = 7, wdMarkupRectangleArea = 8, wdReadingModeNavigation = 9, wdMarkupRectangleMoveMatch = 10, wdReadingModePanningArea = 11, wdMailNavArea = 12, wdDocumentControlRectangle = 13 }; enum __declspec(uuid("3d416af9-aa8f-3864-89b8-6c2082744f95")) WdLineType { wdTextLine = 0, wdTableRow = 1 }; enum __declspec(uuid("09f8044d-e368-3787-a29e-3a82026ce73f")) WdXMLNodeType { wdXMLNodeElement = 1, wdXMLNodeAttribute = 2 }; enum __declspec(uuid("2921ec67-f28a-3ed8-932e-8b5512310330")) WdXMLSelectionChangeReason { wdXMLSelectionChangeReasonMove = 0, wdXMLSelectionChangeReasonInsert = 1, wdXMLSelectionChangeReasonDelete = 2 }; enum __declspec(uuid("b1a148d3-3d83-38e9-a278-1631d204f8b3")) WdXMLNodeLevel { wdXMLNodeLevelInline = 0, wdXMLNodeLevelParagraph = 1, wdXMLNodeLevelRow = 2, wdXMLNodeLevelCell = 3 }; enum __declspec(uuid("5be83446-698c-3e28-a887-023c64e9dc57")) WdSmartTagControlType { wdControlSmartTag = 1, wdControlLink = 2, wdControlHelp = 3, wdControlHelpURL = 4, wdControlSeparator = 5, wdControlButton = 6, wdControlLabel = 7, wdControlImage = 8, wdControlCheckbox = 9, wdControlTextbox = 10, wdControlListbox = 11, wdControlCombo = 12, wdControlActiveX = 13, wdControlDocumentFragment = 14, wdControlDocumentFragmentURL = 15, wdControlRadioGroup = 16 }; struct __declspec(uuid("dfb6aa6c-1068-420f-969d-01280fcc1630")) SmartTagAction : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Execute ( ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdSmartTagControlType * prop ) = 0; virtual HRESULT __stdcall get_PresentInPane ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ExpandHelp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ExpandHelp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CheckboxState ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckboxState ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TextboxText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_TextboxText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ListSelection ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ListSelection ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RadioGroupSelection ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_RadioGroupSelection ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ExpandDocumentFragment ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ExpandDocumentFragment ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ActiveXControl ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("cde12cd8-767b-4757-8a31-13029a086305")) SmartTagActions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct SmartTagAction * * prop ) = 0; virtual HRESULT __stdcall ReloadActions ( ) = 0; }; struct __declspec(uuid("5e9a888c-e5dc-4dcb-8308-3c91fb61e6f4")) SmartTagType : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SmartTagActions ( /*[out,retval]*/ struct SmartTagActions * * prop ) = 0; virtual HRESULT __stdcall get_SmartTagRecognizers ( /*[out,retval]*/ struct SmartTagRecognizers * * prop ) = 0; virtual HRESULT __stdcall get_FriendlyName ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("db8e3072-e106-4453-8e7c-53056f1d30dc")) SmartTagTypes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct SmartTagType * * prop ) = 0; virtual HRESULT __stdcall ReloadAll ( ) = 0; }; enum __declspec(uuid("3bd9b6cc-d6cf-34c9-a032-b9131b8081d4")) WdEditorType { wdEditorEveryone = -1, wdEditorOwners = -4, wdEditorEditors = -5, wdEditorCurrent = -6 }; enum __declspec(uuid("7330a015-09e0-3785-8822-6b47d821fa7e")) WdXMLValidationStatus { wdXMLValidationStatusOK = 0, wdXMLValidationStatusCustom = -1072898048 }; struct __declspec(uuid("4a6ae865-199d-4ea3-9f6b-125bd9c40edf")) Source : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Tag ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Field ( /*[in]*/ BSTR Name, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Field ( /*[in]*/ BSTR Name, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_XML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Cited ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("fa02a26b-6550-45c5-b6f0-80e757cd3482")) Sources : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Source * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Data ) = 0; }; struct __declspec(uuid("3834f60f-ee8c-455d-a441-d766675d6d3b")) Bibliography : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Sources ( /*[out,retval]*/ struct Sources * * prop ) = 0; virtual HRESULT __stdcall get_BibliographyStyle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_BibliographyStyle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall GenerateUniqueTag ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("d8779f01-4869-4403-b334-d60c5f9c9175")) OMathAutoCorrectEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("18cd5ec8-8b7b-42c8-992a-2a407468642c")) OMathAutoCorrectEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct OMathAutoCorrectEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ BSTR Value, /*[out,retval]*/ struct OMathAutoCorrectEntry * * prop ) = 0; }; struct __declspec(uuid("5c04bd93-2f3f-4668-918d-9738ec901039")) OMathRecognizedFunction : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("44fee887-6600-41ab-95a5-de33c605116c")) OMathRecognizedFunctions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct OMathRecognizedFunction * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct OMathRecognizedFunction * * prop ) = 0; }; struct __declspec(uuid("6f9d1f68-06f7-49ef-8902-185e54eb5e87")) OMathAutoCorrect : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ReplaceText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReplaceText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseOutsideOMath ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseOutsideOMath ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Entries ( /*[out,retval]*/ struct OMathAutoCorrectEntries * * prop ) = 0; virtual HRESULT __stdcall get_Functions ( /*[out,retval]*/ struct OMathRecognizedFunctions * * prop ) = 0; }; struct __declspec(uuid("0c1fabe7-f737-406f-9ca3-b07661f9d1a2")) XMLMapping : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_IsMapped ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_CustomXMLPart ( /*[out,retval]*/ struct Office::_CustomXMLPart * * prop ) = 0; virtual HRESULT __stdcall get_CustomXMLNode ( /*[out,retval]*/ struct Office::CustomXMLNode * * prop ) = 0; virtual HRESULT __stdcall SetMapping ( /*[in]*/ BSTR XPath, /*[in]*/ BSTR PrefixMapping, /*[in]*/ struct Office::_CustomXMLPart * Source, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SetMappingByNode ( /*[in]*/ struct Office::CustomXMLNode * Node, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_XPath ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_PrefixMappings ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("0c6fa8ca-e65f-4fc7-ab8f-20729eecbb14")) ContentControlListEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Index ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall MoveUp ( ) = 0; virtual HRESULT __stdcall MoveDown ( ) = 0; virtual HRESULT __stdcall Select ( ) = 0; }; struct __declspec(uuid("54f46dc4-f6a6-48cc-bd66-46c1ddeadd22")) ContentControlListEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Clear ( ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct ContentControlListEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Text, /*[in]*/ BSTR Value, /*[in]*/ long Index, /*[out,retval]*/ struct ContentControlListEntry * * prop ) = 0; }; struct __declspec(uuid("e6aaec05-e543-4085-ba92-9bf7d2474f51")) Research : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Query ( /*[in]*/ BSTR ServiceID, /*[in]*/ BSTR QueryString, /*[in]*/ enum WdLanguageID QueryLanguage, /*[in]*/ VARIANT_BOOL UseSelection, /*[in]*/ VARIANT_BOOL LaunchQuery, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall SetLanguagePair ( /*[in]*/ enum WdLanguageID LanguageFrom, /*[in]*/ enum WdLanguageID LanguageTo, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall IsResearchService ( /*[in]*/ BSTR ServiceID, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_FavoriteService ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FavoriteService ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("d040daf9-6ce4-4be8-839d-f4538a4301cf")) SoftEdgeFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoSoftEdgeType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum Office::MsoSoftEdgeType prop ) = 0; virtual HRESULT __stdcall get_Radius ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Radius ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("f01943ff-1985-445e-8602-8fb8f39cca75")) ReflectionFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoReflectionType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum Office::MsoReflectionType prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Transparency ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Transparency ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Size ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Size ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Offset ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Offset ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Blur ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Blur ( /*[in]*/ float prop ) = 0; }; enum __declspec(uuid("aefc2198-0064-3cd7-9c78-eb0f67229f4a")) WdStyleSort { wdStyleSortByName = 0, wdStyleSortRecommended = 1, wdStyleSortByFont = 2, wdStyleSortByBasedOn = 3, wdStyleSortByType = 4 }; enum __declspec(uuid("f52dee7f-8295-3a23-9db3-37609770b6b2")) WdRemoveDocInfoType { wdRDIComments = 1, wdRDIRevisions = 2, wdRDIVersions = 3, wdRDIRemovePersonalInformation = 4, wdRDIEmailHeader = 5, wdRDIRoutingSlip = 6, wdRDISendForReview = 7, wdRDIDocumentProperties = 8, wdRDITemplate = 9, wdRDIDocumentWorkspace = 10, wdRDIInkAnnotations = 11, wdRDIDocumentServerProperties = 14, wdRDIDocumentManagementPolicy = 15, wdRDIContentType = 16, wdRDITaskpaneWebExtensions = 17, wdRDIAll = 99 }; enum __declspec(uuid("33dafb9d-0d41-3fc4-9553-2a17994d3e14")) WdCheckInVersionType { wdCheckInMinorVersion = 0, wdCheckInMajorVersion = 1, wdCheckInOverwriteVersion = 2 }; enum __declspec(uuid("f3ae6a1b-bb9f-3258-aab9-87d6baf4c3a3")) WdMoveToTextMark { wdMoveToTextMarkNone = 0, wdMoveToTextMarkBold = 1, wdMoveToTextMarkItalic = 2, wdMoveToTextMarkUnderline = 3, wdMoveToTextMarkDoubleUnderline = 4, wdMoveToTextMarkColorOnly = 5, wdMoveToTextMarkStrikeThrough = 6, wdMoveToTextMarkDoubleStrikeThrough = 7 }; enum __declspec(uuid("af2fc7db-2e3e-3bf2-b1d0-6426945b15e0")) WdMoveFromTextMark { wdMoveFromTextMarkHidden = 0, wdMoveFromTextMarkDoubleStrikeThrough = 1, wdMoveFromTextMarkStrikeThrough = 2, wdMoveFromTextMarkCaret = 3, wdMoveFromTextMarkPound = 4, wdMoveFromTextMarkNone = 5, wdMoveFromTextMarkBold = 6, wdMoveFromTextMarkItalic = 7, wdMoveFromTextMarkUnderline = 8, wdMoveFromTextMarkDoubleUnderline = 9, wdMoveFromTextMarkColorOnly = 10 }; enum __declspec(uuid("74779721-3c00-363d-bed4-b0af3595eb05")) WdOMathFunctionType { wdOMathFunctionAcc = 1, wdOMathFunctionBar = 2, wdOMathFunctionBox = 3, wdOMathFunctionBorderBox = 4, wdOMathFunctionDelim = 5, wdOMathFunctionEqArray = 6, wdOMathFunctionFrac = 7, wdOMathFunctionFunc = 8, wdOMathFunctionGroupChar = 9, wdOMathFunctionLimLow = 10, wdOMathFunctionLimUpp = 11, wdOMathFunctionMat = 12, wdOMathFunctionNary = 13, wdOMathFunctionPhantom = 14, wdOMathFunctionScrPre = 15, wdOMathFunctionRad = 16, wdOMathFunctionScrSub = 17, wdOMathFunctionScrSubSup = 18, wdOMathFunctionScrSup = 19, wdOMathFunctionText = 20, wdOMathFunctionNormalText = 21, wdOMathFunctionLiteralText = 22 }; enum __declspec(uuid("afb1eeb5-369e-3c8d-bee1-0cff86414481")) WdOMathHorizAlignType { wdOMathHorizAlignCenter = 0, wdOMathHorizAlignLeft = 1, wdOMathHorizAlignRight = 2 }; enum __declspec(uuid("8180c4a6-20cc-3cd4-9de0-a1d1384513e5")) WdOMathVertAlignType { wdOMathVertAlignCenter = 0, wdOMathVertAlignTop = 1, wdOMathVertAlignBottom = 2 }; enum __declspec(uuid("2811b866-578b-37f2-b7fb-927dd993ab19")) WdOMathFracType { wdOMathFracBar = 0, wdOMathFracNoBar = 1, wdOMathFracSkw = 2, wdOMathFracLin = 3 }; enum __declspec(uuid("8dbaa8cb-e1d0-3531-ad9e-9e8f08e651ca")) WdOMathSpacingRule { wdOMathSpacingSingle = 0, wdOMathSpacing1pt5 = 1, wdOMathSpacingDouble = 2, wdOMathSpacingExactly = 3, wdOMathSpacingMultiple = 4 }; enum __declspec(uuid("63917a75-8674-34fc-a80b-988b0d019b25")) WdOMathType { wdOMathDisplay = 0, wdOMathInline = 1 }; enum __declspec(uuid("3f179dba-7622-3837-b18e-e295477260cc")) WdOMathShapeType { wdOMathShapeCentered = 0, wdOMathShapeMatch = 1 }; enum __declspec(uuid("c7e4ead4-16de-3902-9330-5475cf1039d7")) WdOMathJc { wdOMathJcCenterGroup = 1, wdOMathJcCenter = 2, wdOMathJcLeft = 3, wdOMathJcRight = 4, wdOMathJcInline = 7 }; enum __declspec(uuid("8105e2b5-53c4-31c9-9ebd-75706288b16a")) WdOMathBreakBin { wdOMathBreakBinBefore = 0, wdOMathBreakBinAfter = 1, wdOMathBreakBinRepeat = 2 }; enum __declspec(uuid("c9c18cc3-9da7-3869-9b10-283f57937f60")) WdOMathBreakSub { wdOMathBreakSubMinusMinus = 0, wdOMathBreakSubPlusMinus = 1, wdOMathBreakSubMinusPlus = 2 }; enum __declspec(uuid("1c4e96c0-3beb-37a7-8b5b-ed303f90f6ea")) WdReadingLayoutMargin { wdAutomaticMargin = 0, wdSuppressMargin = 1, wdFullMargin = 2 }; enum __declspec(uuid("d837e0a6-eb0e-3f7f-b8be-9c0f05401ccd")) WdContentControlType { wdContentControlRichText = 0, wdContentControlText = 1, wdContentControlPicture = 2, wdContentControlComboBox = 3, wdContentControlDropdownList = 4, wdContentControlBuildingBlockGallery = 5, wdContentControlDate = 6, wdContentControlGroup = 7, wdContentControlCheckBox = 8, wdContentControlRepeatingSection = 9 }; enum __declspec(uuid("020f399e-efc7-372f-a323-679c84caefce")) WdCompareDestination { wdCompareDestinationOriginal = 0, wdCompareDestinationRevised = 1, wdCompareDestinationNew = 2 }; enum __declspec(uuid("aaaf85a7-31af-3ee3-b5aa-99ecedeebaff")) WdGranularity { wdGranularityCharLevel = 0, wdGranularityWordLevel = 1 }; enum __declspec(uuid("56e5f138-cfe9-30d3-bc8d-6556d487360d")) WdMergeFormatFrom { wdMergeFormatFromOriginal = 0, wdMergeFormatFromRevised = 1, wdMergeFormatFromPrompt = 2 }; enum __declspec(uuid("57ab7683-4274-37c0-944c-6f14a1980b4d")) WdShowSourceDocuments { wdShowSourceDocumentsNone = 0, wdShowSourceDocumentsOriginal = 1, wdShowSourceDocumentsRevised = 2, wdShowSourceDocumentsBoth = 3 }; enum __declspec(uuid("a34c1a4a-9468-39dd-b46c-c3a6abd67dfb")) WdPasteOptions { wdKeepSourceFormatting = 0, wdMatchDestinationFormatting = 1, wdKeepTextOnly = 2, wdUseDestinationStyles = 3 }; enum __declspec(uuid("e1dba742-1e0e-3633-b1c2-168561c6f0b0")) WdBuildingBlockTypes { wdTypeQuickParts = 1, wdTypeCoverPage = 2, wdTypeEquations = 3, wdTypeFooters = 4, wdTypeHeaders = 5, wdTypePageNumber = 6, wdTypeTables = 7, wdTypeWatermarks = 8, wdTypeAutoText = 9, wdTypeTextBox = 10, wdTypePageNumberTop = 11, wdTypePageNumberBottom = 12, wdTypePageNumberPage = 13, wdTypeTableOfContents = 14, wdTypeCustomQuickParts = 15, wdTypeCustomCoverPage = 16, wdTypeCustomEquations = 17, wdTypeCustomFooters = 18, wdTypeCustomHeaders = 19, wdTypeCustomPageNumber = 20, wdTypeCustomTables = 21, wdTypeCustomWatermarks = 22, wdTypeCustomAutoText = 23, wdTypeCustomTextBox = 24, wdTypeCustomPageNumberTop = 25, wdTypeCustomPageNumberBottom = 26, wdTypeCustomPageNumberPage = 27, wdTypeCustomTableOfContents = 28, wdTypeCustom1 = 29, wdTypeCustom2 = 30, wdTypeCustom3 = 31, wdTypeCustom4 = 32, wdTypeCustom5 = 33, wdTypeBibliography = 34, wdTypeCustomBibliography = 35 }; enum __declspec(uuid("f789d0a8-3325-3e36-b6ce-87657a7f4e4e")) WdAlignmentTabRelative { wdMargin = 0, wdIndent = 1 }; enum __declspec(uuid("89a572cd-0865-35d2-b6ba-4d43b64e123e")) WdAlignmentTabAlignment { wdLeft = 0, wdCenter = 1, wdRight = 2 }; enum __declspec(uuid("347cde09-0ce2-3fbb-9bb8-7c9ecf5b750e")) WdCellColor { wdCellColorByAuthor = -1, wdCellColorNoHighlight = 0, wdCellColorPink = 1, wdCellColorLightBlue = 2, wdCellColorLightYellow = 3, wdCellColorLightPurple = 4, wdCellColorLightOrange = 5, wdCellColorLightGreen = 6, wdCellColorLightGray = 7 }; enum __declspec(uuid("d05eb81f-37a2-3f3e-ae25-a672c0d2d502")) WdTextboxTightWrap { wdTightNone = 0, wdTightAll = 1, wdTightFirstAndLastLines = 2, wdTightFirstLineOnly = 3, wdTightLastLineOnly = 4 }; struct __declspec(uuid("00020953-0000-0000-c000-000000000046")) _ParagraphFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Duplicate ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdParagraphAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdParagraphAlignment prop ) = 0; virtual HRESULT __stdcall get_KeepTogether ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepTogether ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_KeepWithNext ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepWithNext ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PageBreakBefore ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PageBreakBefore ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NoLineNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoLineNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineSpacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacingRule ( /*[out,retval]*/ enum WdLineSpacing * prop ) = 0; virtual HRESULT __stdcall put_LineSpacingRule ( /*[in]*/ enum WdLineSpacing prop ) = 0; virtual HRESULT __stdcall get_SpaceBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Hyphenation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Hyphenation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WidowControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WidowControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WordWrap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WordWrap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HangingPunctuation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HangingPunctuation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HalfWidthPunctuationOnTopOfLine ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HalfWidthPunctuationOnTopOfLine ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndAlpha ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndAlpha ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndDigit ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndDigit ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_BaseLineAlignment ( /*[out,retval]*/ enum WdBaselineAlignment * prop ) = 0; virtual HRESULT __stdcall put_BaseLineAlignment ( /*[in]*/ enum WdBaselineAlignment prop ) = 0; virtual HRESULT __stdcall get_AutoAdjustRightIndent ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AutoAdjustRightIndent ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DisableLineHeightGrid ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DisableLineHeightGrid ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TabStops ( /*[out,retval]*/ struct TabStops * * prop ) = 0; virtual HRESULT __stdcall put_TabStops ( /*[in]*/ struct TabStops * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_OutlineLevel ( /*[out,retval]*/ enum WdOutlineLevel * prop ) = 0; virtual HRESULT __stdcall put_OutlineLevel ( /*[in]*/ enum WdOutlineLevel prop ) = 0; virtual HRESULT __stdcall CloseUp ( ) = 0; virtual HRESULT __stdcall OpenUp ( ) = 0; virtual HRESULT __stdcall OpenOrCloseUp ( ) = 0; virtual HRESULT __stdcall TabHangingIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall TabIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall Space1 ( ) = 0; virtual HRESULT __stdcall Space15 ( ) = 0; virtual HRESULT __stdcall Space2 ( ) = 0; virtual HRESULT __stdcall IndentCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall IndentFirstLineCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall get_CharacterUnitRightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitRightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitLeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitLeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitFirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitFirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ enum WdReadingOrder * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ enum WdReadingOrder prop ) = 0; virtual HRESULT __stdcall get_SpaceBeforeAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceBeforeAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SpaceAfterAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfterAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MirrorIndents ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MirrorIndents ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TextboxTightWrap ( /*[out,retval]*/ enum WdTextboxTightWrap * prop ) = 0; virtual HRESULT __stdcall put_TextboxTightWrap ( /*[in]*/ enum WdTextboxTightWrap prop ) = 0; virtual HRESULT __stdcall get_CollapsedByDefault ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_CollapsedByDefault ( /*[in]*/ long prop ) = 0; }; enum __declspec(uuid("069470c7-2fc7-3561-8f3f-b4a4510d2a53")) WdShapePositionRelative { wdShapePositionRelativeNone = -999999 }; enum __declspec(uuid("a7f03adf-2249-3554-aba1-bde806ad5efe")) WdShapeSizeRelative { wdShapeSizeRelativeNone = -999999 }; enum __declspec(uuid("c7d9681c-4f5c-3840-bfce-c91510b56181")) WdRelativeHorizontalSize { wdRelativeHorizontalSizeMargin = 0, wdRelativeHorizontalSizePage = 1, wdRelativeHorizontalSizeLeftMarginArea = 2, wdRelativeHorizontalSizeRightMarginArea = 3, wdRelativeHorizontalSizeInnerMarginArea = 4, wdRelativeHorizontalSizeOuterMarginArea = 5 }; enum __declspec(uuid("a478b3f3-3885-3c52-b12f-aaf22e58d380")) WdRelativeVerticalSize { wdRelativeVerticalSizeMargin = 0, wdRelativeVerticalSizePage = 1, wdRelativeVerticalSizeTopMarginArea = 2, wdRelativeVerticalSizeBottomMarginArea = 3, wdRelativeVerticalSizeInnerMarginArea = 4, wdRelativeVerticalSizeOuterMarginArea = 5 }; enum __declspec(uuid("803e4880-eeca-3830-9186-32b36fa120ab")) WdThemeColorIndex { wdNotThemeColor = -1, wdThemeColorMainDark1 = 0, wdThemeColorMainLight1 = 1, wdThemeColorMainDark2 = 2, wdThemeColorMainLight2 = 3, wdThemeColorAccent1 = 4, wdThemeColorAccent2 = 5, wdThemeColorAccent3 = 6, wdThemeColorAccent4 = 7, wdThemeColorAccent5 = 8, wdThemeColorAccent6 = 9, wdThemeColorHyperlink = 10, wdThemeColorHyperlinkFollowed = 11, wdThemeColorBackground1 = 12, wdThemeColorText1 = 13, wdThemeColorBackground2 = 14, wdThemeColorText2 = 15 }; struct __declspec(uuid("000209c6-0000-0000-c000-000000000046")) ColorFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_RGB ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_RGB ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SchemeColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SchemeColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoColorType * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TintAndShade ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TintAndShade ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_OverPrint ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_OverPrint ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Ink ( /*[in]*/ long Index, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Ink ( /*[in]*/ long Index, /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Cyan ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Cyan ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Magenta ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Magenta ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Yellow ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Yellow ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Black ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Black ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall SetCMYK ( /*[in]*/ long Cyan, /*[in]*/ long Magenta, /*[in]*/ long Yellow, /*[in]*/ long Black ) = 0; virtual HRESULT __stdcall get_ObjectThemeColor ( /*[out,retval]*/ enum WdThemeColorIndex * prop ) = 0; virtual HRESULT __stdcall put_ObjectThemeColor ( /*[in]*/ enum WdThemeColorIndex prop ) = 0; virtual HRESULT __stdcall get_Brightness ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Brightness ( /*[in]*/ float prop ) = 0; }; struct __declspec(uuid("000209c8-0000-0000-c000-000000000046")) FillFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_BackColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_ForeColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_GradientColorType ( /*[out,retval]*/ enum Office::MsoGradientColorType * prop ) = 0; virtual HRESULT __stdcall get_GradientDegree ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall get_GradientStyle ( /*[out,retval]*/ enum Office::MsoGradientStyle * prop ) = 0; virtual HRESULT __stdcall get_GradientVariant ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Pattern ( /*[out,retval]*/ enum Office::MsoPatternType * prop ) = 0; virtual HRESULT __stdcall get_PresetGradientType ( /*[out,retval]*/ enum Office::MsoPresetGradientType * prop ) = 0; virtual HRESULT __stdcall get_PresetTexture ( /*[out,retval]*/ enum Office::MsoPresetTexture * prop ) = 0; virtual HRESULT __stdcall get_TextureName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_TextureType ( /*[out,retval]*/ enum Office::MsoTextureType * prop ) = 0; virtual HRESULT __stdcall get_Transparency ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Transparency ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoFillType * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall Background ( ) = 0; virtual HRESULT __stdcall OneColorGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant, /*[in]*/ float Degree ) = 0; virtual HRESULT __stdcall Patterned ( /*[in]*/ enum Office::MsoPatternType Pattern ) = 0; virtual HRESULT __stdcall PresetGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant, /*[in]*/ enum Office::MsoPresetGradientType PresetGradientType ) = 0; virtual HRESULT __stdcall PresetTextured ( /*[in]*/ enum Office::MsoPresetTexture PresetTexture ) = 0; virtual HRESULT __stdcall Solid ( ) = 0; virtual HRESULT __stdcall TwoColorGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant ) = 0; virtual HRESULT __stdcall UserPicture ( /*[in]*/ BSTR PictureFile ) = 0; virtual HRESULT __stdcall UserTextured ( /*[in]*/ BSTR TextureFile ) = 0; virtual HRESULT __stdcall get_GradientStops ( /*[out,retval]*/ struct Office::GradientStops * * prop ) = 0; virtual HRESULT __stdcall get_TextureOffsetX ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TextureOffsetX ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TextureOffsetY ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TextureOffsetY ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TextureAlignment ( /*[out,retval]*/ enum Office::MsoTextureAlignment * prop ) = 0; virtual HRESULT __stdcall put_TextureAlignment ( /*[in]*/ enum Office::MsoTextureAlignment prop ) = 0; virtual HRESULT __stdcall get_TextureHorizontalScale ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TextureHorizontalScale ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TextureVerticalScale ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TextureVerticalScale ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TextureTile ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_TextureTile ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_RotateWithObject ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_RotateWithObject ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_PictureEffects ( /*[out,retval]*/ struct Office::PictureEffects * * prop ) = 0; virtual HRESULT __stdcall get_GradientAngle ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GradientAngle ( /*[in]*/ float prop ) = 0; }; struct __declspec(uuid("000209ca-0000-0000-c000-000000000046")) LineFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_BackColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_BeginArrowheadLength ( /*[out,retval]*/ enum Office::MsoArrowheadLength * prop ) = 0; virtual HRESULT __stdcall put_BeginArrowheadLength ( /*[in]*/ enum Office::MsoArrowheadLength prop ) = 0; virtual HRESULT __stdcall get_BeginArrowheadStyle ( /*[out,retval]*/ enum Office::MsoArrowheadStyle * prop ) = 0; virtual HRESULT __stdcall put_BeginArrowheadStyle ( /*[in]*/ enum Office::MsoArrowheadStyle prop ) = 0; virtual HRESULT __stdcall get_BeginArrowheadWidth ( /*[out,retval]*/ enum Office::MsoArrowheadWidth * prop ) = 0; virtual HRESULT __stdcall put_BeginArrowheadWidth ( /*[in]*/ enum Office::MsoArrowheadWidth prop ) = 0; virtual HRESULT __stdcall get_DashStyle ( /*[out,retval]*/ enum Office::MsoLineDashStyle * prop ) = 0; virtual HRESULT __stdcall put_DashStyle ( /*[in]*/ enum Office::MsoLineDashStyle prop ) = 0; virtual HRESULT __stdcall get_EndArrowheadLength ( /*[out,retval]*/ enum Office::MsoArrowheadLength * prop ) = 0; virtual HRESULT __stdcall put_EndArrowheadLength ( /*[in]*/ enum Office::MsoArrowheadLength prop ) = 0; virtual HRESULT __stdcall get_EndArrowheadStyle ( /*[out,retval]*/ enum Office::MsoArrowheadStyle * prop ) = 0; virtual HRESULT __stdcall put_EndArrowheadStyle ( /*[in]*/ enum Office::MsoArrowheadStyle prop ) = 0; virtual HRESULT __stdcall get_EndArrowheadWidth ( /*[out,retval]*/ enum Office::MsoArrowheadWidth * prop ) = 0; virtual HRESULT __stdcall put_EndArrowheadWidth ( /*[in]*/ enum Office::MsoArrowheadWidth prop ) = 0; virtual HRESULT __stdcall get_ForeColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Pattern ( /*[out,retval]*/ enum Office::MsoPatternType * prop ) = 0; virtual HRESULT __stdcall put_Pattern ( /*[in]*/ enum Office::MsoPatternType prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ enum Office::MsoLineStyle * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ enum Office::MsoLineStyle prop ) = 0; virtual HRESULT __stdcall get_Transparency ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Transparency ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Weight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Weight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_InsetPen ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_InsetPen ( /*[in]*/ enum Office::MsoTriState prop ) = 0; }; struct __declspec(uuid("000209cc-0000-0000-c000-000000000046")) ShadowFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ForeColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Obscured ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Obscured ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_OffsetX ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_OffsetX ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_OffsetY ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_OffsetY ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Transparency ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Transparency ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoShadowType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum Office::MsoShadowType prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall IncrementOffsetX ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementOffsetY ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ enum Office::MsoShadowStyle * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ enum Office::MsoShadowStyle prop ) = 0; virtual HRESULT __stdcall get_Blur ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Blur ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Size ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Size ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RotateWithShape ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_RotateWithShape ( /*[in]*/ enum Office::MsoTriState prop ) = 0; }; struct __declspec(uuid("000209d0-0000-0000-c000-000000000046")) ThreeDFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Depth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Depth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ExtrusionColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_ExtrusionColorType ( /*[out,retval]*/ enum Office::MsoExtrusionColorType * prop ) = 0; virtual HRESULT __stdcall put_ExtrusionColorType ( /*[in]*/ enum Office::MsoExtrusionColorType prop ) = 0; virtual HRESULT __stdcall get_Perspective ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Perspective ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_PresetExtrusionDirection ( /*[out,retval]*/ enum Office::MsoPresetExtrusionDirection * prop ) = 0; virtual HRESULT __stdcall get_PresetLightingDirection ( /*[out,retval]*/ enum Office::MsoPresetLightingDirection * prop ) = 0; virtual HRESULT __stdcall put_PresetLightingDirection ( /*[in]*/ enum Office::MsoPresetLightingDirection prop ) = 0; virtual HRESULT __stdcall get_PresetLightingSoftness ( /*[out,retval]*/ enum Office::MsoPresetLightingSoftness * prop ) = 0; virtual HRESULT __stdcall put_PresetLightingSoftness ( /*[in]*/ enum Office::MsoPresetLightingSoftness prop ) = 0; virtual HRESULT __stdcall get_PresetMaterial ( /*[out,retval]*/ enum Office::MsoPresetMaterial * prop ) = 0; virtual HRESULT __stdcall put_PresetMaterial ( /*[in]*/ enum Office::MsoPresetMaterial prop ) = 0; virtual HRESULT __stdcall get_PresetThreeDFormat ( /*[out,retval]*/ enum Office::MsoPresetThreeDFormat * prop ) = 0; virtual HRESULT __stdcall get_RotationX ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RotationX ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RotationY ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RotationY ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall IncrementRotationX ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementRotationY ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall ResetRotation ( ) = 0; virtual HRESULT __stdcall SetExtrusionDirection ( /*[in]*/ enum Office::MsoPresetExtrusionDirection PresetExtrusionDirection ) = 0; virtual HRESULT __stdcall SetThreeDFormat ( /*[in]*/ enum Office::MsoPresetThreeDFormat PresetThreeDFormat ) = 0; virtual HRESULT __stdcall SetPresetCamera ( /*[in]*/ enum Office::MsoPresetCamera PresetCamera ) = 0; virtual HRESULT __stdcall IncrementRotationZ ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementRotationHorizontal ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementRotationVertical ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall get_PresetLighting ( /*[out,retval]*/ enum Office::MsoLightRigType * prop ) = 0; virtual HRESULT __stdcall put_PresetLighting ( /*[in]*/ enum Office::MsoLightRigType prop ) = 0; virtual HRESULT __stdcall get_Z ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Z ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BevelTopType ( /*[out,retval]*/ enum Office::MsoBevelType * prop ) = 0; virtual HRESULT __stdcall put_BevelTopType ( /*[in]*/ enum Office::MsoBevelType prop ) = 0; virtual HRESULT __stdcall get_BevelTopInset ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BevelTopInset ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BevelTopDepth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BevelTopDepth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BevelBottomType ( /*[out,retval]*/ enum Office::MsoBevelType * prop ) = 0; virtual HRESULT __stdcall put_BevelBottomType ( /*[in]*/ enum Office::MsoBevelType prop ) = 0; virtual HRESULT __stdcall get_BevelBottomInset ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BevelBottomInset ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BevelBottomDepth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BevelBottomDepth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PresetCamera ( /*[out,retval]*/ enum Office::MsoPresetCamera * prop ) = 0; virtual HRESULT __stdcall get_RotationZ ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RotationZ ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ContourWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_ContourWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ContourColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_FieldOfView ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FieldOfView ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ProjectText ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_ProjectText ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_LightAngle ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LightAngle ( /*[in]*/ float prop ) = 0; }; struct __declspec(uuid("f1b14f40-5c32-4c8c-b5b2-de537bb6b89d")) GlowFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Radius ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Radius ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Transparency ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Transparency ( /*[in]*/ float prop ) = 0; }; enum __declspec(uuid("5d7e6f43-3e57-353c-95e1-52e9783be2be")) WdExportFormat { wdExportFormatPDF = 17, wdExportFormatXPS = 18 }; enum __declspec(uuid("147553bc-4dc5-3681-a445-d1c4bea414ad")) WdExportOptimizeFor { wdExportOptimizeForPrint = 0, wdExportOptimizeForOnScreen = 1 }; enum __declspec(uuid("42a64ec8-bc68-3dbc-8bf0-58a8cba4ab3e")) WdExportCreateBookmarks { wdExportCreateNoBookmarks = 0, wdExportCreateHeadingBookmarks = 1, wdExportCreateWordBookmarks = 2 }; enum __declspec(uuid("d67854fc-9a45-33f6-a4d3-dc0002a53ce9")) WdExportItem { wdExportDocumentContent = 0, wdExportDocumentWithMarkup = 7 }; enum __declspec(uuid("20d65698-7cdc-3a68-a83d-d52a76fea1a4")) WdExportRange { wdExportAllDocument = 0, wdExportSelection = 1, wdExportCurrentPage = 2, wdExportFromTo = 3 }; enum __declspec(uuid("ebfb6414-51cd-374a-9a96-5c2b0bb128cc")) WdFrenchSpeller { wdFrenchBoth = 0, wdFrenchPreReform = 1, wdFrenchPostReform = 2 }; enum __declspec(uuid("d81e8221-7427-3223-8220-0022778b7c3e")) WdDocPartInsertOptions { wdInsertContent = 0, wdInsertParagraph = 1, wdInsertPage = 2 }; enum __declspec(uuid("97f81678-accd-3f4c-a9f2-52653f4431de")) WdContentControlDateStorageFormat { wdContentControlDateStorageText = 0, wdContentControlDateStorageDate = 1, wdContentControlDateStorageDateTime = 2 }; struct __declspec(uuid("4a304b59-31ff-42dd-b436-7fc9c5db7559")) ChartData : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Workbook ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall get_IsLinked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall BreakLink ( ) = 0; virtual HRESULT __stdcall ActivateChartDataWindow ( ) = 0; }; struct __declspec(uuid("ae6d45e5-981e-4547-8752-674bb55420a5")) Corners : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("ab0d33a3-c9ea-485b-9443-4c1bb3656cea")) ChartBorder : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ColorIndex ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ColorIndex ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_LineStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_LineStyle ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Weight ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Weight ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("b184502b-587a-4c6a-8dc4-ece4354883c6")) Interior : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ColorIndex ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ColorIndex ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_InvertIfNegative ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_InvertIfNegative ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Pattern ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Pattern ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_PatternColor ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_PatternColor ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_PatternColorIndex ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_PatternColorIndex ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("cdb0ff41-e862-47bb-ae77-3fa7b1ae3189")) ChartFont : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Background ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Background ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Bold ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Bold ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ColorIndex ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ColorIndex ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_FontStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_FontStyle ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Italic ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Italic ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_OutlineFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_OutlineFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Size ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Size ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_StrikeThrough ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_StrikeThrough ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Subscript ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Subscript ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Superscript ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Superscript ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Underline ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Underline ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("dd8f80b8-9b80-4e89-9bec-f12df35e43b3")) ChartColorFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SchemeColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SchemeColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RGB ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__Default ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("f152d349-7d20-4c01-a42b-2d6de4f3891c")) ChartFillFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall OneColorGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant, /*[in]*/ float Degree ) = 0; virtual HRESULT __stdcall TwoColorGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant ) = 0; virtual HRESULT __stdcall PresetTextured ( /*[in]*/ enum Office::MsoPresetTexture PresetTexture ) = 0; virtual HRESULT __stdcall Solid ( ) = 0; virtual HRESULT __stdcall Patterned ( /*[in]*/ enum Office::MsoPatternType Pattern ) = 0; virtual HRESULT __stdcall UserPicture ( /*[in]*/ VARIANT PictureFile = vtMissing, /*[in]*/ VARIANT PictureFormat = vtMissing, /*[in]*/ VARIANT PictureStackUnit = vtMissing, /*[in]*/ VARIANT PicturePlacement = vtMissing ) = 0; virtual HRESULT __stdcall UserTextured ( /*[in]*/ BSTR TextureFile ) = 0; virtual HRESULT __stdcall PresetGradient ( /*[in]*/ enum Office::MsoGradientStyle Style, /*[in]*/ long Variant, /*[in]*/ enum Office::MsoPresetGradientType PresetGradientType ) = 0; virtual HRESULT __stdcall get_BackColor ( /*[out,retval]*/ struct ChartColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_ForeColor ( /*[out,retval]*/ struct ChartColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_GradientColorType ( /*[out,retval]*/ enum Office::MsoGradientColorType * prop ) = 0; virtual HRESULT __stdcall get_GradientDegree ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall get_GradientStyle ( /*[out,retval]*/ enum Office::MsoGradientStyle * prop ) = 0; virtual HRESULT __stdcall get_GradientVariant ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Pattern ( /*[out,retval]*/ enum Office::MsoPatternType * prop ) = 0; virtual HRESULT __stdcall get_PresetGradientType ( /*[out,retval]*/ enum Office::MsoPresetGradientType * prop ) = 0; virtual HRESULT __stdcall get_PresetTexture ( /*[out,retval]*/ enum Office::MsoPresetTexture * prop ) = 0; virtual HRESULT __stdcall get_TextureName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_TextureType ( /*[out,retval]*/ enum Office::MsoTextureType * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoFillType * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("ff06fef2-da89-41c0-a0a8-5cd434e210ad")) ChartCharacters : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ BSTR String, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_PhoneticCharacters ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PhoneticCharacters ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("b66d3c1a-4541-4961-b35b-a353c03f6a99")) ChartFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct FillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Glow ( /*[out,retval]*/ struct GlowFormat * * prop ) = 0; virtual HRESULT __stdcall get_Line ( /*[out,retval]*/ struct LineFormat * * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PictureFormat ( /*[out,retval]*/ struct PictureFormat * * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ struct ShadowFormat * * prop ) = 0; virtual HRESULT __stdcall get_SoftEdge ( /*[out,retval]*/ struct SoftEdgeFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextFrame2 ( /*[out,retval]*/ struct Office::TextFrame2 * * prop ) = 0; virtual HRESULT __stdcall get_ThreeD ( /*[out,retval]*/ struct ThreeDFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Adjustments ( /*[out,retval]*/ struct Adjustments * * prop ) = 0; virtual HRESULT __stdcall get_AutoShapeType ( /*[out,retval]*/ enum Office::MsoAutoShapeType * prop ) = 0; virtual HRESULT __stdcall put_AutoShapeType ( /*[in]*/ enum Office::MsoAutoShapeType prop ) = 0; }; struct __declspec(uuid("a2e94180-7564-4d97-806b-bbc0d0a1350c")) Walls : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_PictureType ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_PictureType ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall Paste ( ) = 0; virtual HRESULT __stdcall get_PictureUnit ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Thickness ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Thickness ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("7e64d2be-2818-48cb-8f8a-cc7b61d9e860")) Floor : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_PictureType ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_PictureType ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall Paste ( ) = 0; virtual HRESULT __stdcall get_Thickness ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Thickness ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("c75ad98a-74e9-49fe-8bf1-544839cc08a5")) ChartArea : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Clear ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall ClearContents ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Copy ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("5d7f6c15-36ce-44cc-9692-5a1f8b8c906d")) SeriesLines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("36162c62-b59a-4278-af3d-f2ac1eb999d9")) LeaderLines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("fc9090af-0ddb-4ec1-86e8-8751f2199f2c")) Gridlines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("86905ac9-33f3-4a88-96c8-b289b0390bca")) UpBars : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("84a6a663-aef4-4fcd-83fd-9bb707f157ca")) DownBars : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("dce9f2c4-4c02-43ba-840e-b4276550ef79")) DataTable : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_ShowLegendKey ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowLegendKey ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasBorderHorizontal ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasBorderHorizontal ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasBorderVertical ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasBorderVertical ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasBorderOutline ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasBorderOutline ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("9f1df642-3cce-4d83-a770-d2634a05d278")) DropLines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("7a1bce11-5783-4c7d-bd02-f3d84ab40e7f")) HiLoLines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; enum XlChartSplitType { xlSplitByPosition = 1, xlSplitByPercentValue = 3, xlSplitByCustomSplit = 4, xlSplitByValue = 2 }; enum XlSizeRepresents { xlSizeIsWidth = 2, xlSizeIsArea = 1 }; enum XlAxisGroup { xlPrimary = 1, xlSecondary = 2 }; enum XlBackground { xlBackgroundAutomatic = -4105, xlBackgroundOpaque = 3, xlBackgroundTransparent = 2 }; enum XlChartGallery { xlBuiltIn = 21, xlUserDefined = 22, xlAnyGallery = 23 }; enum XlChartPicturePlacement { xlSides = 1, xlEnd = 2, xlEndSides = 3, xlFront = 4, xlFrontSides = 5, xlFrontEnd = 6, xlAllFaces = 7 }; enum XlDataLabelSeparator { xlDataLabelSeparatorDefault = 1 }; enum XlPattern { xlPatternAutomatic = -4105, xlPatternChecker = 9, xlPatternCrissCross = 16, xlPatternDown = -4121, xlPatternGray16 = 17, xlPatternGray25 = -4124, xlPatternGray50 = -4125, xlPatternGray75 = -4126, xlPatternGray8 = 18, xlPatternGrid = 15, xlPatternHorizontal = -4128, xlPatternLightDown = 13, xlPatternLightHorizontal = 11, xlPatternLightUp = 14, xlPatternLightVertical = 12, xlPatternNone = -4142, xlPatternSemiGray75 = 10, xlPatternSolid = 1, xlPatternUp = -4162, xlPatternVertical = -4166, xlPatternLinearGradient = 4000, xlPatternRectangularGradient = 4001 }; enum XlPictureAppearance { xlPrinter = 2, xlScreen = 1 }; enum XlCopyPictureFormat { xlBitmap = 2, xlPicture = -4147 }; enum XlRgbColor { xlAliceBlue = 16775408, xlAntiqueWhite = 14150650, xlAqua = 16776960, xlAquamarine = 13959039, xlAzure = 16777200, xlBeige = 14480885, xlBisque = 12903679, xlBlack = 0, xlBlanchedAlmond = 13495295, xlBlue = 16711680, xlBlueViolet = 14822282, xlBrown = 2763429, xlBurlyWood = 8894686, xlCadetBlue = 10526303, xlChartreuse = 65407, xlCoral = 5275647, xlCornflowerBlue = 15570276, xlCornsilk = 14481663, xlCrimson = 3937500, xlDarkBlue = 9109504, xlDarkCyan = 9145088, xlDarkGoldenrod = 755384, xlDarkGreen = 25600, xlDarkGray = 11119017, xlDarkGrey = 11119017, xlDarkKhaki = 7059389, xlDarkMagenta = 9109643, xlDarkOliveGreen = 3107669, xlDarkOrange = 36095, xlDarkOrchid = 13382297, xlDarkRed = 139, xlDarkSalmon = 8034025, xlDarkSeaGreen = 9419919, xlDarkSlateBlue = 9125192, xlDarkSlateGray = 5197615, xlDarkSlateGrey = 5197615, xlDarkTurquoise = 13749760, xlDarkViolet = 13828244, xlDeepPink = 9639167, xlDeepSkyBlue = 16760576, xlDimGray = 6908265, xlDimGrey = 6908265, xlDodgerBlue = 16748574, xlFireBrick = 2237106, xlFloralWhite = 15792895, xlForestGreen = 2263842, xlFuchsia = 16711935, xlGainsboro = 14474460, xlGhostWhite = 16775416, xlGold = 55295, xlGoldenrod = 2139610, xlGray = 8421504, xlGreen = 32768, xlGrey = 8421504, xlGreenYellow = 3145645, xlHoneydew = 15794160, xlHotPink = 11823615, xlIndianRed = 6053069, xlIndigo = 8519755, xlIvory = 15794175, xlKhaki = 9234160, xlLavender = 16443110, xlLavenderBlush = 16118015, xlLawnGreen = 64636, xlLemonChiffon = 13499135, xlLightBlue = 15128749, xlLightCoral = 8421616, xlLightCyan = 9145088, xlLightGoldenrodYellow = 13826810, xlLightGray = 13882323, xlLightGreen = 9498256, xlLightGrey = 13882323, xlLightPink = 12695295, xlLightSalmon = 8036607, xlLightSeaGreen = 11186720, xlLightSkyBlue = 16436871, xlLightSlateGray = 10061943, xlLightSlateGrey = 10061943, xlLightSteelBlue = 14599344, xlLightYellow = 14745599, xlLime = 65280, xlLimeGreen = 3329330, xlLinen = 15134970, xlMaroon = 128, xlMediumAquamarine = 11206502, xlMediumBlue = 13434880, xlMediumOrchid = 13850042, xlMediumPurple = 14381203, xlMediumSeaGreen = 7451452, xlMediumSlateBlue = 15624315, xlMediumSpringGreen = 10156544, xlMediumTurquoise = 13422920, xlMediumVioletRed = 8721863, xlMidnightBlue = 7346457, xlMintCream = 16449525, xlMistyRose = 14804223, xlMoccasin = 11920639, xlNavajoWhite = 11394815, xlNavy = 8388608, xlNavyBlue = 8388608, xlOldLace = 15136253, xlOlive = 32896, xlOliveDrab = 2330219, xlOrange = 42495, xlOrangeRed = 17919, xlOrchid = 14053594, xlPaleGoldenrod = 7071982, xlPaleGreen = 10025880, xlPaleTurquoise = 15658671, xlPaleVioletRed = 9662683, xlPapayaWhip = 14020607, xlPeachPuff = 12180223, xlPeru = 4163021, xlPink = 13353215, xlPlum = 14524637, xlPowderBlue = 15130800, xlPurple = 8388736, xlRed = 255, xlRosyBrown = 9408444, xlRoyalBlue = 14772545, xlSalmon = 7504122, xlSandyBrown = 6333684, xlSeaGreen = 5737262, xlSeashell = 15660543, xlSienna = 2970272, xlSilver = 12632256, xlSkyBlue = 15453831, xlSlateBlue = 13458026, xlSlateGray = 9470064, xlSlateGrey = 9470064, xlSnow = 16448255, xlSpringGreen = 8388352, xlSteelBlue = 11829830, xlTan = 9221330, xlTeal = 8421376, xlThistle = 14204888, xlTomato = 4678655, xlTurquoise = 13688896, xlYellow = 65535, xlYellowGreen = 3329434, xlViolet = 15631086, xlWheat = 11788021, xlWhite = 16777215, xlWhiteSmoke = 16119285 }; enum XlConstants { xlAutomatic = -4105, xlCombination = -4111, xlCustom = -4114, xlBar = 2, xlColumn = 3, xl3DBar = -4099, xl3DSurface = -4103, xlDefaultAutoFormat = -1, xlNone = -4142, xlAbove = 0, xlBelow = 1, xlBoth = 1, xlBottom = -4107, xlCenter = -4108, xlChecker = 9, xlCircle = 8, xlCorner = 2, xlCrissCross = 16, xlCross = 4, xlDiamond = 2, xlDistributed = -4117, xlFill = 5, xlFixedValue = 1, xlGeneral = 1, xlGray16 = 17, xlGray25 = -4124, xlGray50 = -4125, xlGray75 = -4126, xlGray8 = 18, xlGrid = 15, xlHigh = -4127, xlInside = 2, xlJustify = -4130, xlLeft = -4131, xlLightDown = 13, xlLightHorizontal = 11, xlLightUp = 14, xlLightVertical = 12, xlLow = -4134, xlMaximum = 2, xlMinimum = 4, xlMinusValues = 3, xlNextToAxis = 4, xlOpaque = 3, xlOutside = 3, xlPercent = 2, xlPlus = 9, xlPlusValues = 2, xlRight = -4152, xlScale = 3, xlSemiGray75 = 10, xlShowLabel = 4, xlShowLabelAndPercent = 5, xlShowPercent = 3, xlShowValue = 2, xlSingle = 2, xlSolid = 1, xlSquare = 1, xlStar = 5, xlStError = 4, xlTop = -4160, xlTransparent = 2, xlTriangle = 3 }; enum XlReadingOrder { xlContext = -5002, xlLTR = -5003, xlRTL = -5004 }; enum XlBorderWeight { xlHairline = 1, xlMedium = -4138, xlThick = 4, xlThin = 2 }; enum XlLegendPosition { xlLegendPositionBottom = -4107, xlLegendPositionCorner = 2, xlLegendPositionLeft = -4131, xlLegendPositionRight = -4152, xlLegendPositionTop = -4160, xlLegendPositionCustom = -4161 }; struct __declspec(uuid("b3a1e8c6-e1ce-4a46-8d12-e017157b03d7")) Legend : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall LegendEntries ( /*[in]*/ VARIANT Index, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlLegendPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlLegendPosition prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Clear ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_IncludeInLayout ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeInLayout ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; enum XlUnderlineStyle { xlUnderlineStyleDouble = -4119, xlUnderlineStyleDoubleAccounting = 5, xlUnderlineStyleNone = -4142, xlUnderlineStyleSingle = 2, xlUnderlineStyleSingleAccounting = 4 }; enum XlColorIndex { xlColorIndexAutomatic = -4105, xlColorIndexNone = -4142 }; enum XlMarkerStyle { xlMarkerStyleAutomatic = -4105, xlMarkerStyleCircle = 8, xlMarkerStyleDash = -4115, xlMarkerStyleDiamond = 2, xlMarkerStyleDot = -4118, xlMarkerStyleNone = -4142, xlMarkerStylePicture = -4147, xlMarkerStylePlus = 9, xlMarkerStyleSquare = 1, xlMarkerStyleStar = 5, xlMarkerStyleTriangle = 3, xlMarkerStyleX = -4168 }; struct __declspec(uuid("df076fde-8781-4051-a5bc-99f6b7dc04d4")) LegendKey : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_InvertIfNegative ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InvertIfNegative ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerStyle ( /*[out,retval]*/ enum XlMarkerStyle * prop ) = 0; virtual HRESULT __stdcall put_MarkerStyle ( /*[in]*/ enum XlMarkerStyle prop ) = 0; virtual HRESULT __stdcall get_PictureType ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PictureType ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PictureUnit ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Smooth ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Smooth ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PictureUnit2 ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit2 ( /*[in]*/ double prop ) = 0; }; struct __declspec(uuid("c4a02049-024c-4273-8934-e48cc21479a9")) LegendEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_LegendKey ( /*[out,retval]*/ struct LegendKey * * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("b6511068-70bf-4751-a741-55c1d41ad96f")) LegendEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct LegendEntry * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct LegendEntry * * prop ) = 0; }; enum XlRowCol { xlColumns = 2, xlRows = 1 }; enum XlDataLabelsType { xlDataLabelsShowNone = -4142, xlDataLabelsShowValue = 2, xlDataLabelsShowPercent = 3, xlDataLabelsShowLabel = 4, xlDataLabelsShowLabelAndPercent = 5, xlDataLabelsShowBubbleSizes = 6 }; enum XlErrorBarInclude { xlErrorBarIncludeBoth = 1, xlErrorBarIncludeMinusValues = 3, xlErrorBarIncludeNone = -4142, xlErrorBarIncludePlusValues = 2 }; enum XlErrorBarType { xlErrorBarTypeCustom = -4114, xlErrorBarTypeFixedValue = 1, xlErrorBarTypePercent = 2, xlErrorBarTypeStDev = -4155, xlErrorBarTypeStError = 4 }; enum XlErrorBarDirection { xlChartX = -4168, xlChartY = 1 }; enum XlChartPictureType { xlStackScale = 3, xlStack = 2, xlStretch = 1 }; enum XlChartItem { xlDataLabel = 0, xlChartArea = 2, xlSeries = 3, xlChartTitle = 4, xlWalls = 5, xlCorners = 6, xlDataTable = 7, xlTrendline = 8, xlErrorBars = 9, xlXErrorBars = 10, xlYErrorBars = 11, xlLegendEntry = 12, xlLegendKey = 13, xlShape = 14, xlMajorGridlines = 15, xlMinorGridlines = 16, xlAxisTitle = 17, xlUpBars = 18, xlPlotArea = 19, xlDownBars = 20, xlAxis = 21, xlSeriesLines = 22, xlFloor = 23, xlLegend = 24, xlHiLoLines = 25, xlDropLines = 26, xlRadarAxisLabels = 27, xlNothing = 28, xlLeaderLines = 29, xlDisplayUnitLabel = 30, xlPivotChartFieldButton = 31, xlPivotChartDropZone = 32 }; enum XlBarShape { xlBox = 0, xlPyramidToPoint = 1, xlPyramidToMax = 2, xlCylinder = 3, xlConeToPoint = 4, xlConeToMax = 5 }; enum XlEndStyleCap { xlCap = 1, xlNoCap = 2 }; struct __declspec(uuid("194f8476-b79d-4572-a609-294207de77c1")) ErrorBars : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_EndStyle ( /*[out,retval]*/ enum XlEndStyleCap * prop ) = 0; virtual HRESULT __stdcall put_EndStyle ( /*[in]*/ enum XlEndStyleCap prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("40810760-068a-4486-bec9-8ea58c7029f5")) Series : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AxisGroup ( /*[out,retval]*/ enum XlAxisGroup * prop ) = 0; virtual HRESULT __stdcall put_AxisGroup ( /*[in]*/ enum XlAxisGroup prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Copy ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall DataLabels ( /*[in]*/ VARIANT Index, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall ErrorBar ( /*[in]*/ enum XlErrorBarDirection Direction, /*[in]*/ enum XlErrorBarInclude Include, /*[in]*/ enum XlErrorBarType Type, /*[in]*/ VARIANT Amount, /*[in]*/ VARIANT MinusValues, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ErrorBars ( /*[out,retval]*/ struct ErrorBars * * prop ) = 0; virtual HRESULT __stdcall get_Explosion ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Explosion ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Formula ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Formula ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1 ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1 ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1Local ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1Local ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HasDataLabels ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasDataLabels ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasErrorBars ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasErrorBars ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_InvertIfNegative ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InvertIfNegative ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerStyle ( /*[out,retval]*/ enum XlMarkerStyle * prop ) = 0; virtual HRESULT __stdcall put_MarkerStyle ( /*[in]*/ enum XlMarkerStyle prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Paste ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_PictureType ( /*[out,retval]*/ enum XlChartPictureType * prop ) = 0; virtual HRESULT __stdcall put_PictureType ( /*[in]*/ enum XlChartPictureType prop ) = 0; virtual HRESULT __stdcall get_PictureUnit ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_PlotOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PlotOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Points ( /*[in]*/ VARIANT Index, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Smooth ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Smooth ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Trendlines ( /*[in]*/ VARIANT Index, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ChartType ( /*[out,retval]*/ enum Office::XlChartType * prop ) = 0; virtual HRESULT __stdcall put_ChartType ( /*[in]*/ enum Office::XlChartType prop ) = 0; virtual HRESULT __stdcall ApplyCustomType ( /*[in]*/ enum Office::XlChartType ChartType ) = 0; virtual HRESULT __stdcall get_Values ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Values ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_XValues ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_XValues ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_BubbleSizes ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_BubbleSizes ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_BarShape ( /*[out,retval]*/ enum XlBarShape * prop ) = 0; virtual HRESULT __stdcall put_BarShape ( /*[in]*/ enum XlBarShape prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToSides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToSides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToFront ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToFront ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToEnd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToEnd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Has3DEffect ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Has3DEffect ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasLeaderLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasLeaderLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LeaderLines ( /*[out,retval]*/ struct LeaderLines * * prop ) = 0; virtual HRESULT __stdcall ApplyDataLabels ( /*[in]*/ enum XlDataLabelsType Type, /*[in]*/ VARIANT LegendKey, /*[in]*/ VARIANT AutoText, /*[in]*/ VARIANT HasLeaderLines, /*[in]*/ VARIANT ShowSeriesName, /*[in]*/ VARIANT ShowCategoryName, /*[in]*/ VARIANT ShowValue, /*[in]*/ VARIANT ShowPercentage, /*[in]*/ VARIANT ShowBubbleSize, /*[in]*/ VARIANT Separator, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PictureUnit2 ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit2 ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_PlotColorIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_InvertColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_InvertColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_InvertColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_InvertColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_IsFiltered ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IsFiltered ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("8feb78f7-35c6-4871-918c-193c3cdd886d")) SeriesCollection : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT Source, /*[in]*/ enum XlRowCol Rowcol, /*[in]*/ VARIANT SeriesLabels, /*[in]*/ VARIANT CategoryLabels, /*[in]*/ VARIANT Replace, /*[out,retval]*/ struct Series * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Extend ( /*[in]*/ VARIANT Source, /*[in]*/ VARIANT Rowcol, /*[in]*/ VARIANT CategoryLabels, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Series * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall NewSeries ( /*[out,retval]*/ struct Series * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Series * * prop ) = 0; }; enum XlTrendlineType { xlExponential = 5, xlLinear = -4132, xlLogarithmic = -4133, xlMovingAvg = 6, xlPolynomial = 3, xlPower = 4 }; enum XlAxisType { xlCategory = 1, xlSeriesAxis = 3, xlValue = 2 }; enum XlAxisCrosses { xlAxisCrossesAutomatic = -4105, xlAxisCrossesCustom = -4114, xlAxisCrossesMaximum = 2, xlAxisCrossesMinimum = 4 }; enum XlTickMark { xlTickMarkCross = 4, xlTickMarkInside = 2, xlTickMarkNone = -4142, xlTickMarkOutside = 3 }; enum XlScaleType { xlScaleLinear = -4132, xlScaleLogarithmic = -4133 }; enum XlTickLabelPosition { xlTickLabelPositionHigh = -4127, xlTickLabelPositionLow = -4134, xlTickLabelPositionNextToAxis = 4, xlTickLabelPositionNone = -4142 }; enum XlTimeUnit { xlDays = 0, xlMonths = 1, xlYears = 2 }; enum XlCategoryType { xlCategoryScale = 2, xlTimeScale = 3, xlAutomaticScale = -4105 }; enum XlDisplayUnit { xlHundreds = -2, xlThousands = -3, xlTenThousands = -4, xlHundredThousands = -5, xlMillions = -6, xlTenMillions = -7, xlHundredMillions = -8, xlThousandMillions = -9, xlMillionMillions = -10 }; enum XlOrientation { xlDownward = -4170, xlHorizontal = -4128, xlUpward = -4171, xlVertical = -4166 }; enum XlTickLabelOrientation { xlTickLabelOrientationAutomatic = -4105, xlTickLabelOrientationDownward = -4170, xlTickLabelOrientationHorizontal = -4128, xlTickLabelOrientationUpward = -4171, xlTickLabelOrientationVertical = -4166 }; struct __declspec(uuid("935d59f5-e365-4f92-b7f5-1c499a63eca8")) TickLabels : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_NumberFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NumberFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLinked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLinked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLocal ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLocal ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ enum XlTickLabelOrientation * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ enum XlTickLabelOrientation prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Depth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Offset ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Offset ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MultiLevel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MultiLevel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("86488fb4-9633-4c93-8057-fc1fa7a847ae")) ChartGroup : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_AxisGroup ( /*[out,retval]*/ enum XlAxisGroup * prop ) = 0; virtual HRESULT __stdcall put_AxisGroup ( /*[in]*/ enum XlAxisGroup prop ) = 0; virtual HRESULT __stdcall get_DoughnutHoleSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DoughnutHoleSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DownBars ( /*[out,retval]*/ struct DownBars * * prop ) = 0; virtual HRESULT __stdcall get_DropLines ( /*[out,retval]*/ struct DropLines * * prop ) = 0; virtual HRESULT __stdcall get_FirstSliceAngle ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_FirstSliceAngle ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_GapWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_GapWidth ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HasDropLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasDropLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasHiLoLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasHiLoLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasRadarAxisLabels ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasRadarAxisLabels ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasSeriesLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasSeriesLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasUpDownBars ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasUpDownBars ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HiLoLines ( /*[out,retval]*/ struct HiLoLines * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Overlap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Overlap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RadarAxisLabels ( /*[out,retval]*/ struct TickLabels * * prop ) = 0; virtual HRESULT __stdcall SeriesCollection ( /*[in]*/ VARIANT Index, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SeriesLines ( /*[out,retval]*/ struct SeriesLines * * prop ) = 0; virtual HRESULT __stdcall get_SubType ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SubType ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_UpBars ( /*[out,retval]*/ struct UpBars * * prop ) = 0; virtual HRESULT __stdcall get_VaryByCategories ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_VaryByCategories ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SizeRepresents ( /*[out,retval]*/ enum XlSizeRepresents * prop ) = 0; virtual HRESULT __stdcall put_SizeRepresents ( /*[in]*/ enum XlSizeRepresents prop ) = 0; virtual HRESULT __stdcall get_BubbleScale ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_BubbleScale ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShowNegativeBubbles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowNegativeBubbles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SplitType ( /*[out,retval]*/ enum XlChartSplitType * prop ) = 0; virtual HRESULT __stdcall put_SplitType ( /*[in]*/ enum XlChartSplitType prop ) = 0; virtual HRESULT __stdcall get_SplitValue ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_SplitValue ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_SecondPlotSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SecondPlotSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Has3DShading ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Has3DShading ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall CategoryCollection ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall FullCategoryCollection ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("f8ddb497-ca6c-4711-9ba4-2718fa3bb6fe")) ChartGroups : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; enum XlDisplayBlanksAs { xlInterpolated = 3, xlNotPlotted = 1, xlZero = 2 }; enum XlDataLabelPosition { xlLabelPositionCenter = -4108, xlLabelPositionAbove = 0, xlLabelPositionBelow = 1, xlLabelPositionLeft = -4131, xlLabelPositionRight = -4152, xlLabelPositionOutsideEnd = 2, xlLabelPositionInsideEnd = 3, xlLabelPositionInsideBase = 4, xlLabelPositionBestFit = 5, xlLabelPositionMixed = 6, xlLabelPositionCustom = 7 }; struct __declspec(uuid("1fd94df1-3569-4465-94ff-e8b22d28eeb0")) DataLabel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[in]*/ VARIANT Start, /*[in]*/ VARIANT Length, /*[out,retval]*/ struct ChartCharacters * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_AutoText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NumberFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLinked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLinked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLocal ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLocal ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ShowLegendKey ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowLegendKey ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlDataLabelPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlDataLabelPosition prop ) = 0; virtual HRESULT __stdcall get_ShowSeriesName ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSeriesName ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowCategoryName ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowCategoryName ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowValue ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowValue ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowPercentage ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowPercentage ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowBubbleSize ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowBubbleSize ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Separator ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get__Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Formula ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Formula ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1 ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1 ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1Local ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1Local ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ShowRange ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowRange ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ double prop ) = 0; }; struct __declspec(uuid("91c46192-3124-4346-a815-10b8873f5a06")) Trendline : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Backward ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Backward ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_DataLabel ( /*[out,retval]*/ struct DataLabel * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_DisplayEquation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayEquation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayRSquared ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayRSquared ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Forward ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Forward ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Intercept ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Intercept ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_InterceptIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InterceptIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NameIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NameIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Order ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Order ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Period ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Period ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum XlTrendlineType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum XlTrendlineType prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Backward2 ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Backward2 ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Forward2 ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Forward2 ( /*[in]*/ double prop ) = 0; }; struct __declspec(uuid("54b7061a-d56c-40e5-b85b-58146446c782")) Trendlines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ enum XlTrendlineType Type, /*[in]*/ VARIANT Order, /*[in]*/ VARIANT Period, /*[in]*/ VARIANT Forward, /*[in]*/ VARIANT Backward, /*[in]*/ VARIANT Intercept, /*[in]*/ VARIANT DisplayEquation, /*[in]*/ VARIANT DisplayRSquared, /*[in]*/ VARIANT Name, /*[out,retval]*/ struct Trendline * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Trendline * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Trendline * * prop ) = 0; }; struct __declspec(uuid("d8252c5e-eb9f-4d74-aa72-c178b128fac4")) DataLabels : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_AutoText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NumberFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLinked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLinked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NumberFormatLocal ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_NumberFormatLocal ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ShowLegendKey ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowLegendKey ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlDataLabelPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlDataLabelPosition prop ) = 0; virtual HRESULT __stdcall get_ShowSeriesName ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSeriesName ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowCategoryName ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowCategoryName ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowValue ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowValue ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowPercentage ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowPercentage ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowBubbleSize ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowBubbleSize ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Separator ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct DataLabel * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct DataLabel * * prop ) = 0; virtual HRESULT __stdcall Propagate ( /*[in]*/ VARIANT Index ) = 0; virtual HRESULT __stdcall get_ShowRange ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowRange ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; enum XlPivotFieldOrientation { xlColumnField = 2, xlDataField = 4, xlHidden = 0, xlPageField = 3, xlRowField = 1 }; enum XlHAlign { xlHAlignCenter = -4108, xlHAlignCenterAcrossSelection = 7, xlHAlignDistributed = -4117, xlHAlignFill = 5, xlHAlignGeneral = 1, xlHAlignJustify = -4130, xlHAlignLeft = -4131, xlHAlignRight = -4152 }; enum XlVAlign { xlVAlignBottom = -4107, xlVAlignCenter = -4108, xlVAlignDistributed = -4117, xlVAlignJustify = -4130, xlVAlignTop = -4160 }; enum XlLineStyle { xlContinuous = 1, xlDash = -4115, xlDashDot = 4, xlDashDotDot = 5, xlDot = -4118, xlDouble = -4119, xlSlantDashDot = 13, xlLineStyleNone = -4142 }; enum XlChartElementPosition { xlChartElementPositionAutomatic = -4105, xlChartElementPositionCustom = -4114 }; struct __declspec(uuid("56afd330-440c-4f4c-a39c-ed306d084d5f")) PlotArea : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_InsideLeft ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_InsideLeft ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_InsideTop ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_InsideTop ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_InsideWidth ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_InsideWidth ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_InsideHeight ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_InsideHeight ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlChartElementPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlChartElementPosition prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("c1ad33e4-f088-40a9-9d2f-d94017d115c4")) ChartTitle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[in]*/ VARIANT Start, /*[in]*/ VARIANT Length, /*[out,retval]*/ struct ChartCharacters * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_IncludeInLayout ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeInLayout ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlChartElementPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlChartElementPosition prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Formula ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Formula ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1 ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1 ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1Local ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1Local ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("8b0e45db-3a7b-42ee-9d17-a92af69b79c1")) AxisTitle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[in]*/ VARIANT Start, /*[in]*/ VARIANT Length, /*[out,retval]*/ struct ChartCharacters * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_IncludeInLayout ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeInLayout ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlChartElementPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlChartElementPosition prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Formula ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Formula ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1 ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1 ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1Local ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1Local ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("c04865a3-9f8a-486c-bb58-b4c3e6563136")) DisplayUnitLabel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[in]*/ VARIANT Start, /*[in]*/ VARIANT Length, /*[out,retval]*/ struct ChartCharacters * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct ChartFont * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AutoScaleFont ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AutoScaleFont ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_IncludeInLayout ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeInLayout ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ enum XlChartElementPosition * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ enum XlChartElementPosition prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Formula ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Formula ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1 ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1 ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormulaR1C1Local ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_FormulaR1C1Local ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("7ebc66bd-f788-42c3-91f4-e8c841a69005")) Axis : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_AxisBetweenCategories ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AxisBetweenCategories ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AxisGroup ( /*[out,retval]*/ enum XlAxisGroup * prop ) = 0; virtual HRESULT __stdcall get_AxisTitle ( /*[out,retval]*/ struct AxisTitle * * prop ) = 0; virtual HRESULT __stdcall get_CategoryNames ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_CategoryNames ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Crosses ( /*[out,retval]*/ enum XlAxisCrosses * prop ) = 0; virtual HRESULT __stdcall put_Crosses ( /*[in]*/ enum XlAxisCrosses prop ) = 0; virtual HRESULT __stdcall get_CrossesAt ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_CrossesAt ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_HasMajorGridlines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasMajorGridlines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasMinorGridlines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasMinorGridlines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasTitle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasTitle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MajorGridlines ( /*[out,retval]*/ struct Gridlines * * prop ) = 0; virtual HRESULT __stdcall get_MajorTickMark ( /*[out,retval]*/ enum XlTickMark * prop ) = 0; virtual HRESULT __stdcall put_MajorTickMark ( /*[in]*/ enum XlTickMark prop ) = 0; virtual HRESULT __stdcall get_MajorUnit ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_MajorUnit ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_LogBase ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_LogBase ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_TickLabelSpacingIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TickLabelSpacingIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MajorUnitIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MajorUnitIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MaximumScale ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_MaximumScale ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_MaximumScaleIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MaximumScaleIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MinimumScale ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_MinimumScale ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_MinimumScaleIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MinimumScaleIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MinorGridlines ( /*[out,retval]*/ struct Gridlines * * prop ) = 0; virtual HRESULT __stdcall get_MinorTickMark ( /*[out,retval]*/ enum XlTickMark * prop ) = 0; virtual HRESULT __stdcall put_MinorTickMark ( /*[in]*/ enum XlTickMark prop ) = 0; virtual HRESULT __stdcall get_MinorUnit ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_MinorUnit ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_MinorUnitIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MinorUnitIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReversePlotOrder ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReversePlotOrder ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ScaleType ( /*[out,retval]*/ enum XlScaleType * prop ) = 0; virtual HRESULT __stdcall put_ScaleType ( /*[in]*/ enum XlScaleType prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_TickLabelPosition ( /*[out,retval]*/ enum XlTickLabelPosition * prop ) = 0; virtual HRESULT __stdcall put_TickLabelPosition ( /*[in]*/ enum XlTickLabelPosition prop ) = 0; virtual HRESULT __stdcall get_TickLabels ( /*[out,retval]*/ struct TickLabels * * prop ) = 0; virtual HRESULT __stdcall get_TickLabelSpacing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_TickLabelSpacing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TickMarkSpacing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_TickMarkSpacing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum XlAxisType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum XlAxisType prop ) = 0; virtual HRESULT __stdcall get_BaseUnit ( /*[out,retval]*/ enum XlTimeUnit * prop ) = 0; virtual HRESULT __stdcall put_BaseUnit ( /*[in]*/ enum XlTimeUnit prop ) = 0; virtual HRESULT __stdcall get_BaseUnitIsAuto ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BaseUnitIsAuto ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MajorUnitScale ( /*[out,retval]*/ enum XlTimeUnit * prop ) = 0; virtual HRESULT __stdcall put_MajorUnitScale ( /*[in]*/ enum XlTimeUnit prop ) = 0; virtual HRESULT __stdcall get_MinorUnitScale ( /*[out,retval]*/ enum XlTimeUnit * prop ) = 0; virtual HRESULT __stdcall put_MinorUnitScale ( /*[in]*/ enum XlTimeUnit prop ) = 0; virtual HRESULT __stdcall get_CategoryType ( /*[out,retval]*/ enum XlCategoryType * prop ) = 0; virtual HRESULT __stdcall put_CategoryType ( /*[in]*/ enum XlCategoryType prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_DisplayUnit ( /*[out,retval]*/ enum XlDisplayUnit * prop ) = 0; virtual HRESULT __stdcall put_DisplayUnit ( /*[in]*/ enum XlDisplayUnit prop ) = 0; virtual HRESULT __stdcall get_DisplayUnitCustom ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_DisplayUnitCustom ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_HasDisplayUnitLabel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasDisplayUnitLabel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayUnitLabel ( /*[out,retval]*/ struct DisplayUnitLabel * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("354ab591-a217-48b4-99e4-14f58f15667d")) Axes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum XlAxisType Type, /*[in]*/ enum XlAxisGroup AxisGroup, /*[out,retval]*/ struct Axis * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ enum XlAxisType Type, /*[in]*/ enum XlAxisGroup AxisGroup, /*[out,retval]*/ struct Axis * * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; }; struct __declspec(uuid("e598e358-2852-42d4-8775-160bd91b7244")) UndoRecord : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall StartCustomRecord ( /*[in]*/ BSTR Name ) = 0; virtual HRESULT __stdcall EndCustomRecord ( ) = 0; virtual HRESULT __stdcall get_IsRecordingCustomRecord ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_CustomRecordName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_CustomRecordLevel ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("f743edd0-9b97-4b09-89cc-77be19b51481")) ProtectedViewWindow : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Document ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WindowState ( /*[out,retval]*/ enum WdWindowState * prop ) = 0; virtual HRESULT __stdcall put_WindowState ( /*[in]*/ enum WdWindowState prop ) = 0; virtual HRESULT __stdcall get_Active ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SourceName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SourcePath ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall Edit ( /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Close ( ) = 0; virtual HRESULT __stdcall ToggleRibbon ( ) = 0; }; struct __declspec(uuid("fd0a74e8-c719-49f6-ba1b-f6d9839d1ab9")) ProtectedViewWindows : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ProtectedViewWindow * * prop ) = 0; virtual HRESULT __stdcall Open ( /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * AddToRecentFiles, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * Visible, /*[in]*/ VARIANT * OpenAndRepair, /*[out,retval]*/ struct ProtectedViewWindow * * prop ) = 0; }; enum __declspec(uuid("e9f1477d-ebe4-3e52-8171-6d2e3aef58cd")) WdUpdateStyleListBehavior { wdListBehaviorKeepPreviousPattern = 0, wdListBehaviorAddBulletsNumbering = 1 }; enum __declspec(uuid("5a7bbea6-5356-39ab-a10c-f86db4214c3f")) WdApplyQuickStyleSets { wdSessionStartSet = 1, wdTemplateSet = 2 }; enum WdLigatures { wdLigaturesNone = 0, wdLigaturesStandard = 1, wdLigaturesContextual = 2, wdLigaturesHistorical = 4, wdLigaturesDiscretional = 8, wdLigaturesStandardContextual = 3, wdLigaturesStandardHistorical = 5, wdLigaturesContextualHistorical = 6, wdLigaturesStandardDiscretional = 9, wdLigaturesContextualDiscretional = 10, wdLigaturesHistoricalDiscretional = 12, wdLigaturesStandardContextualHistorical = 7, wdLigaturesStandardContextualDiscretional = 11, wdLigaturesStandardHistoricalDiscretional = 13, wdLigaturesContextualHistoricalDiscretional = 14, wdLigaturesAll = 15 }; enum WdNumberForm { wdNumberFormDefault = 0, wdNumberFormLining = 1, wdNumberFormOldStyle = 2 }; enum WdNumberSpacing { wdNumberSpacingDefault = 0, wdNumberSpacingProportional = 1, wdNumberSpacingTabular = 2 }; enum WdStylisticSet { wdStylisticSetDefault = 0, wdStylisticSet01 = 1, wdStylisticSet02 = 2, wdStylisticSet03 = 4, wdStylisticSet04 = 8, wdStylisticSet05 = 16, wdStylisticSet06 = 32, wdStylisticSet07 = 64, wdStylisticSet08 = 128, wdStylisticSet09 = 256, wdStylisticSet10 = 512, wdStylisticSet11 = 1024, wdStylisticSet12 = 2048, wdStylisticSet13 = 4096, wdStylisticSet14 = 8192, wdStylisticSet15 = 16384, wdStylisticSet16 = 32768, wdStylisticSet17 = 65536, wdStylisticSet18 = 131072, wdStylisticSet19 = 262144, wdStylisticSet20 = 524288 }; struct __declspec(uuid("00020952-0000-0000-c000-000000000046")) _Font : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Duplicate ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall get_Bold ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Bold ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Italic ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Italic ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Hidden ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Hidden ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SmallCaps ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SmallCaps ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AllCaps ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllCaps ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_StrikeThrough ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StrikeThrough ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DoubleStrikeThrough ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DoubleStrikeThrough ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_ColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_Subscript ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Subscript ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Superscript ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Superscript ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Underline ( /*[out,retval]*/ enum WdUnderline * prop ) = 0; virtual HRESULT __stdcall put_Underline ( /*[in]*/ enum WdUnderline prop ) = 0; virtual HRESULT __stdcall get_Size ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Size ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Position ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Position ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Spacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Spacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Scaling ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Scaling ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Outline ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Outline ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Emboss ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Emboss ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Kerning ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Kerning ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Engrave ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Engrave ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Animation ( /*[out,retval]*/ enum WdAnimation * prop ) = 0; virtual HRESULT __stdcall put_Animation ( /*[in]*/ enum WdAnimation prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_EmphasisMark ( /*[out,retval]*/ enum WdEmphasisMark * prop ) = 0; virtual HRESULT __stdcall put_EmphasisMark ( /*[in]*/ enum WdEmphasisMark prop ) = 0; virtual HRESULT __stdcall get_DisableCharacterSpaceGrid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisableCharacterSpaceGrid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NameFarEast ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NameFarEast ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NameAscii ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NameAscii ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NameOther ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NameOther ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Grow ( ) = 0; virtual HRESULT __stdcall Shrink ( ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall SetAsTemplateDefault ( ) = 0; virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_BoldBi ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_BoldBi ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ItalicBi ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ItalicBi ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SizeBi ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SizeBi ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_NameBi ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NameBi ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ColorIndexBi ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_ColorIndexBi ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_DiacriticColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_DiacriticColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_UnderlineColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_UnderlineColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_Glow ( /*[out,retval]*/ struct GlowFormat * * prop ) = 0; virtual HRESULT __stdcall put_Glow ( /*[in]*/ struct GlowFormat * prop ) = 0; virtual HRESULT __stdcall get_Reflection ( /*[out,retval]*/ struct ReflectionFormat * * prop ) = 0; virtual HRESULT __stdcall put_Reflection ( /*[in]*/ struct ReflectionFormat * prop ) = 0; virtual HRESULT __stdcall get_TextShadow ( /*[out,retval]*/ struct ShadowFormat * * prop ) = 0; virtual HRESULT __stdcall put_TextShadow ( /*[in]*/ struct ShadowFormat * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct FillFormat * * prop ) = 0; virtual HRESULT __stdcall put_Fill ( /*[in]*/ struct FillFormat * prop ) = 0; virtual HRESULT __stdcall get_Line ( /*[out,retval]*/ struct LineFormat * * prop ) = 0; virtual HRESULT __stdcall put_Line ( /*[in]*/ struct LineFormat * prop ) = 0; virtual HRESULT __stdcall get_ThreeD ( /*[out,retval]*/ struct ThreeDFormat * * prop ) = 0; virtual HRESULT __stdcall put_ThreeD ( /*[in]*/ struct ThreeDFormat * prop ) = 0; virtual HRESULT __stdcall get_TextColor ( /*[out,retval]*/ struct ColorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Ligatures ( /*[out,retval]*/ enum WdLigatures * prop ) = 0; virtual HRESULT __stdcall put_Ligatures ( /*[in]*/ enum WdLigatures prop ) = 0; virtual HRESULT __stdcall get_NumberForm ( /*[out,retval]*/ enum WdNumberForm * prop ) = 0; virtual HRESULT __stdcall put_NumberForm ( /*[in]*/ enum WdNumberForm prop ) = 0; virtual HRESULT __stdcall get_NumberSpacing ( /*[out,retval]*/ enum WdNumberSpacing * prop ) = 0; virtual HRESULT __stdcall put_NumberSpacing ( /*[in]*/ enum WdNumberSpacing prop ) = 0; virtual HRESULT __stdcall get_ContextualAlternates ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ContextualAlternates ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_StylisticSet ( /*[out,retval]*/ enum WdStylisticSet * prop ) = 0; virtual HRESULT __stdcall put_StylisticSet ( /*[in]*/ enum WdStylisticSet prop ) = 0; }; enum WdSpanishSpeller { wdSpanishTuteoOnly = 0, wdSpanishTuteoAndVoseo = 1, wdSpanishVoseoOnly = 2 }; enum WdLockType { wdLockNone = 0, wdLockReservation = 1, wdLockEphemeral = 2, wdLockChanged = 3 }; enum XlPieSliceLocation { xlHorizontalCoordinate = 1, xlVerticalCoordinate = 2 }; enum XlPieSliceIndex { xlOuterCounterClockwisePoint = 1, xlOuterCenterPoint = 2, xlOuterClockwisePoint = 3, xlMidClockwiseRadiusPoint = 4, xlCenterPoint = 5, xlMidCounterClockwiseRadiusPoint = 6, xlInnerClockwisePoint = 7, xlInnerCenterPoint = 8, xlInnerCounterClockwisePoint = 9 }; struct __declspec(uuid("8a342fa0-5831-4b5e-82e1-003d0a0c635d")) Point : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Border ( /*[out,retval]*/ struct ChartBorder * * prop ) = 0; virtual HRESULT __stdcall ClearFormats ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Copy ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_DataLabel ( /*[out,retval]*/ struct DataLabel * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Explosion ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Explosion ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HasDataLabel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasDataLabel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Interior ( /*[out,retval]*/ struct Interior * * prop ) = 0; virtual HRESULT __stdcall get_InvertIfNegative ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InvertIfNegative ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerBackgroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerBackgroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerForegroundColorIndex ( /*[out,retval]*/ enum XlColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MarkerForegroundColorIndex ( /*[in]*/ enum XlColorIndex prop ) = 0; virtual HRESULT __stdcall get_MarkerSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MarkerSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MarkerStyle ( /*[out,retval]*/ enum XlMarkerStyle * prop ) = 0; virtual HRESULT __stdcall put_MarkerStyle ( /*[in]*/ enum XlMarkerStyle prop ) = 0; virtual HRESULT __stdcall Paste ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_PictureType ( /*[out,retval]*/ enum XlChartPictureType * prop ) = 0; virtual HRESULT __stdcall put_PictureType ( /*[in]*/ enum XlChartPictureType prop ) = 0; virtual HRESULT __stdcall get_PictureUnit ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall Select ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToSides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToSides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToFront ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToFront ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyPictToEnd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyPictToEnd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shadow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SecondaryPlot ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SecondaryPlot ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct ChartFillFormat * * prop ) = 0; virtual HRESULT __stdcall ApplyDataLabels ( /*[in]*/ enum XlDataLabelsType Type, /*[in]*/ VARIANT LegendKey, /*[in]*/ VARIANT AutoText, /*[in]*/ VARIANT HasLeaderLines, /*[in]*/ VARIANT ShowSeriesName, /*[in]*/ VARIANT ShowCategoryName, /*[in]*/ VARIANT ShowValue, /*[in]*/ VARIANT ShowPercentage, /*[in]*/ VARIANT ShowBubbleSize, /*[in]*/ VARIANT Separator, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Has3DEffect ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Has3DEffect ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct ChartFormat * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PictureUnit2 ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall put_PictureUnit2 ( /*[in]*/ double prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ double * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall PieSliceLocation ( /*[in]*/ enum XlPieSliceLocation loc, /*[in]*/ enum XlPieSliceIndex Index, /*[out,retval]*/ double * prop ) = 0; }; struct __declspec(uuid("c1a870a0-850e-4d38-98a7-741cb8c3bca4")) Points : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Point * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ long Index, /*[out,retval]*/ struct Point * * prop ) = 0; }; enum WdCompatibilityMode { wdWord2003 = 11, wdWord2007 = 12, wdWord2010 = 14, wdWord2012 = 15, wdCurrent = 65535 }; enum WdProtectedViewCloseReason { wdProtectedViewCloseNormal = 0, wdProtectedViewCloseEdit = 1, wdProtectedViewCloseForced = 2 }; enum WdPortugueseReform { wdPortuguesePreReform = 1, wdPortuguesePostReform = 2, wdPortugueseBoth = 3 }; struct __declspec(uuid("000209b7-0000-0000-c000-000000000046")) Options : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AllowAccentedUppercase ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowAccentedUppercase ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_WPHelp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_WPHelp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_WPDocNavKeys ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_WPDocNavKeys ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Pagination ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Pagination ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BlueScreen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BlueScreen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableSound ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableSound ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ConfirmConversions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ConfirmConversions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UpdateLinksAtOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateLinksAtOpen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SendMailAttach ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SendMailAttach ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MeasurementUnit ( /*[out,retval]*/ enum WdMeasurementUnits * prop ) = 0; virtual HRESULT __stdcall put_MeasurementUnit ( /*[in]*/ enum WdMeasurementUnits prop ) = 0; virtual HRESULT __stdcall get_ButtonFieldClicks ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ButtonFieldClicks ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShortMenuNames ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShortMenuNames ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RTFInClipboard ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RTFInClipboard ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UpdateFieldsAtPrint ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateFieldsAtPrint ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintProperties ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintProperties ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintFieldCodes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintFieldCodes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintComments ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintComments ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintHiddenText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintHiddenText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnvelopeFeederInstalled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_UpdateLinksAtPrint ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateLinksAtPrint ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintBackground ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintBackground ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintDrawingObjects ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintDrawingObjects ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultTray ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultTray ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DefaultTrayID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DefaultTrayID ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_CreateBackup ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CreateBackup ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowFastSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowFastSave ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SavePropertiesPrompt ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SavePropertiesPrompt ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SaveNormalPrompt ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SaveNormalPrompt ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SaveInterval ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SaveInterval ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_BackgroundSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BackgroundSave ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_InsertedTextMark ( /*[out,retval]*/ enum WdInsertedTextMark * prop ) = 0; virtual HRESULT __stdcall put_InsertedTextMark ( /*[in]*/ enum WdInsertedTextMark prop ) = 0; virtual HRESULT __stdcall get_DeletedTextMark ( /*[out,retval]*/ enum WdDeletedTextMark * prop ) = 0; virtual HRESULT __stdcall put_DeletedTextMark ( /*[in]*/ enum WdDeletedTextMark prop ) = 0; virtual HRESULT __stdcall get_RevisedLinesMark ( /*[out,retval]*/ enum WdRevisedLinesMark * prop ) = 0; virtual HRESULT __stdcall put_RevisedLinesMark ( /*[in]*/ enum WdRevisedLinesMark prop ) = 0; virtual HRESULT __stdcall get_InsertedTextColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_InsertedTextColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_DeletedTextColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_DeletedTextColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_RevisedLinesColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_RevisedLinesColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_DefaultFilePath ( /*[in]*/ enum WdDefaultFilePath Path, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultFilePath ( /*[in]*/ enum WdDefaultFilePath Path, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Overtype ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Overtype ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReplaceSelection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReplaceSelection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowDragAndDrop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowDragAndDrop ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoWordSelection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoWordSelection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_INSKeyForPaste ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_INSKeyForPaste ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartCutPaste ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SmartCutPaste ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TabIndentKey ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TabIndentKey ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PictureEditor ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PictureEditor ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_AnimateScreenMovements ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AnimateScreenMovements ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_VirusProtection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_VirusProtection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RevisedPropertiesMark ( /*[out,retval]*/ enum WdRevisedPropertiesMark * prop ) = 0; virtual HRESULT __stdcall put_RevisedPropertiesMark ( /*[in]*/ enum WdRevisedPropertiesMark prop ) = 0; virtual HRESULT __stdcall get_RevisedPropertiesColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_RevisedPropertiesColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_SnapToGrid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SnapToGrid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SnapToShapes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SnapToShapes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_GridDistanceHorizontal ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridDistanceHorizontal ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridDistanceVertical ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridDistanceVertical ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridOriginHorizontal ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridOriginHorizontal ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridOriginVertical ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridOriginVertical ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_InlineConversion ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_InlineConversion ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IMEAutomaticControl ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IMEAutomaticControl ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatApplyHeadings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatApplyHeadings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatApplyLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatApplyLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatApplyBulletedLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatApplyBulletedLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatApplyOtherParas ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatApplyOtherParas ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceQuotes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceQuotes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceSymbols ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceSymbols ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceOrdinals ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceOrdinals ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceFractions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceFractions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplacePlainTextEmphasis ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplacePlainTextEmphasis ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatPreserveStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatPreserveStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyHeadings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyHeadings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyBorders ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyBorders ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyBulletedLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyBulletedLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyNumberedLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyNumberedLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceQuotes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceQuotes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceSymbols ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceSymbols ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceOrdinals ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceOrdinals ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceFractions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceFractions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplacePlainTextEmphasis ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplacePlainTextEmphasis ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeFormatListItemBeginning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeFormatListItemBeginning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeDefineStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeDefineStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatPlainTextWordMail ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatPlainTextWordMail ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceHyperlinks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceHyperlinks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceHyperlinks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceHyperlinks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultHighlightColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_DefaultHighlightColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_DefaultBorderLineStyle ( /*[out,retval]*/ enum WdLineStyle * prop ) = 0; virtual HRESULT __stdcall put_DefaultBorderLineStyle ( /*[in]*/ enum WdLineStyle prop ) = 0; virtual HRESULT __stdcall get_CheckSpellingAsYouType ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckSpellingAsYouType ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CheckGrammarAsYouType ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckGrammarAsYouType ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnoreInternetAndFileAddresses ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnoreInternetAndFileAddresses ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowReadabilityStatistics ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowReadabilityStatistics ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnoreUppercase ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnoreUppercase ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnoreMixedDigits ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnoreMixedDigits ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SuggestFromMainDictionaryOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SuggestFromMainDictionaryOnly ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SuggestSpellingCorrections ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SuggestSpellingCorrections ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultBorderLineWidth ( /*[out,retval]*/ enum WdLineWidth * prop ) = 0; virtual HRESULT __stdcall put_DefaultBorderLineWidth ( /*[in]*/ enum WdLineWidth prop ) = 0; virtual HRESULT __stdcall get_CheckGrammarWithSpelling ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckGrammarWithSpelling ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultOpenFormat ( /*[out,retval]*/ enum WdOpenFormat * prop ) = 0; virtual HRESULT __stdcall put_DefaultOpenFormat ( /*[in]*/ enum WdOpenFormat prop ) = 0; virtual HRESULT __stdcall get_PrintDraft ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintDraft ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintReverse ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintReverse ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MapPaperSize ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MapPaperSize ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyTables ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyTables ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatApplyFirstIndents ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatApplyFirstIndents ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatMatchParentheses ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatMatchParentheses ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatReplaceFarEastDashes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatReplaceFarEastDashes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatDeleteAutoSpaces ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatDeleteAutoSpaces ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyFirstIndents ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyFirstIndents ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyDates ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyDates ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyClosings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyClosings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeMatchParentheses ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeMatchParentheses ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceFarEastDashes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceFarEastDashes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeDeleteAutoSpaces ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeDeleteAutoSpaces ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeInsertClosings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeInsertClosings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeAutoLetterWizard ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeAutoLetterWizard ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeInsertOvers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeInsertOvers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayGridLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayGridLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyCase ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyCase ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyByte ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyByte ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyHiragana ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyHiragana ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzySmallKana ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzySmallKana ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyDash ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyDash ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyIterationMark ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyIterationMark ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyKanji ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyKanji ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyOldKana ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyOldKana ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyProlongedSoundMark ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyProlongedSoundMark ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyDZ ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyDZ ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyBV ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyBV ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyTC ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyTC ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyHF ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyHF ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyZJ ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyZJ ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyAY ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyAY ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyKiKu ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyKiKu ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzyPunctuation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzyPunctuation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzySpace ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzySpace ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyFarEastFontsToAscii ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyFarEastFontsToAscii ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ConvertHighAnsiToFarEast ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ConvertHighAnsiToFarEast ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintOddPagesInAscendingOrder ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintOddPagesInAscendingOrder ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintEvenPagesInAscendingOrder ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintEvenPagesInAscendingOrder ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultBorderColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_DefaultBorderColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_EnableMisusedWordsDictionary ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableMisusedWordsDictionary ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowCombinedAuxiliaryForms ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowCombinedAuxiliaryForms ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HangulHanjaFastConversion ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HangulHanjaFastConversion ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CheckHangulEndings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckHangulEndings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableHangulHanjaRecentOrdering ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableHangulHanjaRecentOrdering ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MultipleWordConversionsMode ( /*[out,retval]*/ enum WdMultipleWordConversionsMode * prop ) = 0; virtual HRESULT __stdcall put_MultipleWordConversionsMode ( /*[in]*/ enum WdMultipleWordConversionsMode prop ) = 0; virtual HRESULT __stdcall SetWPHelpOptions ( /*[in]*/ VARIANT * CommandKeyHelp = &vtMissing, /*[in]*/ VARIANT * DocNavigationKeys = &vtMissing, /*[in]*/ VARIANT * MouseSimulation = &vtMissing, /*[in]*/ VARIANT * DemoGuidance = &vtMissing, /*[in]*/ VARIANT * DemoSpeed = &vtMissing, /*[in]*/ VARIANT * HelpType = &vtMissing ) = 0; virtual HRESULT __stdcall get_DefaultBorderColor ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_DefaultBorderColor ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_AllowPixelUnits ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowPixelUnits ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseCharacterUnit ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseCharacterUnit ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowCompoundNounProcessing ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowCompoundNounProcessing ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoKeyboardSwitching ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoKeyboardSwitching ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DocumentViewDirection ( /*[out,retval]*/ enum WdDocumentViewDirection * prop ) = 0; virtual HRESULT __stdcall put_DocumentViewDirection ( /*[in]*/ enum WdDocumentViewDirection prop ) = 0; virtual HRESULT __stdcall get_ArabicNumeral ( /*[out,retval]*/ enum WdArabicNumeral * prop ) = 0; virtual HRESULT __stdcall put_ArabicNumeral ( /*[in]*/ enum WdArabicNumeral prop ) = 0; virtual HRESULT __stdcall get_MonthNames ( /*[out,retval]*/ enum WdMonthNames * prop ) = 0; virtual HRESULT __stdcall put_MonthNames ( /*[in]*/ enum WdMonthNames prop ) = 0; virtual HRESULT __stdcall get_CursorMovement ( /*[out,retval]*/ enum WdCursorMovement * prop ) = 0; virtual HRESULT __stdcall put_CursorMovement ( /*[in]*/ enum WdCursorMovement prop ) = 0; virtual HRESULT __stdcall get_VisualSelection ( /*[out,retval]*/ enum WdVisualSelection * prop ) = 0; virtual HRESULT __stdcall put_VisualSelection ( /*[in]*/ enum WdVisualSelection prop ) = 0; virtual HRESULT __stdcall get_ShowDiacritics ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowDiacritics ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowControlCharacters ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowControlCharacters ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AddControlCharacters ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AddControlCharacters ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AddBiDirectionalMarksWhenSavingTextFile ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AddBiDirectionalMarksWhenSavingTextFile ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrictInitialAlefHamza ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrictInitialAlefHamza ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrictFinalYaa ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrictFinalYaa ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HebrewMode ( /*[out,retval]*/ enum WdHebSpellStart * prop ) = 0; virtual HRESULT __stdcall put_HebrewMode ( /*[in]*/ enum WdHebSpellStart prop ) = 0; virtual HRESULT __stdcall get_ArabicMode ( /*[out,retval]*/ enum WdAraSpeller * prop ) = 0; virtual HRESULT __stdcall put_ArabicMode ( /*[in]*/ enum WdAraSpeller prop ) = 0; virtual HRESULT __stdcall get_AllowClickAndTypeMouse ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowClickAndTypeMouse ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseGermanSpellingReform ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseGermanSpellingReform ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_InterpretHighAnsi ( /*[out,retval]*/ enum WdHighAnsiText * prop ) = 0; virtual HRESULT __stdcall put_InterpretHighAnsi ( /*[in]*/ enum WdHighAnsiText prop ) = 0; virtual HRESULT __stdcall get_AddHebDoubleQuote ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AddHebDoubleQuote ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseDiffDiacColor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseDiffDiacColor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DiacriticColorVal ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_DiacriticColorVal ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_OptimizeForWord97byDefault ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OptimizeForWord97byDefault ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LocalNetworkFile ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LocalNetworkFile ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TypeNReplace ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TypeNReplace ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SequenceCheck ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SequenceCheck ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BackgroundOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BackgroundOpen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisableFeaturesbyDefault ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisableFeaturesbyDefault ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteAdjustWordSpacing ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteAdjustWordSpacing ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteAdjustParagraphSpacing ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteAdjustParagraphSpacing ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteAdjustTableFormatting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteAdjustTableFormatting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteSmartStyleBehavior ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteSmartStyleBehavior ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteMergeFromPPT ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteMergeFromPPT ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteMergeFromXL ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteMergeFromXL ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CtrlClickHyperlinkToOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CtrlClickHyperlinkToOpen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PictureWrapType ( /*[out,retval]*/ enum WdWrapTypeMerged * prop ) = 0; virtual HRESULT __stdcall put_PictureWrapType ( /*[in]*/ enum WdWrapTypeMerged prop ) = 0; virtual HRESULT __stdcall get_DisableFeaturesIntroducedAfterbyDefault ( /*[out,retval]*/ enum WdDisableFeaturesIntroducedAfter * prop ) = 0; virtual HRESULT __stdcall put_DisableFeaturesIntroducedAfterbyDefault ( /*[in]*/ enum WdDisableFeaturesIntroducedAfter prop ) = 0; virtual HRESULT __stdcall get_PasteSmartCutPaste ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteSmartCutPaste ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayPasteOptions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayPasteOptions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PromptUpdateStyle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PromptUpdateStyle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultEPostageApp ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultEPostageApp ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DefaultTextEncoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall put_DefaultTextEncoding ( /*[in]*/ enum Office::MsoEncoding prop ) = 0; virtual HRESULT __stdcall get_LabelSmartTags ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LabelSmartTags ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplaySmartTagButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplaySmartTagButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_WarnBeforeSavingPrintingSendingMarkup ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_WarnBeforeSavingPrintingSendingMarkup ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StoreRSIDOnSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StoreRSIDOnSave ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowFormatError ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFormatError ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormatScanning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormatScanning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteMergeLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteMergeLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoCreateNewDrawings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoCreateNewDrawings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartParaSelection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SmartParaSelection ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RevisionsBalloonPrintOrientation ( /*[out,retval]*/ enum WdRevisionsBalloonPrintOrientation * prop ) = 0; virtual HRESULT __stdcall put_RevisionsBalloonPrintOrientation ( /*[in]*/ enum WdRevisionsBalloonPrintOrientation prop ) = 0; virtual HRESULT __stdcall get_CommentsColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_CommentsColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_PrintXMLTag ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintXMLTag ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintBackgrounds ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintBackgrounds ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowReadingMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowReadingMode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowMarkupOpenSave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowMarkupOpenSave ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartCursoring ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SmartCursoring ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MoveToTextMark ( /*[out,retval]*/ enum WdMoveToTextMark * prop ) = 0; virtual HRESULT __stdcall put_MoveToTextMark ( /*[in]*/ enum WdMoveToTextMark prop ) = 0; virtual HRESULT __stdcall get_MoveFromTextMark ( /*[out,retval]*/ enum WdMoveFromTextMark * prop ) = 0; virtual HRESULT __stdcall put_MoveFromTextMark ( /*[in]*/ enum WdMoveFromTextMark prop ) = 0; virtual HRESULT __stdcall get_BibliographyStyle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_BibliographyStyle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_BibliographySort ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_BibliographySort ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_InsertedCellColor ( /*[out,retval]*/ enum WdCellColor * prop ) = 0; virtual HRESULT __stdcall put_InsertedCellColor ( /*[in]*/ enum WdCellColor prop ) = 0; virtual HRESULT __stdcall get_DeletedCellColor ( /*[out,retval]*/ enum WdCellColor * prop ) = 0; virtual HRESULT __stdcall put_DeletedCellColor ( /*[in]*/ enum WdCellColor prop ) = 0; virtual HRESULT __stdcall get_MergedCellColor ( /*[out,retval]*/ enum WdCellColor * prop ) = 0; virtual HRESULT __stdcall put_MergedCellColor ( /*[in]*/ enum WdCellColor prop ) = 0; virtual HRESULT __stdcall get_SplitCellColor ( /*[out,retval]*/ enum WdCellColor * prop ) = 0; virtual HRESULT __stdcall put_SplitCellColor ( /*[in]*/ enum WdCellColor prop ) = 0; virtual HRESULT __stdcall get_ShowSelectionFloaties ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSelectionFloaties ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowMenuFloaties ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowMenuFloaties ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowDevTools ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowDevTools ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableLivePreview ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableLivePreview ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OMathAutoBuildUp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OMathAutoBuildUp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AlwaysUseClearType ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlwaysUseClearType ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PasteFormatWithinDocument ( /*[out,retval]*/ enum WdPasteOptions * prop ) = 0; virtual HRESULT __stdcall put_PasteFormatWithinDocument ( /*[in]*/ enum WdPasteOptions prop ) = 0; virtual HRESULT __stdcall get_PasteFormatBetweenDocuments ( /*[out,retval]*/ enum WdPasteOptions * prop ) = 0; virtual HRESULT __stdcall put_PasteFormatBetweenDocuments ( /*[in]*/ enum WdPasteOptions prop ) = 0; virtual HRESULT __stdcall get_PasteFormatBetweenStyledDocuments ( /*[out,retval]*/ enum WdPasteOptions * prop ) = 0; virtual HRESULT __stdcall put_PasteFormatBetweenStyledDocuments ( /*[in]*/ enum WdPasteOptions prop ) = 0; virtual HRESULT __stdcall get_PasteFormatFromExternalSource ( /*[out,retval]*/ enum WdPasteOptions * prop ) = 0; virtual HRESULT __stdcall put_PasteFormatFromExternalSource ( /*[in]*/ enum WdPasteOptions prop ) = 0; virtual HRESULT __stdcall get_PasteOptionKeepBulletsAndNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PasteOptionKeepBulletsAndNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_INSKeyForOvertype ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_INSKeyForOvertype ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RepeatWord ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RepeatWord ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FrenchReform ( /*[out,retval]*/ enum WdFrenchSpeller * prop ) = 0; virtual HRESULT __stdcall put_FrenchReform ( /*[in]*/ enum WdFrenchSpeller prop ) = 0; virtual HRESULT __stdcall get_ContextualSpeller ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ContextualSpeller ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MoveToTextColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MoveToTextColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_MoveFromTextColor ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_MoveFromTextColor ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_OMathCopyLF ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OMathCopyLF ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseNormalStyleForList ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseNormalStyleForList ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowOpenInDraftView ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowOpenInDraftView ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableLegacyIMEMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableLegacyIMEMode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DoNotPromptForConvert ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DoNotPromptForConvert ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrecisePositioning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrecisePositioning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UpdateStyleListBehavior ( /*[out,retval]*/ enum WdUpdateStyleListBehavior * prop ) = 0; virtual HRESULT __stdcall put_UpdateStyleListBehavior ( /*[in]*/ enum WdUpdateStyleListBehavior prop ) = 0; virtual HRESULT __stdcall get_StrictTaaMarboota ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrictTaaMarboota ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrictRussianE ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrictRussianE ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SpanishMode ( /*[out,retval]*/ enum WdSpanishSpeller * prop ) = 0; virtual HRESULT __stdcall put_SpanishMode ( /*[in]*/ enum WdSpanishSpeller prop ) = 0; virtual HRESULT __stdcall get_PortugalReform ( /*[out,retval]*/ enum WdPortugueseReform * prop ) = 0; virtual HRESULT __stdcall put_PortugalReform ( /*[in]*/ enum WdPortugueseReform prop ) = 0; virtual HRESULT __stdcall get_BrazilReform ( /*[out,retval]*/ enum WdPortugueseReform * prop ) = 0; virtual HRESULT __stdcall put_BrazilReform ( /*[in]*/ enum WdPortugueseReform prop ) = 0; virtual HRESULT __stdcall get_UpdateFieldsWithTrackedChangesAtPrint ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateFieldsWithTrackedChangesAtPrint ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayAlignmentGuides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayAlignmentGuides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PageAlignmentGuides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PageAlignmentGuides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarginAlignmentGuides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MarginAlignmentGuides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ParagraphAlignmentGuides ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ParagraphAlignmentGuides ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableLiveDrag ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableLiveDrag ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseSubPixelPositioning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseSubPixelPositioning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AlertIfNotDefault ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlertIfNotDefault ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableProofingToolsAdvertisement ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnableProofingToolsAdvertisement ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PreferCloudSaveLocations ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PreferCloudSaveLocations ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SkyDriveSignInOption ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SkyDriveSignInOption ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ExpandHeadingsOnOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ExpandHeadingsOnOpen ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("4dacc469-630b-457e-9c8f-08158d57fc7c")) FullSeriesCollection : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Series * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct Series * * prop ) = 0; }; struct __declspec(uuid("5a90588c-c066-4bd4-8fe5-722454a15553")) ChartCategory : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_IsFiltered ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IsFiltered ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("04124c2d-039d-4442-9c68-8fa38d11ddd6")) CategoryCollection : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct ChartCategory * * prop ) = 0; virtual HRESULT __stdcall _NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall _Default ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct ChartCategory * * prop ) = 0; }; struct __declspec(uuid("b67de22c-bc01-4a73-a99b-070d1b5a795d")) Broadcast : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AttendeeUrl ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_State ( /*[out,retval]*/ enum Office::MsoBroadcastState * prop ) = 0; virtual HRESULT __stdcall get_Capabilities ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PresenterServiceUrl ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SessionID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall Start ( /*[in]*/ BSTR serverUrl ) = 0; virtual HRESULT __stdcall Pause ( ) = 0; virtual HRESULT __stdcall Resume ( ) = 0; virtual HRESULT __stdcall End ( ) = 0; virtual HRESULT __stdcall AddMeetingNotes ( /*[in]*/ BSTR notesUrl, /*[in]*/ BSTR notesWacUrl ) = 0; }; enum __declspec(uuid("1d81c8d5-149b-481d-b4af-7605e0942faf")) WdContentControlAppearance { wdContentControlBoundingBox = 0, wdContentControlTags = 1, wdContentControlHidden = 2 }; enum __declspec(uuid("38b309af-090c-47bb-8cfa-8cf758eca76f")) WdContentControlLevel { wdContentControlLevelInline = 0, wdContentControlLevelParagraph = 1, wdContentControlLevelRow = 2, wdContentControlLevelCell = 3 }; enum __declspec(uuid("7f9993cc-8bd9-4fa0-abef-d1aad3429a14")) XlCategoryLabelLevel { xlCategoryLabelLevelNone = -3, xlCategoryLabelLevelCustom = -2, xlCategoryLabelLevelAll = -1 }; enum __declspec(uuid("336c75f2-4e4c-47c7-b4a9-d99aa7f81591")) XlSeriesNameLevel { xlSeriesNameLevelNone = -3, xlSeriesNameLevelCustom = -2, xlSeriesNameLevelAll = -1 }; struct __declspec(uuid("6ffa84bb-a350-4442-bb53-a43653459a84")) Chart : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_HasTitle ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasTitle ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ChartTitle ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartTitle * * prop ) = 0; virtual HRESULT __stdcall get_DepthPercent ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DepthPercent ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Elevation ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Elevation ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_GapDepth ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_GapDepth ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HeightPercent ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HeightPercent ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Perspective ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Perspective ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RightAngleAxes ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_RightAngleAxes ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_Rotation ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Rotation ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall get_DisplayBlanksAs ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ enum XlDisplayBlanksAs * prop ) = 0; virtual HRESULT __stdcall put_DisplayBlanksAs ( /*[in,lcid]*/ long lcid, /*[in]*/ enum XlDisplayBlanksAs prop ) = 0; virtual HRESULT __stdcall get_ChartGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall SeriesCollection ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SubType ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SubType ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in,lcid]*/ long lcid, /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Corners ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct Corners * * prop ) = 0; virtual HRESULT __stdcall ApplyDataLabels ( /*[in]*/ enum XlDataLabelsType Type, /*[in]*/ VARIANT LegendKey = vtMissing, /*[in]*/ VARIANT AutoText = vtMissing, /*[in]*/ VARIANT HasLeaderLines = vtMissing, /*[in]*/ VARIANT ShowSeriesName = vtMissing, /*[in]*/ VARIANT ShowCategoryName = vtMissing, /*[in]*/ VARIANT ShowValue = vtMissing, /*[in]*/ VARIANT ShowPercentage = vtMissing, /*[in]*/ VARIANT ShowBubbleSize = vtMissing, /*[in]*/ VARIANT Separator = vtMissing, /*[in,lcid]*/ long lcid = 0 ) = 0; virtual HRESULT __stdcall get_ChartType ( /*[out,retval]*/ enum Office::XlChartType * prop ) = 0; virtual HRESULT __stdcall put_ChartType ( /*[in]*/ enum Office::XlChartType prop ) = 0; virtual HRESULT __stdcall get_HasDataTable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasDataTable ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ApplyCustomType ( /*[in]*/ enum Office::XlChartType ChartType, /*[in]*/ VARIANT TypeName = vtMissing ) = 0; virtual HRESULT __stdcall GetChartElement ( /*[in]*/ long x, /*[in]*/ long y, /*[out]*/ long * ElementID, /*[out]*/ long * Arg1, /*[out]*/ long * Arg2 ) = 0; virtual HRESULT __stdcall SetSourceData ( /*[in]*/ BSTR Source, /*[in]*/ VARIANT PlotBy = vtMissing ) = 0; virtual HRESULT __stdcall get_PlotBy ( /*[out,retval]*/ enum XlRowCol * prop ) = 0; virtual HRESULT __stdcall put_PlotBy ( /*[in]*/ enum XlRowCol prop ) = 0; virtual HRESULT __stdcall get_HasLegend ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasLegend ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Legend ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct Legend * * prop ) = 0; virtual HRESULT __stdcall Axes ( /*[in]*/ VARIANT Type, /*[in]*/ enum XlAxisGroup AxisGroup, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_HasAxis ( /*[in]*/ VARIANT Index1, /*[in]*/ VARIANT Index2, /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_HasAxis ( /*[in]*/ VARIANT Index1, /*[in]*/ VARIANT Index2 = vtMissing, /*[in,lcid]*/ long lcid = 0, /*[in]*/ VARIANT prop = vtMissing ) = 0; virtual HRESULT __stdcall get_Walls ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct Walls * * prop ) = 0; virtual HRESULT __stdcall get_Floor ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct Floor * * prop ) = 0; virtual HRESULT __stdcall get_PlotArea ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct PlotArea * * prop ) = 0; virtual HRESULT __stdcall get_PlotVisibleOnly ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PlotVisibleOnly ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ChartArea ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartArea * * prop ) = 0; virtual HRESULT __stdcall AutoFormat ( /*[in]*/ long Gallery, /*[in]*/ VARIANT Format = vtMissing ) = 0; virtual HRESULT __stdcall get_AutoScaling ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoScaling ( /*[in,lcid]*/ long lcid, /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall SetBackgroundPicture ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall ChartWizard ( /*[in]*/ VARIANT Source = vtMissing, /*[in]*/ VARIANT Gallery = vtMissing, /*[in]*/ VARIANT Format = vtMissing, /*[in]*/ VARIANT PlotBy = vtMissing, /*[in]*/ VARIANT CategoryLabels = vtMissing, /*[in]*/ VARIANT SeriesLabels = vtMissing, /*[in]*/ VARIANT HasLegend = vtMissing, /*[in]*/ VARIANT Title = vtMissing, /*[in]*/ VARIANT CategoryTitle = vtMissing, /*[in]*/ VARIANT ValueTitle = vtMissing, /*[in]*/ VARIANT ExtraTitle = vtMissing, /*[in,lcid]*/ long lcid = 0 ) = 0; virtual HRESULT __stdcall CopyPicture ( /*[in]*/ enum XlPictureAppearance Appearance, /*[in]*/ enum XlCopyPictureFormat Format, /*[in]*/ enum XlPictureAppearance Size, /*[in,lcid]*/ long lcid = 0 ) = 0; virtual HRESULT __stdcall get_DataTable ( /*[out,retval]*/ struct DataTable * * prop ) = 0; virtual HRESULT __stdcall Paste ( /*[in]*/ VARIANT Type = vtMissing, /*[in,lcid]*/ long lcid = 0 ) = 0; virtual HRESULT __stdcall get_BarShape ( /*[out,retval]*/ enum XlBarShape * prop ) = 0; virtual HRESULT __stdcall put_BarShape ( /*[in]*/ enum XlBarShape prop ) = 0; virtual HRESULT __stdcall Export ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT FilterName, /*[in]*/ VARIANT Interactive, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SetDefaultChart ( /*[in]*/ VARIANT Name ) = 0; virtual HRESULT __stdcall ApplyChartTemplate ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall SaveChartTemplate ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall get_SideWall ( /*[out,retval]*/ struct Walls * * prop ) = 0; virtual HRESULT __stdcall get_BackWall ( /*[out,retval]*/ struct Walls * * prop ) = 0; virtual HRESULT __stdcall get_ChartStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ChartStyle ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall ClearToMatchStyle ( ) = 0; virtual HRESULT __stdcall get_PivotLayout ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_HasPivotFields ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasPivotFields ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowDataLabelsOverMaximum ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowDataLabelsOverMaximum ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ApplyLayout ( /*[in]*/ long Layout, /*[in]*/ VARIANT ChartType = vtMissing ) = 0; virtual HRESULT __stdcall Refresh ( ) = 0; virtual HRESULT __stdcall SetElement ( /*[in]*/ enum Office::MsoChartElementType Element ) = 0; virtual HRESULT __stdcall get_ChartData ( /*[out,retval]*/ struct ChartData * * prop ) = 0; virtual HRESULT __stdcall get_Shapes ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Area3DGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall AreaGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Bar3DGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall BarGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Column3DGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall ColumnGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Line3DGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall LineGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Pie3DGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall PieGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall DoughnutGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall RadarGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_SurfaceGroup ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ struct ChartGroup * * prop ) = 0; virtual HRESULT __stdcall XYGroups ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall Copy ( /*[in]*/ VARIANT Before = vtMissing, /*[in]*/ VARIANT After = vtMissing, /*[in,lcid]*/ long lcid = 0 ) = 0; virtual HRESULT __stdcall Select ( /*[in]*/ VARIANT Replace, /*[in,lcid]*/ long lcid, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ShowReportFilterFieldButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowReportFilterFieldButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowLegendFieldButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowLegendFieldButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowAxisFieldButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAxisFieldButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowValueFieldButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowValueFieldButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowAllFieldButtons ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAllFieldButtons ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall FullSeriesCollection ( /*[in]*/ VARIANT Index, /*[in,lcid]*/ long lcid, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CategoryLabelLevel ( /*[out,retval]*/ enum XlCategoryLabelLevel * prop ) = 0; virtual HRESULT __stdcall put_CategoryLabelLevel ( /*[in]*/ enum XlCategoryLabelLevel prop ) = 0; virtual HRESULT __stdcall get_SeriesNameLevel ( /*[out,retval]*/ enum XlSeriesNameLevel * prop ) = 0; virtual HRESULT __stdcall put_SeriesNameLevel ( /*[in]*/ enum XlSeriesNameLevel prop ) = 0; virtual HRESULT __stdcall get_HasHiddenContent ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall DeleteHiddenContent ( ) = 0; virtual HRESULT __stdcall get_ChartColor ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ChartColor ( /*[in]*/ VARIANT prop ) = 0; virtual HRESULT __stdcall ClearToMatchColorStyle ( ) = 0; }; enum __declspec(uuid("d30c2db8-0ee9-40f9-ab5a-5df15f3cf2eb")) WdPageColor { wdPageColorNone = 0, wdPageColorSepia = 1, wdPageColorInverse = 2 }; enum __declspec(uuid("898e892b-feaa-4c75-ab24-cce8e6f123ed")) WdColumnWidth { wdColumnWidthNarrow = 1, wdColumnWidthDefault = 2, wdColumnWidthWide = 3 }; enum __declspec(uuid("e775b5ae-2434-4f43-8f25-a9a4bbb2243d")) WdRevisionsMarkup { wdRevisionsMarkupNone = 0, wdRevisionsMarkupSimple = 1, wdRevisionsMarkupAll = 2 }; struct __declspec(uuid("d523c26b-7278-4fa9-aa0b-0827dc8b41ce")) RevisionsFilter : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_View ( /*[out,retval]*/ enum WdRevisionsView * prop ) = 0; virtual HRESULT __stdcall put_View ( /*[in]*/ enum WdRevisionsView prop ) = 0; virtual HRESULT __stdcall get_Markup ( /*[out,retval]*/ enum WdRevisionsMarkup * prop ) = 0; virtual HRESULT __stdcall put_Markup ( /*[in]*/ enum WdRevisionsMarkup prop ) = 0; virtual HRESULT __stdcall get_Reviewers ( /*[out,retval]*/ struct Reviewers * * prop ) = 0; virtual HRESULT __stdcall ToggleShowAllReviewers ( ) = 0; }; struct __declspec(uuid("000209a5-0000-0000-c000-000000000046")) View : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdViewType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdViewType prop ) = 0; virtual HRESULT __stdcall get_FullScreen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FullScreen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Draft ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Draft ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowAll ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAll ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowFieldCodes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFieldCodes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MailMergeDataView ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MailMergeDataView ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Magnifier ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Magnifier ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowFirstLineOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFirstLineOnly ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowFormat ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFormat ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Zoom ( /*[out,retval]*/ struct Zoom * * prop ) = 0; virtual HRESULT __stdcall get_ShowObjectAnchors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowObjectAnchors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowTextBoundaries ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowTextBoundaries ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowHighlight ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowHighlight ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowDrawings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowDrawings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowTabs ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowTabs ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowSpaces ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSpaces ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowParagraphs ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowParagraphs ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowHyphens ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowHyphens ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowHiddenText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowHiddenText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_WrapToWindow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_WrapToWindow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowPicturePlaceHolders ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowPicturePlaceHolders ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowBookmarks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowBookmarks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FieldShading ( /*[out,retval]*/ enum WdFieldShading * prop ) = 0; virtual HRESULT __stdcall put_FieldShading ( /*[in]*/ enum WdFieldShading prop ) = 0; virtual HRESULT __stdcall get_ShowAnimation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAnimation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TableGridlines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TableGridlines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnlargeFontsLessThan ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_EnlargeFontsLessThan ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShowMainTextLayer ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowMainTextLayer ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SeekView ( /*[out,retval]*/ enum WdSeekView * prop ) = 0; virtual HRESULT __stdcall put_SeekView ( /*[in]*/ enum WdSeekView prop ) = 0; virtual HRESULT __stdcall get_SplitSpecial ( /*[out,retval]*/ enum WdSpecialPane * prop ) = 0; virtual HRESULT __stdcall put_SplitSpecial ( /*[in]*/ enum WdSpecialPane prop ) = 0; virtual HRESULT __stdcall get_BrowseToWindow ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_BrowseToWindow ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShowOptionalBreaks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowOptionalBreaks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall CollapseOutline ( /*[in]*/ VARIANT * Range = &vtMissing ) = 0; virtual HRESULT __stdcall ExpandOutline ( /*[in]*/ VARIANT * Range = &vtMissing ) = 0; virtual HRESULT __stdcall ShowAllHeadings ( ) = 0; virtual HRESULT __stdcall ShowHeading ( /*[in]*/ long Level ) = 0; virtual HRESULT __stdcall PreviousHeaderFooter ( ) = 0; virtual HRESULT __stdcall NextHeaderFooter ( ) = 0; virtual HRESULT __stdcall get_DisplayPageBoundaries ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayPageBoundaries ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplaySmartTags ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplaySmartTags ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowRevisionsAndComments ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowRevisionsAndComments ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowComments ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowComments ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowInsertionsAndDeletions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowInsertionsAndDeletions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowFormatChanges ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowFormatChanges ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RevisionsView ( /*[out,retval]*/ enum WdRevisionsView * prop ) = 0; virtual HRESULT __stdcall put_RevisionsView ( /*[in]*/ enum WdRevisionsView prop ) = 0; virtual HRESULT __stdcall get_RevisionsMode ( /*[out,retval]*/ enum WdRevisionsMode * prop ) = 0; virtual HRESULT __stdcall put_RevisionsMode ( /*[in]*/ enum WdRevisionsMode prop ) = 0; virtual HRESULT __stdcall get_RevisionsBalloonWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RevisionsBalloonWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RevisionsBalloonWidthType ( /*[out,retval]*/ enum WdRevisionsBalloonWidthType * prop ) = 0; virtual HRESULT __stdcall put_RevisionsBalloonWidthType ( /*[in]*/ enum WdRevisionsBalloonWidthType prop ) = 0; virtual HRESULT __stdcall get_RevisionsBalloonSide ( /*[out,retval]*/ enum WdRevisionsBalloonMargin * prop ) = 0; virtual HRESULT __stdcall put_RevisionsBalloonSide ( /*[in]*/ enum WdRevisionsBalloonMargin prop ) = 0; virtual HRESULT __stdcall get_Reviewers ( /*[out,retval]*/ struct Reviewers * * prop ) = 0; virtual HRESULT __stdcall get_RevisionsBalloonShowConnectingLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RevisionsBalloonShowConnectingLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadingLayout ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayout ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowXMLMarkup ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ShowXMLMarkup ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShadeEditableRanges ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ShadeEditableRanges ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ShowInkAnnotations ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowInkAnnotations ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayBackgrounds ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayBackgrounds ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutActualView ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutActualView ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutAllowMultiplePages ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutAllowMultiplePages ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutAllowEditing ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutAllowEditing ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutTruncateMargins ( /*[out,retval]*/ enum WdReadingLayoutMargin * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutTruncateMargins ( /*[in]*/ enum WdReadingLayoutMargin prop ) = 0; virtual HRESULT __stdcall get_ShowMarkupAreaHighlight ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowMarkupAreaHighlight ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Panning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Panning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowCropMarks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowCropMarks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarkupMode ( /*[out,retval]*/ enum WdRevisionsMode * prop ) = 0; virtual HRESULT __stdcall put_MarkupMode ( /*[in]*/ enum WdRevisionsMode prop ) = 0; virtual HRESULT __stdcall get_ConflictMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ConflictMode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowOtherAuthors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowOtherAuthors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ExpandAllHeadings ( ) = 0; virtual HRESULT __stdcall CollapseAllHeadings ( ) = 0; virtual HRESULT __stdcall ForceOffscreenUpdate ( ) = 0; virtual HRESULT __stdcall ForceLowresUpdate ( ) = 0; virtual HRESULT __stdcall get_RevisionsFilter ( /*[out,retval]*/ struct RevisionsFilter * * prop ) = 0; virtual HRESULT __stdcall get_PageColor ( /*[out,retval]*/ enum WdPageColor * prop ) = 0; virtual HRESULT __stdcall put_PageColor ( /*[in]*/ enum WdPageColor prop ) = 0; virtual HRESULT __stdcall get_ColumnWidth ( /*[out,retval]*/ enum WdColumnWidth * prop ) = 0; virtual HRESULT __stdcall put_ColumnWidth ( /*[in]*/ enum WdColumnWidth prop ) = 0; }; struct __declspec(uuid("00020970-0000-0000-c000-000000000046")) _Application : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Documents ( /*[out,retval]*/ struct Documents * * prop ) = 0; virtual HRESULT __stdcall get_Windows ( /*[out,retval]*/ struct Windows * * prop ) = 0; virtual HRESULT __stdcall get_ActiveDocument ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_ActiveWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall get_Selection ( /*[out,retval]*/ struct Selection * * prop ) = 0; virtual HRESULT __stdcall get_WordBasic ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_RecentFiles ( /*[out,retval]*/ struct RecentFiles * * prop ) = 0; virtual HRESULT __stdcall get_NormalTemplate ( /*[out,retval]*/ struct Template * * prop ) = 0; virtual HRESULT __stdcall get_System ( /*[out,retval]*/ struct System * * prop ) = 0; virtual HRESULT __stdcall get_AutoCorrect ( /*[out,retval]*/ struct AutoCorrect * * prop ) = 0; virtual HRESULT __stdcall get_FontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_LandscapeFontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_PortraitFontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_Languages ( /*[out,retval]*/ struct Languages * * prop ) = 0; virtual HRESULT __stdcall get_Assistant ( /*[out,retval]*/ struct Office::Assistant * * prop ) = 0; virtual HRESULT __stdcall get_Browser ( /*[out,retval]*/ struct Browser * * prop ) = 0; virtual HRESULT __stdcall get_FileConverters ( /*[out,retval]*/ struct FileConverters * * prop ) = 0; virtual HRESULT __stdcall get_MailingLabel ( /*[out,retval]*/ struct MailingLabel * * prop ) = 0; virtual HRESULT __stdcall get_Dialogs ( /*[out,retval]*/ struct Dialogs * * prop ) = 0; virtual HRESULT __stdcall get_CaptionLabels ( /*[out,retval]*/ struct CaptionLabels * * prop ) = 0; virtual HRESULT __stdcall get_AutoCaptions ( /*[out,retval]*/ struct AutoCaptions * * prop ) = 0; virtual HRESULT __stdcall get_AddIns ( /*[out,retval]*/ struct AddIns * * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Version ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ScreenUpdating ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ScreenUpdating ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintPreview ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintPreview ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Tasks ( /*[out,retval]*/ struct Tasks * * prop ) = 0; virtual HRESULT __stdcall get_DisplayStatusBar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayStatusBar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SpecialMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_UsableWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_UsableHeight ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_MathCoprocessorAvailable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_MouseAvailable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_International ( /*[in]*/ enum WdInternationalIndex Index, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Build ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_CapsLock ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_NumLock ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_UserName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_UserName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_UserInitials ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_UserInitials ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_UserAddress ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_UserAddress ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MacroContainer ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_DisplayRecentFiles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayRecentFiles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CommandBars ( /*[out,retval]*/ struct Office::_CommandBars * * prop ) = 0; virtual HRESULT __stdcall get_SynonymInfo ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * LanguageID, /*[out,retval]*/ struct SynonymInfo * * prop ) = 0; virtual HRESULT __stdcall get_VBE ( /*[out,retval]*/ struct VBIDE::VBE * * prop ) = 0; virtual HRESULT __stdcall get_DefaultSaveFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultSaveFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ListGalleries ( /*[out,retval]*/ struct ListGalleries * * prop ) = 0; virtual HRESULT __stdcall get_ActivePrinter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ActivePrinter ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Templates ( /*[out,retval]*/ struct Templates * * prop ) = 0; virtual HRESULT __stdcall get_CustomizationContext ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall put_CustomizationContext ( /*[in]*/ IDispatch * prop ) = 0; virtual HRESULT __stdcall get_KeyBindings ( /*[out,retval]*/ struct KeyBindings * * prop ) = 0; virtual HRESULT __stdcall get_KeysBoundTo ( /*[in]*/ enum WdKeyCategory KeyCategory, /*[in]*/ BSTR Command, /*[in]*/ VARIANT * CommandParameter, /*[out,retval]*/ struct KeysBoundTo * * prop ) = 0; virtual HRESULT __stdcall get_FindKey ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_DisplayScrollBars ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayScrollBars ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StartupPath ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_StartupPath ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_BackgroundSavingStatus ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_BackgroundPrintingStatus ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WindowState ( /*[out,retval]*/ enum WdWindowState * prop ) = 0; virtual HRESULT __stdcall put_WindowState ( /*[in]*/ enum WdWindowState prop ) = 0; virtual HRESULT __stdcall get_DisplayAutoCompleteTips ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayAutoCompleteTips ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Options ( /*[out,retval]*/ struct Options * * prop ) = 0; virtual HRESULT __stdcall get_DisplayAlerts ( /*[out,retval]*/ enum WdAlertLevel * prop ) = 0; virtual HRESULT __stdcall put_DisplayAlerts ( /*[in]*/ enum WdAlertLevel prop ) = 0; virtual HRESULT __stdcall get_CustomDictionaries ( /*[out,retval]*/ struct Dictionaries * * prop ) = 0; virtual HRESULT __stdcall get_PathSeparator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_StatusBar ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall get_MAPIAvailable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_DisplayScreenTips ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayScreenTips ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EnableCancelKey ( /*[out,retval]*/ enum WdEnableCancelKey * prop ) = 0; virtual HRESULT __stdcall put_EnableCancelKey ( /*[in]*/ enum WdEnableCancelKey prop ) = 0; virtual HRESULT __stdcall get_UserControl ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_FileSearch ( /*[out,retval]*/ struct Office::FileSearch * * prop ) = 0; virtual HRESULT __stdcall get_MailSystem ( /*[out,retval]*/ enum WdMailSystem * prop ) = 0; virtual HRESULT __stdcall get_DefaultTableSeparator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultTableSeparator ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ShowVisualBasicEditor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowVisualBasicEditor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BrowseExtraFileTypes ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_BrowseExtraFileTypes ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IsObjectValid ( /*[in]*/ IDispatch * Object, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_HangulHanjaDictionaries ( /*[out,retval]*/ struct HangulHanjaConversionDictionaries * * prop ) = 0; virtual HRESULT __stdcall get_MailMessage ( /*[out,retval]*/ struct MailMessage * * prop ) = 0; virtual HRESULT __stdcall get_FocusInMailHeader ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Quit ( /*[in]*/ VARIANT * SaveChanges = &vtMissing, /*[in]*/ VARIANT * OriginalFormat = &vtMissing, /*[in]*/ VARIANT * RouteDocument = &vtMissing ) = 0; virtual HRESULT __stdcall ScreenRefresh ( ) = 0; virtual HRESULT __stdcall PrintOutOld ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing ) = 0; virtual HRESULT __stdcall LookupNameProperties ( /*[in]*/ BSTR Name ) = 0; virtual HRESULT __stdcall SubstituteFont ( /*[in]*/ BSTR UnavailableFont, /*[in]*/ BSTR SubstituteFont ) = 0; virtual HRESULT __stdcall Repeat ( /*[in]*/ VARIANT * Times, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall DDEExecute ( /*[in]*/ long Channel, /*[in]*/ BSTR Command ) = 0; virtual HRESULT __stdcall DDEInitiate ( /*[in]*/ BSTR App, /*[in]*/ BSTR Topic, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall DDEPoke ( /*[in]*/ long Channel, /*[in]*/ BSTR Item, /*[in]*/ BSTR Data ) = 0; virtual HRESULT __stdcall DDERequest ( /*[in]*/ long Channel, /*[in]*/ BSTR Item, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall DDETerminate ( /*[in]*/ long Channel ) = 0; virtual HRESULT __stdcall DDETerminateAll ( ) = 0; virtual HRESULT __stdcall BuildKeyCode ( /*[in]*/ enum WdKey Arg1, /*[in]*/ VARIANT * Arg2, /*[in]*/ VARIANT * Arg3, /*[in]*/ VARIANT * Arg4, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall KeyString ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall OrganizerCopy ( /*[in]*/ BSTR Source, /*[in]*/ BSTR Destination, /*[in]*/ BSTR Name, /*[in]*/ enum WdOrganizerObject Object ) = 0; virtual HRESULT __stdcall OrganizerDelete ( /*[in]*/ BSTR Source, /*[in]*/ BSTR Name, /*[in]*/ enum WdOrganizerObject Object ) = 0; virtual HRESULT __stdcall OrganizerRename ( /*[in]*/ BSTR Source, /*[in]*/ BSTR Name, /*[in]*/ BSTR NewName, /*[in]*/ enum WdOrganizerObject Object ) = 0; virtual HRESULT __stdcall AddAddress ( /*[in]*/ SAFEARRAY * * TagID, /*[in]*/ SAFEARRAY * * Value ) = 0; virtual HRESULT __stdcall GetAddress ( /*[in]*/ VARIANT * Name, /*[in]*/ VARIANT * AddressProperties, /*[in]*/ VARIANT * UseAutoText, /*[in]*/ VARIANT * DisplaySelectDialog, /*[in]*/ VARIANT * SelectDialog, /*[in]*/ VARIANT * CheckNamesDialog, /*[in]*/ VARIANT * RecentAddressesChoice, /*[in]*/ VARIANT * UpdateRecentAddresses, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall CheckGrammar ( /*[in]*/ BSTR String, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall CheckSpelling ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * CustomDictionary, /*[in]*/ VARIANT * IgnoreUppercase, /*[in]*/ VARIANT * MainDictionary, /*[in]*/ VARIANT * CustomDictionary2, /*[in]*/ VARIANT * CustomDictionary3, /*[in]*/ VARIANT * CustomDictionary4, /*[in]*/ VARIANT * CustomDictionary5, /*[in]*/ VARIANT * CustomDictionary6, /*[in]*/ VARIANT * CustomDictionary7, /*[in]*/ VARIANT * CustomDictionary8, /*[in]*/ VARIANT * CustomDictionary9, /*[in]*/ VARIANT * CustomDictionary10, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall ResetIgnoreAll ( ) = 0; virtual HRESULT __stdcall GetSpellingSuggestions ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * CustomDictionary, /*[in]*/ VARIANT * IgnoreUppercase, /*[in]*/ VARIANT * MainDictionary, /*[in]*/ VARIANT * SuggestionMode, /*[in]*/ VARIANT * CustomDictionary2, /*[in]*/ VARIANT * CustomDictionary3, /*[in]*/ VARIANT * CustomDictionary4, /*[in]*/ VARIANT * CustomDictionary5, /*[in]*/ VARIANT * CustomDictionary6, /*[in]*/ VARIANT * CustomDictionary7, /*[in]*/ VARIANT * CustomDictionary8, /*[in]*/ VARIANT * CustomDictionary9, /*[in]*/ VARIANT * CustomDictionary10, /*[out,retval]*/ struct SpellingSuggestions * * prop ) = 0; virtual HRESULT __stdcall GoBack ( ) = 0; virtual HRESULT __stdcall Help ( /*[in]*/ VARIANT * HelpType ) = 0; virtual HRESULT __stdcall AutomaticChange ( ) = 0; virtual HRESULT __stdcall ShowMe ( ) = 0; virtual HRESULT __stdcall HelpTool ( ) = 0; virtual HRESULT __stdcall NewWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall ListCommands ( /*[in]*/ VARIANT_BOOL ListAllCommands ) = 0; virtual HRESULT __stdcall ShowClipboard ( ) = 0; virtual HRESULT __stdcall OnTime ( /*[in]*/ VARIANT * When, /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Tolerance = &vtMissing ) = 0; virtual HRESULT __stdcall NextLetter ( ) = 0; virtual HRESULT __stdcall MountVolume ( /*[in]*/ BSTR Zone, /*[in]*/ BSTR Server, /*[in]*/ BSTR Volume, /*[in]*/ VARIANT * User, /*[in]*/ VARIANT * UserPassword, /*[in]*/ VARIANT * VolumePassword, /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall CleanString ( /*[in]*/ BSTR String, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall SendFax ( ) = 0; virtual HRESULT __stdcall ChangeFileOpenDirectory ( /*[in]*/ BSTR Path ) = 0; virtual HRESULT __stdcall RunOld ( /*[in]*/ BSTR MacroName ) = 0; virtual HRESULT __stdcall GoForward ( ) = 0; virtual HRESULT __stdcall Move ( /*[in]*/ long Left, /*[in]*/ long Top ) = 0; virtual HRESULT __stdcall Resize ( /*[in]*/ long Width, /*[in]*/ long Height ) = 0; virtual HRESULT __stdcall InchesToPoints ( /*[in]*/ float Inches, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall CentimetersToPoints ( /*[in]*/ float Centimeters, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall MillimetersToPoints ( /*[in]*/ float Millimeters, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PicasToPoints ( /*[in]*/ float Picas, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall LinesToPoints ( /*[in]*/ float Lines, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToInches ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToCentimeters ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToMillimeters ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToPicas ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToLines ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall PointsToPixels ( /*[in]*/ float Points, /*[in]*/ VARIANT * fVertical, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PixelsToPoints ( /*[in]*/ float Pixels, /*[in]*/ VARIANT * fVertical, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall KeyboardLatin ( ) = 0; virtual HRESULT __stdcall KeyboardBidi ( ) = 0; virtual HRESULT __stdcall ToggleKeyboard ( ) = 0; virtual HRESULT __stdcall Keyboard ( /*[in]*/ long LangId, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall ProductCode ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall WordDefaultWebOptions ( /*[out,retval]*/ struct WordDefaultWebOptions * * prop ) = 0; virtual HRESULT __stdcall DiscussionSupport ( /*[in]*/ VARIANT * Range, /*[in]*/ VARIANT * cid, /*[in]*/ VARIANT * piCSE ) = 0; virtual HRESULT __stdcall SetDefaultTheme ( /*[in]*/ BSTR Name, /*[in]*/ enum WdDocumentMedium DocumentType ) = 0; virtual HRESULT __stdcall GetDefaultTheme ( /*[in]*/ enum WdDocumentMedium DocumentType, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_EmailOptions ( /*[out,retval]*/ struct EmailOptions * * prop ) = 0; virtual HRESULT __stdcall get_Language ( /*[out,retval]*/ enum Office::MsoLanguageID * prop ) = 0; virtual HRESULT __stdcall get_COMAddIns ( /*[out,retval]*/ struct Office::COMAddIns * * prop ) = 0; virtual HRESULT __stdcall get_CheckLanguage ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CheckLanguage ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LanguageSettings ( /*[out,retval]*/ struct Office::LanguageSettings * * prop ) = 0; virtual HRESULT __stdcall get_Dummy1 ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_AnswerWizard ( /*[out,retval]*/ struct Office::AnswerWizard * * prop ) = 0; virtual HRESULT __stdcall get_FeatureInstall ( /*[out,retval]*/ enum Office::MsoFeatureInstall * prop ) = 0; virtual HRESULT __stdcall put_FeatureInstall ( /*[in]*/ enum Office::MsoFeatureInstall prop ) = 0; virtual HRESULT __stdcall PrintOut2000 ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall Run ( /*[in]*/ BSTR MacroName, /*[in]*/ VARIANT * varg1, /*[in]*/ VARIANT * varg2, /*[in]*/ VARIANT * varg3, /*[in]*/ VARIANT * varg4, /*[in]*/ VARIANT * varg5, /*[in]*/ VARIANT * varg6, /*[in]*/ VARIANT * varg7, /*[in]*/ VARIANT * varg8, /*[in]*/ VARIANT * varg9, /*[in]*/ VARIANT * varg10, /*[in]*/ VARIANT * varg11, /*[in]*/ VARIANT * varg12, /*[in]*/ VARIANT * varg13, /*[in]*/ VARIANT * varg14, /*[in]*/ VARIANT * varg15, /*[in]*/ VARIANT * varg16, /*[in]*/ VARIANT * varg17, /*[in]*/ VARIANT * varg18, /*[in]*/ VARIANT * varg19, /*[in]*/ VARIANT * varg20, /*[in]*/ VARIANT * varg21, /*[in]*/ VARIANT * varg22, /*[in]*/ VARIANT * varg23, /*[in]*/ VARIANT * varg24, /*[in]*/ VARIANT * varg25, /*[in]*/ VARIANT * varg26, /*[in]*/ VARIANT * varg27, /*[in]*/ VARIANT * varg28, /*[in]*/ VARIANT * varg29, /*[in]*/ VARIANT * varg30, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall PrintOut ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall get_AutomationSecurity ( /*[out,retval]*/ enum Office::MsoAutomationSecurity * prop ) = 0; virtual HRESULT __stdcall put_AutomationSecurity ( /*[in]*/ enum Office::MsoAutomationSecurity prop ) = 0; virtual HRESULT __stdcall get_FileDialog ( /*[in]*/ enum Office::MsoFileDialogType FileDialogType, /*[out,retval]*/ struct Office::FileDialog * * prop ) = 0; virtual HRESULT __stdcall get_EmailTemplate ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_EmailTemplate ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ShowWindowsInTaskbar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowWindowsInTaskbar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NewDocument ( /*[out,retval]*/ struct Office::NewFile * * prop ) = 0; virtual HRESULT __stdcall get_ShowStartupDialog ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowStartupDialog ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoCorrectEmail ( /*[out,retval]*/ struct AutoCorrect * * prop ) = 0; virtual HRESULT __stdcall get_TaskPanes ( /*[out,retval]*/ struct TaskPanes * * prop ) = 0; virtual HRESULT __stdcall get_DefaultLegalBlackline ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultLegalBlackline ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Dummy2 ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_SmartTagRecognizers ( /*[out,retval]*/ struct SmartTagRecognizers * * prop ) = 0; virtual HRESULT __stdcall get_SmartTagTypes ( /*[out,retval]*/ struct SmartTagTypes * * prop ) = 0; virtual HRESULT __stdcall get_XMLNamespaces ( /*[out,retval]*/ struct XMLNamespaces * * prop ) = 0; virtual HRESULT __stdcall PutFocusInMailHeader ( ) = 0; virtual HRESULT __stdcall get_ArbitraryXMLSupportAvailable ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_BuildFull ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_BuildFeatureCrew ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall LoadMasterList ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall CompareDocuments ( /*[in]*/ struct _Document * OriginalDocument, /*[in]*/ struct _Document * RevisedDocument, /*[in]*/ enum WdCompareDestination Destination, /*[in]*/ enum WdGranularity Granularity, /*[in]*/ VARIANT_BOOL CompareFormatting, /*[in]*/ VARIANT_BOOL CompareCaseChanges, /*[in]*/ VARIANT_BOOL CompareWhitespace, /*[in]*/ VARIANT_BOOL CompareTables, /*[in]*/ VARIANT_BOOL CompareHeaders, /*[in]*/ VARIANT_BOOL CompareFootnotes, /*[in]*/ VARIANT_BOOL CompareTextboxes, /*[in]*/ VARIANT_BOOL CompareFields, /*[in]*/ VARIANT_BOOL CompareComments, /*[in]*/ VARIANT_BOOL CompareMoves, /*[in]*/ BSTR RevisedAuthor, /*[in]*/ VARIANT_BOOL IgnoreAllComparisonWarnings, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall MergeDocuments ( /*[in]*/ struct _Document * OriginalDocument, /*[in]*/ struct _Document * RevisedDocument, /*[in]*/ enum WdCompareDestination Destination, /*[in]*/ enum WdGranularity Granularity, /*[in]*/ VARIANT_BOOL CompareFormatting, /*[in]*/ VARIANT_BOOL CompareCaseChanges, /*[in]*/ VARIANT_BOOL CompareWhitespace, /*[in]*/ VARIANT_BOOL CompareTables, /*[in]*/ VARIANT_BOOL CompareHeaders, /*[in]*/ VARIANT_BOOL CompareFootnotes, /*[in]*/ VARIANT_BOOL CompareTextboxes, /*[in]*/ VARIANT_BOOL CompareFields, /*[in]*/ VARIANT_BOOL CompareComments, /*[in]*/ VARIANT_BOOL CompareMoves, /*[in]*/ BSTR OriginalAuthor, /*[in]*/ BSTR RevisedAuthor, /*[in]*/ enum WdMergeFormatFrom FormatFrom, /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_Bibliography ( /*[out,retval]*/ struct Bibliography * * prop ) = 0; virtual HRESULT __stdcall get_ShowStylePreviews ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowStylePreviews ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RestrictLinkedStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RestrictLinkedStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OMathAutoCorrect ( /*[out,retval]*/ struct OMathAutoCorrect * * prop ) = 0; virtual HRESULT __stdcall get_DisplayDocumentInformationPanel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayDocumentInformationPanel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Assistance ( /*[out,retval]*/ struct Office::IAssistance * * prop ) = 0; virtual HRESULT __stdcall get_OpenAttachmentsInFullScreen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OpenAttachmentsInFullScreen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ActiveEncryptionSession ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_DontResetInsertionPointProperties ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DontResetInsertionPointProperties ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartArtLayouts ( /*[out,retval]*/ struct Office::SmartArtLayouts * * prop ) = 0; virtual HRESULT __stdcall get_SmartArtQuickStyles ( /*[out,retval]*/ struct Office::SmartArtQuickStyles * * prop ) = 0; virtual HRESULT __stdcall get_SmartArtColors ( /*[out,retval]*/ struct Office::SmartArtColors * * prop ) = 0; virtual HRESULT __stdcall ThreeWayMerge ( /*[in]*/ struct _Document * LocalDocument, /*[in]*/ struct _Document * ServerDocument, /*[in]*/ struct _Document * BaseDocument, /*[in]*/ VARIANT_BOOL FavorSource ) = 0; virtual HRESULT __stdcall Dummy4 ( ) = 0; virtual HRESULT __stdcall get_UndoRecord ( /*[out,retval]*/ struct UndoRecord * * prop ) = 0; virtual HRESULT __stdcall get_PickerDialog ( /*[out,retval]*/ struct Office::PickerDialog * * prop ) = 0; virtual HRESULT __stdcall get_ProtectedViewWindows ( /*[out,retval]*/ struct ProtectedViewWindows * * prop ) = 0; virtual HRESULT __stdcall get_ActiveProtectedViewWindow ( /*[out,retval]*/ struct ProtectedViewWindow * * prop ) = 0; virtual HRESULT __stdcall get_IsSandboxed ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_FileValidation ( /*[out,retval]*/ enum Office::MsoFileValidationMode * prop ) = 0; virtual HRESULT __stdcall put_FileValidation ( /*[in]*/ enum Office::MsoFileValidationMode prop ) = 0; virtual HRESULT __stdcall get_ChartDataPointTrack ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ChartDataPointTrack ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowAnimation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAnimation ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("000209b9-0000-0000-c000-000000000046")) _WordGlobal : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Documents ( /*[out,retval]*/ struct Documents * * prop ) = 0; virtual HRESULT __stdcall get_Windows ( /*[out,retval]*/ struct Windows * * prop ) = 0; virtual HRESULT __stdcall get_ActiveDocument ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_ActiveWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall get_Selection ( /*[out,retval]*/ struct Selection * * prop ) = 0; virtual HRESULT __stdcall get_WordBasic ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PrintPreview ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintPreview ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RecentFiles ( /*[out,retval]*/ struct RecentFiles * * prop ) = 0; virtual HRESULT __stdcall get_NormalTemplate ( /*[out,retval]*/ struct Template * * prop ) = 0; virtual HRESULT __stdcall get_System ( /*[out,retval]*/ struct System * * prop ) = 0; virtual HRESULT __stdcall get_AutoCorrect ( /*[out,retval]*/ struct AutoCorrect * * prop ) = 0; virtual HRESULT __stdcall get_FontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_LandscapeFontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_PortraitFontNames ( /*[out,retval]*/ struct FontNames * * prop ) = 0; virtual HRESULT __stdcall get_Languages ( /*[out,retval]*/ struct Languages * * prop ) = 0; virtual HRESULT __stdcall get_Assistant ( /*[out,retval]*/ struct Office::Assistant * * prop ) = 0; virtual HRESULT __stdcall get_FileConverters ( /*[out,retval]*/ struct FileConverters * * prop ) = 0; virtual HRESULT __stdcall get_Dialogs ( /*[out,retval]*/ struct Dialogs * * prop ) = 0; virtual HRESULT __stdcall get_CaptionLabels ( /*[out,retval]*/ struct CaptionLabels * * prop ) = 0; virtual HRESULT __stdcall get_AutoCaptions ( /*[out,retval]*/ struct AutoCaptions * * prop ) = 0; virtual HRESULT __stdcall get_AddIns ( /*[out,retval]*/ struct AddIns * * prop ) = 0; virtual HRESULT __stdcall get_Tasks ( /*[out,retval]*/ struct Tasks * * prop ) = 0; virtual HRESULT __stdcall get_MacroContainer ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CommandBars ( /*[out,retval]*/ struct Office::_CommandBars * * prop ) = 0; virtual HRESULT __stdcall get_SynonymInfo ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * LanguageID, /*[out,retval]*/ struct SynonymInfo * * prop ) = 0; virtual HRESULT __stdcall get_VBE ( /*[out,retval]*/ struct VBIDE::VBE * * prop ) = 0; virtual HRESULT __stdcall get_ListGalleries ( /*[out,retval]*/ struct ListGalleries * * prop ) = 0; virtual HRESULT __stdcall get_ActivePrinter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ActivePrinter ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Templates ( /*[out,retval]*/ struct Templates * * prop ) = 0; virtual HRESULT __stdcall get_CustomizationContext ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall put_CustomizationContext ( /*[in]*/ IDispatch * prop ) = 0; virtual HRESULT __stdcall get_KeyBindings ( /*[out,retval]*/ struct KeyBindings * * prop ) = 0; virtual HRESULT __stdcall get_KeysBoundTo ( /*[in]*/ enum WdKeyCategory KeyCategory, /*[in]*/ BSTR Command, /*[in]*/ VARIANT * CommandParameter, /*[out,retval]*/ struct KeysBoundTo * * prop ) = 0; virtual HRESULT __stdcall get_FindKey ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ struct KeyBinding * * prop ) = 0; virtual HRESULT __stdcall get_Options ( /*[out,retval]*/ struct Options * * prop ) = 0; virtual HRESULT __stdcall get_CustomDictionaries ( /*[out,retval]*/ struct Dictionaries * * prop ) = 0; virtual HRESULT __stdcall put_StatusBar ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall get_ShowVisualBasicEditor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowVisualBasicEditor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IsObjectValid ( /*[in]*/ IDispatch * Object, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_HangulHanjaDictionaries ( /*[out,retval]*/ struct HangulHanjaConversionDictionaries * * prop ) = 0; virtual HRESULT __stdcall Repeat ( /*[in]*/ VARIANT * Times, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall DDEExecute ( /*[in]*/ long Channel, /*[in]*/ BSTR Command ) = 0; virtual HRESULT __stdcall DDEInitiate ( /*[in]*/ BSTR App, /*[in]*/ BSTR Topic, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall DDEPoke ( /*[in]*/ long Channel, /*[in]*/ BSTR Item, /*[in]*/ BSTR Data ) = 0; virtual HRESULT __stdcall DDERequest ( /*[in]*/ long Channel, /*[in]*/ BSTR Item, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall DDETerminate ( /*[in]*/ long Channel ) = 0; virtual HRESULT __stdcall DDETerminateAll ( ) = 0; virtual HRESULT __stdcall BuildKeyCode ( /*[in]*/ enum WdKey Arg1, /*[in]*/ VARIANT * Arg2, /*[in]*/ VARIANT * Arg3, /*[in]*/ VARIANT * Arg4, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall KeyString ( /*[in]*/ long KeyCode, /*[in]*/ VARIANT * KeyCode2, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall CheckSpelling ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * CustomDictionary, /*[in]*/ VARIANT * IgnoreUppercase, /*[in]*/ VARIANT * MainDictionary, /*[in]*/ VARIANT * CustomDictionary2, /*[in]*/ VARIANT * CustomDictionary3, /*[in]*/ VARIANT * CustomDictionary4, /*[in]*/ VARIANT * CustomDictionary5, /*[in]*/ VARIANT * CustomDictionary6, /*[in]*/ VARIANT * CustomDictionary7, /*[in]*/ VARIANT * CustomDictionary8, /*[in]*/ VARIANT * CustomDictionary9, /*[in]*/ VARIANT * CustomDictionary10, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall GetSpellingSuggestions ( /*[in]*/ BSTR Word, /*[in]*/ VARIANT * CustomDictionary, /*[in]*/ VARIANT * IgnoreUppercase, /*[in]*/ VARIANT * MainDictionary, /*[in]*/ VARIANT * SuggestionMode, /*[in]*/ VARIANT * CustomDictionary2, /*[in]*/ VARIANT * CustomDictionary3, /*[in]*/ VARIANT * CustomDictionary4, /*[in]*/ VARIANT * CustomDictionary5, /*[in]*/ VARIANT * CustomDictionary6, /*[in]*/ VARIANT * CustomDictionary7, /*[in]*/ VARIANT * CustomDictionary8, /*[in]*/ VARIANT * CustomDictionary9, /*[in]*/ VARIANT * CustomDictionary10, /*[out,retval]*/ struct SpellingSuggestions * * prop ) = 0; virtual HRESULT __stdcall Help ( /*[in]*/ VARIANT * HelpType ) = 0; virtual HRESULT __stdcall NewWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall CleanString ( /*[in]*/ BSTR String, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall ChangeFileOpenDirectory ( /*[in]*/ BSTR Path ) = 0; virtual HRESULT __stdcall InchesToPoints ( /*[in]*/ float Inches, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall CentimetersToPoints ( /*[in]*/ float Centimeters, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall MillimetersToPoints ( /*[in]*/ float Millimeters, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PicasToPoints ( /*[in]*/ float Picas, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall LinesToPoints ( /*[in]*/ float Lines, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToInches ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToCentimeters ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToMillimeters ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToPicas ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToLines ( /*[in]*/ float Points, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PointsToPixels ( /*[in]*/ float Points, /*[in]*/ VARIANT * fVertical, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall PixelsToPoints ( /*[in]*/ float Pixels, /*[in]*/ VARIANT * fVertical, /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall get_LanguageSettings ( /*[out,retval]*/ struct Office::LanguageSettings * * prop ) = 0; virtual HRESULT __stdcall get_AnswerWizard ( /*[out,retval]*/ struct Office::AnswerWizard * * prop ) = 0; virtual HRESULT __stdcall get_AutoCorrectEmail ( /*[out,retval]*/ struct AutoCorrect * * prop ) = 0; virtual HRESULT __stdcall get_ProtectedViewWindows ( /*[out,retval]*/ struct ProtectedViewWindows * * prop ) = 0; virtual HRESULT __stdcall get_ActiveProtectedViewWindow ( /*[out,retval]*/ struct ProtectedViewWindow * * prop ) = 0; virtual HRESULT __stdcall get_IsSandboxed ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; }; struct __declspec(uuid("0002096b-0000-0000-c000-000000000046")) _Document : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_BuiltInDocumentProperties ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CustomDocumentProperties ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Bookmarks ( /*[out,retval]*/ struct Bookmarks * * prop ) = 0; virtual HRESULT __stdcall get_Tables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_Footnotes ( /*[out,retval]*/ struct Footnotes * * prop ) = 0; virtual HRESULT __stdcall get_Endnotes ( /*[out,retval]*/ struct Endnotes * * prop ) = 0; virtual HRESULT __stdcall get_Comments ( /*[out,retval]*/ struct Comments * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdDocumentType * prop ) = 0; virtual HRESULT __stdcall get_AutoHyphenation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoHyphenation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HyphenateCaps ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HyphenateCaps ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HyphenationZone ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HyphenationZone ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ConsecutiveHyphensLimit ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ConsecutiveHyphensLimit ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Sections ( /*[out,retval]*/ struct Sections * * prop ) = 0; virtual HRESULT __stdcall get_Paragraphs ( /*[out,retval]*/ struct Paragraphs * * prop ) = 0; virtual HRESULT __stdcall get_Words ( /*[out,retval]*/ struct Words * * prop ) = 0; virtual HRESULT __stdcall get_Sentences ( /*[out,retval]*/ struct Sentences * * prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[out,retval]*/ struct Characters * * prop ) = 0; virtual HRESULT __stdcall get_Fields ( /*[out,retval]*/ struct Fields * * prop ) = 0; virtual HRESULT __stdcall get_FormFields ( /*[out,retval]*/ struct FormFields * * prop ) = 0; virtual HRESULT __stdcall get_Styles ( /*[out,retval]*/ struct Styles * * prop ) = 0; virtual HRESULT __stdcall get_Frames ( /*[out,retval]*/ struct Frames * * prop ) = 0; virtual HRESULT __stdcall get_TablesOfFigures ( /*[out,retval]*/ struct TablesOfFigures * * prop ) = 0; virtual HRESULT __stdcall get_Variables ( /*[out,retval]*/ struct Variables * * prop ) = 0; virtual HRESULT __stdcall get_MailMerge ( /*[out,retval]*/ struct MailMerge * * prop ) = 0; virtual HRESULT __stdcall get_Envelope ( /*[out,retval]*/ struct Envelope * * prop ) = 0; virtual HRESULT __stdcall get_FullName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Revisions ( /*[out,retval]*/ struct Revisions * * prop ) = 0; virtual HRESULT __stdcall get_TablesOfContents ( /*[out,retval]*/ struct TablesOfContents * * prop ) = 0; virtual HRESULT __stdcall get_TablesOfAuthorities ( /*[out,retval]*/ struct TablesOfAuthorities * * prop ) = 0; virtual HRESULT __stdcall get_PageSetup ( /*[out,retval]*/ struct PageSetup * * prop ) = 0; virtual HRESULT __stdcall put_PageSetup ( /*[in]*/ struct PageSetup * prop ) = 0; virtual HRESULT __stdcall get_Windows ( /*[out,retval]*/ struct Windows * * prop ) = 0; virtual HRESULT __stdcall get_HasRoutingSlip ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasRoutingSlip ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RoutingSlip ( /*[out,retval]*/ struct RoutingSlip * * prop ) = 0; virtual HRESULT __stdcall get_Routed ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_TablesOfAuthoritiesCategories ( /*[out,retval]*/ struct TablesOfAuthoritiesCategories * * prop ) = 0; virtual HRESULT __stdcall get_Indexes ( /*[out,retval]*/ struct Indexes * * prop ) = 0; virtual HRESULT __stdcall get_Saved ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Saved ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Content ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ActiveWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall get_Kind ( /*[out,retval]*/ enum WdDocumentKind * prop ) = 0; virtual HRESULT __stdcall put_Kind ( /*[in]*/ enum WdDocumentKind prop ) = 0; virtual HRESULT __stdcall get_ReadOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Subdocuments ( /*[out,retval]*/ struct Subdocuments * * prop ) = 0; virtual HRESULT __stdcall get_IsMasterDocument ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_DefaultTabStop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DefaultTabStop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_EmbedTrueTypeFonts ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EmbedTrueTypeFonts ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SaveFormsData ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SaveFormsData ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReadOnlyRecommended ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadOnlyRecommended ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SaveSubsetFonts ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SaveSubsetFonts ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Compatibility ( /*[in]*/ enum WdCompatibility Type, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Compatibility ( /*[in]*/ enum WdCompatibility Type, /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StoryRanges ( /*[out,retval]*/ struct StoryRanges * * prop ) = 0; virtual HRESULT __stdcall get_CommandBars ( /*[out,retval]*/ struct Office::_CommandBars * * prop ) = 0; virtual HRESULT __stdcall get_IsSubdocument ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_SaveFormat ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ProtectionType ( /*[out,retval]*/ enum WdProtectionType * prop ) = 0; virtual HRESULT __stdcall get_Hyperlinks ( /*[out,retval]*/ struct Hyperlinks * * prop ) = 0; virtual HRESULT __stdcall get_Shapes ( /*[out,retval]*/ struct Shapes * * prop ) = 0; virtual HRESULT __stdcall get_ListTemplates ( /*[out,retval]*/ struct ListTemplates * * prop ) = 0; virtual HRESULT __stdcall get_Lists ( /*[out,retval]*/ struct Lists * * prop ) = 0; virtual HRESULT __stdcall get_UpdateStylesOnOpen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UpdateStylesOnOpen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AttachedTemplate ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_AttachedTemplate ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_InlineShapes ( /*[out,retval]*/ struct InlineShapes * * prop ) = 0; virtual HRESULT __stdcall get_Background ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall put_Background ( /*[in]*/ struct Shape * prop ) = 0; virtual HRESULT __stdcall get_GrammarChecked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_GrammarChecked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SpellingChecked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SpellingChecked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowGrammaticalErrors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowGrammaticalErrors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowSpellingErrors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSpellingErrors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Versions ( /*[out,retval]*/ struct Versions * * prop ) = 0; virtual HRESULT __stdcall get_ShowSummary ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowSummary ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SummaryViewMode ( /*[out,retval]*/ enum WdSummaryMode * prop ) = 0; virtual HRESULT __stdcall put_SummaryViewMode ( /*[in]*/ enum WdSummaryMode prop ) = 0; virtual HRESULT __stdcall get_SummaryLength ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SummaryLength ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PrintFractionalWidths ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintFractionalWidths ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintPostScriptOverText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintPostScriptOverText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Container ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PrintFormsData ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintFormsData ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ListParagraphs ( /*[out,retval]*/ struct ListParagraphs * * prop ) = 0; virtual HRESULT __stdcall put_Password ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall put_WritePassword ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall get_HasPassword ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_WriteReserved ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ActiveWritingStyle ( /*[in]*/ VARIANT * LanguageID, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ActiveWritingStyle ( /*[in]*/ VARIANT * LanguageID, /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_UserControl ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UserControl ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HasMailer ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HasMailer ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Mailer ( /*[out,retval]*/ struct Mailer * * prop ) = 0; virtual HRESULT __stdcall get_ReadabilityStatistics ( /*[out,retval]*/ struct ReadabilityStatistics * * prop ) = 0; virtual HRESULT __stdcall get_GrammaticalErrors ( /*[out,retval]*/ struct ProofreadingErrors * * prop ) = 0; virtual HRESULT __stdcall get_SpellingErrors ( /*[out,retval]*/ struct ProofreadingErrors * * prop ) = 0; virtual HRESULT __stdcall get_VBProject ( /*[out,retval]*/ struct VBIDE::_VBProject * * prop ) = 0; virtual HRESULT __stdcall get_FormsDesign ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get__CodeName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put__CodeName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_CodeName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_SnapToGrid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SnapToGrid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SnapToShapes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SnapToShapes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_GridDistanceHorizontal ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridDistanceHorizontal ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridDistanceVertical ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridDistanceVertical ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridOriginHorizontal ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridOriginHorizontal ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridOriginVertical ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_GridOriginVertical ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_GridSpaceBetweenHorizontalLines ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_GridSpaceBetweenHorizontalLines ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_GridSpaceBetweenVerticalLines ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_GridSpaceBetweenVerticalLines ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_GridOriginFromMargin ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_GridOriginFromMargin ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_KerningByAlgorithm ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_KerningByAlgorithm ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_JustificationMode ( /*[out,retval]*/ enum WdJustificationMode * prop ) = 0; virtual HRESULT __stdcall put_JustificationMode ( /*[in]*/ enum WdJustificationMode prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakLevel ( /*[out,retval]*/ enum WdFarEastLineBreakLevel * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakLevel ( /*[in]*/ enum WdFarEastLineBreakLevel prop ) = 0; virtual HRESULT __stdcall get_NoLineBreakBefore ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NoLineBreakBefore ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NoLineBreakAfter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NoLineBreakAfter ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TrackRevisions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TrackRevisions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PrintRevisions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PrintRevisions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowRevisions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowRevisions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Close ( /*[in]*/ VARIANT * SaveChanges = &vtMissing, /*[in]*/ VARIANT * OriginalFormat = &vtMissing, /*[in]*/ VARIANT * RouteDocument = &vtMissing ) = 0; virtual HRESULT __stdcall SaveAs2000 ( /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * FileFormat = &vtMissing, /*[in]*/ VARIANT * LockComments = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * WritePassword = &vtMissing, /*[in]*/ VARIANT * ReadOnlyRecommended = &vtMissing, /*[in]*/ VARIANT * EmbedTrueTypeFonts = &vtMissing, /*[in]*/ VARIANT * SaveNativePictureFormat = &vtMissing, /*[in]*/ VARIANT * SaveFormsData = &vtMissing, /*[in]*/ VARIANT * SaveAsAOCELetter = &vtMissing ) = 0; virtual HRESULT __stdcall Repaginate ( ) = 0; virtual HRESULT __stdcall FitToPages ( ) = 0; virtual HRESULT __stdcall ManualHyphenation ( ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall DataForm ( ) = 0; virtual HRESULT __stdcall Route ( ) = 0; virtual HRESULT __stdcall Save ( ) = 0; virtual HRESULT __stdcall PrintOutOld ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing ) = 0; virtual HRESULT __stdcall SendMail ( ) = 0; virtual HRESULT __stdcall Range ( /*[in]*/ VARIANT * Start, /*[in]*/ VARIANT * End, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall RunAutoMacro ( /*[in]*/ enum WdAutoMacros Which ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall PrintPreview ( ) = 0; virtual HRESULT __stdcall GoTo ( /*[in]*/ VARIANT * What, /*[in]*/ VARIANT * Which, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Name, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Undo ( /*[in]*/ VARIANT * Times, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Redo ( /*[in]*/ VARIANT * Times, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall ComputeStatistics ( /*[in]*/ enum WdStatistic Statistic, /*[in]*/ VARIANT * IncludeFootnotesAndEndnotes, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MakeCompatibilityDefault ( ) = 0; virtual HRESULT __stdcall Protect2002 ( /*[in]*/ enum WdProtectionType Type, /*[in]*/ VARIANT * NoReset = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing ) = 0; virtual HRESULT __stdcall Unprotect ( /*[in]*/ VARIANT * Password = &vtMissing ) = 0; virtual HRESULT __stdcall EditionOptions ( /*[in]*/ enum WdEditionType Type, /*[in]*/ enum WdEditionOption Option, /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Format = &vtMissing ) = 0; virtual HRESULT __stdcall RunLetterWizard ( /*[in]*/ VARIANT * LetterContent = &vtMissing, /*[in]*/ VARIANT * WizardMode = &vtMissing ) = 0; virtual HRESULT __stdcall GetLetterContent ( /*[out,retval]*/ struct _LetterContent * * prop ) = 0; virtual HRESULT __stdcall SetLetterContent ( /*[in]*/ VARIANT * LetterContent ) = 0; virtual HRESULT __stdcall CopyStylesFromTemplate ( /*[in]*/ BSTR Template ) = 0; virtual HRESULT __stdcall UpdateStyles ( ) = 0; virtual HRESULT __stdcall CheckGrammar ( ) = 0; virtual HRESULT __stdcall CheckSpelling ( /*[in]*/ VARIANT * CustomDictionary = &vtMissing, /*[in]*/ VARIANT * IgnoreUppercase = &vtMissing, /*[in]*/ VARIANT * AlwaysSuggest = &vtMissing, /*[in]*/ VARIANT * CustomDictionary2 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary3 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary4 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary5 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary6 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary7 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary8 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary9 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary10 = &vtMissing ) = 0; virtual HRESULT __stdcall FollowHyperlink ( /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * SubAddress = &vtMissing, /*[in]*/ VARIANT * NewWindow = &vtMissing, /*[in]*/ VARIANT * AddHistory = &vtMissing, /*[in]*/ VARIANT * ExtraInfo = &vtMissing, /*[in]*/ VARIANT * Method = &vtMissing, /*[in]*/ VARIANT * HeaderInfo = &vtMissing ) = 0; virtual HRESULT __stdcall AddToFavorites ( ) = 0; virtual HRESULT __stdcall Reload ( ) = 0; virtual HRESULT __stdcall AutoSummarize ( /*[in]*/ VARIANT * Length, /*[in]*/ VARIANT * Mode, /*[in]*/ VARIANT * UpdateProperties, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall RemoveNumbers ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall ConvertNumbersToText ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall CountNumberedItems ( /*[in]*/ VARIANT * NumberType, /*[in]*/ VARIANT * Level, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Post ( ) = 0; virtual HRESULT __stdcall ToggleFormsDesign ( ) = 0; virtual HRESULT __stdcall Compare2000 ( /*[in]*/ BSTR Name ) = 0; virtual HRESULT __stdcall UpdateSummaryProperties ( ) = 0; virtual HRESULT __stdcall GetCrossReferenceItems ( /*[in]*/ VARIANT * ReferenceType, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall AutoFormat ( ) = 0; virtual HRESULT __stdcall ViewCode ( ) = 0; virtual HRESULT __stdcall ViewPropertyBrowser ( ) = 0; virtual HRESULT __stdcall ForwardMailer ( ) = 0; virtual HRESULT __stdcall Reply ( ) = 0; virtual HRESULT __stdcall ReplyAll ( ) = 0; virtual HRESULT __stdcall SendMailer ( /*[in]*/ VARIANT * FileFormat = &vtMissing, /*[in]*/ VARIANT * Priority = &vtMissing ) = 0; virtual HRESULT __stdcall UndoClear ( ) = 0; virtual HRESULT __stdcall PresentIt ( ) = 0; virtual HRESULT __stdcall SendFax ( /*[in]*/ BSTR Address, /*[in]*/ VARIANT * Subject = &vtMissing ) = 0; virtual HRESULT __stdcall Merge2000 ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall ClosePrintPreview ( ) = 0; virtual HRESULT __stdcall CheckConsistency ( ) = 0; virtual HRESULT __stdcall CreateLetterContent ( /*[in]*/ BSTR DateFormat, /*[in]*/ VARIANT_BOOL IncludeHeaderFooter, /*[in]*/ BSTR PageDesign, /*[in]*/ enum WdLetterStyle LetterStyle, /*[in]*/ VARIANT_BOOL Letterhead, /*[in]*/ enum WdLetterheadLocation LetterheadLocation, /*[in]*/ float LetterheadSize, /*[in]*/ BSTR RecipientName, /*[in]*/ BSTR RecipientAddress, /*[in]*/ BSTR Salutation, /*[in]*/ enum WdSalutationType SalutationType, /*[in]*/ BSTR RecipientReference, /*[in]*/ BSTR MailingInstructions, /*[in]*/ BSTR AttentionLine, /*[in]*/ BSTR Subject, /*[in]*/ BSTR CCList, /*[in]*/ BSTR ReturnAddress, /*[in]*/ BSTR SenderName, /*[in]*/ BSTR Closing, /*[in]*/ BSTR SenderCompany, /*[in]*/ BSTR SenderJobTitle, /*[in]*/ BSTR SenderInitials, /*[in]*/ long EnclosureNumber, /*[in]*/ VARIANT * InfoBlock, /*[in]*/ VARIANT * RecipientCode, /*[in]*/ VARIANT * RecipientGender, /*[in]*/ VARIANT * ReturnAddressShortForm, /*[in]*/ VARIANT * SenderCity, /*[in]*/ VARIANT * SenderCode, /*[in]*/ VARIANT * SenderGender, /*[in]*/ VARIANT * SenderReference, /*[out,retval]*/ struct _LetterContent * * prop ) = 0; virtual HRESULT __stdcall AcceptAllRevisions ( ) = 0; virtual HRESULT __stdcall RejectAllRevisions ( ) = 0; virtual HRESULT __stdcall DetectLanguage ( ) = 0; virtual HRESULT __stdcall ApplyTheme ( /*[in]*/ BSTR Name ) = 0; virtual HRESULT __stdcall RemoveTheme ( ) = 0; virtual HRESULT __stdcall WebPagePreview ( ) = 0; virtual HRESULT __stdcall ReloadAs ( /*[in]*/ enum Office::MsoEncoding Encoding ) = 0; virtual HRESULT __stdcall get_ActiveTheme ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ActiveThemeDisplayName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Email ( /*[out,retval]*/ struct Email * * prop ) = 0; virtual HRESULT __stdcall get_Scripts ( /*[out,retval]*/ struct Office::Scripts * * prop ) = 0; virtual HRESULT __stdcall get_LanguageDetected ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LanguageDetected ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakLanguage ( /*[out,retval]*/ enum WdFarEastLineBreakLanguageID * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakLanguage ( /*[in]*/ enum WdFarEastLineBreakLanguageID prop ) = 0; virtual HRESULT __stdcall get_Frameset ( /*[out,retval]*/ struct Frameset * * prop ) = 0; virtual HRESULT __stdcall get_ClickAndTypeParagraphStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_ClickAndTypeParagraphStyle ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_HTMLProject ( /*[out,retval]*/ struct Office::HTMLProject * * prop ) = 0; virtual HRESULT __stdcall get_WordWebOptions ( /*[out,retval]*/ struct WordWebOptions * * prop ) = 0; virtual HRESULT __stdcall get_OpenEncoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall get_SaveEncoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall put_SaveEncoding ( /*[in]*/ enum Office::MsoEncoding prop ) = 0; virtual HRESULT __stdcall get_OptimizeForWord97 ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OptimizeForWord97 ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_VBASigned ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall PrintOut2000 ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall sblt ( /*[in]*/ BSTR s ) = 0; virtual HRESULT __stdcall ConvertVietDoc ( /*[in]*/ long CodePageOrigin ) = 0; virtual HRESULT __stdcall PrintOut ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall get_MailEnvelope ( /*[out,retval]*/ struct Office::IMsoEnvelopeVB * * prop ) = 0; virtual HRESULT __stdcall get_DisableFeatures ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisableFeatures ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DoNotEmbedSystemFonts ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DoNotEmbedSystemFonts ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Signatures ( /*[out,retval]*/ struct Office::SignatureSet * * prop ) = 0; virtual HRESULT __stdcall get_DefaultTargetFrame ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultTargetFrame ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HTMLDivisions ( /*[out,retval]*/ struct HTMLDivisions * * prop ) = 0; virtual HRESULT __stdcall get_DisableFeaturesIntroducedAfter ( /*[out,retval]*/ enum WdDisableFeaturesIntroducedAfter * prop ) = 0; virtual HRESULT __stdcall put_DisableFeaturesIntroducedAfter ( /*[in]*/ enum WdDisableFeaturesIntroducedAfter prop ) = 0; virtual HRESULT __stdcall get_RemovePersonalInformation ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RemovePersonalInformation ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartTags ( /*[out,retval]*/ struct SmartTags * * prop ) = 0; virtual HRESULT __stdcall Compare2002 ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * AuthorName = &vtMissing, /*[in]*/ VARIANT * CompareTarget = &vtMissing, /*[in]*/ VARIANT * DetectFormatChanges = &vtMissing, /*[in]*/ VARIANT * IgnoreAllComparisonWarnings = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing ) = 0; virtual HRESULT __stdcall CheckIn ( /*[in]*/ VARIANT_BOOL SaveChanges, /*[in]*/ VARIANT * Comments, /*[in]*/ VARIANT_BOOL MakePublic ) = 0; virtual HRESULT __stdcall CanCheckin ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Merge ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * MergeTarget = &vtMissing, /*[in]*/ VARIANT * DetectFormatChanges = &vtMissing, /*[in]*/ VARIANT * UseFormattingFrom = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing ) = 0; virtual HRESULT __stdcall get_EmbedSmartTags ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EmbedSmartTags ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SmartTagsAsXMLProps ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SmartTagsAsXMLProps ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TextEncoding ( /*[out,retval]*/ enum Office::MsoEncoding * prop ) = 0; virtual HRESULT __stdcall put_TextEncoding ( /*[in]*/ enum Office::MsoEncoding prop ) = 0; virtual HRESULT __stdcall get_TextLineEnding ( /*[out,retval]*/ enum WdLineEndingType * prop ) = 0; virtual HRESULT __stdcall put_TextLineEnding ( /*[in]*/ enum WdLineEndingType prop ) = 0; virtual HRESULT __stdcall SendForReview ( /*[in]*/ VARIANT * Recipients = &vtMissing, /*[in]*/ VARIANT * Subject = &vtMissing, /*[in]*/ VARIANT * ShowMessage = &vtMissing, /*[in]*/ VARIANT * IncludeAttachment = &vtMissing ) = 0; virtual HRESULT __stdcall ReplyWithChanges ( /*[in]*/ VARIANT * ShowMessage = &vtMissing ) = 0; virtual HRESULT __stdcall EndReview ( ) = 0; virtual HRESULT __stdcall get_StyleSheets ( /*[out,retval]*/ struct StyleSheets * * prop ) = 0; virtual HRESULT __stdcall get_DefaultTableStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_PasswordEncryptionProvider ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_PasswordEncryptionAlgorithm ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_PasswordEncryptionKeyLength ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PasswordEncryptionFileProperties ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SetPasswordEncryptionOptions ( /*[in]*/ BSTR PasswordEncryptionProvider, /*[in]*/ BSTR PasswordEncryptionAlgorithm, /*[in]*/ long PasswordEncryptionKeyLength, /*[in]*/ VARIANT * PasswordEncryptionFileProperties = &vtMissing ) = 0; virtual HRESULT __stdcall RecheckSmartTags ( ) = 0; virtual HRESULT __stdcall RemoveSmartTags ( ) = 0; virtual HRESULT __stdcall SetDefaultTableStyle ( /*[in]*/ VARIANT * Style, /*[in]*/ VARIANT_BOOL SetInTemplate ) = 0; virtual HRESULT __stdcall DeleteAllComments ( ) = 0; virtual HRESULT __stdcall AcceptAllRevisionsShown ( ) = 0; virtual HRESULT __stdcall RejectAllRevisionsShown ( ) = 0; virtual HRESULT __stdcall DeleteAllCommentsShown ( ) = 0; virtual HRESULT __stdcall ResetFormFields ( ) = 0; virtual HRESULT __stdcall SaveAs ( /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * FileFormat = &vtMissing, /*[in]*/ VARIANT * LockComments = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * WritePassword = &vtMissing, /*[in]*/ VARIANT * ReadOnlyRecommended = &vtMissing, /*[in]*/ VARIANT * EmbedTrueTypeFonts = &vtMissing, /*[in]*/ VARIANT * SaveNativePictureFormat = &vtMissing, /*[in]*/ VARIANT * SaveFormsData = &vtMissing, /*[in]*/ VARIANT * SaveAsAOCELetter = &vtMissing, /*[in]*/ VARIANT * Encoding = &vtMissing, /*[in]*/ VARIANT * InsertLineBreaks = &vtMissing, /*[in]*/ VARIANT * AllowSubstitutions = &vtMissing, /*[in]*/ VARIANT * LineEnding = &vtMissing, /*[in]*/ VARIANT * AddBiDiMarks = &vtMissing ) = 0; virtual HRESULT __stdcall get_EmbedLinguisticData ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EmbedLinguisticData ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowFont ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowFont ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowClear ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowClear ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowParagraph ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowParagraph ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowNumbering ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowNumbering ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowFilter ( /*[out,retval]*/ enum WdShowFilter * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowFilter ( /*[in]*/ enum WdShowFilter prop ) = 0; virtual HRESULT __stdcall CheckNewSmartTags ( ) = 0; virtual HRESULT __stdcall get_Permission ( /*[out,retval]*/ struct Office::Permission * * prop ) = 0; virtual HRESULT __stdcall get_XMLNodes ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_XMLSchemaReferences ( /*[out,retval]*/ struct XMLSchemaReferences * * prop ) = 0; virtual HRESULT __stdcall get_SmartDocument ( /*[out,retval]*/ struct Office::SmartDocument * * prop ) = 0; virtual HRESULT __stdcall get_SharedWorkspace ( /*[out,retval]*/ struct Office::SharedWorkspace * * prop ) = 0; virtual HRESULT __stdcall get_Sync ( /*[out,retval]*/ struct Office::Sync * * prop ) = 0; virtual HRESULT __stdcall get_EnforceStyle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnforceStyle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatOverride ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatOverride ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLSaveDataOnly ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_XMLSaveDataOnly ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLHideNamespaces ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_XMLHideNamespaces ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLShowAdvancedErrors ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_XMLShowAdvancedErrors ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLUseXSLTWhenSaving ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_XMLUseXSLTWhenSaving ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLSaveThroughXSLT ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_XMLSaveThroughXSLT ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DocumentLibraryVersions ( /*[out,retval]*/ struct Office::DocumentLibraryVersions * * prop ) = 0; virtual HRESULT __stdcall get_ReadingModeLayoutFrozen ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReadingModeLayoutFrozen ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RemoveDateAndTime ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RemoveDateAndTime ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall SendFaxOverInternet ( /*[in]*/ VARIANT * Recipients = &vtMissing, /*[in]*/ VARIANT * Subject = &vtMissing, /*[in]*/ VARIANT * ShowMessage = &vtMissing ) = 0; virtual HRESULT __stdcall TransformDocument ( /*[in]*/ BSTR Path, /*[in]*/ VARIANT_BOOL DataOnly ) = 0; virtual HRESULT __stdcall Protect ( /*[in]*/ enum WdProtectionType Type, /*[in]*/ VARIANT * NoReset = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing, /*[in]*/ VARIANT * UseIRM = &vtMissing, /*[in]*/ VARIANT * EnforceStyleLock = &vtMissing ) = 0; virtual HRESULT __stdcall SelectAllEditableRanges ( /*[in]*/ VARIANT * EditorID = &vtMissing ) = 0; virtual HRESULT __stdcall DeleteAllEditableRanges ( /*[in]*/ VARIANT * EditorID = &vtMissing ) = 0; virtual HRESULT __stdcall DeleteAllInkAnnotations ( ) = 0; virtual HRESULT __stdcall AddDocumentWorkspaceHeader ( /*[in]*/ VARIANT_BOOL RichFormat, /*[in]*/ BSTR Url, /*[in]*/ BSTR Title, /*[in]*/ BSTR Description, /*[in]*/ BSTR ID ) = 0; virtual HRESULT __stdcall RemoveDocumentWorkspaceHeader ( /*[in]*/ BSTR ID ) = 0; virtual HRESULT __stdcall Compare ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * AuthorName = &vtMissing, /*[in]*/ VARIANT * CompareTarget = &vtMissing, /*[in]*/ VARIANT * DetectFormatChanges = &vtMissing, /*[in]*/ VARIANT * IgnoreAllComparisonWarnings = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * RemovePersonalInformation = &vtMissing, /*[in]*/ VARIANT * RemoveDateAndTime = &vtMissing ) = 0; virtual HRESULT __stdcall RemoveLockedStyles ( ) = 0; virtual HRESULT __stdcall get_ChildNodeSuggestions ( /*[out,retval]*/ struct XMLChildNodeSuggestions * * prop ) = 0; virtual HRESULT __stdcall SelectSingleNode ( /*[in]*/ BSTR XPath, /*[in]*/ BSTR PrefixMapping, /*[in]*/ VARIANT_BOOL FastSearchSkippingTextNodes, /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall SelectNodes ( /*[in]*/ BSTR XPath, /*[in]*/ BSTR PrefixMapping, /*[in]*/ VARIANT_BOOL FastSearchSkippingTextNodes, /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_XMLSchemaViolations ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutSizeX ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutSizeX ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ReadingLayoutSizeY ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ReadingLayoutSizeY ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_StyleSortMethod ( /*[out,retval]*/ enum WdStyleSort * prop ) = 0; virtual HRESULT __stdcall put_StyleSortMethod ( /*[in]*/ enum WdStyleSort prop ) = 0; virtual HRESULT __stdcall get_ContentTypeProperties ( /*[out,retval]*/ struct Office::MetaProperties * * prop ) = 0; virtual HRESULT __stdcall get_TrackMoves ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TrackMoves ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TrackFormatting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TrackFormatting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Dummy1 ( ) = 0; virtual HRESULT __stdcall get_OMaths ( /*[out,retval]*/ struct OMaths * * prop ) = 0; virtual HRESULT __stdcall RemoveDocumentInformation ( /*[in]*/ enum WdRemoveDocInfoType RemoveDocInfoType ) = 0; virtual HRESULT __stdcall CheckInWithVersion ( /*[in]*/ VARIANT_BOOL SaveChanges, /*[in]*/ VARIANT * Comments, /*[in]*/ VARIANT_BOOL MakePublic, /*[in]*/ VARIANT * VersionType = &vtMissing ) = 0; virtual HRESULT __stdcall Dummy2 ( ) = 0; virtual HRESULT __stdcall get_Dummy3 ( ) = 0; virtual HRESULT __stdcall get_ServerPolicy ( /*[out,retval]*/ struct Office::ServerPolicy * * prop ) = 0; virtual HRESULT __stdcall get_ContentControls ( /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall get_DocumentInspectors ( /*[out,retval]*/ struct Office::DocumentInspectors * * prop ) = 0; virtual HRESULT __stdcall LockServerFile ( ) = 0; virtual HRESULT __stdcall GetWorkflowTasks ( /*[out,retval]*/ struct Office::WorkflowTasks * * prop ) = 0; virtual HRESULT __stdcall GetWorkflowTemplates ( /*[out,retval]*/ struct Office::WorkflowTemplates * * prop ) = 0; virtual HRESULT __stdcall Dummy4 ( ) = 0; virtual HRESULT __stdcall AddMeetingWorkspaceHeader ( /*[in]*/ VARIANT_BOOL SkipIfAbsent, /*[in]*/ BSTR Url, /*[in]*/ BSTR Title, /*[in]*/ BSTR Description, /*[in]*/ BSTR ID ) = 0; virtual HRESULT __stdcall get_Bibliography ( /*[out,retval]*/ struct Bibliography * * prop ) = 0; virtual HRESULT __stdcall get_LockTheme ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LockTheme ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LockQuickStyleSet ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LockQuickStyleSet ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OriginalDocumentTitle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_RevisedDocumentTitle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_CustomXMLParts ( /*[out,retval]*/ struct Office::_CustomXMLParts * * prop ) = 0; virtual HRESULT __stdcall get_FormattingShowNextLevel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowNextLevel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FormattingShowUserStyleName ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FormattingShowUserStyleName ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall SaveAsQuickStyleSet ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall ApplyQuickStyleSet ( /*[in]*/ BSTR Name ) = 0; virtual HRESULT __stdcall get_Research ( /*[out,retval]*/ struct Research * * prop ) = 0; virtual HRESULT __stdcall get_Final ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Final ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OMathBreakBin ( /*[out,retval]*/ enum WdOMathBreakBin * prop ) = 0; virtual HRESULT __stdcall put_OMathBreakBin ( /*[in]*/ enum WdOMathBreakBin prop ) = 0; virtual HRESULT __stdcall get_OMathBreakSub ( /*[out,retval]*/ enum WdOMathBreakSub * prop ) = 0; virtual HRESULT __stdcall put_OMathBreakSub ( /*[in]*/ enum WdOMathBreakSub prop ) = 0; virtual HRESULT __stdcall get_OMathJc ( /*[out,retval]*/ enum WdOMathJc * prop ) = 0; virtual HRESULT __stdcall put_OMathJc ( /*[in]*/ enum WdOMathJc prop ) = 0; virtual HRESULT __stdcall get_OMathLeftMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_OMathLeftMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_OMathRightMargin ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_OMathRightMargin ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_OMathWrap ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_OMathWrap ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_OMathIntSubSupLim ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OMathIntSubSupLim ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OMathNarySupSubLim ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OMathNarySupSubLim ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OMathSmallFrac ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OMathSmallFrac ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_WordOpenXML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_DocumentTheme ( /*[out,retval]*/ struct Office::OfficeTheme * * prop ) = 0; virtual HRESULT __stdcall ApplyDocumentTheme ( /*[in]*/ BSTR FileName ) = 0; virtual HRESULT __stdcall get_HasVBProject ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SelectLinkedControls ( /*[in]*/ struct Office::CustomXMLNode * Node, /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall SelectUnlinkedControls ( /*[in]*/ struct Office::_CustomXMLPart * Stream, /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall SelectContentControlsByTitle ( /*[in]*/ BSTR Title, /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall ExportAsFixedFormat ( /*[in]*/ BSTR OutputFileName, /*[in]*/ enum WdExportFormat ExportFormat, /*[in]*/ VARIANT_BOOL OpenAfterExport, /*[in]*/ enum WdExportOptimizeFor OptimizeFor, /*[in]*/ enum WdExportRange Range, /*[in]*/ long From, /*[in]*/ long To, /*[in]*/ enum WdExportItem Item, /*[in]*/ VARIANT_BOOL IncludeDocProps, /*[in]*/ VARIANT_BOOL KeepIRM, /*[in]*/ enum WdExportCreateBookmarks CreateBookmarks, /*[in]*/ VARIANT_BOOL DocStructureTags, /*[in]*/ VARIANT_BOOL BitmapMissingFonts, /*[in]*/ VARIANT_BOOL UseISO19005_1, /*[in]*/ VARIANT * FixedFormatExtClassPtr = &vtMissing ) = 0; virtual HRESULT __stdcall FreezeLayout ( ) = 0; virtual HRESULT __stdcall UnfreezeLayout ( ) = 0; virtual HRESULT __stdcall get_OMathFontName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_OMathFontName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall DowngradeDocument ( ) = 0; virtual HRESULT __stdcall get_EncryptionProvider ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_EncryptionProvider ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_UseMathDefaults ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseMathDefaults ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CurrentRsid ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Convert ( ) = 0; virtual HRESULT __stdcall SelectContentControlsByTag ( /*[in]*/ BSTR Tag, /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall ConvertAutoHyphens ( ) = 0; virtual HRESULT __stdcall get_DocID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall ApplyQuickStyleSet2 ( /*[in]*/ VARIANT * Style ) = 0; virtual HRESULT __stdcall get_CompatibilityMode ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall SaveAs2 ( /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * FileFormat = &vtMissing, /*[in]*/ VARIANT * LockComments = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * WritePassword = &vtMissing, /*[in]*/ VARIANT * ReadOnlyRecommended = &vtMissing, /*[in]*/ VARIANT * EmbedTrueTypeFonts = &vtMissing, /*[in]*/ VARIANT * SaveNativePictureFormat = &vtMissing, /*[in]*/ VARIANT * SaveFormsData = &vtMissing, /*[in]*/ VARIANT * SaveAsAOCELetter = &vtMissing, /*[in]*/ VARIANT * Encoding = &vtMissing, /*[in]*/ VARIANT * InsertLineBreaks = &vtMissing, /*[in]*/ VARIANT * AllowSubstitutions = &vtMissing, /*[in]*/ VARIANT * LineEnding = &vtMissing, /*[in]*/ VARIANT * AddBiDiMarks = &vtMissing, /*[in]*/ VARIANT * CompatibilityMode = &vtMissing ) = 0; virtual HRESULT __stdcall get_CoAuthoring ( /*[out,retval]*/ struct CoAuthoring * * prop ) = 0; virtual HRESULT __stdcall SetCompatibilityMode ( /*[in]*/ long Mode ) = 0; virtual HRESULT __stdcall get_Broadcast ( /*[out,retval]*/ struct Broadcast * * prop ) = 0; virtual HRESULT __stdcall ReturnToLastReadPosition ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ChartDataPointTrack ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ChartDataPointTrack ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IsInAutosave ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SaveCopyAs ( /*[in]*/ VARIANT * FileName = &vtMissing, /*[in]*/ VARIANT * FileFormat = &vtMissing, /*[in]*/ VARIANT * LockComments = &vtMissing, /*[in]*/ VARIANT * Password = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * WritePassword = &vtMissing, /*[in]*/ VARIANT * ReadOnlyRecommended = &vtMissing, /*[in]*/ VARIANT * EmbedTrueTypeFonts = &vtMissing, /*[in]*/ VARIANT * SaveNativePictureFormat = &vtMissing, /*[in]*/ VARIANT * SaveFormsData = &vtMissing, /*[in]*/ VARIANT * SaveAsAOCELetter = &vtMissing, /*[in]*/ VARIANT * Encoding = &vtMissing, /*[in]*/ VARIANT * InsertLineBreaks = &vtMissing, /*[in]*/ VARIANT * AllowSubstitutions = &vtMissing, /*[in]*/ VARIANT * LineEnding = &vtMissing, /*[in]*/ VARIANT * AddBiDiMarks = &vtMissing, /*[in]*/ VARIANT * CompatibilityMode = &vtMissing ) = 0; }; struct __declspec(uuid("0002096a-0000-0000-c000-000000000046")) Template : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_AutoTextEntries ( /*[out,retval]*/ struct AutoTextEntries * * prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_Saved ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Saved ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdTemplateType * prop ) = 0; virtual HRESULT __stdcall get_FullName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_BuiltInDocumentProperties ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CustomDocumentProperties ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ListTemplates ( /*[out,retval]*/ struct ListTemplates * * prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_VBProject ( /*[out,retval]*/ struct VBIDE::_VBProject * * prop ) = 0; virtual HRESULT __stdcall get_KerningByAlgorithm ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_KerningByAlgorithm ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_JustificationMode ( /*[out,retval]*/ enum WdJustificationMode * prop ) = 0; virtual HRESULT __stdcall put_JustificationMode ( /*[in]*/ enum WdJustificationMode prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakLevel ( /*[out,retval]*/ enum WdFarEastLineBreakLevel * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakLevel ( /*[in]*/ enum WdFarEastLineBreakLevel prop ) = 0; virtual HRESULT __stdcall get_NoLineBreakBefore ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NoLineBreakBefore ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NoLineBreakAfter ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NoLineBreakAfter ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall OpenAsDocument ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall Save ( ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakLanguage ( /*[out,retval]*/ enum WdFarEastLineBreakLanguageID * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakLanguage ( /*[in]*/ enum WdFarEastLineBreakLanguageID prop ) = 0; virtual HRESULT __stdcall get_BuildingBlockEntries ( /*[out,retval]*/ struct BuildingBlockEntries * * prop ) = 0; virtual HRESULT __stdcall get_BuildingBlockTypes ( /*[out,retval]*/ struct BuildingBlockTypes * * prop ) = 0; }; struct __declspec(uuid("000209a2-0000-0000-c000-000000000046")) Templates : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Template * * prop ) = 0; virtual HRESULT __stdcall LoadBuildingBlocks ( ) = 0; }; struct __declspec(uuid("00020968-0000-0000-c000-000000000046")) Bookmark : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Empty ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Start ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Start ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_End ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_End ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Column ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_StoryType ( /*[out,retval]*/ enum WdStoryType * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Copy ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct Bookmark * * prop ) = 0; }; struct __declspec(uuid("00020967-0000-0000-c000-000000000046")) Bookmarks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_DefaultSorting ( /*[out,retval]*/ enum WdBookmarkSortBy * prop ) = 0; virtual HRESULT __stdcall put_DefaultSorting ( /*[in]*/ enum WdBookmarkSortBy prop ) = 0; virtual HRESULT __stdcall get_ShowHidden ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowHidden ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Bookmark * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct Bookmark * * prop ) = 0; virtual HRESULT __stdcall Exists ( /*[in]*/ BSTR Name, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; }; struct __declspec(uuid("00020962-0000-0000-c000-000000000046")) Window : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ActivePane ( /*[out,retval]*/ struct Pane * * prop ) = 0; virtual HRESULT __stdcall get_Document ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_Panes ( /*[out,retval]*/ struct Panes * * prop ) = 0; virtual HRESULT __stdcall get_Selection ( /*[out,retval]*/ struct Selection * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Split ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Split ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SplitVertical ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SplitVertical ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_WindowState ( /*[out,retval]*/ enum WdWindowState * prop ) = 0; virtual HRESULT __stdcall put_WindowState ( /*[in]*/ enum WdWindowState prop ) = 0; virtual HRESULT __stdcall get_DisplayRulers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayRulers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayVerticalRuler ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayVerticalRuler ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_View ( /*[out,retval]*/ struct View * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdWindowType * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall get_WindowNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_DisplayVerticalScrollBar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayVerticalScrollBar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayHorizontalScrollBar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayHorizontalScrollBar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StyleAreaWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_StyleAreaWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DisplayScreenTips ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayScreenTips ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HorizontalPercentScrolled ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HorizontalPercentScrolled ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_VerticalPercentScrolled ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_VerticalPercentScrolled ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DocumentMap ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DocumentMap ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Active ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_DocumentMapPercentWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DocumentMapPercentWidth ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_IMEMode ( /*[out,retval]*/ enum WdIMEMode * prop ) = 0; virtual HRESULT __stdcall put_IMEMode ( /*[in]*/ enum WdIMEMode prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall Close ( /*[in]*/ VARIANT * SaveChanges = &vtMissing, /*[in]*/ VARIANT * RouteDocument = &vtMissing ) = 0; virtual HRESULT __stdcall LargeScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing, /*[in]*/ VARIANT * ToRight = &vtMissing, /*[in]*/ VARIANT * ToLeft = &vtMissing ) = 0; virtual HRESULT __stdcall SmallScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing, /*[in]*/ VARIANT * ToRight = &vtMissing, /*[in]*/ VARIANT * ToLeft = &vtMissing ) = 0; virtual HRESULT __stdcall NewWindow ( /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall PrintOutOld ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing ) = 0; virtual HRESULT __stdcall PageScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing ) = 0; virtual HRESULT __stdcall SetFocus ( ) = 0; virtual HRESULT __stdcall RangeFromPoint ( /*[in]*/ long x, /*[in]*/ long y, /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall ScrollIntoView ( /*[in]*/ IDispatch * obj, /*[in]*/ VARIANT * Start = &vtMissing ) = 0; virtual HRESULT __stdcall GetPoint ( /*[out]*/ long * ScreenPixelsLeft, /*[out]*/ long * ScreenPixelsTop, /*[out]*/ long * ScreenPixelsWidth, /*[out]*/ long * ScreenPixelsHeight, /*[in]*/ IDispatch * obj ) = 0; virtual HRESULT __stdcall PrintOut2000 ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall get_UsableWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_UsableHeight ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_EnvelopeVisible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EnvelopeVisible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayRightRuler ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayRightRuler ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayLeftScrollBar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayLeftScrollBar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall PrintOut ( /*[in]*/ VARIANT * Background = &vtMissing, /*[in]*/ VARIANT * Append = &vtMissing, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * OutputFileName = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * Item = &vtMissing, /*[in]*/ VARIANT * Copies = &vtMissing, /*[in]*/ VARIANT * Pages = &vtMissing, /*[in]*/ VARIANT * PageType = &vtMissing, /*[in]*/ VARIANT * PrintToFile = &vtMissing, /*[in]*/ VARIANT * Collate = &vtMissing, /*[in]*/ VARIANT * ActivePrinterMacGX = &vtMissing, /*[in]*/ VARIANT * ManualDuplexPrint = &vtMissing, /*[in]*/ VARIANT * PrintZoomColumn = &vtMissing, /*[in]*/ VARIANT * PrintZoomRow = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperWidth = &vtMissing, /*[in]*/ VARIANT * PrintZoomPaperHeight = &vtMissing ) = 0; virtual HRESULT __stdcall ToggleShowAllReviewers ( ) = 0; virtual HRESULT __stdcall get_Thumbnails ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Thumbnails ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ShowSourceDocuments ( /*[out,retval]*/ enum WdShowSourceDocuments * prop ) = 0; virtual HRESULT __stdcall put_ShowSourceDocuments ( /*[in]*/ enum WdShowSourceDocuments prop ) = 0; virtual HRESULT __stdcall ToggleRibbon ( ) = 0; virtual HRESULT __stdcall get_Hwnd ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("00020961-0000-0000-c000-000000000046")) Windows : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Window, /*[out,retval]*/ struct Window * * prop ) = 0; virtual HRESULT __stdcall Arrange ( /*[in]*/ VARIANT * ArrangeStyle = &vtMissing ) = 0; virtual HRESULT __stdcall CompareSideBySideWith ( /*[in]*/ VARIANT * Document, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall BreakSideBySide ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall ResetPositionsSideBySide ( ) = 0; virtual HRESULT __stdcall get_SyncScrollingSideBySide ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SyncScrollingSideBySide ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020960-0000-0000-c000-000000000046")) Pane : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Document ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_Selection ( /*[out,retval]*/ struct Selection * * prop ) = 0; virtual HRESULT __stdcall get_DisplayRulers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayRulers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayVerticalRuler ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayVerticalRuler ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Zooms ( /*[out,retval]*/ struct Zooms * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_View ( /*[out,retval]*/ struct View * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Pane * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Pane * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalPercentScrolled ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HorizontalPercentScrolled ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_VerticalPercentScrolled ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_VerticalPercentScrolled ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MinimumFontSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MinimumFontSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_BrowseToWindow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BrowseToWindow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_BrowseWidth ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall Close ( ) = 0; virtual HRESULT __stdcall LargeScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing, /*[in]*/ VARIANT * ToRight = &vtMissing, /*[in]*/ VARIANT * ToLeft = &vtMissing ) = 0; virtual HRESULT __stdcall SmallScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing, /*[in]*/ VARIANT * ToRight = &vtMissing, /*[in]*/ VARIANT * ToLeft = &vtMissing ) = 0; virtual HRESULT __stdcall AutoScroll ( /*[in]*/ long Velocity ) = 0; virtual HRESULT __stdcall PageScroll ( /*[in]*/ VARIANT * Down = &vtMissing, /*[in]*/ VARIANT * Up = &vtMissing ) = 0; virtual HRESULT __stdcall NewFrameset ( ) = 0; virtual HRESULT __stdcall TOCInFrameset ( ) = 0; virtual HRESULT __stdcall get_Frameset ( /*[out,retval]*/ struct Frameset * * prop ) = 0; virtual HRESULT __stdcall get_Pages ( /*[out,retval]*/ struct Pages * * prop ) = 0; }; struct __declspec(uuid("0002095f-0000-0000-c000-000000000046")) Panes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Pane * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * SplitVertical, /*[out,retval]*/ struct Pane * * prop ) = 0; }; struct __declspec(uuid("0002095e-0000-0000-c000-000000000046")) Range : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormattedText ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall put_FormattedText ( /*[in]*/ struct Range * prop ) = 0; virtual HRESULT __stdcall get_Start ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Start ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_End ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_End ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_Duplicate ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_StoryType ( /*[out,retval]*/ enum WdStoryType * prop ) = 0; virtual HRESULT __stdcall get_Tables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_Words ( /*[out,retval]*/ struct Words * * prop ) = 0; virtual HRESULT __stdcall get_Sentences ( /*[out,retval]*/ struct Sentences * * prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[out,retval]*/ struct Characters * * prop ) = 0; virtual HRESULT __stdcall get_Footnotes ( /*[out,retval]*/ struct Footnotes * * prop ) = 0; virtual HRESULT __stdcall get_Endnotes ( /*[out,retval]*/ struct Endnotes * * prop ) = 0; virtual HRESULT __stdcall get_Comments ( /*[out,retval]*/ struct Comments * * prop ) = 0; virtual HRESULT __stdcall get_Cells ( /*[out,retval]*/ struct Cells * * prop ) = 0; virtual HRESULT __stdcall get_Sections ( /*[out,retval]*/ struct Sections * * prop ) = 0; virtual HRESULT __stdcall get_Paragraphs ( /*[out,retval]*/ struct Paragraphs * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_TextRetrievalMode ( /*[out,retval]*/ struct TextRetrievalMode * * prop ) = 0; virtual HRESULT __stdcall put_TextRetrievalMode ( /*[in]*/ struct TextRetrievalMode * prop ) = 0; virtual HRESULT __stdcall get_Fields ( /*[out,retval]*/ struct Fields * * prop ) = 0; virtual HRESULT __stdcall get_FormFields ( /*[out,retval]*/ struct FormFields * * prop ) = 0; virtual HRESULT __stdcall get_Frames ( /*[out,retval]*/ struct Frames * * prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_ListFormat ( /*[out,retval]*/ struct ListFormat * * prop ) = 0; virtual HRESULT __stdcall get_Bookmarks ( /*[out,retval]*/ struct Bookmarks * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Bold ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Bold ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Italic ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Italic ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Underline ( /*[out,retval]*/ enum WdUnderline * prop ) = 0; virtual HRESULT __stdcall put_Underline ( /*[in]*/ enum WdUnderline prop ) = 0; virtual HRESULT __stdcall get_EmphasisMark ( /*[out,retval]*/ enum WdEmphasisMark * prop ) = 0; virtual HRESULT __stdcall put_EmphasisMark ( /*[in]*/ enum WdEmphasisMark prop ) = 0; virtual HRESULT __stdcall get_DisableCharacterSpaceGrid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisableCharacterSpaceGrid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Revisions ( /*[out,retval]*/ struct Revisions * * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_StoryLength ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_SynonymInfo ( /*[out,retval]*/ struct SynonymInfo * * prop ) = 0; virtual HRESULT __stdcall get_Hyperlinks ( /*[out,retval]*/ struct Hyperlinks * * prop ) = 0; virtual HRESULT __stdcall get_ListParagraphs ( /*[out,retval]*/ struct ListParagraphs * * prop ) = 0; virtual HRESULT __stdcall get_Subdocuments ( /*[out,retval]*/ struct Subdocuments * * prop ) = 0; virtual HRESULT __stdcall get_GrammarChecked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_GrammarChecked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SpellingChecked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SpellingChecked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HighlightColorIndex ( /*[out,retval]*/ enum WdColorIndex * prop ) = 0; virtual HRESULT __stdcall put_HighlightColorIndex ( /*[in]*/ enum WdColorIndex prop ) = 0; virtual HRESULT __stdcall get_Columns ( /*[out,retval]*/ struct Columns * * prop ) = 0; virtual HRESULT __stdcall get_Rows ( /*[out,retval]*/ struct Rows * * prop ) = 0; virtual HRESULT __stdcall get_CanEdit ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_CanPaste ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_IsEndOfRowMark ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_BookmarkID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PreviousBookmarkID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Find ( /*[out,retval]*/ struct Find * * prop ) = 0; virtual HRESULT __stdcall get_PageSetup ( /*[out,retval]*/ struct PageSetup * * prop ) = 0; virtual HRESULT __stdcall put_PageSetup ( /*[in]*/ struct PageSetup * prop ) = 0; virtual HRESULT __stdcall get_ShapeRange ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall get_Case ( /*[out,retval]*/ enum WdCharacterCase * prop ) = 0; virtual HRESULT __stdcall put_Case ( /*[in]*/ enum WdCharacterCase prop ) = 0; virtual HRESULT __stdcall get_Information ( /*[in]*/ enum WdInformation Type, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ReadabilityStatistics ( /*[out,retval]*/ struct ReadabilityStatistics * * prop ) = 0; virtual HRESULT __stdcall get_GrammaticalErrors ( /*[out,retval]*/ struct ProofreadingErrors * * prop ) = 0; virtual HRESULT __stdcall get_SpellingErrors ( /*[out,retval]*/ struct ProofreadingErrors * * prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ enum WdTextOrientation * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ enum WdTextOrientation prop ) = 0; virtual HRESULT __stdcall get_InlineShapes ( /*[out,retval]*/ struct InlineShapes * * prop ) = 0; virtual HRESULT __stdcall get_NextStoryRange ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_LanguageIDOther ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDOther ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall SetRange ( /*[in]*/ long Start, /*[in]*/ long End ) = 0; virtual HRESULT __stdcall Collapse ( /*[in]*/ VARIANT * Direction = &vtMissing ) = 0; virtual HRESULT __stdcall InsertBefore ( /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall InsertAfter ( /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall Next ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Previous ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall StartOf ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall EndOf ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Move ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStart ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEnd ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStartWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEndWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStartUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEndUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Paste ( ) = 0; virtual HRESULT __stdcall InsertBreak ( /*[in]*/ VARIANT * Type = &vtMissing ) = 0; virtual HRESULT __stdcall InsertFile ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * Link = &vtMissing, /*[in]*/ VARIANT * Attachment = &vtMissing ) = 0; virtual HRESULT __stdcall InStory ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall InRange ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall WholeStory ( ) = 0; virtual HRESULT __stdcall Expand ( /*[in]*/ VARIANT * Unit, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall InsertParagraph ( ) = 0; virtual HRESULT __stdcall InsertParagraphAfter ( ) = 0; virtual HRESULT __stdcall ConvertToTableOld ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NumRows, /*[in]*/ VARIANT * NumColumns, /*[in]*/ VARIANT * InitialColumnWidth, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ApplyBorders, /*[in]*/ VARIANT * ApplyShading, /*[in]*/ VARIANT * ApplyFont, /*[in]*/ VARIANT * ApplyColor, /*[in]*/ VARIANT * ApplyHeadingRows, /*[in]*/ VARIANT * ApplyLastRow, /*[in]*/ VARIANT * ApplyFirstColumn, /*[in]*/ VARIANT * ApplyLastColumn, /*[in]*/ VARIANT * AutoFit, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall InsertDateTimeOld ( /*[in]*/ VARIANT * DateTimeFormat = &vtMissing, /*[in]*/ VARIANT * InsertAsField = &vtMissing, /*[in]*/ VARIANT * InsertAsFullWidth = &vtMissing ) = 0; virtual HRESULT __stdcall InsertSymbol ( /*[in]*/ long CharacterNumber, /*[in]*/ VARIANT * Font = &vtMissing, /*[in]*/ VARIANT * Unicode = &vtMissing, /*[in]*/ VARIANT * Bias = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCrossReference_2002 ( /*[in]*/ VARIANT * ReferenceType, /*[in]*/ enum WdReferenceKind ReferenceKind, /*[in]*/ VARIANT * ReferenceItem, /*[in]*/ VARIANT * InsertAsHyperlink = &vtMissing, /*[in]*/ VARIANT * IncludePosition = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCaptionXP ( /*[in]*/ VARIANT * Label, /*[in]*/ VARIANT * Title = &vtMissing, /*[in]*/ VARIANT * TitleAutoText = &vtMissing, /*[in]*/ VARIANT * Position = &vtMissing ) = 0; virtual HRESULT __stdcall CopyAsPicture ( ) = 0; virtual HRESULT __stdcall SortOld ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * SortColumn = &vtMissing, /*[in]*/ VARIANT * Separator = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall SortAscending ( ) = 0; virtual HRESULT __stdcall SortDescending ( ) = 0; virtual HRESULT __stdcall IsEqual ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Calculate ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall GoTo ( /*[in]*/ VARIANT * What, /*[in]*/ VARIANT * Which, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Name, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall GoToNext ( /*[in]*/ enum WdGoToItem What, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall GoToPrevious ( /*[in]*/ enum WdGoToItem What, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall PasteSpecial ( /*[in]*/ VARIANT * IconIndex = &vtMissing, /*[in]*/ VARIANT * Link = &vtMissing, /*[in]*/ VARIANT * Placement = &vtMissing, /*[in]*/ VARIANT * DisplayAsIcon = &vtMissing, /*[in]*/ VARIANT * DataType = &vtMissing, /*[in]*/ VARIANT * IconFileName = &vtMissing, /*[in]*/ VARIANT * IconLabel = &vtMissing ) = 0; virtual HRESULT __stdcall LookupNameProperties ( ) = 0; virtual HRESULT __stdcall ComputeStatistics ( /*[in]*/ enum WdStatistic Statistic, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Relocate ( /*[in]*/ long Direction ) = 0; virtual HRESULT __stdcall CheckSynonyms ( ) = 0; virtual HRESULT __stdcall SubscribeTo ( /*[in]*/ BSTR Edition, /*[in]*/ VARIANT * Format = &vtMissing ) = 0; virtual HRESULT __stdcall CreatePublisher ( /*[in]*/ VARIANT * Edition = &vtMissing, /*[in]*/ VARIANT * ContainsPICT = &vtMissing, /*[in]*/ VARIANT * ContainsRTF = &vtMissing, /*[in]*/ VARIANT * ContainsText = &vtMissing ) = 0; virtual HRESULT __stdcall InsertAutoText ( ) = 0; virtual HRESULT __stdcall InsertDatabase ( /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * Style = &vtMissing, /*[in]*/ VARIANT * LinkToSource = &vtMissing, /*[in]*/ VARIANT * Connection = &vtMissing, /*[in]*/ VARIANT * SQLStatement = &vtMissing, /*[in]*/ VARIANT * SQLStatement1 = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * PasswordTemplate = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordTemplate = &vtMissing, /*[in]*/ VARIANT * DataSource = &vtMissing, /*[in]*/ VARIANT * From = &vtMissing, /*[in]*/ VARIANT * To = &vtMissing, /*[in]*/ VARIANT * IncludeFields = &vtMissing ) = 0; virtual HRESULT __stdcall AutoFormat ( ) = 0; virtual HRESULT __stdcall CheckGrammar ( ) = 0; virtual HRESULT __stdcall CheckSpelling ( /*[in]*/ VARIANT * CustomDictionary = &vtMissing, /*[in]*/ VARIANT * IgnoreUppercase = &vtMissing, /*[in]*/ VARIANT * AlwaysSuggest = &vtMissing, /*[in]*/ VARIANT * CustomDictionary2 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary3 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary4 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary5 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary6 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary7 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary8 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary9 = &vtMissing, /*[in]*/ VARIANT * CustomDictionary10 = &vtMissing ) = 0; virtual HRESULT __stdcall GetSpellingSuggestions ( /*[in]*/ VARIANT * CustomDictionary, /*[in]*/ VARIANT * IgnoreUppercase, /*[in]*/ VARIANT * MainDictionary, /*[in]*/ VARIANT * SuggestionMode, /*[in]*/ VARIANT * CustomDictionary2, /*[in]*/ VARIANT * CustomDictionary3, /*[in]*/ VARIANT * CustomDictionary4, /*[in]*/ VARIANT * CustomDictionary5, /*[in]*/ VARIANT * CustomDictionary6, /*[in]*/ VARIANT * CustomDictionary7, /*[in]*/ VARIANT * CustomDictionary8, /*[in]*/ VARIANT * CustomDictionary9, /*[in]*/ VARIANT * CustomDictionary10, /*[out,retval]*/ struct SpellingSuggestions * * prop ) = 0; virtual HRESULT __stdcall InsertParagraphBefore ( ) = 0; virtual HRESULT __stdcall NextSubdocument ( ) = 0; virtual HRESULT __stdcall PreviousSubdocument ( ) = 0; virtual HRESULT __stdcall ConvertHangulAndHanja ( /*[in]*/ VARIANT * ConversionsMode = &vtMissing, /*[in]*/ VARIANT * FastConversion = &vtMissing, /*[in]*/ VARIANT * CheckHangulEnding = &vtMissing, /*[in]*/ VARIANT * EnableRecentOrdering = &vtMissing, /*[in]*/ VARIANT * CustomDictionary = &vtMissing ) = 0; virtual HRESULT __stdcall PasteAsNestedTable ( ) = 0; virtual HRESULT __stdcall ModifyEnclosure ( /*[in]*/ VARIANT * Style, /*[in]*/ VARIANT * Symbol = &vtMissing, /*[in]*/ VARIANT * EnclosedText = &vtMissing ) = 0; virtual HRESULT __stdcall PhoneticGuide ( /*[in]*/ BSTR Text, /*[in]*/ enum WdPhoneticGuideAlignmentType Alignment, /*[in]*/ long Raise, /*[in]*/ long FontSize, /*[in]*/ BSTR FontName ) = 0; virtual HRESULT __stdcall InsertDateTime ( /*[in]*/ VARIANT * DateTimeFormat = &vtMissing, /*[in]*/ VARIANT * InsertAsField = &vtMissing, /*[in]*/ VARIANT * InsertAsFullWidth = &vtMissing, /*[in]*/ VARIANT * DateLanguage = &vtMissing, /*[in]*/ VARIANT * CalendarType = &vtMissing ) = 0; virtual HRESULT __stdcall Sort ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * SortColumn = &vtMissing, /*[in]*/ VARIANT * Separator = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall DetectLanguage ( ) = 0; virtual HRESULT __stdcall ConvertToTable ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NumRows, /*[in]*/ VARIANT * NumColumns, /*[in]*/ VARIANT * InitialColumnWidth, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ApplyBorders, /*[in]*/ VARIANT * ApplyShading, /*[in]*/ VARIANT * ApplyFont, /*[in]*/ VARIANT * ApplyColor, /*[in]*/ VARIANT * ApplyHeadingRows, /*[in]*/ VARIANT * ApplyLastRow, /*[in]*/ VARIANT * ApplyFirstColumn, /*[in]*/ VARIANT * ApplyLastColumn, /*[in]*/ VARIANT * AutoFit, /*[in]*/ VARIANT * AutoFitBehavior, /*[in]*/ VARIANT * DefaultTableBehavior, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall TCSCConverter ( /*[in]*/ enum WdTCSCConverterDirection WdTCSCConverterDirection, /*[in]*/ VARIANT_BOOL CommonTerms, /*[in]*/ VARIANT_BOOL UseVariants ) = 0; virtual HRESULT __stdcall get_LanguageDetected ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LanguageDetected ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FitTextWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FitTextWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalInVertical ( /*[out,retval]*/ enum WdHorizontalInVerticalType * prop ) = 0; virtual HRESULT __stdcall put_HorizontalInVertical ( /*[in]*/ enum WdHorizontalInVerticalType prop ) = 0; virtual HRESULT __stdcall get_TwoLinesInOne ( /*[out,retval]*/ enum WdTwoLinesInOneType * prop ) = 0; virtual HRESULT __stdcall put_TwoLinesInOne ( /*[in]*/ enum WdTwoLinesInOneType prop ) = 0; virtual HRESULT __stdcall get_CombineCharacters ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CombineCharacters ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TopLevelTables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_Scripts ( /*[out,retval]*/ struct Office::Scripts * * prop ) = 0; virtual HRESULT __stdcall get_CharacterWidth ( /*[out,retval]*/ enum WdCharacterWidth * prop ) = 0; virtual HRESULT __stdcall put_CharacterWidth ( /*[in]*/ enum WdCharacterWidth prop ) = 0; virtual HRESULT __stdcall get_Kana ( /*[out,retval]*/ enum WdKana * prop ) = 0; virtual HRESULT __stdcall put_Kana ( /*[in]*/ enum WdKana prop ) = 0; virtual HRESULT __stdcall get_BoldBi ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_BoldBi ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ItalicBi ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ItalicBi ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HTMLDivisions ( /*[out,retval]*/ struct HTMLDivisions * * prop ) = 0; virtual HRESULT __stdcall get_SmartTags ( /*[out,retval]*/ struct SmartTags * * prop ) = 0; virtual HRESULT __stdcall get_ShowAll ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowAll ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Document ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_FootnoteOptions ( /*[out,retval]*/ struct FootnoteOptions * * prop ) = 0; virtual HRESULT __stdcall get_EndnoteOptions ( /*[out,retval]*/ struct EndnoteOptions * * prop ) = 0; virtual HRESULT __stdcall PasteAndFormat ( /*[in]*/ enum WdRecoveryType Type ) = 0; virtual HRESULT __stdcall PasteExcelTable ( /*[in]*/ VARIANT_BOOL LinkedToExcel, /*[in]*/ VARIANT_BOOL WordFormatting, /*[in]*/ VARIANT_BOOL RTF ) = 0; virtual HRESULT __stdcall PasteAppendTable ( ) = 0; virtual HRESULT __stdcall get_XMLNodes ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_XMLParentNode ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_Editors ( /*[out,retval]*/ struct Editors * * prop ) = 0; virtual HRESULT __stdcall get_XML ( /*[in]*/ VARIANT_BOOL DataOnly, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_EnhMetaFileBits ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall GoToEditableRange ( /*[in]*/ VARIANT * EditorID, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall InsertXML ( /*[in]*/ BSTR XML, /*[in]*/ VARIANT * Transform = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCaption ( /*[in]*/ VARIANT * Label, /*[in]*/ VARIANT * Title = &vtMissing, /*[in]*/ VARIANT * TitleAutoText = &vtMissing, /*[in]*/ VARIANT * Position = &vtMissing, /*[in]*/ VARIANT * ExcludeLabel = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCrossReference ( /*[in]*/ VARIANT * ReferenceType, /*[in]*/ enum WdReferenceKind ReferenceKind, /*[in]*/ VARIANT * ReferenceItem, /*[in]*/ VARIANT * InsertAsHyperlink = &vtMissing, /*[in]*/ VARIANT * IncludePosition = &vtMissing, /*[in]*/ VARIANT * SeparateNumbers = &vtMissing, /*[in]*/ VARIANT * SeparatorString = &vtMissing ) = 0; virtual HRESULT __stdcall get_OMaths ( /*[out,retval]*/ struct OMaths * * prop ) = 0; virtual HRESULT __stdcall get_CharacterStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ParagraphStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ListStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_TableStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ContentControls ( /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall ExportFragment ( /*[in]*/ BSTR FileName, /*[in]*/ enum WdSaveFormat Format ) = 0; virtual HRESULT __stdcall get_WordOpenXML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall SetListLevel ( /*[in]*/ short Level ) = 0; virtual HRESULT __stdcall InsertAlignmentTab ( /*[in]*/ long Alignment, /*[in]*/ long RelativeTo ) = 0; virtual HRESULT __stdcall get_ParentContentControl ( /*[out,retval]*/ struct ContentControl * * prop ) = 0; virtual HRESULT __stdcall ImportFragment ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT_BOOL MatchDestination ) = 0; virtual HRESULT __stdcall ExportAsFixedFormat ( /*[in]*/ BSTR OutputFileName, /*[in]*/ enum WdExportFormat ExportFormat, /*[in]*/ VARIANT_BOOL OpenAfterExport, /*[in]*/ enum WdExportOptimizeFor OptimizeFor, /*[in]*/ VARIANT_BOOL ExportCurrentPage, /*[in]*/ enum WdExportItem Item, /*[in]*/ VARIANT_BOOL IncludeDocProps, /*[in]*/ VARIANT_BOOL KeepIRM, /*[in]*/ enum WdExportCreateBookmarks CreateBookmarks, /*[in]*/ VARIANT_BOOL DocStructureTags, /*[in]*/ VARIANT_BOOL BitmapMissingFonts, /*[in]*/ VARIANT_BOOL UseISO19005_1, /*[in]*/ VARIANT * FixedFormatExtClassPtr = &vtMissing ) = 0; virtual HRESULT __stdcall get_Locks ( /*[out,retval]*/ struct CoAuthLocks * * prop ) = 0; virtual HRESULT __stdcall get_Updates ( /*[out,retval]*/ struct CoAuthUpdates * * prop ) = 0; virtual HRESULT __stdcall get_Conflicts ( /*[out,retval]*/ struct Conflicts * * prop ) = 0; virtual HRESULT __stdcall get_TextVisibleOnScreen ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall SortByHeadings ( /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; }; struct __declspec(uuid("0002095d-0000-0000-c000-000000000046")) Characters : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("0002095c-0000-0000-c000-000000000046")) Words : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("0002095b-0000-0000-c000-000000000046")) Sentences : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("00020957-0000-0000-c000-000000000046")) Paragraph : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_TabStops ( /*[out,retval]*/ struct TabStops * * prop ) = 0; virtual HRESULT __stdcall put_TabStops ( /*[in]*/ struct TabStops * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_DropCap ( /*[out,retval]*/ struct DropCap * * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdParagraphAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdParagraphAlignment prop ) = 0; virtual HRESULT __stdcall get_KeepTogether ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepTogether ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_KeepWithNext ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepWithNext ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PageBreakBefore ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PageBreakBefore ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NoLineNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoLineNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineSpacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacingRule ( /*[out,retval]*/ enum WdLineSpacing * prop ) = 0; virtual HRESULT __stdcall put_LineSpacingRule ( /*[in]*/ enum WdLineSpacing prop ) = 0; virtual HRESULT __stdcall get_SpaceBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Hyphenation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Hyphenation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WidowControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WidowControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WordWrap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WordWrap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HangingPunctuation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HangingPunctuation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HalfWidthPunctuationOnTopOfLine ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HalfWidthPunctuationOnTopOfLine ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndAlpha ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndAlpha ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndDigit ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndDigit ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_BaseLineAlignment ( /*[out,retval]*/ enum WdBaselineAlignment * prop ) = 0; virtual HRESULT __stdcall put_BaseLineAlignment ( /*[in]*/ enum WdBaselineAlignment prop ) = 0; virtual HRESULT __stdcall get_AutoAdjustRightIndent ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AutoAdjustRightIndent ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DisableLineHeightGrid ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DisableLineHeightGrid ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_OutlineLevel ( /*[out,retval]*/ enum WdOutlineLevel * prop ) = 0; virtual HRESULT __stdcall put_OutlineLevel ( /*[in]*/ enum WdOutlineLevel prop ) = 0; virtual HRESULT __stdcall CloseUp ( ) = 0; virtual HRESULT __stdcall OpenUp ( ) = 0; virtual HRESULT __stdcall OpenOrCloseUp ( ) = 0; virtual HRESULT __stdcall TabHangingIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall TabIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall Space1 ( ) = 0; virtual HRESULT __stdcall Space15 ( ) = 0; virtual HRESULT __stdcall Space2 ( ) = 0; virtual HRESULT __stdcall IndentCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall IndentFirstLineCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall Next ( /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall Previous ( /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall OutlinePromote ( ) = 0; virtual HRESULT __stdcall OutlineDemote ( ) = 0; virtual HRESULT __stdcall OutlineDemoteToBody ( ) = 0; virtual HRESULT __stdcall Indent ( ) = 0; virtual HRESULT __stdcall Outdent ( ) = 0; virtual HRESULT __stdcall get_CharacterUnitRightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitRightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitLeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitLeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitFirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitFirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ enum WdReadingOrder * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ enum WdReadingOrder prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SpaceBeforeAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceBeforeAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SpaceAfterAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfterAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_IsStyleSeparator ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SelectNumber ( ) = 0; virtual HRESULT __stdcall ListAdvanceTo ( /*[in]*/ short Level1, /*[in]*/ short Level2, /*[in]*/ short Level3, /*[in]*/ short Level4, /*[in]*/ short Level5, /*[in]*/ short Level6, /*[in]*/ short Level7, /*[in]*/ short Level8, /*[in]*/ short Level9 ) = 0; virtual HRESULT __stdcall ResetAdvanceTo ( ) = 0; virtual HRESULT __stdcall SeparateList ( ) = 0; virtual HRESULT __stdcall JoinList ( ) = 0; virtual HRESULT __stdcall get_MirrorIndents ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_MirrorIndents ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TextboxTightWrap ( /*[out,retval]*/ enum WdTextboxTightWrap * prop ) = 0; virtual HRESULT __stdcall put_TextboxTightWrap ( /*[in]*/ enum WdTextboxTightWrap prop ) = 0; virtual HRESULT __stdcall get_ListNumberOriginal ( /*[in]*/ short Level, /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall get_ParaID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_TextID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_CollapsedState ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CollapsedState ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CollapseHeadingByDefault ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CollapseHeadingByDefault ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020958-0000-0000-c000-000000000046")) Paragraphs : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_TabStops ( /*[out,retval]*/ struct TabStops * * prop ) = 0; virtual HRESULT __stdcall put_TabStops ( /*[in]*/ struct TabStops * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdParagraphAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdParagraphAlignment prop ) = 0; virtual HRESULT __stdcall get_KeepTogether ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepTogether ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_KeepWithNext ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_KeepWithNext ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PageBreakBefore ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_PageBreakBefore ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NoLineNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoLineNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_RightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineSpacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineSpacingRule ( /*[out,retval]*/ enum WdLineSpacing * prop ) = 0; virtual HRESULT __stdcall put_LineSpacingRule ( /*[in]*/ enum WdLineSpacing prop ) = 0; virtual HRESULT __stdcall get_SpaceBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Hyphenation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Hyphenation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WidowControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WidowControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_FarEastLineBreakControl ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_FarEastLineBreakControl ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WordWrap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WordWrap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HangingPunctuation ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HangingPunctuation ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HalfWidthPunctuationOnTopOfLine ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HalfWidthPunctuationOnTopOfLine ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndAlpha ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndAlpha ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_AddSpaceBetweenFarEastAndDigit ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AddSpaceBetweenFarEastAndDigit ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_BaseLineAlignment ( /*[out,retval]*/ enum WdBaselineAlignment * prop ) = 0; virtual HRESULT __stdcall put_BaseLineAlignment ( /*[in]*/ enum WdBaselineAlignment prop ) = 0; virtual HRESULT __stdcall get_AutoAdjustRightIndent ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AutoAdjustRightIndent ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DisableLineHeightGrid ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_DisableLineHeightGrid ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_OutlineLevel ( /*[out,retval]*/ enum WdOutlineLevel * prop ) = 0; virtual HRESULT __stdcall put_OutlineLevel ( /*[in]*/ enum WdOutlineLevel prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct Paragraph * * prop ) = 0; virtual HRESULT __stdcall CloseUp ( ) = 0; virtual HRESULT __stdcall OpenUp ( ) = 0; virtual HRESULT __stdcall OpenOrCloseUp ( ) = 0; virtual HRESULT __stdcall TabHangingIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall TabIndent ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall Space1 ( ) = 0; virtual HRESULT __stdcall Space15 ( ) = 0; virtual HRESULT __stdcall Space2 ( ) = 0; virtual HRESULT __stdcall IndentCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall IndentFirstLineCharWidth ( /*[in]*/ short Count ) = 0; virtual HRESULT __stdcall OutlinePromote ( ) = 0; virtual HRESULT __stdcall OutlineDemote ( ) = 0; virtual HRESULT __stdcall OutlineDemoteToBody ( ) = 0; virtual HRESULT __stdcall Indent ( ) = 0; virtual HRESULT __stdcall Outdent ( ) = 0; virtual HRESULT __stdcall get_CharacterUnitRightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitRightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitLeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitLeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_CharacterUnitFirstLineIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_CharacterUnitFirstLineIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LineUnitAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LineUnitAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ReadingOrder ( /*[out,retval]*/ enum WdReadingOrder * prop ) = 0; virtual HRESULT __stdcall put_ReadingOrder ( /*[in]*/ enum WdReadingOrder prop ) = 0; virtual HRESULT __stdcall get_SpaceBeforeAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceBeforeAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SpaceAfterAuto ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfterAuto ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall IncreaseSpacing ( ) = 0; virtual HRESULT __stdcall DecreaseSpacing ( ) = 0; }; struct __declspec(uuid("00020947-0000-0000-c000-000000000046")) AutoCorrectEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_RichText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Apply ( /*[in]*/ struct Range * Range ) = 0; }; struct __declspec(uuid("00020948-0000-0000-c000-000000000046")) AutoCorrectEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct AutoCorrectEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ BSTR Value, /*[out,retval]*/ struct AutoCorrectEntry * * prop ) = 0; virtual HRESULT __stdcall AddRichText ( /*[in]*/ BSTR Name, /*[in]*/ struct Range * Range, /*[out,retval]*/ struct AutoCorrectEntry * * prop ) = 0; }; struct __declspec(uuid("00020949-0000-0000-c000-000000000046")) AutoCorrect : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CorrectDays ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectDays ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CorrectInitialCaps ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectInitialCaps ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CorrectSentenceCaps ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectSentenceCaps ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReplaceText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReplaceText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Entries ( /*[out,retval]*/ struct AutoCorrectEntries * * prop ) = 0; virtual HRESULT __stdcall get_FirstLetterExceptions ( /*[out,retval]*/ struct FirstLetterExceptions * * prop ) = 0; virtual HRESULT __stdcall get_FirstLetterAutoAdd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FirstLetterAutoAdd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TwoInitialCapsExceptions ( /*[out,retval]*/ struct TwoInitialCapsExceptions * * prop ) = 0; virtual HRESULT __stdcall get_TwoInitialCapsAutoAdd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TwoInitialCapsAutoAdd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CorrectCapsLock ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectCapsLock ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CorrectHangulAndAlphabet ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectHangulAndAlphabet ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HangulAndAlphabetExceptions ( /*[out,retval]*/ struct HangulAndAlphabetExceptions * * prop ) = 0; virtual HRESULT __stdcall get_HangulAndAlphabetAutoAdd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HangulAndAlphabetAutoAdd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ReplaceTextFromSpellingChecker ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ReplaceTextFromSpellingChecker ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OtherCorrectionsAutoAdd ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OtherCorrectionsAutoAdd ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OtherCorrectionsExceptions ( /*[out,retval]*/ struct OtherCorrectionsExceptions * * prop ) = 0; virtual HRESULT __stdcall get_CorrectKeyboardSetting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectKeyboardSetting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_CorrectTableCells ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectTableCells ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DisplayAutoCorrectOptions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DisplayAutoCorrectOptions ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("0002093f-0000-0000-c000-000000000046")) Footnote : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Reference ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020942-0000-0000-c000-000000000046")) Footnotes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[out,retval]*/ enum WdFootnoteLocation * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ enum WdFootnoteLocation prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdNoteNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdNoteNumberStyle prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NumberingRule ( /*[out,retval]*/ enum WdNumberingRule * prop ) = 0; virtual HRESULT __stdcall put_NumberingRule ( /*[in]*/ enum WdNumberingRule prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ContinuationSeparator ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ContinuationNotice ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Footnote * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Reference, /*[in]*/ VARIANT * Text, /*[out,retval]*/ struct Footnote * * prop ) = 0; virtual HRESULT __stdcall Convert ( ) = 0; virtual HRESULT __stdcall SwapWithEndnotes ( ) = 0; virtual HRESULT __stdcall ResetSeparator ( ) = 0; virtual HRESULT __stdcall ResetContinuationSeparator ( ) = 0; virtual HRESULT __stdcall ResetContinuationNotice ( ) = 0; }; struct __declspec(uuid("0002093e-0000-0000-c000-000000000046")) Endnote : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Reference ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020941-0000-0000-c000-000000000046")) Endnotes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Location ( /*[out,retval]*/ enum WdEndnoteLocation * prop ) = 0; virtual HRESULT __stdcall put_Location ( /*[in]*/ enum WdEndnoteLocation prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdNoteNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdNoteNumberStyle prop ) = 0; virtual HRESULT __stdcall get_StartingNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartingNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NumberingRule ( /*[out,retval]*/ enum WdNumberingRule * prop ) = 0; virtual HRESULT __stdcall put_NumberingRule ( /*[in]*/ enum WdNumberingRule prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ContinuationSeparator ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ContinuationNotice ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Endnote * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Reference, /*[in]*/ VARIANT * Text, /*[out,retval]*/ struct Endnote * * prop ) = 0; virtual HRESULT __stdcall Convert ( ) = 0; virtual HRESULT __stdcall SwapWithFootnotes ( ) = 0; virtual HRESULT __stdcall ResetSeparator ( ) = 0; virtual HRESULT __stdcall ResetContinuationSeparator ( ) = 0; virtual HRESULT __stdcall ResetContinuationNotice ( ) = 0; }; struct __declspec(uuid("00020936-0000-0000-c000-000000000046")) AutoTextEntry : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_StyleName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ struct Range * Where, /*[in]*/ VARIANT * RichText, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("00020937-0000-0000-c000-000000000046")) AutoTextEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct AutoTextEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ struct Range * Range, /*[out,retval]*/ struct AutoTextEntry * * prop ) = 0; virtual HRESULT __stdcall AppendToSpike ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct AutoTextEntry * * prop ) = 0; }; struct __declspec(uuid("0002092a-0000-0000-c000-000000000046")) Frame : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_HeightRule ( /*[out,retval]*/ enum WdFrameSizeRule * prop ) = 0; virtual HRESULT __stdcall put_HeightRule ( /*[in]*/ enum WdFrameSizeRule prop ) = 0; virtual HRESULT __stdcall get_WidthRule ( /*[out,retval]*/ enum WdFrameSizeRule * prop ) = 0; virtual HRESULT __stdcall put_WidthRule ( /*[in]*/ enum WdFrameSizeRule prop ) = 0; virtual HRESULT __stdcall get_HorizontalDistanceFromText ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HorizontalDistanceFromText ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HorizontalPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LockAnchor ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LockAnchor ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalPosition ( /*[out,retval]*/ enum WdRelativeHorizontalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalPosition ( /*[in]*/ enum WdRelativeHorizontalPosition prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalPosition ( /*[out,retval]*/ enum WdRelativeVerticalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalPosition ( /*[in]*/ enum WdRelativeVerticalPosition prop ) = 0; virtual HRESULT __stdcall get_VerticalDistanceFromText ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_VerticalDistanceFromText ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_VerticalPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_VerticalPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TextWrap ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TextWrap ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; }; struct __declspec(uuid("000209b1-0000-0000-c000-000000000046")) Replacement : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_Highlight ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Highlight ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Frame ( /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall ClearFormatting ( ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("000209b0-0000-0000-c000-000000000046")) Find : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Forward ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Forward ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_Found ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_MatchAllWordForms ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchAllWordForms ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchCase ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchCase ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchWildcards ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchWildcards ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchSoundsLike ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchSoundsLike ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchWholeWord ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchWholeWord ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchFuzzy ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchFuzzy ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchByte ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchByte ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_Highlight ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Highlight ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Replacement ( /*[out,retval]*/ struct Replacement * * prop ) = 0; virtual HRESULT __stdcall get_Frame ( /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall get_Wrap ( /*[out,retval]*/ enum WdFindWrap * prop ) = 0; virtual HRESULT __stdcall put_Wrap ( /*[in]*/ enum WdFindWrap prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_LanguageIDOther ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDOther ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_CorrectHangulEndings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CorrectHangulEndings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ExecuteOld ( /*[in]*/ VARIANT * FindText, /*[in]*/ VARIANT * MatchCase, /*[in]*/ VARIANT * MatchWholeWord, /*[in]*/ VARIANT * MatchWildcards, /*[in]*/ VARIANT * MatchSoundsLike, /*[in]*/ VARIANT * MatchAllWordForms, /*[in]*/ VARIANT * Forward, /*[in]*/ VARIANT * Wrap, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ReplaceWith, /*[in]*/ VARIANT * Replace, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall ClearFormatting ( ) = 0; virtual HRESULT __stdcall SetAllFuzzyOptions ( ) = 0; virtual HRESULT __stdcall ClearAllFuzzyOptions ( ) = 0; virtual HRESULT __stdcall Execute ( /*[in]*/ VARIANT * FindText, /*[in]*/ VARIANT * MatchCase, /*[in]*/ VARIANT * MatchWholeWord, /*[in]*/ VARIANT * MatchWildcards, /*[in]*/ VARIANT * MatchSoundsLike, /*[in]*/ VARIANT * MatchAllWordForms, /*[in]*/ VARIANT * Forward, /*[in]*/ VARIANT * Wrap, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ReplaceWith, /*[in]*/ VARIANT * Replace, /*[in]*/ VARIANT * MatchKashida, /*[in]*/ VARIANT * MatchDiacritics, /*[in]*/ VARIANT * MatchAlefHamza, /*[in]*/ VARIANT * MatchControl, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_MatchKashida ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchKashida ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchDiacritics ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchDiacritics ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchAlefHamza ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchAlefHamza ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchControl ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchControl ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchPhrase ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchPhrase ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchPrefix ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchPrefix ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MatchSuffix ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MatchSuffix ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnoreSpace ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnoreSpace ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IgnorePunct ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IgnorePunct ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall HitHighlight ( /*[in]*/ VARIANT * FindText, /*[in]*/ VARIANT * HighlightColor, /*[in]*/ VARIANT * TextColor, /*[in]*/ VARIANT * MatchCase, /*[in]*/ VARIANT * MatchWholeWord, /*[in]*/ VARIANT * MatchPrefix, /*[in]*/ VARIANT * MatchSuffix, /*[in]*/ VARIANT * MatchPhrase, /*[in]*/ VARIANT * MatchWildcards, /*[in]*/ VARIANT * MatchSoundsLike, /*[in]*/ VARIANT * MatchAllWordForms, /*[in]*/ VARIANT * MatchByte, /*[in]*/ VARIANT * MatchFuzzy, /*[in]*/ VARIANT * MatchKashida, /*[in]*/ VARIANT * MatchDiacritics, /*[in]*/ VARIANT * MatchAlefHamza, /*[in]*/ VARIANT * MatchControl, /*[in]*/ VARIANT * IgnoreSpace, /*[in]*/ VARIANT * IgnorePunct, /*[in]*/ VARIANT * HanjaPhoneticHangul, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall ClearHitHighlight ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Execute2007 ( /*[in]*/ VARIANT * FindText, /*[in]*/ VARIANT * MatchCase, /*[in]*/ VARIANT * MatchWholeWord, /*[in]*/ VARIANT * MatchWildcards, /*[in]*/ VARIANT * MatchSoundsLike, /*[in]*/ VARIANT * MatchAllWordForms, /*[in]*/ VARIANT * Forward, /*[in]*/ VARIANT * Wrap, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ReplaceWith, /*[in]*/ VARIANT * Replace, /*[in]*/ VARIANT * MatchKashida, /*[in]*/ VARIANT * MatchDiacritics, /*[in]*/ VARIANT * MatchAlefHamza, /*[in]*/ VARIANT * MatchControl, /*[in]*/ VARIANT * MatchPrefix, /*[in]*/ VARIANT * MatchSuffix, /*[in]*/ VARIANT * MatchPhrase, /*[in]*/ VARIANT * IgnoreSpace, /*[in]*/ VARIANT * IgnorePunct, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_HanjaPhoneticHangul ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HanjaPhoneticHangul ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("0002092b-0000-0000-c000-000000000046")) Frames : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020928-0000-0000-c000-000000000046")) FormField : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdFieldType * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_EntryMacro ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_EntryMacro ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ExitMacro ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ExitMacro ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_OwnHelp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OwnHelp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_OwnStatus ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OwnStatus ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HelpText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_HelpText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_StatusText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_StatusText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Enabled ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Enabled ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Result ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Result ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TextInput ( /*[out,retval]*/ struct TextInput * * prop ) = 0; virtual HRESULT __stdcall get_CheckBox ( /*[out,retval]*/ struct CheckBox * * prop ) = 0; virtual HRESULT __stdcall get_DropDown ( /*[out,retval]*/ struct DropDown * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct FormField * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct FormField * * prop ) = 0; virtual HRESULT __stdcall get_CalculateOnExit ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CalculateOnExit ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020929-0000-0000-c000-000000000046")) FormFields : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Shaded ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Shaded ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct FormField * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ enum WdFieldType Type, /*[out,retval]*/ struct FormField * * prop ) = 0; }; struct __declspec(uuid("00020921-0000-0000-c000-000000000046")) TableOfFigures : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Caption ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Caption ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IncludeLabel ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeLabel ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RightAlignPageNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RightAlignPageNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseHeadingStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseHeadingStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LowerHeadingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LowerHeadingLevel ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_UpperHeadingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_UpperHeadingLevel ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_IncludePageNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludePageNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_UseFields ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseFields ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TableID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_TableID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HeadingStyles ( /*[out,retval]*/ struct HeadingStyles * * prop ) = 0; virtual HRESULT __stdcall get_TabLeader ( /*[out,retval]*/ enum WdTabLeader * prop ) = 0; virtual HRESULT __stdcall put_TabLeader ( /*[in]*/ enum WdTabLeader prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall UpdatePageNumbers ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; virtual HRESULT __stdcall get_UseHyperlinks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseHyperlinks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HidePageNumbersInWeb ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HidePageNumbersInWeb ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("0002091e-0000-0000-c000-000000000046")) MailMergeField : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdFieldType * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Code ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall put_Code ( /*[in]*/ struct Range * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("0002091f-0000-0000-c000-000000000046")) MailMergeFields : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR Name, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddAsk ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Prompt, /*[in]*/ VARIANT * DefaultAskText, /*[in]*/ VARIANT * AskOnce, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddFillIn ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Prompt, /*[in]*/ VARIANT * DefaultFillInText, /*[in]*/ VARIANT * AskOnce, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddIf ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR MergeField, /*[in]*/ enum WdMailMergeComparison Comparison, /*[in]*/ VARIANT * CompareTo, /*[in]*/ VARIANT * TrueAutoText, /*[in]*/ VARIANT * TrueText, /*[in]*/ VARIANT * FalseAutoText, /*[in]*/ VARIANT * FalseText, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddMergeRec ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddMergeSeq ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddNext ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddNextIf ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR MergeField, /*[in]*/ enum WdMailMergeComparison Comparison, /*[in]*/ VARIANT * CompareTo, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddSet ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR Name, /*[in]*/ VARIANT * ValueText, /*[in]*/ VARIANT * ValueAutoText, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; virtual HRESULT __stdcall AddSkipIf ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR MergeField, /*[in]*/ enum WdMailMergeComparison Comparison, /*[in]*/ VARIANT * CompareTo, /*[out,retval]*/ struct MailMergeField * * prop ) = 0; }; struct __declspec(uuid("00020920-0000-0000-c000-000000000046")) MailMerge : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_MainDocumentType ( /*[out,retval]*/ enum WdMailMergeMainDocType * prop ) = 0; virtual HRESULT __stdcall put_MainDocumentType ( /*[in]*/ enum WdMailMergeMainDocType prop ) = 0; virtual HRESULT __stdcall get_State ( /*[out,retval]*/ enum WdMailMergeState * prop ) = 0; virtual HRESULT __stdcall get_Destination ( /*[out,retval]*/ enum WdMailMergeDestination * prop ) = 0; virtual HRESULT __stdcall put_Destination ( /*[in]*/ enum WdMailMergeDestination prop ) = 0; virtual HRESULT __stdcall get_DataSource ( /*[out,retval]*/ struct MailMergeDataSource * * prop ) = 0; virtual HRESULT __stdcall get_Fields ( /*[out,retval]*/ struct MailMergeFields * * prop ) = 0; virtual HRESULT __stdcall get_ViewMailMergeFieldCodes ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ViewMailMergeFieldCodes ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SuppressBlankLines ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SuppressBlankLines ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MailAsAttachment ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MailAsAttachment ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MailAddressFieldName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_MailAddressFieldName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MailSubject ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_MailSubject ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall CreateDataSource ( /*[in]*/ VARIANT * Name = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * HeaderRecord = &vtMissing, /*[in]*/ VARIANT * MSQuery = &vtMissing, /*[in]*/ VARIANT * SQLStatement = &vtMissing, /*[in]*/ VARIANT * SQLStatement1 = &vtMissing, /*[in]*/ VARIANT * Connection = &vtMissing, /*[in]*/ VARIANT * LinkToSource = &vtMissing ) = 0; virtual HRESULT __stdcall CreateHeaderSource ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * HeaderRecord = &vtMissing ) = 0; virtual HRESULT __stdcall OpenDataSource2000 ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * ReadOnly = &vtMissing, /*[in]*/ VARIANT * LinkToSource = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * PasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Revert = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Connection = &vtMissing, /*[in]*/ VARIANT * SQLStatement = &vtMissing, /*[in]*/ VARIANT * SQLStatement1 = &vtMissing ) = 0; virtual HRESULT __stdcall OpenHeaderSource2000 ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * ReadOnly = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * PasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Revert = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordTemplate = &vtMissing ) = 0; virtual HRESULT __stdcall Execute ( /*[in]*/ VARIANT * Pause = &vtMissing ) = 0; virtual HRESULT __stdcall Check ( ) = 0; virtual HRESULT __stdcall EditDataSource ( ) = 0; virtual HRESULT __stdcall EditHeaderSource ( ) = 0; virtual HRESULT __stdcall EditMainDocument ( ) = 0; virtual HRESULT __stdcall UseAddressBook ( /*[in]*/ BSTR Type ) = 0; virtual HRESULT __stdcall get_HighlightMergeFields ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HighlightMergeFields ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MailFormat ( /*[out,retval]*/ enum WdMailMergeMailFormat * prop ) = 0; virtual HRESULT __stdcall put_MailFormat ( /*[in]*/ enum WdMailMergeMailFormat prop ) = 0; virtual HRESULT __stdcall get_ShowSendToCustom ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ShowSendToCustom ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_WizardState ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WizardState ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall OpenDataSource ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * ReadOnly = &vtMissing, /*[in]*/ VARIANT * LinkToSource = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * PasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Revert = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Connection = &vtMissing, /*[in]*/ VARIANT * SQLStatement = &vtMissing, /*[in]*/ VARIANT * SQLStatement1 = &vtMissing, /*[in]*/ VARIANT * OpenExclusive = &vtMissing, /*[in]*/ VARIANT * SubType = &vtMissing ) = 0; virtual HRESULT __stdcall OpenHeaderSource ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * ReadOnly = &vtMissing, /*[in]*/ VARIANT * AddToRecentFiles = &vtMissing, /*[in]*/ VARIANT * PasswordDocument = &vtMissing, /*[in]*/ VARIANT * PasswordTemplate = &vtMissing, /*[in]*/ VARIANT * Revert = &vtMissing, /*[in]*/ VARIANT * WritePasswordDocument = &vtMissing, /*[in]*/ VARIANT * WritePasswordTemplate = &vtMissing, /*[in]*/ VARIANT * OpenExclusive = &vtMissing ) = 0; virtual HRESULT __stdcall ShowWizard ( /*[in]*/ VARIANT * InitialState, /*[in]*/ VARIANT * ShowDocumentStep = &vtMissing, /*[in]*/ VARIANT * ShowTemplateStep = &vtMissing, /*[in]*/ VARIANT * ShowDataStep = &vtMissing, /*[in]*/ VARIANT * ShowWriteStep = &vtMissing, /*[in]*/ VARIANT * ShowPreviewStep = &vtMissing, /*[in]*/ VARIANT * ShowMergeStep = &vtMissing ) = 0; }; struct __declspec(uuid("00020913-0000-0000-c000-000000000046")) TableOfContents : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_UseHeadingStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseHeadingStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UseFields ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseFields ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_UpperHeadingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_UpperHeadingLevel ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LowerHeadingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LowerHeadingLevel ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TableID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_TableID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HeadingStyles ( /*[out,retval]*/ struct HeadingStyles * * prop ) = 0; virtual HRESULT __stdcall get_RightAlignPageNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RightAlignPageNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IncludePageNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludePageNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_TabLeader ( /*[out,retval]*/ enum WdTabLeader * prop ) = 0; virtual HRESULT __stdcall put_TabLeader ( /*[in]*/ enum WdTabLeader prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall UpdatePageNumbers ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; virtual HRESULT __stdcall get_UseHyperlinks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseHyperlinks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HidePageNumbersInWeb ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HidePageNumbersInWeb ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("00020911-0000-0000-c000-000000000046")) TableOfAuthorities : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Passim ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Passim ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_KeepEntryFormatting ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_KeepEntryFormatting ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Category ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Category ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Bookmark ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Bookmark ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Separator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Separator ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IncludeSequenceName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_IncludeSequenceName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_EntrySeparator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_EntrySeparator ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_PageRangeSeparator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PageRangeSeparator ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IncludeCategoryHeader ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_IncludeCategoryHeader ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PageNumberSeparator ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PageNumberSeparator ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_TabLeader ( /*[out,retval]*/ enum WdTabLeader * prop ) = 0; virtual HRESULT __stdcall put_TabLeader ( /*[in]*/ enum WdTabLeader prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; }; struct __declspec(uuid("0002097d-0000-0000-c000-000000000046")) Index : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_HeadingSeparator ( /*[out,retval]*/ enum WdHeadingSeparator * prop ) = 0; virtual HRESULT __stdcall put_HeadingSeparator ( /*[in]*/ enum WdHeadingSeparator prop ) = 0; virtual HRESULT __stdcall get_RightAlignPageNumbers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RightAlignPageNumbers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdIndexType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdIndexType prop ) = 0; virtual HRESULT __stdcall get_NumberOfColumns ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NumberOfColumns ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_TabLeader ( /*[out,retval]*/ enum WdTabLeader * prop ) = 0; virtual HRESULT __stdcall put_TabLeader ( /*[in]*/ enum WdTabLeader prop ) = 0; virtual HRESULT __stdcall get_AccentedLetters ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AccentedLetters ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SortBy ( /*[out,retval]*/ enum WdIndexSortBy * prop ) = 0; virtual HRESULT __stdcall put_SortBy ( /*[in]*/ enum WdIndexSortBy prop ) = 0; virtual HRESULT __stdcall get_Filter ( /*[out,retval]*/ enum WdIndexFilter * prop ) = 0; virtual HRESULT __stdcall put_Filter ( /*[in]*/ enum WdIndexFilter prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Update ( ) = 0; virtual HRESULT __stdcall get_IndexLanguage ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_IndexLanguage ( /*[in]*/ enum WdLanguageID prop ) = 0; }; struct __declspec(uuid("00020989-0000-0000-c000-000000000046")) Subdocument : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Path ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_HasFile ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Level ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Split ( /*[in]*/ struct Range * Range ) = 0; virtual HRESULT __stdcall Open ( /*[out,retval]*/ struct _Document * * prop ) = 0; }; struct __declspec(uuid("00020988-0000-0000-c000-000000000046")) Subdocuments : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Expanded ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Expanded ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Subdocument * * prop ) = 0; virtual HRESULT __stdcall AddFromFile ( /*[in]*/ VARIANT * Name, /*[in]*/ VARIANT * ConfirmConversions, /*[in]*/ VARIANT * ReadOnly, /*[in]*/ VARIANT * PasswordDocument, /*[in]*/ VARIANT * PasswordTemplate, /*[in]*/ VARIANT * Revert, /*[in]*/ VARIANT * WritePasswordDocument, /*[in]*/ VARIANT * WritePasswordTemplate, /*[out,retval]*/ struct Subdocument * * prop ) = 0; virtual HRESULT __stdcall AddFromRange ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct Subdocument * * prop ) = 0; virtual HRESULT __stdcall Merge ( /*[in]*/ VARIANT * FirstSubdocument = &vtMissing, /*[in]*/ VARIANT * LastSubdocument = &vtMissing ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Select ( ) = 0; }; struct __declspec(uuid("0002098c-0000-0000-c000-000000000046")) StoryRanges : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdStoryType Index, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("00020991-0000-0000-c000-000000000046")) ListParagraphs : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Paragraph * * prop ) = 0; }; struct __declspec(uuid("000209bb-0000-0000-c000-000000000046")) ProofreadingErrors : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdProofreadingErrorType * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("000209e5-0000-0000-c000-000000000046")) EmailSignatureEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct EmailSignatureEntry * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ struct Range * Range, /*[out,retval]*/ struct EmailSignatureEntry * * prop ) = 0; }; struct __declspec(uuid("000209dc-0000-0000-c000-000000000046")) EmailSignature : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_NewMessageSignature ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NewMessageSignature ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ReplyMessageSignature ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ReplyMessageSignature ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_EmailSignatureEntries ( /*[out,retval]*/ struct EmailSignatureEntries * * prop ) = 0; }; struct __declspec(uuid("79635bf1-bd1d-4b3f-a520-c1106f1aaad8")) Break : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_PageIndex ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("16be9309-d708-4322-bb1a-b056f58d17ea")) Breaks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Break * * prop ) = 0; }; struct __declspec(uuid("dd947d72-f33c-4198-9bdf-f86181d05e41")) Editor : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_NextRange ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall DeleteAll ( ) = 0; virtual HRESULT __stdcall SelectAll ( ) = 0; }; struct __declspec(uuid("aed7e08c-14f0-4f33-921d-4c5353137bf6")) Editors : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Editor * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * EditorID, /*[out,retval]*/ struct Editor * * prop ) = 0; }; struct __declspec(uuid("65e515d5-f50b-4951-8f38-fa6ac8707387")) OMathBreak : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_AlignAt ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AlignAt ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("e2e0f3a7-204c-40c5-baa5-290f374fdf5a")) OMathBreaks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMathBreak * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct OMathBreak * * prop ) = 0; }; struct __declspec(uuid("9e6b5ec5-e8e4-40af-9540-6203f71e2823")) CoAuthUpdate : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("30225cfc-5a71-4fe6-b527-90a52c54ae77")) CoAuthUpdates : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct CoAuthUpdate * * prop ) = 0; }; struct __declspec(uuid("6215e4b1-545a-406e-9824-0a5b5ac8ad21")) Conflict : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdRevisionType * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Accept ( ) = 0; virtual HRESULT __stdcall Reject ( ) = 0; }; struct __declspec(uuid("c2b83a65-b061-4469-83b6-8877437cb8a0")) Conflicts : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Conflict * * prop ) = 0; virtual HRESULT __stdcall AcceptAll ( ) = 0; virtual HRESULT __stdcall RejectAll ( ) = 0; }; struct __declspec(uuid("4265ed97-a922-4ca4-8cd8-99684cca9cdb")) RepeatingSectionItem : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall InsertItemBefore ( /*[out,retval]*/ struct RepeatingSectionItem * * prop ) = 0; virtual HRESULT __stdcall InsertItemAfter ( /*[out,retval]*/ struct RepeatingSectionItem * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("53faca33-db22-473f-bb51-96c2c86c9304")) RepeatingSectionItemColl : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct RepeatingSectionItem * * prop ) = 0; }; struct __declspec(uuid("000209c0-0000-0000-c000-000000000046")) ListFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_ListLevelNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ListLevelNumber ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_List ( /*[out,retval]*/ struct List * * prop ) = 0; virtual HRESULT __stdcall get_ListTemplate ( /*[out,retval]*/ struct ListTemplate * * prop ) = 0; virtual HRESULT __stdcall get_ListValue ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_SingleList ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_SingleListTemplate ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ListType ( /*[out,retval]*/ enum WdListType * prop ) = 0; virtual HRESULT __stdcall get_ListString ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall CanContinuePreviousList ( /*[in]*/ struct ListTemplate * ListTemplate, /*[out,retval]*/ enum WdContinue * prop ) = 0; virtual HRESULT __stdcall RemoveNumbers ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall ConvertNumbersToText ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall CountNumberedItems ( /*[in]*/ VARIANT * NumberType, /*[in]*/ VARIANT * Level, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall ApplyBulletDefaultOld ( ) = 0; virtual HRESULT __stdcall ApplyNumberDefaultOld ( ) = 0; virtual HRESULT __stdcall ApplyOutlineNumberDefaultOld ( ) = 0; virtual HRESULT __stdcall ApplyListTemplateOld ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing, /*[in]*/ VARIANT * ApplyTo = &vtMissing ) = 0; virtual HRESULT __stdcall ListOutdent ( ) = 0; virtual HRESULT __stdcall ListIndent ( ) = 0; virtual HRESULT __stdcall ApplyBulletDefault ( /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing ) = 0; virtual HRESULT __stdcall ApplyNumberDefault ( /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing ) = 0; virtual HRESULT __stdcall ApplyOutlineNumberDefault ( /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing ) = 0; virtual HRESULT __stdcall ApplyListTemplate ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing, /*[in]*/ VARIANT * ApplyTo = &vtMissing, /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing ) = 0; virtual HRESULT __stdcall get_ListPictureBullet ( /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall ApplyListTemplateWithLevel ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing, /*[in]*/ VARIANT * ApplyTo = &vtMissing, /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing, /*[in]*/ VARIANT * ApplyLevel = &vtMissing ) = 0; }; struct __declspec(uuid("0002095a-0000-0000-c000-000000000046")) Sections : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Section * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Section * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PageSetup ( /*[out,retval]*/ struct PageSetup * * prop ) = 0; virtual HRESULT __stdcall put_PageSetup ( /*[in]*/ struct PageSetup * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Section * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Range, /*[in]*/ VARIANT * Start, /*[out,retval]*/ struct Section * * prop ) = 0; }; struct __declspec(uuid("00020959-0000-0000-c000-000000000046")) Section : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_PageSetup ( /*[out,retval]*/ struct PageSetup * * prop ) = 0; virtual HRESULT __stdcall put_PageSetup ( /*[in]*/ struct PageSetup * prop ) = 0; virtual HRESULT __stdcall get_Headers ( /*[out,retval]*/ struct HeadersFooters * * prop ) = 0; virtual HRESULT __stdcall get_Footers ( /*[out,retval]*/ struct HeadersFooters * * prop ) = 0; virtual HRESULT __stdcall get_ProtectedForForms ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ProtectedForForms ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; }; struct __declspec(uuid("00020951-0000-0000-c000-000000000046")) Table : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Columns ( /*[out,retval]*/ struct Columns * * prop ) = 0; virtual HRESULT __stdcall get_Rows ( /*[out,retval]*/ struct Rows * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Uniform ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_AutoFormatType ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SortOld ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall SortAscending ( ) = 0; virtual HRESULT __stdcall SortDescending ( ) = 0; virtual HRESULT __stdcall AutoFormat ( /*[in]*/ VARIANT * Format = &vtMissing, /*[in]*/ VARIANT * ApplyBorders = &vtMissing, /*[in]*/ VARIANT * ApplyShading = &vtMissing, /*[in]*/ VARIANT * ApplyFont = &vtMissing, /*[in]*/ VARIANT * ApplyColor = &vtMissing, /*[in]*/ VARIANT * ApplyHeadingRows = &vtMissing, /*[in]*/ VARIANT * ApplyLastRow = &vtMissing, /*[in]*/ VARIANT * ApplyFirstColumn = &vtMissing, /*[in]*/ VARIANT * ApplyLastColumn = &vtMissing, /*[in]*/ VARIANT * AutoFit = &vtMissing ) = 0; virtual HRESULT __stdcall UpdateAutoFormat ( ) = 0; virtual HRESULT __stdcall ConvertToTextOld ( /*[in]*/ VARIANT * Separator, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Cell ( /*[in]*/ long Row, /*[in]*/ long Column, /*[out,retval]*/ struct Cell * * prop ) = 0; virtual HRESULT __stdcall Split ( /*[in]*/ VARIANT * BeforeRow, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall ConvertToText ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NestedTables, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall AutoFitBehavior ( /*[in]*/ enum WdAutoFitBehavior Behavior ) = 0; virtual HRESULT __stdcall Sort ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall get_Tables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_AllowPageBreaks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowPageBreaks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AllowAutoFit ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowAutoFit ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PreferredWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PreferredWidthType ( /*[out,retval]*/ enum WdPreferredWidthType * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidthType ( /*[in]*/ enum WdPreferredWidthType prop ) = 0; virtual HRESULT __stdcall get_TopPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BottomPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BottomPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Spacing ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Spacing ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TableDirection ( /*[out,retval]*/ enum WdTableDirection * prop ) = 0; virtual HRESULT __stdcall put_TableDirection ( /*[in]*/ enum WdTableDirection prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleHeadingRows ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleHeadingRows ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleLastRow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleLastRow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleFirstColumn ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleFirstColumn ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleLastColumn ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleLastColumn ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleRowBands ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleRowBands ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ApplyStyleColumnBands ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ApplyStyleColumnBands ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall ApplyStyleDirectFormatting ( /*[in]*/ BSTR StyleName ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Descr ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Descr ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("0002094d-0000-0000-c000-000000000046")) Tables : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall AddOld ( /*[in]*/ struct Range * Range, /*[in]*/ long NumRows, /*[in]*/ long NumColumns, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ long NumRows, /*[in]*/ long NumColumns, /*[in]*/ VARIANT * DefaultTableBehavior, /*[in]*/ VARIANT * AutoFitBehavior, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("00020950-0000-0000-c000-000000000046")) Row : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_AllowBreakAcrossPages ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllowBreakAcrossPages ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdRowAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdRowAlignment prop ) = 0; virtual HRESULT __stdcall get_HeadingFormat ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HeadingFormat ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SpaceBetweenColumns ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBetweenColumns ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRule ( /*[out,retval]*/ enum WdRowHeightRule * prop ) = 0; virtual HRESULT __stdcall put_HeightRule ( /*[in]*/ enum WdRowHeightRule prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_IsLast ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_IsFirst ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Cells ( /*[out,retval]*/ struct Cells * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SetLeftIndent ( /*[in]*/ float LeftIndent, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall SetHeight ( /*[in]*/ float RowHeight, /*[in]*/ enum WdRowHeightRule HeightRule ) = 0; virtual HRESULT __stdcall ConvertToTextOld ( /*[in]*/ VARIANT * Separator, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall ConvertToText ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NestedTables, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ID ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("0002094c-0000-0000-c000-000000000046")) Rows : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_AllowBreakAcrossPages ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllowBreakAcrossPages ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdRowAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdRowAlignment prop ) = 0; virtual HRESULT __stdcall get_HeadingFormat ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_HeadingFormat ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_SpaceBetweenColumns ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBetweenColumns ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRule ( /*[out,retval]*/ enum WdRowHeightRule * prop ) = 0; virtual HRESULT __stdcall put_HeightRule ( /*[in]*/ enum WdRowHeightRule prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeRow, /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SetLeftIndent ( /*[in]*/ float LeftIndent, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall SetHeight ( /*[in]*/ float RowHeight, /*[in]*/ enum WdRowHeightRule HeightRule ) = 0; virtual HRESULT __stdcall ConvertToTextOld ( /*[in]*/ VARIANT * Separator, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall DistributeHeight ( ) = 0; virtual HRESULT __stdcall ConvertToText ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NestedTables, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_WrapAroundText ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WrapAroundText ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_DistanceTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceBottom ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceBottom ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DistanceRight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DistanceRight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HorizontalPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_VerticalPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_VerticalPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalPosition ( /*[out,retval]*/ enum WdRelativeHorizontalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalPosition ( /*[in]*/ enum WdRelativeHorizontalPosition prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalPosition ( /*[out,retval]*/ enum WdRelativeVerticalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalPosition ( /*[in]*/ enum WdRelativeVerticalPosition prop ) = 0; virtual HRESULT __stdcall get_AllowOverlap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AllowOverlap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_TableDirection ( /*[out,retval]*/ enum WdTableDirection * prop ) = 0; virtual HRESULT __stdcall put_TableDirection ( /*[in]*/ enum WdTableDirection prop ) = 0; }; struct __declspec(uuid("0002094f-0000-0000-c000-000000000046")) Column : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_IsFirst ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_IsLast ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Cells ( /*[out,retval]*/ struct Cells * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SetWidth ( /*[in]*/ float ColumnWidth, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall AutoFit ( ) = 0; virtual HRESULT __stdcall SortOld ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall Sort ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PreferredWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PreferredWidthType ( /*[out,retval]*/ enum WdPreferredWidthType * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidthType ( /*[in]*/ enum WdPreferredWidthType prop ) = 0; }; struct __declspec(uuid("0002094e-0000-0000-c000-000000000046")) Cell : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_RowIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ColumnIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRule ( /*[out,retval]*/ enum WdRowHeightRule * prop ) = 0; virtual HRESULT __stdcall put_HeightRule ( /*[in]*/ enum WdRowHeightRule prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ enum WdCellVerticalAlignment * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ enum WdCellVerticalAlignment prop ) = 0; virtual HRESULT __stdcall get_Column ( /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall get_Row ( /*[out,retval]*/ struct Row * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Cell * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Cell * * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ VARIANT * ShiftCells = &vtMissing ) = 0; virtual HRESULT __stdcall Formula ( /*[in]*/ VARIANT * Formula = &vtMissing, /*[in]*/ VARIANT * NumFormat = &vtMissing ) = 0; virtual HRESULT __stdcall SetWidth ( /*[in]*/ float ColumnWidth, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall SetHeight ( /*[in]*/ VARIANT * RowHeight, /*[in]*/ enum WdRowHeightRule HeightRule ) = 0; virtual HRESULT __stdcall Merge ( /*[in]*/ struct Cell * MergeTo ) = 0; virtual HRESULT __stdcall Split ( /*[in]*/ VARIANT * NumRows = &vtMissing, /*[in]*/ VARIANT * NumColumns = &vtMissing ) = 0; virtual HRESULT __stdcall AutoSum ( ) = 0; virtual HRESULT __stdcall get_Tables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_WordWrap ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_WordWrap ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PreferredWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_FitText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_FitText ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TopPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_BottomPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_BottomPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LeftPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightPadding ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightPadding ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ID ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_PreferredWidthType ( /*[out,retval]*/ enum WdPreferredWidthType * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidthType ( /*[in]*/ enum WdPreferredWidthType prop ) = 0; }; struct __declspec(uuid("0002094b-0000-0000-c000-000000000046")) Columns : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_First ( /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall get_Last ( /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeColumn, /*[out,retval]*/ struct Column * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall SetWidth ( /*[in]*/ float ColumnWidth, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall AutoFit ( ) = 0; virtual HRESULT __stdcall DistributeWidth ( ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PreferredWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PreferredWidthType ( /*[out,retval]*/ enum WdPreferredWidthType * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidthType ( /*[in]*/ enum WdPreferredWidthType prop ) = 0; }; struct __declspec(uuid("0002094a-0000-0000-c000-000000000046")) Cells : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRule ( /*[out,retval]*/ enum WdRowHeightRule * prop ) = 0; virtual HRESULT __stdcall put_HeightRule ( /*[in]*/ enum WdRowHeightRule prop ) = 0; virtual HRESULT __stdcall get_VerticalAlignment ( /*[out,retval]*/ enum WdCellVerticalAlignment * prop ) = 0; virtual HRESULT __stdcall put_VerticalAlignment ( /*[in]*/ enum WdCellVerticalAlignment prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Cell * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeCell, /*[out,retval]*/ struct Cell * * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ VARIANT * ShiftCells = &vtMissing ) = 0; virtual HRESULT __stdcall SetWidth ( /*[in]*/ float ColumnWidth, /*[in]*/ enum WdRulerStyle RulerStyle ) = 0; virtual HRESULT __stdcall SetHeight ( /*[in]*/ VARIANT * RowHeight, /*[in]*/ enum WdRowHeightRule HeightRule ) = 0; virtual HRESULT __stdcall Merge ( ) = 0; virtual HRESULT __stdcall Split ( /*[in]*/ VARIANT * NumRows = &vtMissing, /*[in]*/ VARIANT * NumColumns = &vtMissing, /*[in]*/ VARIANT * MergeBeforeSplit = &vtMissing ) = 0; virtual HRESULT __stdcall DistributeHeight ( ) = 0; virtual HRESULT __stdcall DistributeWidth ( ) = 0; virtual HRESULT __stdcall AutoFit ( ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PreferredWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PreferredWidthType ( /*[out,retval]*/ enum WdPreferredWidthType * prop ) = 0; virtual HRESULT __stdcall put_PreferredWidthType ( /*[in]*/ enum WdPreferredWidthType prop ) = 0; }; struct __declspec(uuid("00020940-0000-0000-c000-000000000046")) Comments : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ShowBy ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ShowBy ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Comment * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Text, /*[out,retval]*/ struct Comment * * prop ) = 0; }; struct __declspec(uuid("0002093d-0000-0000-c000-000000000046")) Comment : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Reference ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Scope ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Author ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Author ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Initial ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Initial ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ShowTip ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowTip ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Edit ( ) = 0; virtual HRESULT __stdcall get_Date ( /*[out,retval]*/ DATE * prop ) = 0; virtual HRESULT __stdcall get_IsInk ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Done ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Done ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Ancestor ( /*[out,retval]*/ struct Comment * * prop ) = 0; virtual HRESULT __stdcall get_Contact ( /*[out,retval]*/ struct CoAuthor * * prop ) = 0; virtual HRESULT __stdcall DeleteRecursively ( ) = 0; virtual HRESULT __stdcall get_Replies ( /*[out,retval]*/ struct Comments * * prop ) = 0; }; struct __declspec(uuid("00020930-0000-0000-c000-000000000046")) Fields : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall ToggleShowCodes ( ) = 0; virtual HRESULT __stdcall Update ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Unlink ( ) = 0; virtual HRESULT __stdcall UpdateSource ( ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Type, /*[in]*/ VARIANT * Text, /*[in]*/ VARIANT * PreserveFormatting, /*[out,retval]*/ struct Field * * prop ) = 0; }; struct __declspec(uuid("0002092f-0000-0000-c000-000000000046")) Field : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Code ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall put_Code ( /*[in]*/ struct Range * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdFieldType * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Kind ( /*[out,retval]*/ enum WdFieldKind * prop ) = 0; virtual HRESULT __stdcall get_Result ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall put_Result ( /*[in]*/ struct Range * prop ) = 0; virtual HRESULT __stdcall get_Data ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Data ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ShowCodes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ShowCodes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LinkFormat ( /*[out,retval]*/ struct LinkFormat * * prop ) = 0; virtual HRESULT __stdcall get_OLEFormat ( /*[out,retval]*/ struct OLEFormat * * prop ) = 0; virtual HRESULT __stdcall get_InlineShape ( /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Update ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Unlink ( ) = 0; virtual HRESULT __stdcall UpdateSource ( ) = 0; virtual HRESULT __stdcall DoClick ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("00020922-0000-0000-c000-000000000046")) TablesOfFigures : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ enum WdTofFormat * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ enum WdTofFormat prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct TableOfFigures * * prop ) = 0; virtual HRESULT __stdcall AddOld ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Caption, /*[in]*/ VARIANT * IncludeLabel, /*[in]*/ VARIANT * UseHeadingStyles, /*[in]*/ VARIANT * UpperHeadingLevel, /*[in]*/ VARIANT * LowerHeadingLevel, /*[in]*/ VARIANT * UseFields, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * IncludePageNumbers, /*[in]*/ VARIANT * AddedStyles, /*[out,retval]*/ struct TableOfFigures * * prop ) = 0; virtual HRESULT __stdcall MarkEntry ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Entry, /*[in]*/ VARIANT * EntryAutoText, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * Level, /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Caption, /*[in]*/ VARIANT * IncludeLabel, /*[in]*/ VARIANT * UseHeadingStyles, /*[in]*/ VARIANT * UpperHeadingLevel, /*[in]*/ VARIANT * LowerHeadingLevel, /*[in]*/ VARIANT * UseFields, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * IncludePageNumbers, /*[in]*/ VARIANT * AddedStyles, /*[in]*/ VARIANT * UseHyperlinks, /*[in]*/ VARIANT * HidePageNumbersInWeb, /*[out,retval]*/ struct TableOfFigures * * prop ) = 0; }; struct __declspec(uuid("00020914-0000-0000-c000-000000000046")) TablesOfContents : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ enum WdTocFormat * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ enum WdTocFormat prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct TableOfContents * * prop ) = 0; virtual HRESULT __stdcall AddOld ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * UseHeadingStyles, /*[in]*/ VARIANT * UpperHeadingLevel, /*[in]*/ VARIANT * LowerHeadingLevel, /*[in]*/ VARIANT * UseFields, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * IncludePageNumbers, /*[in]*/ VARIANT * AddedStyles, /*[out,retval]*/ struct TableOfContents * * prop ) = 0; virtual HRESULT __stdcall MarkEntry ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Entry, /*[in]*/ VARIANT * EntryAutoText, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * Level, /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall Add2000 ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * UseHeadingStyles, /*[in]*/ VARIANT * UpperHeadingLevel, /*[in]*/ VARIANT * LowerHeadingLevel, /*[in]*/ VARIANT * UseFields, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * IncludePageNumbers, /*[in]*/ VARIANT * AddedStyles, /*[in]*/ VARIANT * UseHyperlinks, /*[in]*/ VARIANT * HidePageNumbersInWeb, /*[out,retval]*/ struct TableOfContents * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * UseHeadingStyles, /*[in]*/ VARIANT * UpperHeadingLevel, /*[in]*/ VARIANT * LowerHeadingLevel, /*[in]*/ VARIANT * UseFields, /*[in]*/ VARIANT * TableID, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * IncludePageNumbers, /*[in]*/ VARIANT * AddedStyles, /*[in]*/ VARIANT * UseHyperlinks, /*[in]*/ VARIANT * HidePageNumbersInWeb, /*[in]*/ VARIANT * UseOutlineLevels, /*[out,retval]*/ struct TableOfContents * * prop ) = 0; }; struct __declspec(uuid("00020912-0000-0000-c000-000000000046")) TablesOfAuthorities : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ enum WdToaFormat * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ enum WdToaFormat prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct TableOfAuthorities * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Category, /*[in]*/ VARIANT * Bookmark, /*[in]*/ VARIANT * Passim, /*[in]*/ VARIANT * KeepEntryFormatting, /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * IncludeSequenceName, /*[in]*/ VARIANT * EntrySeparator, /*[in]*/ VARIANT * PageRangeSeparator, /*[in]*/ VARIANT * IncludeCategoryHeader, /*[in]*/ VARIANT * PageNumberSeparator, /*[out,retval]*/ struct TableOfAuthorities * * prop ) = 0; virtual HRESULT __stdcall NextCitation ( /*[in]*/ BSTR ShortCitation ) = 0; virtual HRESULT __stdcall MarkCitation ( /*[in]*/ struct Range * Range, /*[in]*/ BSTR ShortCitation, /*[in]*/ VARIANT * LongCitation, /*[in]*/ VARIANT * LongCitationAutoText, /*[in]*/ VARIANT * Category, /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall MarkAllCitations ( /*[in]*/ BSTR ShortCitation, /*[in]*/ VARIANT * LongCitation = &vtMissing, /*[in]*/ VARIANT * LongCitationAutoText = &vtMissing, /*[in]*/ VARIANT * Category = &vtMissing ) = 0; }; struct __declspec(uuid("0002097c-0000-0000-c000-000000000046")) Indexes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Format ( /*[out,retval]*/ enum WdIndexFormat * prop ) = 0; virtual HRESULT __stdcall put_Format ( /*[in]*/ enum WdIndexFormat prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Index * * prop ) = 0; virtual HRESULT __stdcall AddOld ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * HeadingSeparator, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * Type, /*[in]*/ VARIANT * NumberOfColumns, /*[in]*/ VARIANT * AccentedLetters, /*[out,retval]*/ struct Index * * prop ) = 0; virtual HRESULT __stdcall MarkEntry ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Entry, /*[in]*/ VARIANT * EntryAutoText, /*[in]*/ VARIANT * CrossReference, /*[in]*/ VARIANT * CrossReferenceAutoText, /*[in]*/ VARIANT * BookmarkName, /*[in]*/ VARIANT * Bold, /*[in]*/ VARIANT * Italic, /*[in]*/ VARIANT * Reading, /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall MarkAllEntries ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Entry = &vtMissing, /*[in]*/ VARIANT * EntryAutoText = &vtMissing, /*[in]*/ VARIANT * CrossReference = &vtMissing, /*[in]*/ VARIANT * CrossReferenceAutoText = &vtMissing, /*[in]*/ VARIANT * BookmarkName = &vtMissing, /*[in]*/ VARIANT * Bold = &vtMissing, /*[in]*/ VARIANT * Italic = &vtMissing ) = 0; virtual HRESULT __stdcall AutoMarkEntries ( /*[in]*/ BSTR ConcordanceFileName ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * HeadingSeparator, /*[in]*/ VARIANT * RightAlignPageNumbers, /*[in]*/ VARIANT * Type, /*[in]*/ VARIANT * NumberOfColumns, /*[in]*/ VARIANT * AccentedLetters, /*[in]*/ VARIANT * SortBy, /*[in]*/ VARIANT * IndexLanguage, /*[out,retval]*/ struct Index * * prop ) = 0; }; struct __declspec(uuid("0002092d-0000-0000-c000-000000000046")) Styles : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Type, /*[out,retval]*/ struct Style * * prop ) = 0; }; struct __declspec(uuid("0002092c-0000-0000-c000-000000000046")) Style : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_NameLocal ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NameLocal ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_BaseStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_BaseStyle ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Description ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdStyleType * prop ) = 0; virtual HRESULT __stdcall get_BuiltIn ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_NextParagraphStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_NextParagraphStyle ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_InUse ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_Frame ( /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_AutomaticallyUpdate ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutomaticallyUpdate ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ListTemplate ( /*[out,retval]*/ struct ListTemplate * * prop ) = 0; virtual HRESULT __stdcall get_ListLevelNumber ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_Hidden ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Hidden ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall LinkToListTemplate ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ListLevelNumber = &vtMissing ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LinkStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_LinkStyle ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Visibility ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Visibility ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NoSpaceBetweenParagraphsOfSameStyle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NoSpaceBetweenParagraphsOfSameStyle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Table ( /*[out,retval]*/ struct TableStyle * * prop ) = 0; virtual HRESULT __stdcall get_Locked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Locked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Priority ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Priority ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_UnhideWhenUsed ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UnhideWhenUsed ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_QuickStyle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_QuickStyle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Linked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; }; struct __declspec(uuid("00020918-0000-0000-c000-000000000046")) Envelope : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Address ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ReturnAddress ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_DefaultPrintBarCode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultPrintBarCode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultPrintFIMA ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultPrintFIMA ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_DefaultHeight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DefaultHeight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DefaultWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_DefaultWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_DefaultSize ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DefaultSize ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DefaultOmitReturnAddress ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultOmitReturnAddress ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FeedSource ( /*[out,retval]*/ enum WdPaperTray * prop ) = 0; virtual HRESULT __stdcall put_FeedSource ( /*[in]*/ enum WdPaperTray prop ) = 0; virtual HRESULT __stdcall get_AddressFromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_AddressFromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_AddressFromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_AddressFromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ReturnAddressFromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_ReturnAddressFromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ReturnAddressFromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_ReturnAddressFromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_AddressStyle ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_ReturnAddressStyle ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_DefaultOrientation ( /*[out,retval]*/ enum WdEnvelopeOrientation * prop ) = 0; virtual HRESULT __stdcall put_DefaultOrientation ( /*[in]*/ enum WdEnvelopeOrientation prop ) = 0; virtual HRESULT __stdcall get_DefaultFaceUp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_DefaultFaceUp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall Insert2000 ( /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * AutoText = &vtMissing, /*[in]*/ VARIANT * OmitReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAutoText = &vtMissing, /*[in]*/ VARIANT * PrintBarCode = &vtMissing, /*[in]*/ VARIANT * PrintFIMA = &vtMissing, /*[in]*/ VARIANT * Size = &vtMissing, /*[in]*/ VARIANT * Height = &vtMissing, /*[in]*/ VARIANT * Width = &vtMissing, /*[in]*/ VARIANT * FeedSource = &vtMissing, /*[in]*/ VARIANT * AddressFromLeft = &vtMissing, /*[in]*/ VARIANT * AddressFromTop = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromLeft = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromTop = &vtMissing, /*[in]*/ VARIANT * DefaultFaceUp = &vtMissing, /*[in]*/ VARIANT * DefaultOrientation = &vtMissing ) = 0; virtual HRESULT __stdcall PrintOut2000 ( /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * AutoText = &vtMissing, /*[in]*/ VARIANT * OmitReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAutoText = &vtMissing, /*[in]*/ VARIANT * PrintBarCode = &vtMissing, /*[in]*/ VARIANT * PrintFIMA = &vtMissing, /*[in]*/ VARIANT * Size = &vtMissing, /*[in]*/ VARIANT * Height = &vtMissing, /*[in]*/ VARIANT * Width = &vtMissing, /*[in]*/ VARIANT * FeedSource = &vtMissing, /*[in]*/ VARIANT * AddressFromLeft = &vtMissing, /*[in]*/ VARIANT * AddressFromTop = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromLeft = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromTop = &vtMissing, /*[in]*/ VARIANT * DefaultFaceUp = &vtMissing, /*[in]*/ VARIANT * DefaultOrientation = &vtMissing ) = 0; virtual HRESULT __stdcall UpdateDocument ( ) = 0; virtual HRESULT __stdcall Options ( ) = 0; virtual HRESULT __stdcall get_Vertical ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Vertical ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RecipientNamefromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RecipientNamefromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RecipientNamefromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RecipientNamefromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RecipientPostalfromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RecipientPostalfromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RecipientPostalfromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RecipientPostalfromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SenderNamefromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SenderNamefromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SenderNamefromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SenderNamefromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SenderPostalfromLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SenderPostalfromLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SenderPostalfromTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SenderPostalfromTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * AutoText = &vtMissing, /*[in]*/ VARIANT * OmitReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAutoText = &vtMissing, /*[in]*/ VARIANT * PrintBarCode = &vtMissing, /*[in]*/ VARIANT * PrintFIMA = &vtMissing, /*[in]*/ VARIANT * Size = &vtMissing, /*[in]*/ VARIANT * Height = &vtMissing, /*[in]*/ VARIANT * Width = &vtMissing, /*[in]*/ VARIANT * FeedSource = &vtMissing, /*[in]*/ VARIANT * AddressFromLeft = &vtMissing, /*[in]*/ VARIANT * AddressFromTop = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromLeft = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromTop = &vtMissing, /*[in]*/ VARIANT * DefaultFaceUp = &vtMissing, /*[in]*/ VARIANT * DefaultOrientation = &vtMissing, /*[in]*/ VARIANT * PrintEPostage = &vtMissing, /*[in]*/ VARIANT * Vertical = &vtMissing, /*[in]*/ VARIANT * RecipientNamefromLeft = &vtMissing, /*[in]*/ VARIANT * RecipientNamefromTop = &vtMissing, /*[in]*/ VARIANT * RecipientPostalfromLeft = &vtMissing, /*[in]*/ VARIANT * RecipientPostalfromTop = &vtMissing, /*[in]*/ VARIANT * SenderNamefromLeft = &vtMissing, /*[in]*/ VARIANT * SenderNamefromTop = &vtMissing, /*[in]*/ VARIANT * SenderPostalfromLeft = &vtMissing, /*[in]*/ VARIANT * SenderPostalfromTop = &vtMissing ) = 0; virtual HRESULT __stdcall PrintOut ( /*[in]*/ VARIANT * ExtractAddress = &vtMissing, /*[in]*/ VARIANT * Address = &vtMissing, /*[in]*/ VARIANT * AutoText = &vtMissing, /*[in]*/ VARIANT * OmitReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAddress = &vtMissing, /*[in]*/ VARIANT * ReturnAutoText = &vtMissing, /*[in]*/ VARIANT * PrintBarCode = &vtMissing, /*[in]*/ VARIANT * PrintFIMA = &vtMissing, /*[in]*/ VARIANT * Size = &vtMissing, /*[in]*/ VARIANT * Height = &vtMissing, /*[in]*/ VARIANT * Width = &vtMissing, /*[in]*/ VARIANT * FeedSource = &vtMissing, /*[in]*/ VARIANT * AddressFromLeft = &vtMissing, /*[in]*/ VARIANT * AddressFromTop = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromLeft = &vtMissing, /*[in]*/ VARIANT * ReturnAddressFromTop = &vtMissing, /*[in]*/ VARIANT * DefaultFaceUp = &vtMissing, /*[in]*/ VARIANT * DefaultOrientation = &vtMissing, /*[in]*/ VARIANT * PrintEPostage = &vtMissing, /*[in]*/ VARIANT * Vertical = &vtMissing, /*[in]*/ VARIANT * RecipientNamefromLeft = &vtMissing, /*[in]*/ VARIANT * RecipientNamefromTop = &vtMissing, /*[in]*/ VARIANT * RecipientPostalfromLeft = &vtMissing, /*[in]*/ VARIANT * RecipientPostalfromTop = &vtMissing, /*[in]*/ VARIANT * SenderNamefromLeft = &vtMissing, /*[in]*/ VARIANT * SenderNamefromTop = &vtMissing, /*[in]*/ VARIANT * SenderPostalfromLeft = &vtMissing, /*[in]*/ VARIANT * SenderPostalfromTop = &vtMissing ) = 0; }; struct __declspec(uuid("00020981-0000-0000-c000-000000000046")) Revision : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Author ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Date ( /*[out,retval]*/ DATE * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdRevisionType * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Accept ( ) = 0; virtual HRESULT __stdcall Reject ( ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_FormatDescription ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_MovedRange ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Cells ( /*[out,retval]*/ struct Cells * * prop ) = 0; }; struct __declspec(uuid("00020980-0000-0000-c000-000000000046")) Revisions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Revision * * prop ) = 0; virtual HRESULT __stdcall AcceptAll ( ) = 0; virtual HRESULT __stdcall RejectAll ( ) = 0; }; struct __declspec(uuid("000209d7-0000-0000-c000-000000000046")) EmailAuthor : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ struct Style * * prop ) = 0; }; struct __declspec(uuid("000209db-0000-0000-c000-000000000046")) EmailOptions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_UseThemeStyle ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseThemeStyle ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_MarkCommentsWith ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_MarkCommentsWith ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MarkComments ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MarkComments ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_EmailSignature ( /*[out,retval]*/ struct EmailSignature * * prop ) = 0; virtual HRESULT __stdcall get_ComposeStyle ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_ReplyStyle ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_ThemeName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ThemeName ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Dummy1 ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Dummy2 ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Dummy3 ( ) = 0; virtual HRESULT __stdcall get_NewColorOnReply ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NewColorOnReply ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PlainTextStyle ( /*[out,retval]*/ struct Style * * prop ) = 0; virtual HRESULT __stdcall get_UseThemeStyleOnReply ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_UseThemeStyleOnReply ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyHeadings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyHeadings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyBorders ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyBorders ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyBulletedLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyBulletedLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyNumberedLists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyNumberedLists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceQuotes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceQuotes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceSymbols ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceSymbols ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceOrdinals ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceOrdinals ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceFractions ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceFractions ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplacePlainTextEmphasis ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplacePlainTextEmphasis ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeFormatListItemBeginning ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeFormatListItemBeginning ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeDefineStyles ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeDefineStyles ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceHyperlinks ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceHyperlinks ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyTables ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyTables ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyFirstIndents ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyFirstIndents ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyDates ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyDates ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeApplyClosings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeApplyClosings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeMatchParentheses ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeMatchParentheses ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeReplaceFarEastDashes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeReplaceFarEastDashes ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeDeleteAutoSpaces ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeDeleteAutoSpaces ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeInsertClosings ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeInsertClosings ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeAutoLetterWizard ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeAutoLetterWizard ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AutoFormatAsYouTypeInsertOvers ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AutoFormatAsYouTypeInsertOvers ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RelyOnCSS ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_RelyOnCSS ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HTMLFidelity ( /*[out,retval]*/ enum WdEmailHTMLFidelity * prop ) = 0; virtual HRESULT __stdcall put_HTMLFidelity ( /*[in]*/ enum WdEmailHTMLFidelity prop ) = 0; virtual HRESULT __stdcall get_EmbedSmartTag ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_EmbedSmartTag ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_TabIndentKey ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_TabIndentKey ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("000209dd-0000-0000-c000-000000000046")) Email : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_CurrentEmailAuthor ( /*[out,retval]*/ struct EmailAuthor * * prop ) = 0; }; struct __declspec(uuid("00020975-0000-0000-c000-000000000046")) Selection : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_FormattedText ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall put_FormattedText ( /*[in]*/ struct Range * prop ) = 0; virtual HRESULT __stdcall get_Start ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_Start ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_End ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_End ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdSelectionType * prop ) = 0; virtual HRESULT __stdcall get_StoryType ( /*[out,retval]*/ enum WdStoryType * prop ) = 0; virtual HRESULT __stdcall get_Style ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_Style ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Tables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_Words ( /*[out,retval]*/ struct Words * * prop ) = 0; virtual HRESULT __stdcall get_Sentences ( /*[out,retval]*/ struct Sentences * * prop ) = 0; virtual HRESULT __stdcall get_Characters ( /*[out,retval]*/ struct Characters * * prop ) = 0; virtual HRESULT __stdcall get_Footnotes ( /*[out,retval]*/ struct Footnotes * * prop ) = 0; virtual HRESULT __stdcall get_Endnotes ( /*[out,retval]*/ struct Endnotes * * prop ) = 0; virtual HRESULT __stdcall get_Comments ( /*[out,retval]*/ struct Comments * * prop ) = 0; virtual HRESULT __stdcall get_Cells ( /*[out,retval]*/ struct Cells * * prop ) = 0; virtual HRESULT __stdcall get_Sections ( /*[out,retval]*/ struct Sections * * prop ) = 0; virtual HRESULT __stdcall get_Paragraphs ( /*[out,retval]*/ struct Paragraphs * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Shading ( /*[out,retval]*/ struct Shading * * prop ) = 0; virtual HRESULT __stdcall get_Fields ( /*[out,retval]*/ struct Fields * * prop ) = 0; virtual HRESULT __stdcall get_FormFields ( /*[out,retval]*/ struct FormFields * * prop ) = 0; virtual HRESULT __stdcall get_Frames ( /*[out,retval]*/ struct Frames * * prop ) = 0; virtual HRESULT __stdcall get_ParagraphFormat ( /*[out,retval]*/ struct _ParagraphFormat * * prop ) = 0; virtual HRESULT __stdcall put_ParagraphFormat ( /*[in]*/ struct _ParagraphFormat * prop ) = 0; virtual HRESULT __stdcall get_PageSetup ( /*[out,retval]*/ struct PageSetup * * prop ) = 0; virtual HRESULT __stdcall put_PageSetup ( /*[in]*/ struct PageSetup * prop ) = 0; virtual HRESULT __stdcall get_Bookmarks ( /*[out,retval]*/ struct Bookmarks * * prop ) = 0; virtual HRESULT __stdcall get_StoryLength ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_LanguageID ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageID ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_LanguageIDFarEast ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDFarEast ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_LanguageIDOther ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_LanguageIDOther ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall get_Hyperlinks ( /*[out,retval]*/ struct Hyperlinks * * prop ) = 0; virtual HRESULT __stdcall get_Columns ( /*[out,retval]*/ struct Columns * * prop ) = 0; virtual HRESULT __stdcall get_Rows ( /*[out,retval]*/ struct Rows * * prop ) = 0; virtual HRESULT __stdcall get_HeaderFooter ( /*[out,retval]*/ struct HeaderFooter * * prop ) = 0; virtual HRESULT __stdcall get_IsEndOfRowMark ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_BookmarkID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_PreviousBookmarkID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Find ( /*[out,retval]*/ struct Find * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Information ( /*[in]*/ enum WdInformation Type, /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Flags ( /*[out,retval]*/ enum WdSelectionFlags * prop ) = 0; virtual HRESULT __stdcall put_Flags ( /*[in]*/ enum WdSelectionFlags prop ) = 0; virtual HRESULT __stdcall get_Active ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_StartIsActive ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StartIsActive ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_IPAtEndOfLine ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_ExtendMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ExtendMode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ColumnSelectMode ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ColumnSelectMode ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ enum WdTextOrientation * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ enum WdTextOrientation prop ) = 0; virtual HRESULT __stdcall get_InlineShapes ( /*[out,retval]*/ struct InlineShapes * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Document ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_ShapeRange ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall SetRange ( /*[in]*/ long Start, /*[in]*/ long End ) = 0; virtual HRESULT __stdcall Collapse ( /*[in]*/ VARIANT * Direction = &vtMissing ) = 0; virtual HRESULT __stdcall InsertBefore ( /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall InsertAfter ( /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall Next ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Previous ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall StartOf ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall EndOf ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Move ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStart ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEnd ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStartWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEndWhile ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveStartUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveEndUntil ( /*[in]*/ VARIANT * Cset, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Paste ( ) = 0; virtual HRESULT __stdcall InsertBreak ( /*[in]*/ VARIANT * Type = &vtMissing ) = 0; virtual HRESULT __stdcall InsertFile ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * Range = &vtMissing, /*[in]*/ VARIANT * ConfirmConversions = &vtMissing, /*[in]*/ VARIANT * Link = &vtMissing, /*[in]*/ VARIANT * Attachment = &vtMissing ) = 0; virtual HRESULT __stdcall InStory ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall InRange ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Expand ( /*[in]*/ VARIANT * Unit, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall InsertParagraph ( ) = 0; virtual HRESULT __stdcall InsertParagraphAfter ( ) = 0; virtual HRESULT __stdcall ConvertToTableOld ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NumRows, /*[in]*/ VARIANT * NumColumns, /*[in]*/ VARIANT * InitialColumnWidth, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ApplyBorders, /*[in]*/ VARIANT * ApplyShading, /*[in]*/ VARIANT * ApplyFont, /*[in]*/ VARIANT * ApplyColor, /*[in]*/ VARIANT * ApplyHeadingRows, /*[in]*/ VARIANT * ApplyLastRow, /*[in]*/ VARIANT * ApplyFirstColumn, /*[in]*/ VARIANT * ApplyLastColumn, /*[in]*/ VARIANT * AutoFit, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall InsertDateTimeOld ( /*[in]*/ VARIANT * DateTimeFormat = &vtMissing, /*[in]*/ VARIANT * InsertAsField = &vtMissing, /*[in]*/ VARIANT * InsertAsFullWidth = &vtMissing ) = 0; virtual HRESULT __stdcall InsertSymbol ( /*[in]*/ long CharacterNumber, /*[in]*/ VARIANT * Font = &vtMissing, /*[in]*/ VARIANT * Unicode = &vtMissing, /*[in]*/ VARIANT * Bias = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCrossReference_2002 ( /*[in]*/ VARIANT * ReferenceType, /*[in]*/ enum WdReferenceKind ReferenceKind, /*[in]*/ VARIANT * ReferenceItem, /*[in]*/ VARIANT * InsertAsHyperlink = &vtMissing, /*[in]*/ VARIANT * IncludePosition = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCaptionXP ( /*[in]*/ VARIANT * Label, /*[in]*/ VARIANT * Title = &vtMissing, /*[in]*/ VARIANT * TitleAutoText = &vtMissing, /*[in]*/ VARIANT * Position = &vtMissing ) = 0; virtual HRESULT __stdcall CopyAsPicture ( ) = 0; virtual HRESULT __stdcall SortOld ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * SortColumn = &vtMissing, /*[in]*/ VARIANT * Separator = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall SortAscending ( ) = 0; virtual HRESULT __stdcall SortDescending ( ) = 0; virtual HRESULT __stdcall IsEqual ( /*[in]*/ struct Range * Range, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Calculate ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall GoTo ( /*[in]*/ VARIANT * What, /*[in]*/ VARIANT * Which, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Name, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall GoToNext ( /*[in]*/ enum WdGoToItem What, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall GoToPrevious ( /*[in]*/ enum WdGoToItem What, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall PasteSpecial ( /*[in]*/ VARIANT * IconIndex = &vtMissing, /*[in]*/ VARIANT * Link = &vtMissing, /*[in]*/ VARIANT * Placement = &vtMissing, /*[in]*/ VARIANT * DisplayAsIcon = &vtMissing, /*[in]*/ VARIANT * DataType = &vtMissing, /*[in]*/ VARIANT * IconFileName = &vtMissing, /*[in]*/ VARIANT * IconLabel = &vtMissing ) = 0; virtual HRESULT __stdcall PreviousField ( /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall NextField ( /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall InsertParagraphBefore ( ) = 0; virtual HRESULT __stdcall InsertCells ( /*[in]*/ VARIANT * ShiftCells = &vtMissing ) = 0; virtual HRESULT __stdcall Extend ( /*[in]*/ VARIANT * Character = &vtMissing ) = 0; virtual HRESULT __stdcall Shrink ( ) = 0; virtual HRESULT __stdcall MoveLeft ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveRight ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveUp ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall MoveDown ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Count, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall HomeKey ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall EndKey ( /*[in]*/ VARIANT * Unit, /*[in]*/ VARIANT * Extend, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall EscapeKey ( ) = 0; virtual HRESULT __stdcall TypeText ( /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall CopyFormat ( ) = 0; virtual HRESULT __stdcall PasteFormat ( ) = 0; virtual HRESULT __stdcall TypeParagraph ( ) = 0; virtual HRESULT __stdcall TypeBackspace ( ) = 0; virtual HRESULT __stdcall NextSubdocument ( ) = 0; virtual HRESULT __stdcall PreviousSubdocument ( ) = 0; virtual HRESULT __stdcall SelectColumn ( ) = 0; virtual HRESULT __stdcall SelectCurrentFont ( ) = 0; virtual HRESULT __stdcall SelectCurrentAlignment ( ) = 0; virtual HRESULT __stdcall SelectCurrentSpacing ( ) = 0; virtual HRESULT __stdcall SelectCurrentIndent ( ) = 0; virtual HRESULT __stdcall SelectCurrentTabs ( ) = 0; virtual HRESULT __stdcall SelectCurrentColor ( ) = 0; virtual HRESULT __stdcall CreateTextbox ( ) = 0; virtual HRESULT __stdcall WholeStory ( ) = 0; virtual HRESULT __stdcall SelectRow ( ) = 0; virtual HRESULT __stdcall SplitTable ( ) = 0; virtual HRESULT __stdcall InsertRows ( /*[in]*/ VARIANT * NumRows = &vtMissing ) = 0; virtual HRESULT __stdcall InsertColumns ( ) = 0; virtual HRESULT __stdcall InsertFormula ( /*[in]*/ VARIANT * Formula = &vtMissing, /*[in]*/ VARIANT * NumberFormat = &vtMissing ) = 0; virtual HRESULT __stdcall NextRevision ( /*[in]*/ VARIANT * Wrap, /*[out,retval]*/ struct Revision * * prop ) = 0; virtual HRESULT __stdcall PreviousRevision ( /*[in]*/ VARIANT * Wrap, /*[out,retval]*/ struct Revision * * prop ) = 0; virtual HRESULT __stdcall PasteAsNestedTable ( ) = 0; virtual HRESULT __stdcall CreateAutoTextEntry ( /*[in]*/ BSTR Name, /*[in]*/ BSTR StyleName, /*[out,retval]*/ struct AutoTextEntry * * prop ) = 0; virtual HRESULT __stdcall DetectLanguage ( ) = 0; virtual HRESULT __stdcall SelectCell ( ) = 0; virtual HRESULT __stdcall InsertRowsBelow ( /*[in]*/ VARIANT * NumRows = &vtMissing ) = 0; virtual HRESULT __stdcall InsertColumnsRight ( ) = 0; virtual HRESULT __stdcall InsertRowsAbove ( /*[in]*/ VARIANT * NumRows = &vtMissing ) = 0; virtual HRESULT __stdcall RtlRun ( ) = 0; virtual HRESULT __stdcall LtrRun ( ) = 0; virtual HRESULT __stdcall BoldRun ( ) = 0; virtual HRESULT __stdcall ItalicRun ( ) = 0; virtual HRESULT __stdcall RtlPara ( ) = 0; virtual HRESULT __stdcall LtrPara ( ) = 0; virtual HRESULT __stdcall InsertDateTime ( /*[in]*/ VARIANT * DateTimeFormat = &vtMissing, /*[in]*/ VARIANT * InsertAsField = &vtMissing, /*[in]*/ VARIANT * InsertAsFullWidth = &vtMissing, /*[in]*/ VARIANT * DateLanguage = &vtMissing, /*[in]*/ VARIANT * CalendarType = &vtMissing ) = 0; virtual HRESULT __stdcall Sort2000 ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * SortColumn = &vtMissing, /*[in]*/ VARIANT * Separator = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; virtual HRESULT __stdcall ConvertToTable ( /*[in]*/ VARIANT * Separator, /*[in]*/ VARIANT * NumRows, /*[in]*/ VARIANT * NumColumns, /*[in]*/ VARIANT * InitialColumnWidth, /*[in]*/ VARIANT * Format, /*[in]*/ VARIANT * ApplyBorders, /*[in]*/ VARIANT * ApplyShading, /*[in]*/ VARIANT * ApplyFont, /*[in]*/ VARIANT * ApplyColor, /*[in]*/ VARIANT * ApplyHeadingRows, /*[in]*/ VARIANT * ApplyLastRow, /*[in]*/ VARIANT * ApplyFirstColumn, /*[in]*/ VARIANT * ApplyLastColumn, /*[in]*/ VARIANT * AutoFit, /*[in]*/ VARIANT * AutoFitBehavior, /*[in]*/ VARIANT * DefaultTableBehavior, /*[out,retval]*/ struct Table * * prop ) = 0; virtual HRESULT __stdcall get_NoProofing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_NoProofing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_TopLevelTables ( /*[out,retval]*/ struct Tables * * prop ) = 0; virtual HRESULT __stdcall get_LanguageDetected ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LanguageDetected ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_FitTextWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_FitTextWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall ClearFormatting ( ) = 0; virtual HRESULT __stdcall PasteAppendTable ( ) = 0; virtual HRESULT __stdcall get_HTMLDivisions ( /*[out,retval]*/ struct HTMLDivisions * * prop ) = 0; virtual HRESULT __stdcall get_SmartTags ( /*[out,retval]*/ struct SmartTags * * prop ) = 0; virtual HRESULT __stdcall get_ChildShapeRange ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall get_HasChildShapeRange ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_FootnoteOptions ( /*[out,retval]*/ struct FootnoteOptions * * prop ) = 0; virtual HRESULT __stdcall get_EndnoteOptions ( /*[out,retval]*/ struct EndnoteOptions * * prop ) = 0; virtual HRESULT __stdcall ToggleCharacterCode ( ) = 0; virtual HRESULT __stdcall PasteAndFormat ( /*[in]*/ enum WdRecoveryType Type ) = 0; virtual HRESULT __stdcall PasteExcelTable ( /*[in]*/ VARIANT_BOOL LinkedToExcel, /*[in]*/ VARIANT_BOOL WordFormatting, /*[in]*/ VARIANT_BOOL RTF ) = 0; virtual HRESULT __stdcall ShrinkDiscontiguousSelection ( ) = 0; virtual HRESULT __stdcall InsertStyleSeparator ( ) = 0; virtual HRESULT __stdcall Sort ( /*[in]*/ VARIANT * ExcludeHeader = &vtMissing, /*[in]*/ VARIANT * FieldNumber = &vtMissing, /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * FieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SortFieldType2 = &vtMissing, /*[in]*/ VARIANT * SortOrder2 = &vtMissing, /*[in]*/ VARIANT * FieldNumber3 = &vtMissing, /*[in]*/ VARIANT * SortFieldType3 = &vtMissing, /*[in]*/ VARIANT * SortOrder3 = &vtMissing, /*[in]*/ VARIANT * SortColumn = &vtMissing, /*[in]*/ VARIANT * Separator = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing, /*[in]*/ VARIANT * SubFieldNumber = &vtMissing, /*[in]*/ VARIANT * SubFieldNumber2 = &vtMissing, /*[in]*/ VARIANT * SubFieldNumber3 = &vtMissing ) = 0; virtual HRESULT __stdcall get_XMLNodes ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_XMLParentNode ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_Editors ( /*[out,retval]*/ struct Editors * * prop ) = 0; virtual HRESULT __stdcall get_XML ( /*[in]*/ VARIANT_BOOL DataOnly, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_EnhMetaFileBits ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall GoToEditableRange ( /*[in]*/ VARIANT * EditorID, /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall InsertXML ( /*[in]*/ BSTR XML, /*[in]*/ VARIANT * Transform = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCaption ( /*[in]*/ VARIANT * Label, /*[in]*/ VARIANT * Title = &vtMissing, /*[in]*/ VARIANT * TitleAutoText = &vtMissing, /*[in]*/ VARIANT * Position = &vtMissing, /*[in]*/ VARIANT * ExcludeLabel = &vtMissing ) = 0; virtual HRESULT __stdcall InsertCrossReference ( /*[in]*/ VARIANT * ReferenceType, /*[in]*/ enum WdReferenceKind ReferenceKind, /*[in]*/ VARIANT * ReferenceItem, /*[in]*/ VARIANT * InsertAsHyperlink = &vtMissing, /*[in]*/ VARIANT * IncludePosition = &vtMissing, /*[in]*/ VARIANT * SeparateNumbers = &vtMissing, /*[in]*/ VARIANT * SeparatorString = &vtMissing ) = 0; virtual HRESULT __stdcall get_OMaths ( /*[out,retval]*/ struct OMaths * * prop ) = 0; virtual HRESULT __stdcall get_WordOpenXML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall ClearParagraphStyle ( ) = 0; virtual HRESULT __stdcall ClearCharacterAllFormatting ( ) = 0; virtual HRESULT __stdcall ClearCharacterStyle ( ) = 0; virtual HRESULT __stdcall ClearCharacterDirectFormatting ( ) = 0; virtual HRESULT __stdcall get_ContentControls ( /*[out,retval]*/ struct ContentControls * * prop ) = 0; virtual HRESULT __stdcall get_ParentContentControl ( /*[out,retval]*/ struct ContentControl * * prop ) = 0; virtual HRESULT __stdcall ExportAsFixedFormat ( /*[in]*/ BSTR OutputFileName, /*[in]*/ enum WdExportFormat ExportFormat, /*[in]*/ VARIANT_BOOL OpenAfterExport, /*[in]*/ enum WdExportOptimizeFor OptimizeFor, /*[in]*/ VARIANT_BOOL ExportCurrentPage, /*[in]*/ enum WdExportItem Item, /*[in]*/ VARIANT_BOOL IncludeDocProps, /*[in]*/ VARIANT_BOOL KeepIRM, /*[in]*/ enum WdExportCreateBookmarks CreateBookmarks, /*[in]*/ VARIANT_BOOL DocStructureTags, /*[in]*/ VARIANT_BOOL BitmapMissingFonts, /*[in]*/ VARIANT_BOOL UseISO19005_1, /*[in]*/ VARIANT * FixedFormatExtClassPtr = &vtMissing ) = 0; virtual HRESULT __stdcall ReadingModeGrowFont ( ) = 0; virtual HRESULT __stdcall ReadingModeShrinkFont ( ) = 0; virtual HRESULT __stdcall ClearParagraphAllFormatting ( ) = 0; virtual HRESULT __stdcall ClearParagraphDirectFormatting ( ) = 0; virtual HRESULT __stdcall InsertNewPage ( ) = 0; virtual HRESULT __stdcall SortByHeadings ( /*[in]*/ VARIANT * SortFieldType = &vtMissing, /*[in]*/ VARIANT * SortOrder = &vtMissing, /*[in]*/ VARIANT * CaseSensitive = &vtMissing, /*[in]*/ VARIANT * BidiSort = &vtMissing, /*[in]*/ VARIANT * IgnoreThe = &vtMissing, /*[in]*/ VARIANT * IgnoreKashida = &vtMissing, /*[in]*/ VARIANT * IgnoreDiacritics = &vtMissing, /*[in]*/ VARIANT * IgnoreHe = &vtMissing, /*[in]*/ VARIANT * LanguageID = &vtMissing ) = 0; }; struct __declspec(uuid("000209fe-0001-0000-c000-000000000046")) IApplicationEvents2 : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall Startup ( ) = 0; virtual HRESULT __stdcall Quit ( ) = 0; virtual HRESULT __stdcall DocumentChange ( ) = 0; virtual HRESULT __stdcall DocumentOpen ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall DocumentBeforeClose ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforePrint ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforeSave ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * SaveAsUI, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall NewDocument ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall WindowActivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowDeactivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowSelectionChange ( /*[in]*/ struct Selection * Sel ) = 0; virtual HRESULT __stdcall WindowBeforeRightClick ( /*[in]*/ struct Selection * Sel, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall WindowBeforeDoubleClick ( /*[in]*/ struct Selection * Sel, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; }; struct __declspec(uuid("00020a00-0001-0000-c000-000000000046")) IApplicationEvents3 : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall Startup ( ) = 0; virtual HRESULT __stdcall Quit ( ) = 0; virtual HRESULT __stdcall DocumentChange ( ) = 0; virtual HRESULT __stdcall DocumentOpen ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall DocumentBeforeClose ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforePrint ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforeSave ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * SaveAsUI, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall NewDocument ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall WindowActivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowDeactivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowSelectionChange ( /*[in]*/ struct Selection * Sel ) = 0; virtual HRESULT __stdcall WindowBeforeRightClick ( /*[in]*/ struct Selection * Sel, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall WindowBeforeDoubleClick ( /*[in]*/ struct Selection * Sel, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall EPostagePropertyDialog ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall EPostageInsert ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeAfterMerge ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct _Document * DocResult ) = 0; virtual HRESULT __stdcall MailMergeAfterRecordMerge ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeBeforeMerge ( /*[in]*/ struct _Document * Doc, /*[in]*/ long StartRecord, /*[in]*/ long EndRecord, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall MailMergeBeforeRecordMerge ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall MailMergeDataSourceLoad ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeDataSourceValidate ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Handled ) = 0; virtual HRESULT __stdcall MailMergeWizardSendToCustom ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeWizardStateChange ( /*[in]*/ struct _Document * Doc, /*[in]*/ int * FromState, /*[in]*/ int * ToState, /*[in]*/ VARIANT_BOOL * Handled ) = 0; virtual HRESULT __stdcall WindowSize ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; }; struct __declspec(uuid("00020984-0000-0000-c000-000000000046")) HeadersFooters : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdHeaderFooterIndex Index, /*[out,retval]*/ struct HeaderFooter * * prop ) = 0; }; struct __declspec(uuid("00020985-0000-0000-c000-000000000046")) HeaderFooter : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ enum WdHeaderFooterIndex * prop ) = 0; virtual HRESULT __stdcall get_IsHeader ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Exists ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Exists ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_PageNumbers ( /*[out,retval]*/ struct PageNumbers * * prop ) = 0; virtual HRESULT __stdcall get_LinkToPrevious ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LinkToPrevious ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Shapes ( /*[out,retval]*/ struct Shapes * * prop ) = 0; }; struct __declspec(uuid("0002098d-0000-0000-c000-000000000046")) ListLevel : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_NumberFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NumberFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TrailingCharacter ( /*[out,retval]*/ enum WdTrailingCharacter * prop ) = 0; virtual HRESULT __stdcall put_TrailingCharacter ( /*[in]*/ enum WdTrailingCharacter prop ) = 0; virtual HRESULT __stdcall get_NumberStyle ( /*[out,retval]*/ enum WdListNumberStyle * prop ) = 0; virtual HRESULT __stdcall put_NumberStyle ( /*[in]*/ enum WdListNumberStyle prop ) = 0; virtual HRESULT __stdcall get_NumberPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_NumberPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Alignment ( /*[out,retval]*/ enum WdListLevelAlignment * prop ) = 0; virtual HRESULT __stdcall put_Alignment ( /*[in]*/ enum WdListLevelAlignment prop ) = 0; virtual HRESULT __stdcall get_TextPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TextPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TabPosition ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TabPosition ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ResetOnHigherOld ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ResetOnHigherOld ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StartAt ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_StartAt ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LinkedStyle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_LinkedStyle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Font ( /*[out,retval]*/ struct _Font * * prop ) = 0; virtual HRESULT __stdcall put_Font ( /*[in]*/ struct _Font * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ResetOnHigher ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ResetOnHigher ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_PictureBullet ( /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall ApplyPictureBullet ( /*[in]*/ BSTR FileName, /*[out,retval]*/ struct InlineShape * * prop ) = 0; }; struct __declspec(uuid("0002098e-0000-0000-c000-000000000046")) ListLevels : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct ListLevel * * prop ) = 0; }; struct __declspec(uuid("0002098f-0000-0000-c000-000000000046")) ListTemplate : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_OutlineNumbered ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OutlineNumbered ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ListLevels ( /*[out,retval]*/ struct ListLevels * * prop ) = 0; virtual HRESULT __stdcall Convert ( /*[in]*/ VARIANT * Level, /*[out,retval]*/ struct ListTemplate * * prop ) = 0; }; struct __declspec(uuid("00020990-0000-0000-c000-000000000046")) ListTemplates : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ListTemplate * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * OutlineNumbered, /*[in]*/ VARIANT * Name, /*[out,retval]*/ struct ListTemplate * * prop ) = 0; }; struct __declspec(uuid("00020992-0000-0000-c000-000000000046")) List : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ListParagraphs ( /*[out,retval]*/ struct ListParagraphs * * prop ) = 0; virtual HRESULT __stdcall get_SingleListTemplate ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall ConvertNumbersToText ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall RemoveNumbers ( /*[in]*/ VARIANT * NumberType = &vtMissing ) = 0; virtual HRESULT __stdcall CountNumberedItems ( /*[in]*/ VARIANT * NumberType, /*[in]*/ VARIANT * Level, /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall ApplyListTemplateOld ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing ) = 0; virtual HRESULT __stdcall CanContinuePreviousList ( /*[in]*/ struct ListTemplate * ListTemplate, /*[out,retval]*/ enum WdContinue * prop ) = 0; virtual HRESULT __stdcall ApplyListTemplate ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing, /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing ) = 0; virtual HRESULT __stdcall get_StyleName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall ApplyListTemplateWithLevel ( /*[in]*/ struct ListTemplate * ListTemplate, /*[in]*/ VARIANT * ContinuePreviousList = &vtMissing, /*[in]*/ VARIANT * DefaultListBehavior = &vtMissing, /*[in]*/ VARIANT * ApplyLevel = &vtMissing ) = 0; }; struct __declspec(uuid("00020993-0000-0000-c000-000000000046")) Lists : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct List * * prop ) = 0; }; struct __declspec(uuid("00020994-0000-0000-c000-000000000046")) ListGallery : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_ListTemplates ( /*[out,retval]*/ struct ListTemplates * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Modified ( /*[in]*/ long Index, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Reset ( /*[in]*/ long Index ) = 0; }; struct __declspec(uuid("00020995-0000-0000-c000-000000000046")) ListGalleries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdListGalleryType Index, /*[out,retval]*/ struct ListGallery * * prop ) = 0; }; struct __declspec(uuid("0002099c-0000-0000-c000-000000000046")) Hyperlinks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Hyperlink * * prop ) = 0; virtual HRESULT __stdcall _Add ( /*[in]*/ IDispatch * Anchor, /*[in]*/ VARIANT * Address, /*[in]*/ VARIANT * SubAddress, /*[out,retval]*/ struct Hyperlink * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ IDispatch * Anchor, /*[in]*/ VARIANT * Address, /*[in]*/ VARIANT * SubAddress, /*[in]*/ VARIANT * ScreenTip, /*[in]*/ VARIANT * TextToDisplay, /*[in]*/ VARIANT * Target, /*[out,retval]*/ struct Hyperlink * * prop ) = 0; }; struct __declspec(uuid("0002099d-0000-0000-c000-000000000046")) Hyperlink : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_AddressOld ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoHyperlinkType * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Shape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_SubAddressOld ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ExtraInfoRequired ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Follow ( /*[in]*/ VARIANT * NewWindow = &vtMissing, /*[in]*/ VARIANT * AddHistory = &vtMissing, /*[in]*/ VARIANT * ExtraInfo = &vtMissing, /*[in]*/ VARIANT * Method = &vtMissing, /*[in]*/ VARIANT * HeaderInfo = &vtMissing ) = 0; virtual HRESULT __stdcall AddToFavorites ( ) = 0; virtual HRESULT __stdcall CreateNewDocument ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT_BOOL EditNow, /*[in]*/ VARIANT_BOOL Overwrite ) = 0; virtual HRESULT __stdcall get_Address ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Address ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_SubAddress ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_SubAddress ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_EmailSubject ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_EmailSubject ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ScreenTip ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_ScreenTip ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_TextToDisplay ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_TextToDisplay ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Target ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Target ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("0002099f-0000-0000-c000-000000000046")) Shapes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddCallout ( /*[in]*/ enum Office::MsoCalloutType Type, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddConnector ( /*[in]*/ enum Office::MsoConnectorType Type, /*[in]*/ float BeginX, /*[in]*/ float BeginY, /*[in]*/ float EndX, /*[in]*/ float EndY, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddCurve ( /*[in]*/ VARIANT * SafeArrayOfPoints, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddLabel ( /*[in]*/ enum Office::MsoTextOrientation Orientation, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddLine ( /*[in]*/ float BeginX, /*[in]*/ float BeginY, /*[in]*/ float EndX, /*[in]*/ float EndY, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddPicture ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * LinkToFile, /*[in]*/ VARIANT * SaveWithDocument, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddPolyline ( /*[in]*/ VARIANT * SafeArrayOfPoints, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddShape ( /*[in]*/ long Type, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddTextEffect ( /*[in]*/ enum Office::MsoPresetTextEffect PresetTextEffect, /*[in]*/ BSTR Text, /*[in]*/ BSTR FontName, /*[in]*/ float FontSize, /*[in]*/ enum Office::MsoTriState FontBold, /*[in]*/ enum Office::MsoTriState FontItalic, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddTextbox ( /*[in]*/ enum Office::MsoTextOrientation Orientation, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall BuildFreeform ( /*[in]*/ enum Office::MsoEditingType EditingType, /*[in]*/ float X1, /*[in]*/ float Y1, /*[out,retval]*/ struct FreeformBuilder * * prop ) = 0; virtual HRESULT __stdcall Range ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall SelectAll ( ) = 0; virtual HRESULT __stdcall AddOLEObject ( /*[in]*/ VARIANT * ClassType, /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * LinkToFile, /*[in]*/ VARIANT * DisplayAsIcon, /*[in]*/ VARIANT * IconFileName, /*[in]*/ VARIANT * IconIndex, /*[in]*/ VARIANT * IconLabel, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddOLEControl ( /*[in]*/ VARIANT * ClassType, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddDiagram ( /*[in]*/ enum Office::MsoDiagramType Type, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddCanvas ( /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddChart ( /*[in]*/ enum Office::XlChartType Type, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddSmartArt ( /*[in]*/ struct Office::SmartArtLayout * Layout, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddWebVideo ( /*[in]*/ BSTR EmbedCode, /*[in]*/ VARIANT * VideoWidth, /*[in]*/ VARIANT * VideoHeight, /*[in]*/ VARIANT * PosterFrameImage, /*[in]*/ VARIANT * Url, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddChart2 ( /*[in]*/ long Style, /*[in]*/ enum Office::XlChartType Type, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[in]*/ VARIANT * Anchor, /*[in]*/ VARIANT * NewLayout, /*[out,retval]*/ struct Shape * * prop ) = 0; }; struct __declspec(uuid("000209b5-0000-0000-c000-000000000046")) ShapeRange : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Adjustments ( /*[out,retval]*/ struct Adjustments * * prop ) = 0; virtual HRESULT __stdcall get_AutoShapeType ( /*[out,retval]*/ enum Office::MsoAutoShapeType * prop ) = 0; virtual HRESULT __stdcall put_AutoShapeType ( /*[in]*/ enum Office::MsoAutoShapeType prop ) = 0; virtual HRESULT __stdcall get_Callout ( /*[out,retval]*/ struct CalloutFormat * * prop ) = 0; virtual HRESULT __stdcall get_ConnectionSiteCount ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Connector ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_ConnectorFormat ( /*[out,retval]*/ struct ConnectorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct FillFormat * * prop ) = 0; virtual HRESULT __stdcall get_GroupItems ( /*[out,retval]*/ struct GroupShapes * * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalFlip ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Line ( /*[out,retval]*/ struct LineFormat * * prop ) = 0; virtual HRESULT __stdcall get_LockAspectRatio ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_LockAspectRatio ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Nodes ( /*[out,retval]*/ struct ShapeNodes * * prop ) = 0; virtual HRESULT __stdcall get_Rotation ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Rotation ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PictureFormat ( /*[out,retval]*/ struct PictureFormat * * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ struct ShadowFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextEffect ( /*[out,retval]*/ struct TextEffectFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextFrame ( /*[out,retval]*/ struct TextFrame * * prop ) = 0; virtual HRESULT __stdcall get_ThreeD ( /*[out,retval]*/ struct ThreeDFormat * * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoShapeType * prop ) = 0; virtual HRESULT __stdcall get_VerticalFlip ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Vertices ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ZOrderPosition ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Hyperlink ( /*[out,retval]*/ struct Hyperlink * * prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalPosition ( /*[out,retval]*/ enum WdRelativeHorizontalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalPosition ( /*[in]*/ enum WdRelativeHorizontalPosition prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalPosition ( /*[out,retval]*/ enum WdRelativeVerticalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalPosition ( /*[in]*/ enum WdRelativeVerticalPosition prop ) = 0; virtual HRESULT __stdcall get_LockAnchor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LockAnchor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WrapFormat ( /*[out,retval]*/ struct WrapFormat * * prop ) = 0; virtual HRESULT __stdcall get_Anchor ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall Align ( /*[in]*/ enum Office::MsoAlignCmd Align, /*[in]*/ long RelativeTo ) = 0; virtual HRESULT __stdcall Apply ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Distribute ( /*[in]*/ enum Office::MsoDistributeCmd Distribute, /*[in]*/ long RelativeTo ) = 0; virtual HRESULT __stdcall Duplicate ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall Flip ( /*[in]*/ enum Office::MsoFlipCmd FlipCmd ) = 0; virtual HRESULT __stdcall IncrementLeft ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementRotation ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementTop ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall Group ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall PickUp ( ) = 0; virtual HRESULT __stdcall Regroup ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall RerouteConnections ( ) = 0; virtual HRESULT __stdcall ScaleHeight ( /*[in]*/ float Factor, /*[in]*/ enum Office::MsoTriState RelativeToOriginalSize, /*[in]*/ enum Office::MsoScaleFrom Scale ) = 0; virtual HRESULT __stdcall ScaleWidth ( /*[in]*/ float Factor, /*[in]*/ enum Office::MsoTriState RelativeToOriginalSize, /*[in]*/ enum Office::MsoScaleFrom Scale ) = 0; virtual HRESULT __stdcall Select ( /*[in]*/ VARIANT * Replace = &vtMissing ) = 0; virtual HRESULT __stdcall SetShapesDefaultProperties ( ) = 0; virtual HRESULT __stdcall Ungroup ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall ZOrder ( /*[in]*/ enum Office::MsoZOrderCmd ZOrderCmd ) = 0; virtual HRESULT __stdcall ConvertToFrame ( /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall ConvertToInlineShape ( /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall get_AlternativeText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_AlternativeText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HasDiagram ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Diagram ( /*[out,retval]*/ struct Office::IMsoDiagram * * prop ) = 0; virtual HRESULT __stdcall get_HasDiagramNode ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_DiagramNode ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall get_Child ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_ParentGroup ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_CanvasItems ( /*[out,retval]*/ struct CanvasShapes * * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall CanvasCropLeft ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropTop ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropRight ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropBottom ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall put_RTF ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall get_LayoutInCell ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LayoutInCell ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_LeftRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TopRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_WidthRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_WidthRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HeightRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalSize ( /*[out,retval]*/ enum WdRelativeHorizontalSize * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalSize ( /*[in]*/ enum WdRelativeHorizontalSize prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalSize ( /*[out,retval]*/ enum WdRelativeVerticalSize * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalSize ( /*[in]*/ enum WdRelativeVerticalSize prop ) = 0; virtual HRESULT __stdcall get_SoftEdge ( /*[out,retval]*/ struct SoftEdgeFormat * * prop ) = 0; virtual HRESULT __stdcall get_Glow ( /*[out,retval]*/ struct GlowFormat * * prop ) = 0; virtual HRESULT __stdcall get_Reflection ( /*[out,retval]*/ struct ReflectionFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextFrame2 ( /*[out,retval]*/ struct Office::TextFrame2 * * prop ) = 0; virtual HRESULT __stdcall get_ShapeStyle ( /*[out,retval]*/ enum Office::MsoShapeStyleIndex * prop ) = 0; virtual HRESULT __stdcall put_ShapeStyle ( /*[in]*/ enum Office::MsoShapeStyleIndex prop ) = 0; virtual HRESULT __stdcall get_BackgroundStyle ( /*[out,retval]*/ enum Office::MsoBackgroundStyleIndex * prop ) = 0; virtual HRESULT __stdcall put_BackgroundStyle ( /*[in]*/ enum Office::MsoBackgroundStyleIndex prop ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; }; struct __declspec(uuid("000209b6-0000-0000-c000-000000000046")) GroupShapes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall Range ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ShapeRange * * prop ) = 0; }; struct __declspec(uuid("000209a0-0000-0000-c000-000000000046")) Shape : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Adjustments ( /*[out,retval]*/ struct Adjustments * * prop ) = 0; virtual HRESULT __stdcall get_AutoShapeType ( /*[out,retval]*/ enum Office::MsoAutoShapeType * prop ) = 0; virtual HRESULT __stdcall put_AutoShapeType ( /*[in]*/ enum Office::MsoAutoShapeType prop ) = 0; virtual HRESULT __stdcall get_Callout ( /*[out,retval]*/ struct CalloutFormat * * prop ) = 0; virtual HRESULT __stdcall get_ConnectionSiteCount ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Connector ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_ConnectorFormat ( /*[out,retval]*/ struct ConnectorFormat * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct FillFormat * * prop ) = 0; virtual HRESULT __stdcall get_GroupItems ( /*[out,retval]*/ struct GroupShapes * * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HorizontalFlip ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Left ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Line ( /*[out,retval]*/ struct LineFormat * * prop ) = 0; virtual HRESULT __stdcall get_LockAspectRatio ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_LockAspectRatio ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Nodes ( /*[out,retval]*/ struct ShapeNodes * * prop ) = 0; virtual HRESULT __stdcall get_Rotation ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Rotation ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_PictureFormat ( /*[out,retval]*/ struct PictureFormat * * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ struct ShadowFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextEffect ( /*[out,retval]*/ struct TextEffectFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextFrame ( /*[out,retval]*/ struct TextFrame * * prop ) = 0; virtual HRESULT __stdcall get_ThreeD ( /*[out,retval]*/ struct ThreeDFormat * * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Top ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoShapeType * prop ) = 0; virtual HRESULT __stdcall get_VerticalFlip ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Vertices ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_Visible ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Visible ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ZOrderPosition ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Hyperlink ( /*[out,retval]*/ struct Hyperlink * * prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalPosition ( /*[out,retval]*/ enum WdRelativeHorizontalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalPosition ( /*[in]*/ enum WdRelativeHorizontalPosition prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalPosition ( /*[out,retval]*/ enum WdRelativeVerticalPosition * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalPosition ( /*[in]*/ enum WdRelativeVerticalPosition prop ) = 0; virtual HRESULT __stdcall get_LockAnchor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LockAnchor ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WrapFormat ( /*[out,retval]*/ struct WrapFormat * * prop ) = 0; virtual HRESULT __stdcall get_OLEFormat ( /*[out,retval]*/ struct OLEFormat * * prop ) = 0; virtual HRESULT __stdcall get_Anchor ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_LinkFormat ( /*[out,retval]*/ struct LinkFormat * * prop ) = 0; virtual HRESULT __stdcall Apply ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Duplicate ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall Flip ( /*[in]*/ enum Office::MsoFlipCmd FlipCmd ) = 0; virtual HRESULT __stdcall IncrementLeft ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementRotation ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall IncrementTop ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall PickUp ( ) = 0; virtual HRESULT __stdcall RerouteConnections ( ) = 0; virtual HRESULT __stdcall ScaleHeight ( /*[in]*/ float Factor, /*[in]*/ enum Office::MsoTriState RelativeToOriginalSize, /*[in]*/ enum Office::MsoScaleFrom Scale ) = 0; virtual HRESULT __stdcall ScaleWidth ( /*[in]*/ float Factor, /*[in]*/ enum Office::MsoTriState RelativeToOriginalSize, /*[in]*/ enum Office::MsoScaleFrom Scale ) = 0; virtual HRESULT __stdcall Select ( /*[in]*/ VARIANT * Replace = &vtMissing ) = 0; virtual HRESULT __stdcall SetShapesDefaultProperties ( ) = 0; virtual HRESULT __stdcall Ungroup ( /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall ZOrder ( /*[in]*/ enum Office::MsoZOrderCmd ZOrderCmd ) = 0; virtual HRESULT __stdcall ConvertToInlineShape ( /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall ConvertToFrame ( /*[out,retval]*/ struct Frame * * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall get_AlternativeText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_AlternativeText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Script ( /*[out,retval]*/ struct Office::Script * * prop ) = 0; virtual HRESULT __stdcall get_HasDiagram ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Diagram ( /*[out,retval]*/ struct Office::IMsoDiagram * * prop ) = 0; virtual HRESULT __stdcall get_HasDiagramNode ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_DiagramNode ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall get_Child ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_ParentGroup ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_CanvasItems ( /*[out,retval]*/ struct CanvasShapes * * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall CanvasCropLeft ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropTop ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropRight ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall CanvasCropBottom ( /*[in]*/ float Increment ) = 0; virtual HRESULT __stdcall put_RTF ( /*[in]*/ BSTR _arg1 ) = 0; virtual HRESULT __stdcall get_LayoutInCell ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_LayoutInCell ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_HasChart ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Chart ( /*[out,retval]*/ struct Chart * * prop ) = 0; virtual HRESULT __stdcall get_LeftRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_TopRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_TopRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_WidthRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_WidthRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HeightRelative ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_HeightRelative ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RelativeHorizontalSize ( /*[out,retval]*/ enum WdRelativeHorizontalSize * prop ) = 0; virtual HRESULT __stdcall put_RelativeHorizontalSize ( /*[in]*/ enum WdRelativeHorizontalSize prop ) = 0; virtual HRESULT __stdcall get_RelativeVerticalSize ( /*[out,retval]*/ enum WdRelativeVerticalSize * prop ) = 0; virtual HRESULT __stdcall put_RelativeVerticalSize ( /*[in]*/ enum WdRelativeVerticalSize prop ) = 0; virtual HRESULT __stdcall get_SoftEdge ( /*[out,retval]*/ struct SoftEdgeFormat * * prop ) = 0; virtual HRESULT __stdcall get_Glow ( /*[out,retval]*/ struct GlowFormat * * prop ) = 0; virtual HRESULT __stdcall get_Reflection ( /*[out,retval]*/ struct ReflectionFormat * * prop ) = 0; virtual HRESULT __stdcall get_TextFrame2 ( /*[out,retval]*/ struct Office::TextFrame2 * * prop ) = 0; virtual HRESULT __stdcall get_HasSmartArt ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_SmartArt ( /*[out,retval]*/ struct Office::SmartArt * * prop ) = 0; virtual HRESULT __stdcall get_ShapeStyle ( /*[out,retval]*/ enum Office::MsoShapeStyleIndex * prop ) = 0; virtual HRESULT __stdcall put_ShapeStyle ( /*[in]*/ enum Office::MsoShapeStyleIndex prop ) = 0; virtual HRESULT __stdcall get_BackgroundStyle ( /*[out,retval]*/ enum Office::MsoBackgroundStyleIndex * prop ) = 0; virtual HRESULT __stdcall put_BackgroundStyle ( /*[in]*/ enum Office::MsoBackgroundStyleIndex prop ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_AnchorID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_EditID ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("000209b2-0000-0000-c000-000000000046")) TextFrame : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_MarginBottom ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_MarginBottom ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_MarginLeft ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_MarginLeft ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_MarginRight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_MarginRight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_MarginTop ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_MarginTop ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Orientation ( /*[out,retval]*/ enum Office::MsoTextOrientation * prop ) = 0; virtual HRESULT __stdcall put_Orientation ( /*[in]*/ enum Office::MsoTextOrientation prop ) = 0; virtual HRESULT __stdcall get_TextRange ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_ContainingRange ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Next ( /*[out,retval]*/ struct TextFrame * * prop ) = 0; virtual HRESULT __stdcall put_Next ( /*[in]*/ struct TextFrame * prop ) = 0; virtual HRESULT __stdcall get_Previous ( /*[out,retval]*/ struct TextFrame * * prop ) = 0; virtual HRESULT __stdcall put_Previous ( /*[in]*/ struct TextFrame * prop ) = 0; virtual HRESULT __stdcall get_Overflowing ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_HasText ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall BreakForwardLink ( ) = 0; virtual HRESULT __stdcall ValidLinkTarget ( /*[in]*/ struct TextFrame * TargetTextFrame, /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_AutoSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AutoSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_WordWrap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_WordWrap ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_VerticalAnchor ( /*[out,retval]*/ enum Office::MsoVerticalAnchor * prop ) = 0; virtual HRESULT __stdcall put_VerticalAnchor ( /*[in]*/ enum Office::MsoVerticalAnchor prop ) = 0; virtual HRESULT __stdcall get_HorizontalAnchor ( /*[out,retval]*/ enum Office::MsoHorizontalAnchor * prop ) = 0; virtual HRESULT __stdcall put_HorizontalAnchor ( /*[in]*/ enum Office::MsoHorizontalAnchor prop ) = 0; virtual HRESULT __stdcall get_PathFormat ( /*[out,retval]*/ enum Office::MsoPathFormat * prop ) = 0; virtual HRESULT __stdcall put_PathFormat ( /*[in]*/ enum Office::MsoPathFormat prop ) = 0; virtual HRESULT __stdcall get_WarpFormat ( /*[out,retval]*/ enum Office::MsoWarpFormat * prop ) = 0; virtual HRESULT __stdcall put_WarpFormat ( /*[in]*/ enum Office::MsoWarpFormat prop ) = 0; virtual HRESULT __stdcall get_Column ( /*[out,retval]*/ struct Office::TextColumn2 * * prop ) = 0; virtual HRESULT __stdcall get_ThreeD ( /*[out,retval]*/ struct ThreeDFormat * * prop ) = 0; virtual HRESULT __stdcall get_NoTextRotation ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_NoTextRotation ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall DeleteText ( ) = 0; }; struct __declspec(uuid("000209a8-0000-0000-c000-000000000046")) InlineShape : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall put_Borders ( /*[in]*/ struct Borders * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_LinkFormat ( /*[out,retval]*/ struct LinkFormat * * prop ) = 0; virtual HRESULT __stdcall get_Field ( /*[out,retval]*/ struct Field * * prop ) = 0; virtual HRESULT __stdcall get_OLEFormat ( /*[out,retval]*/ struct OLEFormat * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdInlineShapeType * prop ) = 0; virtual HRESULT __stdcall get_Hyperlink ( /*[out,retval]*/ struct Hyperlink * * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Height ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_Width ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ScaleHeight ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_ScaleHeight ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_ScaleWidth ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_ScaleWidth ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_LockAspectRatio ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_LockAspectRatio ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Line ( /*[out,retval]*/ struct LineFormat * * prop ) = 0; virtual HRESULT __stdcall get_Fill ( /*[out,retval]*/ struct FillFormat * * prop ) = 0; virtual HRESULT __stdcall get_PictureFormat ( /*[out,retval]*/ struct PictureFormat * * prop ) = 0; virtual HRESULT __stdcall put_PictureFormat ( /*[in]*/ struct PictureFormat * prop ) = 0; virtual HRESULT __stdcall Activate ( ) = 0; virtual HRESULT __stdcall Reset ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall ConvertToShape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_HorizontalLineFormat ( /*[out,retval]*/ struct HorizontalLineFormat * * prop ) = 0; virtual HRESULT __stdcall get_Script ( /*[out,retval]*/ struct Office::Script * * prop ) = 0; virtual HRESULT __stdcall get_OWSAnchor ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_TextEffect ( /*[out,retval]*/ struct TextEffectFormat * * prop ) = 0; virtual HRESULT __stdcall put_TextEffect ( /*[in]*/ struct TextEffectFormat * prop ) = 0; virtual HRESULT __stdcall get_AlternativeText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_AlternativeText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_IsPictureBullet ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_GroupItems ( /*[out,retval]*/ struct GroupShapes * * prop ) = 0; virtual HRESULT __stdcall get_HasChart ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_Chart ( /*[out,retval]*/ struct Chart * * prop ) = 0; virtual HRESULT __stdcall get_SoftEdge ( /*[out,retval]*/ struct SoftEdgeFormat * * prop ) = 0; virtual HRESULT __stdcall get_Glow ( /*[out,retval]*/ struct GlowFormat * * prop ) = 0; virtual HRESULT __stdcall get_Reflection ( /*[out,retval]*/ struct ReflectionFormat * * prop ) = 0; virtual HRESULT __stdcall get_Shadow ( /*[out,retval]*/ struct ShadowFormat * * prop ) = 0; virtual HRESULT __stdcall get_HasSmartArt ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_SmartArt ( /*[out,retval]*/ struct Office::SmartArt * * prop ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_AnchorID ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_EditID ( /*[out,retval]*/ long * prop ) = 0; }; struct __declspec(uuid("000209a9-0000-0000-c000-000000000046")) InlineShapes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddPicture ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * LinkToFile, /*[in]*/ VARIANT * SaveWithDocument, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddOLEObject ( /*[in]*/ VARIANT * ClassType, /*[in]*/ VARIANT * FileName, /*[in]*/ VARIANT * LinkToFile, /*[in]*/ VARIANT * DisplayAsIcon, /*[in]*/ VARIANT * IconFileName, /*[in]*/ VARIANT * IconIndex, /*[in]*/ VARIANT * IconLabel, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddOLEControl ( /*[in]*/ VARIANT * ClassType, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall New ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddHorizontalLine ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddHorizontalLineStandard ( /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddPictureBullet ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddChart ( /*[in]*/ enum Office::XlChartType Type, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddSmartArt ( /*[in]*/ struct Office::SmartArtLayout * Layout, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddWebVideo ( /*[in]*/ BSTR EmbedCode, /*[in]*/ VARIANT * VideoWidth, /*[in]*/ VARIANT * VideoHeight, /*[in]*/ VARIANT * PosterFrameImage, /*[in]*/ VARIANT * Url, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct InlineShape * * prop ) = 0; virtual HRESULT __stdcall AddChart2 ( /*[in]*/ long Style, /*[in]*/ enum Office::XlChartType Type, /*[in]*/ VARIANT * Range, /*[in]*/ VARIANT * NewLayout, /*[out,retval]*/ struct InlineShape * * prop ) = 0; }; struct __declspec(uuid("000209c7-0000-0000-c000-000000000046")) ConnectorFormat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_BeginConnected ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_BeginConnectedShape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_BeginConnectionSite ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_EndConnected ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall get_EndConnectedShape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_EndConnectionSite ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoConnectorType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum Office::MsoConnectorType prop ) = 0; virtual HRESULT __stdcall BeginConnect ( /*[out]*/ struct Shape * * ConnectedShape, /*[in]*/ long ConnectionSite ) = 0; virtual HRESULT __stdcall BeginDisconnect ( ) = 0; virtual HRESULT __stdcall EndConnect ( /*[out]*/ struct Shape * * ConnectedShape, /*[in]*/ long ConnectionSite ) = 0; virtual HRESULT __stdcall EndDisconnect ( ) = 0; }; struct __declspec(uuid("000209c9-0000-0000-c000-000000000046")) FreeformBuilder : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall AddNodes ( /*[in]*/ enum Office::MsoSegmentType SegmentType, /*[in]*/ enum Office::MsoEditingType EditingType, /*[in]*/ float X1, /*[in]*/ float Y1, /*[in]*/ float X2, /*[in]*/ float Y2, /*[in]*/ float X3, /*[in]*/ float Y3 ) = 0; virtual HRESULT __stdcall ConvertToShape ( /*[in]*/ VARIANT * Anchor, /*[out,retval]*/ struct Shape * * prop ) = 0; }; struct __declspec(uuid("396f9073-f9fd-11d3-8ea0-0050049a1a01")) CanvasShapes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddCallout ( /*[in]*/ enum Office::MsoCalloutType Type, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddConnector ( /*[in]*/ enum Office::MsoConnectorType Type, /*[in]*/ float BeginX, /*[in]*/ float BeginY, /*[in]*/ float EndX, /*[in]*/ float EndY, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddCurve ( /*[in]*/ VARIANT * SafeArrayOfPoints, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddLabel ( /*[in]*/ enum Office::MsoTextOrientation Orientation, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddLine ( /*[in]*/ float BeginX, /*[in]*/ float BeginY, /*[in]*/ float EndX, /*[in]*/ float EndY, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddPicture ( /*[in]*/ BSTR FileName, /*[in]*/ VARIANT * LinkToFile, /*[in]*/ VARIANT * SaveWithDocument, /*[in]*/ VARIANT * Left, /*[in]*/ VARIANT * Top, /*[in]*/ VARIANT * Width, /*[in]*/ VARIANT * Height, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddPolyline ( /*[in]*/ VARIANT * SafeArrayOfPoints, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddShape ( /*[in]*/ long Type, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddTextEffect ( /*[in]*/ enum Office::MsoPresetTextEffect PresetTextEffect, /*[in]*/ BSTR Text, /*[in]*/ BSTR FontName, /*[in]*/ float FontSize, /*[in]*/ enum Office::MsoTriState FontBold, /*[in]*/ enum Office::MsoTriState FontItalic, /*[in]*/ float Left, /*[in]*/ float Top, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddTextbox ( /*[in]*/ enum Office::MsoTextOrientation Orientation, /*[in]*/ float Left, /*[in]*/ float Top, /*[in]*/ float Width, /*[in]*/ float Height, /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall BuildFreeform ( /*[in]*/ enum Office::MsoEditingType EditingType, /*[in]*/ float X1, /*[in]*/ float Y1, /*[out,retval]*/ struct FreeformBuilder * * prop ) = 0; virtual HRESULT __stdcall Range ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ShapeRange * * prop ) = 0; virtual HRESULT __stdcall SelectAll ( ) = 0; }; struct __declspec(uuid("000209e7-0000-0000-c000-000000000046")) HTMLDivision : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Borders ( /*[out,retval]*/ struct Borders * * prop ) = 0; virtual HRESULT __stdcall get_LeftIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_LeftIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_RightIndent ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_RightIndent ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceBefore ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceBefore ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_SpaceAfter ( /*[out,retval]*/ float * prop ) = 0; virtual HRESULT __stdcall put_SpaceAfter ( /*[in]*/ float prop ) = 0; virtual HRESULT __stdcall get_HTMLDivisions ( /*[out,retval]*/ struct HTMLDivisions * * prop ) = 0; virtual HRESULT __stdcall HTMLDivisionParent ( /*[in]*/ VARIANT * LevelsUp, /*[out,retval]*/ struct HTMLDivision * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("000209e8-0000-0000-c000-000000000046")) HTMLDivisions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct HTMLDivision * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct HTMLDivision * * prop ) = 0; }; struct __declspec(uuid("000209e9-0000-0000-c000-000000000046")) DiagramNode : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Children ( /*[out,retval]*/ struct DiagramNodeChildren * * prop ) = 0; virtual HRESULT __stdcall get_Shape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall get_Root ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall get_Diagram ( /*[out,retval]*/ struct Diagram * * prop ) = 0; virtual HRESULT __stdcall get_Layout ( /*[out,retval]*/ enum Office::MsoOrgChartLayoutType * prop ) = 0; virtual HRESULT __stdcall put_Layout ( /*[in]*/ enum Office::MsoOrgChartLayoutType prop ) = 0; virtual HRESULT __stdcall get_TextShape ( /*[out,retval]*/ struct Shape * * prop ) = 0; virtual HRESULT __stdcall AddNode ( /*[in]*/ enum Office::MsoRelativeNodePosition Pos, /*[in]*/ enum Office::MsoDiagramNodeType NodeType, /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall MoveNode ( /*[out]*/ struct DiagramNode * * TargetNode, /*[in]*/ enum Office::MsoRelativeNodePosition Pos ) = 0; virtual HRESULT __stdcall ReplaceNode ( /*[out]*/ struct DiagramNode * * TargetNode ) = 0; virtual HRESULT __stdcall SwapGrid ( /*[out]*/ struct DiagramNode * * TargetNode, /*[in]*/ enum Office::MsoRelativeNodePosition Pos ) = 0; virtual HRESULT __stdcall CloneNode ( /*[in]*/ VARIANT_BOOL copyChildren, /*[out]*/ struct DiagramNode * * TargetNode, /*[in]*/ enum Office::MsoRelativeNodePosition Pos, /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall TransferChildren ( /*[out]*/ struct DiagramNode * * ReceivingNode ) = 0; virtual HRESULT __stdcall NextNode ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall PrevNode ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; }; struct __declspec(uuid("000209ea-0000-0000-c000-000000000046")) DiagramNodeChildren : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_FirstChild ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall get_LastChild ( /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall AddNode ( /*[in]*/ VARIANT * Index, /*[in]*/ enum Office::MsoDiagramNodeType NodeType, /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall SelectAll ( ) = 0; }; struct __declspec(uuid("000209eb-0000-0000-c000-000000000046")) DiagramNodes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct DiagramNode * * prop ) = 0; virtual HRESULT __stdcall SelectAll ( ) = 0; }; struct __declspec(uuid("000209ec-0000-0000-c000-000000000046")) Diagram : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Nodes ( /*[out,retval]*/ struct DiagramNodes * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum Office::MsoDiagramType * prop ) = 0; virtual HRESULT __stdcall get_AutoLayout ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_AutoLayout ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_Reverse ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_Reverse ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall get_AutoFormat ( /*[out,retval]*/ enum Office::MsoTriState * prop ) = 0; virtual HRESULT __stdcall put_AutoFormat ( /*[in]*/ enum Office::MsoTriState prop ) = 0; virtual HRESULT __stdcall Convert ( /*[in]*/ enum Office::MsoDiagramType Type ) = 0; virtual HRESULT __stdcall FitText ( ) = 0; }; struct __declspec(uuid("000209ed-0000-0000-c000-000000000046")) SmartTag : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_XML ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_DownloadURL ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Properties ( /*[out,retval]*/ struct CustomProperties * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Select ( ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall get_SmartTagActions ( /*[out,retval]*/ struct SmartTagActions * * prop ) = 0; virtual HRESULT __stdcall get_XMLNode ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; }; struct __declspec(uuid("000209ee-0000-0000-c000-000000000046")) SmartTags : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct SmartTag * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ VARIANT * Range, /*[in]*/ VARIANT * Properties, /*[out,retval]*/ struct SmartTag * * prop ) = 0; virtual HRESULT __stdcall SmartTagsByType ( /*[in]*/ BSTR Name, /*[out,retval]*/ struct SmartTags * * prop ) = 0; }; struct __declspec(uuid("ae6ce2f5-b9d3-407d-85a8-0f10c63289a4")) Line : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_LineType ( /*[out,retval]*/ enum WdLineType * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Rectangles ( /*[out,retval]*/ struct Rectangles * * prop ) = 0; }; struct __declspec(uuid("e2e8a400-0615-427d-adcc-cad39ffebd42")) Lines : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Line * * prop ) = 0; }; struct __declspec(uuid("add4edf3-2f33-4734-9ce6-d476097c5ada")) Rectangle : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_RectangleType ( /*[out,retval]*/ enum WdRectangleType * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Lines ( /*[out,retval]*/ struct Lines * * prop ) = 0; }; struct __declspec(uuid("7d0f7985-68d9-4d93-91cb-8109280e76cc")) Rectangles : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Rectangle * * prop ) = 0; }; struct __declspec(uuid("352840a9-af7d-4ca4-87fc-21c68fdab3e4")) Page : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Left ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Top ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Width ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Height ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Rectangles ( /*[out,retval]*/ struct Rectangles * * prop ) = 0; virtual HRESULT __stdcall get_Breaks ( /*[out,retval]*/ struct Breaks * * prop ) = 0; virtual HRESULT __stdcall get_EnhMetaFileBits ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall SaveAsPNG ( /*[in]*/ BSTR FileName ) = 0; }; struct __declspec(uuid("91807402-6c6f-47cd-b8fa-c42fee8ee924")) Pages : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct Page * * prop ) = 0; }; struct __declspec(uuid("09760240-0b89-49f7-a79d-479f24723f56")) XMLNode : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_BaseName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Text ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Text ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_NamespaceURI ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_XML ( /*[in]*/ VARIANT_BOOL DataOnly, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_NextSibling ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_PreviousSibling ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_ParentNode ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_FirstChild ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_LastChild ( /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall get_OwnerDocument ( /*[out,retval]*/ struct _Document * * prop ) = 0; virtual HRESULT __stdcall get_NodeType ( /*[out,retval]*/ enum WdXMLNodeType * prop ) = 0; virtual HRESULT __stdcall get_ChildNodes ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_Attributes ( /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_NodeValue ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_NodeValue ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_HasChildNodes ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall SelectSingleNode ( /*[in]*/ BSTR XPath, /*[in]*/ BSTR PrefixMapping, /*[in]*/ VARIANT_BOOL FastSearchSkippingTextNodes, /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall SelectNodes ( /*[in]*/ BSTR XPath, /*[in]*/ BSTR PrefixMapping, /*[in]*/ VARIANT_BOOL FastSearchSkippingTextNodes, /*[out,retval]*/ struct XMLNodes * * prop ) = 0; virtual HRESULT __stdcall get_ChildNodeSuggestions ( /*[out,retval]*/ struct XMLChildNodeSuggestions * * prop ) = 0; virtual HRESULT __stdcall get_Level ( /*[out,retval]*/ enum WdXMLNodeLevel * prop ) = 0; virtual HRESULT __stdcall get_ValidationStatus ( /*[out,retval]*/ enum WdXMLValidationStatus * prop ) = 0; virtual HRESULT __stdcall get_SmartTag ( /*[out,retval]*/ struct SmartTag * * prop ) = 0; virtual HRESULT __stdcall get_ValidationErrorText ( /*[in]*/ VARIANT_BOOL Advanced, /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_PlaceholderText ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_PlaceholderText ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall RemoveChild ( /*[in]*/ struct XMLNode * ChildElement ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Validate ( ) = 0; virtual HRESULT __stdcall SetValidationError ( /*[in]*/ enum WdXMLValidationStatus Status, /*[in]*/ VARIANT * ErrorText, /*[in]*/ VARIANT_BOOL ClearedAutomatically ) = 0; virtual HRESULT __stdcall get_WordOpenXML ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("d36c1f42-7044-4b9e-9ca3-85919454db04")) XMLNodes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct XMLNode * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ BSTR Namespace, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct XMLNode * * prop ) = 0; }; struct __declspec(uuid("a87e00e9-3ac3-4b53-abe3-7379653d0e82")) XMLChildNodeSuggestion : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_BaseName ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_NamespaceURI ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_XMLSchemaReference ( /*[out,retval]*/ struct XMLSchemaReference * * prop ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct XMLNode * * prop ) = 0; }; struct __declspec(uuid("de63b5ac-ca4f-46fe-9184-a5719ab9ed5b")) XMLChildNodeSuggestions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct XMLChildNodeSuggestion * * prop ) = 0; }; struct __declspec(uuid("00020a01-0001-0000-c000-000000000046")) IApplicationEvents4 : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall Startup ( ) = 0; virtual HRESULT __stdcall Quit ( ) = 0; virtual HRESULT __stdcall DocumentChange ( ) = 0; virtual HRESULT __stdcall DocumentOpen ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall DocumentBeforeClose ( /*[in]*/ struct _Document * Doc, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforePrint ( /*[in]*/ struct _Document * Doc, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall DocumentBeforeSave ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * SaveAsUI, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall NewDocument ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall WindowActivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowDeactivate ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall WindowSelectionChange ( /*[in]*/ struct Selection * Sel ) = 0; virtual HRESULT __stdcall WindowBeforeRightClick ( /*[in]*/ struct Selection * Sel, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall WindowBeforeDoubleClick ( /*[in]*/ struct Selection * Sel, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall EPostagePropertyDialog ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall EPostageInsert ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeAfterMerge ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct _Document * DocResult ) = 0; virtual HRESULT __stdcall MailMergeAfterRecordMerge ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeBeforeMerge ( /*[in]*/ struct _Document * Doc, /*[in]*/ long StartRecord, /*[in]*/ long EndRecord, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall MailMergeBeforeRecordMerge ( /*[in]*/ struct _Document * Doc, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall MailMergeDataSourceLoad ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeDataSourceValidate ( /*[in]*/ struct _Document * Doc, /*[in]*/ VARIANT_BOOL * Handled ) = 0; virtual HRESULT __stdcall MailMergeWizardSendToCustom ( /*[in]*/ struct _Document * Doc ) = 0; virtual HRESULT __stdcall MailMergeWizardStateChange ( /*[in]*/ struct _Document * Doc, /*[in]*/ int * FromState, /*[in]*/ int * ToState, /*[in]*/ VARIANT_BOOL * Handled ) = 0; virtual HRESULT __stdcall WindowSize ( /*[in]*/ struct _Document * Doc, /*[in]*/ struct Window * Wn ) = 0; virtual HRESULT __stdcall XMLSelectionChange ( /*[in]*/ struct Selection * Sel, /*[in]*/ struct XMLNode * OldXMLNode, /*[in]*/ struct XMLNode * NewXMLNode, /*[in]*/ long * Reason ) = 0; virtual HRESULT __stdcall XMLValidationError ( /*[in]*/ struct XMLNode * XMLNode ) = 0; virtual HRESULT __stdcall DocumentSync ( /*[in]*/ struct _Document * Doc, /*[in]*/ enum Office::MsoSyncEventType SyncEventType ) = 0; virtual HRESULT __stdcall EPostageInsertEx ( /*[in]*/ struct _Document * Doc, /*[in]*/ int cpDeliveryAddrStart, /*[in]*/ int cpDeliveryAddrEnd, /*[in]*/ int cpReturnAddrStart, /*[in]*/ int cpReturnAddrEnd, /*[in]*/ int xaWidth, /*[in]*/ int yaHeight, /*[in]*/ BSTR bstrPrinterName, /*[in]*/ BSTR bstrPaperFeed, /*[in]*/ VARIANT_BOOL fPrint, /*[in,out]*/ VARIANT_BOOL * fCancel ) = 0; virtual HRESULT __stdcall MailMergeDataSourceValidate2 ( /*[in]*/ struct _Document * Doc, /*[in,out]*/ VARIANT_BOOL * Handled ) = 0; virtual HRESULT __stdcall ProtectedViewWindowOpen ( /*[in]*/ struct ProtectedViewWindow * PvWindow ) = 0; virtual HRESULT __stdcall ProtectedViewWindowBeforeEdit ( /*[in]*/ struct ProtectedViewWindow * PvWindow, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall ProtectedViewWindowBeforeClose ( /*[in]*/ struct ProtectedViewWindow * PvWindow, /*[in]*/ int CloseReason, /*[in,out]*/ VARIANT_BOOL * Cancel ) = 0; virtual HRESULT __stdcall ProtectedViewWindowSize ( /*[in]*/ struct ProtectedViewWindow * PvWindow ) = 0; virtual HRESULT __stdcall ProtectedViewWindowActivate ( /*[in]*/ struct ProtectedViewWindow * PvWindow ) = 0; virtual HRESULT __stdcall ProtectedViewWindowDeactivate ( /*[in]*/ struct ProtectedViewWindow * PvWindow ) = 0; }; struct __declspec(uuid("873e774b-926a-4cb1-878d-635a45187595")) OMaths : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall Linearize ( ) = 0; virtual HRESULT __stdcall BuildUp ( ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("e4442a83-f623-459c-8e95-8bfb44dcf23a")) OMath : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Functions ( /*[out,retval]*/ struct OMathFunctions * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdOMathType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdOMathType prop ) = 0; virtual HRESULT __stdcall get_ParentOMath ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_ParentFunction ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; virtual HRESULT __stdcall get_ParentRow ( /*[out,retval]*/ struct OMathMatRow * * prop ) = 0; virtual HRESULT __stdcall get_ParentCol ( /*[out,retval]*/ struct OMathMatCol * * prop ) = 0; virtual HRESULT __stdcall get_ParentArg ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_ArgIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_NestingLevel ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_ArgSize ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ArgSize ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_Breaks ( /*[out,retval]*/ struct OMathBreaks * * prop ) = 0; virtual HRESULT __stdcall get_Justification ( /*[out,retval]*/ enum WdOMathJc * prop ) = 0; virtual HRESULT __stdcall put_Justification ( /*[in]*/ enum WdOMathJc prop ) = 0; virtual HRESULT __stdcall get_AlignPoint ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_AlignPoint ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Linearize ( ) = 0; virtual HRESULT __stdcall BuildUp ( ) = 0; virtual HRESULT __stdcall Remove ( ) = 0; virtual HRESULT __stdcall ConvertToMathText ( ) = 0; virtual HRESULT __stdcall ConvertToNormalText ( ) = 0; virtual HRESULT __stdcall ConvertToLiteralText ( ) = 0; }; struct __declspec(uuid("8245795b-9aed-4943-a16d-e586ed8180d1")) OMathArgs : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeArg, /*[out,retval]*/ struct OMath * * prop ) = 0; }; struct __declspec(uuid("f258de05-c41b-4c33-a778-f0d3f98ceeb3")) OMathAcc : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Char ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_Char ( /*[in]*/ short prop ) = 0; }; struct __declspec(uuid("f08b45f1-8f23-4156-9d63-1820c0ed229a")) OMathBar : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_BarTop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_BarTop ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("842c37fe-c76f-4b2b-9b60-c408cb5e838e")) OMathBox : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_OpEmu ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_OpEmu ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NoBreak ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NoBreak ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Diff ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Diff ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("2503b6ee-0889-44df-b920-6d6f9659dea3")) OMathBorderBox : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_HideTop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideTop ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideBot ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideBot ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideLeft ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideLeft ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideRight ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideRight ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrikeH ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrikeH ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrikeV ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrikeV ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrikeBLTR ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrikeBLTR ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_StrikeTLBR ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_StrikeTLBR ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("c94688a6-a2a7-4133-a26d-726cd569d5f3")) OMathDelim : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMathArgs * * prop ) = 0; virtual HRESULT __stdcall get_BegChar ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_BegChar ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall get_SepChar ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_SepChar ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall get_EndChar ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_EndChar ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall get_Grow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Grow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Shape ( /*[out,retval]*/ enum WdOMathShapeType * prop ) = 0; virtual HRESULT __stdcall put_Shape ( /*[in]*/ enum WdOMathShapeType prop ) = 0; virtual HRESULT __stdcall get_NoLeftChar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NoLeftChar ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_NoRightChar ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_NoRightChar ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("1f998a61-71c6-44c2-a0f2-1d66169b47cb")) OMathEqArray : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMathArgs * * prop ) = 0; virtual HRESULT __stdcall get_MaxDist ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MaxDist ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ObjDist ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ObjDist ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Align ( /*[out,retval]*/ enum WdOMathVertAlignType * prop ) = 0; virtual HRESULT __stdcall put_Align ( /*[in]*/ enum WdOMathVertAlignType prop ) = 0; virtual HRESULT __stdcall get_RowSpacingRule ( /*[out,retval]*/ enum WdOMathSpacingRule * prop ) = 0; virtual HRESULT __stdcall put_RowSpacingRule ( /*[in]*/ enum WdOMathSpacingRule prop ) = 0; virtual HRESULT __stdcall get_RowSpacing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_RowSpacing ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("50209974-ba32-4a03-8fa6-bac56cc056fd")) OMathFrac : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Num ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Den ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdOMathFracType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdOMathFracType prop ) = 0; }; struct __declspec(uuid("0d951adf-10a6-4c9b-bcd9-0fb8cbad9a87")) OMathFunc : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_FName ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; }; struct __declspec(uuid("02b17cb4-7d55-4b34-b38b-10381433441f")) OMathGroupChar : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Char ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_Char ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall get_CharTop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_CharTop ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_AlignTop ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlignTop ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("5daa8bb6-054e-48f6-beac-eaad02be0cc7")) OMathMatRow : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Args ( /*[out,retval]*/ struct OMathArgs * * prop ) = 0; virtual HRESULT __stdcall get_RowIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("1b426348-607d-433c-9216-c5d2bf0ef31f")) OMathMatRows : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMathMatRow * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeRow, /*[out,retval]*/ struct OMathMatRow * * prop ) = 0; }; struct __declspec(uuid("cae36175-3818-4c60-bcbf-0645d51eb33b")) OMathMatCol : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Args ( /*[out,retval]*/ struct OMathArgs * * prop ) = 0; virtual HRESULT __stdcall get_ColIndex ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Align ( /*[out,retval]*/ enum WdOMathHorizAlignType * prop ) = 0; virtual HRESULT __stdcall put_Align ( /*[in]*/ enum WdOMathHorizAlignType prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; }; struct __declspec(uuid("efc71f9c-7f42-4cd4-a7a7-970d7a48cd27")) OMathMatCols : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMathMatCol * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT * BeforeCol, /*[out,retval]*/ struct OMathMatCol * * prop ) = 0; }; struct __declspec(uuid("3e061a7e-67ad-4eaa-bc1e-55057d5e596f")) OMathMat : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Rows ( /*[out,retval]*/ struct OMathMatRows * * prop ) = 0; virtual HRESULT __stdcall get_Cols ( /*[out,retval]*/ struct OMathMatCols * * prop ) = 0; virtual HRESULT __stdcall get_Cell ( /*[in]*/ long Row, /*[in]*/ long Col, /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Align ( /*[out,retval]*/ enum WdOMathVertAlignType * prop ) = 0; virtual HRESULT __stdcall put_Align ( /*[in]*/ enum WdOMathVertAlignType prop ) = 0; virtual HRESULT __stdcall get_PlcHoldHidden ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_PlcHoldHidden ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_RowSpacingRule ( /*[out,retval]*/ enum WdOMathSpacingRule * prop ) = 0; virtual HRESULT __stdcall put_RowSpacingRule ( /*[in]*/ enum WdOMathSpacingRule prop ) = 0; virtual HRESULT __stdcall get_RowSpacing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_RowSpacing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ColSpacing ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ColSpacing ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall get_ColGapRule ( /*[out,retval]*/ enum WdOMathSpacingRule * prop ) = 0; virtual HRESULT __stdcall put_ColGapRule ( /*[in]*/ enum WdOMathSpacingRule prop ) = 0; virtual HRESULT __stdcall get_ColGap ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_ColGap ( /*[in]*/ long prop ) = 0; }; struct __declspec(uuid("cebd4184-4e6d-4fc6-a42d-2142b1b76af5")) OMathNary : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Sub ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sup ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Char ( /*[out,retval]*/ short * prop ) = 0; virtual HRESULT __stdcall put_Char ( /*[in]*/ short prop ) = 0; virtual HRESULT __stdcall get_Grow ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Grow ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_SubSupLim ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_SubSupLim ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideSub ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideSub ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_HideSup ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideSup ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("db77d541-85c3-42e8-8649-afbd7cf87866")) OMathPhantom : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Show ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Show ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ZeroWid ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ZeroWid ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ZeroAsc ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ZeroAsc ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ZeroDesc ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_ZeroDesc ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Transp ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Transp ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_Smash ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Smash ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("67a7eec5-285d-4024-b071-bd6b33b88547")) OMathRad : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Deg ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_HideDeg ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_HideDeg ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("98dfbd12-96cb-4f07-90ea-749ff1d6b89d")) OMathScrSub : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sub ( /*[out,retval]*/ struct OMath * * prop ) = 0; }; struct __declspec(uuid("d0a95726-678a-4b9d-8103-1e2b86735ae7")) OMathScrSup : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sup ( /*[out,retval]*/ struct OMath * * prop ) = 0; }; struct __declspec(uuid("497142a4-16fd-42c6-bc58-15d89345fc21")) OMathFunctions : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct OMathFunction * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ struct Range * Range, /*[in]*/ enum WdOMathFunctionType Type, /*[in]*/ VARIANT * NumArgs, /*[in]*/ VARIANT * NumCols, /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("f1f37152-1db1-4901-ad9a-c740f99464b4")) OMathFunction : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdOMathFunctionType * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_Args ( /*[out,retval]*/ struct OMathArgs * * prop ) = 0; virtual HRESULT __stdcall get_Acc ( /*[out,retval]*/ struct OMathAcc * * prop ) = 0; virtual HRESULT __stdcall get_Bar ( /*[out,retval]*/ struct OMathBar * * prop ) = 0; virtual HRESULT __stdcall get_Box ( /*[out,retval]*/ struct OMathBox * * prop ) = 0; virtual HRESULT __stdcall get_BorderBox ( /*[out,retval]*/ struct OMathBorderBox * * prop ) = 0; virtual HRESULT __stdcall get_Delim ( /*[out,retval]*/ struct OMathDelim * * prop ) = 0; virtual HRESULT __stdcall get_EqArray ( /*[out,retval]*/ struct OMathEqArray * * prop ) = 0; virtual HRESULT __stdcall get_Frac ( /*[out,retval]*/ struct OMathFrac * * prop ) = 0; virtual HRESULT __stdcall get_Func ( /*[out,retval]*/ struct OMathFunc * * prop ) = 0; virtual HRESULT __stdcall get_GroupChar ( /*[out,retval]*/ struct OMathGroupChar * * prop ) = 0; virtual HRESULT __stdcall get_LimLow ( /*[out,retval]*/ struct OMathLimLow * * prop ) = 0; virtual HRESULT __stdcall get_LimUpp ( /*[out,retval]*/ struct OMathLimUpp * * prop ) = 0; virtual HRESULT __stdcall get_Mat ( /*[out,retval]*/ struct OMathMat * * prop ) = 0; virtual HRESULT __stdcall get_Nary ( /*[out,retval]*/ struct OMathNary * * prop ) = 0; virtual HRESULT __stdcall get_Phantom ( /*[out,retval]*/ struct OMathPhantom * * prop ) = 0; virtual HRESULT __stdcall get_ScrPre ( /*[out,retval]*/ struct OMathScrPre * * prop ) = 0; virtual HRESULT __stdcall get_Rad ( /*[out,retval]*/ struct OMathRad * * prop ) = 0; virtual HRESULT __stdcall get_ScrSub ( /*[out,retval]*/ struct OMathScrSub * * prop ) = 0; virtual HRESULT __stdcall get_ScrSubSup ( /*[out,retval]*/ struct OMathScrSubSup * * prop ) = 0; virtual HRESULT __stdcall get_ScrSup ( /*[out,retval]*/ struct OMathScrSup * * prop ) = 0; virtual HRESULT __stdcall get_OMath ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall Remove ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("74de9576-8e99-4e28-912b-cb30747c60ce")) OMathLimLow : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Lim ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall ToLimUpp ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("fc9086c6-0287-4997-b2e1-816c334a22f8")) OMathLimUpp : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Lim ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall ToLimLow ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("afaf0c0e-8603-40f6-8fd1-42726cac21e3")) OMathScrPre : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Sub ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sup ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall ToScrSubSup ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("dc489ad4-23c4-4f4b-990f-45a51c7c0c4f")) OMathScrSubSup : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_E ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sub ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_Sup ( /*[out,retval]*/ struct OMath * * prop ) = 0; virtual HRESULT __stdcall get_AlignScripts ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AlignScripts ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall RemoveSub ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; virtual HRESULT __stdcall RemoveSup ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; virtual HRESULT __stdcall ToScrPre ( /*[out,retval]*/ struct OMathFunction * * prop ) = 0; }; struct __declspec(uuid("804cd967-f83b-432d-9446-c61a45cfeff0")) ContentControls : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct ContentControl * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ enum WdContentControlType Type, /*[in]*/ VARIANT * Range, /*[out,retval]*/ struct ContentControl * * prop ) = 0; }; struct __declspec(uuid("ee95afe3-3026-4172-b078-0e79dab5cc3d")) ContentControl : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_LockContentControl ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LockContentControl ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_LockContents ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_LockContents ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_XMLMapping ( /*[out,retval]*/ struct XMLMapping * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdContentControlType * prop ) = 0; virtual HRESULT __stdcall put_Type ( /*[in]*/ enum WdContentControlType prop ) = 0; virtual HRESULT __stdcall Copy ( ) = 0; virtual HRESULT __stdcall Cut ( ) = 0; virtual HRESULT __stdcall Delete ( /*[in]*/ VARIANT_BOOL DeleteContents ) = 0; virtual HRESULT __stdcall get_DropdownListEntries ( /*[out,retval]*/ struct ContentControlListEntries * * prop ) = 0; virtual HRESULT __stdcall get_PlaceholderText ( /*[out,retval]*/ struct BuildingBlock * * prop ) = 0; virtual HRESULT __stdcall SetPlaceholderText ( /*[in]*/ struct BuildingBlock * BuildingBlock, /*[in]*/ struct Range * Range, /*[in]*/ BSTR Text ) = 0; virtual HRESULT __stdcall get_Title ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Title ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DateDisplayFormat ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_DateDisplayFormat ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_MultiLine ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_MultiLine ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ParentContentControl ( /*[out,retval]*/ struct ContentControl * * prop ) = 0; virtual HRESULT __stdcall get_Temporary ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Temporary ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_ShowingPlaceholderText ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_DateStorageFormat ( /*[out,retval]*/ enum WdContentControlDateStorageFormat * prop ) = 0; virtual HRESULT __stdcall put_DateStorageFormat ( /*[in]*/ enum WdContentControlDateStorageFormat prop ) = 0; virtual HRESULT __stdcall get_BuildingBlockType ( /*[out,retval]*/ enum WdBuildingBlockTypes * prop ) = 0; virtual HRESULT __stdcall put_BuildingBlockType ( /*[in]*/ enum WdBuildingBlockTypes prop ) = 0; virtual HRESULT __stdcall get_BuildingBlockCategory ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_BuildingBlockCategory ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_DateDisplayLocale ( /*[out,retval]*/ enum WdLanguageID * prop ) = 0; virtual HRESULT __stdcall put_DateDisplayLocale ( /*[in]*/ enum WdLanguageID prop ) = 0; virtual HRESULT __stdcall Ungroup ( ) = 0; virtual HRESULT __stdcall get_DefaultTextStyle ( /*[out,retval]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall put_DefaultTextStyle ( /*[in]*/ VARIANT * prop ) = 0; virtual HRESULT __stdcall get_DateCalendarType ( /*[out,retval]*/ enum WdCalendarType * prop ) = 0; virtual HRESULT __stdcall put_DateCalendarType ( /*[in]*/ enum WdCalendarType prop ) = 0; virtual HRESULT __stdcall get_Tag ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Tag ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Checked ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_Checked ( /*[in]*/ VARIANT_BOOL prop ) = 0; virtual HRESULT __stdcall SetCheckedSymbol ( /*[in]*/ long CharacterNumber, /*[in]*/ BSTR Font ) = 0; virtual HRESULT __stdcall SetUncheckedSymbol ( /*[in]*/ long CharacterNumber, /*[in]*/ BSTR Font ) = 0; virtual HRESULT __stdcall get_Color ( /*[out,retval]*/ enum WdColor * prop ) = 0; virtual HRESULT __stdcall put_Color ( /*[in]*/ enum WdColor prop ) = 0; virtual HRESULT __stdcall get_Appearance ( /*[out,retval]*/ enum WdContentControlAppearance * prop ) = 0; virtual HRESULT __stdcall put_Appearance ( /*[in]*/ enum WdContentControlAppearance prop ) = 0; virtual HRESULT __stdcall get_Level ( /*[out,retval]*/ enum WdContentControlLevel * prop ) = 0; virtual HRESULT __stdcall get_RepeatingSectionItems ( /*[out,retval]*/ struct RepeatingSectionItemColl * * prop ) = 0; virtual HRESULT __stdcall get_RepeatingSectionItemTitle ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_RepeatingSectionItemTitle ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_AllowInsertDeleteSection ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall put_AllowInsertDeleteSection ( /*[in]*/ VARIANT_BOOL prop ) = 0; }; struct __declspec(uuid("b5828b50-0e3d-448a-962d-a40702a5868d")) BuildingBlockTypes : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ enum WdBuildingBlockTypes Index, /*[out,retval]*/ struct BuildingBlockType * * prop ) = 0; }; struct __declspec(uuid("817f99fa-ccc4-4971-8e9d-1238f735aaff")) BuildingBlockType : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Categories ( /*[out,retval]*/ struct Categories * * prop ) = 0; }; struct __declspec(uuid("6e47678b-a879-4e56-8698-3b7cf169fad4")) Categories : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct Category * * prop ) = 0; }; struct __declspec(uuid("ecfbdb5e-acd2-4530-ad79-4560b7ff055c")) Category : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_BuildingBlocks ( /*[out,retval]*/ struct BuildingBlocks * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ struct BuildingBlockType * * prop ) = 0; }; struct __declspec(uuid("bfd3fc23-f763-4ff8-826e-1afbf598a4e7")) BuildingBlock : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Index ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Name ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ struct BuildingBlockType * * prop ) = 0; virtual HRESULT __stdcall get_Description ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Description ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Category ( /*[out,retval]*/ struct Category * * prop ) = 0; virtual HRESULT __stdcall get_Value ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall put_Value ( /*[in]*/ BSTR prop ) = 0; virtual HRESULT __stdcall get_InsertOptions ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall put_InsertOptions ( /*[in]*/ long prop ) = 0; virtual HRESULT __stdcall Delete ( ) = 0; virtual HRESULT __stdcall Insert ( /*[in]*/ struct Range * Where, /*[in]*/ VARIANT * RichText, /*[out,retval]*/ struct Range * * prop ) = 0; }; struct __declspec(uuid("c6d50987-25d7-408a-bff2-90bf86a24e93")) BuildingBlocks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct BuildingBlock * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Description, /*[in]*/ enum WdDocPartInsertOptions InsertOptions, /*[out,retval]*/ struct BuildingBlock * * prop ) = 0; }; struct __declspec(uuid("39709229-56a0-4e29-9112-b31dd067ebfd")) BuildingBlockEntries : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT * Index, /*[out,retval]*/ struct BuildingBlock * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ BSTR Name, /*[in]*/ enum WdBuildingBlockTypes Type, /*[in]*/ BSTR Category, /*[in]*/ struct Range * Range, /*[in]*/ VARIANT * Description, /*[in]*/ enum WdDocPartInsertOptions InsertOptions, /*[out,retval]*/ struct BuildingBlock * * prop ) = 0; }; struct __declspec(uuid("99755f80-fe96-4f7d-b636-b8e800e54f44")) CoAuthLock : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Type ( /*[out,retval]*/ enum WdLockType * prop ) = 0; virtual HRESULT __stdcall get_Owner ( /*[out,retval]*/ struct CoAuthor * * prop ) = 0; virtual HRESULT __stdcall get_Range ( /*[out,retval]*/ struct Range * * prop ) = 0; virtual HRESULT __stdcall get_HeaderFooter ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall Unlock ( ) = 0; }; struct __declspec(uuid("dff99ac2-cd2a-43ad-91b1-a2be40bc7146")) CoAuthLocks : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ long Index, /*[out,retval]*/ struct CoAuthLock * * prop ) = 0; virtual HRESULT __stdcall Add ( /*[in]*/ VARIANT Range, /*[in]*/ enum WdLockType Type, /*[out,retval]*/ struct CoAuthLock * * prop ) = 0; virtual HRESULT __stdcall RemoveEphemeralLocks ( ) = 0; }; struct __declspec(uuid("e59544d5-c299-46a0-84c1-c51ab38f9759")) CoAuthor : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_ID ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_Name ( /*[out,retval]*/ BSTR * prop ) = 0; virtual HRESULT __stdcall get_IsMe ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Locks ( /*[out,retval]*/ struct CoAuthLocks * * prop ) = 0; virtual HRESULT __stdcall get_EmailAddress ( /*[out,retval]*/ BSTR * prop ) = 0; }; struct __declspec(uuid("256b6aba-6a38-4d39-971c-91fda9922814")) CoAuthors : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Count ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get__NewEnum ( /*[out,retval]*/ IUnknown * * prop ) = 0; virtual HRESULT __stdcall Item ( /*[in]*/ VARIANT Index, /*[out,retval]*/ struct CoAuthor * * prop ) = 0; }; struct __declspec(uuid("65df9f31-b1e3-4651-87e8-51d55f302161")) CoAuthoring : IDispatch { // // Raw methods provided by interface // virtual HRESULT __stdcall get_Application ( /*[out,retval]*/ struct _Application * * prop ) = 0; virtual HRESULT __stdcall get_Creator ( /*[out,retval]*/ long * prop ) = 0; virtual HRESULT __stdcall get_Parent ( /*[out,retval]*/ IDispatch * * prop ) = 0; virtual HRESULT __stdcall get_Authors ( /*[out,retval]*/ struct CoAuthors * * prop ) = 0; virtual HRESULT __stdcall get_Me ( /*[out,retval]*/ struct CoAuthor * * prop ) = 0; virtual HRESULT __stdcall get_PendingUpdates ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_Locks ( /*[out,retval]*/ struct CoAuthLocks * * prop ) = 0; virtual HRESULT __stdcall get_Updates ( /*[out,retval]*/ struct CoAuthUpdates * * prop ) = 0; virtual HRESULT __stdcall get_Conflicts ( /*[out,retval]*/ struct Conflicts * * prop ) = 0; virtual HRESULT __stdcall get_CanShare ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; virtual HRESULT __stdcall get_CanMerge ( /*[out,retval]*/ VARIANT_BOOL * prop ) = 0; }; // // Named GUID constants initializations // extern "C" const GUID __declspec(selectany) LIBID_Word = {0x00020905,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID__OLEControl = {0x000209a4,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) DIID_ApplicationEvents = {0x000209f7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) CLSID_WordGlobal = // {0x000209f0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_Application = {0x000209ff,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FontNames = {0x0002096f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_RoutingSlip = {0x00020969,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Variable = {0x00020966,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Variables = {0x00020965,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_DropCap = {0x00020956,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TabStop = {0x00020954,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TabStops = {0x00020955,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FirstLetterException = {0x00020945,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FirstLetterExceptions = {0x00020946,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TwoInitialCapsException = {0x00020943,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TwoInitialCapsExceptions = {0x00020944,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TextRetrievalMode = {0x00020939,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_System = {0x00020935,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_OLEFormat = {0x00020933,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_LinkFormat = {0x00020931,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Browser = {0x0002092e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TextInput = {0x00020927,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CheckBox = {0x00020926,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListEntry = {0x00020923,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListEntries = {0x00020924,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_DropDown = {0x00020925,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeFieldName = {0x0002091b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeFieldNames = {0x0002091c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeDataField = {0x00020919,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeDataFields = {0x0002091a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CustomLabel = {0x00020915,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CustomLabels = {0x00020916,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Dialog = {0x000209b8,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Dialogs = {0x00020910,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_LineNumbering = {0x00020972,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TextColumn = {0x00020974,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TableOfAuthoritiesCategory = {0x00020977,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TablesOfAuthoritiesCategories = {0x00020976,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CaptionLabel = {0x00020979,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CaptionLabels = {0x00020978,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoCaption = {0x0002097b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoCaptions = {0x0002097a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_AddIn = // {0x0002097e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AddIns = {0x0002097f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Task = {0x00020982,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Tasks = {0x00020983,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_PageNumber = {0x00020987,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_PageNumbers = {0x00020986,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HeadingStyle = {0x0002098b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HeadingStyles = {0x0002098a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_KeyBinding = {0x00020998,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_KeyBindings = {0x00020996,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_KeysBoundTo = {0x00020997,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FileConverter = {0x00020999,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FileConverters = {0x0002099a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SynonymInfo = {0x0002099b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Zoom = {0x000209a6,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Zooms = {0x000209a7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SpellingSuggestion = {0x000209ab,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SpellingSuggestions = {0x000209aa,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Dictionary = {0x000209ad,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Language = {0x0002096d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Languages = {0x0002096e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Dictionaries = {0x000209ac,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HangulHanjaConversionDictionaries = {0x000209e0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ReadabilityStatistic = {0x000209af,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ReadabilityStatistics = {0x000209ae,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMessage = {0x000209ba,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Mailer = {0x000209bd,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_WrapFormat = {0x000209c3,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HangulAndAlphabetException = {0x000209d2,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HangulAndAlphabetExceptions = {0x000209d1,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Adjustments = {0x000209c4,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_CalloutFormat = // {0x000209c5,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_PictureFormat = // {0x000209cb,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ShapeNode = // {0x000209cd,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ShapeNodes = // {0x000209ce,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_TextEffectFormat = // {0x000209cf,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) DIID_DocumentEvents = {0x000209f6,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_Document = {0x00020906,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Documents = {0x0002096c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_RecentFile = {0x00020964,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_RecentFiles = {0x00020963,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailingLabel = {0x00020917,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Version = {0x000209b4,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Versions = {0x000209b3,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_Font = {0x000209f5,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_ParagraphFormat = {0x000209f4,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) DIID_OCXEvents = {0x000209f3,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_OLEControl = {0x000209f2,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) CLSID_LetterContent = {0x000209f1,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID__LetterContent = {0x000209a1,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_IApplicationEvents = {0x000209f7,0x0001,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) DIID_ApplicationEvents2 = {0x000209fe,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TextColumns = {0x00020973,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_PageSetup = {0x00020971,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Border = {0x0002093b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Borders = {0x0002093c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Shading = {0x0002093a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HorizontalLineFormat = {0x000209de,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Frameset = {0x000209e2,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_WordDefaultWebOptions = {0x000209e3,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_WordWebOptions = {0x000209e4,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_OtherCorrectionsException = {0x000209e1,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_OtherCorrectionsExceptions = {0x000209df,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_EmailSignatureEntry = {0x000209e6,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_CustomProperty = {0xb923fde0,0xf08c,0x11d3,{0x91,0xb0,0x00,0x10,0x5a,0x0a,0x19,0xfd}}; extern "C" const GUID __declspec(selectany) IID_CustomProperties = {0xb923fde1,0xf08c,0x11d3,{0x91,0xb0,0x00,0x10,0x5a,0x0a,0x19,0xfd}}; extern "C" const GUID __declspec(selectany) IID_MappedDataField = {0x5d311669,0xea51,0x11d3,{0x87,0xcc,0x00,0x10,0x5a,0xa3,0x1a,0x34}}; extern "C" const GUID __declspec(selectany) IID_ConditionalStyle = {0x1498f56d,0xed33,0x41f9,{0xb3,0x7b,0xef,0x30,0xe5,0x0b,0x08,0xac}}; extern "C" const GUID __declspec(selectany) IID_FootnoteOptions = {0xbea85a24,0xd7da,0x4f3d,{0xb5,0x8c,0xed,0x90,0xfb,0x01,0xd6,0x15}}; extern "C" const GUID __declspec(selectany) IID_EndnoteOptions = {0xbf043168,0xf4de,0x4e7c,{0xb2,0x06,0x74,0x1a,0x8b,0x3e,0xf7,0x1a}}; extern "C" const GUID __declspec(selectany) IID_Reviewer = {0x47cef4ae,0xdc32,0x4220,{0x8a,0xa5,0x19,0xcc,0xc0,0xe6,0x63,0x3a}}; extern "C" const GUID __declspec(selectany) IID_Reviewers = {0x12dcdc9a,0x5418,0x48a3,{0xbb,0xe6,0xeb,0x57,0xba,0xe2,0x75,0xe8}}; extern "C" const GUID __declspec(selectany) IID_TaskPane = {0xb9f1a4e2,0x0d0a,0x43b7,{0x84,0x95,0x13,0x9e,0x7a,0xcb,0xd8,0x40}}; extern "C" const GUID __declspec(selectany) DIID_ApplicationEvents3 = {0x00020a00,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_StyleSheet = {0x000209ef,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_StyleSheets = {0x07b7cc7e,0xe66c,0x11d3,{0x94,0x54,0x00,0x10,0x5a,0xa3,0x1a,0x08}}; extern "C" const GUID __declspec(selectany) IID_MappedDataFields = {0x799a6814,0xea41,0x11d3,{0x87,0xcc,0x00,0x10,0x5a,0xa3,0x1a,0x34}}; extern "C" const GUID __declspec(selectany) IID_MailMergeDataSource = {0x0002091d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TableStyle = {0xb7564e97,0x0519,0x4c68,{0xb4,0x00,0x38,0x03,0xe7,0xc6,0x32,0x42}}; extern "C" const GUID __declspec(selectany) IID_TaskPanes = {0xe6aaec05,0xe543,0x4085,{0xba,0x92,0x9b,0xf7,0xd2,0x47,0x4f,0x5c}}; extern "C" const GUID __declspec(selectany) IID_SmartTagRecognizer = {0x15ebe471,0x0182,0x4cce,{0x98,0xd0,0xb6,0x61,0x4d,0x1c,0x32,0xa1}}; extern "C" const GUID __declspec(selectany) IID_SmartTagRecognizers = {0xf2b60a10,0xded5,0x46fb,{0xa9,0x14,0x3c,0x6f,0x4e,0xbb,0x64,0x51}}; extern "C" const GUID __declspec(selectany) IID_XMLSchemaReference = {0xfe0971f0,0x5e60,0x4985,{0xbc,0xda,0x95,0xcb,0x0b,0x8e,0x03,0x08}}; extern "C" const GUID __declspec(selectany) IID_XMLSchemaReferences = {0x356b06ec,0x4908,0x42a4,{0x81,0xfc,0x4b,0x5a,0x51,0xf3,0x48,0x3b}}; extern "C" const GUID __declspec(selectany) IID_XSLTransform = {0xe3124493,0x7d6a,0x410f,{0x9a,0x48,0xcc,0x82,0x2c,0x03,0x3c,0xec}}; extern "C" const GUID __declspec(selectany) IID_XSLTransforms = {0xc774f5ea,0xa539,0x4284,{0xa1,0xbe,0x30,0xae,0xc0,0x52,0xd8,0x99}}; extern "C" const GUID __declspec(selectany) IID_XMLNamespace = {0xb140a023,0x4850,0x4da6,{0xbc,0x5f,0xcc,0x45,0x9c,0x45,0x07,0xbc}}; extern "C" const GUID __declspec(selectany) IID_XMLNamespaces = {0x656bbed7,0xe82d,0x4b0a,{0x8f,0x97,0xec,0x74,0x2b,0xa1,0x1f,0xfa}}; extern "C" const GUID __declspec(selectany) DIID_ApplicationEvents4 = {0x00020a01,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) DIID_DocumentEvents2 = {0x00020a02,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SmartTagAction = {0xdfb6aa6c,0x1068,0x420f,{0x96,0x9d,0x01,0x28,0x0f,0xcc,0x16,0x30}}; extern "C" const GUID __declspec(selectany) IID_SmartTagActions = {0xcde12cd8,0x767b,0x4757,{0x8a,0x31,0x13,0x02,0x9a,0x08,0x63,0x05}}; extern "C" const GUID __declspec(selectany) IID_SmartTagType = {0x5e9a888c,0xe5dc,0x4dcb,{0x83,0x08,0x3c,0x91,0xfb,0x61,0xe6,0xf4}}; extern "C" const GUID __declspec(selectany) IID_SmartTagTypes = {0xdb8e3072,0xe106,0x4453,{0x8e,0x7c,0x53,0x05,0x6f,0x1d,0x30,0xdc}}; extern "C" const GUID __declspec(selectany) IID_Source = {0x4a6ae865,0x199d,0x4ea3,{0x9f,0x6b,0x12,0x5b,0xd9,0xc4,0x0e,0xdf}}; extern "C" const GUID __declspec(selectany) IID_Sources = {0xfa02a26b,0x6550,0x45c5,{0xb6,0xf0,0x80,0xe7,0x57,0xcd,0x34,0x82}}; extern "C" const GUID __declspec(selectany) IID_Bibliography = {0x3834f60f,0xee8c,0x455d,{0xa4,0x41,0xd7,0x66,0x67,0x5d,0x6d,0x3b}}; extern "C" const GUID __declspec(selectany) IID_OMathAutoCorrectEntry = {0xd8779f01,0x4869,0x4403,{0xb3,0x34,0xd6,0x0c,0x5f,0x9c,0x91,0x75}}; extern "C" const GUID __declspec(selectany) IID_OMathAutoCorrectEntries = {0x18cd5ec8,0x8b7b,0x42c8,{0x99,0x2a,0x2a,0x40,0x74,0x68,0x64,0x2c}}; extern "C" const GUID __declspec(selectany) IID_OMathRecognizedFunction = {0x5c04bd93,0x2f3f,0x4668,{0x91,0x8d,0x97,0x38,0xec,0x90,0x10,0x39}}; extern "C" const GUID __declspec(selectany) IID_OMathRecognizedFunctions = {0x44fee887,0x6600,0x41ab,{0x95,0xa5,0xde,0x33,0xc6,0x05,0x11,0x6c}}; extern "C" const GUID __declspec(selectany) IID_OMathAutoCorrect = {0x6f9d1f68,0x06f7,0x49ef,{0x89,0x02,0x18,0x5e,0x54,0xeb,0x5e,0x87}}; extern "C" const GUID __declspec(selectany) IID_XMLMapping = {0x0c1fabe7,0xf737,0x406f,{0x9c,0xa3,0xb0,0x76,0x61,0xf9,0xd1,0xa2}}; extern "C" const GUID __declspec(selectany) IID_ContentControlListEntry = {0x0c6fa8ca,0xe65f,0x4fc7,{0xab,0x8f,0x20,0x72,0x9e,0xec,0xbb,0x14}}; extern "C" const GUID __declspec(selectany) IID_ContentControlListEntries = {0x54f46dc4,0xf6a6,0x48cc,{0xbd,0x66,0x46,0xc1,0xdd,0xea,0xdd,0x22}}; extern "C" const GUID __declspec(selectany) IID_Research = {0xe6aaec05,0xe543,0x4085,{0xba,0x92,0x9b,0xf7,0xd2,0x47,0x4f,0x51}}; //extern "C" const GUID __declspec(selectany) IID_SoftEdgeFormat = // {0xd040daf9,0x6ce4,0x4be8,{0x83,0x9d,0xf4,0x53,0x8a,0x43,0x01,0xcf}}; //extern "C" const GUID __declspec(selectany) IID_ReflectionFormat = // {0xf01943ff,0x1985,0x445e,{0x86,0x02,0x8f,0xb8,0xf3,0x9c,0xca,0x75}}; extern "C" const GUID __declspec(selectany) IID__ParagraphFormat = {0x00020953,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ColorFormat = // {0x000209c6,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_FillFormat = // {0x000209c8,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_LineFormat = // {0x000209ca,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ShadowFormat = // {0x000209cc,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ThreeDFormat = // {0x000209d0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_GlowFormat = // {0xf1b14f40,0x5c32,0x4c8c,{0xb5,0xb2,0xde,0x53,0x7b,0xb6,0xb8,0x9d}}; extern "C" const GUID __declspec(selectany) IID_ChartData = {0x4a304b59,0x31ff,0x42dd,{0xb4,0x36,0x7f,0xc9,0xc5,0xdb,0x75,0x59}}; extern "C" const GUID __declspec(selectany) IID_Corners = {0xae6d45e5,0x981e,0x4547,{0x87,0x52,0x67,0x4b,0xb5,0x54,0x20,0xa5}}; extern "C" const GUID __declspec(selectany) IID_ChartBorder = {0xab0d33a3,0xc9ea,0x485b,{0x94,0x43,0x4c,0x1b,0xb3,0x65,0x6c,0xea}}; extern "C" const GUID __declspec(selectany) IID_Interior = {0xb184502b,0x587a,0x4c6a,{0x8d,0xc4,0xec,0xe4,0x35,0x48,0x83,0xc6}}; //extern "C" const GUID __declspec(selectany) IID_ChartFont = // {0xcdb0ff41,0xe862,0x47bb,{0xae,0x77,0x3f,0xa7,0xb1,0xae,0x31,0x89}}; //extern "C" const GUID __declspec(selectany) IID_ChartColorFormat = // {0xdd8f80b8,0x9b80,0x4e89,{0x9b,0xec,0xf1,0x2d,0xf3,0x5e,0x43,0xb3}}; //extern "C" const GUID __declspec(selectany) IID_ChartFillFormat = // {0xf152d349,0x7d20,0x4c01,{0xa4,0x2b,0x2d,0x6d,0xe4,0xf3,0x89,0x1c}}; extern "C" const GUID __declspec(selectany) IID_ChartCharacters = {0xff06fef2,0xda89,0x41c0,{0xa0,0xa8,0x5c,0xd4,0x34,0xe2,0x10,0xad}}; extern "C" const GUID __declspec(selectany) IID_ChartFormat = {0xb66d3c1a,0x4541,0x4961,{0xb3,0x5b,0xa3,0x53,0xc0,0x3f,0x6a,0x99}}; extern "C" const GUID __declspec(selectany) IID_Walls = {0xa2e94180,0x7564,0x4d97,{0x80,0x6b,0xbb,0xc0,0xd0,0xa1,0x35,0x0c}}; extern "C" const GUID __declspec(selectany) IID_Floor = {0x7e64d2be,0x2818,0x48cb,{0x8f,0x8a,0xcc,0x7b,0x61,0xd9,0xe8,0x60}}; extern "C" const GUID __declspec(selectany) IID_ChartArea = {0xc75ad98a,0x74e9,0x49fe,{0x8b,0xf1,0x54,0x48,0x39,0xcc,0x08,0xa5}}; extern "C" const GUID __declspec(selectany) IID_SeriesLines = {0x5d7f6c15,0x36ce,0x44cc,{0x96,0x92,0x5a,0x1f,0x8b,0x8c,0x90,0x6d}}; extern "C" const GUID __declspec(selectany) IID_LeaderLines = {0x36162c62,0xb59a,0x4278,{0xaf,0x3d,0xf2,0xac,0x1e,0xb9,0x99,0xd9}}; extern "C" const GUID __declspec(selectany) IID_Gridlines = {0xfc9090af,0x0ddb,0x4ec1,{0x86,0xe8,0x87,0x51,0xf2,0x19,0x9f,0x2c}}; extern "C" const GUID __declspec(selectany) IID_UpBars = {0x86905ac9,0x33f3,0x4a88,{0x96,0xc8,0xb2,0x89,0xb0,0x39,0x0b,0xca}}; extern "C" const GUID __declspec(selectany) IID_DownBars = {0x84a6a663,0xaef4,0x4fcd,{0x83,0xfd,0x9b,0xb7,0x07,0xf1,0x57,0xca}}; extern "C" const GUID __declspec(selectany) IID_DataTable = {0xdce9f2c4,0x4c02,0x43ba,{0x84,0x0e,0xb4,0x27,0x65,0x50,0xef,0x79}}; extern "C" const GUID __declspec(selectany) IID_DropLines = {0x9f1df642,0x3cce,0x4d83,{0xa7,0x70,0xd2,0x63,0x4a,0x05,0xd2,0x78}}; extern "C" const GUID __declspec(selectany) IID_HiLoLines = {0x7a1bce11,0x5783,0x4c7d,{0xbd,0x02,0xf3,0xd8,0x4a,0xb4,0x0e,0x7f}}; extern "C" const GUID __declspec(selectany) IID_Legend = {0xb3a1e8c6,0xe1ce,0x4a46,{0x8d,0x12,0xe0,0x17,0x15,0x7b,0x03,0xd7}}; extern "C" const GUID __declspec(selectany) IID_LegendKey = {0xdf076fde,0x8781,0x4051,{0xa5,0xbc,0x99,0xf6,0xb7,0xdc,0x04,0xd4}}; //extern "C" const GUID __declspec(selectany) IID_LegendEntry = // {0xc4a02049,0x024c,0x4273,{0x89,0x34,0xe4,0x8c,0xc2,0x14,0x79,0xa9}}; //extern "C" const GUID __declspec(selectany) IID_LegendEntries = // {0xb6511068,0x70bf,0x4751,{0xa7,0x41,0x55,0xc1,0xd4,0x1a,0xd9,0x6f}}; extern "C" const GUID __declspec(selectany) IID_ErrorBars = {0x194f8476,0xb79d,0x4572,{0xa6,0x09,0x29,0x42,0x07,0xde,0x77,0xc1}}; extern "C" const GUID __declspec(selectany) IID_Series = {0x40810760,0x068a,0x4486,{0xbe,0xc9,0x8e,0xa5,0x8c,0x70,0x29,0xf5}}; //extern "C" const GUID __declspec(selectany) IID_SeriesCollection = // {0x8feb78f7,0x35c6,0x4871,{0x91,0x8c,0x19,0x3c,0x3c,0xdd,0x88,0x6d}}; extern "C" const GUID __declspec(selectany) IID_TickLabels = {0x935d59f5,0xe365,0x4f92,{0xb7,0xf5,0x1c,0x49,0x9a,0x63,0xec,0xa8}}; extern "C" const GUID __declspec(selectany) IID_ChartGroup = {0x86488fb4,0x9633,0x4c93,{0x80,0x57,0xfc,0x1f,0xa7,0xa8,0x47,0xae}}; //extern "C" const GUID __declspec(selectany) IID_ChartGroups = // {0xf8ddb497,0xca6c,0x4711,{0x9b,0xa4,0x27,0x18,0xfa,0x3b,0xb6,0xfe}}; extern "C" const GUID __declspec(selectany) IID_DataLabel = {0x1fd94df1,0x3569,0x4465,{0x94,0xff,0xe8,0xb2,0x2d,0x28,0xee,0xb0}}; //extern "C" const GUID __declspec(selectany) IID_Trendline = // {0x91c46192,0x3124,0x4346,{0xa8,0x15,0x10,0xb8,0x87,0x3f,0x5a,0x06}}; //extern "C" const GUID __declspec(selectany) IID_Trendlines = // {0x54b7061a,0xd56c,0x40e5,{0xb8,0x5b,0x58,0x14,0x64,0x46,0xc7,0x82}}; extern "C" const GUID __declspec(selectany) IID_DataLabels = {0xd8252c5e,0xeb9f,0x4d74,{0xaa,0x72,0xc1,0x78,0xb1,0x28,0xfa,0xc4}}; extern "C" const GUID __declspec(selectany) IID_PlotArea = {0x56afd330,0x440c,0x4f4c,{0xa3,0x9c,0xed,0x30,0x6d,0x08,0x4d,0x5f}}; extern "C" const GUID __declspec(selectany) IID_ChartTitle = {0xc1ad33e4,0xf088,0x40a9,{0x9d,0x2f,0xd9,0x40,0x17,0xd1,0x15,0xc4}}; extern "C" const GUID __declspec(selectany) IID_AxisTitle = {0x8b0e45db,0x3a7b,0x42ee,{0x9d,0x17,0xa9,0x2a,0xf6,0x9b,0x79,0xc1}}; extern "C" const GUID __declspec(selectany) IID_DisplayUnitLabel = {0xc04865a3,0x9f8a,0x486c,{0xbb,0x58,0xb4,0xc3,0xe6,0x56,0x31,0x36}}; extern "C" const GUID __declspec(selectany) IID_Axis = {0x7ebc66bd,0xf788,0x42c3,{0x91,0xf4,0xe8,0xc8,0x41,0xa6,0x90,0x05}}; //extern "C" const GUID __declspec(selectany) IID_Axes = // {0x354ab591,0xa217,0x48b4,{0x99,0xe4,0x14,0xf5,0x8f,0x15,0x66,0x7d}}; extern "C" const GUID __declspec(selectany) IID_UndoRecord = {0xe598e358,0x2852,0x42d4,{0x87,0x75,0x16,0x0b,0xd9,0x1b,0x72,0x44}}; extern "C" const GUID __declspec(selectany) IID_ProtectedViewWindow = {0xf743edd0,0x9b97,0x4b09,{0x89,0xcc,0x77,0xbe,0x19,0xb5,0x14,0x81}}; extern "C" const GUID __declspec(selectany) IID_ProtectedViewWindows = {0xfd0a74e8,0xc719,0x49f6,{0xba,0x1b,0xf6,0xd9,0x83,0x9d,0x1a,0xb9}}; extern "C" const GUID __declspec(selectany) IID__Font = {0x00020952,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Point = {0x8a342fa0,0x5831,0x4b5e,{0x82,0xe1,0x00,0x3d,0x0a,0x0c,0x63,0x5d}}; //extern "C" const GUID __declspec(selectany) IID_Points = // {0xc1a870a0,0x850e,0x4d38,{0x98,0xa7,0x74,0x1c,0xb8,0xc3,0xbc,0xa4}}; extern "C" const GUID __declspec(selectany) IID_Options = {0x000209b7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_FullSeriesCollection = // {0x4dacc469,0x630b,0x457e,{0x9c,0x8f,0x08,0x15,0x8d,0x57,0xfc,0x7c}}; extern "C" const GUID __declspec(selectany) IID_ChartCategory = {0x5a90588c,0xc066,0x4bd4,{0x8f,0xe5,0x72,0x24,0x54,0xa1,0x55,0x53}}; //extern "C" const GUID __declspec(selectany) IID_CategoryCollection = // {0x04124c2d,0x039d,0x4442,{0x9c,0x68,0x8f,0xa3,0x8d,0x11,0xdd,0xd6}}; extern "C" const GUID __declspec(selectany) IID_Broadcast = {0xb67de22c,0xbc01,0x4a73,{0xa9,0x9b,0x07,0x0d,0x1b,0x5a,0x79,0x5d}}; extern "C" const GUID __declspec(selectany) IID_Chart = {0x6ffa84bb,0xa350,0x4442,{0xbb,0x53,0xa4,0x36,0x53,0x45,0x9a,0x84}}; extern "C" const GUID __declspec(selectany) IID_RevisionsFilter = {0xd523c26b,0x7278,0x4fa9,{0xaa,0x0b,0x08,0x27,0xdc,0x8b,0x41,0xce}}; extern "C" const GUID __declspec(selectany) IID_View = {0x000209a5,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID__Application = {0x00020970,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID__WordGlobal = {0x000209b9,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID__Document = {0x0002096b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Template = {0x0002096a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Templates = {0x000209a2,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Bookmark = {0x00020968,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Bookmarks = {0x00020967,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_Window = // {0x00020962,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Windows = {0x00020961,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Pane = {0x00020960,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Panes = {0x0002095f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Range = {0x0002095e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Characters = {0x0002095d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Words = {0x0002095c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Sentences = {0x0002095b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Paragraph = {0x00020957,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Paragraphs = {0x00020958,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoCorrectEntry = {0x00020947,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoCorrectEntries = {0x00020948,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoCorrect = {0x00020949,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Footnote = {0x0002093f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Footnotes = {0x00020942,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Endnote = {0x0002093e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Endnotes = {0x00020941,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoTextEntry = {0x00020936,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_AutoTextEntries = {0x00020937,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Frame = {0x0002092a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Replacement = {0x000209b1,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Find = {0x000209b0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Frames = {0x0002092b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FormField = {0x00020928,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_FormFields = {0x00020929,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TableOfFigures = {0x00020921,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeField = {0x0002091e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMergeFields = {0x0002091f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_MailMerge = {0x00020920,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TableOfContents = {0x00020913,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TableOfAuthorities = {0x00020911,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Index = {0x0002097d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Subdocument = {0x00020989,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Subdocuments = {0x00020988,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_StoryRanges = {0x0002098c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListParagraphs = {0x00020991,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ProofreadingErrors = {0x000209bb,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_EmailSignatureEntries = {0x000209e5,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_EmailSignature = {0x000209dc,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Break = {0x79635bf1,0xbd1d,0x4b3f,{0xa5,0x20,0xc1,0x10,0x6f,0x1a,0xaa,0xd8}}; extern "C" const GUID __declspec(selectany) IID_Breaks = {0x16be9309,0xd708,0x4322,{0xbb,0x1a,0xb0,0x56,0xf5,0x8d,0x17,0xea}}; extern "C" const GUID __declspec(selectany) IID_Editor = {0xdd947d72,0xf33c,0x4198,{0x9b,0xdf,0xf8,0x61,0x81,0xd0,0x5e,0x41}}; extern "C" const GUID __declspec(selectany) IID_Editors = {0xaed7e08c,0x14f0,0x4f33,{0x92,0x1d,0x4c,0x53,0x53,0x13,0x7b,0xf6}}; extern "C" const GUID __declspec(selectany) IID_OMathBreak = {0x65e515d5,0xf50b,0x4951,{0x8f,0x38,0xfa,0x6a,0xc8,0x70,0x73,0x87}}; extern "C" const GUID __declspec(selectany) IID_OMathBreaks = {0xe2e0f3a7,0x204c,0x40c5,{0xba,0xa5,0x29,0x0f,0x37,0x4f,0xdf,0x5a}}; extern "C" const GUID __declspec(selectany) IID_CoAuthUpdate = {0x9e6b5ec5,0xe8e4,0x40af,{0x95,0x40,0x62,0x03,0xf7,0x1e,0x28,0x23}}; extern "C" const GUID __declspec(selectany) IID_CoAuthUpdates = {0x30225cfc,0x5a71,0x4fe6,{0xb5,0x27,0x90,0xa5,0x2c,0x54,0xae,0x77}}; extern "C" const GUID __declspec(selectany) IID_Conflict = {0x6215e4b1,0x545a,0x406e,{0x98,0x24,0x0a,0x5b,0x5a,0xc8,0xad,0x21}}; extern "C" const GUID __declspec(selectany) IID_Conflicts = {0xc2b83a65,0xb061,0x4469,{0x83,0xb6,0x88,0x77,0x43,0x7c,0xb8,0xa0}}; extern "C" const GUID __declspec(selectany) IID_RepeatingSectionItem = {0x4265ed97,0xa922,0x4ca4,{0x8c,0xd8,0x99,0x68,0x4c,0xca,0x9c,0xdb}}; extern "C" const GUID __declspec(selectany) IID_RepeatingSectionItemColl = {0x53faca33,0xdb22,0x473f,{0xbb,0x51,0x96,0xc2,0xc8,0x6c,0x93,0x04}}; extern "C" const GUID __declspec(selectany) IID_ListFormat = {0x000209c0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Sections = {0x0002095a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Section = {0x00020959,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Table = {0x00020951,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Tables = {0x0002094d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Row = {0x00020950,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Rows = {0x0002094c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Column = {0x0002094f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Cell = {0x0002094e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Columns = {0x0002094b,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Cells = {0x0002094a,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Comments = {0x00020940,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Comment = {0x0002093d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Fields = {0x00020930,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Field = {0x0002092f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TablesOfFigures = {0x00020922,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TablesOfContents = {0x00020914,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_TablesOfAuthorities = {0x00020912,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Indexes = {0x0002097c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Styles = {0x0002092d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Style = {0x0002092c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Envelope = {0x00020918,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Revision = {0x00020981,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Revisions = {0x00020980,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_EmailAuthor = {0x000209d7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_EmailOptions = {0x000209db,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Email = {0x000209dd,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Selection = {0x00020975,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_IApplicationEvents2 = {0x000209fe,0x0001,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_IApplicationEvents3 = {0x00020a00,0x0001,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HeadersFooters = {0x00020984,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HeaderFooter = {0x00020985,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListLevel = {0x0002098d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListLevels = {0x0002098e,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListTemplate = {0x0002098f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListTemplates = {0x00020990,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_List = {0x00020992,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Lists = {0x00020993,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListGallery = {0x00020994,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_ListGalleries = {0x00020995,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Hyperlinks = {0x0002099c,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Hyperlink = {0x0002099d,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_Shapes = // {0x0002099f,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ShapeRange = // {0x000209b5,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_GroupShapes = // {0x000209b6,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_Shape = // {0x000209a0,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_TextFrame = // {0x000209b2,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_InlineShape = {0x000209a8,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_InlineShapes = {0x000209a9,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_ConnectorFormat = // {0x000209c7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_FreeformBuilder = // {0x000209c9,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_CanvasShapes = // {0x396f9073,0xf9fd,0x11d3,{0x8e,0xa0,0x00,0x50,0x04,0x9a,0x1a,0x01}}; extern "C" const GUID __declspec(selectany) IID_HTMLDivision = {0x000209e7,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_HTMLDivisions = {0x000209e8,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_DiagramNode = // {0x000209e9,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_DiagramNodeChildren = // {0x000209ea,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; //extern "C" const GUID __declspec(selectany) IID_DiagramNodes = // {0x000209eb,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Diagram = {0x000209ec,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SmartTag = {0x000209ed,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_SmartTags = {0x000209ee,0x0000,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_Line = {0xae6ce2f5,0xb9d3,0x407d,{0x85,0xa8,0x0f,0x10,0xc6,0x32,0x89,0xa4}}; extern "C" const GUID __declspec(selectany) IID_Lines = {0xe2e8a400,0x0615,0x427d,{0xad,0xcc,0xca,0xd3,0x9f,0xfe,0xbd,0x42}}; extern "C" const GUID __declspec(selectany) IID_Rectangle = {0xadd4edf3,0x2f33,0x4734,{0x9c,0xe6,0xd4,0x76,0x09,0x7c,0x5a,0xda}}; extern "C" const GUID __declspec(selectany) IID_Rectangles = {0x7d0f7985,0x68d9,0x4d93,{0x91,0xcb,0x81,0x09,0x28,0x0e,0x76,0xcc}}; extern "C" const GUID __declspec(selectany) IID_Page = {0x352840a9,0xaf7d,0x4ca4,{0x87,0xfc,0x21,0xc6,0x8f,0xda,0xb3,0xe4}}; extern "C" const GUID __declspec(selectany) IID_Pages = {0x91807402,0x6c6f,0x47cd,{0xb8,0xfa,0xc4,0x2f,0xee,0x8e,0xe9,0x24}}; extern "C" const GUID __declspec(selectany) IID_XMLNode = {0x09760240,0x0b89,0x49f7,{0xa7,0x9d,0x47,0x9f,0x24,0x72,0x3f,0x56}}; extern "C" const GUID __declspec(selectany) IID_XMLNodes = {0xd36c1f42,0x7044,0x4b9e,{0x9c,0xa3,0x85,0x91,0x94,0x54,0xdb,0x04}}; extern "C" const GUID __declspec(selectany) IID_XMLChildNodeSuggestion = {0xa87e00e9,0x3ac3,0x4b53,{0xab,0xe3,0x73,0x79,0x65,0x3d,0x0e,0x82}}; extern "C" const GUID __declspec(selectany) IID_XMLChildNodeSuggestions = {0xde63b5ac,0xca4f,0x46fe,{0x91,0x84,0xa5,0x71,0x9a,0xb9,0xed,0x5b}}; extern "C" const GUID __declspec(selectany) IID_IApplicationEvents4 = {0x00020a01,0x0001,0x0000,{0xc0,0x00,0x00,0x00,0x00,0x00,0x00,0x46}}; extern "C" const GUID __declspec(selectany) IID_OMaths = {0x873e774b,0x926a,0x4cb1,{0x87,0x8d,0x63,0x5a,0x45,0x18,0x75,0x95}}; extern "C" const GUID __declspec(selectany) IID_OMath = {0xe4442a83,0xf623,0x459c,{0x8e,0x95,0x8b,0xfb,0x44,0xdc,0xf2,0x3a}}; extern "C" const GUID __declspec(selectany) IID_OMathArgs = {0x8245795b,0x9aed,0x4943,{0xa1,0x6d,0xe5,0x86,0xed,0x81,0x80,0xd1}}; extern "C" const GUID __declspec(selectany) IID_OMathAcc = {0xf258de05,0xc41b,0x4c33,{0xa7,0x78,0xf0,0xd3,0xf9,0x8c,0xee,0xb3}}; extern "C" const GUID __declspec(selectany) IID_OMathBar = {0xf08b45f1,0x8f23,0x4156,{0x9d,0x63,0x18,0x20,0xc0,0xed,0x22,0x9a}}; extern "C" const GUID __declspec(selectany) IID_OMathBox = {0x842c37fe,0xc76f,0x4b2b,{0x9b,0x60,0xc4,0x08,0xcb,0x5e,0x83,0x8e}}; extern "C" const GUID __declspec(selectany) IID_OMathBorderBox = {0x2503b6ee,0x0889,0x44df,{0xb9,0x20,0x6d,0x6f,0x96,0x59,0xde,0xa3}}; extern "C" const GUID __declspec(selectany) IID_OMathDelim = {0xc94688a6,0xa2a7,0x4133,{0xa2,0x6d,0x72,0x6c,0xd5,0x69,0xd5,0xf3}}; extern "C" const GUID __declspec(selectany) IID_OMathEqArray = {0x1f998a61,0x71c6,0x44c2,{0xa0,0xf2,0x1d,0x66,0x16,0x9b,0x47,0xcb}}; extern "C" const GUID __declspec(selectany) IID_OMathFrac = {0x50209974,0xba32,0x4a03,{0x8f,0xa6,0xba,0xc5,0x6c,0xc0,0x56,0xfd}}; extern "C" const GUID __declspec(selectany) IID_OMathFunc = {0x0d951adf,0x10a6,0x4c9b,{0xbc,0xd9,0x0f,0xb8,0xcb,0xad,0x9a,0x87}}; extern "C" const GUID __declspec(selectany) IID_OMathGroupChar = {0x02b17cb4,0x7d55,0x4b34,{0xb3,0x8b,0x10,0x38,0x14,0x33,0x44,0x1f}}; extern "C" const GUID __declspec(selectany) IID_OMathMatRow = {0x5daa8bb6,0x054e,0x48f6,{0xbe,0xac,0xea,0xad,0x02,0xbe,0x0c,0xc7}}; extern "C" const GUID __declspec(selectany) IID_OMathMatRows = {0x1b426348,0x607d,0x433c,{0x92,0x16,0xc5,0xd2,0xbf,0x0e,0xf3,0x1f}}; extern "C" const GUID __declspec(selectany) IID_OMathMatCol = {0xcae36175,0x3818,0x4c60,{0xbc,0xbf,0x06,0x45,0xd5,0x1e,0xb3,0x3b}}; extern "C" const GUID __declspec(selectany) IID_OMathMatCols = {0xefc71f9c,0x7f42,0x4cd4,{0xa7,0xa7,0x97,0x0d,0x7a,0x48,0xcd,0x27}}; extern "C" const GUID __declspec(selectany) IID_OMathMat = {0x3e061a7e,0x67ad,0x4eaa,{0xbc,0x1e,0x55,0x05,0x7d,0x5e,0x59,0x6f}}; extern "C" const GUID __declspec(selectany) IID_OMathNary = {0xcebd4184,0x4e6d,0x4fc6,{0xa4,0x2d,0x21,0x42,0xb1,0xb7,0x6a,0xf5}}; extern "C" const GUID __declspec(selectany) IID_OMathPhantom = {0xdb77d541,0x85c3,0x42e8,{0x86,0x49,0xaf,0xbd,0x7c,0xf8,0x78,0x66}}; extern "C" const GUID __declspec(selectany) IID_OMathRad = {0x67a7eec5,0x285d,0x4024,{0xb0,0x71,0xbd,0x6b,0x33,0xb8,0x85,0x47}}; extern "C" const GUID __declspec(selectany) IID_OMathScrSub = {0x98dfbd12,0x96cb,0x4f07,{0x90,0xea,0x74,0x9f,0xf1,0xd6,0xb8,0x9d}}; extern "C" const GUID __declspec(selectany) IID_OMathScrSup = {0xd0a95726,0x678a,0x4b9d,{0x81,0x03,0x1e,0x2b,0x86,0x73,0x5a,0xe7}}; extern "C" const GUID __declspec(selectany) IID_OMathFunctions = {0x497142a4,0x16fd,0x42c6,{0xbc,0x58,0x15,0xd8,0x93,0x45,0xfc,0x21}}; extern "C" const GUID __declspec(selectany) IID_OMathFunction = {0xf1f37152,0x1db1,0x4901,{0xad,0x9a,0xc7,0x40,0xf9,0x94,0x64,0xb4}}; extern "C" const GUID __declspec(selectany) IID_OMathLimLow = {0x74de9576,0x8e99,0x4e28,{0x91,0x2b,0xcb,0x30,0x74,0x7c,0x60,0xce}}; extern "C" const GUID __declspec(selectany) IID_OMathLimUpp = {0xfc9086c6,0x0287,0x4997,{0xb2,0xe1,0x81,0x6c,0x33,0x4a,0x22,0xf8}}; extern "C" const GUID __declspec(selectany) IID_OMathScrPre = {0xafaf0c0e,0x8603,0x40f6,{0x8f,0xd1,0x42,0x72,0x6c,0xac,0x21,0xe3}}; extern "C" const GUID __declspec(selectany) IID_OMathScrSubSup = {0xdc489ad4,0x23c4,0x4f4b,{0x99,0x0f,0x45,0xa5,0x1c,0x7c,0x0c,0x4f}}; extern "C" const GUID __declspec(selectany) IID_ContentControls = {0x804cd967,0xf83b,0x432d,{0x94,0x46,0xc6,0x1a,0x45,0xcf,0xef,0xf0}}; extern "C" const GUID __declspec(selectany) IID_ContentControl = {0xee95afe3,0x3026,0x4172,{0xb0,0x78,0x0e,0x79,0xda,0xb5,0xcc,0x3d}}; extern "C" const GUID __declspec(selectany) IID_BuildingBlockTypes = {0xb5828b50,0x0e3d,0x448a,{0x96,0x2d,0xa4,0x07,0x02,0xa5,0x86,0x8d}}; extern "C" const GUID __declspec(selectany) IID_BuildingBlockType = {0x817f99fa,0xccc4,0x4971,{0x8e,0x9d,0x12,0x38,0xf7,0x35,0xaa,0xff}}; extern "C" const GUID __declspec(selectany) IID_Categories = {0x6e47678b,0xa879,0x4e56,{0x86,0x98,0x3b,0x7c,0xf1,0x69,0xfa,0xd4}}; extern "C" const GUID __declspec(selectany) IID_Category = {0xecfbdb5e,0xacd2,0x4530,{0xad,0x79,0x45,0x60,0xb7,0xff,0x05,0x5c}}; extern "C" const GUID __declspec(selectany) IID_BuildingBlock = {0xbfd3fc23,0xf763,0x4ff8,{0x82,0x6e,0x1a,0xfb,0xf5,0x98,0xa4,0xe7}}; extern "C" const GUID __declspec(selectany) IID_BuildingBlocks = {0xc6d50987,0x25d7,0x408a,{0xbf,0xf2,0x90,0xbf,0x86,0xa2,0x4e,0x93}}; extern "C" const GUID __declspec(selectany) IID_BuildingBlockEntries = {0x39709229,0x56a0,0x4e29,{0x91,0x12,0xb3,0x1d,0xd0,0x67,0xeb,0xfd}}; extern "C" const GUID __declspec(selectany) IID_CoAuthLock = {0x99755f80,0xfe96,0x4f7d,{0xb6,0x36,0xb8,0xe8,0x00,0xe5,0x4f,0x44}}; extern "C" const GUID __declspec(selectany) IID_CoAuthLocks = {0xdff99ac2,0xcd2a,0x43ad,{0x91,0xb1,0xa2,0xbe,0x40,0xbc,0x71,0x46}}; extern "C" const GUID __declspec(selectany) IID_CoAuthor = {0xe59544d5,0xc299,0x46a0,{0x84,0xc1,0xc5,0x1a,0xb3,0x8f,0x97,0x59}}; extern "C" const GUID __declspec(selectany) IID_CoAuthors = {0x256b6aba,0x6a38,0x4d39,{0x97,0x1c,0x91,0xfd,0xa9,0x92,0x28,0x14}}; extern "C" const GUID __declspec(selectany) IID_CoAuthoring = {0x65df9f31,0xb1e3,0x4651,{0x87,0xe8,0x51,0xd5,0x5f,0x30,0x21,0x61}}; } // namespace Word #pragma pack(pop)
[ "sunhuizlz@yeah.net" ]
sunhuizlz@yeah.net
55222ae1e2468360aca54ecee7d30784d720d806
08b8cf38e1936e8cec27f84af0d3727321cec9c4
/data/crawl/wget/new_hunk_1000.cpp
aa82e9ca815ce9868e8f8cafdf9990264f484030
[]
no_license
ccdxc/logSurvey
eaf28e9c2d6307140b17986d5c05106d1fd8e943
6b80226e1667c1e0760ab39160893ee19b0e9fb1
refs/heads/master
2022-01-07T21:31:55.446839
2018-04-21T14:12:43
2018-04-21T14:12:43
null
0
0
null
null
null
null
UTF-8
C++
false
false
234
cpp
u = url_parse (url, &up_error_code); if (!u) { char *error = url_error (url, up_error_code); logprintf (LOG_NOTQUIET, "%s: %s.\n", url, error); xfree (url); xfree (error); return URLERROR; }
[ "993273596@qq.com" ]
993273596@qq.com
d45c3f8447d532b725fd3f8717319f13f5f34f9b
fb31c91564d4ca22d667280bd71d2dfcb961e3cd
/overlay/imgui/imgui_key.hpp
db612137af5d695c6e0bb3b843c38abccb8829f1
[ "MIT" ]
permissive
epixelse/dx-overlay
cfe277f151b4fc664dcaacaf293d6770b67c1e17
6bd99206609826280cc704b490cf4082246d7746
refs/heads/main
2023-04-15T15:02:32.627199
2021-04-24T08:38:13
2021-04-24T08:38:13
null
0
0
null
null
null
null
UTF-8
C++
false
false
152
hpp
#pragma once #include <vector> #include <string> namespace ImGui { bool KeyBox( const char* label, int* code, const ImVec2& size = { 0.f, 0.f } ); }
[ "bloothering@rambler.ru" ]
bloothering@rambler.ru
7b61525aeaeb163c4da3424ae3f20c6f8209daa5
e572189d60a70df27b95fc84b63cc24048b90d09
/bjoj/9577.cpp
c299db3352cbcea724749c2a59fae7a858bf8d74
[]
no_license
namhong2001/Algo
00f70a0f6132ddf7a024aa3fc98ec999fef6d825
a58f0cb482b43c6221f0a2dd926dde36858ab37e
refs/heads/master
2020-05-22T12:29:30.010321
2020-05-17T06:16:14
2020-05-17T06:16:14
186,338,640
0
0
null
null
null
null
UTF-8
C++
false
false
1,193
cpp
#include <iostream> #include <vector> #include <algorithm> using namespace std; vector<int> amatch, bmatch; vector<vector<int>> adj; bool dfs(int here, vector<bool> &visited) { visited[here] = true; for (int there : adj[here]) { if (bmatch[there] == -1) { amatch[here] = there; bmatch[there] = here; return true; } } for (int there : adj[here]) { int p = bmatch[there]; if (visited[p]) continue; if (dfs(p, visited)) { amatch[here] = there; bmatch[there] = here; return true; } } return false; } int bimatch(int total) { int cnt = 0; amatch.assign(101, -1); bmatch.assign(101, -1); for (int i=0; i<100; ++i) { vector<bool> visited(100, false); cnt += dfs(i, visited); if (cnt == total) return i+1; } return -1; } int main() { int T; cin >> T; while (T--) { adj.clear(); adj.resize(100); int n, m; cin >> n >> m; for (int i=0; i<m; ++i) { int a, b, c; cin >> a >> b >> c; vector<int> parts; for (int i=0; i<c; ++i) { int p; cin >> p; parts.push_back(p); } for (int t=a; t<b; ++t) { for (int p : parts) { adj[t].push_back(p); } } } cout << bimatch(n) << endl; } return 0; }
[ "namhong2001@gmail.com" ]
namhong2001@gmail.com
15cd486e19d58a5c85ebf5ec03e80320cffe1a64
9bceaecefe513f115dbb7ab93ff22006cdf5c406
/Code/UI/AbstractSubmenu.hpp
5c8883fd6ac32118b3d2d3519fb24c315b814a3e
[]
no_license
charleywright/CheeseMenu
095c0484fb959b20ee6138d51b9198e72b250388
b1f20399de4053156c1cf2ed8976bd8bfca38251
refs/heads/master
2023-08-06T20:03:01.716663
2021-10-04T17:19:45
2021-10-04T17:19:45
396,140,019
2
0
null
null
null
null
UTF-8
C++
false
false
1,130
hpp
#pragma once #include "../Common.hpp" #include "AbstractOption.hpp" namespace Cheese::UserInterface { class AbstractSubmenu { public: virtual ~AbstractSubmenu() noexcept = default; virtual const char* GetName() = 0; virtual std::uint32_t GetId() = 0; virtual void Execute() = 0; virtual void Reset() = 0; virtual AbstractOption* GetOption(std::size_t i) = 0; virtual std::size_t GetNumOptions() = 0; virtual std::size_t GetSelectedOption() = 0; virtual void SetSelectedOption(std::size_t) = 0; void ScrollForward() { if (GetSelectedOption() < GetNumOptions() - 1) SetSelectedOption(GetSelectedOption() + 1); else SetSelectedOption(0); } void ScrollBackward() { if (GetSelectedOption() > 0) SetSelectedOption(GetSelectedOption() - 1); else SetSelectedOption(GetNumOptions() - 1); } protected: explicit AbstractSubmenu() = default; AbstractSubmenu(AbstractSubmenu const&) = default; AbstractSubmenu& operator=(AbstractSubmenu const&) = default; AbstractSubmenu(AbstractSubmenu&&) = default; AbstractSubmenu& operator=(AbstractSubmenu&&) = default; }; }
[ "charleywright06@gmail.com" ]
charleywright06@gmail.com
f5c5773dc66254780fb43bcc95832da16e293364
301c8d37a462151078c9396bc9949597866090a2
/main.cpp
f58be688cf08dc4f8a8d34c00b65842efb4ddc9e
[]
no_license
matfd/classWarriorText
6d2714473529b2e9f269b6bd13607c85719281a5
0a2668c1e53922b24b6f048bd6b89fb72e661e78
refs/heads/master
2023-02-02T04:48:36.694439
2020-12-18T19:51:54
2020-12-18T19:51:54
322,690,907
0
0
null
null
null
null
WINDOWS-1251
C++
false
false
1,060
cpp
#include "Warrior.h" #include <Windows.h> #include <iostream> using namespace std; int main() { Warrior knight("Knight", 1000, 300, 1, 100); Warrior paladin("Paladin", 800, 200, 1.5, 300); while (knight.getHP() >= 0 && paladin.getHP() >= 0) { //рыцарь наносит удар паладину cout << "Knight attack Paladin :" << endl; float damage = knight.getDamage(); float armor = paladin.getArmor(); float part = armor / 1000; float pdamage = damage * (1 - part); float hp = paladin.getHP(); hp = hp - pdamage; paladin.setHP(hp); paladin.showStatus(); Sleep(1000); //паладин наносит удар рыцарю cout << "Paladin attack Knight :" << endl; damage = paladin.getDamage(); armor = knight.getArmor(); part = armor / 1000; pdamage = damage * (1 - part); hp = knight.getHP(); hp = hp - pdamage; knight.setHP(hp); knight.showStatus(); Sleep(1000); } if (paladin.getHP() > 0) cout << "Paladin wins\n"; else if (knight.getHP() > 0) cout << "Knight wins\n"; else cout << "Draw\n"; }
[ "S2a0s0h5a01122005@gmail.com" ]
S2a0s0h5a01122005@gmail.com
72c737e78e6fb74fd88d098a9955bcd23d3f4c4d
4f3f2805f7bb6e09a5aff4c8a30c627dd6fa8ad7
/tests/runtests.cpp
6b677aec2b4722d9d53801c3151a0c03d5e15dd0
[]
no_license
Phlana/O2-Pm-F2-
12db04c87d3092efd2321cccc03061fcfe133b68
59d4012795e2f957bd95f9fbab383494d055e619
refs/heads/master
2020-03-17T22:21:22.487410
2018-07-25T17:03:07
2018-07-25T17:03:07
134,000,099
0
0
null
null
null
null
UTF-8
C++
false
false
1,098
cpp
#include "openshop.h" #include "create.h" #include <cmath> #include <iostream> #include <stdlib.h> #include <string> #include <vector> using namespace std; float standard_deviation(vector<float>& data, float avg) { float s_d = 0; for (int i = 0; i < data.size(); i++) s_d += pow(data[i] - avg, 2); return sqrt(s_d/data.size()); } int main () { srand(time(NULL)); int jobs, machines = 20, range, num_runs = 100; cin >> jobs, range; float avg_times[machines][2]; for (int m = 0; m < machines; m++) { float ratio = 0; vector<float> values; for (int run = 0; run < num_runs; run++) { create(jobs*10, m+1, pow(2, range)); Input a; float value = a.run(); values.push_back(value); ratio += value; } ratio /= num_runs; // average ratio of C_max to LB avg_times[m][0] = ratio; // standard deviation avg_times[m][1] = standard_deviation(values, ratio); } ofstream outfile("job, range" + to_string(jobs) + " " + to_string(range)); for (int i = 0; i < machines; i++) outfile << i << " " << avg_times[i][0] << " " << avg_times[i][1] << endl; return 0; }
[ "joshua.chang422@gmail.com" ]
joshua.chang422@gmail.com
023da92272925d8c4b407a3f77887f67a714747a
f8373d35bf4e105aa18eb5efdcee043ae8df5068
/ProjetsCPP/GeostationPerso/GeoStation_Projet/tableaupanoramicwidget.cpp
fe3b493ec1c85dc864ceb6563741406984ba90f5
[]
no_license
CALF75/FormationAJC
d05564ba9ae083829f395b4a8394acb71cf7a0be
fbd7ac5c3cc5ae2d31a010d8b163670d2421f01d
refs/heads/master
2020-04-05T21:59:49.188973
2018-12-27T16:35:46
2018-12-27T16:35:46
157,241,250
0
0
null
null
null
null
UTF-8
C++
false
false
1,467
cpp
#include "tableaupanoramicwidget.h" #include "ui_tableaupanoramicwidget.h" TableauPanoramicWidget::TableauPanoramicWidget(QWidget *parent) : QWidget(parent), ui(new Ui::TableauPanoramicWidget) { ui->setupUi(this); } TableauPanoramicWidget::~TableauPanoramicWidget() { delete ui; } bool TableauPanoramicWidget::refresh(QMap<QString, QString> map_formulaire) { if(map_formulaire.keys().size() == 0) return false; QStringList vlabels; int nb_row = map_formulaire.keys().size(); ui->tableWidget->setRowCount(nb_row); int nb_Column= map_formulaire.keys().size(); ui->tableWidget->setColumnCount(nb_Column); ui->tableWidget->horizontalHeader()->setVisible(false); ui->tableWidget->verticalHeader()->setVisible(false); ui->tableWidget->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch); ui->tableWidget->verticalHeader()->setSectionResizeMode(QHeaderView::Stretch); ui->tableWidget->verticalHeader()->setStyleSheet("QHeaderView::section {background-color:blue}"); int i = 0; for(i = 0; i < nb_row; i++){ //qDebug() << map_formulaire.keys()[i] << " : " << map_formulaire.value(map_formulaire.keys()[i]) << endl; QTableWidgetItem *item =new QTableWidgetItem(); vlabels << map_formulaire.keys()[i]; item ->setText(map_formulaire.value(map_formulaire.keys()[i])); ui->tableWidget->setItem(0, i, item); } return true; }
[ "marillierca@gmail.com" ]
marillierca@gmail.com
9b97de8208367a939c0a0efc97696e810ef7117a
5b7af7b52867cb486b1cab100a351dc9acd63283
/bde_verify/groups/csa/csatr/csatr_usingdeclarationinheader.cpp
8149deb4880f0608e42a8a072d65ecee2749c4bb
[ "Apache-2.0", "MIT" ]
permissive
RMGiroux/bde-tools
bb347805c1f83b9108d69ecfd864eeea221d666e
7dc88b2b87d9331d988aad71c42905b923db584d
refs/heads/master
2021-01-18T13:32:42.288327
2015-03-24T19:25:31
2015-03-24T19:25:31
null
0
0
null
null
null
null
UTF-8
C++
false
false
6,864
cpp
// csatr_usingdeclarationinheader.cpp -*-C++-*- #include <clang/AST/DeclBase.h> #include <clang/AST/DeclCXX.h> #include <clang/Basic/SourceLocation.h> #include <clang/Lex/Token.h> #include <csabase_analyser.h> #include <csabase_debug.h> #include <csabase_diagnostic_builder.h> #include <csabase_location.h> #include <csabase_ppobserver.h> #include <csabase_registercheck.h> #include <csabase_report.h> #include <csabase_visitor.h> #include <llvm/Support/Regex.h> #include <string> #include <map> using namespace csabase; using namespace clang; // ---------------------------------------------------------------------------- static std::string const check_name("using-declaration-in-header"); // ---------------------------------------------------------------------------- namespace { struct data // Data attached to analyzer for this check. { std::map<FileID, SourceLocation> d_uds; std::map<FileID, SourceLocation> d_ils; }; struct report : Report<data> { using Report<data>::Report; void set_ud(SourceLocation& ud, SourceLocation sl); void operator()(UsingDecl const* decl); void set_il(SourceLocation& il, SourceLocation sl); void operator()(SourceLocation HashLoc, const Token& IncludeTok, StringRef FileName, bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, StringRef SearchPath, StringRef RelativePath, const Module *Imported); void operator()(const FileEntry& ParentFile, const Token& FilenameTok, SrcMgr::CharacteristicKind FileType); void operator()(SourceRange Range); void operator()(); }; void report::set_ud(SourceLocation& ud, SourceLocation sl) { if (!ud.isValid() || m.isBeforeInTranslationUnit(sl, ud)) { ud = sl; } } void report::operator()(UsingDecl const* decl) { if (decl->getLexicalDeclContext()->isFileContext()) { SourceLocation sl = decl->getLocation(); if (!a.is_global_package() && a.is_header(a.get_location(decl).file())) { a.report(sl, check_name, "TR16", "Namespace level using declaration in header file") << decl->getSourceRange(); } set_ud(d.d_uds[m.getFileID(sl)], sl); } } void report::set_il(SourceLocation& il, SourceLocation sl) { if (!il.isValid() || m.isBeforeInTranslationUnit(il, sl)) { il = sl; } } // InclusionDirective void report::operator()(SourceLocation HashLoc, const Token& IncludeTok, StringRef FileName, bool IsAngled, CharSourceRange FilenameRange, const FileEntry *File, StringRef SearchPath, StringRef RelativePath, const Module *Imported) { SourceLocation sl = FilenameRange.getBegin(); set_il(d.d_ils[m.getFileID(sl)], sl); } // FileSkipped void report::operator()(const FileEntry& ParentFile, const Token& FilenameTok, SrcMgr::CharacteristicKind FileType) { SourceLocation sl = FilenameTok.getLocation(); set_il(d.d_ils[m.getFileID(sl)], sl); } // SourceRangeSkipped void report::operator()(SourceRange Range) { SourceLocation sl = Range.getBegin(); llvm::StringRef s = a.get_source(Range); llvm::SmallVector<llvm::StringRef, 7> matches; static llvm::Regex r(" *ifn?def *INCLUDED_.*[[:space:]]+" "# *include +([<\"][^\">]*[\">])"); if (r.match(s, &matches) && s.find(matches[0]) == 0) { sl = sl.getLocWithOffset(s.find(matches[1])); set_il(d.d_ils[m.getFileID(sl)], sl); } } // TranslationUnitDone void report::operator()() { for (const auto& id : d.d_uds) { if (!a.is_header(m.getFilename(m.getLocForStartOfFile(id.first)))) { const auto& il = d.d_ils[id.first]; if (il.isValid() && m.isBeforeInTranslationUnit(id.second, il) && !a.is_system_header(id.second) && !a.is_system_header(il)) { a.report(id.second, check_name, "AQJ01", "Using declaration precedes header inclusion", true); a.report(il, check_name, "AQJ01", "Header included here", true, DiagnosticIDs::Note); } } } } void subscribe(Analyser& analyser, Visitor& visitor, PPObserver& observer) // Hook up the callback functions. { visitor.onUsingDecl += report(analyser); observer.onPPInclusionDirective += report(analyser, observer.e_InclusionDirective); observer.onPPFileSkipped += report(analyser, observer.e_FileSkipped); observer.onPPSourceRangeSkipped += report(analyser, observer.e_SourceRangeSkipped); analyser.onTranslationUnitDone += report(analyser); } } // close anonymous namespace // ---------------------------------------------------------------------------- static RegisterCheck check(check_name, &subscribe); // ---------------------------------------------------------------------------- // Copyright (C) 2014 Bloomberg Finance L.P. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to // deal in the Software without restriction, including without limitation the // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or // sell copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS // IN THE SOFTWARE. // ----------------------------- END-OF-FILE ----------------------------------
[ "hrosen4@bloomberg.net" ]
hrosen4@bloomberg.net
12defeb2cd53e461ccb6398a0ab0e32acea4ff21
3fb373a7370932faa92cb7ff9eedce5a8a09d884
/src/apps/LTIMES_NOVIEW.hpp
9df60aba7fb2139d6b4cd5c965daa3c211ac9da0
[ "BSD-3-Clause" ]
permissive
balos1/RAJAPerf
91f8aee53bcfb310a49916edb4e38637c51a46ee
c81b50da9d02bf2a52e805671133184728e535f7
refs/heads/master
2020-11-25T04:13:45.228282
2019-10-31T19:21:49
2019-10-31T19:21:49
228,497,126
0
0
BSD-3-Clause
2019-12-16T23:58:59
2019-12-16T23:58:58
null
UTF-8
C++
false
false
1,950
hpp
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// // Copyright (c) 2017-19, Lawrence Livermore National Security, LLC // and RAJA Performance Suite project contributors. // See the RAJAPerf/COPYRIGHT file for details. // // SPDX-License-Identifier: (BSD-3-Clause) //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~// /// /// LTIMES_NOVIEW kernel reference implementation: /// /// for (Index_type z = 0; z < num_z; ++z ) { /// for (Index_type g = 0; g < num_g; ++g ) { /// for (Index_type m = 0; z < num_m; ++m ) { /// for (Index_type d = 0; d < num_d; ++d ) { /// /// phi[m+ (g * num_m) + (z * num_m * num_g)] += /// ell[d+ (m * num_d)] * psi[d+ (g * num_d) + (z * num_d * num_g]; /// /// } /// } /// } /// } /// #ifndef RAJAPerf_Apps_LTIMES_NOVIEW_HPP #define RAJAPerf_Apps_LTIMES_NOVIEW_HPP #define LTIMES_NOVIEW_BODY \ phidat[m+ (g * num_m) + (z * num_m * num_g)] += \ elldat[d+ (m * num_d)] * psidat[d+ (g * num_d) + (z * num_d * num_g)]; #include "common/KernelBase.hpp" namespace rajaperf { class RunParams; namespace apps { class LTIMES_NOVIEW : public KernelBase { public: LTIMES_NOVIEW(const RunParams& params); ~LTIMES_NOVIEW(); void setUp(VariantID vid); void runKernel(VariantID vid); void updateChecksum(VariantID vid); void tearDown(VariantID vid); void runCudaVariant(VariantID vid); void runOpenMPTargetVariant(VariantID vid); private: Real_ptr m_phidat; Real_ptr m_elldat; Real_ptr m_psidat; Index_type m_num_d_default; Index_type m_num_z_default; Index_type m_num_g_default; Index_type m_num_m_default; Index_type m_num_d; Index_type m_num_z; Index_type m_num_g; Index_type m_num_m; Index_type m_philen; Index_type m_elllen; Index_type m_psilen; }; } // end namespace apps } // end namespace rajaperf #endif // closing endif for header file include guard
[ "hornung1@llnl.gov" ]
hornung1@llnl.gov
38cfed562195d95073d145e64014ffd0b3d9533f
c6a8ff5b7481898ade7d46112570dcd8fe32fd4c
/UzunYol.cpp
6f0ccfe8f88d94dff36e3d403ea04e3bbe208927
[]
no_license
yalcinyusuf/turboGemi
5d7a62baa64f8e7724ff68290cf1259e9b4b9f7c
3f0383546bb65f4e90f77f87a6f7b57d17d9c3ae
refs/heads/master
2022-09-05T03:08:52.818216
2022-08-18T09:15:20
2022-08-18T09:15:20
245,906,180
0
0
null
2020-03-08T23:55:49
2020-03-08T23:42:38
null
ISO-8859-9
C++
false
false
16,189
cpp
/*Exception Handling mekanizmaları burada kullanılmıştır*/ /*Yusuf YALÇIN tarafından yazılmıştır 18120205032 07.06.2019 Cuma */ #include "UzunYol.h" #include <string.h> #include <stdio.h> #include <iostream> #include <cstring> #include <vector> #include <list> #include <fstream> #include <locale> #include "rapidxml.hpp" using namespace std; using namespace rapidxml; unsigned int dosyadanOku(const string & filename, list<Arac*> araclar) { setlocale(LC_ALL, "tr_TR.utf8"); // Turkish locale settings xml_document<> doc; xml_node<> * root_node; // Read the xml file into a vector ifstream theFile("bil122_hw08.xml"); vector<char> buffer((istreambuf_iterator<char>(theFile)), istreambuf_iterator<char>()); buffer.push_back('\0'); // Parse the buffer using the xml file parsing library into doc doc.parse<0>(&buffer[0]); // Set the root node root_node = doc.first_node("Araclar"); // Iterate over the Vehicles cout << "Parsing Vehicles.xml..." << endl; int i = 0; for (auto * vehicle_node = root_node->first_node("Arac"); vehicle_node; vehicle_node = vehicle_node->next_sibling()) { cout << "Arac-" << ++i << "\t" << vehicle_node->first_node("Turu")->value() << "\t" << vehicle_node->first_node("Plaka")->value(); if (!strcmp(vehicle_node->first_node("Turu")->value(), "Kamyon")) cout << "\t\"" << vehicle_node->first_node("OzluSoz")->value() << "\""; cout << endl; auto * drivers_root_node = vehicle_node->first_node("Suruculer"); int j = 0; for (auto * driver_node = drivers_root_node->first_node("Surucu"); driver_node; driver_node = driver_node->next_sibling()) { cout << "\tSurucu-" << ++j << "\t" << "\t" << driver_node->first_node("Adi")->value() << "\t" << driver_node->first_node("Yasi")->value() << "\t" << driver_node->first_node("EhliyetSinifi")->value() << endl; } cout << endl; if (!strcmp(vehicle_node->first_node("Turu")->value(), "Kamyon")) { auto * loads_root_node = vehicle_node->first_node("Yukler"); int k = 0; for (auto * load_node = loads_root_node->first_node("Yuk"); load_node; load_node = load_node->next_sibling()) { cout << "\tYuk-" << ++k << "\t" << "\t" << "Icerik: " << load_node->first_node("Icerik")->value() << "\t" << "Agirlik: " << load_node->first_node("Agirlik")->value() << "\t" << "Hacim: " << load_node->first_node("Hacim")->value() << "\t" << "Alici: " << load_node->first_node("Alici")->value() << "\t" << "BinisNoktasi: " << load_node->first_node("BinisNoktasi")->value() << "\t" << "InisNoktasi: " << load_node->first_node("InisNoktasi")->value() << endl; } } cout << endl; if (strcmp(vehicle_node->first_node("Turu")->value(), "Kamyon")) { auto * passengers_root_node = vehicle_node->first_node("Yolcular"); int m = 0; for (auto * passenger_node = passengers_root_node->first_node("Yolcu"); passenger_node; passenger_node = passenger_node->next_sibling()) { cout << "\tYolcu-" << ++m << "\t" << "\t" << "Adi: " << passenger_node->first_node("Adi")->value() << "\t" << "BinisNoktasi: " << passenger_node->first_node("BinisNoktasi")->value() << "\t" << "InisNoktasi: " << passenger_node->first_node("InisNoktasi")->value() << endl; } } } return 0; } ostream & operator<<(ostream & out, const Surucu & s) { out << "Surucunun ismi: "; for (unsigned i = 0; i < strlen(s.Ad); ++i) { out << s.Ad[i]; } out << endl; out << "Surucunun yasi: " << 30 + s.xx.yas1 << endl; out << "Ehliyetsinifi : " << (static_cast<char>('B' + s.ehliyet)) << endl; return out; } ostream & operator<<(ostream & out, const Yolcu & s) { out << "Yolcunun ismi: "; for (unsigned i = 0; i < strlen(s.YolcuAd); ++i) { out << s.YolcuAd[i]; } out << endl; out << "Binis noktasi: "; for (unsigned i = 0; i < strlen(s.binisNoktasi); ++i) { out << s.binisNoktasi[i]; } out << endl; out << "Inis noktasi: "; for (unsigned i = 0; i < s.inisNoktasi.size(); ++i) { out << s.inisNoktasi[i]; } return out; } ostream & operator<<(ostream & out, const Yuk & s) { out << "Yukun cinsi: "; for (unsigned i = 0; i < strlen(s.icerik); ++i) { out << s.icerik[i]; } out << endl; out << "Yukun agirligi: "; out << s.agirlik << endl; out << "Yukun hacmi: "; out << s.hacim << endl; out << "Yuku alacak kisi: "; for (unsigned i = 0; i < s.Alici.size(); ++i) { out << s.Alici[i]; } out << endl; out << "Yolcunun binecegi yer: "; for (unsigned i = 0; i < s.binisNoktasi.size(); ++i) { out << s.binisNoktasi[i]; } out << endl; out << "Yolcunun inecegi yer: "; for (unsigned i = 0; i < s.inisNoktasi.size(); ++i) { out << s.inisNoktasi[i]; } return out; } ostream & operator<<(ostream & out, Arac & s) { s.print(out); return out; } ostream & operator<<(ostream & out, Otobus & s) { s.print(out); return out; } ostream & operator<<(ostream & out, Kamyon & s) { s.print(out); return out; } Surucu::Surucu() { Ad = nullptr; } Surucu::Surucu(const char * str, unsigned int yasi, EhliyetSinifi x) { xx.yas1 = yasi; ehliyet = x; Ad = new char[strlen(str)+1]; try { if (Ad == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(Ad); ++i) { Ad[i] = str[i]; } } Surucu::~Surucu() { if (Ad != nullptr) delete[] Ad; } Surucu::Surucu(const Surucu & other) { Ad = nullptr; if (strlen(other.Ad) != 0) { Ad = new char[strlen(other.Ad)+1]; try { if (Ad == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } setad(other.Ad); } ehliyet = other.ehliyet; xx.yas1 = other.xx.yas1; } const Surucu & Surucu::operator=(const Surucu & other) { if (this == &other) return *this; if (Ad != nullptr) delete[] Ad; ehliyet = other.ehliyet; xx.yas1 = other.xx.yas1; Ad = new char[strlen(other.Ad)+1]; try { if (Ad == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned i = 0; i < strlen(Ad); ++i) { Ad[i] = other.Ad[i]; } return *this; } void Surucu::setad(char * isim) { for (unsigned i = 0; i < strlen(isim)+1; ++i) { Ad[i] = isim[i]; } } void Surucu::setYas(unsigned int yasi) { xx.yas1 = yasi; } void Surucu::setEhliyet(EhliyetSinifi ehliyeti) { ehliyet = ehliyeti; } Yolcu::Yolcu() { YolcuAd = nullptr; binisNoktasi = nullptr; inisNoktasi = '\0'; } Yolcu::Yolcu(const char * YolcuAdi,const char * binisNokta, string inisNokta) { YolcuAd = new char[strlen(YolcuAdi)+1]; binisNoktasi = new char[strlen(binisNokta)+1]; inisNoktasi = inisNokta; try { if (YolcuAd == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(YolcuAd); ++i) { YolcuAd[i] = YolcuAdi[i]; } for (unsigned int i = 0; i < strlen(binisNoktasi); ++i) { binisNoktasi[i] = binisNokta[i]; } } Yolcu::~Yolcu() { if (YolcuAd != nullptr && binisNoktasi != nullptr) delete[] YolcuAd; delete[] binisNoktasi; } Yolcu::Yolcu(const Yolcu & other) { YolcuAd = nullptr; binisNoktasi = nullptr; if (strlen(other.YolcuAd) != 0) { YolcuAd = new char[strlen(other.YolcuAd)+1]; binisNoktasi = new char[strlen(other.binisNoktasi)+1]; try { if (YolcuAd == nullptr) throw bad_alloc();//binis noktasi icinde denettirebilirim } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned i = 0; i < strlen(YolcuAd); ++i) { YolcuAd[i] = other.YolcuAd[i]; } for (unsigned i = 0; i < strlen(binisNoktasi); ++i) { binisNoktasi[i] = other.binisNoktasi[i]; } } inisNoktasi = other.inisNoktasi; } const Yolcu & Yolcu::operator=(const Yolcu & other) { if (this == &other) return *this; if (YolcuAd != nullptr && binisNoktasi != nullptr) delete[] YolcuAd; delete[] binisNoktasi; inisNoktasi = other.inisNoktasi; YolcuAd = new char[strlen(other.YolcuAd)+1]; binisNoktasi = new char[strlen(other.binisNoktasi)+1]; try { if (YolcuAd == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned i = 0; i < strlen(YolcuAd); ++i) { YolcuAd[i] = other.YolcuAd[i]; } for (unsigned i = 0; i < strlen(binisNoktasi); ++i) { binisNoktasi[i] = other.binisNoktasi[i]; } return *this; } void Yolcu::setYolcuAd(char * YolcuAdi) { for (unsigned i = 0; i < strlen(YolcuAdi); ++i) { YolcuAd[i] = YolcuAdi[i]; } } void Yolcu::setbinisNoktasi(char * binisNokta) { for (unsigned i = 0; i < strlen(binisNokta); ++i) { binisNoktasi[i] = binisNokta[i]; } } void Yolcu::setinisNoktasi(string inisNokta) { inisNoktasi = inisNokta; } Yuk::Yuk() { icerik = nullptr; agirlik = 0; hacim = 0; Alici = '\0'; binisNoktasi = '\0'; inisNoktasi = '\0'; } Yuk::Yuk(const char * icerigi, double agirligi, double hacim, string Alici, string binisNokta, string inisNokta) { agirlik = agirligi; this->hacim = hacim; this->Alici = Alici; binisNoktasi = binisNokta; inisNoktasi = inisNokta; icerik = new char[strlen(icerigi)+1]; try { if (icerik == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(icerik); ++i) { icerik[i] = icerigi[i]; } } Yuk::~Yuk() { if (icerik != nullptr) delete[] icerik; } Yuk::Yuk(const Yuk & other) { agirlik = other.agirlik; hacim = other.hacim; Alici = other.Alici; binisNoktasi = other.binisNoktasi; inisNoktasi = other.inisNoktasi; icerik = nullptr; if (strlen(other.icerik) != 0) { icerik = new char[strlen(other.icerik)+1]; try { if (icerik == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } seticerik(other.icerik); } } const Yuk & Yuk::operator=(const Yuk & other) { if (this == &other) return *this; if (icerik != nullptr) delete[] icerik; agirlik = other.agirlik; hacim = other.hacim; Alici = other.Alici; binisNoktasi = other.binisNoktasi; inisNoktasi = other.inisNoktasi; icerik = new char[strlen(other.icerik)+1]; try { if (icerik == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } seticerik(other.icerik); return *this; } void Yuk::setinisNoktasi(string inisNokta) { inisNoktasi = inisNokta; } void Yuk::setbinisNoktasi(string binisNokta) { binisNoktasi = binisNokta; } void Yuk::setAlici(string Alici) { this->Alici = Alici; } void Yuk::seticerik(char * icerigi) { for (unsigned i = 0; i < strlen(icerigi)+1; ++i) { icerik[i] = icerigi[i]; } } void Yuk::setagirlik(double agirligi) { agirlik = agirligi; } void Yuk::sethacim(double hacim) { this->hacim = hacim; } Arac::Arac() { plaka = nullptr; } Arac::Arac(const list<Surucu>& listesi,const char * plakasi) { Suruculer.clear(); plaka = new char[strlen(plakasi)+1]; try { if (plaka == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } Suruculer = listesi; for (unsigned int i = 0; i < strlen(plaka); ++i) { plaka[i] = plakasi[i]; } } Arac::~Arac() { if (plaka != nullptr) delete[] plaka; } Arac::Arac( Arac & other) { plaka = nullptr; if (strlen(other.plaka) != 0) { plaka = new char[strlen(other.plaka)+1]; try { if (plaka == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(plaka); ++i) { plaka[i] = other.plaka[i]; } for (Surucu i : other.Suruculer) { Suruculer.push_back(i); } } } Arac & Arac::operator=(Arac & other) { Suruculer.clear(); if (this == &other) return *this; if (plaka != nullptr) delete[] plaka; for (Surucu a : other.Suruculer) { Suruculer.push_back(a); } plaka = new char[strlen(other.plaka) + 1]; try { if (plaka == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(plaka); ++i) { plaka[i] = other.plaka[i]; } return *this; } void Arac::setplaka(const char * plakasi) { for (unsigned i = 0; i < strlen(plakasi)+1; ++i) { plaka[i] = plakasi[i]; } } void Arac::setSuruculer(const list<Surucu>& listesi) { for (Surucu a : listesi) { Suruculer.push_back(a); } } void Arac::print(ostream & out) { out << "Aracin plakasi: "; for (unsigned i = 0; i < strlen(plaka); ++i) { out <<plaka[i]; } out << endl; out << "Aracin soforu/soforleri: " << endl; for (Surucu a : Suruculer) { out << a << endl; } } void Otobus::print(ostream & out) { out << "Aracin plakasi: "; out << Arac::getplaka() << endl; out << endl; out << "Aracin soforu/soforleri: " << endl; for (Surucu a : Arac::getSuruculer()) { out << a << endl; } out << " Yolcular : " << endl; for (unsigned i = 0; i < Yolcular.size(); ++i) { out << Yolcular[i]; } } Otobus::Otobus() : Arac() { } Otobus::Otobus(const list<Surucu>& listes,const char * plak, const vector<Yolcu>& Yolculari) : Arac(listes,plak) { setYolcular(Yolculari); } Otobus::~Otobus() { } vector<Yolcu>& Otobus::getYolcular() { return Yolcular; } void Otobus::setYolcular(const vector<Yolcu>& Yolculari) { for (unsigned i = 0; i < Yolculari.size(); ++i) { Yolcular.push_back(Yolculari[i]); } } void Kamyon::print(ostream & out) { out << "Aracin plakasi: "; out << Arac::getplaka() << endl; out << endl; out << "Aracin soforu/soforleri: " << endl; for (Surucu a :getSuruculer()) { out << a << endl; } out << " Ozlu soz : "; for (unsigned i = 0; i < strlen(OzluSoz)+1; ++i) { out << OzluSoz[i]; } out << endl; out << " Kamyonda tasinan yukler : " << endl; for (unsigned i = 0; i < Yukler.size(); ++i) { out << Yukler[i]; } } Kamyon::Kamyon() { OzluSoz = nullptr; } Kamyon::Kamyon(const list<Surucu>& listesi,const char * plaka,const char * OzluSozu, const vector<Yuk>& Yukleri) : Arac(listesi, plaka) { OzluSoz = new char[strlen(OzluSozu) + 1]; try { if (OzluSoz == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned int i = 0; i < strlen(OzluSoz); ++i) { OzluSoz[i] = OzluSozu[i]; } setYukler(Yukleri); } Kamyon::~Kamyon() { if (OzluSoz != nullptr) delete[] OzluSoz; } Kamyon::Kamyon(Kamyon & other) : Arac(other) { OzluSoz = nullptr; if (strlen(other.OzluSoz) != 0) { OzluSoz = new char[strlen(other.OzluSoz)+1]; try { if (OzluSoz == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned i = 0; i < strlen(OzluSoz); ++i) { OzluSoz[i] = other.OzluSoz[i]; } setYukler(other.Yukler); } } Kamyon & Kamyon::operator=(Kamyon & other) { Yukler.clear(); if (this == &other) return *this; if (OzluSoz != nullptr) delete[] OzluSoz; setYukler(other.Yukler); OzluSoz = new char[strlen(other.OzluSoz)+1]; try { if (OzluSoz == nullptr) throw bad_alloc(); } catch (bad_alloc) { cout << " Hata olustu " << endl; exit(-1); } for (unsigned i = 0; i < strlen(OzluSoz); ++i) { OzluSoz[i] = other.OzluSoz[i]; } return *this; } void Kamyon::setOzluSoz(const char * OzluSozu) { for (unsigned i = 0; i < strlen(OzluSozu)+1; ++i) { OzluSoz[i] = OzluSozu[i]; } } void Kamyon::setYukler(const vector<Yuk>& Yukleri) { for (unsigned i = 0; i < Yukleri.size(); ++i) { Yukler.push_back(Yukleri[i]); } }
[ "noreply@github.com" ]
yalcinyusuf.noreply@github.com
60cb454c9809fbe02ff08d0fd82aa40d8c0539b2
2a8a290eb1d0703a7c7b21429b07870c5ffa868e
/Include/NiTerrainCellNode.inl
843493cb0a6f7944d6b35acc5076bf0876be5f9a
[]
no_license
sigmaco/gamebryo-v32
b935d737b773497bf9e663887e326db4eca81885
0709c2570e21f6bb06a9382f9e1aa524070f3751
refs/heads/master
2023-03-31T13:56:37.844472
2021-04-17T02:30:46
2021-04-17T02:30:46
198,067,949
4
4
null
2021-04-17T02:30:47
2019-07-21T14:39:54
C++
UTF-8
C++
false
false
1,284
inl
// EMERGENT GAME TECHNOLOGIES PROPRIETARY INFORMATION // // This software is supplied under the terms of a license agreement or // nondisclosure agreement with Emergent Game Technologies and may not // be copied or disclosed except in accordance with the terms of that // agreement. // // Copyright (c) 1996-2008 Emergent Game Technologies. // All Rights Reserved. // // Emergent Game Technologies, Chapel Hill, North Carolina 27517 // http://www.emergent.net //--------------------------------------------------------------------------- inline const NiTerrainCell* NiTerrainCellNode::GetChildAt( NiUInt32 uiIndex) const { return m_apkChildren[uiIndex]; } //--------------------------------------------------------------------------- inline NiTerrainCell* NiTerrainCellNode::GetChildAt(NiUInt32 uiIndex) { return m_apkChildren[uiIndex]; } //--------------------------------------------------------------------------- inline void NiTerrainCellNode::SetChildAt(NiUInt32 uiIndex, NiTerrainCell* pkChild) { m_apkChildren[uiIndex] = pkChild; if (pkChild) { pkChild->SetParent(this); AttachChild(pkChild); } } //---------------------------------------------------------------------------
[ "veryzon@outlook.com.br" ]
veryzon@outlook.com.br
0158ebea9f22edca77d5f26d44d5450c0a2b2220
22ffee7012414cbb13c983e824ea2b84de98b4fc
/Code/Engine/GameEngine/Physics/CharacterControllerComponent.h
96e4bae35f4da1d5fee5f4d64819d2287d9a3dc3
[ "MIT" ]
permissive
ixlm/ezEngine
fb624b657e26aaf345fdf442b556f858574d1465
edcfa05e70ed34113a0d60d6803e49d21015794a
refs/heads/master
2020-09-13T00:43:22.478244
2019-07-14T13:02:24
2019-07-14T13:02:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,000
h
#pragma once #include <GameEngine/GameEngineDLL.h> #include <Core/World/World.h> #include <Core/World/Component.h> ////////////////////////////////////////////////////////////////////////// struct EZ_GAMEENGINE_DLL ezMsgMoveCharacterController : public ezMessage { EZ_DECLARE_MESSAGE_TYPE(ezMsgMoveCharacterController, ezMessage); double m_fMoveForwards = 0; double m_fMoveBackwards = 0; double m_fStrafeLeft = 0; double m_fStrafeRight = 0; double m_fRotateLeft = 0; double m_fRotateRight = 0; bool m_bRun = false; bool m_bJump = false; bool m_bCrouch = false; }; /// \brief Base class for implementations of a character controller. /// /// A character controller implements the raw physical locomotion aspect of moving a character (player or NPC) /// through the world. This is typically implemented through a physics engine, when natural collision behavior /// is desired. In more constricted settings, it could use a much simpler implementation. class EZ_GAMEENGINE_DLL ezCharacterControllerComponent : public ezComponent { EZ_DECLARE_ABSTRACT_COMPONENT_TYPE(ezCharacterControllerComponent, ezComponent); public: ezCharacterControllerComponent(); virtual void SerializeComponent(ezWorldWriter& stream) const override; virtual void DeserializeComponent(ezWorldReader& stream) override; /// \brief Instructs the CC to move in certain directions. An implementation can queue the request for later processing. /// It can also add further functionality, such as adding gravity, stair stepping, etc. virtual void MoveCharacter(ezMsgMoveCharacterController& msg) = 0; /// \brief Attempts to move the character into the given direction. /// /// Implements the specific constraints, such as colliding with geometry and sliding along walls. /// Should NOT add further functionality, such as gravity. This function applies the result immediately /// and moves the owner object to the final location. virtual void RawMove(const ezVec3& vMove) = 0; };
[ "jan@krassnigg.de" ]
jan@krassnigg.de
37f7f60f2a44801130f2cac696e1ead28cd123a1
810e6dbe591dab7592142e49913796a4b9b08724
/src/MultimediaPlayer/old/main.cpp
35d3d79b19ae51868fbfc37138fe1057b5dee587
[]
no_license
justin5562587/j-tool
3a0e80797ff902ac7f45fe47128088f8dacda82d
e51141954c498597f525691f76ba9c9db1835b6d
refs/heads/master
2023-04-11T01:34:40.967610
2021-04-26T03:31:18
2021-04-26T03:31:18
309,340,305
1
1
null
null
null
null
UTF-8
C++
false
false
1,915
cpp
// // Created by justin on 2021/01/19. // #include <string> #include <fstream> #include <iostream> extern "C" { #include <libavformat/avformat.h> #include <libavcodec/avcodec.h> #include <libavdevice/avdevice.h> #include <libavutil/avutil.h> #include <libswresample/swresample.h> } // 功能->打开电脑摄像头,并且av_read_frame 500次,log出每次packet的size int main () { avdevice_register_all(); int ret = 0; char errorMessage[1024]; // 0 -> 使用摄像头录制 // 1- > 录制桌面 char *deviceName = "0"; AVFormatContext *pFormatCtx = nullptr; AVDictionary *options = nullptr; av_dict_set(&options, "video_size", "640*480", 0); av_dict_set(&options, "framerate", "30", 0); av_dict_set(&options, "pixel_format", "uyvy422", 0); // get format AVInputFormat *pInputFormat = av_find_input_format("avfoundation"); if (pInputFormat == nullptr) { av_strerror(ret, errorMessage, sizeof(errorMessage)); std::cout << "avformat_open_input: " << errorMessage << std::endl; return ret; } ret = avformat_open_input(&pFormatCtx, deviceName, pInputFormat, &options); if (ret < 0) { av_strerror(ret, errorMessage, sizeof(errorMessage)); std::cout << "avformat_open_input: " << errorMessage << std::endl; return ret; } int count = 0; AVPacket packet; av_init_packet(&packet); while ((ret = av_read_frame(pFormatCtx, &packet)) == 0 && count < 500) { std::cout << "packet.size: " << packet.size << std::endl; av_packet_unref(&packet); ++count; } if (ret < 0) { av_strerror(ret, errorMessage, sizeof(errorMessage)); std::cout << "av_read_frame: " << errorMessage << std::endl; return ret; } avformat_close_input(&pFormatCtx); av_log(nullptr, AV_LOG_DEBUG, "Record Video Finished.\n"); return ret; }
[ "justin5562587@gmail.com" ]
justin5562587@gmail.com
7317d86cf0f203b4395994c03b5456601f5f0896
e57e771df3c66ca2b12acf4ee112d048b3d7fc29
/status.cc
f4cb6ea272504f017036d32b4e0e64ee62af8763
[]
no_license
isliulin/felixdb
6cee2177598b7b9e8255890c60efcc996995180d
c75f966673b5ee864e456113d1d168afc4831b0f
refs/heads/master
2023-03-18T02:13:39.861818
2014-07-14T19:52:50
2014-07-14T19:52:50
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,342
cc
/******************************************************************************* * Copyright (c) 2012-2013 Emmanuel Goossaert * This file is part of FelixDB, and was *largely* inspired from * LevelDB's code. * * Copyright (c) 2011 The LevelDB Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file of the LevelDB project. See the AUTHORS file * for names of contributors. ******************************************************************************/ #include "status.h" namespace felixdb { std::string Status::ToString() const { if (message1_ == "") { return "OK"; } else { char tmp[30]; const char* type; switch (code()) { case kOK: type = "OK"; break; case kNotFound: type = "NotFound: "; break; case kInvalidArgument: type = "Invalid argument: "; break; case kIOError: type = "IO error: "; break; default: snprintf(tmp, sizeof(tmp), "Unknown code(%d): ", static_cast<int>(code())); type = tmp; break; } std::string result(type); result.append(message1_); if (message2_.size() > 0) { result.append(" - "); result.append(message2_); } return result; } } };
[ "emmanuel.goossaert@gmail.com" ]
emmanuel.goossaert@gmail.com
21894fe3242e60ad7ec4e91f5596117f2ac33141
ab48e26c575f900f45c7c57914293bafd6344bc8
/base/strings/string_number_conversions.h
ca9a5172dc21130b2cd13d971a01bd2c75aebf6b
[ "MIT" ]
permissive
linzai1992/base
22a5248c80cb80ec3b4cad3bfb511e80a59e014c
3facb7af0207ad21c95848818fbc48089403464b
refs/heads/master
2020-07-09T14:48:12.708683
2015-05-13T09:19:38
2015-05-13T09:19:38
null
0
0
null
null
null
null
GB18030
C++
false
false
5,737
h
// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef BASE_STRINGS_STRING_NUMBER_CONVERSIONS_H_ #define BASE_STRINGS_STRING_NUMBER_CONVERSIONS_H_ #include <string> #include <vector> #include "base/base_export.h" #include "base/basictypes.h" #include "base/string16.h" #include "base/strings/string_piece.h" // ---------------------------------------------------------------------------- // IMPORTANT MESSAGE FROM YOUR SPONSOR // // This file contains no "wstring" variants. New code should use string16. If // you need to make old code work, use the UTF8 version and convert. Please do // not add wstring variants. // // Please do not add "convenience" functions for converting strings to integers // that return the value and ignore success/failure. That encourages people to // write code that doesn't properly handle the error conditions. // ---------------------------------------------------------------------------- namespace base { // Number -> string conversions ------------------------------------------------ BASE_EXPORT std::string IntToString(int value); BASE_EXPORT string16 IntToString16(int value); BASE_EXPORT std::string UintToString(unsigned value); BASE_EXPORT string16 UintToString16(unsigned value); BASE_EXPORT std::string Int64ToString(int64 value); BASE_EXPORT string16 Int64ToString16(int64 value); BASE_EXPORT std::string Uint64ToString(uint64 value); BASE_EXPORT string16 Uint64ToString16(uint64 value); // String -> number conversions ------------------------------------------------ // Perform a best-effort conversion of the input string to a numeric type, // setting |*output| to the result of the conversion. Returns true for // "perfect" conversions; returns false in the following cases: // - Overflow/underflow. |*output| will be set to the maximum value supported // by the data type. // - Trailing characters in the string after parsing the number. |*output| // will be set to the value of the number that was parsed. // - Leading whitespace in the string before parsing the number. |*output| will // be set to the value of the number that was parsed. // - No characters parseable as a number at the beginning of the string. // |*output| will be set to 0. // - Empty string. |*output| will be set to 0. BASE_EXPORT bool StringToInt(const StringPiece& input, int* output); BASE_EXPORT bool StringToInt(const StringPiece16& input, int* output); BASE_EXPORT bool StringToUint(const StringPiece& input, unsigned* output); BASE_EXPORT bool StringToUint(const StringPiece16& input, unsigned* output); BASE_EXPORT bool StringToInt64(const StringPiece& input, int64* output); BASE_EXPORT bool StringToInt64(const StringPiece16& input, int64* output); BASE_EXPORT bool StringToUint64(const StringPiece& input, uint64* output); BASE_EXPORT bool StringToUint64(const StringPiece16& input, uint64* output); BASE_EXPORT bool StringToSizeT(const StringPiece& input, size_t* output); BASE_EXPORT bool StringToSizeT(const StringPiece16& input, size_t* output); // Hex encoding ---------------------------------------------------------------- // Returns a hex string representation of a binary buffer. The returned hex // string will be in upper case. This function does not check if |size| is // within reasonable limits since it's written with trusted data in mind. If // you suspect that the data you want to format might be large, the absolute // max size for |size| should be is // std::numeric_limits<size_t>::max() / 2 BASE_EXPORT std::string HexEncode(const void* bytes, size_t size); // Best effort conversion, see StringToInt above for restrictions. // Will only successful parse hex values that will fit into |output|, i.e. // -0x80000000 < |input| < 0x7FFFFFFF. BASE_EXPORT bool HexStringToInt(const StringPiece& input, int* output); // Best effort conversion, see StringToInt above for restrictions. // Will only successful parse hex values that will fit into |output|, i.e. // -0x8000000000000000 < |input| < 0x7FFFFFFFFFFFFFFF. BASE_EXPORT bool HexStringToInt64(const StringPiece& input, int64* output); // Best effort conversion, see StringToInt above for restrictions. // Will only successful parse hex values that will fit into |output|, i.e. // 0x0000000000000000 < |input| < 0xFFFFFFFFFFFFFFFF. // The string is not required to start with 0x. BASE_EXPORT bool HexStringToUInt64(const StringPiece& input, uint64* output); // Similar to the previous functions, except that output is a vector of bytes. // |*output| will contain as many bytes as were successfully parsed prior to the // error. There is no overflow, but input.size() must be evenly divisible by 2. // Leading 0x or +/- are not allowed. BASE_EXPORT bool HexStringToBytes(const std::string& input, std::vector<uint8>* output); /*! @brief 将字符串转换成整数 */ BASE_EXPORT int StringToInt(const std::string& input); /*! @brief 通用类型转化 @example double fValue = common_convertw<double>(const wchar_t input); */ template<class out_type,class in_value> out_type common_convert( const in_value & t ) { std::stringstream stream; stream<<t;//向流中传值 out_type result;//这里存储转换结果 stream>>result;//向result中写入值 return result; } template<class out_type,class in_value> out_type common_convertw(const in_value & t) { std::wstringstream stream; stream<<t;//向流中传值 out_type result;//这里存储转换结果 stream>>result;//向result中写入值 return result; } } // namespace base #endif // BASE_STRINGS_STRING_NUMBER_CONVERSIONS_H_
[ "anxs@htlhomedeiMac-21.local" ]
anxs@htlhomedeiMac-21.local
4ab58034a528a1a727eb89af10c2340a29044497
7b7f151a3af7d17cee7b6bb8a41c6335947a7e65
/src/rpcprotocol.cpp
3386d8e5e243da540538352b7d882f9eedb8381f
[ "MIT" ]
permissive
tm2013/xRadon
c7ed80f6b66cd9793cf44010cb5c0fc749eb682a
ae8d6ca9d55261733dfd7c82e0f56ca3b69b036c
refs/heads/master
2021-01-10T02:39:41.113996
2016-01-18T18:56:23
2016-01-18T18:56:23
35,976,236
0
4
null
2015-05-26T01:16:37
2015-05-20T21:53:24
C++
UTF-8
C++
false
false
7,732
cpp
// Copyright (c) 2010 Satoshi Nakamoto // Copyright (c) 2009-2013 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpcprotocol.h" #include "util.h" #include <stdint.h> #include <boost/algorithm/string.hpp> #include <boost/asio.hpp> #include <boost/asio/ssl.hpp> #include <boost/bind.hpp> #include <boost/filesystem.hpp> #include <boost/foreach.hpp> #include <boost/iostreams/concepts.hpp> #include <boost/iostreams/stream.hpp> #include <boost/lexical_cast.hpp> #include <boost/shared_ptr.hpp> #include "json/json_spirit_writer_template.h" using namespace std; using namespace boost; using namespace boost::asio; using namespace json_spirit; // // HTTP protocol // // This ain't Apache. We're just using HTTP header for the length field // and to be compatible with other JSON-RPC implementations. // string HTTPPost(const string& strMsg, const map<string,string>& mapRequestHeaders) { ostringstream s; s << "POST / HTTP/1.1\r\n" << "User-Agent: xRadon-json-rpc/" << FormatFullVersion() << "\r\n" << "Host: 127.0.0.1\r\n" << "Content-Type: application/json\r\n" << "Content-Length: " << strMsg.size() << "\r\n" << "Connection: close\r\n" << "Accept: application/json\r\n"; BOOST_FOREACH(const PAIRTYPE(string, string)& item, mapRequestHeaders) s << item.first << ": " << item.second << "\r\n"; s << "\r\n" << strMsg; return s.str(); } static string rfc1123Time() { return DateTimeStrFormat("%a, %d %b %Y %H:%M:%S +0000", GetTime()); } string HTTPReply(int nStatus, const string& strMsg, bool keepalive) { if (nStatus == HTTP_UNAUTHORIZED) return strprintf("HTTP/1.0 401 Authorization Required\r\n" "Date: %s\r\n" "Server: xRadon-json-rpc/%s\r\n" "WWW-Authenticate: Basic realm=\"jsonrpc\"\r\n" "Content-Type: text/html\r\n" "Content-Length: 296\r\n" "\r\n" "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n" "\"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\r\n" "<HTML>\r\n" "<HEAD>\r\n" "<TITLE>Error</TITLE>\r\n" "<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>\r\n" "</HEAD>\r\n" "<BODY><H1>401 Unauthorized.</H1></BODY>\r\n" "</HTML>\r\n", rfc1123Time(), FormatFullVersion()); const char *cStatus; if (nStatus == HTTP_OK) cStatus = "OK"; else if (nStatus == HTTP_BAD_REQUEST) cStatus = "Bad Request"; else if (nStatus == HTTP_FORBIDDEN) cStatus = "Forbidden"; else if (nStatus == HTTP_NOT_FOUND) cStatus = "Not Found"; else if (nStatus == HTTP_INTERNAL_SERVER_ERROR) cStatus = "Internal Server Error"; else cStatus = ""; return strprintf( "HTTP/1.1 %d %s\r\n" "Date: %s\r\n" "Connection: %s\r\n" "Content-Length: %u\r\n" "Content-Type: application/json\r\n" "Server: xRadon-json-rpc/%s\r\n" "\r\n" "%s", nStatus, cStatus, rfc1123Time(), keepalive ? "keep-alive" : "close", strMsg.size(), FormatFullVersion(), strMsg); } bool ReadHTTPRequestLine(std::basic_istream<char>& stream, int &proto, string& http_method, string& http_uri) { string str; getline(stream, str); // HTTP request line is space-delimited vector<string> vWords; boost::split(vWords, str, boost::is_any_of(" ")); if (vWords.size() < 2) return false; // HTTP methods permitted: GET, POST http_method = vWords[0]; if (http_method != "GET" && http_method != "POST") return false; // HTTP URI must be an absolute path, relative to current host http_uri = vWords[1]; if (http_uri.size() == 0 || http_uri[0] != '/') return false; // parse proto, if present string strProto = ""; if (vWords.size() > 2) strProto = vWords[2]; proto = 0; const char *ver = strstr(strProto.c_str(), "HTTP/1."); if (ver != NULL) proto = atoi(ver+7); return true; } int ReadHTTPStatus(std::basic_istream<char>& stream, int &proto) { string str; getline(stream, str); vector<string> vWords; boost::split(vWords, str, boost::is_any_of(" ")); if (vWords.size() < 2) return HTTP_INTERNAL_SERVER_ERROR; proto = 0; const char *ver = strstr(str.c_str(), "HTTP/1."); if (ver != NULL) proto = atoi(ver+7); return atoi(vWords[1].c_str()); } int ReadHTTPHeaders(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet) { int nLen = 0; while (true) { string str; std::getline(stream, str); if (str.empty() || str == "\r") break; string::size_type nColon = str.find(":"); if (nColon != string::npos) { string strHeader = str.substr(0, nColon); boost::trim(strHeader); boost::to_lower(strHeader); string strValue = str.substr(nColon+1); boost::trim(strValue); mapHeadersRet[strHeader] = strValue; if (strHeader == "content-length") nLen = atoi(strValue.c_str()); } } return nLen; } int ReadHTTPMessage(std::basic_istream<char>& stream, map<string, string>& mapHeadersRet, string& strMessageRet, int nProto) { mapHeadersRet.clear(); strMessageRet = ""; // Read header int nLen = ReadHTTPHeaders(stream, mapHeadersRet); if (nLen < 0 || nLen > (int)MAX_SIZE) return HTTP_INTERNAL_SERVER_ERROR; // Read message if (nLen > 0) { vector<char> vch(nLen); stream.read(&vch[0], nLen); strMessageRet = string(vch.begin(), vch.end()); } string sConHdr = mapHeadersRet["connection"]; if ((sConHdr != "close") && (sConHdr != "keep-alive")) { if (nProto >= 1) mapHeadersRet["connection"] = "keep-alive"; else mapHeadersRet["connection"] = "close"; } return HTTP_OK; } // // JSON-RPC protocol. Bitcoin speaks version 1.0 for maximum compatibility, // but uses JSON-RPC 1.1/2.0 standards for parts of the 1.0 standard that were // unspecified (HTTP errors and contents of 'error'). // // 1.0 spec: http://json-rpc.org/wiki/specification // 1.2 spec: http://groups.google.com/group/json-rpc/web/json-rpc-over-http // http://www.codeproject.com/KB/recipes/JSON_Spirit.aspx // string JSONRPCRequest(const string& strMethod, const Array& params, const Value& id) { Object request; request.push_back(Pair("method", strMethod)); request.push_back(Pair("params", params)); request.push_back(Pair("id", id)); return write_string(Value(request), false) + "\n"; } Object JSONRPCReplyObj(const Value& result, const Value& error, const Value& id) { Object reply; if (error.type() != null_type) reply.push_back(Pair("result", Value::null)); else reply.push_back(Pair("result", result)); reply.push_back(Pair("error", error)); reply.push_back(Pair("id", id)); return reply; } string JSONRPCReply(const Value& result, const Value& error, const Value& id) { Object reply = JSONRPCReplyObj(result, error, id); return write_string(Value(reply), false) + "\n"; } Object JSONRPCError(int code, const string& message) { Object error; error.push_back(Pair("code", code)); error.push_back(Pair("message", message)); return error; }
[ "timcrypto@gmail.com" ]
timcrypto@gmail.com
fdb7e3ec24ebac97ce03249171b342593a54b197
fb98e790b90cc475b53780f1e5fedd5eccfe8b56
/Laelaps/sw/apps/laelaps_diag/diagProd.cxx
2925c6fa909841949d8d44cb5cdce9ce22fa86da
[ "MIT" ]
permissive
roadnarrows-robotics/rnr-sdk
e348dacd80907717bee4ad9c0a3c58b20fa380ae
be7b3e0806364cdb4602202aba2b4cdd9ba676f4
refs/heads/master
2023-08-16T06:52:31.580475
2023-08-03T19:45:33
2023-08-03T19:45:33
56,259,572
0
0
null
null
null
null
UTF-8
C++
false
false
6,286
cxx
//////////////////////////////////////////////////////////////////////////////// // // Package: Laelaps // // Program: laelaps_diag // // File: diagProd.cxx // /*! \file * * $LastChangedDate: 2016-02-01 15:14:45 -0700 (Mon, 01 Feb 2016) $ * $Rev: 4289 $ * * \brief Perform Laelaps product diagnostics. * * \author Robin Knight (robin.knight@roadnarrows.com) * * \par Copyright * \h_copy 2015-2017. RoadNarrows LLC.\n * http://www.roadnarrows.com\n * All Rights Reserved */ /* * @EulaBegin@ * * Unless otherwise stated explicitly, all materials contained are copyrighted * and may not be used without RoadNarrows LLC's written consent, * except as provided in these terms and conditions or in the copyright * notice (documents and software) or other proprietary notice provided with * the relevant materials. * * IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY * MEMBERS/EMPLOYEES/CONTRACTORS OF ROADNARROWS OR DISTRIBUTORS OF THIS SOFTWARE * BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR * CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS * DOCUMENTATION, EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * THE AUTHORS AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES, * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN * "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. * * @EulaEnd@ */ //////////////////////////////////////////////////////////////////////////////// #include <unistd.h> #include <termios.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> #include <iostream> #include <fstream> #include <string> #include <vector> #include <map> #include "rnr/rnrconfig.h" #include "rnr/log.h" #include "rnr/opts.h" #include "rnr/pkg.h" // common #include "Laelaps/laelaps.h" #include "Laelaps/laeUtils.h" // target diagnostics #include "Laelaps/laeDesc.h" #include "Laelaps/laeTune.h" #include "Laelaps/laeXmlCfg.h" #include "Laelaps/laeXmlTune.h" #include "laelaps_diag.h" using namespace std; using namespace laelaps; static const char *SubSysName = "Product"; static string ProdSN("??????"); static LaeDesc ProdDesc; static LaeTunes ProdTunes; static map<string, string> ProdEnv; static DiagStats readProdSN() { FILE *fp; char buf[7]; size_t snlen = sizeof(buf) - 1; DiagStats stats; printSubHdr("Reading Serial Number"); ++stats.testCnt; if( (fp = fopen("/usr/local/share/misc/.sn", "r")) == NULL ) { printTestResult(FailTag, "%s: Find serial number.", SubSysName); } else if( fread(buf, sizeof(char), snlen, fp) < snlen ) { printTestResult(FailTag, "%s: Read serial number.", SubSysName); } else { buf[snlen] = 0; ProdSN = buf; printTestResult(PassTag, "%s: Read serial number %s.", SubSysName, buf); ++stats.passCnt; } if( fp != NULL ) { fclose(fp); } return stats; } static DiagStats readProdDesc() { LaeXmlCfg xml; int rc; DiagStats stats; ++stats.testCnt; if( (rc = xml.load(ProdDesc, LaeSysCfgPath, LaeEtcCfg)) != LAE_OK ) { printTestResult(FailTag, "%s: Load and parse file %s.", SubSysName, LaeEtcCfg); } else { printTestResult(PassTag, "%s: Load and parse file %s.", SubSysName, LaeEtcCfg); ++stats.passCnt; } ++stats.testCnt; if( (rc = ProdDesc.markAsDescribed()) != LAE_OK ) { printTestResult(FailTag, "%s: Description complete.", SubSysName); } else { printTestResult(PassTag, "%s: Description complete.", SubSysName); ++stats.passCnt; } return stats; } static DiagStats readProdTunes() { LaeXmlTune xml; int rc; DiagStats stats; ++stats.testCnt; if( (rc = xml.load(ProdTunes, LaeSysCfgPath, LaeEtcTune)) != LAE_OK ) { printTestResult(FailTag, "%s: Load and parse file %s.", SubSysName, LaeEtcCfg); } else { printTestResult(PassTag, "%s: Load and parse file %s.", SubSysName, LaeEtcCfg); ++stats.passCnt; } return stats; } static DiagStats readProdEnv() { const char *EnvName[] = { "ROS_DISTRO", "ROS_ETC_DIR", "ROS_MASTER_URI", "ROS_PACKAGE_PATH", "ROS_ROOT" }; char *sVal; DiagStats stats; const char *sTag; size_t i; for(i = 0; i < arraysize(EnvName); ++i) { ++stats.testCnt; sTag = FailTag; if( (sVal = getenv(EnvName[i])) != NULL ) { ProdEnv[EnvName[i]] = sVal; ++stats.passCnt; sTag = PassTag; } printTestResult(sTag, "%s: getenv(%s).", SubSysName, EnvName[i]); } return stats; } static void printResults() { map<string, string>::iterator iter; printf("\n"); printf("Laelaps Product Summary:\n"); printf(" Serial Number: %s\n", ProdSN.c_str()); printf("\n"); ProdDesc.print(2); printf("\n"); ProdTunes.print(2); printf("\n"); for(iter = ProdEnv.begin(); iter != ProdEnv.end(); ++iter) { printf("%18s: %s\n", iter->first.c_str(), iter->second.c_str()); } printf("\n\n"); } DiagStats runProductDiagnostics() { DiagStats statsTest; DiagStats statsTotal; printHdr("Product Diagnostics"); // // Read Serial Number Tests // if( !statsTotal.fatal ) { statsTest = readProdSN(); printSubTotals(statsTest); statsTotal += statsTest; } // // Read and Parse Product Description Tests // if( !statsTotal.fatal ) { statsTest = readProdDesc(); printSubTotals(statsTest); statsTotal += statsTest; } // // Read and Parse Product Tuning Paramers Tests // if( !statsTotal.fatal ) { statsTest = readProdTunes(); printSubTotals(statsTest); statsTotal += statsTest; } // // Read Product Environment Tests // if( !statsTotal.fatal ) { statsTest = readProdEnv(); printSubTotals(statsTest); statsTotal += statsTest; } // // Summary // printTotals(statsTotal); printResults(); return statsTotal; }
[ "robin.knight@roadnarrows.com" ]
robin.knight@roadnarrows.com
d9ab20983a1d1217811b6c22b7394b5b9be2e35e
e7faca0c5e92b6149cc0936ab44f0b7c4439f612
/src/walletdb.cpp
dea1e6cf9f0c82260863b7513df622693bddfbc1
[]
no_license
cummingtonite/cummingtonite
bd05a012260c3f549543910b4fa668b09d8c1240
26bd368d40c144967ea1cf78d66574ec6e1121a8
refs/heads/master
2021-01-21T19:28:57.415706
2014-09-22T13:26:39
2014-09-22T13:26:39
null
0
0
null
null
null
null
UTF-8
C++
false
false
21,770
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <boost/version.hpp> #include <boost/filesystem.hpp> using namespace std; using namespace boost; static uint64 nAccountingEntryNumber = 0; // // CWalletDB // bool CWalletDB::WriteName(const string& strAddress, const string& strName) { nWalletDBUpdated++; return Write(make_pair(string("name"), strAddress), strName); } bool CWalletDB::EraseName(const string& strAddress) { // This should only be used for sending addresses, never for receiving addresses, // receiving addresses must always have an address book entry if they're not change return. nWalletDBUpdated++; return Erase(make_pair(string("name"), strAddress)); } bool CWalletDB::ReadAccount(const string& strAccount, CAccount& account) { account.SetNull(); return Read(make_pair(string("acc"), strAccount), account); } bool CWalletDB::WriteAccount(const string& strAccount, const CAccount& account) { return Write(make_pair(string("acc"), strAccount), account); } bool CWalletDB::WriteAccountingEntry(const uint64 nAccEntryNum, const CAccountingEntry& acentry) { return Write(boost::make_tuple(string("acentry"), acentry.strAccount, nAccEntryNum), acentry); } bool CWalletDB::WriteAccountingEntry(const CAccountingEntry& acentry) { return WriteAccountingEntry(++nAccountingEntryNumber, acentry); } int64 CWalletDB::GetAccountCreditDebit(const string& strAccount) { list<CAccountingEntry> entries; ListAccountCreditDebit(strAccount, entries); int64 nCreditDebit = 0; BOOST_FOREACH (const CAccountingEntry& entry, entries) nCreditDebit += entry.nCreditDebit; return nCreditDebit; } void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries) { bool fAllAccounts = (strAccount == "*"); Dbc* pcursor = GetCursor(); if (!pcursor) throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor"); unsigned int fFlags = DB_SET_RANGE; loop { // Read next record CDataStream ssKey(SER_DISK, CLIENT_VERSION); if (fFlags == DB_SET_RANGE) ssKey << boost::make_tuple(string("acentry"), (fAllAccounts? string("") : strAccount), uint64(0)); CDataStream ssValue(SER_DISK, CLIENT_VERSION); int ret = ReadAtCursor(pcursor, ssKey, ssValue, fFlags); fFlags = DB_NEXT; if (ret == DB_NOTFOUND) break; else if (ret != 0) { pcursor->close(); throw runtime_error("CWalletDB::ListAccountCreditDebit() : error scanning DB"); } // Unserialize string strType; ssKey >> strType; if (strType != "acentry") break; CAccountingEntry acentry; ssKey >> acentry.strAccount; if (!fAllAccounts && acentry.strAccount != strAccount) break; ssValue >> acentry; ssKey >> acentry.nEntryNo; entries.push_back(acentry); } pcursor->close(); } DBErrors CWalletDB::ReorderTransactions(CWallet* pwallet) { LOCK(pwallet->cs_wallet); // Old wallets didn't have any defined order for transactions // Probably a bad idea to change the output of this // First: get all CWalletTx and CAccountingEntry into a sorted-by-time multimap. typedef pair<CWalletTx*, CAccountingEntry*> TxPair; typedef multimap<int64, TxPair > TxItems; TxItems txByTime; for (map<uint256, CWalletTx>::iterator it = pwallet->mapWallet.begin(); it != pwallet->mapWallet.end(); ++it) { CWalletTx* wtx = &((*it).second); txByTime.insert(make_pair(wtx->nTimeReceived, TxPair(wtx, (CAccountingEntry*)0))); } list<CAccountingEntry> acentries; ListAccountCreditDebit("", acentries); BOOST_FOREACH(CAccountingEntry& entry, acentries) { txByTime.insert(make_pair(entry.nTime, TxPair((CWalletTx*)0, &entry))); } int64& nOrderPosNext = pwallet->nOrderPosNext; nOrderPosNext = 0; std::vector<int64> nOrderPosOffsets; for (TxItems::iterator it = txByTime.begin(); it != txByTime.end(); ++it) { CWalletTx *const pwtx = (*it).second.first; CAccountingEntry *const pacentry = (*it).second.second; int64& nOrderPos = (pwtx != 0) ? pwtx->nOrderPos : pacentry->nOrderPos; if (nOrderPos == -1) { nOrderPos = nOrderPosNext++; nOrderPosOffsets.push_back(nOrderPos); if (pacentry) // Have to write accounting regardless, since we don't keep it in memory if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry)) return DB_LOAD_FAIL; } else { int64 nOrderPosOff = 0; BOOST_FOREACH(const int64& nOffsetStart, nOrderPosOffsets) { if (nOrderPos >= nOffsetStart) ++nOrderPosOff; } nOrderPos += nOrderPosOff; nOrderPosNext = std::max(nOrderPosNext, nOrderPos + 1); if (!nOrderPosOff) continue; // Since we're changing the order, write it back if (pwtx) { if (!WriteTx(pwtx->GetHash(), *pwtx)) return DB_LOAD_FAIL; } else if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry)) return DB_LOAD_FAIL; } } return DB_LOAD_OK; } bool ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, int& nFileVersion, vector<uint256>& vWalletUpgrade, bool& fIsEncrypted, bool& fAnyUnordered, string& strType, string& strErr) { try { // Unserialize // Taking advantage of the fact that pair serialization // is just the two items serialized one after the other ssKey >> strType; if (strType == "name") { string strAddress; ssKey >> strAddress; ssValue >> pwallet->mapAddressBook[CBitcoinAddress(strAddress).Get()]; } else if (strType == "tx") { uint256 hash; ssKey >> hash; CWalletTx wtx; ssValue >> wtx; CValidationState state; if (wtx.CheckTransaction(state) && (wtx.GetHash() == hash) && state.IsValid()) wtx.BindWallet(pwallet); else return false; // Undo serialize changes in 31600 if (31404 <= wtx.fTimeReceivedIsTxTime && wtx.fTimeReceivedIsTxTime <= 31703) { if (!ssValue.empty()) { char fTmp; char fUnused; ssValue >> fTmp >> fUnused >> wtx.strFromAccount; strErr = strprintf("LoadWallet() upgrading tx ver=%d %d '%s' %s", wtx.fTimeReceivedIsTxTime, fTmp, wtx.strFromAccount.c_str(), hash.ToString().c_str()); wtx.fTimeReceivedIsTxTime = fTmp; } else { strErr = strprintf("LoadWallet() repairing tx ver=%d %s", wtx.fTimeReceivedIsTxTime, hash.ToString().c_str()); wtx.fTimeReceivedIsTxTime = 0; } vWalletUpgrade.push_back(hash); } if (wtx.nOrderPos == -1) fAnyUnordered = true; pwallet->mapWallet[hash] = wtx; //// debug print //printf("LoadWallet %s\n", wtx.GetHash().ToString().c_str()); //printf(" %12"PRI64d" %s %s %s\n", // wtx.vout[0].nValue, // DateTimeStrFormat("%Y-%m-%d %H:%M:%S", wtx.GetBlockTime()).c_str(), // wtx.hashBlock.ToString().c_str(), // wtx.mapValue["message"].c_str()); } else if (strType == "acentry") { string strAccount; ssKey >> strAccount; uint64 nNumber; ssKey >> nNumber; if (nNumber > nAccountingEntryNumber) nAccountingEntryNumber = nNumber; if (!fAnyUnordered) { CAccountingEntry acentry; ssValue >> acentry; if (acentry.nOrderPos == -1) fAnyUnordered = true; } } else if (strType == "key" || strType == "wkey") { CPubKey vchPubKey; ssKey >> vchPubKey; if (!vchPubKey.IsValid()) { strErr = "Error reading wallet database: CPubKey corrupt"; return false; } CKey key; CPrivKey pkey; if (strType == "key") ssValue >> pkey; else { CWalletKey wkey; ssValue >> wkey; pkey = wkey.vchPrivKey; } if (!key.SetPrivKey(pkey, vchPubKey.IsCompressed())) { strErr = "Error reading wallet database: CPrivKey corrupt"; return false; } if (key.GetPubKey() != vchPubKey) { strErr = "Error reading wallet database: CPrivKey pubkey inconsistency"; return false; } if (!pwallet->LoadKey(key, vchPubKey)) { strErr = "Error reading wallet database: LoadKey failed"; return false; } } else if (strType == "mkey") { unsigned int nID; ssKey >> nID; CMasterKey kMasterKey; ssValue >> kMasterKey; if(pwallet->mapMasterKeys.count(nID) != 0) { strErr = strprintf("Error reading wallet database: duplicate CMasterKey id %u", nID); return false; } pwallet->mapMasterKeys[nID] = kMasterKey; if (pwallet->nMasterKeyMaxID < nID) pwallet->nMasterKeyMaxID = nID; } else if (strType == "ckey") { vector<unsigned char> vchPubKey; ssKey >> vchPubKey; vector<unsigned char> vchPrivKey; ssValue >> vchPrivKey; if (!pwallet->LoadCryptedKey(vchPubKey, vchPrivKey)) { strErr = "Error reading wallet database: LoadCryptedKey failed"; return false; } fIsEncrypted = true; } else if (strType == "defaultkey") { ssValue >> pwallet->vchDefaultKey; } else if (strType == "pool") { int64 nIndex; ssKey >> nIndex; pwallet->setKeyPool.insert(nIndex); } else if (strType == "version") { ssValue >> nFileVersion; if (nFileVersion == 10300) nFileVersion = 300; } else if (strType == "cscript") { uint160 hash; ssKey >> hash; CScript script; ssValue >> script; if (!pwallet->LoadCScript(script)) { strErr = "Error reading wallet database: LoadCScript failed"; return false; } } else if (strType == "orderposnext") { ssValue >> pwallet->nOrderPosNext; } } catch (...) { return false; } return true; } static bool IsKeyType(string strType) { return (strType== "key" || strType == "wkey" || strType == "mkey" || strType == "ckey"); } DBErrors CWalletDB::LoadWallet(CWallet* pwallet) { pwallet->vchDefaultKey = CPubKey(); int nFileVersion = 0; vector<uint256> vWalletUpgrade; bool fIsEncrypted = false; bool fAnyUnordered = false; bool fNoncriticalErrors = false; DBErrors result = DB_LOAD_OK; try { LOCK(pwallet->cs_wallet); int nMinVersion = 0; if (Read((string)"minversion", nMinVersion)) { if (nMinVersion > CLIENT_VERSION) return DB_TOO_NEW; pwallet->LoadMinVersion(nMinVersion); } // Get cursor Dbc* pcursor = GetCursor(); if (!pcursor) { printf("Error getting wallet database cursor\n"); return DB_CORRUPT; } loop { // Read next record CDataStream ssKey(SER_DISK, CLIENT_VERSION); CDataStream ssValue(SER_DISK, CLIENT_VERSION); int ret = ReadAtCursor(pcursor, ssKey, ssValue); if (ret == DB_NOTFOUND) break; else if (ret != 0) { printf("Error reading next record from wallet database\n"); return DB_CORRUPT; } // Try to be tolerant of single corrupt records: string strType, strErr; if (!ReadKeyValue(pwallet, ssKey, ssValue, nFileVersion, vWalletUpgrade, fIsEncrypted, fAnyUnordered, strType, strErr)) { // losing keys is considered a catastrophic error, anything else // we assume the user can live with: if (IsKeyType(strType)) result = DB_CORRUPT; else { // Leave other errors alone, if we try to fix them we might make things worse. fNoncriticalErrors = true; // ... but do warn the user there is something wrong. if (strType == "tx") // Rescan if there is a bad transaction record: SoftSetBoolArg("-rescan", true); } } if (!strErr.empty()) printf("%s\n", strErr.c_str()); } pcursor->close(); } catch (boost::thread_interrupted) { throw; } catch (...) { result = DB_CORRUPT; } if (fNoncriticalErrors && result == DB_LOAD_OK) result = DB_NONCRITICAL_ERROR; // Any wallet corruption at all: skip any rewriting or // upgrading, we don't want to make it worse. if (result != DB_LOAD_OK) return result; printf("nFileVersion = %d\n", nFileVersion); BOOST_FOREACH(uint256 hash, vWalletUpgrade) WriteTx(hash, pwallet->mapWallet[hash]); // Rewrite encrypted wallets of versions 0.4.0 and 0.5.0rc: if (fIsEncrypted && (nFileVersion == 40000 || nFileVersion == 50000)) return DB_NEED_REWRITE; if (nFileVersion < CLIENT_VERSION) // Update WriteVersion(CLIENT_VERSION); if (fAnyUnordered) result = ReorderTransactions(pwallet); return result; } void ThreadFlushWalletDB(const string& strFile) { // Make this thread recognisable as the wallet flushing thread RenameThread("cummingtonite-wallet"); static bool fOneThread; if (fOneThread) return; fOneThread = true; if (!GetBoolArg("-flushwallet", true)) return; unsigned int nLastSeen = nWalletDBUpdated; unsigned int nLastFlushed = nWalletDBUpdated; int64 nLastWalletUpdate = GetTime(); while (true) { MilliSleep(500); if (nLastSeen != nWalletDBUpdated) { nLastSeen = nWalletDBUpdated; nLastWalletUpdate = GetTime(); } if (nLastFlushed != nWalletDBUpdated && GetTime() - nLastWalletUpdate >= 2) { TRY_LOCK(bitdb.cs_db,lockDb); if (lockDb) { // Don't do this if any databases are in use int nRefCount = 0; map<string, int>::iterator mi = bitdb.mapFileUseCount.begin(); while (mi != bitdb.mapFileUseCount.end()) { nRefCount += (*mi).second; mi++; } if (nRefCount == 0) { boost::this_thread::interruption_point(); map<string, int>::iterator mi = bitdb.mapFileUseCount.find(strFile); if (mi != bitdb.mapFileUseCount.end()) { printf("Flushing wallet.dat\n"); nLastFlushed = nWalletDBUpdated; int64 nStart = GetTimeMillis(); // Flush wallet.dat so it's self contained bitdb.CloseDb(strFile); bitdb.CheckpointLSN(strFile); bitdb.mapFileUseCount.erase(mi++); printf("Flushed wallet.dat %"PRI64d"ms\n", GetTimeMillis() - nStart); } } } } } } bool BackupWallet(const CWallet& wallet, const string& strDest) { if (!wallet.fFileBacked) return false; while (true) { { LOCK(bitdb.cs_db); if (!bitdb.mapFileUseCount.count(wallet.strWalletFile) || bitdb.mapFileUseCount[wallet.strWalletFile] == 0) { // Flush log data to the dat file bitdb.CloseDb(wallet.strWalletFile); bitdb.CheckpointLSN(wallet.strWalletFile); bitdb.mapFileUseCount.erase(wallet.strWalletFile); // Copy wallet.dat filesystem::path pathSrc = GetDataDir() / wallet.strWalletFile; filesystem::path pathDest(strDest); if (filesystem::is_directory(pathDest)) pathDest /= wallet.strWalletFile; try { #if BOOST_VERSION >= 104000 filesystem::copy_file(pathSrc, pathDest, filesystem::copy_option::overwrite_if_exists); #else filesystem::copy_file(pathSrc, pathDest); #endif printf("copied wallet.dat to %s\n", pathDest.string().c_str()); return true; } catch(const filesystem::filesystem_error &e) { printf("error copying wallet.dat to %s - %s\n", pathDest.string().c_str(), e.what()); return false; } } } MilliSleep(100); } return false; } // // Try to (very carefully!) recover wallet.dat if there is a problem. // bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys) { // Recovery procedure: // move wallet.dat to wallet.timestamp.bak // Call Salvage with fAggressive=true to // get as much data as possible. // Rewrite salvaged data to wallet.dat // Set -rescan so any missing transactions will be // found. int64 now = GetTime(); std::string newFilename = strprintf("wallet.%"PRI64d".bak", now); int result = dbenv.dbenv.dbrename(NULL, filename.c_str(), NULL, newFilename.c_str(), DB_AUTO_COMMIT); if (result == 0) printf("Renamed %s to %s\n", filename.c_str(), newFilename.c_str()); else { printf("Failed to rename %s to %s\n", filename.c_str(), newFilename.c_str()); return false; } std::vector<CDBEnv::KeyValPair> salvagedData; bool allOK = dbenv.Salvage(newFilename, true, salvagedData); if (salvagedData.empty()) { printf("Salvage(aggressive) found no records in %s.\n", newFilename.c_str()); return false; } printf("Salvage(aggressive) found %"PRIszu" records\n", salvagedData.size()); bool fSuccess = allOK; Db* pdbCopy = new Db(&dbenv.dbenv, 0); int ret = pdbCopy->open(NULL, // Txn pointer filename.c_str(), // Filename "main", // Logical db name DB_BTREE, // Database type DB_CREATE, // Flags 0); if (ret > 0) { printf("Cannot create database file %s\n", filename.c_str()); return false; } CWallet dummyWallet; int nFileVersion = 0; vector<uint256> vWalletUpgrade; bool fIsEncrypted = false; bool fAnyUnordered = false; DbTxn* ptxn = dbenv.TxnBegin(); BOOST_FOREACH(CDBEnv::KeyValPair& row, salvagedData) { if (fOnlyKeys) { CDataStream ssKey(row.first, SER_DISK, CLIENT_VERSION); CDataStream ssValue(row.second, SER_DISK, CLIENT_VERSION); string strType, strErr; bool fReadOK = ReadKeyValue(&dummyWallet, ssKey, ssValue, nFileVersion, vWalletUpgrade, fIsEncrypted, fAnyUnordered, strType, strErr); if (!IsKeyType(strType)) continue; if (!fReadOK) { printf("WARNING: CWalletDB::Recover skipping %s: %s\n", strType.c_str(), strErr.c_str()); continue; } } Dbt datKey(&row.first[0], row.first.size()); Dbt datValue(&row.second[0], row.second.size()); int ret2 = pdbCopy->put(ptxn, &datKey, &datValue, DB_NOOVERWRITE); if (ret2 > 0) fSuccess = false; } ptxn->commit(0); pdbCopy->close(0); delete pdbCopy; return fSuccess; } bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename) { return CWalletDB::Recover(dbenv, filename, false); }
[ "cummingtonite@gmx.us" ]
cummingtonite@gmx.us
8c91544358a61c2aa101759d2c325e32270fe16e
0cb85cd0c88a9b9f0cca4472742c2bf9febef2d8
/Extract/Mail/MSOE/msoe.h
9de170e8903845efb849f614f9bf29b0657e4f35
[]
no_license
seth1002/antivirus-1
9dfbadc68e16e51f141ac8b3bb283c1d25792572
3752a3b20e1a8390f0889f6192ee6b851e99e8a4
refs/heads/master
2020-07-15T00:30:19.131934
2016-07-21T13:59:11
2016-07-21T13:59:11
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,497
h
////////////////////////////////////////////////////////////////////////// // Header file for OE objects #pragma warning ( disable : 4786 ) //#define _WIN32_DCOM #include <stdio.h> #include <wchar.h> #include <objbase.h> #include <crtdbg.h> #include <vector> #include <map> #include <string> #include "msoe_base.h" #include "msoeAPI.h" #define MSOE_MAILSYSTEM MAIL_OS_TYPE_SYSTEM #define MSOE_DATABASE MAIL_OS_TYPE_DBX #define MSOE_MESSAGE MAIL_OS_TYPE_MIME #define MSOE_MESSAGE_PART 3 #define MSOE_MESSAGE_OBJ 4 #define MSOE_MESSAGE_EMB 5 class PROEMailSystem; class PROEIdentityDatabase; class PROEDatabase; class PROEMessage; class PROEDBMessage; class PROEMessagePart; ////////////////////////////////////////////////////////////////////////// // PROEMailSystem class class PROEMailSystem : public PROEObject { public: PROEMailSystem(); ~PROEMailSystem(); virtual tERROR Init(); tERROR GetNext(PROEObject *&p_obj); private: typedef std::vector<PROEIdentityDatabase*> TIdentities; TIdentities m_idetities; HANDLE m_token_old; HANDLE m_token_new; }; ////////////////////////////////////////////////////////////////////////// // PROEMailSystem class class PROEVistaMail : public PROEObject { public: PROEVistaMail(PROEObject* p_parent = NULL, hObjPtr hPtr = NULL); ~PROEVistaMail(); virtual tERROR Init(); PROEObject * LoadChild(PRPrmBuff &p_buff); tERROR SaveChild(PRPrmBuff &p_buff, PROEObject *p_obj); tERROR GetName(PRPrmBuff &p_buff); tERROR GetCurObj(PROEObject *&p_obj); tERROR ChangeTo(const char* name); tERROR GetNext(PROEObject *&p_obj); tERROR GetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); private: hObjPtr m_nfio_ptr; HANDLE m_token_old; HANDLE m_token_new; tBOOL m_is_folders; tCHAR m_name[MAX_PATH]; }; ////////////////////////////////////////////////////////////////////////// // PROEDatabase class class PROEDatabaseBase { public: PROEDatabaseBase(const char *p_dbx_file = NULL); ~PROEDatabaseBase(){ Close(); } bool CheckPath(); HRESULT Open(tagTABLESCHEMA *p_schema); void Close(); public: IDatabaseSession * m_session; std::string m_dbx_file; DWORD m_attrs; IDatabase * m_idb; HROWSET__* m_rowset; IDatabaseExtension m_db_ext; tBOOL m_com_inited; }; ////////////////////////////////////////////////////////////////////////// // PROEDatabase class class PROEDatabase : public PROEObject, private PROEDatabaseBase { public: PROEDatabase(PROEObject *p_parent); PROEDatabase(const char *p_dbx_file, tagFOLDERINFO *p_fldinfo); PROEDatabase(hIO p_io); void SetParent(PROEDatabase *p_parent); virtual ~PROEDatabase(); virtual tERROR Init(); virtual tERROR Commit(); virtual PROEObject * LoadChild(PRPrmBuff &p_buff); virtual tERROR SaveChild(PRPrmBuff &p_buff, PROEObject *p_obj); // iObjPtr virtual tERROR GetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual tERROR GetName(PRPrmBuff &p_buff); virtual tERROR GetNext(PROEObject *&p_obj); virtual tERROR GetNextMessage(PROEObject *&p_obj); virtual tERROR GetSize(tQWORD* p_result, IO_SIZE_TYPE p_type); public: tDWORD m_record_id; tDWORD m_parent_id; protected: friend class PROEDBMessage; hOBJECT GetNativeIO(); std::string m_name; DWORD m_pos; DWORD m_msgcount; hIO m_tmp_nfio; hIO m_io; hIO m_nfio; DWORD m_type; typedef std::vector<PROEDatabase*> TChilds; TChilds m_childs; }; ////////////////////////////////////////////////////////////////////////// // PROEDatabaseMail class class PROEIdentityDatabase : public PROEDatabase { public: PROEIdentityDatabase(PROEMailSystem *p_parent, tDWORD p_id_pos, const char *p_identity, const char *p_dbx_path); ~PROEIdentityDatabase(); virtual tERROR Init(); // Methods tERROR GetName(PRPrmBuff &p_buff); private: friend class PROEMailSystem; std::string m_dbx_path; std::string m_identity; tDWORD m_id_pos; }; ////////////////////////////////////////////////////////////////////////// // PROEMessage class class PROEMessage : public PROEObject { public: PROEMessage(PROEObject *p_parent = NULL); ~PROEMessage(); virtual tERROR Init(); virtual tORIG_ID GetOrigin(){ return OID_MAIL_MSG_MIME; } virtual PROEObject * LoadChild(PRPrmBuff &p_buff); virtual tERROR SaveChild(PRPrmBuff &p_buff, PROEObject *p_obj); // iObjPtr virtual tERROR GetName(PRPrmBuff &p_buff); virtual tERROR GetNext(PROEObject *&p_obj); virtual tERROR GetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual tERROR SetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual IStream * GetStream(){ return NULL; } virtual tERROR GetSize(tQWORD* p_result, IO_SIZE_TYPE p_type); virtual PROEObject * CreateChild(tDWORD p_create_mode, tCHAR *p_obj_name); protected: tERROR GetHeaders(PRPrmBuff &p_buff); tERROR GetBodyName(HBODY__ *p_body, tSTRING p_buff, tSIZE_T p_buff_sz); tERROR GetBodyID(HBODY__ *p_body, tCHAR *p_id_buff); tERROR GetBodyHash(HBODY__ *p_body, tQWORD *p_id_hash); tERROR DeleteAllBodies(); friend class PROEMessagePart; IMimeMessageW * m_imsg; DWORD m_partnum; HBODY__ ** m_bodies; std::string m_x_prop; tBOOL m_com_inited; }; class PROEDBMessage : public PROEMessage { public: PROEDBMessage(PROEDatabase *p_db, DWORD p_pos, tagMESSAGEINFO *p_info); virtual IStream * GetStream(); virtual tERROR GetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual tERROR Commit(); virtual tERROR Delete(); bool IsAtachments(); private: friend class PROEDatabase; IDatabase * m_idb; DWORD m_pos; DWORD m_offset; DWORD m_record_id; }; class PROEIOMessage : public PROEMessage { public: PROEIOMessage(hIO p_io, PROEObject* pParent = NULL) : PROEMessage(pParent), m_io(p_io), m_stream(NULL){} ~PROEIOMessage(); virtual IStream * GetStream(); virtual tERROR SetAccessMode(tDWORD p_access_mode); virtual tERROR Commit(); public: hIO m_io; IStream * m_stream; }; ////////////////////////////////////////////////////////////////////////// // PROEMessagePart class class PROEMessagePart : public PROEObject { public: PROEMessagePart(PROEMessage *p_msg, HBODY__ *p_body, DWORD p_pos); ~PROEMessagePart(); virtual tERROR Init(); virtual tORIG_ID GetOrigin(); virtual tDWORD GetAvailability(){ return PROEObject::GetAvailability()|fAVAIL_READ|fAVAIL_WRITE|fAVAIL_EXTEND|fAVAIL_TRUNCATE; } virtual tERROR SetAccessMode(tDWORD p_access_mode); virtual tERROR GetName(PRPrmBuff &p_buff); virtual tERROR GetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual tERROR SetProp(tPROPID p_prop_id, PRPrmBuff &p_buff); virtual tERROR Delete(); virtual tERROR Commit(); // iIO virtual tERROR SeekRead(tDWORD* p_result, tQWORD p_offset, tPTR p_buffer, tDWORD p_size); virtual tERROR SeekWrite(tDWORD* p_result, tQWORD p_offset, tPTR p_buffer, tDWORD p_size); virtual tERROR GetSize(tQWORD* p_result, IO_SIZE_TYPE p_type); virtual tERROR SetSize(tQWORD p_new_size); virtual tERROR Flush(); tORIG_ID m_origin; private: friend class PROEMessage; inline void SetBody(HBODY__ *p_body); DWORD m_pos; IMimeMessageW * m_imsg; HBODY__ * m_body; IStream * m_stream; IStream * m_mdf_stream; hIO m_mdf_io; std::string m_x_prop; }; ////////////////////////////////////////////////////////////////////////// class PRVarProp : public VARIANT { public: PRVarProp(int p_type){ vt = p_type; pbVal=0; m_buff=NULL; } ~PRVarProp() { if( (vt == VT_LPSTR || vt == VT_LPWSTR) && pbVal ) CoTaskMemFree(pbVal); if( m_buff ) free(m_buff); } operator tagPROPVARIANT*() { return (tagPROPVARIANT*)this; } operator const char*() { if( vt == VT_LPSTR ) return (char*)pbVal; if( vt != VT_LPWSTR || !pbVal ) return ""; if( m_buff ) return m_buff; long buflen = WideCharToMultiByte(CP_ACP, 0, (LPWSTR)pbVal, -1, NULL, 0, NULL, NULL); if( buflen == 0 ) return ""; m_buff = (char*)malloc(buflen); if( !WideCharToMultiByte(CP_ACP, 0, (LPWSTR)pbVal, -1, m_buff, buflen, NULL, NULL) ) return ""; return m_buff; } private: char* m_buff; }; class PRBuffProp : public VARIANT { public: PRBuffProp(int p_type, PRPrmBuff &p_buff){vt = p_type; pbVal = (PBYTE)p_buff.m_buff;} }; #define GET_PROP(var, prop) \ m_imsg->GetPropA((char*)prop, 0, (tagPROPVARIANT*)&var) #define SET_PROP(var, prop) \ m_imsg->SetPropA((char*)prop, 0, (tagPROPVARIANT*)&var) #define GET_BODY_PROP(var, prop) \ m_imsg->GetBodyProp(m_body, (char*)prop, 0, (tagPROPVARIANT*)&var) #define SET_BODY_PROP(var, prop) \ m_imsg->SetBodyProp(m_body, (char*)prop, 0, (tagPROPVARIANT*)&var) #define COPY_BODY_PROP(dst, prop) \ PRVarProp l_##prop(VT_LPSTR); \ if( !FAILED(m_imsg->GetBodyProp(m_body, (char*)prop, 0, (tagPROPVARIANT*)&l_##prop)) ) \ m_imsg->SetBodyProp(dst, (char*)prop, 0, (tagPROPVARIANT*)&l_##prop) #define GET_STREAM() \ IStream *l_stream = m_mdf_stream ? m_mdf_stream : m_stream; \ if( !l_stream ) return errOBJECT_NOT_INITIALIZED; #define LLONGDEF(name, val) LARGE_INTEGER name; name.QuadPart = val #define ULLONGDEF(name, val) ULARGE_INTEGER name; name.QuadPart = val //////////////////////////////////////////////////////////////////////////
[ "idrez.mochamad@gmail.com" ]
idrez.mochamad@gmail.com
8820afb26bea41fa630f1ec16322cc97648baadf
90c9dc885340e28c421f129396a593b9b60e0ce1
/src/GAME/zEntTrigger.cpp
6c7ef024f3fbbcc041589ad6686f0c17b830eb5b
[]
no_license
Gota7/incredibles
3b493718fb1a1145371811966a2024b5c8fec39f
14dd4a94edbe84c30482a8e873b5c8e9f48d1535
refs/heads/main
2023-06-16T12:38:46.252815
2021-07-10T07:59:53
2021-07-10T07:59:53
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,129
cpp
#include "zEntTrigger.h" #include <types.h> // func_800C22E4 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerInit__FPvPv") // func_800C2304 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerInit__FP11zEntTriggerP9xEntAsset") // func_800C24AC #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "xMat3x3RMulVec__FP5xVec3PC7xMat3x3PC5xVec3_17") // func_800C2510 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerUpdate__FP11zEntTriggerP6xScenef") // func_800C2808 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerEventCB__FP5xBaseP5xBaseUiPCfP5xBaseUi") // func_800C28B0 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerSave__FP11zEntTriggerP7xSerial") // func_800C28D0 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerLoad__FP11zEntTriggerP7xSerial") // func_800C28F0 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerReset__FP11zEntTrigger") // func_800C29C8 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "zEntTriggerHitsSphere__FRC11zEntTriggerRC7xSphereRC5xVec3") // func_800C2AD4 #pragma GLOBAL_ASM("asm/GAME/zEntTrigger.s", "xSphereHitsVCircle__FRC7xSphereRC5xVec3f")
[ "32021834+seilweiss@users.noreply.github.com" ]
32021834+seilweiss@users.noreply.github.com
9a43ff4f293ce8bc0f89e2f7ef19e9cbb994d4a7
ee1ad04e4743df2a09969d82cb281623cab5bc70
/src/qtenv/messageitem.h
812df2243e5c31ba827f94abf4cde9f374427577
[]
no_license
sksamal/omnetpp-5.0
aea8fb3c63f59395addf611c14aadab3922c07c9
2aa86b33dc750dcc971e9c1a87f3f25bb7265734
refs/heads/master
2021-01-09T01:55:02.551530
2017-06-12T20:08:43
2017-06-12T20:08:43
242,204,571
1
0
null
null
null
null
UTF-8
C++
false
false
2,689
h
//========================================================================== // MESSAGEITEM.H - part of // // OMNeT++/OMNEST // Discrete System Simulation in C++ // //========================================================================== /*--------------------------------------------------------------* Copyright (C) 1992-2015 Andras Varga Copyright (C) 2006-2015 OpenSim Ltd. This file is distributed WITHOUT ANY WARRANTY. See the file `license' for details on this and other legal matters. *--------------------------------------------------------------*/ #ifndef __OMNETPP_QTENV_MESSAGEITEM_H #define __OMNETPP_QTENV_MESSAGEITEM_H #include "qtutil.h" #include <QGraphicsColorizeEffect> #include <QGraphicsObject> namespace omnetpp { namespace qtenv { class MessageItem; class MessageItemUtil { static QVector<QColor> msgKindColors; public: static void setupFromDisplayString(MessageItem *mi, cMessage *msg, double imageSizeFactor); }; class MessageItem : public QGraphicsObject { Q_OBJECT public: enum Shape { SHAPE_NONE, SHAPE_OVAL, SHAPE_RECT }; protected: double imageSizeFactor = 1; // no zoom factor, it doesn't affect messages QImage *image = nullptr; QColor shapeFillColor = QColor("red"); QColor shapeOutlineColor = QColor("red"); double shapeOutlineWidth = 0; double shapeWidth = 10; double shapeHeight = 10; Shape shape = SHAPE_OVAL; QString text; OutlinedTextItem *textItem; QAbstractGraphicsShapeItem *shapeItem = nullptr; QGraphicsPixmapItem *imageItem = nullptr; // TODO FIXME - this effect does not look the same as the one in tkenv QGraphicsColorizeEffect *colorizeEffect = nullptr; // owned by the image item QRectF shapeImageBoundingRect() const; void updateTextItem(); void updateShapeItem(); void updateImageItem(); public: explicit MessageItem(QGraphicsItem *parent = nullptr); virtual ~MessageItem(); void setImageSizeFactor(double imageSize); void setText(const QString &text); void setShape(Shape shape); void setWidth(double width); void setHeight(double height); void setFillColor(const QColor &color); void setOutlineColor(const QColor &color); void setOutlineWidth(double width); void setImage(QImage *image); void setImageColor(const QColor &color); void setImageColorPercentage(int percent); QRectF boundingRect() const override; void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; }; } // namespace qtenv } // namespace omnetpp #endif // __OMNETPP_QTENV_MESSAGEITEM_H
[ "sksamal@gmail.com" ]
sksamal@gmail.com
cb90a4fa51509b31c84ac7c9966d6a253bf0ffd4
9030ce2789a58888904d0c50c21591632eddffd7
/SDK/ARKSurvivalEvolved_PrimalItemSkin_Sweater_TheHunted_parameters.hpp
5fac282284ffb829e857f7492d07e471c8633cc4
[ "MIT" ]
permissive
2bite/ARK-SDK
8ce93f504b2e3bd4f8e7ced184980b13f127b7bf
ce1f4906ccf82ed38518558c0163c4f92f5f7b14
refs/heads/master
2022-09-19T06:28:20.076298
2022-09-03T17:21:00
2022-09-03T17:21:00
232,411,353
14
5
null
null
null
null
UTF-8
C++
false
false
794
hpp
#pragma once // ARKSurvivalEvolved (332.8) SDK #ifdef _MSC_VER #pragma pack(push, 0x8) #endif #include "ARKSurvivalEvolved_PrimalItemSkin_Sweater_TheHunted_classes.hpp" namespace sdk { //--------------------------------------------------------------------------- //Parameters //--------------------------------------------------------------------------- // Function PrimalItemSkin_Sweater_TheHunted.PrimalItemSkin_Sweater_TheHunted_C.ExecuteUbergraph_PrimalItemSkin_Sweater_TheHunted struct UPrimalItemSkin_Sweater_TheHunted_C_ExecuteUbergraph_PrimalItemSkin_Sweater_TheHunted_Params { int EntryPoint; // (Parm, ZeroConstructor, IsPlainOldData) }; } #ifdef _MSC_VER #pragma pack(pop) #endif
[ "sergey.2bite@gmail.com" ]
sergey.2bite@gmail.com
c9be9eb3429fd403d2ec93ea086add01fa7aef79
71501709864eff17c873abbb97ffabbeba4cb5e3
/llvm8.0.0/lldb/source/Plugins/SystemRuntime/MacOSX/SystemRuntimeMacOSX.h
5fa78cee4640690538fb90c56098f22f195fd264
[ "NCSA" ]
permissive
LEA0317/LLVM-VideoCore4
d08ba6e6f26f7893709d3285bdbd67442b3e1651
7ae2304339760685e8b5556aacc7e9eee91de05c
refs/heads/master
2022-06-22T15:15:52.112867
2022-06-09T08:45:24
2022-06-09T08:45:24
189,765,789
1
0
NOASSERTION
2019-06-01T18:31:29
2019-06-01T18:31:29
null
UTF-8
C++
false
false
10,171
h
//===-- SystemRuntimeMacOSX.h -----------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// #ifndef liblldb_SystemRuntimeMacOSX_h_ #define liblldb_SystemRuntimeMacOSX_h_ #include <mutex> #include <string> #include <vector> // Other libraries and framework include #include "lldb/Core/ModuleList.h" #include "lldb/Target/Process.h" #include "lldb/Target/QueueItem.h" #include "lldb/Target/SystemRuntime.h" #include "lldb/Utility/ConstString.h" #include "lldb/Utility/FileSpec.h" #include "lldb/Utility/StructuredData.h" #include "lldb/Utility/UUID.h" #include "AppleGetItemInfoHandler.h" #include "AppleGetPendingItemsHandler.h" #include "AppleGetQueuesHandler.h" #include "AppleGetThreadItemInfoHandler.h" class SystemRuntimeMacOSX : public lldb_private::SystemRuntime { public: SystemRuntimeMacOSX(lldb_private::Process *process); ~SystemRuntimeMacOSX() override; //------------------------------------------------------------------ // Static Functions //------------------------------------------------------------------ static void Initialize(); static void Terminate(); static lldb_private::ConstString GetPluginNameStatic(); static const char *GetPluginDescriptionStatic(); static lldb_private::SystemRuntime * CreateInstance(lldb_private::Process *process); //------------------------------------------------------------------ // instance methods //------------------------------------------------------------------ void Clear(bool clear_process); void Detach() override; const std::vector<lldb_private::ConstString> & GetExtendedBacktraceTypes() override; lldb::ThreadSP GetExtendedBacktraceThread(lldb::ThreadSP thread, lldb_private::ConstString type) override; lldb::ThreadSP GetExtendedBacktraceForQueueItem(lldb::QueueItemSP queue_item_sp, lldb_private::ConstString type) override; lldb::ThreadSP GetExtendedBacktraceFromItemRef(lldb::addr_t item_ref); void PopulateQueueList(lldb_private::QueueList &queue_list) override; void PopulateQueuesUsingLibBTR(lldb::addr_t queues_buffer, uint64_t queues_buffer_size, uint64_t count, lldb_private::QueueList &queue_list); void PopulatePendingQueuesUsingLibBTR(lldb::addr_t items_buffer, uint64_t items_buffer_size, uint64_t count, lldb_private::Queue *queue); std::string GetQueueNameFromThreadQAddress(lldb::addr_t dispatch_qaddr) override; lldb::queue_id_t GetQueueIDFromThreadQAddress(lldb::addr_t dispatch_qaddr) override; lldb::addr_t GetLibdispatchQueueAddressFromThreadQAddress( lldb::addr_t dispatch_qaddr) override; void PopulatePendingItemsForQueue(lldb_private::Queue *queue) override; void CompleteQueueItem(lldb_private::QueueItem *queue_item, lldb::addr_t item_ref) override; lldb::QueueKind GetQueueKind(lldb::addr_t dispatch_queue_addr) override; void AddThreadExtendedInfoPacketHints( lldb_private::StructuredData::ObjectSP dict) override; bool SafeToCallFunctionsOnThisThread(lldb::ThreadSP thread_sp) override; //------------------------------------------------------------------ // PluginInterface protocol //------------------------------------------------------------------ lldb_private::ConstString GetPluginName() override; uint32_t GetPluginVersion() override; protected: lldb::user_id_t m_break_id; mutable std::recursive_mutex m_mutex; private: struct libBacktraceRecording_info { uint16_t queue_info_version; uint16_t queue_info_data_offset; uint16_t item_info_version; uint16_t item_info_data_offset; libBacktraceRecording_info() : queue_info_version(0), queue_info_data_offset(0), item_info_version(0), item_info_data_offset(0) {} }; // A structure which reflects the data recorded in the // libBacktraceRecording introspection_dispatch_item_info_s. struct ItemInfo { lldb::addr_t item_that_enqueued_this; lldb::addr_t function_or_block; uint64_t enqueuing_thread_id; uint64_t enqueuing_queue_serialnum; uint64_t target_queue_serialnum; uint32_t enqueuing_callstack_frame_count; uint32_t stop_id; std::vector<lldb::addr_t> enqueuing_callstack; std::string enqueuing_thread_label; std::string enqueuing_queue_label; std::string target_queue_label; }; // The offsets of different fields of the dispatch_queue_t structure in // a thread/queue process. // Based on libdispatch src/queue_private.h, struct dispatch_queue_offsets_s // With dqo_version 1-3, the dqo_label field is a per-queue value and cannot // be cached. // With dqo_version 4 (Mac OS X 10.9 / iOS 7), dqo_label is a constant value // that can be cached. struct LibdispatchOffsets { uint16_t dqo_version; uint16_t dqo_label; uint16_t dqo_label_size; uint16_t dqo_flags; uint16_t dqo_flags_size; uint16_t dqo_serialnum; uint16_t dqo_serialnum_size; uint16_t dqo_width; uint16_t dqo_width_size; uint16_t dqo_running; uint16_t dqo_running_size; uint16_t dqo_suspend_cnt; // version 5 and later, starting with Mac OS X // 10.10/iOS 8 uint16_t dqo_suspend_cnt_size; // version 5 and later, starting with Mac OS // X 10.10/iOS 8 uint16_t dqo_target_queue; // version 5 and later, starting with Mac OS X // 10.10/iOS 8 uint16_t dqo_target_queue_size; // version 5 and later, starting with Mac OS // X 10.10/iOS 8 uint16_t dqo_priority; // version 5 and later, starting with Mac OS X 10.10/iOS 8 uint16_t dqo_priority_size; // version 5 and later, starting with Mac OS X // 10.10/iOS 8 LibdispatchOffsets() { dqo_version = UINT16_MAX; dqo_flags = UINT16_MAX; dqo_serialnum = UINT16_MAX; dqo_label = UINT16_MAX; dqo_width = UINT16_MAX; dqo_running = UINT16_MAX; dqo_suspend_cnt = UINT16_MAX; dqo_target_queue = UINT16_MAX; dqo_target_queue = UINT16_MAX; dqo_priority = UINT16_MAX; } bool IsValid() { return dqo_version != UINT16_MAX; } bool LabelIsValid() { return dqo_label != UINT16_MAX; } }; struct LibdispatchVoucherOffsets { uint16_t vo_version; uint16_t vo_activity_ids_count; uint16_t vo_activity_ids_count_size; uint16_t vo_activity_ids_array; uint16_t vo_activity_ids_array_entry_size; LibdispatchVoucherOffsets() : vo_version(UINT16_MAX), vo_activity_ids_count(UINT16_MAX), vo_activity_ids_count_size(UINT16_MAX), vo_activity_ids_array(UINT16_MAX), vo_activity_ids_array_entry_size(UINT16_MAX) {} bool IsValid() { return vo_version != UINT16_MAX; } }; struct LibdispatchTSDIndexes { uint16_t dti_version; uint64_t dti_queue_index; uint64_t dti_voucher_index; uint64_t dti_qos_class_index; LibdispatchTSDIndexes() : dti_version(UINT16_MAX), dti_queue_index(UINT64_MAX), dti_voucher_index(UINT64_MAX), dti_qos_class_index(UINT64_MAX) {} bool IsValid() { return dti_version != UINT16_MAX; } }; struct LibpthreadOffsets { uint16_t plo_version; uint16_t plo_pthread_tsd_base_offset; uint16_t plo_pthread_tsd_base_address_offset; uint16_t plo_pthread_tsd_entry_size; LibpthreadOffsets() : plo_version(UINT16_MAX), plo_pthread_tsd_base_offset(UINT16_MAX), plo_pthread_tsd_base_address_offset(UINT16_MAX), plo_pthread_tsd_entry_size(UINT16_MAX) {} bool IsValid() { return plo_version != UINT16_MAX; } }; // The libBacktraceRecording function // __introspection_dispatch_queue_get_pending_items has // two forms. It can either return a simple array of item_refs (void *) size // or it can return // a header with uint32_t version, a uint32_t size of item, and then an array // of item_refs (void*) // and code addresses (void*) for all the pending blocks. struct ItemRefAndCodeAddress { lldb::addr_t item_ref; lldb::addr_t code_address; }; struct PendingItemsForQueue { bool new_style; // new-style means both item_refs and code_addresses avail // old-style means only item_refs is filled in std::vector<ItemRefAndCodeAddress> item_refs_and_code_addresses; }; bool BacktraceRecordingHeadersInitialized(); void ReadLibdispatchOffsetsAddress(); void ReadLibdispatchOffsets(); void ReadLibpthreadOffsetsAddress(); void ReadLibpthreadOffsets(); void ReadLibdispatchTSDIndexesAddress(); void ReadLibdispatchTSDIndexes(); PendingItemsForQueue GetPendingItemRefsForQueue(lldb::addr_t queue); ItemInfo ExtractItemInfoFromBuffer(lldb_private::DataExtractor &extractor); lldb_private::AppleGetQueuesHandler m_get_queues_handler; lldb_private::AppleGetPendingItemsHandler m_get_pending_items_handler; lldb_private::AppleGetItemInfoHandler m_get_item_info_handler; lldb_private::AppleGetThreadItemInfoHandler m_get_thread_item_info_handler; lldb::addr_t m_page_to_free; uint64_t m_page_to_free_size; libBacktraceRecording_info m_lib_backtrace_recording_info; lldb::addr_t m_dispatch_queue_offsets_addr; struct LibdispatchOffsets m_libdispatch_offsets; lldb::addr_t m_libpthread_layout_offsets_addr; struct LibpthreadOffsets m_libpthread_offsets; lldb::addr_t m_dispatch_tsd_indexes_addr; struct LibdispatchTSDIndexes m_libdispatch_tsd_indexes; lldb::addr_t m_dispatch_voucher_offsets_addr; struct LibdispatchVoucherOffsets m_libdispatch_voucher_offsets; DISALLOW_COPY_AND_ASSIGN(SystemRuntimeMacOSX); }; #endif // liblldb_SystemRuntimeMacOSX_h_
[ "kontoshi0317@gmail.com" ]
kontoshi0317@gmail.com
5206925d72347c6f40d3c17286d319671d6aeaa7
09dc610dd4530062725a65a996d304f229747e37
/engine/graphic/shape/rectangle.cpp
634376e5fd318c62f58e9136bcd0f587de2f72d7
[ "MIT" ]
permissive
linussjo/linussjo_engine
48b525affcfb5265376f140d2167dcba1a27783b
6a5db383633ffb99a2e83666e74fe7159d7b0c53
refs/heads/master
2020-08-23T08:16:49.974759
2020-07-06T16:33:24
2020-07-06T16:33:24
216,577,617
0
0
null
null
null
null
UTF-8
C++
false
false
4,076
cpp
// // rectangle.cpp // linussjo_engine // // Created by Linus Sjöström on 2019-09-22. // Copyright © 2019 Linus Sjöström. All rights reserved. // #include "rectangle.hpp" namespace engine::graphic::shape { shader rectangle::helper() { static class shader s (rec_vert.c_str(), rec_frag.c_str()); return s; } rectangle::rectangle(const math::point2d &pos, length h, length w) : shape(pos, helper()), heigth(h), width(w) { GLuint VAO; glGenBuffers(1, &this->VBO); glGenBuffers(1, &this->EBO); glGenVertexArrays(1, &VAO); this->set_graphic_id(VAO); } rectangle::rectangle(const math::point2d &pos, const class shader &s) : shape(pos, s) { GLuint VAO; glGenBuffers(1, &this->VBO); glGenBuffers(1, &this->EBO); glGenVertexArrays(1, &VAO); this->set_graphic_id(VAO); } bool rectangle::has_focus(const math::point2d &focus_pos, length width, length height) { // to be implemented return false; } int rectangle::draw(const unsigned int& width, const unsigned int& height){ this->shader.use(); // set up vertex data (and buffer(s)) and configure vertex attributes // ------------------------------------------------------------------ const GLuint shader_programme = this->shader.ID; float tl_x = ((float)this->pos.x) / (width/2) - 1.0f; float tl_y = ((float)height-this->pos.y) / (height/2) - 1.0f; float tr_x = ((float)this->pos.x+this->width) / (width/2) - 1.0f ; float tr_y = ((float)height-this->pos.y) / (height/2) - 1.0f; float bl_x = ((float)this->pos.x) / (width/2) - 1.0f; float bl_y = ((float)height-this->pos.y-this->heigth) / (float)(height/2) - 1.0f; float br_x = ((float)this->pos.x+this->width) / (width/2) - 1.0f; float br_y = ((float)height-this->pos.y-this->heigth) / (float)(height/2) - 1.0f; float vertices[] = { tr_x, tr_y, 0.0f, // top right br_x, br_y, 0.0f, // bottom right bl_x, bl_y, 0.0f, // bottom left tl_x, tl_y, 0.0f // top left }; unsigned int indices[] = { // note that we start from 0! 0, 1, 3, // first Triangle 1, 2, 3 // second Triangle }; GLuint VAO = this->get_graphic_id(); // bind the Vertex Array Object first, then bind and set vertex buffer(s), and then configure vertex attributes(s). glBindVertexArray(VAO); glUseProgram(shader_programme); glBindBuffer(GL_ARRAY_BUFFER, VBO); glBufferData(GL_ARRAY_BUFFER, sizeof(vertices), vertices, GL_DYNAMIC_DRAW); glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, EBO); glBufferData(GL_ELEMENT_ARRAY_BUFFER, sizeof(indices), indices, GL_DYNAMIC_DRAW); glVertexAttribPointer(0, 3, GL_FLOAT, GL_FALSE, 3 * sizeof(float), (void*)0); glEnableVertexAttribArray(0); // note that this is allowed, the call to glVertexAttribPointer registered VBO as the vertex attribute's bound vertex buffer object so afterwards we can safely unbind glBindBuffer(GL_ARRAY_BUFFER, 0); if(this->filled) glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); else glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); this->prepared = true; this->set_graphic_id(VAO); GLint color_location = glGetUniformLocation(shader_programme, "uColor"); float color[4] = {(float)this->color.r/255, (float)this->color.g/255, (float)this->color.b/255, 1.0f}; glUniform4fv(color_location, 1, color); glDrawElements(GL_TRIANGLES, 6, GL_UNSIGNED_INT, 0); // set back to some default values glBindVertexArray(0); glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); return VAO; } rectangle::~rectangle() { glDeleteBuffers(1, &this->VBO); glDeleteBuffers(1, &this->EBO); } }
[ "lisj@netlight.se" ]
lisj@netlight.se
348d27d87ebbfddae8b1b0c32ec4f2858fd9e4df
e76ea38dbe5774fccaf14e1a0090d9275cdaee08
/src/chrome/browser/profile_resetter/jtl_interpreter_unittest.cc
26f69a67e1989e437eda8da2a93dcdbc857e05bf
[ "BSD-3-Clause" ]
permissive
eurogiciel-oss/Tizen_Crosswalk
efc424807a5434df1d5c9e8ed51364974643707d
a68aed6e29bd157c95564e7af2e3a26191813e51
refs/heads/master
2021-01-18T19:19:04.527505
2014-02-06T13:43:21
2014-02-06T13:43:21
16,070,101
1
3
null
null
null
null
UTF-8
C++
false
false
21,926
cc
// Copyright 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/profile_resetter/jtl_interpreter.h" #include "base/strings/string_util.h" #include "base/test/values_test_util.h" #include "chrome/browser/profile_resetter/jtl_foundation.h" #include "chrome/browser/profile_resetter/jtl_instructions.h" #include "crypto/hmac.h" #include "testing/gtest/include/gtest/gtest.h" namespace { const char seed[] = "foobar"; #define KEY_HASH_1 GetHash("KEY_HASH_1") #define KEY_HASH_2 GetHash("KEY_HASH_2") #define KEY_HASH_3 GetHash("KEY_HASH_3") #define KEY_HASH_4 GetHash("KEY_HASH_4") #define VALUE_HASH_1 GetHash("VALUE_HASH_1") #define VALUE_HASH_2 GetHash("VALUE_HASH_2") #define VAR_HASH_1 "01234567890123456789012345678901" #define VAR_HASH_2 "12345678901234567890123456789012" std::string GetHash(const std::string& input) { return jtl_foundation::Hasher(seed).GetHash(input); } // escaped_json_param may contain ' characters that are replaced with ". This // makes the code more readable because we need less escaping. #define INIT_INTERPRETER(program_param, escaped_json_param) \ const char* escaped_json = escaped_json_param; \ std::string json; \ ReplaceChars(escaped_json, "'", "\"", &json); \ scoped_ptr<Value> json_value(ParseJson(json)); \ JtlInterpreter interpreter( \ seed, \ program_param, \ static_cast<const DictionaryValue*>(json_value.get())); \ interpreter.Execute() using base::test::ParseJson; TEST(JtlInterpreter, Store) { INIT_INTERPRETER( OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, NavigateAndStore) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, FailNavigate) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); } TEST(JtlInterpreter, ConsecutiveNavigate) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, FailConsecutiveNavigate) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1': 'foo' }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); } TEST(JtlInterpreter, NavigateAnyInDictionary) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE_ANY + OP_NAVIGATE(KEY_HASH_4) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1':" " { 'KEY_HASH_2': {'KEY_HASH_3': 'VALUE_HASH_1' }," " 'KEY_HASH_3': {'KEY_HASH_4': 'VALUE_HASH_1' }" " } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, NavigateAnyInList) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE_ANY + OP_NAVIGATE(KEY_HASH_4) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1':" " [ {'KEY_HASH_3': 'VALUE_HASH_1' }," " {'KEY_HASH_4': 'VALUE_HASH_1' }" " ] }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, NavigateBack) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_NAVIGATE_BACK + OP_NAVIGATE(KEY_HASH_3) + OP_NAVIGATE(KEY_HASH_4) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), "{ 'KEY_HASH_1':" " { 'KEY_HASH_2': {'KEY_HASH_3': 'VALUE_HASH_1' }," " 'KEY_HASH_3': {'KEY_HASH_4': 'VALUE_HASH_1' }" " } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); } TEST(JtlInterpreter, StoreTwoValues) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE) + OP_STORE_HASH(VAR_HASH_2, VALUE_HASH_1), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); base::ExpectDictStringValue(VALUE_HASH_1, *interpreter.working_memory(), VAR_HASH_2); } TEST(JtlInterpreter, CompareStoredMatch) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE) + OP_NAVIGATE(KEY_HASH_2) + OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_TRUE, VALUE_FALSE) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_2); } TEST(JtlInterpreter, CompareStoredMismatch) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE) + OP_NAVIGATE(KEY_HASH_2) + OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_FALSE, VALUE_TRUE) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } TEST(JtlInterpreter, CompareStoredNoValueMatchingDefault) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_TRUE, VALUE_TRUE) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_2); } TEST(JtlInterpreter, CompareStoredNoValueMismatchingDefault) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_TRUE, VALUE_FALSE) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } TEST(JtlInterpreter, CompareBool) { struct TestCase { std::string expected_value; const char* json; bool expected_success; } cases[] = { { VALUE_TRUE, "{ 'KEY_HASH_1': true }", true }, { VALUE_FALSE, "{ 'KEY_HASH_1': false }", true }, { VALUE_TRUE, "{ 'KEY_HASH_1': false }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 'abc' }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1.2 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': [1] }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_COMPARE_NODE_BOOL(cases[i].expected_value) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_1); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); } } } TEST(JtlInterpreter, CompareHashString) { struct TestCase { std::string expected_value; const char* json; bool expected_success; } cases[] = { { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", true }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_2' }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': true }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 1 }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 1.1 }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': [1] }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.2 }", true }, { GetHash("1.2"), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': true }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.3 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': [1] }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 1 }", true }, { GetHash("1"), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { GetHash("1"), "{ 'KEY_HASH_1': true }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 2 }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 1.1 }", false }, { GetHash("1"), "{ 'KEY_HASH_1': [1] }", false }, { GetHash("1"), "{ 'KEY_HASH_1': {'a': 'b'} }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_COMPARE_NODE_HASH(cases[i].expected_value) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_1); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); } } for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Negated, Iteration " << i); INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_COMPARE_NODE_HASH_NOT(cases[i].expected_value) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (!cases[i].expected_success) { base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_1); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); } } } TEST(JtlInterpreter, StoreNodeBool) { struct TestCase { bool expected_value; const char* json; bool expected_success; } cases[] = { { true, "{ 'KEY_HASH_1': true }", true }, { false, "{ 'KEY_HASH_1': false }", true }, { false, "{ 'KEY_HASH_1': 'abc' }", false }, { false, "{ 'KEY_HASH_1': 1 }", false }, { false, "{ 'KEY_HASH_1': 1.2 }", false }, { false, "{ 'KEY_HASH_1': [1] }", false }, { false, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_STORE_NODE_BOOL(VAR_HASH_1) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictBooleanValue( cases[i].expected_value, *interpreter.working_memory(), VAR_HASH_1); base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_2); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } } } TEST(JtlInterpreter, CompareNodeToStoredBool) { struct TestCase { std::string stored_value; const char* json; bool expected_success; } cases[] = { { VALUE_TRUE, "{ 'KEY_HASH_1': true }", true }, { VALUE_FALSE, "{ 'KEY_HASH_1': false }", true }, { VALUE_FALSE, "{ 'KEY_HASH_1': true }", false }, { std::string(), "{ 'KEY_HASH_1': true }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 1 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.2 }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': true }", false }, { GetHash("1"), "{ 'KEY_HASH_1': true }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': true }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1.2 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': [1] }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); std::string store_op; if (cases[i].stored_value == VALUE_TRUE || cases[i].stored_value == VALUE_FALSE) store_op = OP_STORE_BOOL(VAR_HASH_1, cases[i].stored_value); else if (!cases[i].stored_value.empty()) store_op = OP_STORE_HASH(VAR_HASH_1, cases[i].stored_value); INIT_INTERPRETER( store_op + OP_NAVIGATE(KEY_HASH_1) + OP_COMPARE_NODE_TO_STORED_BOOL(VAR_HASH_1) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_2); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } } } TEST(JtlInterpreter, StoreNodeHash) { struct TestCase { std::string expected_value; const char* json; bool expected_success; } cases[] = { { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", true }, { VALUE_HASH_2, "{ 'KEY_HASH_1': 'VALUE_HASH_2' }", true }, { GetHash("1"), "{ 'KEY_HASH_1': 1 }", true }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.2 }", true }, { std::string(), "{ 'KEY_HASH_1': true }", false }, { std::string(), "{ 'KEY_HASH_1': [1] }", false }, { std::string(), "{ 'KEY_HASH_1': {'a': 'b'} }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_STORE_NODE_HASH(VAR_HASH_1) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictStringValue( cases[i].expected_value, *interpreter.working_memory(), VAR_HASH_1); base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_2); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_1)); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } } } TEST(JtlInterpreter, CompareNodeToStoredHash) { struct TestCase { std::string stored_value; const char* json; bool expected_success; } cases[] = { { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", true }, { VALUE_HASH_2, "{ 'KEY_HASH_1': 'VALUE_HASH_2' }", true }, { std::string(), "{ 'KEY_HASH_1': 'VALUE_HASH_2' }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 'VALUE_HASH_2' }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': true }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 1 }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': 1.1 }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': [1] }", false }, { VALUE_HASH_1, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.2 }", true }, { GetHash("1.3"), "{ 'KEY_HASH_1': 1.3 }", true }, { std::string(), "{ 'KEY_HASH_1': 1.2 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': true }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': 1.3 }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': [1] }", false }, { GetHash("1.2"), "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 1 }", true }, { GetHash("2"), "{ 'KEY_HASH_1': 2 }", true }, { std::string(), "{ 'KEY_HASH_1': 2 }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { GetHash("1"), "{ 'KEY_HASH_1': true }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 2 }", false }, { GetHash("1"), "{ 'KEY_HASH_1': 1.1 }", false }, { GetHash("1"), "{ 'KEY_HASH_1': [1] }", false }, { GetHash("1"), "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 'VALUE_HASH_1' }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': 1.3 }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': [1] }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': {'a': 'b'} }", false }, { VALUE_TRUE, "{ 'KEY_HASH_1': true }", false }, { VALUE_FALSE, "{ 'KEY_HASH_1': false }", false }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); std::string store_op; if (cases[i].stored_value == VALUE_TRUE || cases[i].stored_value == VALUE_FALSE) store_op = OP_STORE_BOOL(VAR_HASH_1, cases[i].stored_value); else if (!cases[i].stored_value.empty()) store_op = OP_STORE_HASH(VAR_HASH_1, cases[i].stored_value); INIT_INTERPRETER( store_op + OP_NAVIGATE(KEY_HASH_1) + OP_COMPARE_NODE_TO_STORED_HASH(VAR_HASH_1) + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), cases[i].json); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); if (cases[i].expected_success) { base::ExpectDictBooleanValue( true, *interpreter.working_memory(), VAR_HASH_2); } else { EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } } } TEST(JtlInterpreter, Stop) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE) + OP_STOP_EXECUTING_SENTENCE + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); EXPECT_FALSE(interpreter.working_memory()->HasKey(VAR_HASH_2)); } TEST(JtlInterpreter, EndOfSentence) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE(KEY_HASH_2) + OP_STORE_BOOL(VAR_HASH_1, VALUE_TRUE) + OP_END_OF_SENTENCE + OP_STORE_BOOL(VAR_HASH_2, VALUE_TRUE), "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::OK, interpreter.result()); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_1); base::ExpectDictBooleanValue(true, *interpreter.working_memory(), VAR_HASH_2); } TEST(JtlInterpreter, InvalidBack) { INIT_INTERPRETER( OP_NAVIGATE(KEY_HASH_1) + OP_NAVIGATE_BACK + OP_NAVIGATE_BACK, "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::RUNTIME_ERROR, interpreter.result()); } TEST(JtlInterpreter, IncorrectPrograms) { std::string missing_hash; std::string missing_bool; std::string invalid_hash("123"); std::string invalid_bool("\x02", 1); std::string invalid_operation("\x99", 1); std::string programs[] = { OP_NAVIGATE(missing_hash), OP_NAVIGATE(invalid_hash), OP_STORE_BOOL(VAR_HASH_1, invalid_bool), OP_STORE_BOOL(missing_hash, VALUE_TRUE), OP_STORE_BOOL(invalid_hash, VALUE_TRUE), OP_COMPARE_STORED_BOOL(invalid_hash, VALUE_TRUE, VALUE_TRUE), OP_COMPARE_STORED_BOOL(VAR_HASH_1, invalid_bool, VALUE_TRUE), OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_TRUE, invalid_bool), OP_COMPARE_STORED_BOOL(VAR_HASH_1, VALUE_TRUE, missing_bool), OP_STORE_NODE_BOOL(missing_hash), OP_STORE_NODE_BOOL(invalid_hash), OP_STORE_NODE_HASH(missing_hash), OP_STORE_NODE_HASH(invalid_hash), OP_COMPARE_NODE_BOOL(missing_bool), OP_COMPARE_NODE_BOOL(invalid_bool), OP_COMPARE_NODE_HASH(missing_hash), OP_COMPARE_NODE_HASH(invalid_hash), OP_COMPARE_NODE_TO_STORED_BOOL(missing_hash), OP_COMPARE_NODE_TO_STORED_BOOL(invalid_hash), OP_COMPARE_NODE_TO_STORED_HASH(missing_hash), OP_COMPARE_NODE_TO_STORED_HASH(invalid_hash), invalid_operation, }; for (size_t i = 0; i < arraysize(programs); ++i) { SCOPED_TRACE(testing::Message() << "Iteration " << i); INIT_INTERPRETER(programs[i], "{ 'KEY_HASH_1': { 'KEY_HASH_2': 'VALUE_HASH_1' } }"); EXPECT_EQ(JtlInterpreter::PARSE_ERROR, interpreter.result()); } } TEST(JtlInterpreter, GetOutput) { INIT_INTERPRETER( OP_STORE_BOOL(GetHash("output1"), VALUE_TRUE) + OP_STORE_HASH(GetHash("output2"), VALUE_HASH_1), "{}"); bool output1 = false; std::string output2; EXPECT_TRUE(interpreter.GetOutputBoolean("output1", &output1)); EXPECT_EQ(true, output1); EXPECT_TRUE(interpreter.GetOutputString("output2", &output2)); EXPECT_EQ(VALUE_HASH_1, output2); EXPECT_FALSE(interpreter.GetOutputBoolean("outputxx", &output1)); EXPECT_FALSE(interpreter.GetOutputString("outputxx", &output2)); } } // namespace
[ "ronan@fridu.net" ]
ronan@fridu.net
9dc51b0c5803a955266fc53c30ee4905b5967958
9bc83c541368c2d369459dfaf0c5a8b52b8f82c0
/tests/src/self_assign.cpp
08e1c13791a79932e443d0a791900d08e3217f02
[ "MIT" ]
permissive
ddemidov/viennacl-dev
06d35dd992e712fd98ca3430fc993f34be428b1c
0f7de9cd28e54a5ca8f7c2ab03263bc56bf004ef
refs/heads/master
2021-01-18T10:19:21.797394
2015-04-06T07:30:53
2015-04-06T07:30:53
10,085,521
2
0
null
null
null
null
UTF-8
C++
false
false
17,170
cpp
/* ========================================================================= Copyright (c) 2010-2014, Institute for Microelectronics, Institute for Analysis and Scientific Computing, TU Wien. Portions of this software are copyright by UChicago Argonne, LLC. ----------------- ViennaCL - The Vienna Computing Library ----------------- Project Head: Karl Rupp rupp@iue.tuwien.ac.at (A list of authors and contributors can be found in the PDF manual) License: MIT (X11), see file LICENSE in the base directory ============================================================================= */ /** \file tests/src/self_assign.cpp Tests the correct handling of self-assignments. * \test Tests the correct handling of self-assignments. **/ // // *** System // #include <iostream> // // *** ViennaCL // //#define VIENNACL_DEBUG_ALL #include "viennacl/scalar.hpp" #include "viennacl/vector.hpp" #include "viennacl/vector_proxy.hpp" #include "viennacl/matrix.hpp" #include "viennacl/matrix_proxy.hpp" #include "viennacl/compressed_matrix.hpp" #include "viennacl/compressed_compressed_matrix.hpp" #include "viennacl/coordinate_matrix.hpp" #include "viennacl/ell_matrix.hpp" #include "viennacl/sliced_ell_matrix.hpp" #include "viennacl/hyb_matrix.hpp" #include "viennacl/linalg/prod.hpp" #include "viennacl/linalg/norm_2.hpp" #include "viennacl/linalg/ilu.hpp" #include "viennacl/linalg/detail/ilu/common.hpp" #include "viennacl/io/matrix_market.hpp" #include "examples/tutorial/Random.hpp" #include "examples/tutorial/vector-io.hpp" // // ------------------------------------------------------------- // template<typename NumericT> NumericT diff(NumericT const & s1, viennacl::scalar<NumericT> const & s2) { if (std::fabs(s1 - s2) > 0) return (s1 - s2) / std::max(std::fabs(s1), std::fabs(s2)); return 0; } template<typename NumericT> NumericT diff(std::vector<NumericT> const & v1, viennacl::vector<NumericT> const & v2) { std::vector<NumericT> v2_cpu(v2.size()); viennacl::backend::finish(); viennacl::copy(v2.begin(), v2.end(), v2_cpu.begin()); for (std::size_t i=0;i<v1.size(); ++i) { if ( std::max( std::fabs(v2_cpu[i]), std::fabs(v1[i]) ) > 0 ) v2_cpu[i] = std::fabs(v2_cpu[i] - v1[i]) / std::max( std::fabs(v2_cpu[i]), std::fabs(v1[i]) ); else v2_cpu[i] = 0.0; if (v2_cpu[i] > 0.0001) { //std::cout << "Neighbor: " << i-1 << ": " << v1[i-1] << " vs. " << v2_cpu[i-1] << std::endl; std::cout << "Error at entry " << i << ": " << v1[i] << " vs. " << v2[i] << std::endl; //std::cout << "Neighbor: " << i+1 << ": " << v1[i+1] << " vs. " << v2_cpu[i+1] << std::endl; exit(EXIT_FAILURE); } } NumericT inf_norm = 0; for (std::size_t i=0;i<v2_cpu.size(); ++i) inf_norm = std::max<NumericT>(inf_norm, std::fabs(v2_cpu[i])); return inf_norm; } template<typename NumericT> NumericT diff(std::vector<std::vector<NumericT> > const & A1, viennacl::matrix<NumericT> const & A2) { std::vector<NumericT> host_values(A2.internal_size()); for (std::size_t i=0; i<A2.size1(); ++i) for (std::size_t j=0; j<A2.size2(); ++j) host_values[i*A2.internal_size2() + j] = A1[i][j]; std::vector<NumericT> device_values(A2.internal_size()); viennacl::fast_copy(A2, &device_values[0]); viennacl::vector<NumericT> vcl_device_values(A2.internal_size()); // workaround to avoid code duplication viennacl::copy(device_values, vcl_device_values); return diff(host_values, vcl_device_values); } template<typename HostContainerT, typename DeviceContainerT, typename NumericT> void check(HostContainerT const & host_container, DeviceContainerT const & device_container, std::string current_stage, NumericT epsilon) { current_stage.resize(25, ' '); std::cout << "Testing operation: " << current_stage; NumericT rel_error = std::fabs(diff(host_container, device_container)); if (rel_error > epsilon) { std::cout << std::endl; std::cout << "# Error at operation: " << current_stage << std::endl; std::cout << " diff: " << rel_error << std::endl; exit(EXIT_FAILURE); } std::cout << "PASS" << std::endl; } struct op_assign { template<typename LHS, typename RHS> static void apply(LHS & lhs, RHS const & rhs) { lhs = rhs; } static std::string str() { return "="; } }; struct op_plus_assign { template<typename LHS, typename RHS> static void apply(LHS & lhs, RHS const & rhs) { lhs += rhs; } static std::string str() { return "+="; } }; struct op_minus_assign { template<typename LHS, typename RHS> static void apply(LHS & lhs, RHS const & rhs) { lhs -= rhs; } static std::string str() { return "-="; } }; // compute C = A * B on host and device and compare results. // Note that the reference uses three distinct matrices A, B, C, // whereas C on the device is the same as either A, B, or both. template<typename OpT, typename NumericT, typename HostMatrixT, typename DeviceMatrixT> void test_gemm(NumericT epsilon, HostMatrixT & host_A, HostMatrixT & host_B, HostMatrixT & host_C, DeviceMatrixT & device_A, std::string name_A, DeviceMatrixT & device_B, std::string name_B, DeviceMatrixT & device_C, bool copy_from_A, bool trans_first, bool trans_second) { for (std::size_t i = 0; i<host_A.size(); ++i) for (std::size_t j = 0; j<host_A[i].size(); ++j) { host_A[i][j] = random<NumericT>(); host_B[i][j] = random<NumericT>(); } viennacl::copy(host_A, device_A); viennacl::copy(host_B, device_B); if (copy_from_A) host_C = host_A; else host_C = host_B; for (std::size_t i = 0; i<host_A.size(); ++i) for (std::size_t j = 0; j<host_A[i].size(); ++j) { NumericT tmp = 0; for (std::size_t k = 0; k<host_A[i].size(); ++k) tmp += (trans_first ? host_A[k][i] : host_A[i][k]) * (trans_second ? host_B[j][k] : host_B[k][j]); OpT::apply(host_C[i][j], tmp); } if (trans_first && trans_second) { OpT::apply(device_C, viennacl::linalg::prod(trans(device_A), trans(device_B))); check(host_C, device_C, std::string("A ") + OpT::str() + std::string(" ") + name_A + std::string("^T*") + name_B + std::string("^T"), epsilon); } else if (trans_first && !trans_second) { OpT::apply(device_C, viennacl::linalg::prod(trans(device_A), device_B)); check(host_C, device_C, std::string("A ") + OpT::str() + std::string(" ") + name_A + std::string("^T*") + name_B + std::string(""), epsilon); } else if (!trans_first && trans_second) { OpT::apply(device_C, viennacl::linalg::prod(device_A, trans(device_B))); check(host_C, device_C, std::string("A ") + OpT::str() + std::string(" ") + name_A + std::string("*") + name_B + std::string("^T"), epsilon); } else { OpT::apply(device_C, viennacl::linalg::prod(device_A, device_B)); check(host_C, device_C, std::string("A ") + OpT::str() + std::string(" ") + name_A + std::string("*") + name_B + std::string(""), epsilon); } } // dispatch routine for all combinations of transpositions: // C = A * B, C = A * B^T, C = A^T * B, C = A^T * B^T template<typename OpT, typename NumericT, typename HostMatrixT, typename DeviceMatrixT> void test_gemm(NumericT epsilon, HostMatrixT & host_A, HostMatrixT & host_B, HostMatrixT & host_C, DeviceMatrixT & device_A, std::string name_A, DeviceMatrixT & device_B, std::string name_B, DeviceMatrixT & device_C, bool copy_from_A) { test_gemm<OpT>(epsilon, host_A, host_B, host_C, device_A, name_A, device_B, name_B, device_C, copy_from_A, false, false); test_gemm<OpT>(epsilon, host_A, host_B, host_C, device_A, name_A, device_B, name_B, device_C, copy_from_A, false, true); test_gemm<OpT>(epsilon, host_A, host_B, host_C, device_A, name_A, device_B, name_B, device_C, copy_from_A, true, false); test_gemm<OpT>(epsilon, host_A, host_B, host_C, device_A, name_A, device_B, name_B, device_C, copy_from_A, true, true); } // The actual testing routine. // Sets of vectors and matrices using STL types and uses these for reference calculations. // ViennaCL operations are carried out as usual and then compared against the reference. template<typename NumericT> int test(NumericT epsilon) { std::size_t N = 142; // should be larger than 128 in order to avoid false negatives due to blocking // // Vector setup and test: // std::vector<NumericT> std_x(N); std::vector<NumericT> std_y(N); std::vector<NumericT> std_z(N); for (std::size_t i=0; i<std_x.size(); ++i) std_x[i] = NumericT(i + 1); for (std::size_t i=0; i<std_y.size(); ++i) std_y[i] = NumericT(i*i + 1); for (std::size_t i=0; i<std_z.size(); ++i) std_z[i] = NumericT(2 * i + 1); viennacl::vector<NumericT> vcl_x; viennacl::vector<NumericT> vcl_y; viennacl::vector<NumericT> vcl_z; viennacl::copy(std_x, vcl_x); viennacl::copy(std_y, vcl_y); viennacl::copy(std_z, vcl_z); // This shouldn't do anything bad: vcl_x = vcl_x; check(std_x, vcl_x, "x = x", epsilon); // This should work, even though we are dealing with the same buffer: std_x[0] = std_x[2]; std_x[1] = std_x[3]; viennacl::project(vcl_x, viennacl::range(0, 2)) = viennacl::project(vcl_x, viennacl::range(2, 4)); check(std_x, vcl_x, "x = x (range)", epsilon); // // Matrix-Vector // std::vector<std::vector<NumericT> > std_A(N, std::vector<NumericT>(N, NumericT(1))); std::vector<std::vector<NumericT> > std_B(N, std::vector<NumericT>(N, NumericT(2))); std::vector<std::vector<NumericT> > std_C(N, std::vector<NumericT>(N, NumericT(3))); viennacl::matrix<NumericT> vcl_A; viennacl::matrix<NumericT> vcl_B; viennacl::matrix<NumericT> vcl_C; viennacl::copy(std_A, vcl_A); viennacl::copy(std_B, vcl_B); viennacl::copy(std_C, vcl_C); // This shouldn't do anything bad: vcl_A = vcl_A; check(std_A, vcl_A, "A = A", epsilon); // This should work, even though we are dealing with the same buffer: std_A[0][0] = std_A[0][2]; std_A[0][1] = std_A[0][3]; viennacl::project(vcl_A, viennacl::range(0, 1), viennacl::range(0, 2)) = viennacl::project(vcl_A, viennacl::range(0, 1), viennacl::range(2, 4)); check(std_A, vcl_A, "A = A (range)", epsilon); // check x <- A * x; for (std::size_t i = 0; i<std_y.size(); ++i) { NumericT val = 0; for (std::size_t j = 0; j<std_x.size(); ++j) val += std_A[i][j] * std_x[j]; std_y[i] = val; } vcl_x = viennacl::linalg::prod(vcl_A, vcl_x); check(std_y, vcl_x, "x = A*x", epsilon); typedef unsigned int KeyType; std::vector< std::map<KeyType, NumericT> > std_Asparse(N); for (std::size_t i=0; i<std_Asparse.size(); ++i) { if (i > 0) std_Asparse[i][KeyType(i-1)] = random<NumericT>(); std_Asparse[i][KeyType(i)] = NumericT(1) + random<NumericT>(); if (i < std_Asparse.size() - 1) std_Asparse[i][KeyType(i+1)] = random<NumericT>(); } // Sparse viennacl::compressed_matrix<NumericT> vcl_A_csr; viennacl::coordinate_matrix<NumericT> vcl_A_coo; viennacl::ell_matrix<NumericT> vcl_A_ell; viennacl::sliced_ell_matrix<NumericT> vcl_A_sell; viennacl::hyb_matrix<NumericT> vcl_A_hyb; viennacl::copy(std_Asparse, vcl_A_csr); viennacl::copy(std_Asparse, vcl_A_coo); viennacl::copy(std_Asparse, vcl_A_ell); viennacl::copy(std_Asparse, vcl_A_sell); viennacl::copy(std_Asparse, vcl_A_hyb); for (std::size_t i=0; i<std_Asparse.size(); ++i) { NumericT val = 0; for (typename std::map<unsigned int, NumericT>::const_iterator it = std_Asparse[i].begin(); it != std_Asparse[i].end(); ++it) val += it->second * std_x[it->first]; std_y[i] = val; } viennacl::copy(std_x, vcl_x); vcl_x = viennacl::linalg::prod(vcl_A_csr, vcl_x); check(std_y, vcl_x, "x = A*x (sparse, csr)", epsilon); viennacl::copy(std_x, vcl_x); vcl_x = viennacl::linalg::prod(vcl_A_coo, vcl_x); check(std_y, vcl_x, "x = A*x (sparse, coo)", epsilon); viennacl::copy(std_x, vcl_x); vcl_x = viennacl::linalg::prod(vcl_A_ell, vcl_x); check(std_y, vcl_x, "x = A*x (sparse, ell)", epsilon); viennacl::copy(std_x, vcl_x); vcl_x = viennacl::linalg::prod(vcl_A_sell, vcl_x); check(std_y, vcl_x, "x = A*x (sparse, sell)", epsilon); viennacl::copy(std_x, vcl_x); vcl_x = viennacl::linalg::prod(vcl_A_hyb, vcl_x); check(std_y, vcl_x, "x = A*x (sparse, hyb)", epsilon); std::cout << std::endl; // // Matrix-Matrix (dense times dense): // test_gemm<op_assign>(epsilon, std_A, std_B, std_C, vcl_A, "A", vcl_B, "B", vcl_A, true); test_gemm<op_assign>(epsilon, std_B, std_A, std_C, vcl_B, "B", vcl_A, "A", vcl_A, false); test_gemm<op_assign>(epsilon, std_A, std_A, std_C, vcl_A, "A", vcl_A, "A", vcl_A, true); std::cout << std::endl; test_gemm<op_plus_assign>(epsilon, std_A, std_B, std_C, vcl_A, "A", vcl_B, "B", vcl_A, true); test_gemm<op_plus_assign>(epsilon, std_B, std_A, std_C, vcl_B, "B", vcl_A, "A", vcl_A, false); test_gemm<op_plus_assign>(epsilon, std_A, std_A, std_C, vcl_A, "A", vcl_A, "A", vcl_A, true); std::cout << std::endl; test_gemm<op_minus_assign>(epsilon, std_A, std_B, std_C, vcl_A, "A", vcl_B, "B", vcl_A, true); test_gemm<op_minus_assign>(epsilon, std_B, std_A, std_C, vcl_B, "B", vcl_A, "A", vcl_A, false); test_gemm<op_minus_assign>(epsilon, std_A, std_A, std_C, vcl_A, "A", vcl_A, "A", vcl_A, true); std::cout << std::endl; // // Matrix-Matrix (sparse times dense) // // A = sparse * A viennacl::copy(std_A, vcl_A); for (std::size_t i = 0; i<std_A.size(); ++i) for (std::size_t j = 0; j<std_A[i].size(); ++j) { NumericT tmp = 0; for (std::size_t k = 0; k<std_A[i].size(); ++k) tmp += std_Asparse[i][KeyType(k)] * std_A[k][j]; std_C[i][j] = tmp; } viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_csr, vcl_A); check(std_C, vcl_A, "A = csr*A", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_coo, vcl_A); check(std_C, vcl_A, "A = coo*A", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_ell, vcl_A); check(std_C, vcl_A, "A = ell*A", epsilon); viennacl::copy(std_A, vcl_A); //vcl_A = viennacl::linalg::prod(vcl_A_sell, vcl_A); //check(std_C, vcl_A, "A = sell*A", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_hyb, vcl_A); check(std_C, vcl_A, "A = hyb*A", epsilon); // A = sparse * A^T viennacl::copy(std_A, vcl_A); for (std::size_t i = 0; i<std_A.size(); ++i) for (std::size_t j = 0; j<std_A[i].size(); ++j) { NumericT tmp = 0; for (std::size_t k = 0; k<std_A[i].size(); ++k) tmp += std_Asparse[i][KeyType(k)] * std_A[j][k]; std_C[i][j] = tmp; } viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_csr, trans(vcl_A)); check(std_C, vcl_A, "A = csr*A^T", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_coo, trans(vcl_A)); check(std_C, vcl_A, "A = coo*A^T", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_ell, trans(vcl_A)); check(std_C, vcl_A, "A = ell*A^T", epsilon); viennacl::copy(std_A, vcl_A); //vcl_A = viennacl::linalg::prod(vcl_A_sell, trans(vcl_A)); //check(std_C, vcl_A, "A = sell*A^T", epsilon); viennacl::copy(std_A, vcl_A); vcl_A = viennacl::linalg::prod(vcl_A_hyb, trans(vcl_A)); check(std_C, vcl_A, "A = hyb*A^T", epsilon); return EXIT_SUCCESS; } // // ------------------------------------------------------------- // int main() { std::cout << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << "## Test :: Self-Assignment" << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << std::endl; int retval = EXIT_SUCCESS; std::cout << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << std::endl; { typedef float NumericT; NumericT epsilon = static_cast<NumericT>(1E-4); std::cout << "# Testing setup:" << std::endl; std::cout << " eps: " << epsilon << std::endl; std::cout << " numeric: float" << std::endl; retval = test<NumericT>(epsilon); if ( retval == EXIT_SUCCESS ) std::cout << "# Test passed" << std::endl; else return retval; } std::cout << std::endl; std::cout << "----------------------------------------------" << std::endl; std::cout << std::endl; // Note: No need for double precision check, self-assignments are handled in a numeric-type agnostic manner. std::cout << std::endl; std::cout << "------- Test completed --------" << std::endl; std::cout << std::endl; return retval; }
[ "rupp@iue.tuwien.ac.at" ]
rupp@iue.tuwien.ac.at
d4e87982b172eb1a8fc9944b45b66dbafa8b9cb6
b367fe5f0c2c50846b002b59472c50453e1629bc
/xbox_leak_may_2020/xbox trunk/xbox/private/online/tools/PwdToKey/md4ms.cpp
4e2f501c9d263bebbe21347c432f8d91ab728716
[]
no_license
sgzwiz/xbox_leak_may_2020
11b441502a659c8da8a1aa199f89f6236dd59325
fd00b4b3b2abb1ea6ef9ac64b755419741a3af00
refs/heads/master
2022-12-23T16:14:54.706755
2020-09-27T18:24:48
2020-09-27T18:24:48
null
0
0
null
null
null
null
UTF-8
C++
false
false
9,101
cpp
/* This second implementation of MD4 entry points is the newer style, optimized implementation, compatible with newer code expecting these entry point names. Modelled after MD5 and SHA-1. Scott Field (sfield) 21-Oct-97 */ #include <windows.h> #include <malloc.h> #include "md4.h" #include "uint4.h" #ifndef RSA32API #define RSA32API #endif /* Compile-time macro declarations for MD4. */ /* ROTATE_LEFT rotates x left n bits. */ #define ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) void MD4Transform (UINT4 state[4], unsigned char block[64]); #define S11 3 #define S12 7 #define S13 11 #define S14 19 #define S21 3 #define S22 5 #define S23 9 #define S24 13 #define S31 3 #define S32 9 #define S33 11 #define S34 15 static const unsigned char PADDING[64] = { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }; /* F, G and H are basic MD4 functions. */ #define F(x, y, z) ((z) ^ ((x) & ((y) ^ (z)))) #define G(x, y, z) (((x) & (y)) | ((z) & ((x) | (y)))) #define H(x, y, z) ((x) ^ (y) ^ (z)) /* FF, GG and HH are MD4 transformations for rounds 1, 2 and 3 */ /* Rotation is separate from addition to prevent recomputation */ #define FF(a, b, c, d, x, s) \ {(a) += F ((b), (c), (d)) + (x); \ (a) = ROTATE_LEFT ((a), (s));} #define GG(a, b, c, d, x, s) \ {(a) += G ((b), (c), (d)) + (x) + (UINT4)013240474631; \ (a) = ROTATE_LEFT ((a), (s));} #define HH(a, b, c, d, x, s) \ {(a) += H ((b), (c), (d)) + (x) + (UINT4)015666365641; \ (a) = ROTATE_LEFT ((a), (s));} #ifdef KMODE_RSA32 #pragma alloc_text(PAGER32C, MD4Init) #pragma alloc_text(PAGER32C, MD4Update) #pragma alloc_text(PAGER32C, MD4Transform) #pragma alloc_text(PAGER32C, MD4Final) #endif // KMODE_RSA32 /* MD4 initialization. Begins an MD4 operation, writing a new context. */ void RSA32API MD4Init ( MD4_CTX *context /* context */ ) { context->count[0] = 0; context->count[1] = 0; /* Load magic initialization constants. */ context->state[0] = 0x67452301; context->state[1] = 0xefcdab89; context->state[2] = 0x98badcfe; context->state[3] = 0x10325476; } /* MD4 block update operation. Continues an MD4 message-digest operation, processing another message block, and updating the context. */ void RSA32API MD4Update ( MD4_CTX *context, /* context */ unsigned char *input, /* input block */ unsigned int inputLen /* length of input block */ ) { unsigned int bufferLen; /* Compute number of bytes mod 64 */ bufferLen = (unsigned int)((context->count[0] >> 3) & 0x3F); /* Update number of bits */ if ((context->count[0] += ((DWORD)inputLen << 3)) < ((DWORD)inputLen << 3)) context->count[1]++; context->count[1] += ((DWORD)inputLen >> 29); /* If previous input in buffer, buffer new input and transform if possible. */ if (bufferLen > 0 && bufferLen + inputLen >= 64) { memcpy(context->buffer+bufferLen, input, 64-bufferLen); input += (64-bufferLen); inputLen -= (64-bufferLen); MD4Transform (context->state, context->buffer); bufferLen = 0; } if( (DWORD_PTR)input & (sizeof(DWORD_PTR) - 1) ) { /* Copy input to aligned temporary buffer */ while (inputLen >= 64) { memcpy( context->buffer, input, 64 ); MD4Transform (context->state, context->buffer); input += 64; inputLen -= 64; } } else { /* Transform directly from input. */ while (inputLen >= 64) { MD4Transform (context->state, input); input += 64; inputLen -= 64; } } /* Buffer remaining input */ if (inputLen) memcpy(context->buffer+bufferLen, input, inputLen); } /* MD4 finalization. Ends an MD4 message-digest operation, writing the message digest and zeroizing the context. */ void RSA32API MD4Final ( MD4_CTX *context /* context */ ) { unsigned int index, padLen; /* Save number of bits */ #if !defined(BIGENDIAN) || !BIGENDIAN ((unsigned long *)context->digest)[0] = context->count[0]; ((unsigned long *)context->digest)[1] = context->count[1]; #else DWORDToLittleEndian (context->digest, context->count, 8); #endif /* Pad out to 56 mod 64. */ index = (unsigned int)((context->count[0] >> 3) & 0x3f); padLen = (index < 56) ? (56 - index) : (120 - index); MD4Update (context, (unsigned char *)PADDING, padLen); /* Append length (before padding) */ MD4Update (context, context->digest, 8); /* Store state in digest */ #if !defined(BIGENDIAN) || !BIGENDIAN ((unsigned long *)context->digest)[0] = context->state[0]; ((unsigned long *)context->digest)[1] = context->state[1]; ((unsigned long *)context->digest)[2] = context->state[2]; ((unsigned long *)context->digest)[3] = context->state[3]; #else DWORDToLittleEndian (context->digest, context->state, 16); #endif } /* MD4 basic transformation. Transforms state based on block. */ //#ifndef _X86_ // use optimized .asm version of MD4Transform on x86 void MD4Transform ( UINT4 state[4], unsigned char block[64] ) { UINT4 a = state[0], b = state[1], c = state[2], d = state[3]; #if !defined(BIGENDIAN) || !BIGENDIAN unsigned long *x = (unsigned long*)block; #else unsigned long x[16]; DWORDFromLittleEndian (x, (unsigned char *)block, 64); #endif /* Round 1 */ FF (a, b, c, d, x[ 0], S11); /* 1 */ FF (d, a, b, c, x[ 1], S12); /* 2 */ FF (c, d, a, b, x[ 2], S13); /* 3 */ FF (b, c, d, a, x[ 3], S14); /* 4 */ FF (a, b, c, d, x[ 4], S11); /* 5 */ FF (d, a, b, c, x[ 5], S12); /* 6 */ FF (c, d, a, b, x[ 6], S13); /* 7 */ FF (b, c, d, a, x[ 7], S14); /* 8 */ FF (a, b, c, d, x[ 8], S11); /* 9 */ FF (d, a, b, c, x[ 9], S12); /* 10 */ FF (c, d, a, b, x[10], S13); /* 11 */ FF (b, c, d, a, x[11], S14); /* 12 */ FF (a, b, c, d, x[12], S11); /* 13 */ FF (d, a, b, c, x[13], S12); /* 14 */ FF (c, d, a, b, x[14], S13); /* 15 */ FF (b, c, d, a, x[15], S14); /* 16 */ /* Round 2 */ GG (a, b, c, d, x[ 0], S21); /* 17 */ GG (d, a, b, c, x[ 4], S22); /* 18 */ GG (c, d, a, b, x[ 8], S23); /* 19 */ GG (b, c, d, a, x[12], S24); /* 20 */ GG (a, b, c, d, x[ 1], S21); /* 21 */ GG (d, a, b, c, x[ 5], S22); /* 22 */ GG (c, d, a, b, x[ 9], S23); /* 23 */ GG (b, c, d, a, x[13], S24); /* 24 */ GG (a, b, c, d, x[ 2], S21); /* 25 */ GG (d, a, b, c, x[ 6], S22); /* 26 */ GG (c, d, a, b, x[10], S23); /* 27 */ GG (b, c, d, a, x[14], S24); /* 28 */ GG (a, b, c, d, x[ 3], S21); /* 29 */ GG (d, a, b, c, x[ 7], S22); /* 30 */ GG (c, d, a, b, x[11], S23); /* 31 */ GG (b, c, d, a, x[15], S24); /* 32 */ /* Round 3 */ HH (a, b, c, d, x[ 0], S31); /* 33 */ HH (d, a, b, c, x[ 8], S32); /* 34 */ HH (c, d, a, b, x[ 4], S33); /* 35 */ HH (b, c, d, a, x[12], S34); /* 36 */ HH (a, b, c, d, x[ 2], S31); /* 37 */ HH (d, a, b, c, x[10], S32); /* 38 */ HH (c, d, a, b, x[ 6], S33); /* 39 */ HH (b, c, d, a, x[14], S34); /* 40 */ HH (a, b, c, d, x[ 1], S31); /* 41 */ HH (d, a, b, c, x[ 9], S32); /* 42 */ HH (c, d, a, b, x[ 5], S33); /* 43 */ HH (b, c, d, a, x[13], S34); /* 44 */ HH (a, b, c, d, x[ 3], S31); /* 45 */ HH (d, a, b, c, x[11], S32); /* 46 */ HH (c, d, a, b, x[ 7], S33); /* 47 */ HH (b, c, d, a, x[15], S34); /* 48 */ state[0] += a; state[1] += b; state[2] += c; state[3] += d; } //+------------------------------------------------------------------------- BOOL KerbPasswordToKey( IN LPSTR pszPassword, OUT PUCHAR Key ) { BOOL fSucceed = FALSE; MD4_CTX md4Ctx; DWORD dwPasswordLen; DWORD dwResult; WCHAR* pwcUnicodePassword; dwPasswordLen = strlen(pszPassword); pwcUnicodePassword = (WCHAR*)_alloca( (dwPasswordLen + 1) * sizeof(WCHAR) ); if (pwcUnicodePassword == NULL) { goto Cleanup; } dwResult = MultiByteToWideChar( CP_ACP, MB_PRECOMPOSED, pszPassword, dwPasswordLen, pwcUnicodePassword, dwPasswordLen * sizeof(WCHAR) ); if (dwResult == 0) { goto Cleanup; } MD4Init( &md4Ctx ); MD4Update( &md4Ctx, (unsigned char *)pwcUnicodePassword, dwPasswordLen * sizeof(WCHAR) ); MD4Final( &md4Ctx ); RtlCopyMemory( Key, md4Ctx.digest, MD4_LEN ); fSucceed = TRUE; Cleanup: return(fSucceed); } //#endif // !_X86_
[ "benjamin.barratt@icloud.com" ]
benjamin.barratt@icloud.com
e9008c98484b89afdb3c3842a797bae26a94ba7f
d1e5fd728cfae9dcc16b765e333b70a1e9a72bd6
/CMrcpGeneric.h
2dca21cc20dfb4f83355a1927856cbd38b146298
[]
no_license
ajithdesilva/MrcpClientLibraryv2
ea6fdc53e189dd4072950fffbff69f242668192a
ed5bc678677eef8162c5652206d85ab391233291
refs/heads/master
2022-01-16T04:12:43.792194
2019-05-13T12:58:24
2019-05-13T12:58:24
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,939
h
/////////////////////////////////////////////////////////////////////////////// // File Name: CMrcpGeneric.h // // Description: class implementation // // Declared in this file: // none // // Implemented in this file: // /////////////////////////////////////////////////////////////////////////////// // Revisions: // Date Initial Description // ---- ------- ----------- // /////////////////////////////////////////////////////////////////////////////// #ifndef CMrcpGeneric_H #define CMrcpGeneric_H #include "AMrcpResource.h" #include "ClientInterfaceDefs.h" #include "CLogger.h" namespace MrcpV2RefLib { class CMrcpCmdIdMgr; class AMrcpSignaling; class CGenericCommands; class AMrcpResource; class CMrcpGeneric : public AMrcpResource { public: CMrcpGeneric(RESOURCE_CFG_STRUCT* a_resourceCfg, AMrcpSignaling* a_signalObj); virtual ~CMrcpGeneric(); const char* StateDesc() { return "N/A";} const std::string& ClassName(){return m_className;}; void ClassName(const std::string& a_className) {m_className = a_className;}; const std::string& Name(){{ // scope for lock boost::mutex::scoped_lock l_controlLock (m_loggerMutex); return m_name; }}; void Name( const std::string& a_name){ { // scope for lock boost::mutex::scoped_lock l_controlLock( m_loggerMutex); m_name = a_name; }}; // const std::string& Name(){return m_name;}; // void Name( const std::string& a_name){m_name = a_name;}; void SignalPtr(const std::string& a_signal) {m_signalPtr = a_signal;}; const std::string& SignalPtr(){return m_signalPtr;}; bool IsStateIdle(){if(m_state == m_resourceIdleState) return true; else return false;}; LogObjectTypeEnum LogObjectType(){return LogObject_System;}; protected: private: RESOURCE_CFG_STRUCT* m_resourceCfg; MrcpV2RefLib::CMrcpCmdIdMgr* m_cmdIdMgr; MrcpV2RefLib::CGenericCommands* m_genericCmds; boost::mutex m_loggerMutex; int m_mrcpVersion; int PrimGetParams(CGetParams& a_task); int PrimSetParams(CSetParams& a_task); int PrimDefineGrammar(CRecDefineGrammar& a_task){return 0;}; int PrimRecognize(CRecRecognize& a_task){return 0;}; int PrimInterpret(CRecInterpret& a_task){return 0;}; int PrimStartInputTimers(CRecStartInputTimers& a_task){return 0;}; int PrimGetResult(CRecGetResult& a_task){return 0;}; int PrimStopRec(CRecStopRec& a_task){return 0;}; // int PrimSpeak(CSpkSpeak& a_task){return 0;}; int PrimPause(CSpkPause& a_task){return 0;}; int PrimResume(CSpkResume& a_task){return 0;}; int PrimBargeIn(CSpkBargeIn& a_task){return 0;}; int PrimStopSpk(CSpkStop& a_task){return 0;}; // std::string m_className; std::string m_name; std::string m_signalPtr; }; }//end namespace #endif
[ "timobarrett@gmail.com" ]
timobarrett@gmail.com
e858958612693506eeb7aa55e1d149ed82e2a4f0
2f2022797a26100f04f9a5e3e72ad71797841c67
/1041. Be Unique/1041. Be Unique.cpp
931ca4f98f0f62f462172eec03f33bfec4d9fd41
[]
no_license
AllenAnthony/PAT-a-practice
d56de495e29df15857f0c566461c552a17d4ab4d
e4eae97e7e4bb87a13cc309cb2710fbeeb6e230e
refs/heads/master
2021-06-11T16:25:02.591785
2017-03-01T08:46:41
2017-03-01T08:46:41
103,521,688
0
1
null
2017-09-14T10:58:07
2017-09-14T10:58:07
null
UTF-8
C++
false
false
642
cpp
/*! * \file 1041. Be Unique.cpp * \date 2017/02/17 22:45 * * \author Lu Yudi * Contact: avartialu@gmail.com * * \brief * * TODO: long description * https://www.patest.cn/contests/pat-a-practise/1041 * \note */ #include <stdio.h> #include <string.h> int main(int argc, const char* argv[]) { int count[100000]; int unique[100000]; memset(count, 0, 100000 * sizeof(int)); int N, t; scanf("%d", &N); for (int i = 0; i < N; i++) { scanf("%d", &t); count[t]++; unique[i] = t; } for (int i = 0; i < N; i++) { if (count[unique[i]] == 1) { printf("%d", unique[i]); return 0; } } printf("None"); return 0; }
[ "903703465@qq.com" ]
903703465@qq.com
32af59a3fd544c0c1c38e7e143261ce6972942a1
3282ccae547452b96c4409e6b5a447f34b8fdf64
/SimModel_Python_API/simmodel_swig/SimModel_Dll_lib/framework/SimNode_ServiceHotWaterFlowPort_Default.cxx
8b2652feca43f968ef7035f49e7529393853c2a8
[ "MIT" ]
permissive
EnEff-BIM/EnEffBIM-Framework
c8bde8178bb9ed7d5e3e5cdf6d469a009bcb52de
6328d39b498dc4065a60b5cc9370b8c2a9a1cddf
refs/heads/master
2021-01-18T00:16:06.546875
2017-04-18T08:03:40
2017-04-18T08:03:40
28,960,534
3
0
null
2017-04-18T08:03:40
2015-01-08T10:19:18
C++
UTF-8
C++
false
false
4,092
cxx
// Copyright (c) 2005-2014 Code Synthesis Tools CC // // This program was generated by CodeSynthesis XSD, an XML Schema to // C++ data binding compiler. // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License version 2 as // published by the Free Software Foundation. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA // // In addition, as a special exception, Code Synthesis Tools CC gives // permission to link this program with the Xerces-C++ library (or with // modified versions of Xerces-C++ that use the same license as Xerces-C++), // and distribute linked combinations including the two. You must obey // the GNU General Public License version 2 in all respects for all of // the code used other than Xerces-C++. If you modify this copy of the // program, you may extend this exception to your version of the program, // but you are not obligated to do so. If you do not wish to do so, delete // this exception statement from your version. // // Furthermore, Code Synthesis Tools CC makes a special exception for // the Free/Libre and Open Source Software (FLOSS) which is described // in the accompanying FLOSSE file. // // Begin prologue. // // // End prologue. #include <xsd/cxx/pre.hxx> #include "SimNode_ServiceHotWaterFlowPort_Default.hxx" namespace schema { namespace simxml { namespace ResourcesGeneral { // SimNode_ServiceHotWaterFlowPort_Default // } } } #include <xsd/cxx/xml/dom/parsing-source.hxx> #include <xsd/cxx/tree/type-factory-map.hxx> namespace _xsd { static const ::xsd::cxx::tree::type_factory_plate< 0, char > type_factory_plate_init; } namespace schema { namespace simxml { namespace ResourcesGeneral { // SimNode_ServiceHotWaterFlowPort_Default // SimNode_ServiceHotWaterFlowPort_Default:: SimNode_ServiceHotWaterFlowPort_Default () : ::schema::simxml::ResourcesGeneral::SimNode_ServiceHotWaterFlowPort () { } SimNode_ServiceHotWaterFlowPort_Default:: SimNode_ServiceHotWaterFlowPort_Default (const RefId_type& RefId) : ::schema::simxml::ResourcesGeneral::SimNode_ServiceHotWaterFlowPort (RefId) { } SimNode_ServiceHotWaterFlowPort_Default:: SimNode_ServiceHotWaterFlowPort_Default (const SimNode_ServiceHotWaterFlowPort_Default& x, ::xml_schema::flags f, ::xml_schema::container* c) : ::schema::simxml::ResourcesGeneral::SimNode_ServiceHotWaterFlowPort (x, f, c) { } SimNode_ServiceHotWaterFlowPort_Default:: SimNode_ServiceHotWaterFlowPort_Default (const ::xercesc::DOMElement& e, ::xml_schema::flags f, ::xml_schema::container* c) : ::schema::simxml::ResourcesGeneral::SimNode_ServiceHotWaterFlowPort (e, f, c) { } SimNode_ServiceHotWaterFlowPort_Default* SimNode_ServiceHotWaterFlowPort_Default:: _clone (::xml_schema::flags f, ::xml_schema::container* c) const { return new class SimNode_ServiceHotWaterFlowPort_Default (*this, f, c); } SimNode_ServiceHotWaterFlowPort_Default:: ~SimNode_ServiceHotWaterFlowPort_Default () { } } } } #include <istream> #include <xsd/cxx/xml/sax/std-input-source.hxx> #include <xsd/cxx/tree/error-handler.hxx> namespace schema { namespace simxml { namespace ResourcesGeneral { } } } #include <xsd/cxx/post.hxx> // Begin epilogue. // // // End epilogue.
[ "cao@e3d.rwth-aachen.de" ]
cao@e3d.rwth-aachen.de
d8fbadfa06d127173ab58c65dad83edb16805cf2
1d9df1156e49f768ed2633641075f4c307d24ad2
/tizen_src/ewk/efl_integration/content_main_delegate_efl.cc
40ef2f0c83688495a68080cbf79a7fd0622da235
[ "BSD-3-Clause", "LGPL-2.1-or-later", "BSD-2-Clause" ]
permissive
GSIL-Monitor/platform.framework.web.chromium-efl
8056d94301c67a8524f6106482087fd683c889ce
e156100b0c5cfc84c19de612dbdb0987cddf8867
refs/heads/master
2022-10-26T00:23:44.061873
2018-10-30T03:41:51
2018-10-30T03:41:51
161,171,104
0
1
BSD-3-Clause
2022-10-20T23:50:20
2018-12-10T12:24:06
C++
UTF-8
C++
false
false
5,439
cc
// Copyright 2014 Samsung Electronics. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content_main_delegate_efl.h" #include "base/path_service.h" #include "browser/resource_dispatcher_host_delegate_efl.h" #include "command_line_efl.h" #include "content/browser/gpu/gpu_main_thread_factory.h" #include "content/browser/gpu/gpu_process_host.h" #include "content/common/locale_efl.h" #include "content/common/paths_efl.h" #include "content/gpu/in_process_gpu_thread.h" #include "content/public/common/content_switches.h" #include "content_browser_client_efl.h" #include "renderer/content_renderer_client_efl.h" #include "ui/base/resource/resource_bundle.h" #if defined(OS_TIZEN_TV_PRODUCT) #include "devtools_port_manager.h" #endif #include "components/nacl/common/features.h" #if BUILDFLAG(ENABLE_NACL) #include "components/nacl/common/nacl_paths.h" #include "components/nacl/zygote/nacl_fork_delegate_linux.h" #endif namespace content { namespace { std::string SubProcessPath() { static std::string result; if (!result.empty()) return result; char* path_from_env = getenv("EFL_WEBPROCESS_PATH"); if (path_from_env) { result = std::string(path_from_env); return result; } base::FilePath pak_dir; base::FilePath pak_file; PathService::Get(base::DIR_EXE, &pak_dir); pak_file = pak_dir.Append(FILE_PATH_LITERAL("efl_webprocess")); return pak_file.AsUTF8Unsafe(); } void InitializeUserDataDir() { base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); base::FilePath user_data_dir = command_line->GetSwitchValuePath("user-data-dir"); if (!user_data_dir.empty() && !PathService::OverrideAndCreateIfNeeded( PathsEfl::DIR_USER_DATA, user_data_dir, true, true)) { DLOG(WARNING) << "Could not set user data directory to " << user_data_dir.value(); if (!PathService::Get(PathsEfl::DIR_USER_DATA, &user_data_dir)) CHECK(false) << "Could not get default user data directory"; command_line->AppendSwitchPath("user-data-dir", user_data_dir); } } void InitializeDiskCacheDir() { base::CommandLine* command_line = base::CommandLine::ForCurrentProcess(); base::FilePath disk_cache_dir = command_line->GetSwitchValuePath("disk-cache-dir"); if (!disk_cache_dir.empty() && !PathService::OverrideAndCreateIfNeeded( base::DIR_CACHE, disk_cache_dir, true, true)) { DLOG(WARNING) << "Could not set disk cache directory to " << disk_cache_dir.value(); if (!PathService::Get(base::DIR_CACHE, &disk_cache_dir)) CHECK(false) << "Could not get default disk cache directory"; command_line->AppendSwitchPath("disk-cache-dir", disk_cache_dir); } } } // namespace ContentMainDelegateEfl::ContentMainDelegateEfl() { #if defined(OS_TIZEN_TV_PRODUCT) enableInspector = false; #endif } void ContentMainDelegateEfl::PreSandboxStartupBrowser() { LocaleEfl::Initialize(); PathService::Override(base::FILE_EXE, base::FilePath(SubProcessPath())); PathService::Override(base::FILE_MODULE, base::FilePath(SubProcessPath())); InitializeUserDataDir(); InitializeDiskCacheDir(); // needed for gpu process base::CommandLine::ForCurrentProcess()->AppendSwitchPath( switches::kBrowserSubprocessPath, base::FilePath(SubProcessPath())); // needed for gpu thread content::RegisterGpuMainThreadFactory(CreateInProcessGpuThread); } void ContentMainDelegateEfl::PreSandboxStartup() { base::FilePath pak_dir; base::FilePath pak_file; PathService::Get(base::DIR_EXE, &pak_dir); pak_file = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")); ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file); const base::CommandLine& command_line = *base::CommandLine::ForCurrentProcess(); std::string process_type = command_line.GetSwitchValueASCII(switches::kProcessType); if (process_type.empty()) { // browser process PreSandboxStartupBrowser(); } } ContentRendererClient* ContentMainDelegateEfl::CreateContentRendererClient() { renderer_client_.reset(new ContentRendererClientEfl); return renderer_client_.get(); } ContentBrowserClient* ContentMainDelegateEfl::CreateContentBrowserClient() { browser_client_.reset(new ContentBrowserClientEfl); return browser_client_.get(); } bool ContentMainDelegateEfl::BasicStartupComplete(int* /*exit_code*/) { content::SetContentClient(&content_client_); PathsEfl::Register(); #if BUILDFLAG(ENABLE_NACL) nacl::RegisterPathProvider(); #endif return false; } /* LCOV_EXCL_START */ ContentBrowserClient* ContentMainDelegateEfl::GetContentBrowserClient() const { return browser_client_.get(); } /* LCOV_EXCL_STOP */ #if defined(OS_TIZEN_TV_PRODUCT) void ContentMainDelegateEfl::ProcessExiting(const std::string& process_type) { if (!enableInspector) return; if (process_type.empty() && devtools_http_handler::DevToolsPortManager::GetInstance()) // browser devtools_http_handler::DevToolsPortManager::GetInstance()->ReleasePort(); } void ContentMainDelegateEfl::SetInspectorStatus(bool enable) { enableInspector = enable; } bool ContentMainDelegateEfl::GetInspectorStatus() { return enableInspector; } #endif #if BUILDFLAG(ENABLE_NACL) void ContentMainDelegateEfl::ZygoteStarting( std::vector<std::unique_ptr<ZygoteForkDelegate>>* delegates) { nacl::AddNaClZygoteForkDelegates(delegates); } #endif } // namespace content
[ "RetZero@desktop" ]
RetZero@desktop
7a20647dbbb2d81e84bade907373a4d7a5109c94
25c46b189b230715822a88bdaa02d8266b39f942
/src/walletdb.cpp
09c2adf3973048500f33e8d79bff6922a089eaad
[ "MIT" ]
permissive
Truth256/orthocoin
744dc98ec939afb76ec740114343cc02ac2650bd
e38d76098fd4b468d8fe9295cb6de06b199cf632
refs/heads/master
2020-02-26T16:18:48.791006
2014-09-27T12:34:03
2014-09-27T12:34:03
null
0
0
null
null
null
null
UTF-8
C++
false
false
23,829
cpp
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "walletdb.h" #include "wallet.h" #include <boost/version.hpp> #include <boost/filesystem.hpp> using namespace std; using namespace boost; static uint64_t nAccountingEntryNumber = 0; extern bool fWalletUnlockStakingOnly; // // CWalletDB // bool CWalletDB::WriteName(const string& strAddress, const string& strName) { nWalletDBUpdated++; return Write(make_pair(string("name"), strAddress), strName); } bool CWalletDB::EraseName(const string& strAddress) { // This should only be used for sending addresses, never for receiving addresses, // receiving addresses must always have an address book entry if they're not change return. nWalletDBUpdated++; return Erase(make_pair(string("name"), strAddress)); } bool CWalletDB::ReadAccount(const string& strAccount, CAccount& account) { account.SetNull(); return Read(make_pair(string("acc"), strAccount), account); } bool CWalletDB::WriteAccount(const string& strAccount, const CAccount& account) { return Write(make_pair(string("acc"), strAccount), account); } bool CWalletDB::WriteAccountingEntry(const uint64_t nAccEntryNum, const CAccountingEntry& acentry) { return Write(boost::make_tuple(string("acentry"), acentry.strAccount, nAccEntryNum), acentry); } bool CWalletDB::WriteAccountingEntry(const CAccountingEntry& acentry) { return WriteAccountingEntry(++nAccountingEntryNumber, acentry); } int64_t CWalletDB::GetAccountCreditDebit(const string& strAccount) { list<CAccountingEntry> entries; ListAccountCreditDebit(strAccount, entries); int64_t nCreditDebit = 0; BOOST_FOREACH (const CAccountingEntry& entry, entries) nCreditDebit += entry.nCreditDebit; return nCreditDebit; } void CWalletDB::ListAccountCreditDebit(const string& strAccount, list<CAccountingEntry>& entries) { bool fAllAccounts = (strAccount == "*"); Dbc* pcursor = GetCursor(); if (!pcursor) throw runtime_error("CWalletDB::ListAccountCreditDebit() : cannot create DB cursor"); unsigned int fFlags = DB_SET_RANGE; while (true) { // Read next record CDataStream ssKey(SER_DISK, CLIENT_VERSION); if (fFlags == DB_SET_RANGE) ssKey << boost::make_tuple(string("acentry"), (fAllAccounts? string("") : strAccount), uint64_t(0)); CDataStream ssValue(SER_DISK, CLIENT_VERSION); int ret = ReadAtCursor(pcursor, ssKey, ssValue, fFlags); fFlags = DB_NEXT; if (ret == DB_NOTFOUND) break; else if (ret != 0) { pcursor->close(); throw runtime_error("CWalletDB::ListAccountCreditDebit() : error scanning DB"); } // Unserialize string strType; ssKey >> strType; if (strType != "acentry") break; CAccountingEntry acentry; ssKey >> acentry.strAccount; if (!fAllAccounts && acentry.strAccount != strAccount) break; ssValue >> acentry; ssKey >> acentry.nEntryNo; entries.push_back(acentry); } pcursor->close(); } DBErrors CWalletDB::ReorderTransactions(CWallet* pwallet) { LOCK(pwallet->cs_wallet); // Old wallets didn't have any defined order for transactions // Probably a bad idea to change the output of this // First: get all CWalletTx and CAccountingEntry into a sorted-by-time multimap. typedef pair<CWalletTx*, CAccountingEntry*> TxPair; typedef multimap<int64_t, TxPair > TxItems; TxItems txByTime; for (map<uint256, CWalletTx>::iterator it = pwallet->mapWallet.begin(); it != pwallet->mapWallet.end(); ++it) { CWalletTx* wtx = &((*it).second); txByTime.insert(make_pair(wtx->nTimeReceived, TxPair(wtx, (CAccountingEntry*)0))); } list<CAccountingEntry> acentries; ListAccountCreditDebit("", acentries); BOOST_FOREACH(CAccountingEntry& entry, acentries) { txByTime.insert(make_pair(entry.nTime, TxPair((CWalletTx*)0, &entry))); } int64_t& nOrderPosNext = pwallet->nOrderPosNext; nOrderPosNext = 0; std::vector<int64_t> nOrderPosOffsets; for (TxItems::iterator it = txByTime.begin(); it != txByTime.end(); ++it) { CWalletTx *const pwtx = (*it).second.first; CAccountingEntry *const pacentry = (*it).second.second; int64_t& nOrderPos = (pwtx != 0) ? pwtx->nOrderPos : pacentry->nOrderPos; if (nOrderPos == -1) { nOrderPos = nOrderPosNext++; nOrderPosOffsets.push_back(nOrderPos); if (pacentry) // Have to write accounting regardless, since we don't keep it in memory if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry)) return DB_LOAD_FAIL; } else { int64_t nOrderPosOff = 0; BOOST_FOREACH(const int64_t& nOffsetStart, nOrderPosOffsets) { if (nOrderPos >= nOffsetStart) ++nOrderPosOff; } nOrderPos += nOrderPosOff; nOrderPosNext = std::max(nOrderPosNext, nOrderPos + 1); if (!nOrderPosOff) continue; // Since we're changing the order, write it back if (pwtx) { if (!WriteTx(pwtx->GetHash(), *pwtx)) return DB_LOAD_FAIL; } else if (!WriteAccountingEntry(pacentry->nEntryNo, *pacentry)) return DB_LOAD_FAIL; } } return DB_LOAD_OK; } class CWalletScanState { public: unsigned int nKeys; unsigned int nCKeys; unsigned int nKeyMeta; bool fIsEncrypted; bool fAnyUnordered; int nFileVersion; vector<uint256> vWalletUpgrade; CWalletScanState() { nKeys = nCKeys = nKeyMeta = 0; fIsEncrypted = false; fAnyUnordered = false; nFileVersion = 0; } }; bool ReadKeyValue(CWallet* pwallet, CDataStream& ssKey, CDataStream& ssValue, CWalletScanState &wss, string& strType, string& strErr) { try { // Unserialize // Taking advantage of the fact that pair serialization // is just the two items serialized one after the other ssKey >> strType; if (strType == "name") { string strAddress; ssKey >> strAddress; ssValue >> pwallet->mapAddressBook[CBitcoinAddress(strAddress).Get()]; } else if (strType == "tx") { uint256 hash; ssKey >> hash; CWalletTx& wtx = pwallet->mapWallet[hash]; ssValue >> wtx; if (wtx.CheckTransaction() && (wtx.GetHash() == hash)) wtx.BindWallet(pwallet); else { pwallet->mapWallet.erase(hash); return false; } // Undo serialize changes in 31600 if (31404 <= wtx.fTimeReceivedIsTxTime && wtx.fTimeReceivedIsTxTime <= 31703) { if (!ssValue.empty()) { char fTmp; char fUnused; ssValue >> fTmp >> fUnused >> wtx.strFromAccount; strErr = strprintf("LoadWallet() upgrading tx ver=%d %d '%s' %s", wtx.fTimeReceivedIsTxTime, fTmp, wtx.strFromAccount.c_str(), hash.ToString().c_str()); wtx.fTimeReceivedIsTxTime = fTmp; } else { strErr = strprintf("LoadWallet() repairing tx ver=%d %s", wtx.fTimeReceivedIsTxTime, hash.ToString().c_str()); wtx.fTimeReceivedIsTxTime = 0; } wss.vWalletUpgrade.push_back(hash); } if (wtx.nOrderPos == -1) wss.fAnyUnordered = true; //// debug print //printf("LoadWallet %s\n", wtx.GetHash().ToString().c_str()); //printf(" %12"PRId64" %s %s %s\n", // wtx.vout[0].nValue, // DateTimeStrFormat("%x %H:%M:%S", wtx.GetBlockTime()).c_str(), // wtx.hashBlock.ToString().substr(0,20).c_str(), // wtx.mapValue["message"].c_str()); } else if (strType == "acentry") { string strAccount; ssKey >> strAccount; uint64_t nNumber; ssKey >> nNumber; if (nNumber > nAccountingEntryNumber) nAccountingEntryNumber = nNumber; if (!wss.fAnyUnordered) { CAccountingEntry acentry; ssValue >> acentry; if (acentry.nOrderPos == -1) wss.fAnyUnordered = true; } } else if (strType == "key" || strType == "wkey") { vector<unsigned char> vchPubKey; ssKey >> vchPubKey; CKey key; if (strType == "key") { wss.nKeys++; CPrivKey pkey; ssValue >> pkey; key.SetPubKey(vchPubKey); if (!key.SetPrivKey(pkey)) { strErr = "Error reading wallet database: CPrivKey corrupt"; return false; } if (key.GetPubKey() != vchPubKey) { strErr = "Error reading wallet database: CPrivKey pubkey inconsistency"; return false; } if (!key.IsValid()) { strErr = "Error reading wallet database: invalid CPrivKey"; return false; } } else { CWalletKey wkey; ssValue >> wkey; key.SetPubKey(vchPubKey); if (!key.SetPrivKey(wkey.vchPrivKey)) { strErr = "Error reading wallet database: CPrivKey corrupt"; return false; } if (key.GetPubKey() != vchPubKey) { strErr = "Error reading wallet database: CWalletKey pubkey inconsistency"; return false; } if (!key.IsValid()) { strErr = "Error reading wallet database: invalid CWalletKey"; return false; } } if (!pwallet->LoadKey(key)) { strErr = "Error reading wallet database: LoadKey failed"; return false; } } else if (strType == "mkey") { unsigned int nID; ssKey >> nID; CMasterKey kMasterKey; ssValue >> kMasterKey; if(pwallet->mapMasterKeys.count(nID) != 0) { strErr = strprintf("Error reading wallet database: duplicate CMasterKey id %u", nID); return false; } pwallet->mapMasterKeys[nID] = kMasterKey; if (pwallet->nMasterKeyMaxID < nID) pwallet->nMasterKeyMaxID = nID; } else if (strType == "ckey") { wss.nCKeys++; vector<unsigned char> vchPubKey; ssKey >> vchPubKey; vector<unsigned char> vchPrivKey; ssValue >> vchPrivKey; if (!pwallet->LoadCryptedKey(vchPubKey, vchPrivKey)) { strErr = "Error reading wallet database: LoadCryptedKey failed"; return false; } wss.fIsEncrypted = true; } else if (strType == "keymeta") { CPubKey vchPubKey; ssKey >> vchPubKey; CKeyMetadata keyMeta; ssValue >> keyMeta; wss.nKeyMeta++; pwallet->LoadKeyMetadata(vchPubKey, keyMeta); // find earliest key creation time, as wallet birthday if (!pwallet->nTimeFirstKey || (keyMeta.nCreateTime < pwallet->nTimeFirstKey)) pwallet->nTimeFirstKey = keyMeta.nCreateTime; } else if (strType == "defaultkey") { ssValue >> pwallet->vchDefaultKey; } else if (strType == "pool") { int64_t nIndex; ssKey >> nIndex; CKeyPool keypool; ssValue >> keypool; pwallet->setKeyPool.insert(nIndex); // If no metadata exists yet, create a default with the pool key's // creation time. Note that this may be overwritten by actually // stored metadata for that key later, which is fine. CKeyID keyid = keypool.vchPubKey.GetID(); if (pwallet->mapKeyMetadata.count(keyid) == 0) pwallet->mapKeyMetadata[keyid] = CKeyMetadata(keypool.nTime); } else if (strType == "version") { ssValue >> wss.nFileVersion; if (wss.nFileVersion == 10300) wss.nFileVersion = 300; } else if (strType == "cscript") { uint160 hash; ssKey >> hash; CScript script; ssValue >> script; if (!pwallet->LoadCScript(script)) { strErr = "Error reading wallet database: LoadCScript failed"; return false; } } else if (strType == "orderposnext") { ssValue >> pwallet->nOrderPosNext; } } catch (...) { return false; } return true; } static bool IsKeyType(string strType) { return (strType== "key" || strType == "wkey" || strType == "mkey" || strType == "ckey"); } DBErrors CWalletDB::LoadWallet(CWallet* pwallet) { pwallet->vchDefaultKey = CPubKey(); CWalletScanState wss; bool fNoncriticalErrors = false; DBErrors result = DB_LOAD_OK; try { LOCK(pwallet->cs_wallet); int nMinVersion = 0; if (Read((string)"minversion", nMinVersion)) { if (nMinVersion > CLIENT_VERSION) return DB_TOO_NEW; pwallet->LoadMinVersion(nMinVersion); } // Get cursor Dbc* pcursor = GetCursor(); if (!pcursor) { printf("Error getting wallet database cursor\n"); return DB_CORRUPT; } while (true) { // Read next record CDataStream ssKey(SER_DISK, CLIENT_VERSION); CDataStream ssValue(SER_DISK, CLIENT_VERSION); int ret = ReadAtCursor(pcursor, ssKey, ssValue); if (ret == DB_NOTFOUND) break; else if (ret != 0) { printf("Error reading next record from wallet database\n"); return DB_CORRUPT; } // Try to be tolerant of single corrupt records: string strType, strErr; if (!ReadKeyValue(pwallet, ssKey, ssValue, wss, strType, strErr)) { // losing keys is considered a catastrophic error, anything else // we assume the user can live with: if (IsKeyType(strType)) result = DB_CORRUPT; else { // Leave other errors alone, if we try to fix them we might make things worse. fNoncriticalErrors = true; // ... but do warn the user there is something wrong. if (strType == "tx") // Rescan if there is a bad transaction record: SoftSetBoolArg("-rescan", true); } } if (!strErr.empty()) printf("%s\n", strErr.c_str()); } pcursor->close(); } catch (...) { result = DB_CORRUPT; } if (fNoncriticalErrors && result == DB_LOAD_OK) result = DB_NONCRITICAL_ERROR; // Any wallet corruption at all: skip any rewriting or // upgrading, we don't want to make it worse. if (result != DB_LOAD_OK) return result; printf("nFileVersion = %d\n", wss.nFileVersion); printf("Keys: %u plaintext, %u encrypted, %u w/ metadata, %u total\n", wss.nKeys, wss.nCKeys, wss.nKeyMeta, wss.nKeys + wss.nCKeys); // nTimeFirstKey is only reliable if all keys have metadata if ((wss.nKeys + wss.nCKeys) != wss.nKeyMeta) pwallet->nTimeFirstKey = 1; // 0 would be considered 'no value' BOOST_FOREACH(uint256 hash, wss.vWalletUpgrade) WriteTx(hash, pwallet->mapWallet[hash]); // Rewrite encrypted wallets of versions 0.4.0 and 0.5.0rc: if (wss.fIsEncrypted && (wss.nFileVersion == 40000 || wss.nFileVersion == 50000)) return DB_NEED_REWRITE; if (wss.nFileVersion < CLIENT_VERSION) // Update WriteVersion(CLIENT_VERSION); if (wss.fAnyUnordered) result = ReorderTransactions(pwallet); return result; } void ThreadFlushWalletDB(void* parg) { // Make this thread recognisable as the wallet flushing thread RenameThread("orthocoin-wallet"); const string& strFile = ((const string*)parg)[0]; static bool fOneThread; if (fOneThread) return; fOneThread = true; if (!GetBoolArg("-flushwallet", true)) return; unsigned int nLastSeen = nWalletDBUpdated; unsigned int nLastFlushed = nWalletDBUpdated; int64_t nLastWalletUpdate = GetTime(); while (!fShutdown) { MilliSleep(500); if (nLastSeen != nWalletDBUpdated) { nLastSeen = nWalletDBUpdated; nLastWalletUpdate = GetTime(); } if (nLastFlushed != nWalletDBUpdated && GetTime() - nLastWalletUpdate >= 2) { TRY_LOCK(bitdb.cs_db,lockDb); if (lockDb) { // Don't do this if any databases are in use int nRefCount = 0; map<string, int>::iterator mi = bitdb.mapFileUseCount.begin(); while (mi != bitdb.mapFileUseCount.end()) { nRefCount += (*mi).second; mi++; } if (nRefCount == 0 && !fShutdown) { map<string, int>::iterator mi = bitdb.mapFileUseCount.find(strFile); if (mi != bitdb.mapFileUseCount.end()) { printf("Flushing wallet.dat\n"); nLastFlushed = nWalletDBUpdated; int64_t nStart = GetTimeMillis(); // Flush wallet.dat so it's self contained bitdb.CloseDb(strFile); bitdb.CheckpointLSN(strFile); bitdb.mapFileUseCount.erase(mi++); printf("Flushed wallet.dat %"PRId64"ms\n", GetTimeMillis() - nStart); } } } } } } bool BackupWallet(const CWallet& wallet, const string& strDest) { if (!wallet.fFileBacked) return false; while (!fShutdown) { { LOCK(bitdb.cs_db); if (!bitdb.mapFileUseCount.count(wallet.strWalletFile) || bitdb.mapFileUseCount[wallet.strWalletFile] == 0) { // Flush log data to the dat file bitdb.CloseDb(wallet.strWalletFile); bitdb.CheckpointLSN(wallet.strWalletFile); bitdb.mapFileUseCount.erase(wallet.strWalletFile); // Copy wallet.dat filesystem::path pathSrc = GetDataDir() / wallet.strWalletFile; filesystem::path pathDest(strDest); if (filesystem::is_directory(pathDest)) pathDest /= wallet.strWalletFile; try { #if BOOST_VERSION >= 104000 filesystem::copy_file(pathSrc, pathDest, filesystem::copy_option::overwrite_if_exists); #else filesystem::copy_file(pathSrc, pathDest); #endif printf("copied wallet.dat to %s\n", pathDest.string().c_str()); return true; } catch(const filesystem::filesystem_error &e) { printf("error copying wallet.dat to %s - %s\n", pathDest.string().c_str(), e.what()); return false; } } } MilliSleep(100); } return false; } // // Try to (very carefully!) recover wallet.dat if there is a problem. // bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename, bool fOnlyKeys) { // Recovery procedure: // move wallet.dat to wallet.timestamp.bak // Call Salvage with fAggressive=true to // get as much data as possible. // Rewrite salvaged data to wallet.dat // Set -rescan so any missing transactions will be // found. int64_t now = GetTime(); std::string newFilename = strprintf("wallet.%"PRId64".bak", now); int result = dbenv.dbenv.dbrename(NULL, filename.c_str(), NULL, newFilename.c_str(), DB_AUTO_COMMIT); if (result == 0) printf("Renamed %s to %s\n", filename.c_str(), newFilename.c_str()); else { printf("Failed to rename %s to %s\n", filename.c_str(), newFilename.c_str()); return false; } std::vector<CDBEnv::KeyValPair> salvagedData; bool allOK = dbenv.Salvage(newFilename, true, salvagedData); if (salvagedData.empty()) { printf("Salvage(aggressive) found no records in %s.\n", newFilename.c_str()); return false; } printf("Salvage(aggressive) found %"PRIszu" records\n", salvagedData.size()); bool fSuccess = allOK; Db* pdbCopy = new Db(&dbenv.dbenv, 0); int ret = pdbCopy->open(NULL, // Txn pointer filename.c_str(), // Filename "main", // Logical db name DB_BTREE, // Database type DB_CREATE, // Flags 0); if (ret > 0) { printf("Cannot create database file %s\n", filename.c_str()); return false; } CWallet dummyWallet; CWalletScanState wss; DbTxn* ptxn = dbenv.TxnBegin(); BOOST_FOREACH(CDBEnv::KeyValPair& row, salvagedData) { if (fOnlyKeys) { CDataStream ssKey(row.first, SER_DISK, CLIENT_VERSION); CDataStream ssValue(row.second, SER_DISK, CLIENT_VERSION); string strType, strErr; bool fReadOK = ReadKeyValue(&dummyWallet, ssKey, ssValue, wss, strType, strErr); if (!IsKeyType(strType)) continue; if (!fReadOK) { printf("WARNING: CWalletDB::Recover skipping %s: %s\n", strType.c_str(), strErr.c_str()); continue; } } Dbt datKey(&row.first[0], row.first.size()); Dbt datValue(&row.second[0], row.second.size()); int ret2 = pdbCopy->put(ptxn, &datKey, &datValue, DB_NOOVERWRITE); if (ret2 > 0) fSuccess = false; } ptxn->commit(0); pdbCopy->close(0); delete pdbCopy; return fSuccess; } bool CWalletDB::Recover(CDBEnv& dbenv, std::string filename) { return CWalletDB::Recover(dbenv, filename, false); }
[ "development@orthocoin.org" ]
development@orthocoin.org
eb5883c06e114be96749c0245efda2309c16f3b9
73c8a3179b944b63b2a798542896e4cdf0937b6e
/SPOJ/Maratona.cpp
1ed194942bdfd1eff68d20b68b979250ffc8ad0c
[ "Apache-2.0" ]
permissive
aajjbb/contest-files
c151f1ab9b562ca91d2f8f4070cb0aac126a188d
71de602a798b598b0365c570dd5db539fecf5b8c
refs/heads/master
2023-07-23T19:34:12.565296
2023-07-16T00:57:55
2023-07-16T00:57:59
52,963,297
2
4
null
2017-08-03T20:12:19
2016-03-02T13:05:25
C++
UTF-8
C++
false
false
749
cpp
#include <iostream> #include <vector> #include <bitset> #include <list> #include <map> #include <queue> #include <set> #include <stack> #include <algorithm> #include <functional> #include <valarray> #include <complex> #include <utility> #include <new> #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <assert.h> #include <string.h> #include <time.h> #include <math.h> using namespace std; int i, n, m, v[10010]; int main(void) { scanf("%d%d", &n, &m); bool ok = false; for(i = 0; i < n; i++) { scanf("%d", &v[i]); } v[n] = 42195 ; for(i = 1; i <= n; i++) { if(v[i] - v[i - 1] > m) ok = true; } if(ok) { printf("N\n"); } else { printf("S\n"); } return 0; }
[ "jefersonlsiq@gmail.com" ]
jefersonlsiq@gmail.com
4c655d560b5f538f988ac19f5f76759e58388946
d96cec51cd9002f826f7f17402dcd45bb6869154
/SHU_SWB_Project/src/Framework/EventManager/EventId.h
64cb8f4b80b5ed1b75f4498eac23beb7285b0f83
[]
no_license
andersonbrands/shu-swb-base-project
4812b372330919dc03945a9852e80a97068a233a
81c4f6f5bd92a6dcf32d33866d28e6f879d6a8db
refs/heads/main
2023-04-20T04:48:19.798743
2021-05-04T19:19:27
2021-05-04T19:20:34
364,362,167
0
0
null
null
null
null
UTF-8
C++
false
false
1,240
h
/*************************************************************************************** * Title: EventId.h * Author: Brandao, Anderson * Date: 2014 * * Based on original by Bruce Sutherland available at http://www.apress.com/9781430258308 (2014) * ***************************************************************************************/ #ifndef EVENT_ID_H_ #define EVENT_ID_H_ namespace Framework { typedef unsigned int EventId; //static const EventId EVENT_NAME = value; static const EventId ON_LOST_DEVICE = 0; static const EventId ON_RESET_DEVICE = 1; static const EventId CHECK_DEVICE_IS_LOST = 2; static const EventId TOGGLE_FULLSCREEN = 3; static const EventId PLATFORM_SUSPEND = 4; static const EventId PLATFORM_RESUME = 5; static const EventId PLATFORM_STOP = 6; static const EventId PRE_RENDER_EVENT = 7; static const EventId RENDER_EVENT = 8; static const EventId CAMERA_MOVE = 9; static const EventId UPDATE = 10; static const EventId POST_UPDATE = 11; static const EventId COLLISION_EVENT = 12; static const EventId CLICKED_CARD = 13; static const EventId APP_QUIT = 14; // TODO: create game specific events outside framework } #endif // EVENT_ID_H_
[ "anderson.brands@gmail.com" ]
anderson.brands@gmail.com
f9370dbaa817f60ed87a05d2d0d86429aca15def
db5126e5c8d8d353541861eaf23186c536c3f6f0
/Pandora/k4GaudiPandora/include/Utility.h
0bd75b5d94f4725581e44176a02fbb94a99088fa
[]
no_license
key4hep/k4Pandora
6162048205296572ff791744b92b5f243e8d2ec6
583288153bf6e6f1ea94a0d5b1bcb515628b7a4d
refs/heads/master
2023-08-07T12:43:48.787281
2023-07-18T20:04:13
2023-07-19T06:16:12
281,028,831
1
5
null
2023-07-19T06:16:13
2020-07-20T06:05:42
C++
UTF-8
C++
false
false
101
h
#ifndef MYUTILITY #define MYUTILITY 1 #include <sstream> std::string Convert (float number); #endif
[ "wxfang@lxslc601.ihep.ac.cn" ]
wxfang@lxslc601.ihep.ac.cn
79cbf16b5a208763cd19767f40611e00523ba1b6
9f3dba54e05c5ddd2009d6667f5b346a83b13d80
/sequencefrequency.h
127798cafed414b656ed326b044fbaeb032ee235
[]
no_license
FairyMeng/menue
d56017e9bcc7bfd541bf6a7c7a39141203698550
d645c4239c3eba6d47f5b64a66aeb8210e7b139c
refs/heads/master
2023-04-05T06:00:45.077132
2021-04-14T01:54:12
2021-04-14T01:54:12
357,741,450
0
0
null
null
null
null
UTF-8
C++
false
false
373
h
#ifndef SEQUENCEFREQUENCY_H #define SEQUENCEFREQUENCY_H #include <QMainWindow> namespace Ui { class SequenceFrequency; } class SequenceFrequency : public QMainWindow { Q_OBJECT public: explicit SequenceFrequency(QWidget *parent = 0); ~SequenceFrequency(); private: Ui::SequenceFrequency *ui; }; #endif // SEQUENCEFREQUENCY_H
[ "mengyan@mengdeMacBook-Pro.local" ]
mengyan@mengdeMacBook-Pro.local
eb583100648d782848b5aa678a2afe663091b398
368dac6c28dc44bd28288bce651c32f1f640dc91
/virtual/client/include/csws/cshints.h
3fc89f8f63d11c006130d448d30c62fa60b4377f
[]
no_license
Programming-Systems-Lab/archived-memento
8fbaa9387329d1d11ae4e8c1c20a92aeadeb86e0
084c56a679585c60b5fc418cd69b98c00cf2c81e
refs/heads/master
2020-12-02T12:21:04.667537
2003-11-04T17:08:35
2003-11-04T17:08:35
67,139,953
0
0
null
null
null
null
UTF-8
C++
false
false
3,939
h
/* Crystal Space Windowing System: floating hints class Copyright (C) 2000 by Andrew Zabolotny <bit@eltech.ru> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __CS_CSHINTS_H__ #define __CS_CSHINTS_H__ /**\file * Crystal Space Windowing System: floating hints class */ /** * \addtogroup csws_comps_hints * @{ */ #define CSWS_INTERNAL #include "csws.h" #include "cscomp.h" #include "csutil/csvector.h" /** * This component will display "floating hints", which will vanish * as soon as you move the mouse or press a key. A object of this class * is automatically created by csComponent class when it detects that * the mouse is unmoved for some time over some non-focused component * that has an associated hint. */ class csHint : public csComponent { /// Old mouse owner (before the hint has popped up). Usually NULL. csComponent *oldmo; public: /// Create a floating hint with an text string csHint (csComponent *iParent, const char *iText, iFont *Font = NULL, int iFontSize = -1); /// Cleanup before destruction virtual ~csHint (); /// Draw the hint object virtual void Draw (); /// Handle all events before any others get a chance to eat it virtual bool PreHandleEvent (iEvent &Event); /// Set the text of the hint (also resizes the window) virtual void SetText (const char *iText); }; /// Default timeout for hints (in 1/1000 seconds) #define CSHINT_DEFAULT_TIMEOUT 3000 /** * The "hint manager" keeps track of all hints and associated components, * and creates the appropiate csHint when it detects mouse is not moved * for too long time. */ class csHintManager : public csVector { /// \internal This structure holds the data about one hint struct HintStore { /// \internal The component associated with the hint csComponent *comp; /// \internal The text string starts right after the end of this structure char text [1]; }; /// The application csApp *app; /// Last time when the mouse has been moved csTicks time; /// The timeout csTicks timeout; /// Font for hints iFont *font; /// Font size int fontsize; /// True if we haven't checked yet the component under the mouse bool check; public: /// Initialize the hint manager object csHintManager (csApp *iApp); /// Destroy the hint manager virtual ~csHintManager (); /// Override FreeItem to correctly free hint store objects virtual bool FreeItem (csSome Item); /// Compare two hints (by csComponent's) virtual int Compare (csSome Item1, csSome Item2, int Mode) const; /// Compare a hint with a csComponent virtual int CompareKey (csSome Item, csConstSome Key, int Mode) const; /// Add a new hint void Add (const char *iText, csComponent *iComp); /// Remove the hint (if any) associated with this component void Remove (csComponent *iComp); /// Examine a mouse event void HandleEvent (iEvent &Event); /// Set hints timeout void SetTimeout (csTicks iTimeout) { timeout = iTimeout; } /// Set the font and font size for hints void SetFont (iFont *iNewFont, int iSize); private: /// \internal Check if this child has an associated hint static bool do_checkhint (csComponent *comp, void *data); }; /** @} */ #endif // __CS_CSHINTS_H__
[ "mg689" ]
mg689
b26d8a1f9e250fb1fc422d68149bba9cd92bf358
38abf7ed087d557c85881907351ca44ee843757a
/src/Ssw.cpp
38d89f255da66b9df6863bfff093d17acc4c562a
[]
no_license
bowhan/split_pacbio_bam_by_primer
253d1e188911846d330e09f7ed4ee6933db4a074
3fdb30bb06013aed2d3ad51c29e9be92935582c2
refs/heads/master
2021-01-20T20:37:00.852870
2020-02-06T14:27:49
2020-02-06T14:27:49
63,913,803
0
1
null
2016-07-27T22:40:13
2016-07-22T01:29:29
Python
UTF-8
C++
false
false
17,218
cpp
// ssw_cpp.cpp // Created by Wan-Ping Lee // Last revision by Mengyao Zhao on 2017-05-30 #include "Ssw.h" #include "private/ssw/ssw_impl.h" #include <sstream> namespace { static const int8_t kBaseTranslation[128] = { 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 , 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // A C G 4, 0, 4, 1, 4, 4, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, // T 4, 4, 4, 4, 3, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, // a c g 4, 0, 4, 1, 4, 4, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, // t 4, 4, 4, 4, 3, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4 }; void BuildSwScoreMatrix(const uint8_t& match_score, const uint8_t& mismatch_penalty, int8_t *matrix) { // The score matrix looks like // // A, C, G, T, N // score_matrix_ = { 2, -2, -2, -2, -2, // A // -2, 2, -2, -2, -2, // C // -2, -2, 2, -2, -2, // G // -2, -2, -2, 2, -2, // T // -2, -2, -2, -2, -2};// N int id = 0; for (int i = 0; i < 4; ++i) { for (int j = 0; j < 4; ++j) { matrix[id] = ((i == j) ? match_score : static_cast<int8_t>(-mismatch_penalty)); ++id; } matrix[id] = static_cast<int8_t>(-mismatch_penalty); // For N ++id; } for (int i = 0; i < 5; ++i) matrix[id++] = static_cast<int8_t>(-mismatch_penalty); // For N } void ConvertAlignment(const s_align& s_al, const int& query_len, StripedSmithWaterman::Alignment *al) { al->sw_score = s_al.score1; al->sw_score_next_best = s_al.score2; al->ref_begin = s_al.ref_begin1; al->ref_end = s_al.ref_end1; al->query_begin = s_al.read_begin1; al->query_end = s_al.read_end1; al->ref_end_next_best = s_al.ref_end2; al->cigar.clear(); al->cigar_string.clear(); if (s_al.cigarLen > 0) { std::ostringstream cigar_string; if (al->query_begin > 0) { uint32_t cigar = to_cigar_int(al->query_begin, 'S'); al->cigar.push_back(cigar); cigar_string << al->query_begin << 'S'; } for (int i = 0; i < s_al.cigarLen; ++i) { al->cigar.push_back(s_al.cigar[i]); cigar_string << cigar_int_to_len(s_al.cigar[i]) << cigar_int_to_op(s_al.cigar[i]); } int end = query_len - al->query_end - 1; if (end > 0) { uint32_t cigar = to_cigar_int(end, 'S'); al->cigar.push_back(cigar); cigar_string << end << 'S'; } al->cigar_string = cigar_string.str(); } // end if } // @Function: // Calculate the length of the previous cigar operator // and store it in new_cigar and new_cigar_string. // Clean up in_M (false), in_X (false), length_M (0), and length_X(0). void CleanPreviousMOperator( bool *in_M , bool *in_X , uint32_t *length_M , uint32_t *length_X , std::vector<uint32_t> *new_cigar , std::ostringstream *new_cigar_string ) { if (*in_M) { uint32_t match = to_cigar_int(*length_M, '='); new_cigar->push_back(match); (*new_cigar_string) << *length_M << '='; } else if (*in_X) { //in_X uint32_t match = to_cigar_int(*length_X, 'X'); new_cigar->push_back(match); (*new_cigar_string) << *length_X << 'X'; } // Clean up *in_M = false; *in_X = false; *length_M = 0; *length_X = 0; } // @Function: // 1. Calculate the number of mismatches. // 2. Modify the cigar string: // differentiate matches (M) and mismatches(X). // @Return: // The number of mismatches. int CalculateNumberMismatch( StripedSmithWaterman::Alignment *al, int8_t const *ref, int8_t const *query, const int& query_len ) { ref += al->ref_begin; query += al->query_begin; int mismatch_length = 0; std::vector<uint32_t> new_cigar; std::ostringstream new_cigar_string; if (al->query_begin > 0) { uint32_t cigar = to_cigar_int(al->query_begin, 'S'); new_cigar.push_back(cigar); new_cigar_string << al->query_begin << 'S'; } bool in_M = false; // the previous is match bool in_X = false; // the previous is mismatch uint32_t length_M = 0; uint32_t length_X = 0; for (unsigned int i = 0; i < al->cigar.size(); ++i) { char op = cigar_int_to_op(al->cigar[i]); uint32_t length = cigar_int_to_len(al->cigar[i]); if (op == 'M') { for (uint32_t j = 0; j < length; ++j) { if (*ref != *query // && *ref != 4 /* do NOT count N in reference as mismatch */ ) { ++mismatch_length; if (in_M) { // the previous is match; however the current one is mismatche uint32_t match = to_cigar_int(length_M, '='); new_cigar.push_back(match); new_cigar_string << length_M << '='; } length_M = 0; ++length_X; in_M = false; in_X = true; } else { // *ref == *query if (in_X) { // the previous is mismatch; however the current one is matche uint32_t match = to_cigar_int(length_X, 'X'); new_cigar.push_back(match); new_cigar_string << length_X << 'X'; } ++length_M; length_X = 0; in_M = true; in_X = false; } // end of if (*ref != *query) ++ref; ++query; } } else if (op == 'I') { query += length; mismatch_length += length; CleanPreviousMOperator(&in_M, &in_X, &length_M, &length_X, &new_cigar, &new_cigar_string); new_cigar.push_back(al->cigar[i]); new_cigar_string << length << 'I'; } else if (op == 'D') { ref += length; mismatch_length += length; CleanPreviousMOperator(&in_M, &in_X, &length_M, &length_X, &new_cigar, &new_cigar_string); new_cigar.push_back(al->cigar[i]); new_cigar_string << length << 'D'; } } CleanPreviousMOperator(&in_M, &in_X, &length_M, &length_X, &new_cigar, &new_cigar_string); int end = query_len - al->query_end - 1; if (end > 0) { uint32_t cigar = to_cigar_int(end, 'S'); new_cigar.push_back(cigar); new_cigar_string << end << 'S'; } al->cigar_string.clear(); al->cigar.clear(); al->cigar_string = new_cigar_string.str(); al->cigar = new_cigar; return mismatch_length; } void SetFlag(const StripedSmithWaterman::Filter& filter, uint8_t *flag) { if (filter.report_begin_position) *flag |= 0x08; if (filter.report_cigar) *flag |= 0x0f; } // http://www.cplusplus.com/faq/sequences/arrays/sizeof-array/#cpp template <typename T, size_t N> inline size_t SizeOfArray(const T(&)[N]) { return N; } } // namespace namespace StripedSmithWaterman { Aligner::Aligner(void) : score_matrix_(NULL) , score_matrix_size_(5) , translation_matrix_(NULL) , match_score_(2) , mismatch_penalty_(2) , gap_opening_penalty_(3) , gap_extending_penalty_(1) , translated_reference_(NULL) , reference_length_(0) { BuildDefaultMatrix(); } Aligner::Aligner( const uint8_t& match_score , const uint8_t& mismatch_penalty , const uint8_t& gap_opening_penalty , const uint8_t& gap_extending_penalty ) : score_matrix_(NULL) , score_matrix_size_(5) , translation_matrix_(NULL) , match_score_(match_score) , mismatch_penalty_(mismatch_penalty) , gap_opening_penalty_(gap_opening_penalty) , gap_extending_penalty_(gap_extending_penalty) , translated_reference_(NULL) , reference_length_(0) { BuildDefaultMatrix(); } Aligner::Aligner(const int8_t *score_matrix , const int& score_matrix_size , const int8_t *translation_matrix , const int& translation_matrix_size ) : score_matrix_(NULL) , score_matrix_size_(score_matrix_size) , translation_matrix_(NULL) , match_score_(2) , mismatch_penalty_(2) , gap_opening_penalty_(3) , gap_extending_penalty_(1) , translated_reference_(NULL) , reference_length_(0) { score_matrix_ = new int8_t[score_matrix_size_ * score_matrix_size_]; memcpy(score_matrix_, score_matrix, sizeof(int8_t) * score_matrix_size_ * score_matrix_size_); translation_matrix_ = new int8_t[translation_matrix_size]; memcpy(translation_matrix_, translation_matrix, sizeof(int8_t) * translation_matrix_size); } Aligner::Aligner(Aligner&& other) { if (this != &other) { std::swap(score_matrix_, other.score_matrix_); score_matrix_size_ = other.score_matrix_size_; std::swap(translation_matrix_, other.translation_matrix_); match_score_ = other.match_score_; gap_opening_penalty_ = other.gap_opening_penalty_; gap_extending_penalty_ = other.gap_extending_penalty_; std::swap(translated_reference_, other.translated_reference_); reference_length_ = other.reference_length_; } } Aligner& Aligner::operator=(Aligner&& other) { // assert(this != &other); std::swap(score_matrix_, other.score_matrix_); score_matrix_size_ = other.score_matrix_size_; std::swap(translation_matrix_, other.translation_matrix_); match_score_ = other.match_score_; gap_opening_penalty_ = other.gap_opening_penalty_; gap_extending_penalty_ = other.gap_extending_penalty_; std::swap(translated_reference_, other.translated_reference_); reference_length_ = other.reference_length_; return *this; } Aligner::~Aligner(void) { Clear(); } int Aligner::SetReferenceSequence(const char *seq, const int& length) { int len = 0; if (translation_matrix_) { // calculate the valid length //int calculated_ref_length = static_cast<int>(strlen(seq)); //int valid_length = (calculated_ref_length > length) // ? length : calculated_ref_length; int valid_length = length; // delete the current buffer CleanReferenceSequence(); // allocate a new buffer translated_reference_ = new int8_t[valid_length]; len = TranslateBase(seq, valid_length, translated_reference_); } else { // nothing } reference_length_ = len; return len; } int Aligner::TranslateBase(const char *bases, const int& length, int8_t *translated) const { const char *ptr = bases; int len = 0; for (int i = 0; i < length; ++i) { translated[i] = translation_matrix_[(int) *ptr]; ++ptr; ++len; } return len; } bool Aligner::Align(const char *query, const Filter& filter, Alignment *alignment) const { if (!translation_matrix_) return false; if (reference_length_ == 0) return false; int32_t maskLen = strlen(query); if (maskLen > 30) { maskLen = maskLen / 2; } else { maskLen = 15; } int query_len = strlen(query); if (query_len == 0) return false; int8_t *translated_query = new int8_t[query_len]; TranslateBase(query, query_len, translated_query); const int8_t score_size = 2; s_profile *profile = ssw_init(translated_query, query_len, score_matrix_, score_matrix_size_, score_size); uint8_t flag = 0; SetFlag(filter, &flag); s_align *s_al = ssw_align(profile , translated_reference_ , reference_length_ , static_cast<int>(gap_opening_penalty_) , static_cast<int>(gap_extending_penalty_) , flag , filter.score_filter , filter.distance_filter , maskLen); alignment->Clear(); ConvertAlignment(*s_al, query_len, alignment); alignment->mismatches = CalculateNumberMismatch(&*alignment, translated_reference_, translated_query, query_len); // Free memory delete[] translated_query; align_destroy(s_al); init_destroy(profile); return true; } bool Aligner::Align(const char *query , const char *ref , const int& ref_len , const Filter& filter , Alignment *alignment , const int32_t maskLen ) const { if (!translation_matrix_) return false; int query_len = strlen(query); if (query_len == 0) return false; int8_t *translated_query = new int8_t[query_len]; TranslateBase(query, query_len, translated_query); // calculate the valid length int valid_ref_len = ref_len; int8_t *translated_ref = new int8_t[valid_ref_len]; TranslateBase(ref, valid_ref_len, translated_ref); const int8_t score_size = 2; s_profile *profile = ssw_init(translated_query, query_len, score_matrix_, score_matrix_size_, score_size); uint8_t flag = 0; SetFlag(filter, &flag); s_align *s_al = ssw_align(profile , translated_ref , valid_ref_len , static_cast<int>(gap_opening_penalty_) , static_cast<int>(gap_extending_penalty_) , flag , filter.score_filter , filter.distance_filter , maskLen); alignment->Clear(); ConvertAlignment(*s_al, query_len, alignment); alignment->mismatches = CalculateNumberMismatch(&*alignment, translated_ref, translated_query, query_len); // Free memory delete[] translated_query; delete[] translated_ref; align_destroy(s_al); init_destroy(profile); return true; } void Aligner::Clear(void) { ClearMatrices(); CleanReferenceSequence(); } void Aligner::SetAllDefault(void) { score_matrix_size_ = 5; match_score_ = 2; mismatch_penalty_ = 2; gap_opening_penalty_ = 3; gap_extending_penalty_ = 1; reference_length_ = 0; } bool Aligner::ReBuild(void) { if (translation_matrix_) return false; SetAllDefault(); BuildDefaultMatrix(); return true; } bool Aligner::ReBuild( const uint8_t& match_score , const uint8_t& mismatch_penalty , const uint8_t& gap_opening_penalty , const uint8_t& gap_extending_penalty ) { if (translation_matrix_) return false; SetAllDefault(); match_score_ = match_score; mismatch_penalty_ = mismatch_penalty; gap_opening_penalty_ = gap_opening_penalty; gap_extending_penalty_ = gap_extending_penalty; BuildDefaultMatrix(); return true; } bool Aligner::ReBuild( const int8_t *score_matrix , const int& score_matrix_size , const int8_t *translation_matrix , const int& translation_matrix_size ) { ClearMatrices(); score_matrix_ = new int8_t[score_matrix_size_ * score_matrix_size_]; memcpy(score_matrix_, score_matrix, sizeof(int8_t) * score_matrix_size_ * score_matrix_size_); translation_matrix_ = new int8_t[translation_matrix_size]; memcpy(translation_matrix_, translation_matrix, sizeof(int8_t) * translation_matrix_size); return true; } bool Aligner::RebuildScoreMatrix(const int8_t *score_matrix, const int& score_matrix_size) { ClearMatrices(); score_matrix_ = new int8_t[score_matrix_size_ * score_matrix_size_]; memcpy(score_matrix_, score_matrix, sizeof(int8_t) * score_matrix_size_ * score_matrix_size_); translation_matrix_ = new int8_t[SizeOfArray(kBaseTranslation)]; memcpy(translation_matrix_, kBaseTranslation, sizeof(int8_t) * SizeOfArray(kBaseTranslation)); return true; } void Aligner::BuildDefaultMatrix(void) { ClearMatrices(); score_matrix_ = new int8_t[score_matrix_size_ * score_matrix_size_]; BuildSwScoreMatrix(match_score_, mismatch_penalty_, score_matrix_); translation_matrix_ = new int8_t[SizeOfArray(kBaseTranslation)]; memcpy(translation_matrix_, kBaseTranslation, sizeof(int8_t) * SizeOfArray(kBaseTranslation)); } void Aligner::ClearMatrices(void) { delete[] score_matrix_; score_matrix_ = NULL; delete[] translation_matrix_; translation_matrix_ = NULL; } uint8_t Aligner::GetMatchScore() const { return match_score_; } uint8_t Aligner::GetMismatchPenalty() const { return mismatch_penalty_; } uint8_t Aligner::GetGapOpenPanalty() const { return gap_opening_penalty_; } uint8_t Aligner::GetGapExtPenalty() const { return gap_extending_penalty_; } } // namespace StripedSmithWaterman
[ "bowhan@icloud.com" ]
bowhan@icloud.com
da0554bda344408e811f324e3733596adfb29585
fdc5362d2e95fbc9f56bf527fafc9b87d0e54c76
/TILING2/juheesvt_matrix.cpp
2cd744c5c1e135353daf72306756bdd801da3c53
[]
no_license
kmu-algospot/problems
65175a29edfffdfd73a8126d3d7c97ec330a1bd5
4aa5cc5bd9dfa5e3714269ed8df20f3d11c92cc0
refs/heads/master
2020-09-07T13:21:55.071004
2020-05-03T07:54:53
2020-05-03T07:54:53
220,794,040
4
0
null
null
null
null
UTF-8
C++
false
false
1,214
cpp
// // Created by juheeSVT on 2020-03-21. // #include <iostream> using namespace std; struct Matrix { unsigned long matrix[2][2] = {1,1,1,0}; }; Matrix multiplication(Matrix a, Matrix b); Matrix matrixFunc(Matrix M, int number); int main() { int testCase, number; cin >> testCase; Matrix f1; while(testCase--) { cin >> number; cout << matrixFunc(f1, number).matrix[0][0]<< endl; } } Matrix multiplication(Matrix a, Matrix b) { Matrix ret; ret.matrix[0][0] =( (a.matrix[0][0] * b.matrix[0][0] + a.matrix[0][1] * b.matrix[1][0])) % 1000000007 ; ret.matrix[0][1] =( (a.matrix[0][0] * b.matrix[0][1] + a.matrix[0][1] * b.matrix[1][1]) ) % 1000000007; ret.matrix[1][0] =( (a.matrix[1][0] * b.matrix[0][0] + a.matrix[1][1] * b.matrix[1][0]) )% 1000000007; ret.matrix[1][1] =( (a.matrix[1][0] * b.matrix[0][1] + a.matrix[1][1] * b.matrix[1][1]) )% 1000000007; return ret; } Matrix matrixFunc(Matrix M, int number) { if ( number > 1) { M = matrixFunc(M, number / 2); M = multiplication(M, M); if (number % 2 != 0) { Matrix F1; M = multiplication(M, F1); } } return M; }
[ "noreply@github.com" ]
kmu-algospot.noreply@github.com
f6d4269decd32e59baacf573d92c8d8b87c70be6
d5eb49a8895a8edf7e7139e49ca86e643a5ba6f7
/robotcode/projects/FRC11_logomotion/LRT11/Util/Profiler.cpp
a5d5da98ad19be834d04380dc1bcec084012d056
[]
no_license
SkechyCoder/team846.github.io
10a0be95217a4492d7a01b4c17d4db530be22a6b
62139422bb414a9b7c9962e77782aa702802657a
refs/heads/master
2023-08-02T07:52:38.296525
2020-09-28T00:29:04
2020-09-28T00:29:04
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,581
cpp
#include "Profiler.h" Profiler* Profiler::instance = NULL; Profiler& Profiler::GetInstance() { if(instance == NULL) instance = new Profiler(); return *instance; } Profiler::Profiler() : cycleIndex(0) { AddToSingletonList(); } template <class PairT> struct SortBySecondValue { bool operator()(const PairT& lhs, const PairT& rhs) const { return lhs.second > rhs.second; } }; void Profiler::StartNewCycle() { ++cycleIndex; return; if(cycleIndex >= reportPeriod) { double reportStart = Timer::GetFPGATimestamp(); AsynchronousPrinter::Printf("----------------------\n"); AsynchronousPrinter::Printf("PROFILER (%d cycles)\n", reportPeriod); typedef map<string, double>::value_type paired; typedef set< paired , SortBySecondValue<paired> > SetSortedBySecond; SetSortedBySecond vals; for(map<string, double>::iterator it = loggedMaxs.begin(); it != loggedMaxs.end(); ++it) { // vals.insert( paired(it->first, it->second/loggedCounts[it->first]) ); // to sort by means vals.insert(paired(it->first, it->second)); } int i = 0; for(SetSortedBySecond::iterator it = vals.begin(); it != vals.end(); ++it) { double min = loggedMins[it->first]; double max = loggedMaxs[it->first]; int count = loggedCounts[it->first]; double mean = loggedSums[it->first] / count; AsynchronousPrinter::Printf("| %-30s ~%.2f [%.2f-%.2f] x%d\n", it->first.c_str() , mean, min, max, count); ++i; if(i > reportLimit) break; } double reportTime = (Timer::GetFPGATimestamp() - reportStart) * 1000; cycleIndex = 0; ClearLogBuffer(); AsynchronousPrinter::Printf("End report (%.2f ms)\n", reportTime); } } void Profiler::Log(std::string name, double timeTaken) { if(loggedCounts.find(name) == loggedCounts.end()) { loggedCounts[name] = 1; loggedMins[name] = loggedMaxs[name] = loggedSums[name] = timeTaken; } else { ++loggedCounts[name]; if(timeTaken < loggedMins[name]) loggedMins[name] = timeTaken; if(timeTaken > loggedMaxs[name]) loggedMaxs[name] = timeTaken; loggedSums[name] += timeTaken; } } void Profiler::ClearLogBuffer() { loggedCounts.clear(); loggedMins.clear(); loggedMaxs.clear(); loggedSums.clear(); }
[ "shadaj@users.noreply.github.com" ]
shadaj@users.noreply.github.com
e1e59814878090bdd3920753ea8a244f356e225b
c038b41a44c98b70b7b97c3fe988d76d6610bb99
/server/medialib.cpp
f3aad6d679436918be6b35dd500de78e778fb592
[]
no_license
Go0AT/ipv4radio
1e34ddf6ff1a1a1e4f459b9e2c55448f6c41ec9e
ed4d2a4d3cd37109f47bbc2fc8954362fac940f2
refs/heads/master
2023-05-25T04:24:25.619028
2021-05-31T12:18:27
2021-05-31T12:18:27
372,483,016
0
0
null
null
null
null
UTF-8
C++
false
false
6,504
cpp
#include <cstdio> #include <cstdlib> #include "medialib.h" #include "server_conf.h" #include "mytbf.h" #include <cstdio> #include <cstdlib> #include <glob.h> #include <syslog.h> #include <string.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> /** * MP3_BITRATE选择这个值的原因是与mpg123的音频解析速率相同,注意看下面流量速率/8了, * thr_channel代码中的读取桶中数据的速率也相同 * 存在的BUG:或许因为程序本身的运行延迟,导致解析完一秒中的音频后下一秒的音频还没到来, * 会有小小的卡顿(在程序的整个运行周期持续存在),但是这种情况的出现概率比完全流程的出现概率要小, * 完全流畅时,也会在程序的整个运行周期中存在,暂时还没想到很好的解决办法,如果稍微让传输速率 * 大于解析速率,那么迟早接收缓冲去会满,造成丢包。 * 一个可能可行的解决方案:保证在一首歌的播放时间内不会发生泄漏,在切换歌曲的时候发几个空包, * 用时间去清空接收缓冲区,可能需要修改套接字参数 * */ #define PATHSIZE 1024 #define LINEBUFSIZE 1024 #define MP3_BITRATE (128*1024) extern server_conf_t server_conf; struct channel_context_t{ chnid_t chnid; char *desc; glob_t mp3glob; int pos; int fd; off_t offset; struct mytbf_t *tbf; }; /** * 最后没有清除该数组里面的desc和glot_t里面的堆内存 * */ static channel_context_t channel[MAXCHNID + 1]; static channel_context_t *path2entry(const char *path){ char pathstr[PATHSIZE] = {'\0'}; char linebuf[LINEBUFSIZE]; strcat(pathstr,path); strcat(pathstr,"/desc.txt"); syslog(LOG_WARNING,"/desc:%s",pathstr); FILE *fp = fopen(pathstr,"r"); /** * 如果目录下面没有desc.txt文件,则可以认定为无效目录 * */ if(fp == NULL){ syslog(LOG_WARNING,"cannot open desc:%s",pathstr); return NULL; } /** * 如果desc.txt中没有内容或者读错误,则依然认定为无效目 * */ if(fgets(linebuf,LINEBUFSIZE,fp) == NULL){ syslog(LOG_WARNING,"empty desc:%s",pathstr); fclose(fp); return NULL; } fclose(fp); channel_context_t *me; me = (channel_context_t *)malloc(sizeof(*me)); if(me == NULL){ return NULL; } me->tbf = mytbf_init(MP3_BITRATE / 8,MP3_BITRATE / 8 * 5); if(me->tbf == NULL){ syslog(LOG_WARNING,"tbf_create error!"); free(me); return NULL; } me->desc = strdup(linebuf); strncpy(pathstr,path,PATHSIZE); strcat(pathstr,"/*.mp3"); syslog(LOG_WARNING,"path:%s",pathstr); static chnid_t curr_id = MINCHNID; if(glob(pathstr,0,NULL,&me->mp3glob) != 0){ ++curr_id; free(me); return NULL; } me->pos = 0; me->offset = 0; me->fd = open(me->mp3glob.gl_pathv[me->pos],O_RDONLY); if(me->fd < 0){ ++curr_id; free(me); return NULL; } me->chnid = curr_id; curr_id++; return me; } int mlib_getchnlist(mlib_listentry_t **result, int *num){ glob_t globres; for(int i = 0 ; i < MAXCHNID + 1 ; i++ ){ channel[i].chnid = -1; } char path[PATHSIZE]; snprintf(path,PATHSIZE,"%s/*",server_conf.media_dir); if(glob(path,0,NULL,&globres) != 0){ return -1; } mlib_listentry_t *ptr; channel_context_t *res; ptr = (mlib_listentry_t *)malloc(sizeof(mlib_listentry_t) * globres.gl_pathc); if(ptr == NULL){ syslog(LOG_ERR,"malloc() error."); exit(1); } syslog(LOG_WARNING,"dir's num:%d",globres.gl_pathc); int cnt = 0; for(int i = 0 ; i < globres.gl_pathc ; i++ ){ /** * gl_pathv[i] is something like "/var/media/ch1" * */ res = path2entry(globres.gl_pathv[i]); if(res != NULL){ memcpy(channel + res->chnid,res,sizeof(*res)); // channel[res->chnid] = res; ptr[cnt].chnid = res->chnid; /** * strdup()动态内存复制字符串,该函数在拷贝auto类型字符串是不会分配多余空间 * */ ptr[cnt].desc = strdup(res->desc); free(res); ++cnt; } } globfree(&globres); *result = (mlib_listentry_t *)realloc(ptr,sizeof(mlib_listentry_t) * cnt); *num = cnt; return 0; } int mlib_freechnlist(mlib_listentry_t *ptr){ free(ptr); return 0; } /** * 如果尝试打开某首歌失败,则尝试打开下一首歌, * 如果循环完整个文件夹,都没找到一首可以打开的歌会出错,未处理 * */ static int open_next(chnid_t chnid){ for(int i = 0 ; i < channel[chnid].mp3glob.gl_pathc ; i++ ){ ++channel[chnid].pos; if(channel[chnid].pos == channel[chnid].mp3glob.gl_pathc){ channel[chnid].pos = 0; } close(channel[chnid].fd); channel[chnid].fd = open(channel[chnid].mp3glob.gl_pathv[channel[chnid].pos],O_RDONLY); if(channel[chnid].fd < 0){ syslog(LOG_WARNING,"open %s fail.",channel[chnid].mp3glob.gl_pathv[channel[chnid].pos]); continue; } channel[chnid].offset = 0; return 0; } return 0; } /** * 该函数模仿标准UNIX的read函数来编写,返回实际读到的字节数 * */ size_t mlib_readchn(chnid_t chnid, void *buf, size_t size){ /** * 虽然流量控制,但是tbfsize值不会为0,至少可以发出去一个字节的数据 * */ int tbfsize = mytbf_fetchtoken(channel[chnid].tbf,size); printf("[%d]tbfsize = %d\n",chnid,tbfsize); int len; while(true){ len = pread(channel[chnid].fd,buf,tbfsize,channel[chnid].offset); if(len < 0){ /** * 这首歌可能出问题了,尝试打开下一首歌 * */ open_next(chnid); }else if(len == 0){ /** * 当这首歌结束,先发送一个空包给客户端,再进入下一首歌的数据读取 * */ open_next(chnid); break; }else{ channel[chnid].offset += len; break; } } /** * 如果没有读满从桶中拿出来的量,则将剩余量放回桶中 * */ if(tbfsize - len > 0) mytbf_returntoken(channel[chnid].tbf,tbfsize - len); return len; }
[ "1543836706@qq.com" ]
1543836706@qq.com
4fb49de110be7cb9e9020cd801b547342cebd355
41084e6d62ec30f4cabac36e1cbfc057ef23cf3e
/ustl/uspecial.h
75239cc2b707f22b6e25bcb5ddb1edf8b0ecde34
[ "MIT" ]
permissive
kuhar/SeaSTL
d08453f8fa8ad336fe40e799e4d0b4156e5e3837
a9a4ca8fae59523b3cceaedf6ce910a88f809185
refs/heads/master
2020-05-22T17:53:16.090746
2019-03-07T17:01:09
2019-03-07T17:01:09
186,460,775
1
2
MIT
2019-05-13T16:51:46
2019-05-13T16:51:45
null
UTF-8
C++
false
false
9,180
h
// This file is part of the uSTL library, an STL implementation. // // Copyright (c) 2005 by Mike Sharov <msharov@users.sourceforge.net> // This file is free software, distributed under the MIT License. #pragma once #include "uvector.h" #include "ustring.h" #include "uset.h" #include "umultiset.h" #include "ubitset.h" #include "ulaalgo.h" #include "uarray.h" #include "uctralgo.h" #include "ufunction.h" #include "uctrstrm.h" #include "sistream.h" #include "uchrono.h" namespace ustl { //---------------------------------------------------------------------- // Alogrithm specializations not in use by the library code. //---------------------------------------------------------------------- template <> inline void swap (cmemlink& a, cmemlink& b) { a.swap (b); } template <> inline void swap (memlink& a, memlink& b) { a.swap (b); } template <> inline void swap (memblock& a, memblock& b) { a.swap (b); } template <> inline void swap (string& a, string& b) { a.swap (b); } #define TEMPLATE_SWAP_PSPEC(type, template_decl) \ template_decl inline void swap (type& a, type& b) { a.swap (b); } TEMPLATE_SWAP_PSPEC (TEMPLATE_TYPE1 (vector,T), TEMPLATE_DECL1 (T)) TEMPLATE_SWAP_PSPEC (TEMPLATE_TYPE1 (set,T), TEMPLATE_DECL1 (T)) TEMPLATE_SWAP_PSPEC (TEMPLATE_TYPE1 (multiset,T), TEMPLATE_DECL1 (T)) TEMPLATE_SWAP_PSPEC (TEMPLATE_TYPE2 (tuple,N,T), TEMPLATE_FULL_DECL2 (size_t,N,typename,T)) //---------------------------------------------------------------------- // Streamable definitions. Not used in the library and require streams. //---------------------------------------------------------------------- //----{ pair }---------------------------------------------------------- /// \brief Reads pair \p p from stream \p is. template <typename T1, typename T2> void pair<T1,T2>::read (istream& is) { is >> first; is.align (stream_align_of(second)); is >> second; is.align (stream_align_of(first)); } /// Writes pair \p p to stream \p os. template <typename T1, typename T2> void pair<T1,T2>::write (ostream& os) const { os << first; os.align (stream_align_of(second)); os << second; os.align (stream_align_of(first)); } /// Returns the written size of the object. template <typename T1, typename T2> size_t pair<T1,T2>::stream_size (void) const { return Align (stream_size_of(first), stream_align_of(second)) + Align (stream_size_of(second), stream_align_of(first)); } /// Writes pair \p p to stream \p os. template <typename T1, typename T2> void pair<T1,T2>::text_write (ostringstream& os) const { os << '(' << first << ',' << second << ')'; } /// \brief Takes a pair and returns pair.first /// This is an extension, available in uSTL and the SGI STL. template <typename Pair> struct select1st : public unary_function<Pair,typename Pair::first_type> { typedef typename Pair::first_type result_type; inline const result_type& operator()(const Pair& a) const { return a.first; } inline result_type& operator()(Pair& a) const { return a.first; } }; /// \brief Takes a pair and returns pair.second /// This is an extension, available in uSTL and the SGI STL. template <typename Pair> struct select2nd : public unary_function<Pair,typename Pair::second_type> { typedef typename Pair::second_type result_type; inline const result_type& operator()(const Pair& a) const { return a.second; } inline result_type& operator()(Pair& a) const { return a.second; } }; /// \brief Converts a const_iterator pair into an iterator pair /// Useful for converting pair ranges returned by equal_range, for instance. /// This is an extension, available in uSTL. template <typename Container> inline pair<typename Container::iterator, typename Container::iterator> unconst (const pair<typename Container::const_iterator, typename Container::const_iterator>& i, Container&) { typedef pair<typename Container::iterator, typename Container::iterator> unconst_pair_t; return *noalias_cast<unconst_pair_t*>(&i); } //----{ vector }-------------------------------------------------------- template <typename T> inline size_t stream_align_of (const vector<T>&) { typedef typename vector<T>::written_size_type written_size_type; return stream_align_of (written_size_type()); } //----{ bitset }-------------------------------------------------------- /// Writes bitset \p v into stream \p os. template <size_t Size> void bitset<Size>::text_read (istringstream& is) { char c; for (int i = Size; --i >= 0 && (is >> c).good();) set (i, c == '1'); } //----{ tuple }--------------------------------------------------------- template <size_t N, typename T> struct numeric_limits<tuple<N,T> > { typedef numeric_limits<T> value_limits; static inline tuple<N,T> min (void) { tuple<N,T> v; fill (v, value_limits::min()); return v; } static inline tuple<N,T> max (void) { tuple<N,T> v; fill (v, value_limits::max()); return v; } static const bool is_signed = value_limits::is_signed; static const bool is_integer = value_limits::is_integer; static const bool is_integral = value_limits::is_integral; }; template <size_t N, typename T> inline size_t stream_align_of (const tuple<N,T>&) { return stream_align_of (NullValue<T>()); } template <typename T, typename IntT> inline ostringstream& chartype_text_write (ostringstream& os, const T& v) { os.format (_FmtPrtChr[!isprint(v)], v); return os; } template <> inline ostringstream& container_element_text_write (ostringstream& os, const uint8_t& v) { return chartype_text_write<uint8_t, unsigned int> (os, v); } template <> inline ostringstream& container_element_text_write (ostringstream& os, const int8_t& v) { return chartype_text_write<int8_t, int> (os, v); } //----{ matrix }-------------------------------------------------------- /// Writes matrix \p v into stream \p os. template <size_t NX, size_t NY, typename T> void matrix<NX,NY,T>::text_write (ostringstream& os) const { os << '('; for (uoff_t iRow = 0; iRow < NY; ++ iRow) { os << '('; for (uoff_t iColumn = 0; iColumn < NX; ++iColumn) os << at(iRow)[iColumn] << ",)"[iColumn == NX-1]; } os << ')'; } //----{ long4grain }---------------------------------------------------- #if SIZE_OF_LONG == 8 && HAVE_INT64_T // Helper class for long4grain and ptr4grain wrappers. class _long4grain { public: inline _long4grain (uint64_t v) : _v (v) {} #if __x86_64__ inline void read (istream& is) { assert (is.aligned(4)); #if WANT_STREAM_BOUNDS_CHECKING if (!is.verify_remaining ("read", "long4grain", sizeof(_v))) return; #else assert (is.remaining() >= sizeof(_v)); #endif _v = *reinterpret_cast<const uint64_t*>(is.ipos()); is.skip (sizeof(_v)); } inline void write (ostream& os) const { assert (os.aligned(4)); #if WANT_STREAM_BOUNDS_CHECKING if (!os.verify_remaining ("write", "long4grain", sizeof(_v))) return; #else assert (os.remaining() >= sizeof(_v)); #endif *reinterpret_cast<uint64_t*>(os.ipos()) = _v; os.skip (sizeof(_v)); } #elif USTL_BYTE_ORDER == USTL_BIG_ENDIAN inline void read (istream& is) { uint32_t vl, vh; is >> vh >> vl; _v = (uint64_t(vh) << 32) | uint64_t(vl); } inline void write (ostream& os) const { os << uint32_t(_v >> 32) << uint32_t(_v); } #else inline void read (istream& is) { uint32_t vl, vh; is >> vl >> vh; _v = (uint64_t(vh) << 32) | uint64_t(vl); } inline void write (ostream& os) const { os << uint32_t(_v) << uint32_t(_v >> 32); } #endif inline size_t stream_size (void) const { return stream_size_of(_v); } private: uint64_t _v; }; /// Wrap long values to allow writing them on 4-grain even on 64bit platforms. inline _long4grain& long4grain (unsigned long& v) { asm("":"+m"(v)); return *noalias_cast<_long4grain*>(&v); } /// Wrap long values to allow writing them on 4-grain even on 64bit platforms. inline const _long4grain long4grain (const unsigned long& v) { return _long4grain(v); } /// Wrap pointer values to allow writing them on 4-grain even on 64bit platforms. template <typename T> inline _long4grain& ptr4grain (T*& p) { asm("":"+m"(p)); return *noalias_cast<_long4grain*>(&p); } /// Wrap pointer values to allow writing them on 4-grain even on 64bit platforms. template <typename T> inline const _long4grain ptr4grain (const T* const& p) { return _long4grain(uintptr_t(p)); } #else // if not SIZE_OF_LONG == 8 && HAVE_INT64_T inline unsigned long& long4grain (unsigned long& v) { return v; } inline const unsigned long& long4grain (const unsigned long& v) { return v; } template <typename T> inline T*& ptr4grain (T*& p) { return p; } template <typename T> inline const T* const& ptr4grain (const T* const& p) { return p; } #endif // SIZE_OF_LONG == 8 //---------------------------------------------------------------------- } // namespace ustl #if SIZE_OF_LONG == 8 && HAVE_INT64_T ALIGNOF (ustl::_long4grain, 4) #endif ALIGNOF (ustl::CBacktrace, sizeof(void*)) ALIGNOF (ustl::string, stream_align_of (string::value_type())) // bool is a big type on some machines (like DEC Alpha), so it's written as a byte. ALIGNOF(bool, sizeof(uint8_t)) CAST_STREAMABLE(bool, uint8_t)
[ "shvarczaidmatvei1@gmail.com" ]
shvarczaidmatvei1@gmail.com
8ab713076469a48623b0c0dfa06be610a6f8f4f3
055e78502297026a4ca9b340f25ee1c678e6ca9d
/OccTry-vc14-64/Command/ScDlgTexture.cpp
410e2221e38be007f9c27710fa74ccbb6b78a041
[]
no_license
ymqhyq/OccTry-vc14
1ceb759720fcd405e7b82de826f80e71a0713b76
a80ffe78211e2c4659e6f7be6be4736997d46417
refs/heads/master
2020-12-22T11:46:22.993613
2020-01-29T01:58:29
2020-01-29T01:58:29
236,754,637
1
0
null
null
null
null
GB18030
C++
false
false
1,939
cpp
// Command\ScDlgTexture.cpp : 实现文件 // #include "stdafx.h" #include "OccTry.h" #include "ScCmdDisplay.h" #include ".\scdlgtexture.h" // ScDlgTexture 对话框 IMPLEMENT_DYNAMIC(ScDlgTexture, CDialog) ScDlgTexture::ScDlgTexture(CWnd* pParent /*=NULL*/) : CDialog(ScDlgTexture::IDD, pParent) , m_szTextureFile(_T("")) { this->m_pCmdTexture = NULL; } ScDlgTexture::~ScDlgTexture() { } void ScDlgTexture::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); DDX_Text(pDX, IDC_EDIT_TEXTURE_FILE, m_szTextureFile); } BEGIN_MESSAGE_MAP(ScDlgTexture, CDialog) ON_BN_CLICKED(IDC_BUTTON_APPLY, OnBnClickedButtonApply) ON_BN_CLICKED(IDC_BUTTON_SELFILE, OnBnClickedButtonSelfile) END_MESSAGE_MAP() // ScDlgTexture 消息处理程序 BOOL ScDlgTexture::OnInitDialog() { CDialog::OnInitDialog(); // TODO: 在此添加额外的初始化 return TRUE; // return TRUE unless you set the focus to a control // 异常: OCX 属性页应返回 FALSE } void ScDlgTexture::OnOK() { DoTexture(TRUE); CDialog::OnOK(); } void ScDlgTexture::OnBnClickedButtonApply() { DoTexture(); } void ScDlgTexture::DoTexture(BOOL bDone) { UpdateData(); if(this->m_szTextureFile.IsEmpty()) { AfxMessageBox("文件名称不能为空。"); return; } CFileFind ff; if(ff.FindFile(this->m_szTextureFile) == FALSE) { AfxMessageBox("没有找到文件."); return; } // if(this->m_pCmdTexture) { this->m_pCmdTexture->SetTexture(this->m_szTextureFile,bDone); } } void ScDlgTexture::OnBnClickedButtonSelfile() { CFileDialog dlg(TRUE, NULL, NULL, OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, "Bmp Files (*.bmp)|*.bmp|gif Files (*.gif)|*.gif|All Files (*.*)|*.*||", NULL ); if (dlg.DoModal() == IDOK) { CString C = dlg.GetPathName(); if(dlg.GetFileExt().CompareNoCase("bmp") == 0 || dlg.GetFileExt().CompareNoCase("gif") == 0) { this->m_szTextureFile = C; UpdateData(FALSE); } } }
[ "51437649+ymqhyq@users.noreply.github.com" ]
51437649+ymqhyq@users.noreply.github.com
435dd4a984f803d062321640390da96c95095467
0d49e2f03fa4ba34dbb18d8727be6edf117c12c3
/Level.h
f66e79a3717e27dfdbd01a1bb593607fe18cbeef
[]
no_license
surmwill/Quadris
7ec461213125edf603ddcc1a8e9d3f560ba14a12
96e9286dd3ca0954c71e1a10b271564248f62159
refs/heads/master
2021-01-12T04:03:09.745518
2019-08-25T19:52:22
2019-08-25T19:52:22
77,484,272
0
0
null
null
null
null
UTF-8
C++
false
false
892
h
#ifndef LEVEL_H #define LEVEL_H 1 #include <string> #include <vector> #include <fstream> #include "BlockLib.h" class Block; class Level{ private: std::ifstream seqFile; //the file which contains the sequence of commands int levelNum; // the level number BlockLib blockLib; //the block library bool goodFile(const std::string filename); //returns true if we can open the file for input protected: std::ifstream & getSeqFile(); //returns the seqFile const BlockLib & getBlockLib(); //returns the BlockLib public: virtual Block* genBlock() = 0; //generates a random block based on the rules of the level/game virtual Block* genBlock(const char type) = 0; //generates a block with type char virtual ~Level() = 0; void setFilename(const std::string fileName); //sets the seqFile to open the filename if the file can be opened }; #endif
[ "wjsurmak@uwaterloo.ca" ]
wjsurmak@uwaterloo.ca
cb32f122a800bf3aa7db3bb75dc340345f15de4d
9b4b0c3faa5f3002ed85c3054164e0b9fb427f56
/Codes/17300/17371.cpp
f49c80b18fabfab4c1efc0d8ac23f17d42e7d0af
[]
no_license
calofmijuck/BOJ
246ae31b830d448c777878a90e1d658b7cdf27f4
4b29e0c7f487aac3186661176d2795f85f0ab21b
refs/heads/master
2023-04-27T04:47:11.205041
2023-04-17T01:53:03
2023-04-17T01:53:03
155,859,002
2
0
null
null
null
null
UTF-8
C++
false
false
779
cpp
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<ll, ll> pll; vector<pll> vec; ll dist(pll p1, pll p2) { return (p1.first - p2.first) * (p1.first - p2.first) + (p1.second - p2.second) *(p1.second - p2.second); } int main() { int n; cin >> n; ll x, y; for(int i = 0; i < n; ++i) { cin >> x >> y; vec.push_back({x, y}); } ll mi = 0x3ffffffffffff; pll ans; for(int i = 0; i < n; ++i) { ll m = 0; for(int j = 0; j < n; ++j) { if(i == j) continue; ll d = dist(vec[i], vec[j]); m = max(m, d); } if(mi > m) { ans = vec[i]; mi = m; } } cout << ans.first << ' ' << ans.second; return 0; }
[ "calofmijuck@snu.ac.kr" ]
calofmijuck@snu.ac.kr
62aba9b300944e1f5b5ef357f8c857b7211e8018
4c544bb3b7f8a06edc1b61da50c8c7d041a15896
/leetcode-cpp/DecryptStringfromAlphabettoIntegerMapping_1309.cpp
e3e2d9508c4ff626caf186d047c66a131ad7d2b2
[ "Apache-2.0" ]
permissive
emacslisp/cpp
fb5385d4008ebb8367da93427474b0b118651d54
29beeead4fb385a3702e0022ebdac9608869877d
refs/heads/master
2023-04-12T05:42:25.022888
2023-03-11T14:30:09
2023-03-11T14:30:09
97,773,677
0
0
null
null
null
null
UTF-8
C++
false
false
994
cpp
#include <vector> #include <iostream> #include <climits> #include <algorithm> #include <queue> #include <stack> #include <map> #define Max(a, b) a > b ? a : b #define Min(a, b) a < b ? a : b using namespace std; class Solution { public: string freqAlphabets(string s) { stack<char> stack; for(int i=s.size() - 1;i>=0;) { if (s[i] == '#') { char c = 'a' + (s[i-2] - '0') * 10 + (s[i-1] - '0') - 1; stack.push(c); i -= 3; } else { char c = (s[i] - '1') + 'a'; stack.push(c); i--; } } string result; while(stack.size() > 0) { result.push_back(stack.top()); stack.pop(); } return result; } }; int main() { Solution s; string str = "12345678910#11#12#13#14#15#16#17#18#19#20#21#22#23#24#25#26#"; string result = s.freqAlphabets(str); cout<<result<<endl; }
[ "java.gdb@gmail.com" ]
java.gdb@gmail.com
2a08fef97a555909093f035395ad62d9412bb378
c485cb363d29d81212427d3268df1ddcda64d952
/dependencies/boost/libs/config/test/no_0x_hdr_typeindex_pass.cpp
43458da1b7a4a66353c5e593ea73f7dfe8471a26
[ "BSL-1.0" ]
permissive
peplopez/El-Rayo-de-Zeus
66e4ed24d7d1d14a036a144d9414ca160f65fb9c
dc6f0a98f65381e8280d837062a28dc5c9b3662a
refs/heads/master
2021-01-22T04:40:57.358138
2013-10-04T01:19:18
2013-10-04T01:19:18
7,038,026
2
1
null
null
null
null
UTF-8
C++
false
false
1,137
cpp
// This file was automatically generated on Fri Jun 04 12:51:34 2010 // by libs/config/tools/generate.cpp // Copyright John Maddock 2002-4. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/config for the most recent version.// // Revision $Id: generate.cpp 49281 2008-10-11 15:40:44Z johnmaddock $ // // Test file for macro BOOST_NO_0X_HDR_TYPEINDEX // This file should compile, if it does not then // BOOST_NO_0X_HDR_TYPEINDEX should be defined. // See file boost_no_0x_hdr_typeindex.ipp for details // Must not have BOOST_ASSERT_CONFIG set; it defeats // the objective of this file: #ifdef BOOST_ASSERT_CONFIG # undef BOOST_ASSERT_CONFIG #endif #include <boost/config.hpp> #include "test.hpp" #ifndef BOOST_NO_0X_HDR_TYPEINDEX #include "boost_no_0x_hdr_typeindex.ipp" #else namespace boost_no_0x_hdr_typeindex = empty_boost; #endif int main( int, char *[] ) { return boost_no_0x_hdr_typeindex::test(); }
[ "fibrizo.raziel@gmail.com" ]
fibrizo.raziel@gmail.com
5f231e02de79b4cf47a4bbbd9e1422d3c7bf79e0
69740a5b14d963b51ac0b8d956c205d3b7879353
/contrib/CCF/CCF/CompilerElements/Introspection.hpp
4176ee0d3bec3a457990986e19e1734a75353726
[]
no_license
SEDS/OASIS
eba334ae59e69fc66d1e355fedb5ad5583b40695
ddf365eea9874fa5938072fea1fad5b41c27f3e9
refs/heads/master
2020-12-24T15:51:12.761878
2013-12-03T20:30:21
2013-12-03T20:30:21
13,195,236
4
3
null
2015-10-24T09:40:39
2013-09-29T15:58:55
C++
UTF-8
C++
false
false
407
hpp
// file : CCF/CompilerElements/Introspection.hpp // author : Boris Kolpackov <boris@dre.vanderbilt.edu> // cvs-id : $Id: Introspection.hpp 54723 2003-12-22 22:26:40Z boris $ #ifndef CCF_RUNTIME_INTROSPECTION_HPP #define CCF_RUNTIME_INTROSPECTION_HPP #include "Utility/Introspection/Introspection.hpp" namespace Introspection = Utility::Introspection; #endif // CCF_RUNTIME_INTROSPECTION_HPP
[ "hillj@cs.iupui.edu" ]
hillj@cs.iupui.edu
a52c8d3045f4c3678317ce0a83be1919065bad1e
cdf92aa3a8a49dc044306c125356cca26910dbda
/incoming/BitBucket-INDI1/trunk186/If1main/EIRlibs/eirImage/ImageEntity.h
64403718353b4e1061a7cb122cc264dadc92d465
[ "MIT" ]
permissive
eirTony/INDI1
b7c5d2ba0922a509b32d9d411938ecdc0f725109
07fe9eff4fb88c6c2d636c94267ea8734d295223
refs/heads/master
2020-01-23T21:22:49.833055
2016-11-26T07:43:06
2016-11-26T07:43:06
74,568,244
0
0
null
null
null
null
UTF-8
C++
false
false
1,196
h
#ifndef IMAGE_H #define IMAGE_H #include "eirImage.h" #include "../eirTypes/MillisecondTime.h" #include "../eirCore/VariableSet.h" #include "ImageClass.h" #define IMAGE_VARIABLESET(TIVD) \ TIVD(ImageClass, Image_Class, int, ImageClass::Null) \ TIVD(QString, Image_Format, QString, QString("jpg")) \ TIVD(MillisecondTime, Image_GrabTime, qint64, MillisecondTime::null()) \ class EIRIMAGESHARED_EXPORT ImageEntity : public VariableSet { public: DECLARE_VARIABLESET(IMAGE_VARIABLESET); ImageEntity(void); ImageEntity(const quint64 key, const QString & id, const QString & name=QString("ImageEntity")); ImageEntity(const VariableSet & other); static ImageEntity fromByteArray(const QByteArray & ba, const MillisecondTime mst=MillisecondTime::current(), const QString FrameId=QString(), const ImageClass imageClass=ImageClass::Frame); bool isNull(void) const; QByteArray binaryData(void) const; void setQImage(const QImage & image); QImage toQImage(void); private: enum VarIndex { qimage = 0, }; }; #endif // IMAGE_H
[ "totto@eclipseir.com" ]
totto@eclipseir.com
49ec64fe6cbc7f40197523fe3c92c1dce40e7f2d
4cfb925767003ede88b3314d744a1df9b329192b
/include/oglplus/enums/transform_feedback_primitive_type_names.ipp
f1b3e11a1eec983e34f627de5f5b99113d7d5c57
[ "BSL-1.0" ]
permissive
detunized/oglplus
4ddd7617fd38f47d7069834128bd49e16a79233c
184c9e2796d100f73800b924de1b9f8ba0b0fa62
refs/heads/master
2021-01-17T11:09:25.094741
2013-03-19T17:58:30
2013-03-19T17:58:30
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,024
ipp
/* * .file oglplus/enums/transform_feedback_primitive_type_names.ipp * * Automatically generated header file. DO NOT modify manually, * edit 'source/enums/transform_feedback_primitive_type.txt' instead. * * Copyright 2010-2013 Matus Chochlik. Distributed under the Boost * Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ OGLPLUS_LIB_FUNC StrLit EnumValueName( TransformFeedbackPrimitiveType*, GLenum value ) OGLPLUS_NOEXCEPT(true) #if (!OGLPLUS_LINK_LIBRARY || defined(OGLPLUS_IMPLEMENTING_LIBRARY)) && \ !defined(OGLPLUS_IMPL_EVN_TRANSFORMFEEDBACKPRIMITIVETYPE) #define OGLPLUS_IMPL_EVN_TRANSFORMFEEDBACKPRIMITIVETYPE { switch(value) { #if defined GL_TRIANGLES case GL_TRIANGLES: return StrLit("TRIANGLES"); #endif #if defined GL_LINES case GL_LINES: return StrLit("LINES"); #endif #if defined GL_POINTS case GL_POINTS: return StrLit("POINTS"); #endif default:; } OGLPLUS_FAKE_USE(value); return StrLit(); } #else ; #endif
[ "chochlik@gmail.com" ]
chochlik@gmail.com
c2c2dd1fde6b06513e882a9aaef660bade4e82a8
22bf7d382bec446f4cfd32bf99a722018aff8ee4
/C++/FSMSynthesis/Circuit.h
f6e831f7a8504d9cce30b082e358e095131b4f92
[]
no_license
CENSOREDCENSORED/FSMSynthesis
ad522493ebc069798bf7573da77a12a64b91d076
c3b4b1771017ca7a72ca6a55c58be3d51bb9d7e3
refs/heads/master
2020-12-24T14:56:08.882302
2014-01-20T10:28:33
2014-01-20T10:28:33
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,321
h
#include "ScanChain.h" class Circuit { private: ScanChain ** myScanChainArr; int myNumScan, mySizeScan; vector<NandGate*> myGates; vector<Wire*> myWires; vector<Wire*> myNonSCWires; vector<Wire*> trojanWires; bool myHasTrojan; int trojanIteration; Wire * genWireNonInput(); public: Circuit(); Circuit(int numScan, int sizeScan, bool hasTrojan); void initCircuit(int numScan, int sizeScan, bool hasTrojan); ~Circuit(); int SimulateStep(); void seedScanChains(unsigned long long * seeds = 0, int numSeeds = 0, int numAdvances = 0); int genNextPowerMeasurement(int scanChainIncrementIndex = -1, bool partition = false, int numPartitionGroups = 0, int numPartitions = 0, int partitionSize = 0, int currPartitionGroup = 0, bool printPartitionGroups = false, int * scanChainIncrementVals = nullptr); int genAdder(int, int); int genComparator(int, int); int genMux(int, int, int); int addNANDGate(Wire *, Wire *, Wire *, int); int addANDGate(Wire *, Wire *, Wire *, int); int addXORGate(Wire *, Wire *, Wire *, int); void genRandomCircuit(int seed, unsigned int baseGates = 100, unsigned int offsetGates = 100, unsigned int offsetOutputs = 100); void printGates(); void genVerilog(); void printNumGates(); unsigned long long * getScanChainVals(); int getNumScanChains(); };
[ "raymond@paseman.com" ]
raymond@paseman.com
6af7b40e0bdff3dd699563bb6f6a61eb6dc9e9a3
07e6fc323f657d1fbfc24f861a278ab57338b80a
/cpp/apps/ShapePainter/ShapePainter.h
18a85b1ee052da0352b96f4c301e78e5766ba22b
[ "MIT" ]
permissive
ProkopHapala/SimpleSimulationEngine
99cf2532501698ee8a03b2e40d1e4bedd9a12609
47543f24f106419697e82771289172d7773c7810
refs/heads/master
2022-09-05T01:02:42.820199
2022-08-28T10:22:41
2022-08-28T10:22:41
40,007,027
35
4
null
null
null
null
UTF-8
C++
false
false
3,372
h
 #ifndef ShapePainter_h #define ShapePainter_h #include "Draw.h" #include "Draw2D.h" class Brush{ public: virtual void paint()=0; virtual void view ()=0; virtual void eventHandling( const SDL_Event& event, Vec2f mpos, uint32_t mouseState )=0; }; // ========================== // CornerBrush // ========================== class CornerBrush : public Brush{ public: uint32_t color = 0xFF808080; Vec2f pos; // position of spike Vec2f pend; // position of 1st base point Vec2f rot; // rotation of second end with respect to first inline void getRot( const Vec2f& p ){ rot.set_div_cmplx( p, pend-pos ); rot.normalize(); } inline Vec2f getC(){ Vec2f C; C.set_mul_cmplx(pend-pos, rot); return pos+C; } /* void normalize(){ Vec2f d1 = pend-pos; float r2 = d1.norm2(); d1 = pC-pos; d1.mul( sqrt(r2/d1.norm2()) ); pC = pos + d1; } */ virtual void paint()override{ // deposit on canvas Vec2f pC = getC(); glBegin(GL_TRIANGLES); Draw::setRGBA( color ); glVertex2f( pos.x , pos.y ); Draw::setRGBA( color &0x00FFFFFF ); glVertex2f( pend.x, pend.y ); Draw::setRGBA( color &0x00FFFFFF ); glVertex2f( pC.x , pC.y ); glEnd(); } virtual void view()override{ // show on canvas without depositing //printf( " (%g,%g) (%g,%g) (%g,%g) \n", pos.x,pos.y, pend.x,pend.y, pC.x,pC.y ); Vec2f pC = getC(); float psz=0.1; glColor3f( 1.0,0.0,0.0 ); Draw2D::drawPointCross( pos, psz ); glColor3f( 0.0,1.0,0.0 ); Draw2D::drawPointCross( pend, psz ); glColor3f( 0.0,0.0,1.0 ); Draw2D::drawPointCross( pC, psz ); glBegin(GL_TRIANGLES); //glBegin(GL_LINE_LOOP); Draw::setRGBA( color ); glVertex2f( pos.x , pos.y ); Draw::setRGBA( color &0x00FFFFFF ); glVertex2f( pend.x, pend.y ); Draw::setRGBA( color &0x00FFFFFF ); glVertex2f( pC.x , pC.y ); glEnd(); } virtual void eventHandling ( const SDL_Event& event, Vec2f mpos, uint32_t mouseState )override{ //printf( "mouseState : LMB %i RMB %i \n", mouseState & SDL_BUTTON(SDL_BUTTON_LEFT), mouseState & SDL_BUTTON(SDL_BUTTON_RIGHT) ); switch( event.type ){ case SDL_KEYDOWN : switch( event.key.keysym.sym ){ //case SDLK_m: edit_mode = (EDIT_MODE)((((int)edit_mode)+1)%((int)EDIT_MODE::size)); printf("edit_mode %i\n", (int)edit_mode); break; //case SDLK_h: warrior1->tryJump(); break; //case SDLK_l: onSelectLuaShipScript.GUIcallback(lstLuaFiles); break; } break; case SDL_MOUSEBUTTONDOWN: switch( event.button.button ){ case SDL_BUTTON_LEFT: pos=mpos; break; //case SDL_BUTTON_RIGHT: pC =mpos; break; } break; case SDL_MOUSEBUTTONUP: switch( event.button.button ){ case SDL_BUTTON_LEFT: pend=mpos; paint(); break; //case SDL_BUTTON_RIGHT:break; } break; case SDL_MOUSEMOTION: //case SDL_BUTTON_LEFT: pend=mpos; normalize(); break; //case SDL_BUTTON_RIGHT: pC =mpos; normalize(); break; if( mouseState & SDL_BUTTON(SDL_BUTTON_LEFT ) ){ pend=mpos; } if( mouseState & SDL_BUTTON(SDL_BUTTON_RIGHT) ){ getRot( mpos ); } break; }; } }; #endif
[ "ProkopHapala@gmail.com" ]
ProkopHapala@gmail.com
1d6aa6a0df60834a4151ba0cd518559f0c5ab982
762609b0f94b624fa986093b58a9fc89ffe0a0c8
/code/L5_Minimum_snap_trajectory_generation/ros/src/waypoint_trajectory_generator/src/trajectory_generator_waypoint.cpp
097494d564d318ced1429a8df3657a42576f12b7
[]
no_license
Possiblexhy/Motion-Planning
7ebe6b1ea99281e8f9cd36e2d1ac2cd855650b83
fd99c569284fd0bae83bea59e521a5c2d9a1614f
refs/heads/main
2023-08-29T01:42:11.512509
2021-10-10T15:30:15
2021-10-10T15:30:15
null
0
0
null
null
null
null
UTF-8
C++
false
false
3,595
cpp
#include "trajectory_generator_waypoint.h" #include <stdio.h> #include <ros/ros.h> #include <ros/console.h> #include <iostream> #include <fstream> #include <string> #include "OsqpEigen/OsqpEigen.h" #include <Eigen/Dense> using namespace std; using namespace Eigen; TrajectoryGeneratorWaypoint::TrajectoryGeneratorWaypoint(){} TrajectoryGeneratorWaypoint::~TrajectoryGeneratorWaypoint(){} //define factorial function, input i, output i! int TrajectoryGeneratorWaypoint::Factorial(int x) { int fac = 1; for(int i = x; i > 0; i--) fac = fac * i; return fac; } /* STEP 2: Learn the "Closed-form solution to minimum snap" in L5, then finish this PolyQPGeneration function variable declaration: input const int d_order, // the order of derivative const Eigen::MatrixXd &Path, // waypoints coordinates (3d) const Eigen::MatrixXd &Vel, // boundary velocity const Eigen::MatrixXd &Acc, // boundary acceleration const Eigen::VectorXd &Time) // time allocation in each segment output MatrixXd PolyCoeff(m, 3 * p_num1d); // position(x,y,z), so we need (3 * p_num1d) coefficients */ Eigen::MatrixXd TrajectoryGeneratorWaypoint::PolyQPGeneration( const int d_order, // the order of derivative const Eigen::MatrixXd &Path, // waypoints coordinates (3d) const Eigen::MatrixXd &Vel, // boundary velocity const Eigen::MatrixXd &Acc, // boundary acceleration const Eigen::VectorXd &Time) // time allocation in each segment { // enforce initial and final velocity and accleration, for higher order derivatives, just assume them be 0; int p_order = 2 * d_order - 1; // the order of polynomial int p_num1d = p_order + 1; // the number of variables in each segment int m = Time.size(); // the number of segments MatrixXd PolyCoeff = MatrixXd::Zero(m, 3 * p_num1d); // position(x,y,z), so we need (3 * p_num1d) coefficients VectorXd Px(p_num1d * m), Py(p_num1d * m), Pz(p_num1d * m); // Initialize all the matrix/vector SparseMatrix<double> Q(); VectorXd f(); SparseMatrix<double> Aeq(); VectorXd Beq(); Xd Q_values; Q_indices; Q_num; int i_seg, l_seg; double qil; for (int seg=0;seg<m;seg++){ Q_seg = MatrixXd:Zero(p_num1d, p_num1d); for (int i=p_order-1;i>2;i--){ for (int l=p_order-1;l>2;l--){ i_seg = i + 1; l_seg = l + 1; qil = power(Time[seg],i_seg+l_seg-7)*i_seg*(i_seg-1)*(i_seg-2)*(i_seg-3)*l_seg*(l_seg-1)*(l_seg-2)*(l_seg-3)/(i_seg+l_seg-4); if (i==l){Q(p_num1d-i_seg, p_num1d-l_seg) = qil;} else {Q(p_num1d-i_seg, p_num1d-l_seg) = qil/2;} } // end for } // end for Q = } //end for OsqpEigen::Solver solver; solver.settings()-->setVerbosity(false); solver.settings()-->setWarmStart(true); solver.data()-->setNumberOfVariables(); solver.date()-->setNumberOfConstraints(); solver.data()->setHessianMatrix(hessian); solver.data()->setGradient(gradient); solver.data()->setLinearConstraintsMatrix(linearMatrix); solver.data()->setLowerBound(lowerBound); solver.data()->setUpperBound(upperBound); solver.initSolver(); Eigen::VectorXd QPSolution; QPSolution = solver.getSolution(); return PolyCoeff; }
[ "chenhuanjy@gmail.com" ]
chenhuanjy@gmail.com
c517d9f0f4ea464327c34a8d164b477b002936d9
67fc9e51437e351579fe9d2d349040c25936472a
/wrappers/8.1.1/vtkRectilinearGridToTetrahedraWrap.h
3bf2f05e8cb7bfc4efdd856446e68beec7230adf
[]
permissive
axkibe/node-vtk
51b3207c7a7d3b59a4dd46a51e754984c3302dec
900ad7b5500f672519da5aa24c99aa5a96466ef3
refs/heads/master
2023-03-05T07:45:45.577220
2020-03-30T09:31:07
2020-03-30T09:31:07
48,490,707
6
0
BSD-3-Clause
2022-12-07T20:41:45
2015-12-23T12:58:43
C++
UTF-8
C++
false
false
2,236
h
/* this file has been autogenerated by vtkNodeJsWrap */ /* editing this might proof futile */ #ifndef NATIVE_EXTENSION_VTK_VTKRECTILINEARGRIDTOTETRAHEDRAWRAP_H #define NATIVE_EXTENSION_VTK_VTKRECTILINEARGRIDTOTETRAHEDRAWRAP_H #include <nan.h> #include <vtkSmartPointer.h> #include <vtkRectilinearGridToTetrahedra.h> #include "vtkUnstructuredGridAlgorithmWrap.h" #include "../../plus/plus.h" class VtkRectilinearGridToTetrahedraWrap : public VtkUnstructuredGridAlgorithmWrap { public: using Nan::ObjectWrap::Wrap; static void Init(v8::Local<v8::Object> exports); static void InitPtpl(); static void ConstructorGetter( v8::Local<v8::String> property, const Nan::PropertyCallbackInfo<v8::Value>& info); VtkRectilinearGridToTetrahedraWrap(vtkSmartPointer<vtkRectilinearGridToTetrahedra>); VtkRectilinearGridToTetrahedraWrap(); ~VtkRectilinearGridToTetrahedraWrap( ); static Nan::Persistent<v8::FunctionTemplate> ptpl; private: static void New(const Nan::FunctionCallbackInfo<v8::Value>& info); static void GetRememberVoxelId(const Nan::FunctionCallbackInfo<v8::Value>& info); static void GetTetraPerCell(const Nan::FunctionCallbackInfo<v8::Value>& info); static void NewInstance(const Nan::FunctionCallbackInfo<v8::Value>& info); static void RememberVoxelIdOff(const Nan::FunctionCallbackInfo<v8::Value>& info); static void RememberVoxelIdOn(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SafeDownCast(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetInput(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetRememberVoxelId(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetTetraPerCell(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetTetraPerCellTo12(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetTetraPerCellTo5(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetTetraPerCellTo5And12(const Nan::FunctionCallbackInfo<v8::Value>& info); static void SetTetraPerCellTo6(const Nan::FunctionCallbackInfo<v8::Value>& info); #ifdef VTK_NODE_PLUS_VTKRECTILINEARGRIDTOTETRAHEDRAWRAP_CLASSDEF VTK_NODE_PLUS_VTKRECTILINEARGRIDTOTETRAHEDRAWRAP_CLASSDEF #endif }; #endif
[ "axkibe@gmail.com" ]
axkibe@gmail.com
3706f69a348461823e27dceb4dded675fd0594d1
a4975e1c8ae3d1751150f946d53473c616f6eea4
/1021 个位数统计 .cpp
7f3049ede85e27e0829c4a998ca21d25f8bf4e82
[]
no_license
chengfw/C-Cpp_language
c4171f556478bf7d070c0a92f57adfb32d7cff0c
7cc4902c7964b447fb5e64377898eddad7bf2f0f
refs/heads/master
2021-09-26T19:06:10.941641
2018-11-01T13:38:49
2018-11-01T13:38:49
115,249,493
0
0
null
null
null
null
GB18030
C++
false
false
765
cpp
/*1021 个位数统计 输入格式: 每个输入包含 1 个测试用例,即一个不超过 1000 位的正整数 N。 输出格式: 对 N 中每一种不同的个位数字,以 D:M 的格式在一行中输出该位数字 D 及其在 N 中出现的次数 M。要求按 D 的升序输出。 */ #include<stdio.h> #include<string.h> int main() { int a[10] = {0}; char num[1010]; gets(num); int len = strlen(num); //strlen()一般不能直接放入for循环中,因为strlen的返回值是一个unsigned类型,容易造成死循环,应该将strlen(a)强制转换为int类型 for(int i=0; i<len; i++) { a[num[i]-'0']++; } for(int i=0; i<10; i++) { if(a[i] != 0) { printf("%d:%d\n", i, a[i]); } } return 0; }
[ "noreply@github.com" ]
chengfw.noreply@github.com
04a51a641078dba3514c8272b924e4c77efefd3e
3f0d626328b7c93bffd68a3144ab891697a8f823
/include/avhttp/impl/multi_download.ipp
318c191ec9a037620170caa0cee231f6a6af8cbd
[ "BSL-1.0" ]
permissive
yodamaster/avhttp
25baa36c285f2a1d20de1dc800bc1d6f700384fe
88ce27d264f9551e944aedc31ea845b08c3435c1
refs/heads/master
2021-01-24T02:30:17.901675
2013-09-12T10:01:17
2013-09-12T10:01:17
null
0
0
null
null
null
null
UTF-8
C++
false
false
45,100
ipp
// // impl/multi_download.ipp // ~~~~~~~~~~~~~~~~~~~~~~~ // // Copyright (c) 2013 Jack (jack dot wgm at gmail dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // path LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef AVHTTP_MULTI_DOWNLOAD_IPP #define AVHTTP_MULTI_DOWNLOAD_IPP #if defined(_MSC_VER) && (_MSC_VER >= 1200) # pragma once #endif // defined(_MSC_VER) && (_MSC_VER >= 1200) #include "avhttp/http_stream.hpp" #include "avhttp/default_storage.hpp" namespace avhttp { struct multi_download::http_stream_object { http_stream_object() : request_range(0, 0) , bytes_transferred(0) , bytes_downloaded(0) , request_count(0) , done(false) , direct_reconnect(false) {} // http_stream对象. http_stream_ptr stream; // 数据缓冲, 下载时的缓冲. boost::array<char, default_buffer_size> buffer; // 请求的数据范围, 每次由multi_download分配一个下载范围, stream按这个范围去下载. range request_range; // 本次请求已经下载的数据, 相对于request_range, 当一个request_range下载完成后, // bytes_transferred自动置为0. boost::int64_t bytes_transferred; // 当前对象下载的数据统计. boost::int64_t bytes_downloaded; // 当前对象发起请求的次数. int request_count; // 最后请求的时间. boost::posix_time::ptime last_request_time; // 最后的错误信息. boost::system::error_code ec; // 是否操作功能完成. bool done; // 立即重新尝试连接. bool direct_reconnect; }; struct multi_download::byte_rate { byte_rate() : seconds(5) , index(0) , current_byte_rate(0) { last_byte_rate.resize(seconds); for (int i = 0; i < seconds; i++) { last_byte_rate[i] = 0; } } // 用于统计速率的时间. const int seconds; // 最后的byte_rate. std::vector<int> last_byte_rate; // last_byte_rate的下标. int index; // 当前byte_rate. int current_byte_rate; }; struct multi_download::auto_outstanding { auto_outstanding(multi_download &o) : obj(o) { obj.change_outstranding(true); } ~auto_outstanding() { obj.change_outstranding(false); } multi_download &obj; }; multi_download::multi_download(boost::asio::io_service& io) : m_io_service(io) , m_accept_multi(false) , m_keep_alive(false) , m_file_size(-1) , m_timer(io) , m_number_of_connections(0) , m_byte_rate(new byte_rate()) , m_time_total(0) , m_download_point(0) , m_drop_size(-1) , m_outstanding(0) , m_abort(true) {} multi_download::~multi_download() { BOOST_ASSERT(stopped()); // 必须保证在析构前已经处于停止下载的状态. } void multi_download::start(const std::string& u, boost::system::error_code& ec) { settings s; start(u, s, ec); } void multi_download::start(const std::string& u) { settings s; boost::system::error_code ec; start(u, s, ec); if (ec) { boost::throw_exception(boost::system::system_error(ec)); } } void multi_download::start(const std::string& u, const settings& s) { boost::system::error_code ec; start(u, s, ec); if (ec) { boost::throw_exception(boost::system::system_error(ec)); } } void multi_download::start(const std::string& u, const settings& s, boost::system::error_code& ec) { auto_outstanding ao(*this); // 清空所有连接. { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.clear(); } // 默认文件大小为-1. m_file_size = -1; // 保存设置. m_settings = s; // 将url转换成utf8编码. std::string utf8 = detail::ansi_utf8(u); utf8 = detail::escape_path(utf8); m_final_url = utf8; m_file_name = ""; // 创建一个http_stream对象. http_object_ptr obj = boost::make_shared<http_stream_object>(); request_opts req_opt = m_settings.opts; req_opt.insert(http_options::range, "bytes=0-"); req_opt.insert(http_options::connection, "keep-alive"); // 创建http_stream并同步打开, 检查返回状态码是否为206, 如果非206则表示该http服务器不支持多点下载. obj->stream = boost::make_shared<http_stream>(boost::ref(m_io_service)); http_stream& h = *obj->stream; // 添加代理设置. h.proxy(m_settings.proxy); // 添加请求设置. h.request_options(req_opt); // 如果是ssl连接, 默认为检查证书. h.check_certificate(m_settings.check_certificate); // 打开http_stream. h.open(m_final_url, ec); // 打开失败则退出. if (ec) { return; } // 保存最终url信息. std::string location = h.location(); if (!location.empty()) { m_final_url = location; } // 判断是否支持多点下载. std::string status_code; h.response_options().find(http_options::status_code, status_code); if (status_code != "206") { m_accept_multi = false; } else { m_accept_multi = true; } // 禁用并发模式下载. if (m_settings.disable_multi_download) { m_accept_multi = false; } // 得到文件大小. std::string length; h.response_options().find(http_options::content_length, length); if (length.empty()) { h.response_options().find(http_options::content_length, length); std::string::size_type f = length.find('/'); if (f++ != std::string::npos) { length = length.substr(f); } else { length = ""; } if (length.empty()) { // 得到不文件长度, 设置为不支持多下载模式. m_accept_multi = false; } } boost::int64_t file_size = -1; if (!length.empty()) { try { file_size = boost::lexical_cast<boost::int64_t>(length); } catch (boost::bad_lexical_cast&) { // 得不到正确的文件长度, 设置为不支持多下载模式. m_accept_multi = false; } } // 按文件大小重新分配rangefield. if (file_size != -1 && file_size != m_file_size) { m_file_size = file_size; m_rangefield.reset(m_file_size); m_downlaoded_field.reset(m_file_size); } // 是否有指定的文件名, 检查Content-Disposition: attachment; filename="file.zip" std::string filename; h.response_options().find("Content-Disposition", filename); if (!filename.empty()) { std::string value; detail::content_disposition_filename(filename.begin(), filename.end(), value); if (!value.empty()) { m_file_name = value; } } // 是否支持长连接模式, 不支持多点下载, 长连接也没有意义. if (m_accept_multi) { std::string keep_alive; h.response_options().find(http_options::connection, keep_alive); boost::to_lower(keep_alive); if (keep_alive == "keep-alive") { m_keep_alive = true; } else { m_keep_alive = false; } // 如果未指定meta文件名, 则使用最终url生成meta文件名. if (m_settings.meta_file.empty()) { // 没有指定meta文件名, 自动修正meta文件名. m_settings.meta_file = meta_name(m_final_url.to_string()); } // 打开meta文件, 如果打开成功, 则表示解析出相应的位图了. if (!open_meta(m_settings.meta_file)) { // 位图打开失败, 无所谓, 下载过程中会创建新的位图, 删除meta文件. m_file_meta.close(); boost::system::error_code ignore; fs::remove(m_settings.meta_file, ignore); } } // 判断文件是否已经下载完成, 完成则直接返回. if (m_downlaoded_field.is_full()) { return; } // 创建存储对象. if (!s.storage) { m_storage.reset(default_storage_constructor()); } else { m_storage.reset(s.storage()); } BOOST_ASSERT(m_storage); // 打开文件, 构造文件名. m_storage->open(boost::filesystem::path(file_name()), ec); if (ec) { return; } // 保存限速大小. m_drop_size = s.download_rate_limit; // 处理默认设置. if (m_settings.connections_limit == -1) { m_settings.connections_limit = default_connections_limit; } if (m_settings.piece_size == -1 && m_file_size != -1) { m_settings.piece_size = default_piece_size(m_file_size); } // 根据第1个连接返回的信息, 重新设置请求选项. req_opt = m_settings.opts; if (m_keep_alive) { req_opt.insert(http_options::connection, "keep-alive"); } else { req_opt.insert(http_options::connection, "close"); } // 修改终止状态. m_abort = false; // 连接计数置为1. m_number_of_connections = 1; // 添加第一个连接到连接容器. { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.push_back(obj); } // 为第1个连接请求的buffer大小. int available_bytes = default_buffer_size; // 设置第1个连接下载范围. if (m_accept_multi) { range req_range; bool need_reopen = false; // 从文件区间中获得一段空间, 这是第一次分配给obj下载的任务. if (allocate_range(req_range)) { // 分配到的起始边界不是0, 需要重新open这个obj. if (req_range.left != 0) { need_reopen = true; } // 保存请求区间. obj->request_range = req_range; // 设置请求区间到请求选项中. req_opt.remove(http_options::range); req_opt.insert(http_options::range, boost::str( boost::format("bytes=%lld-%lld", std::locale("C")) % req_range.left % req_range.right)); // 保存最后请求时间, 用于检查超时重置. obj->last_request_time = boost::posix_time::microsec_clock::local_time(); // 添加代理设置. h.proxy(m_settings.proxy); // 设置请求选项. h.request_options(req_opt); // 如果是ssl连接, 默认为检查证书. h.check_certificate(m_settings.check_certificate); // 禁用重定向. h.max_redirects(0); if (need_reopen) { h.close(ec); // 关闭原来的连接, 需要请求新的区间. if (ec) { return; } change_outstranding(true); // 开始异步打开. h.async_open(m_final_url, boost::bind(&multi_download::handle_open, this, 0, obj, boost::asio::placeholders::error ) ); } else { // 发起数据读取请求. change_outstranding(true); // 传入指针obj, 以确保多线程安全. h.async_read_some(boost::asio::buffer(obj->buffer, available_bytes), boost::bind(&multi_download::handle_read, this, 0, obj, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } } else { // 分配空间失败, 说明可能已经没有空闲的空间提供 // 给这个stream进行下载了直接跳过好了. obj->done = true; } } else // 服务器不支持多点下载模式, 继续从第1个连接下载. { // 发起数据读取请求. change_outstranding(true); // 传入指针obj, 以确保多线程安全. h.async_read_some(boost::asio::buffer(obj->buffer, available_bytes), boost::bind(&multi_download::handle_read, this, 0, obj, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } // 如果支持多点下载, 按设置创建其它http_stream. if (m_accept_multi) { for (int i = 1; i < m_settings.connections_limit; i++) { http_object_ptr p = boost::make_shared<http_stream_object>(); http_stream_ptr ptr = boost::make_shared<http_stream>(boost::ref(m_io_service)); range req_range; // 从文件间区中得到一段空间. if (!allocate_range(req_range)) { // 分配空间失败, 说明可能已经没有空闲的空间提供给这个stream进行下载了直接跳过好了. p->done = true; continue; } // 保存请求区间. p->request_range = req_range; // 设置请求区间到请求选项中. req_opt.remove(http_options::range); req_opt.insert(http_options::range, boost::str( boost::format("bytes=%lld-%lld", std::locale("C")) % req_range.left % req_range.right)); // 设置请求选项. ptr->request_options(req_opt); // 如果是ssl连接, 默认为检查证书. ptr->check_certificate(m_settings.check_certificate); // 禁用重定向. ptr->max_redirects(0); // 添加代理设置. ptr->proxy(m_settings.proxy); // 将连接添加到容器中. p->stream = ptr; { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.push_back(p); } // 保存最后请求时间, 方便检查超时重置. p->last_request_time = boost::posix_time::microsec_clock::local_time(); m_number_of_connections++; change_outstranding(true); // 开始异步打开, 传入指针http_object_ptr, 以确保多线程安全. p->stream->async_open(m_final_url, boost::bind(&multi_download::handle_open, this, i, p, boost::asio::placeholders::error ) ); } } change_outstranding(true); // 开启定时器, 执行任务. m_timer.expires_from_now(boost::posix_time::seconds(1)); m_timer.async_wait(boost::bind(&multi_download::on_tick, this, boost::asio::placeholders::error)); return; } template <typename Handler> void multi_download::async_start(const std::string& u, Handler handler) { settings s; async_start(u, s, handler); } template <typename Handler> void multi_download::async_start(const std::string& u, const settings& s, Handler handler) { // 清空所有连接. { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.clear(); } // 清空文件大小. m_file_size = -1; // 保存参数. std::string utf8 = detail::ansi_utf8(u); utf8 = detail::escape_path(utf8); m_final_url = utf8; m_file_name = ""; m_settings = s; // 设置状态. m_abort = false; // 创建一个http_stream对象. http_object_ptr obj = boost::make_shared<http_stream_object>(); request_opts req_opt = m_settings.opts; req_opt.insert(http_options::range, "bytes=0-"); req_opt.insert(http_options::connection, "keep-alive"); // 创建http_stream并同步打开, 检查返回状态码是否为206, 如果非206则表示该http服务器不支持多点下载. obj->stream = boost::make_shared<http_stream>(boost::ref(m_io_service)); http_stream& h = *obj->stream; // 设置请求选项. h.request_options(req_opt); // 添加代理设置. h.proxy(m_settings.proxy); // 如果是ssl连接, 默认为检查证书. h.check_certificate(m_settings.check_certificate); change_outstranding(true); typedef boost::function<void (boost::system::error_code)> HandlerWrapper; h.async_open(m_final_url, boost::bind(&multi_download::handle_start<HandlerWrapper>, this, HandlerWrapper(handler), obj, boost::asio::placeholders::error ) ); return; } void multi_download::stop() { m_abort = true; boost::system::error_code ignore; m_timer.cancel(ignore); #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif for (std::size_t i = 0; i < m_streams.size(); i++) { const http_object_ptr& ptr = m_streams[i]; if (ptr && ptr->stream) { ptr->stream->close(ignore); } } } template <typename MutableBufferSequence> std::size_t multi_download::fetch_data(const MutableBufferSequence& buffers, boost::int64_t offset) { if (!m_storage) // 没有存储设备, 无法获得数据. { return 0; } // 更新下载点位置. m_download_point = offset; // 得到用户缓冲大小, 以确定最大读取字节数. std::size_t buffer_length = 0; { typename MutableBufferSequence::const_iterator iter = buffers.begin(); typename MutableBufferSequence::const_iterator end = buffers.end(); // 计算得到用户buffers的总大小. for (; iter != end; ++iter) { boost::asio::mutable_buffer buffer(*iter); buffer_length += boost::asio::buffer_size(buffer); } } // 得到offset后面可读取的数据大小, 使用折半法来获得可读空间大小. while (buffer_length != 0) { if (m_downlaoded_field.check_range(offset, buffer_length)) { break; } buffer_length /= 2; } // 读取数据. if (buffer_length != 0) { std::size_t available_length = buffer_length; boost::int64_t offset_for_read = offset; typename MutableBufferSequence::const_iterator iter = buffers.begin(); typename MutableBufferSequence::const_iterator end = buffers.end(); // 计算得到用户buffers的总大小. for (; iter != end; ++iter) { boost::asio::mutable_buffer buffer(*iter); char* buffer_ptr = boost::asio::buffer_cast<char*>(buffer); std::size_t buffer_size = boost::asio::buffer_size(buffer); if ((boost::int64_t)available_length - (boost::int64_t)buffer_size < 0) buffer_size = available_length; std::size_t length = m_storage->read(buffer_ptr, offset_for_read, buffer_size); BOOST_ASSERT(length == buffer_size); offset_for_read += length; available_length -= length; if (available_length == 0) { break; } } // 计算实际读取的字节数. buffer_length = offset_for_read - offset; } return buffer_length; } const settings& multi_download::set() const { return m_settings; } bool multi_download::stopped() const { if (m_abort) { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_outstanding_mutex); #endif if (m_outstanding == 0) { return true; } } return false; } bool multi_download::wait_for_complete() { while (!stopped()) { if (!m_abort) { boost::mutex::scoped_lock l(m_quit_mtx); m_quit_cond.wait(l); } } // 检查是否下载完成, 完成返回true, 否则返回false. boost::int64_t fs = file_size(); if (fs != -1) { if (fs != bytes_download()) { return false; // 未下载完成. } } return true; // 下载完成. } void multi_download::check_certificate(bool check) { m_settings.check_certificate = check; } boost::int64_t multi_download::file_size() const { return m_file_size; } std::string multi_download::meta_name(const std::string& url) const { // 使用url的crc作为文件名, 这样只要url是确定的, 那么就不会找错meta文件. boost::crc_32_type result; result.process_bytes(url.c_str(), url.size()); std::stringstream ss; ss.imbue(std::locale("C")); ss << std::hex << result.checksum() << ".meta"; return ss.str(); } std::string multi_download::file_name() const { if (m_file_name.empty()) { m_file_name = fs::path(detail::utf8_ansi(m_final_url.path())).leaf().string(); if (m_file_name == "/" || m_file_name == "") m_file_name = fs::path(m_final_url.query()).leaf().string(); if (m_file_name == "/" || m_file_name == "" || m_file_name == ".") m_file_name = "index.html"; if (!m_settings.save_path.empty()) { if (fs::is_directory(m_settings.save_path)) { fs::path p = m_settings.save_path / m_file_name; m_file_name = p.string(); } else { m_file_name = m_settings.save_path.string(); } } return m_file_name; } return m_file_name; } boost::int64_t multi_download::bytes_download() const { if (m_file_size != -1) { return m_downlaoded_field.range_size(); } boost::int64_t bytes_transferred = 0; { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock l(m_streams_mutex); #endif for (std::size_t i = 0; i < m_streams.size(); i++) { const http_object_ptr& ptr = m_streams[i]; if (ptr) { bytes_transferred += ptr->bytes_downloaded; } } } return bytes_transferred; } int multi_download::download_rate() const { return m_byte_rate->current_byte_rate; } void multi_download::download_rate_limit(int rate) { m_settings.download_rate_limit = rate; } int multi_download::download_rate_limit() const { return m_settings.download_rate_limit; } ////////////////////////////////////////////////////////////////////////// // 以下为内部实现. void multi_download::handle_open(const int index, http_object_ptr object_ptr, const boost::system::error_code& ec) { auto_outstanding ao(*this); change_outstranding(false); http_stream_object& object = *object_ptr; if (ec || m_abort) { // 保存最后的错误信息, 避免一些过期无效或没有允可的链接不断的尝试. object.ec = ec; // 单连接模式, 表示下载停止, 终止下载. if (!m_accept_multi) { m_abort = true; boost::system::error_code ignore; m_timer.cancel(ignore); } return; } if (!m_accept_multi) { // 当不支持断点续传时, 有时请求到的文件大小和start请求到的文件大小不一至, 则需要新file_size. if (object.stream->content_length() != -1 && object.stream->content_length() != m_file_size) { m_file_size = object.stream->content_length(); m_rangefield.reset(m_file_size); m_downlaoded_field.reset(m_file_size); } } // 保存最后请求时间, 方便检查超时重置. object.last_request_time = boost::posix_time::microsec_clock::local_time(); // 计算可请求的字节数. int available_bytes = default_buffer_size; if (m_drop_size != -1) { available_bytes = (std::min)(m_drop_size, default_buffer_size); m_drop_size -= available_bytes; if (available_bytes == 0) { // 避免空请求占用大量CPU, 让出CPU资源. boost::this_thread::sleep(boost::posix_time::millisec(1)); } } // 发起数据读取请求. http_stream_ptr& stream_ptr = object.stream; change_outstranding(true); // 传入指针http_object_ptr, 以确保多线程安全. stream_ptr->async_read_some(boost::asio::buffer(object.buffer, available_bytes), boost::bind(&multi_download::handle_read, this, index, object_ptr, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } void multi_download::handle_read(const int index, http_object_ptr object_ptr, int bytes_transferred, const boost::system::error_code& ec) { auto_outstanding ao(*this); change_outstranding(false); http_stream_object& object = *object_ptr; // 保存数据, 当远程服务器断开时, ec为eof, 保证数据全部写入. if (m_storage && bytes_transferred != 0 && (!ec || ec == boost::asio::error::eof)) { // 计算offset. boost::int64_t offset = object.request_range.left + object.bytes_transferred; // 更新完成下载区间位图. if (m_file_size != -1) { m_downlaoded_field.update(offset, offset + bytes_transferred); } // 使用m_storage写入. m_storage->write(object.buffer.c_array(), offset, bytes_transferred); } // 统计本次已经下载的总字节数. object.bytes_transferred += bytes_transferred; // 统计总下载字节数. object.bytes_downloaded += bytes_transferred; // 如果发生错误或终止. if (ec || m_abort) { // 单连接模式, 表示下载停止, 终止下载. if (!m_accept_multi) { m_abort = true; boost::system::error_code ignore; m_timer.cancel(ignore); } // 如果没有终止下载, 那么遇到错误, 这里返回将会在on_tick中计算 // 超时, 一旦超时将尝试重新发起连接进行请求. return; } // 用于计算下载速率. m_byte_rate->last_byte_rate[m_byte_rate->index] += bytes_transferred; // 判断请求区间的数据已经下载完成, 如果下载完成, 则分配新的区间, 发起新的请求. if (m_accept_multi && object.bytes_transferred >= object.request_range.size()) { // 不支持长连接, 则创建新的连接. // 如果是第1个连接, 请求范围是0-文件尾, 也需要断开重新连接. if (!m_keep_alive || (object.request_range.left == 0 && index == 0)) { // 新建新的http_stream对象. object.direct_reconnect = true; return; } http_stream& stream = *object.stream; // 配置请求选项. request_opts req_opt = m_settings.opts; // 设置是否为长连接. if (m_keep_alive) { req_opt.insert(http_options::connection, "keep-alive"); } // 如果分配空闲空间失败, 则跳过这个socket, 并立即尝试连接这个socket. if (!allocate_range(object.request_range)) { object.direct_reconnect = true; return; } // 清空计数. object.bytes_transferred = 0; // 插入新的区间请求. req_opt.insert(http_options::range, boost::str(boost::format("bytes=%lld-%lld", std::locale("C")) % object.request_range.left % object.request_range.right)); // 添加代理设置. stream.proxy(m_settings.proxy); // 设置到请求选项中. stream.request_options(req_opt); // 如果是ssl连接, 默认为检查证书. stream.check_certificate(m_settings.check_certificate); // 禁用重定向. stream.max_redirects(0); // 保存最后请求时间, 方便检查超时重置. object.last_request_time = boost::posix_time::microsec_clock::local_time(); change_outstranding(true); // 发起异步http数据请求, 传入指针http_object_ptr, 以确保多线程安全. if (!m_keep_alive) { stream.async_open(m_final_url, boost::bind(&multi_download::handle_open, this, index, object_ptr, boost::asio::placeholders::error ) ); } else { stream.async_request(req_opt, boost::bind(&multi_download::handle_request, this, index, object_ptr, boost::asio::placeholders::error ) ); } } else { // 服务器不支持多点下载, 说明数据已经下载完成. if (!m_accept_multi && (m_file_size != -1 && object.bytes_downloaded == m_file_size)) { m_abort = true; boost::system::error_code ignore; m_timer.cancel(ignore); return; } // 保存最后请求时间, 方便检查超时重置. object.last_request_time = boost::posix_time::microsec_clock::local_time(); // 计算可请求的字节数. int available_bytes = default_buffer_size; if (m_drop_size != -1) { available_bytes = (std::min)(m_drop_size, default_buffer_size); m_drop_size -= available_bytes; if (available_bytes == 0) { // 避免空请求占用大量CPU, 让出CPU资源. boost::this_thread::sleep(boost::posix_time::millisec(1)); } } change_outstranding(true); // 继续读取数据, 传入指针http_object_ptr, 以确保多线程安全. object.stream->async_read_some(boost::asio::buffer(object.buffer, available_bytes), boost::bind(&multi_download::handle_read, this, index, object_ptr, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } } void multi_download::handle_request(const int index, http_object_ptr object_ptr, const boost::system::error_code& ec) { auto_outstanding ao(*this); change_outstranding(false); http_stream_object& object = *object_ptr; object.request_count++; if (ec || m_abort) { // 保存最后的错误信息, 避免一些过期无效或没有允可的链接不断的尝试. object.ec = ec; // 单连接模式, 表示下载停止, 终止下载. if (!m_accept_multi) { m_abort = true; boost::system::error_code ignore; m_timer.cancel(ignore); } return; } // 保存最后请求时间, 方便检查超时重置. object.last_request_time = boost::posix_time::microsec_clock::local_time(); // 计算可请求的字节数. int available_bytes = default_buffer_size; if (m_drop_size != -1) { available_bytes = (std::min)(m_drop_size, default_buffer_size); m_drop_size -= available_bytes; if (available_bytes == 0) { // 避免空请求占用大量CPU, 让出CPU资源. boost::this_thread::sleep(boost::posix_time::millisec(1)); } } change_outstranding(true); // 发起数据读取请求, 传入指针http_object_ptr, 以确保多线程安全. object_ptr->stream->async_read_some(boost::asio::buffer(object.buffer, available_bytes), boost::bind(&multi_download::handle_read, this, index, object_ptr, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } template <typename Handler> void multi_download::handle_start(Handler handler, http_object_ptr object_ptr, const boost::system::error_code& ec) { auto_outstanding ao(*this); change_outstranding(false); // 打开失败则退出. if (ec) { handler(ec); return; } boost::system::error_code err; // 下面使用引用http_stream_object对象. http_stream_object& object = *object_ptr; // 同样引用http_stream对象. http_stream& h = *object.stream; // 保存最终url信息. std::string location = h.location(); if (!location.empty()) { m_final_url = location; } // 判断是否支持多点下载. std::string status_code; h.response_options().find(http_options::status_code, status_code); if (status_code != "206") { m_accept_multi = false; } else { m_accept_multi = true; } // 禁用并发模式下载. if (m_settings.disable_multi_download) { m_accept_multi = false; } // 得到文件大小. std::string length; h.response_options().find(http_options::content_length, length); if (length.empty()) { h.response_options().find(http_options::content_range, length); std::string::size_type f = length.find('/'); if (f++ != std::string::npos) { length = length.substr(f); } else { length = ""; } if (length.empty()) { // 得到不文件长度, 设置为不支持多下载模式. m_accept_multi = false; } } boost::int64_t file_size = -1; if (!length.empty()) { try { file_size = boost::lexical_cast<boost::int64_t>(length); } catch (boost::bad_lexical_cast&) { // 得不到正确的文件长度, 设置为不支持多下载模式. m_accept_multi = false; } } // 按文件大小分配rangefield. if (file_size != -1 && file_size != m_file_size) { m_file_size = file_size; m_rangefield.reset(m_file_size); m_downlaoded_field.reset(m_file_size); } // 是否有指定的文件名, 检查Content-Disposition: attachment; filename="file.zip" std::string filename; h.response_options().find("Content-Disposition", filename); if (!filename.empty()) { std::string value; detail::content_disposition_filename(filename.begin(), filename.end(), value); if (!value.empty()) { m_file_name = value; } } // 是否支持长连接模式, 不支持多点下载, 长连接也没有意义. if (m_accept_multi) { std::string keep_alive; h.response_options().find(http_options::connection, keep_alive); boost::to_lower(keep_alive); if (keep_alive == "keep-alive") { m_keep_alive = true; } else { m_keep_alive = false; } // 如果未指定meta文件名, 则使用最终url生成meta文件名. if (m_settings.meta_file.empty()) { // 没有指定meta文件名, 自动修正meta文件名. m_settings.meta_file = meta_name(m_final_url.to_string()); } // 打开meta文件, 如果打开成功, 则表示解析出相应的位图了. if (!open_meta(m_settings.meta_file)) { // 位图打开失败, 无所谓, 下载过程中会创建新的位图, 删除meta文件. m_file_meta.close(); fs::remove(m_settings.meta_file, err); } } // 判断文件是否已经下载完成, 完成则直接返回. if (m_downlaoded_field.is_full()) { handler(err); return; } // 创建存储对象. if (!m_settings.storage) { m_storage.reset(default_storage_constructor()); } else { m_storage.reset(m_settings.storage()); } BOOST_ASSERT(m_storage); // 打开文件, 构造文件名. m_storage->open(boost::filesystem::path(file_name()), err); if (err) { handler(err); return; } // 处理默认设置. if (m_settings.connections_limit == -1) { m_settings.connections_limit = default_connections_limit; } if (m_settings.piece_size == -1 && m_file_size != -1) { m_settings.piece_size = default_piece_size(m_file_size); } // 根据第1个连接返回的信息, 设置请求选项. request_opts req_opt = m_settings.opts; if (m_keep_alive) { req_opt.insert(http_options::connection, "keep-alive"); } else { req_opt.insert(http_options::connection, "close"); } // 修改终止状态. m_abort = false; // 连接计数置为1. m_number_of_connections = 1; // 添加第一个连接到连接容器. { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.push_back(object_ptr); } // 为第1个连接请求的buffer大小. int available_bytes = default_buffer_size; // 设置第1个连接下载范围. if (m_accept_multi) { range req_range; bool need_reopen = false; // 从文件区间中获得一段空间, 这是第一次分配给obj下载的任务. if (allocate_range(req_range)) { // 分配到的起始边界不是0, 需要重新open这个obj. if (req_range.left != 0) { need_reopen = true; } // 保存请求区间. object_ptr->request_range = req_range; // 设置请求区间到请求选项中. req_opt.remove(http_options::range); req_opt.insert(http_options::range, boost::str( boost::format("bytes=%lld-%lld", std::locale("C")) % req_range.left % req_range.right)); // 保存最后请求时间, 用于检查超时重置. object_ptr->last_request_time = boost::posix_time::microsec_clock::local_time(); // 添加代理设置. h.proxy(m_settings.proxy); // 设置请求选项. h.request_options(req_opt); // 如果是ssl连接, 默认为检查证书. h.check_certificate(m_settings.check_certificate); // 禁用重定向. h.max_redirects(0); if (need_reopen) { h.close(err); // 关闭原来的连接, 需要请求新的区间. if (err) { handler(err); return; } change_outstranding(true); // 开始异步打开. h.async_open(m_final_url, boost::bind(&multi_download::handle_open, this, 0, object_ptr, boost::asio::placeholders::error ) ); } else { // 发起数据读取请求. change_outstranding(true); // 传入指针obj, 以确保多线程安全. h.async_read_some(boost::asio::buffer(object_ptr->buffer, available_bytes), boost::bind(&multi_download::handle_read, this, 0, object_ptr, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } } else { // 分配空间失败, 说明可能已经没有空闲的空间提供 // 给这个stream进行下载了直接跳过好了. object_ptr->done = true; } } else // 服务器不支持多点下载模式, 继续从第1个连接下载. { // 发起数据读取请求. change_outstranding(true); // 传入指针obj, 以确保多线程安全. h.async_read_some(boost::asio::buffer(object_ptr->buffer, available_bytes), boost::bind(&multi_download::handle_read, this, 0, object_ptr, boost::asio::placeholders::bytes_transferred, boost::asio::placeholders::error ) ); } // 如果支持多点下载, 按设置创建其它http_stream. if (m_accept_multi) { for (int i = 1; i < m_settings.connections_limit; i++) { http_object_ptr p = boost::make_shared<http_stream_object>(); http_stream_ptr ptr = boost::make_shared<http_stream>(boost::ref(m_io_service)); range req_range; // 从文件间区中得到一段空间. if (!allocate_range(req_range)) { // 分配空间失败, 说明可能已经没有空闲的空间提供给这个stream进行下载了直接跳过好了. p->done = true; continue; } // 保存请求区间. p->request_range = req_range; // 设置请求区间到请求选项中. req_opt.remove(http_options::range); req_opt.insert(http_options::range, boost::str( boost::format("bytes=%lld-%lld", std::locale("C")) % req_range.left % req_range.right)); // 设置请求选项. ptr->request_options(req_opt); // 添加代理设置. ptr->proxy(m_settings.proxy); // 如果是ssl连接, 默认为检查证书. ptr->check_certificate(m_settings.check_certificate); // 禁用重定向. ptr->max_redirects(0); // 将连接添加到容器中. p->stream = ptr; { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_streams_mutex); #endif m_streams.push_back(p); } // 保存最后请求时间, 方便检查超时重置. p->last_request_time = boost::posix_time::microsec_clock::local_time(); m_number_of_connections++; change_outstranding(true); // 开始异步打开, 传入指针http_object_ptr, 以确保多线程安全. p->stream->async_open(m_final_url, boost::bind(&multi_download::handle_open, this, i, p, boost::asio::placeholders::error ) ); } } change_outstranding(true); // 开启定时器, 执行任务. m_timer.expires_from_now(boost::posix_time::seconds(1)); m_timer.async_wait(boost::bind(&multi_download::on_tick, this, boost::asio::placeholders::error)); // 回调通知用户, 已经成功启动下载. handler(ec); return; } void multi_download::on_tick(const boost::system::error_code& e) { auto_outstanding ao(*this); change_outstranding(false); m_time_total++; // 在这里更新位图. if (m_accept_multi) { update_meta(); } // 每隔1秒进行一次on_tick. if (!m_abort && !e) { change_outstranding(true); m_timer.expires_from_now(boost::posix_time::seconds(1)); m_timer.async_wait(boost::bind(&multi_download::on_tick, this, boost::asio::placeholders::error)); } else { // 已经终止. return; } // 用于计算动态下载速率. { int bytes_count = 0; for (int i = 0; i < m_byte_rate->seconds; i++) bytes_count += m_byte_rate->last_byte_rate[i]; m_byte_rate->current_byte_rate = (double)bytes_count / m_byte_rate->seconds; if (m_byte_rate->index + 1 >= m_byte_rate->seconds) m_byte_rate->last_byte_rate[m_byte_rate->index = 0] = 0; else m_byte_rate->last_byte_rate[++m_byte_rate->index] = 0; } // 计算限速. m_drop_size = m_settings.download_rate_limit; #ifndef AVHTTP_DISABLE_THREAD // 锁定m_streams容器进行操作, 保证m_streams操作的唯一性. boost::mutex::scoped_lock lock(m_streams_mutex); #endif for (std::size_t i = 0; i < m_streams.size(); i++) { http_object_ptr& object_ptr = m_streams[i]; boost::posix_time::time_duration duration = boost::posix_time::microsec_clock::local_time() - object_ptr->last_request_time; bool expire = duration > boost::posix_time::seconds(m_settings.time_out); if (!object_ptr->done && (expire || object_ptr->direct_reconnect)) { // 超时或出错, 关闭并重新创建连接. boost::system::error_code ec; object_ptr->stream->close(ec); // 出现下列之一的错误, 将不再尝试连接服务器, 因为重试也是没有意义的. if (object_ptr->ec == avhttp::errc::forbidden || object_ptr->ec == avhttp::errc::not_found || object_ptr->ec == avhttp::errc::method_not_allowed) { object_ptr->done = true; continue; } // 单连接模式, 表示下载停止, 终止下载. if (!m_accept_multi) { m_abort = true; object_ptr->done = true; m_number_of_connections--; continue; } // 重置重连标识. object_ptr->direct_reconnect = false; // 重新创建http_object和http_stream. object_ptr = boost::make_shared<http_stream_object>(*object_ptr); http_stream_object& object = *object_ptr; // 使用新的http_stream对象. object.stream = boost::make_shared<http_stream>(boost::ref(m_io_service)); http_stream& stream = *object.stream; // 配置请求选项. request_opts req_opt = m_settings.opts; // 设置是否为长连接. if (m_keep_alive) { req_opt.insert(http_options::connection, "keep-alive"); } // 继续从上次未完成的位置开始请求. if (m_accept_multi) { boost::int64_t begin = object.request_range.left + object.bytes_transferred; boost::int64_t end = object.request_range.right; if (end - begin <= 0) { // 如果分配空闲空间失败, 则跳过这个socket. if (!allocate_range(object.request_range)) { object.done = true; // 已经没什么可以下载了. m_number_of_connections--; continue; } object.bytes_transferred = 0; begin = object.request_range.left; end = object.request_range.right; } req_opt.insert(http_options::range, boost::str( boost::format("bytes=%lld-%lld", std::locale("C")) % begin % end)); } // 添加代理设置. stream.proxy(m_settings.proxy); // 设置到请求选项中. stream.request_options(req_opt); // 如果是ssl连接, 默认为检查证书. stream.check_certificate(m_settings.check_certificate); // 禁用重定向. stream.max_redirects(0); // 保存最后请求时间, 方便检查超时重置. object.last_request_time = boost::posix_time::microsec_clock::local_time(); change_outstranding(true); // 重新发起异步请求, 传入object_item_ptr指针, 以确保线程安全. stream.async_open(m_final_url, boost::bind(&multi_download::handle_open, this, i, object_ptr, boost::asio::placeholders::error ) ); } } // 统计操作功能完成的http_stream的个数. int done = 0; for (std::size_t i = 0; i < m_streams.size(); i++) { http_object_ptr& object_item_ptr = m_streams[i]; if (object_item_ptr->done) { done++; } } // 当m_streams中所有连接都done时, 表示已经下载完成. if (done == m_streams.size()) { boost::system::error_code ignore; m_abort = true; m_timer.cancel(ignore); // 通知wait_for_complete退出. boost::mutex::scoped_lock l(m_quit_mtx); m_quit_cond.notify_one(); return; } } bool multi_download::allocate_range(range& r) { #ifndef AVHTTP_DISABLE_THREAD // 在多线程运行io_service时, 必须加锁, 避免重入时多次重复分配相同区域. // 单线程执行io_service(并启用了AVHTTP_DISABLE_THREAD)无需考虑加 // 锁, 因为所有操作都是异步串行的动作. boost::mutex::scoped_lock lock(m_rangefield_mutex); #endif range temp(-1, -1); do { // 从指定位置m_download_point开始文件间区中得到一段空间. if (!m_rangefield.out_space(m_download_point, temp.left, temp.right)) { return false; } // 用于调试. BOOST_ASSERT(temp != r); BOOST_ASSERT(temp.size() >= 0); // 重新计算为最大max_request_bytes大小. boost::int64_t max_request_bytes = m_settings.request_piece_num * m_settings.piece_size; if (temp.size() > max_request_bytes) { temp.right = temp.left + max_request_bytes; } r = temp; // 从m_rangefield中分配这个空间. if (!m_rangefield.update(temp)) { continue; } else { break; } } while (!m_abort); // 右边边界减1, 因为http请求的区间是包含右边界值, 下载时会将right下标位置的字节下载. if (--r.right < r.left) { return false; } return true; } bool multi_download::open_meta(const fs::path& file_path) { boost::system::error_code ec; // 得到文件大小. boost::uintmax_t size = fs::file_size(file_path, ec); if (ec) { size = 0; } // 打开文件. m_file_meta.close(); m_file_meta.open(file_path, file::read_write, ec); if (ec) { return false; } // 如果有数据, 则解码meta数据. if (size != 0) { std::vector<char> buffer; buffer.resize(size); const std::streamsize num = m_file_meta.read(&buffer[0], size); if (num != size) { return false; } entry e = bdecode(buffer.begin(), buffer.end()); // 最终的url. if (m_settings.allow_use_meta_url) { const std::string url = e["final_url"].string(); if (!url.empty()) { m_final_url = url; } } // 文件大小. m_file_size = e["file_size"].integer(); m_rangefield.reset(m_file_size); m_downlaoded_field.reset(m_file_size); // 分片大小. m_settings.piece_size = e["piece_size"].integer(); // 分片数. int piece_num = e["piece_num"].integer(); // 位图数据. std::string bitfield_data = e["bitfield"].string(); // 构造到位图. bitfield bf(bitfield_data.c_str(), piece_num); // 更新到区间范围. m_rangefield.bitfield_to_range(bf, m_settings.piece_size); m_downlaoded_field.bitfield_to_range(bf, m_settings.piece_size); } return true; } void multi_download::update_meta() { if (!m_file_meta.is_open()) { boost::system::error_code ec; m_file_meta.open(m_settings.meta_file, file::read_write, ec); if (ec) { return; } } entry e; e["final_url"] = m_final_url.to_string(); e["file_size"] = m_file_size; e["piece_size"] = m_settings.piece_size; e["piece_num"] = (m_file_size / m_settings.piece_size) + (m_file_size % m_settings.piece_size == 0 ? 0 : 1); bitfield bf; m_downlaoded_field.range_to_bitfield(bf, m_settings.piece_size); std::string str(bf.bytes(), bf.bytes_size()); e["bitfield"] = str; std::vector<char> buffer; bencode(back_inserter(buffer), e); m_file_meta.write(0, &buffer[0], buffer.size()); } void multi_download::change_outstranding(bool addref/* = true*/) { #ifndef AVHTTP_DISABLE_THREAD boost::mutex::scoped_lock lock(m_outstanding_mutex); #endif if (addref) { m_outstanding++; } else { m_outstanding--; } } // 默认根据文件大小自动计算分片大小. std::size_t multi_download::default_piece_size(const boost::int64_t& file_size) const { const int target_size = 40 * 1024; std::size_t piece_size = boost::int64_t(file_size / (target_size / 20)); std::size_t i = 16 * 1024; for (; i < 16 * 1024 * 1024; i *= 2) { if (piece_size > i) continue; break; } piece_size = i; return piece_size; } } // namespace avhttp #endif // AVHTTP_MULTI_DOWNLOAD_IPP
[ "jack.wgm@gmail.com" ]
jack.wgm@gmail.com
f30e99512af8ef86e577f5963258385f734b971d
04bd521453254be10ee61a94789950f2d43d4dab
/codeforces/problemset/1227D2.cpp
6cae30527cedb569904d46ca2d87a2c0ab664871
[]
no_license
nitinkedia7/competitive-coding
0dd19f98f81b144ead95b540aaa88c2f33981a15
c2fc743f71a60846650387edf50f2ef2828e2119
refs/heads/master
2023-04-28T01:18:04.917804
2020-08-20T14:47:23
2020-08-20T14:47:23
163,924,874
0
0
null
null
null
null
UTF-8
C++
false
false
2,149
cpp
#include <bits/stdc++.h> using namespace std; #define all(x) (x).begin(), (x).end() typedef long long ll; const ll MOD = 1000000007; vector<int> a; vector<pair<int,int>> v; vector<tuple<int,int,int>> q; void print(vector<pair<int,int>> &v) { for (auto &[x, y] : v) { cout << -1 * x << "," << y << " "; } cout << endl; } void update(int l, int val, int n, vector<int> &v) { l += n; v[l] = val; l >>= 1; while (l > 0) { v[l] = v[l << 1] + v[(l << 1) | 1]; l >>= 1; } return; } int query(int l, int r, int n, vector<int> &v) { l += n; r += n; int s = 0; while (l < r) { if (l & 1) { s += v[l++]; } if (r & 1) { s += v[--r]; } l >>= 1; r >>= 1; } return s; } int watson(int k, int p, int &pk, int n, vector<int> &seg) { while (pk < k) { int pos = v[pk].second; update(pos, 1, n, seg); pk++; } // for (int i = 0; i < n; i++) { // cout << seg[i + n] << " "; // } // cout << endl; // now binary search for p int l = 0, r = n-1, mid; while (l <= r) { mid = (l + r) / 2; if (query(0, mid+1, n, seg) < p) { l = mid + 1; } else r = mid - 1; } return a[l]; } void sherlock(int t) { int n; cin >> n; a.resize(n); v.resize(n); for (int i = 0; i < n; i++) { cin >> a[i]; v[i] = {-1 * a[i], i}; } sort(all(v)); // print(v); int m; cin >> m; q.resize(m); int id = 0; for (auto &[k, p, i] : q) { cin >> k >> p; i = id++; } sort(all(q)); vector<int> seg(2 * n, 0); vector<int> ans(m); int pk = 0; for (auto &[k, p, id] : q) { ans[id] = watson(k, p, pk, n, seg); // cout << k << " " << p << " " << id << " " << ans[id] << endl; } for (int i = 0; i < m; i++) cout << ans[i] << endl; } int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int tt = 1; // cin >> tt; for (int t = 1; t <= tt; t++) sherlock(t); return 0; }
[ "nitinkedia7@gmail.com" ]
nitinkedia7@gmail.com
e66fb72fc288046263ec682e28fe9a2c2e79d942
f7b3ffae55ce44de2aeacf32d286ffe1ab648f91
/dp/363B.cpp
77fc67f74a4c615a05d20aa60a4a6fda4df75ad5
[]
no_license
kritika0598/codes
40ea58f830a756cd1853a148bb1774def7e663b6
94f8e9e9de4cc819b598be259835468eb617755c
refs/heads/master
2022-04-01T05:11:44.257623
2019-12-30T16:28:14
2019-12-30T16:28:14
230,945,032
0
0
null
null
null
null
UTF-8
C++
false
false
449
cpp
#include<iostream> #include<bits/stdc++.h> using namespace std; typedef long long int lli; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); lli N,K; cin>>N>>K; lli cum[N+1]; lli Arr[N+1]; cum[0]=0; for(lli i=1;i<=N;i++) { cin>>Arr[i]; cum[i]=cum[i-1]+Arr[i]; } lli mini=INT_MAX; lli st=0; for(lli i=K;i<=N;i++) { if(cum[i]-cum[i-K]<mini) { mini=cum[i]-cum[i-K]; st=i-K+1; } } cout<<st<<endl; }
[ "16ucs094@lnmiit.ac.in" ]
16ucs094@lnmiit.ac.in
fa0b3918822d3a1b215afdc533ae272c02b76954
6f49cc2d5112a6b97f82e7828f59b201ea7ec7b9
/wdbecmbd/CrdWdbeVec/PnlWdbeVecDetail_evals.cpp
754f3e733f1a1bbfd5312ed10f0f2c10e04d2b47
[ "MIT" ]
permissive
mpsitech/wdbe-WhizniumDBE
d3702800d6e5510e41805d105228d8dd8b251d7a
89ef36b4c86384429f1e707e5fa635f643e81240
refs/heads/master
2022-09-28T10:27:03.683192
2022-09-18T22:04:37
2022-09-18T22:04:37
282,705,449
5
0
null
null
null
null
UTF-8
C++
false
false
7,950
cpp
/** * \file PnlWdbeVecDetail_evals.cpp * job handler for job PnlWdbeVecDetail (implementation of availability/activation evaluation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author Alexander Wirthmueller (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE using namespace std; using namespace Sbecore; using namespace Xmlio; bool PnlWdbeVecDetail::evalButSaveAvail( DbsWdbe* dbswdbe ) { // pre.ixCrdaccVecIncl(edit) vector<bool> args; bool a; a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCVEC, jref) & VecWdbeWAccess::EDIT); args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalButSaveActive( DbsWdbe* dbswdbe ) { // dirty() vector<bool> args; bool a; a = false; a = dirty; args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalTxtSrfActive( DbsWdbe* dbswdbe ) { // pre.ixCrdaccVecIncl(edit) vector<bool> args; bool a; a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCVEC, jref) & VecWdbeWAccess::EDIT); args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalPupTypActive( DbsWdbe* dbswdbe ) { // pre.ixCrdaccVecIncl(edit) vector<bool> args; bool a; a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCVEC, jref) & VecWdbeWAccess::EDIT); args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalTxtHkuActive( DbsWdbe* dbswdbe ) { // pre.ixCrdaccVecIncl(edit) vector<bool> args; bool a; a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCVEC, jref) & VecWdbeWAccess::EDIT); args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalButHkuViewAvail( DbsWdbe* dbswdbe ) { // vec.hkuEq(0)|((pre.ixCrdaccMod()&vec.hktEq(ctr)&vec.hku.mdl.inSbs(mod)&pre.refUnt())|(pre.ixCrdaccMod()&vec.hktEq(ctr)&vec.hku.mdl.inSbs(mod)&pre.refCvr())|(pre.ixCrdaccMtp()&vec.hktEq(ctr)&vec.hku.mdl.inSbs(mtp))|(pre.ixCrdaccSys()&vec.hktEq(sys)&pre.refVer())|(pre.ixCrdaccUnt()&vec.hktEq(unt)&pre.refVer())|(pre.ixCrdaccSil()&vec.hktEq(unt)&vec.hku.inSbs(sil))|(pre.ixCrdaccSig()&vec.hktEq(sig)&pre.refUnt())) vector<bool> args; bool a, b; a = false; a = (recVec.hkUref == 0); args.push_back(a); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCMOD, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::CTR); args.push_back(a); a = false; a = ((dbswdbe->getIxWSubsetByRefWdbeMModule([&](){ubigint ref; dbswdbe->loadRefBySQL("SELECT ref FROM TblWdbeMModule WHERE refWdbeMController = " + to_string(recVec.hkUref), ref); return ref;}()) & VecWdbeWMModuleSubset::SBSWDBEBMMODULEMOD) != 0); args.push_back(a); a = false; a = (xchg->getRefPreset(VecWdbeVPreset::PREWDBEREFUNT, jref) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCMOD, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::CTR); args.push_back(a); a = false; a = ((dbswdbe->getIxWSubsetByRefWdbeMModule([&](){ubigint ref; dbswdbe->loadRefBySQL("SELECT ref FROM TblWdbeMModule WHERE refWdbeMController = " + to_string(recVec.hkUref), ref); return ref;}()) & VecWdbeWMModuleSubset::SBSWDBEBMMODULEMOD) != 0); args.push_back(a); a = false; a = (xchg->getRefPreset(VecWdbeVPreset::PREWDBEREFCVR, jref) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCMTP, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::CTR); args.push_back(a); a = false; a = ((dbswdbe->getIxWSubsetByRefWdbeMModule([&](){ubigint ref; dbswdbe->loadRefBySQL("SELECT ref FROM TblWdbeMModule WHERE refWdbeMController = " + to_string(recVec.hkUref), ref); return ref;}()) & VecWdbeWMModuleSubset::SBSWDBEBMMODULEMTP) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCSYS, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::SYS); args.push_back(a); a = false; a = (xchg->getRefPreset(VecWdbeVPreset::PREWDBEREFVER, jref) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCUNT, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::UNT); args.push_back(a); a = false; a = (xchg->getRefPreset(VecWdbeVPreset::PREWDBEREFVER, jref) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCSIL, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::UNT); args.push_back(a); a = false; a = ((dbswdbe->getIxWSubsetByRefWdbeMUnit(recVec.hkUref) & VecWdbeWMUnitSubset::SBSWDBEBMUNITSIL) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCSIG, jref) != 0); args.push_back(a); a = false; a = (recVec.hkIxVTbl == VecWdbeVMVectorHkTbl::SIG); args.push_back(a); a = false; a = (xchg->getRefPreset(VecWdbeVPreset::PREWDBEREFUNT, jref) != 0); args.push_back(a); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a && b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); b = args.back(); args.pop_back(); a = args.back(); args.pop_back(); args.push_back(a || b); return(args.back()); }; bool PnlWdbeVecDetail::evalButHkuViewActive( DbsWdbe* dbswdbe ) { // !vec.hkuEq(0) vector<bool> args; bool a; a = false; a = (recVec.hkUref == 0); args.push_back(a); a = args.back(); args.pop_back(); args.push_back(!a); return(args.back()); }; bool PnlWdbeVecDetail::evalLstOptActive( DbsWdbe* dbswdbe ) { // pre.ixCrdaccVecIncl(edit) vector<bool> args; bool a; a = false; a = (xchg->getIxPreset(VecWdbeVPreset::PREWDBEIXCRDACCVEC, jref) & VecWdbeWAccess::EDIT); args.push_back(a); return(args.back()); }; bool PnlWdbeVecDetail::evalButOptEditAvail( DbsWdbe* dbswdbe ) { // pre.adm() vector<bool> args; bool a; a = false; args.push_back(a); return(args.back()); };
[ "aw@mpsitech.com" ]
aw@mpsitech.com
2c844115c9ae3f2a4a0ddbb23e5de5433784732b
fe862a16de095db5ddbfc3e35e28d3952124aed3
/模拟实现页式虚拟存储管理页面置换算法.cpp
9c3734c5b244f91f7ab73494848755e57282f2c9
[]
no_license
yxlyl808/C
da115652d97fb531c73d4a5f96e67f19b694cc98
be7e4ff0ee3a6a491f04ae056ad04b6897739024
refs/heads/main
2023-01-21T21:34:57.849207
2020-11-29T12:39:03
2020-11-29T12:39:03
316,948,045
4
4
null
null
null
null
GB18030
C++
false
false
11,665
cpp
//第一题,模拟实现页式虚拟存储管理页面置换算法,OPT算法,FIFO算法,LRU算法,CLOCK算法 #include <stdio.h> #include <queue> //队列 using namespace std; int wulikuai; //物理块数 int yemianshu; //页面数 int queyeshu; //缺页数 int zouxiang[100]; //页面走向数组 int *neicun; //内存中的物理块 int *xia; //当前内存与下一次的距离 int *shang; //当前内存与上一次的距离 int *fangwen; //用于clock中做访问位 void mulu(); //声明目录函数 void shuru() //输入 { printf("-----模拟实现页式虚拟存储管理页面置换算法-----\n"); printf("页面数:"); scanf("%d",&yemianshu); printf("页面走向:"); for (int i=0;i<yemianshu;i++) { scanf("%d",&zouxiang[i]); } printf("物理块数:"); scanf("%d",&wulikuai); neicun=(int*)malloc(sizeof(int)*wulikuai); //指针变量分配空间 xia=(int*)malloc(sizeof(int)*wulikuai); shang=(int*)malloc(sizeof(int)*wulikuai); fangwen=(int*)malloc(sizeof(int)*wulikuai); mulu(); } void xianshi() //显示现有内存中的物理块 { for (int i=0;i<wulikuai;i++) //遍历现有内存 { if (neicun[i]>=0) //逐个输出 printf("%d ",neicun[i]); } } int zhao(int *a,int x) //找一下传入的页面是否在内存中 { for (int i=0;i<wulikuai;i++) //遍历现有内存 { if (x==a[i]) //找到 { return i; } } return -1; //内存中没有,返回-1 } int xiajuli(int i,int j,int* a) //统计内存中的某个页面,离下一次出现的距离 { //i表示从页面走向里的第几个页面开始搜索,j是内存中的某个页面,a是页面走向 int juli=0; while (i<yemianshu&&j!=a[i]) //在页面走向中逐个搜索并且不匹配时 { juli++; //距离数增加 i++; //下一个页面 } if (i>=yemianshu) //页面走向搜索完,说明没找到匹配的 return juli+1; else //没搜索完,找到匹配的 return juli; } int shangjuli(int i,int j,int*a) //统计内存中的某个页面,离上一次出现的距离 { //i表示从页面走向里的第几个页面开始搜索,j是内存中的某个页面,a是页面走向 int juli=0; while (i>=0&&j!=a[i]) //在页面走向中逐个向前搜索并且不匹配时 { juli++; //距离数增加 i--; //下一个页面 } if (i<0) //页面走向搜索完,说明没找到匹配的 return juli+1; else //没搜索完,找到匹配的 return juli; } int max(int *a) //用来找一个数组中最大的 { int k=0; int max=a[0]; for (int i=1;i<wulikuai;i++) //遍历现有内存 { if (a[i]>max) { max=a[i]; k=i; } } return k; //返回最大值的下标 } void OPT() //最佳置换 { int i=0,j=0; int taotai=-1; //要淘汰的页面 queyeshu=0; //缺页个数 while (i<yemianshu) //对页面走向逐个访问 { printf("访问%d ",zouxiang[i]); if (zhao(neicun,zouxiang[i])==-1) //页面不在内存中 { if (j<wulikuai) //内存不满 { neicun[j]=zouxiang[i]; //页面直接进入内存 j++; } else //内存满,找页面换出 { for (int k=0;k<wulikuai;k++) //遍历现有内存 { xia[k]=xiajuli(i+1,neicun[k],zouxiang); //统计当前内存与下一次的距离 } int m=max(xia); //找内存中距离最远的页面 taotai=neicun[m]; //记录要淘汰的页面 neicun[m]=zouxiang[i]; //把距离最远的页面换出去 } xianshi(); if (taotai==-1) //内存不满的时候进去的,没有淘汰页面 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } printf(" 未命中 "); printf("\n"); } else { printf(" 未命中 "); printf("淘汰%d\n",taotai); } queyeshu++; //统计缺页数 } else //页面在内存中,就直接显示 { xianshi(); if (taotai==-1) //如果此时内存不满 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } } printf(" 命中\n"); } i++; //一个页面访问完成,进行下一个页面 } printf("缺页次数:%d\n",queyeshu); printf("缺页率:%.2f%%\n",(1.0*queyeshu/yemianshu)*100); memset(neicun,-1,sizeof(int)*wulikuai); //memset是在一段内存块中填充给定的值,对指针初始化 mulu(); } void FIFO() //先进先出 { int i=0,j=0; int taotai=-1; //要淘汰的页面 queyeshu=0; //缺页个数 queue<int>duilie; //队列初始化 while (i<yemianshu) //对页面走向逐个访问 { printf("访问%d ",zouxiang[i]); if (zhao(neicun,zouxiang[i])==-1) //页面不在内存中 { if (j<wulikuai) //内存不满 { neicun[j]=zouxiang[i]; //页面直接进入内存 j++; duilie.push(zouxiang[i]); //页面入队 } else //内存满,找页面换出 { for (int k=0;k<wulikuai;k++) //遍历现有内存 { if (neicun[k]==duilie.front()) //找到队列第一个被放入的页面,在内存中的位置,淘汰 { taotai=neicun[k]; //记录要淘汰的页面 neicun[k]=zouxiang[i]; //把第一个放入的页面换出去 duilie.pop(); //从队列中移除 duilie.push(zouxiang[i]); //页面入队 break; } } } xianshi(); if (taotai==-1) //内存不满的时候进去的,没有淘汰页面 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } printf(" 未命中 "); printf("\n"); } else { printf(" 未命中 "); printf("淘汰%d\n",taotai); } queyeshu++; //统计缺页数 } else //页面在内存中,就直接显示 { xianshi(); if (taotai==-1) //如果此时内存不满 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } } printf(" 命中\n"); } i++; //一个页面访问完成,进行下一个页面 } printf("缺页次数:%d\n",queyeshu); printf("缺页率:%.2f%%\n",(1.0*queyeshu/yemianshu)*100); memset(neicun,-1,sizeof(int) * wulikuai); //memset是在一段内存块中填充给定的值,对指针初始化 mulu(); } void LRU() //最近最久未使用 { int i=0,j=0; int taotai=-1; //要淘汰的页面 queyeshu=0; //缺页个数 while (i<yemianshu) //对页面走向逐个访问 { printf("访问%d ",zouxiang[i]); if (zhao(neicun,zouxiang[i])==-1) //页面不在内存中 { if (j<wulikuai) //内存不满 { neicun[j]=zouxiang[i]; //页面直接进入内存 j++; } else //内存满,找页面换出 { for (int k=0;k<wulikuai;k++) //遍历现有内存 { shang[k]=shangjuli(i-1,neicun[k],zouxiang); //统计当前内存与上一次的距离 } int m=max(shang); //找内存中距离最远的页面(最久未访问) taotai=neicun[m]; //记录要淘汰的页面 neicun[m]=zouxiang[i]; //把距离最远的页面换出去 } xianshi(); if (taotai==-1) //内存不满的时候进去的,没有淘汰页面 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } printf(" 未命中 "); printf("\n"); } else { printf(" 未命中 "); printf("淘汰%d\n",taotai); } queyeshu++; //统计缺页数 } else //页面在内存中,就直接显示 { xianshi(); if (taotai==-1) //如果此时内存不满 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } } printf(" 命中\n"); } i++; //一个页面访问完成,进行下一个页面 } printf("缺页次数:%d\n",queyeshu); printf("缺页率:%.2f%%\n",(1.0*queyeshu/yemianshu)*100); memset(neicun,-1,sizeof(int)*wulikuai); //memset是在一段内存块中填充给定的值,对指针初始化 mulu(); } void CLOCK() //时钟置换 { int i=0,j=0; int taotai=-1; //要淘汰的页面 int f=0; //访问位的下标 queyeshu=0; //缺页个数 while (i<yemianshu) //对页面走向逐个访问 { printf("访问%d ",zouxiang[i]); if (zhao(neicun,zouxiang[i])==-1) //页面不在内存中 { if (j<wulikuai) //内存不满 { neicun[j]=zouxiang[i]; //页面直接进入内存 fangwen[j]=1; //访问位改为1 f=j; j++; } else //内存满,找页面换出 { while(true) //遍历现有内存的访问位 { if (fangwen[f]==0) //访问位是0,就淘汰 { taotai=neicun[f]; break; } if (fangwen[f]==1) //扫描时发现访问位是1,就改成0 { fangwen[f]=0; } if (f==wulikuai) //如果指到访问位末尾,就从头开始 { f=0; } else { f++; } } neicun[f]=zouxiang[i]; //进入内存 fangwen[f]=1; //进入内存的页面,访问位改为1 } xianshi(); if (taotai==-1) //内存不满的时候进去的,没有淘汰页面 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } printf(" 未命中 "); printf("\n"); } else { printf(" 未命中 "); printf("淘汰%d\n",taotai); } queyeshu++; //统计缺页数 } else //页面在内存中,访问位改成1,显示内存 { f=zhao(neicun,zouxiang[i]); //找到这个页面的下标 fangwen[f]=1; //访问位改成1 xianshi(); if (taotai==-1) //如果此时内存不满 { for (int k=j;k<wulikuai;k++) { printf(" "); //输出空格,为了使页面美观 } } printf(" 命中\n"); } i++; //一个页面访问完成,进行下一个页面 f++; //指向下一个访问位 if (f==wulikuai) //如果指到访问位末尾,就从头开始 { f=0; } } printf("缺页次数:%d\n",queyeshu); printf("缺页率:%.2f%%\n",(1.0*queyeshu/yemianshu)*100); memset(neicun,-1,sizeof(int)*wulikuai); //memset是在一段内存块中填充给定的值,对指针初始化 mulu(); } void mulu() { int xuan; //菜单选择的功能号 printf("\n-----功能菜单-----\n"); printf("1*输入\n"); printf("2*OPT页面置换算法\n"); printf("3*FIFO页面置换算法\n"); printf("4*LRU页面置换算法\n"); printf("5*CLOCK页面置换算法\n"); printf("6*退出\n"); printf("------------------\n"); printf("选择:"); scanf("%d",&xuan); switch(xuan) { case 1:shuru(); break; case 2:printf("\nOPI算法:\n"); OPT(); break; case 3:printf("\nFIFO算法:\n"); FIFO(); break; case 4:printf("\nLRU算法:\n"); LRU(); break; case 5:printf("\nCLOCK算法:\n"); CLOCK(); break; default:exit(1); //程序结束 } } void main() { shuru(); //输入 }
[ "noreply@github.com" ]
yxlyl808.noreply@github.com
7b8a0fc578a47a705d189dbe131809c37afda573
07306d96ba61d744cb54293d75ed2e9a09228916
/External/NaturalMotion/morpheme/SDK/core/include/morpheme/AnimSource/mrAnimSourceQSA.h
f6be3470076bfb60f181798efc8fe6dc8a34f451
[]
no_license
D34Dspy/warz-client
e57783a7c8adab1654f347f389c1dace35b81158
5262ea65e0baaf3f37ffaede5f41c9b7eafee7c1
refs/heads/master
2023-03-17T00:56:46.602407
2015-12-20T16:43:00
2015-12-20T16:43:00
null
0
0
null
null
null
null
UTF-8
C++
false
false
13,204
h
// Copyright (c) 2010 NaturalMotion. All Rights Reserved. // Not to be copied, adapted, modified, used, distributed, sold, // licensed or commercially exploited in any manner without the // written consent of NaturalMotion. // // All non public elements of this software are the confidential // information of NaturalMotion and may not be disclosed to any // person nor used for any purpose not expressly approved by // NaturalMotion in writing. //---------------------------------------------------------------------------------------------------------------------- #ifdef _MSC_VER #pragma once #endif #ifndef MR_ANIMATION_SOURCE_QSA_H #define MR_ANIMATION_SOURCE_QSA_H //---------------------------------------------------------------------------------------------------------------------- #include "NMPlatform/NMVector3.h" #include "NMPlatform/NMBuffer.h" #include "morpheme/mrTask.h" #include "morpheme/AnimSource/mrAnimSourceUtils.h" #include "morpheme/AnimSource/mrAnimSectionQSA.h" #include "morpheme/AnimSource/mrTrajectorySourceQSA.h" //---------------------------------------------------------------------------------------------------------------------- namespace MR { //---------------------------------------------------------------------------------------------------------------------- /// \class MR::AnimSourceQSA /// \brief Implementation of AnimSourceBase virtual base class. /// \ingroup SourceAnimationCompressedModule /// \see MR::AnimSourceBase /// /// Quaternion spline curve based compression scheme. /// The last animation frame must be the same as the first in cyclic animations. /// Note this is a lossy compression scheme. //---------------------------------------------------------------------------------------------------------------------- class AnimSourceQSA : public AnimSourceBase { public: //----------------------- /// \brief Calculates the transforms for the requested rig bones. /// /// Samples the source animation at the requested time through its playback duration. /// Inserts the results into the appropriate bone indexes in the output buffer. static void computeAtTime( const AnimSourceBase* sourceAnimation, ///< IN: Animation to sample. float time, ///< IN: Time at which to sample the animation (seconds). const AnimRigDef* rig, ///< IN: Hierarchy and bind poses const RigToAnimMap* mapFromRigToAnim, ///< IN: So that results from sampled anim channels can be ///< stored in the correct rig bone ordered transform buffer slot. uint32_t outputSubsetSize, ///< IN: \see outputSubsetArray const uint16_t* outputSubsetArray, ///< IN: Channel set values will only be calculated if ///< output indexes appear both in this array and the ///< mapping array. Ignored if size is zero. NMP::DataBuffer* outputTransformBuffer, ///< OUT: Calculated transform data is stored and returned ///< in this provided set. NMP::MemoryAllocator* allocator); //----------------------- /// \brief Calculate the transform for the requested Animation bone index. /// /// Samples the request source animation channel at the specified time through its playback duration. static void computeAtTimeSingleTransform( const AnimSourceBase* sourceAnimation, ///< IN: Animation to sample. float time, ///< IN: Time at which to sample the animation (seconds). uint32_t rigChannelIndex, ///< IN: Index of the rig bone to evaluate const AnimRigDef* rig, ///< IN: Hierarchy and bind poses const RigToAnimMap* mapFromRigToAnim, ///< IN: So that results from sampled anim channels can be ///< stored in the correct rig bone ordered transform buffer slot. NMP::Vector3* pos, ///< OUT: The resulting position is filled in here. NMP::Quat* quat, ///< OUT: The resulting orientation is filled in here. NMP::MemoryAllocator* allocator); //----------------------- /// \brief Returns the duration of this animation in seconds. static NM_INLINE float getDuration( const AnimSourceBase* sourceAnimation ///< Animation to query. ); /// \brief Returns the number of channel sets contained within this animation. /// /// A channel set usually contains the key frame animation data for a bone on a rig. static NM_INLINE uint32_t getNumChannelSets( const AnimSourceBase* sourceAnimation ///< Animation to query. ); /// \brief Returns the trajectory channel data related to this animation. If this function pointer is NULL then /// AnimSourceBase::animGetTrajectoryChannelData() returns a NULL trajectory control. static NM_INLINE const TrajectorySourceBase* getTrajectoryChannelData( const AnimSourceBase* sourceAnimation); /// \brief Return the string table which contains the names of the animation channels which this animation contains /// /// Note that this function may return a NULL pointer if no string table exists. static NM_INLINE const NMP::OrderedStringTable* getChannelNameTable( const AnimSourceBase* sourceAnimation); static uint32_t knotInterval( uint16_t numKnots, const uint16_t* knots, uint16_t animFrameIndex); public: AnimSourceQSA(); ~AnimSourceQSA() {} void locate(); void dislocate(); void relocate(); void initOutputBuffer( const AnimRigDef* rig, InternalDataQSA* internalData, NMP::DataBuffer* outputTransformBuffer) const; void convertToLocalSpace( const AnimRigDef* rig, const AnimToRigTableMap* animToRigTableMap, InternalDataQSA* internalData, NMP::DataBuffer* outputTransformBuffer) const; //----------------------- /// Accessors float getDuration() const { return m_duration; } float getSampleFrequency() const { return m_sampleFrequency; } uint32_t getNumSections() const { return m_numSections; } const DataRef* getSections() const { return m_sections; } const AnimSectionInfoQSA* getSectionsInfo() const { return m_sectionsInfo; } /// \brief Which section of key frame data does this frame lie within. uint32_t findSectionIndexFromFrameIndex(uint32_t frameIndex) const; const CompToAnimChannelMap* getUnchangingPosCompToAnimMap() const { return m_unchangingPosCompToAnimMap; } const CompToAnimChannelMap* getUnchangingQuatCompToAnimMap() const { return m_unchangingQuatCompToAnimMap; } const CompToAnimChannelMap* getSampledPosCompToAnimMap() const { return m_sampledPosCompToAnimMap; } const CompToAnimChannelMap* getSampledQuatCompToAnimMap() const { return m_sampledQuatCompToAnimMap; } const CompToAnimChannelMap* getSplinePosCompToAnimMap() const { return m_splinePosCompToAnimMap; } const CompToAnimChannelMap* getSplineQuatCompToAnimMap() const { return m_splineQuatCompToAnimMap; } protected: //----------------------- // Header information static AnimFunctionTable m_functionTable; ///< Function table needed by each source animation type that inherits ///< from AnimSourceBase. Provides basic runtime polymorphisms, removing the ///< requirement for virtual functions. float m_duration; ///< Playback length of this animation in seconds. float m_sampleFrequency; ///< Number of key frame samples per second. ///< The sample frequency is uniform across all the channels in an ///< animation, but it can vary between animations. uint32_t m_numChannelSets; ///< The number of channel sets contained within this animation. ///< A channel set usually contains the key frame animation data for a ///< bone on a rig. uint32_t m_numSections; ///< Keyframe data is divided into sections. Each section records all bone bool m_useDefaultPose; ///< Use default pose with unchanging channel data bool m_useWorldSpace; ///< The space the animated channels are compressed in. bool m_generateDeltas; ///< Flag indicating if the channel data has been converted ///< to delta transforms for additive blending. //----------------------- // Compression to animation channel maps uint32_t m_maxNumCompChannels; ///< The maximum number of compression channels that are used CompToAnimChannelMap* m_unchangingPosCompToAnimMap; ///< The unchanging pos comp to anim channel map CompToAnimChannelMap* m_unchangingQuatCompToAnimMap; ///< The unchanging quat comp to anim channel map CompToAnimChannelMap* m_sampledPosCompToAnimMap; ///< The sampled pos comp to anim channel map CompToAnimChannelMap* m_sampledQuatCompToAnimMap; ///< The sampled quat comp to anim channel map CompToAnimChannelMap* m_splinePosCompToAnimMap; ///< The spline pos comp to anim channel map CompToAnimChannelMap* m_splineQuatCompToAnimMap; ///< The spline quat comp to anim channel map //----------------------- // Sections information AnimSectionInfoQSA* m_sectionsInfo; ///< Information about each section (i.e. start frame and section size) //----------------------- // Channel sets quantisation information ChannelSetInfoQSA* m_channelSetsInfo; ///< Quantisation and channel map information for each section //----------------------- // Sections DataRef* m_sections; ///< transforms over a specified time chunk of the whole animation. ///< Chunks are designed to be of optimum size for DMAing to SPUs or ///< to reduce cache misses on other platforms. //----------------------- // Trajectory TrajectorySourceQSA* m_trajectoryData; ///< Holds a set of animation data for handling a trajectory bone. ///< Can be NULL. //----------------------- // Channel names table NMP::OrderedStringTable* m_channelNames; ///< Optional string table holding the names of each channel set in this anim. }; //---------------------------------------------------------------------------------------------------------------------- // AnimSourceQSA inline functions. //---------------------------------------------------------------------------------------------------------------------- NM_INLINE float AnimSourceQSA::getDuration(const AnimSourceBase* sourceAnimation) { const AnimSourceQSA* compressedSource; NMP_ASSERT(sourceAnimation); compressedSource = static_cast<const AnimSourceQSA*> (sourceAnimation); return compressedSource->m_duration; } //---------------------------------------------------------------------------------------------------------------------- NM_INLINE uint32_t AnimSourceQSA::getNumChannelSets(const AnimSourceBase* sourceAnimation) { const AnimSourceQSA* compressedSource; NMP_ASSERT(sourceAnimation); compressedSource = static_cast<const AnimSourceQSA*> (sourceAnimation); return compressedSource->m_numChannelSets; } //---------------------------------------------------------------------------------------------------------------------- NM_INLINE const TrajectorySourceBase* AnimSourceQSA::getTrajectoryChannelData(const AnimSourceBase* sourceAnimation) { const AnimSourceQSA* compressedSource; NMP_ASSERT(sourceAnimation); compressedSource = static_cast<const AnimSourceQSA*> (sourceAnimation); return compressedSource->m_trajectoryData; } //---------------------------------------------------------------------------------------------------------------------- NM_INLINE const NMP::OrderedStringTable* AnimSourceQSA::getChannelNameTable(const AnimSourceBase* sourceAnimation) { const AnimSourceQSA* compressedSource; NMP_ASSERT(sourceAnimation); compressedSource = static_cast<const AnimSourceQSA*> (sourceAnimation); return compressedSource->m_channelNames; } } // namespace MR //---------------------------------------------------------------------------------------------------------------------- #endif // MR_ANIMATION_SOURCE_QSA_H //----------------------------------------------------------------------------------------------------------------------
[ "hasan@openkod.com" ]
hasan@openkod.com
619bf9ea2fbb5f74d5a48270b9ab1b5c5bdd8b80
070bd9f2499f5c6cd265a56b01f2cfb964fd8339
/src/compiler/objective_c_generator.h
93c730b34e4473fa71a20e0a5817b938ee1cf9fc
[ "BSD-3-Clause" ]
permissive
jayantkolhe/grpc
5e196482a881fadc0b1acd07f14dfa8979bf4a99
7ab50db42aedf69b34b5f404247eeeebdb99b548
refs/heads/master
2021-01-09T06:12:56.716857
2015-05-19T18:10:23
2015-05-19T18:10:23
31,379,380
0
0
null
2015-05-19T18:10:23
2015-02-26T17:30:45
C
UTF-8
C++
false
false
2,065
h
/* * * Copyright 2015, Google Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above * copyright notice, this list of conditions and the following disclaimer * in the documentation and/or other materials provided with the * distribution. * * Neither the name of Google Inc. nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * */ #ifndef GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H #define GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H #include "src/compiler/config.h" namespace grpc_objective_c_generator { grpc::string GetHeader(const grpc::protobuf::ServiceDescriptor *service, const grpc::string message_header); grpc::string GetSource(const grpc::protobuf::ServiceDescriptor *service); } // namespace grpc_objective_c_generator #endif // GRPC_INTERNAL_COMPILER_OBJECTIVE_C_GENERATOR_H
[ "mlumish@google.com" ]
mlumish@google.com
e2a96d4c929fc8a70a09e5641b0706d407d6372b
4b31372a907f446a36e2461d3160e809603cf7ef
/C++/2400.cpp
4dd9e65b6feb3c28d4d659f3690867272cd29d05
[]
no_license
lcar99/URI
60c65438f557fcc2b846444d8daf79ddd782d3eb
bded0ac6564036976a9acab451981752a4dac36d
refs/heads/main
2023-02-24T03:27:23.963643
2021-02-03T07:06:01
2021-02-03T07:06:01
335,168,807
0
0
null
null
null
null
UTF-8
C++
false
false
1,338
cpp
#include <bits/stdc++.h> using namespace std; #define MAX_NIVEIS (18) int arvore[1<<MAX_NIVEIS]; void atualiza(int pos, int valor, int noh, int inicio, int fim) { if (inicio == fim and inicio == valor){ arvore[noh] = 1; return; } if (valor > fim or valor < inicio){ return; } int meio = (inicio + fim) / 2; int esq = 2*noh + 1; int dir = 2*noh + 2; atualiza(pos, valor, esq, inicio, meio); atualiza(pos, valor, dir, meio + 1, fim); arvore[noh] = arvore[esq] + arvore[dir]; } int consulta(int a, int b, int noh, int inicio, int fim) { if (a <= inicio and b >= fim) return arvore[noh]; int meio = (inicio + fim)/2; int x = 0, y = 0; if (not(b < inicio or a > meio)) { //[a, b] inter [inicio, meio] x = consulta(a, b, 2*noh + 1, inicio, meio); } if (not(b < meio+1 or a > fim)) { //[a, b] inter [meio+1, fim] y = consulta(a, b, 2*noh + 2, meio+1, fim); } return x + y; } int main() { int i, n, v; long long cont = 0; scanf("%d", &n); memset(arvore, 0, sizeof arvore); for (i = 0; i < n; ++i) { scanf ("%d", &v); cont += consulta (v, n, 0, 0, (1<<(MAX_NIVEIS-1)) - 1); atualiza (i, v, 0, 0, (1<<(MAX_NIVEIS-1)) - 1); } printf("%lld\n", cont); return 0; }
[ "noreply@github.com" ]
lcar99.noreply@github.com
0a19f0f00a63b74c402a9be2b06bfb61b0b33a2c
53f3f38eac3ed44f23f8f58d34aa8bd89555eaef
/src/msvc1/include/AutoGemmKernelSources/cgemm_Col_CC_B1_MX096_NL096_KX01_src.cpp
596a4c9a21fe99c40fff09a25e3aa07326addd44
[ "Apache-2.0" ]
permissive
gajgeospatial/clBLAS-1.10
16039ddfad67b6c26a00767f33911e7c6fe374dc
2f5f1347e814e23b93262cd6fa92ec1d228963ac
refs/heads/master
2022-06-27T09:08:34.399452
2020-05-12T16:50:46
2020-05-12T16:50:46
263,172,549
0
0
null
null
null
null
UTF-8
C++
false
false
14,204
cpp
/******************************************************************************* * This file was auto-generated using the AutoGemm.py python script. * DO NOT modify this file! Instead, make changes to scripts in * clBLAS/src/library/blas/AutoGemm/ then re-generate files * (otherwise local changes will be lost after re-generation). ******************************************************************************/ #ifndef KERNEL_CGEMM_COL_CC_B1_MX096_NL096_KX01_SRC_H #define KERNEL_CGEMM_COL_CC_B1_MX096_NL096_KX01_SRC_H const unsigned int cgemm_Col_CC_B1_MX096_NL096_KX01_workGroupNumRows = 16; const unsigned int cgemm_Col_CC_B1_MX096_NL096_KX01_workGroupNumCols = 16; const unsigned int cgemm_Col_CC_B1_MX096_NL096_KX01_microTileNumRows = 6; const unsigned int cgemm_Col_CC_B1_MX096_NL096_KX01_microTileNumCols = 6; const unsigned int cgemm_Col_CC_B1_MX096_NL096_KX01_unroll = 1; const char * const cgemm_Col_CC_B1_MX096_NL096_KX01_src ="\n" "/* cgemm_Col_CC_B1_MX096_NL096_KX01 */\n" "\n" "/* kernel parameters */\n" "#define WG_NUM_ROWS 16\n" "#define WG_NUM_COLS 16\n" "#define MICRO_TILE_NUM_ROWS 6\n" "#define MICRO_TILE_NUM_COLS 6\n" "#define MACRO_TILE_NUM_ROWS 96\n" "#define MACRO_TILE_NUM_COLS 96\n" "#define NUM_UNROLL_ITER 1\n" "\n" "#define LOCAL_ROW_PAD 0\n" "#define LOCAL_COL_PAD 0\n" "\n" "/* global memory indices */\n" "#define GET_GLOBAL_INDEX_A(ROW,COL) ((ROW)*lda+(COL))\n" "#define GET_GLOBAL_INDEX_B(ROW,COL) ((ROW)*ldb+(COL))\n" "#define GET_GLOBAL_INDEX_C(ROW,COL) ((COL)*ldc+(ROW))\n" "\n" "/* local memory indices */\n" "#define GET_LOCAL_INDEX_A(ROW,COL) ((ROW) + (COL)*((MACRO_TILE_NUM_ROWS)+(LOCAL_COL_PAD)) )\n" "#define GET_LOCAL_INDEX_B(ROW,COL) ((COL) + (ROW)*((MACRO_TILE_NUM_COLS)+(LOCAL_ROW_PAD)) )\n" "\n" "/* data types */\n" "#define DATA_TYPE_STR float2\n" "#define TYPE_MAD(MULA,MULB,DST) \\\n" " DST.s0 = mad( MULA.s0, MULB.s0, DST.s0 ); \\\n" " DST.s0 = mad( MULA.s1, -MULB.s1, DST.s0 ); \\\n" " DST.s1 = mad( MULA.s0, -MULB.s1, DST.s1 ); \\\n" " DST.s1 = mad( -MULA.s1, MULB.s0, DST.s1 );\n" "#define TYPE_MAD_WRITE( DST, ALPHA, REG, BETA ) \\\n" " /* (1) */ \\\n" " type_mad_tmp = REG.s0; \\\n" " REG.s0 *= ALPHA.s0; \\\n" " REG.s0 = mad( -ALPHA.s1, REG.s1, REG.s0 ); \\\n" " REG.s1 *= ALPHA.s0; \\\n" " REG.s1 = mad( ALPHA.s1, type_mad_tmp, REG.s1 ); \\\n" " /* (2) */ \\\n" " REG.s0 = mad( BETA.s0, DST.s0, REG.s0 ); \\\n" " REG.s0 = mad( -BETA.s1, DST.s1, REG.s0 ); \\\n" " REG.s1 = mad( BETA.s1, DST.s0, REG.s1 ); \\\n" " REG.s1 = mad( BETA.s0, DST.s1, REG.s1 ); \\\n" " /* (3) */ \\\n" " DST = REG;\n" "\n" "/* 6x6 micro-tile */\n" "#define MICRO_TILE \\\n" " rA[0] = localA[offA + 0*WG_NUM_ROWS]; \\\n" " rA[1] = localA[offA + 1*WG_NUM_ROWS]; \\\n" " rA[2] = localA[offA + 2*WG_NUM_ROWS]; \\\n" " rA[3] = localA[offA + 3*WG_NUM_ROWS]; \\\n" " rA[4] = localA[offA + 4*WG_NUM_ROWS]; \\\n" " rA[5] = localA[offA + 5*WG_NUM_ROWS]; \\\n" " rB[0] = localB[offB + 0*WG_NUM_COLS]; \\\n" " rB[1] = localB[offB + 1*WG_NUM_COLS]; \\\n" " rB[2] = localB[offB + 2*WG_NUM_COLS]; \\\n" " rB[3] = localB[offB + 3*WG_NUM_COLS]; \\\n" " rB[4] = localB[offB + 4*WG_NUM_COLS]; \\\n" " rB[5] = localB[offB + 5*WG_NUM_COLS]; \\\n" " offA += (MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD); \\\n" " offB += (MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD); \\\n" " TYPE_MAD(rA[0],rB[0],rC[0][0]); \\\n" " TYPE_MAD(rA[0],rB[1],rC[0][1]); \\\n" " TYPE_MAD(rA[0],rB[2],rC[0][2]); \\\n" " TYPE_MAD(rA[0],rB[3],rC[0][3]); \\\n" " TYPE_MAD(rA[0],rB[4],rC[0][4]); \\\n" " TYPE_MAD(rA[0],rB[5],rC[0][5]); \\\n" " TYPE_MAD(rA[1],rB[0],rC[1][0]); \\\n" " TYPE_MAD(rA[1],rB[1],rC[1][1]); \\\n" " TYPE_MAD(rA[1],rB[2],rC[1][2]); \\\n" " TYPE_MAD(rA[1],rB[3],rC[1][3]); \\\n" " TYPE_MAD(rA[1],rB[4],rC[1][4]); \\\n" " TYPE_MAD(rA[1],rB[5],rC[1][5]); \\\n" " TYPE_MAD(rA[2],rB[0],rC[2][0]); \\\n" " TYPE_MAD(rA[2],rB[1],rC[2][1]); \\\n" " TYPE_MAD(rA[2],rB[2],rC[2][2]); \\\n" " TYPE_MAD(rA[2],rB[3],rC[2][3]); \\\n" " TYPE_MAD(rA[2],rB[4],rC[2][4]); \\\n" " TYPE_MAD(rA[2],rB[5],rC[2][5]); \\\n" " TYPE_MAD(rA[3],rB[0],rC[3][0]); \\\n" " TYPE_MAD(rA[3],rB[1],rC[3][1]); \\\n" " TYPE_MAD(rA[3],rB[2],rC[3][2]); \\\n" " TYPE_MAD(rA[3],rB[3],rC[3][3]); \\\n" " TYPE_MAD(rA[3],rB[4],rC[3][4]); \\\n" " TYPE_MAD(rA[3],rB[5],rC[3][5]); \\\n" " TYPE_MAD(rA[4],rB[0],rC[4][0]); \\\n" " TYPE_MAD(rA[4],rB[1],rC[4][1]); \\\n" " TYPE_MAD(rA[4],rB[2],rC[4][2]); \\\n" " TYPE_MAD(rA[4],rB[3],rC[4][3]); \\\n" " TYPE_MAD(rA[4],rB[4],rC[4][4]); \\\n" " TYPE_MAD(rA[4],rB[5],rC[4][5]); \\\n" " TYPE_MAD(rA[5],rB[0],rC[5][0]); \\\n" " TYPE_MAD(rA[5],rB[1],rC[5][1]); \\\n" " TYPE_MAD(rA[5],rB[2],rC[5][2]); \\\n" " TYPE_MAD(rA[5],rB[3],rC[5][3]); \\\n" " TYPE_MAD(rA[5],rB[4],rC[5][4]); \\\n" " TYPE_MAD(rA[5],rB[5],rC[5][5]); \\\n" " mem_fence(CLK_LOCAL_MEM_FENCE);\n" "\n" "__attribute__((reqd_work_group_size(WG_NUM_COLS,WG_NUM_ROWS,1)))\n" "__kernel void cgemm_Col_CC_B1_MX096_NL096_KX01(\n" " __global DATA_TYPE_STR const * restrict A,\n" " __global DATA_TYPE_STR const * restrict B,\n" " __global DATA_TYPE_STR * C,\n" " DATA_TYPE_STR const alpha,\n" " DATA_TYPE_STR const beta,\n" " uint const M,\n" " uint const N,\n" " uint const K,\n" " uint const lda,\n" " uint const ldb,\n" " uint const ldc,\n" " uint const offsetA,\n" " uint const offsetB,\n" " uint const offsetC\n" ") {\n" "\n" " /* apply offsets */\n" " A += offsetA;\n" " B += offsetB;\n" " C += offsetC;\n" "\n" " /* allocate registers */\n" " DATA_TYPE_STR rC[MICRO_TILE_NUM_ROWS][MICRO_TILE_NUM_COLS] = { {0} };\n" " DATA_TYPE_STR rA[MICRO_TILE_NUM_ROWS];\n" " DATA_TYPE_STR rB[MICRO_TILE_NUM_COLS];\n" "\n" " /* allocate local memory */\n" " __local DATA_TYPE_STR localA[NUM_UNROLL_ITER*(MACRO_TILE_NUM_ROWS+LOCAL_COL_PAD)];\n" " __local DATA_TYPE_STR localB[NUM_UNROLL_ITER*(MACRO_TILE_NUM_COLS+LOCAL_ROW_PAD)];\n" "\n" " /* work item indices */\n" " uint groupRow = get_group_id(0);\n" " uint groupCol = N / 96; // last column\n" " uint localRow = get_local_id(0);\n" " uint localCol = get_local_id(1);\n" " uint localSerial = localRow + localCol*WG_NUM_ROWS;\n" "\n" " /* global indices being loaded */\n" "#define globalARow(LID) (groupRow*MACRO_TILE_NUM_ROWS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/NUM_UNROLL_ITER)\n" "#define globalACol(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%NUM_UNROLL_ITER)\n" "#define globalBRow(LID) ((localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)/MACRO_TILE_NUM_COLS)\n" "#define globalBCol(LID) (groupCol*MACRO_TILE_NUM_COLS + (localSerial+(LID)*WG_NUM_ROWS*WG_NUM_COLS)%MACRO_TILE_NUM_COLS)\n" "\n" " /* loop over k */\n" " uint block_k = K / NUM_UNROLL_ITER;\n" " do {\n" "\n" " /* local indices being written */\n" "#define localARow (localSerial / NUM_UNROLL_ITER)\n" "#define localACol (localSerial % NUM_UNROLL_ITER)\n" "#define localAStride (WG_NUM_ROWS*WG_NUM_COLS/NUM_UNROLL_ITER)\n" "#define localBRow ( localSerial / MACRO_TILE_NUM_COLS )\n" "#define localBCol ( localSerial % MACRO_TILE_NUM_COLS )\n" "#define localBStride (WG_NUM_ROWS*WG_NUM_COLS)\n" " __local DATA_TYPE_STR *lA = localA + GET_LOCAL_INDEX_A(localARow, localACol);\n" " __local DATA_TYPE_STR *lB = localB + GET_LOCAL_INDEX_B(localBRow, localBCol);\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" "\n" " /* load global -> local */\n" " if ( localSerial + 0*WG_NUM_ROWS*WG_NUM_COLS < (WG_NUM_ROWS*MICRO_TILE_NUM_ROWS*NUM_UNROLL_ITER) ) {\n" " lA[ 0*localAStride ] = A[ GET_GLOBAL_INDEX_A( globalARow(0), globalACol(0) ) ];\n" " }\n" " if ( localSerial + 0*WG_NUM_ROWS*WG_NUM_COLS < (WG_NUM_COLS*MICRO_TILE_NUM_COLS*NUM_UNROLL_ITER) ) {\n" " lB[ 0*localBStride ] = (globalBCol(0) >= N) ? (float2)(0.f, 0.f) : B[ GET_GLOBAL_INDEX_B( globalBRow(0), globalBCol(0) ) ];\n" " }\n" " barrier(CLK_LOCAL_MEM_FENCE);\n" " uint offA = localRow;\n" " uint offB = localCol;\n" "\n" " /* do mads */\n" " MICRO_TILE\n" "\n" " /* shift to next k block */\n" " A += NUM_UNROLL_ITER;\n" " B += ldb*NUM_UNROLL_ITER;\n" "\n" " } while (--block_k > 0);\n" "\n" "\n" " /* which global Cij index */\n" " uint globalCRow = groupRow * MACRO_TILE_NUM_ROWS + localRow;\n" " uint globalCCol = groupCol * MACRO_TILE_NUM_COLS + localCol;\n" "\n" " /* write global Cij */\n" " float type_mad_tmp;\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[0][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[0][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[0][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[0][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[0][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+0*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[0][5], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[1][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[1][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[1][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[1][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[1][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+1*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[1][5], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[2][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[2][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[2][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[2][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[2][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+2*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[2][5], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[3][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[3][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[3][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[3][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[3][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+3*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[3][5], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[4][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[4][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[4][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[4][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[4][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+4*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[4][5], beta )}\n" " if (globalCCol+0*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+0*WG_NUM_COLS) ], alpha, rC[5][0], beta )}\n" " if (globalCCol+1*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+1*WG_NUM_COLS) ], alpha, rC[5][1], beta )}\n" " if (globalCCol+2*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+2*WG_NUM_COLS) ], alpha, rC[5][2], beta )}\n" " if (globalCCol+3*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+3*WG_NUM_COLS) ], alpha, rC[5][3], beta )}\n" " if (globalCCol+4*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+4*WG_NUM_COLS) ], alpha, rC[5][4], beta )}\n" " if (globalCCol+5*WG_NUM_COLS < N){ TYPE_MAD_WRITE( C[ GET_GLOBAL_INDEX_C( globalCRow+5*WG_NUM_ROWS, globalCCol+5*WG_NUM_COLS) ], alpha, rC[5][5], beta )}\n" "\n" "}\n" ""; #else #endif
[ "glen.johnson@gaj-geospatial.com" ]
glen.johnson@gaj-geospatial.com
af9b51239a5f159830ed4a9aeae2a97cb3dd16aa
32306dca610256db7081a072ec7dadb1586140b7
/Source/WSF/WSFHUD.cpp
642ec951646b7130b40eaded162d85058ebde71b
[]
no_license
Sackhorn/GhostrunnerClone
1c2b9104c5e7a35a4417704ac12a4511dba0ac4e
a5094d1c377401e78ffc360eee580aaa5add2401
refs/heads/master
2023-05-13T20:12:09.472525
2021-05-25T17:30:14
2021-05-25T17:30:14
354,055,734
0
2
null
null
null
null
UTF-8
C++
false
false
3,189
cpp
// Copyright Epic Games, Inc. All Rights Reserved. #include "WSFHUD.h" #include "Engine/Canvas.h" #include "Engine/Texture2D.h" #include "TextureResource.h" #include "CanvasItem.h" #include "WSFCharacterMovementComponent.h" #include "Components/Image.h" #include "UObject/ConstructorHelpers.h" #include "UMG/Public/Blueprint/UserWidget.h" #include "Widgets/Notifications/SProgressBar.h" AWSFHUD::AWSFHUD() { // Set the crosshair texture static ConstructorHelpers::FObjectFinder<UTexture2D> CrosshairTexObj(TEXT("/Game/FirstPerson/Textures/FirstPersonCrosshair")); CrosshairTex = CrosshairTexObj.Object; } void AWSFHUD::InitializeWidget(UClass* WidgetClass, UUserWidget*& Widget) { if(WidgetClass != nullptr) { Widget = CreateWidget(PlayerOwner, WidgetClass, FName(WidgetClass->GetName())); Widget->AddToViewport(++WidgetZOrder); } } void AWSFHUD::BeginPlay() { Super::BeginPlay(); InitializeWidget(DashIndicatorWidgetClass, DashIndicatorWidget); InitializeWidget(HitMarkersWidgetClass, HitMarkersWidget); InitializeWidget(GrapplingHookWidgetClass, GrapplingHookWidget); DashProgressBar = DashIndicatorWidget->GetSlateWidgetFromName(FName(TEXT("ProgressBar_0"))); GrapplingHookIndicator = GrapplingHookWidget->GetSlateWidgetFromName(FName(TEXT("GrapplingHookIndicator"))); HitMarkersWidget->SetVisibility(ESlateVisibility::Hidden); } void AWSFHUD::DrawHUD() { Super::DrawHUD(); // find center of the Canvas const FVector2D Center(Canvas->ClipX * 0.5f, Canvas->ClipY * 0.5f); // offset by half the texture's dimensions so that the center of the texture aligns with the center of the Canvas const FVector2D CrosshairDrawPosition( (Center.X), (Center.Y + 20.0f)); // draw the crosshair FCanvasTileItem TileItem( CrosshairDrawPosition, CrosshairTex->Resource, FLinearColor::White); TileItem.BlendMode = SE_BLEND_Translucent; Canvas->DrawItem( TileItem ); } void AWSFHUD::OnDead() { HitMarkersWidget->SetVisibility(ESlateVisibility::Visible); } void AWSFHUD::UpdateDashIndicator(const FTimerHandle& SidewayDashTimer, const FTimerHandle& DashDisablerTimer) { UWSFCharacterMovementComponent* MovementComponent = static_cast<UWSFCharacterMovementComponent*>(GetOwningPlayerController()->GetCharacter()->GetMovementComponent()); auto ProgressBar = (SProgressBar*)DashProgressBar.Get(); float timeElapsed; if(MovementComponent->MovementMode == MOVE_Custom && MovementComponent->CustomMovementMode == CUSTOM_SidewaysDash) { timeElapsed = GetWorldTimerManager().GetTimerElapsed(SidewayDashTimer)/GetWorldTimerManager().GetTimerRate(SidewayDashTimer); ProgressBar->SetBarFillType(EProgressBarFillType::RightToLeft); } else { timeElapsed = GetWorldTimerManager().GetTimerElapsed(DashDisablerTimer)/GetWorldTimerManager().GetTimerRate(DashDisablerTimer); ProgressBar->SetBarFillType(EProgressBarFillType::LeftToRight); } ProgressBar->SetPercent(FMath::Abs(timeElapsed)); } void AWSFHUD::UpdateGrapplingHookIndicator(FVector2D ScreenPosition, bool Visibility) { GrapplingHookIndicator->SetVisibility(Visibility ? EVisibility::Visible : EVisibility::Hidden); GrapplingHookIndicator->SetRenderTransform(FTransform2D(ScreenPosition)); }
[ "sackhorn@gmail.com" ]
sackhorn@gmail.com
0594de05f25497df52054246c967348df0f74d56
536656cd89e4fa3a92b5dcab28657d60d1d244bd
/third_party/skia/src/core/SkGlyph.h
773dad6b72f46ddac68c323a2c8bce7ed640da16
[ "BSD-3-Clause", "LGPL-2.0-or-later", "GPL-1.0-or-later", "MIT", "Apache-2.0" ]
permissive
ECS-251-W2020/chromium
79caebf50443f297557d9510620bf8d44a68399a
ac814e85cb870a6b569e184c7a60a70ff3cb19f9
refs/heads/master
2022-08-19T17:42:46.887573
2020-03-18T06:08:44
2020-03-18T06:08:44
248,141,336
7
8
BSD-3-Clause
2022-07-06T20:32:48
2020-03-18T04:52:18
null
UTF-8
C++
false
false
13,793
h
/* * Copyright 2006 The Android Open Source Project * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef SkGlyph_DEFINED #define SkGlyph_DEFINED #include "include/core/SkPath.h" #include "include/core/SkTypes.h" #include "include/private/SkChecksum.h" #include "include/private/SkFixed.h" #include "include/private/SkTo.h" #include "include/private/SkVx.h" #include "src/core/SkMask.h" class SkArenaAlloc; class SkScalerContext; // needs to be != to any valid SkMask::Format #define MASK_FORMAT_UNKNOWN (0xFF) #define MASK_FORMAT_JUST_ADVANCE MASK_FORMAT_UNKNOWN // A combination of SkGlyphID and sub-pixel position information. struct SkPackedGlyphID { static constexpr uint32_t kImpossibleID = ~0u; enum { // Lengths kGlyphIDLen = 16u, kSubPixelPosLen = 2u, // Bit positions kSubPixelX = 0u, kGlyphID = kSubPixelPosLen, kSubPixelY = kGlyphIDLen + kSubPixelPosLen, kEndData = kGlyphIDLen + 2 * kSubPixelPosLen, // Masks kGlyphIDMask = (1u << kGlyphIDLen) - 1, kSubPixelPosMask = (1u << kSubPixelPosLen) - 1, kMaskAll = (1u << kEndData) - 1, // Location of sub pixel info in a fixed pointer number. kFixedPointBinaryPointPos = 16u, kFixedPointSubPixelPosBits = kFixedPointBinaryPointPos - kSubPixelPosLen, }; static constexpr SkScalar kSubpixelRound = 1.f / (1u << (SkPackedGlyphID::kSubPixelPosLen + 1)); static constexpr SkIPoint kXYFieldMask{kSubPixelPosMask << kSubPixelX, kSubPixelPosMask << kSubPixelY}; constexpr explicit SkPackedGlyphID(SkGlyphID glyphID) : fID{(uint32_t)glyphID << kGlyphID} { } constexpr SkPackedGlyphID(SkGlyphID glyphID, SkFixed x, SkFixed y) : fID {PackIDXY(glyphID, x, y)} { } constexpr SkPackedGlyphID(SkGlyphID glyphID, uint32_t x, uint32_t y) : fID {PackIDSubXSubY(glyphID, x, y)} { } SkPackedGlyphID(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) : fID{PackIDSkPoint(glyphID, pt, mask)} { } constexpr explicit SkPackedGlyphID(uint32_t v) : fID{v & kMaskAll} { } constexpr SkPackedGlyphID() : fID{kImpossibleID} {} bool operator==(const SkPackedGlyphID& that) const { return fID == that.fID; } bool operator!=(const SkPackedGlyphID& that) const { return !(*this == that); } bool operator<(SkPackedGlyphID that) const { return this->fID < that.fID; } SkGlyphID glyphID() const { return (fID >> kGlyphID) & kGlyphIDMask; } uint32_t value() const { return fID; } SkFixed getSubXFixed() const { return this->subToFixed(kSubPixelX); } SkFixed getSubYFixed() const { return this->subToFixed(kSubPixelY); } uint32_t hash() const { return SkChecksum::CheapMix(fID); } SkString dump() const { SkString str; str.appendf("glyphID: %d, x: %d, y:%d", glyphID(), getSubXFixed(), getSubYFixed()); return str; } private: static constexpr uint32_t PackIDSubXSubY(SkGlyphID glyphID, uint32_t x, uint32_t y) { SkASSERT(x < (1u << kSubPixelPosLen)); SkASSERT(y < (1u << kSubPixelPosLen)); return (x << kSubPixelX) | (y << kSubPixelY) | (glyphID << kGlyphID); } // Assumptions: pt is properly rounded. mask is set for the x or y fields. // // A sub-pixel field is a number on the interval [2^kSubPixel, 2^(kSubPixel + kSubPixelPosLen)). // Where kSubPixel is either kSubPixelX or kSubPixelY. Given a number x on [0, 1) we can // generate a sub-pixel field using: // sub-pixel-field = x * 2^(kSubPixel + kSubPixelPosLen) // // We can generate the integer sub-pixel field by &-ing the integer part of sub-filed with the // sub-pixel field mask. // int-sub-pixel-field = int(sub-pixel-field) & (kSubPixelPosMask << kSubPixel) // // The last trick is to extend the range from [0, 1) to [0, 2). The extend range is // necessary because the modulo 1 calculation (pt - floor(pt)) generates numbers on [-1, 1). // This does not round (floor) properly when converting to integer. Adding one to the range // causes truncation and floor to be the same. Coincidentally, masking to produce the field also // removes the +1. static uint32_t PackIDSkPoint(SkGlyphID glyphID, SkPoint pt, SkIPoint mask) { #if 0 // TODO: why does this code not work on GCC 8.3 x86 Debug builds? using namespace skvx; using XY = Vec<2, float>; using SubXY = Vec<2, int>; const XY magic = {1.f * (1u << (kSubPixelPosLen + kSubPixelX)), 1.f * (1u << (kSubPixelPosLen + kSubPixelY))}; XY pos{pt.x(), pt.y()}; XY subPos = (pos - floor(pos)) + 1.0f; SubXY sub = cast<int>(subPos * magic) & SubXY{mask.x(), mask.y()}; #else const float magicX = 1.f * (1u << (kSubPixelPosLen + kSubPixelX)), magicY = 1.f * (1u << (kSubPixelPosLen + kSubPixelY)); float x = pt.x(), y = pt.y(); x = (x - floorf(x)) + 1.0f; y = (y - floorf(y)) + 1.0f; int sub[] = { (int)(x * magicX) & mask.x(), (int)(y * magicY) & mask.y(), }; #endif SkASSERT(sub[0] / (1u << kSubPixelX) < (1u << kSubPixelPosLen)); SkASSERT(sub[1] / (1u << kSubPixelY) < (1u << kSubPixelPosLen)); return (glyphID << kGlyphID) | sub[0] | sub[1]; } static constexpr uint32_t PackIDXY(SkGlyphID glyphID, SkFixed x, SkFixed y) { return PackIDSubXSubY(glyphID, FixedToSub(x), FixedToSub(y)); } static constexpr uint32_t FixedToSub(SkFixed n) { return ((uint32_t)n >> kFixedPointSubPixelPosBits) & kSubPixelPosMask; } constexpr SkFixed subToFixed(uint32_t subPixelPosBit) const { uint32_t subPixelPosition = (fID >> subPixelPosBit) & kSubPixelPosMask; return subPixelPosition << kFixedPointSubPixelPosBits; } uint32_t fID; }; struct SkGlyphPrototype; class SkGlyph { public: // SkGlyph() is used for testing. constexpr SkGlyph() : fID{SkPackedGlyphID()} { } constexpr explicit SkGlyph(SkPackedGlyphID id) : fID{id} { } SkVector advanceVector() const { return SkVector{fAdvanceX, fAdvanceY}; } SkScalar advanceX() const { return fAdvanceX; } SkScalar advanceY() const { return fAdvanceY; } SkGlyphID getGlyphID() const { return fID.glyphID(); } SkPackedGlyphID getPackedID() const { return fID; } SkFixed getSubXFixed() const { return fID.getSubXFixed(); } SkFixed getSubYFixed() const { return fID.getSubYFixed(); } size_t rowBytes() const; size_t rowBytesUsingFormat(SkMask::Format format) const; // Call this to set all of the metrics fields to 0 (e.g. if the scaler // encounters an error measuring a glyph). Note: this does not alter the // fImage, fPath, fID, fMaskFormat fields. void zeroMetrics(); SkMask mask() const; SkMask mask(SkPoint position) const; // Image // If we haven't already tried to associate an image with this glyph // (i.e. setImageHasBeenCalled() returns false), then use the // SkScalerContext or const void* argument to set the image. bool setImage(SkArenaAlloc* alloc, SkScalerContext* scalerContext); bool setImage(SkArenaAlloc* alloc, const void* image); // Merge the from glyph into this glyph using alloc to allocate image data. Return true if // image data was allocated. If the image for this glyph has not been initialized, then copy // the width, height, top, left, format, and image into this glyph making a copy of the image // using the alloc. bool setMetricsAndImage(SkArenaAlloc* alloc, const SkGlyph& from); // Returns true if the image has been set. bool setImageHasBeenCalled() const { return fImage != nullptr || this->isEmpty() || this->imageTooLarge(); } // Return a pointer to the path if the image exists, otherwise return nullptr. const void* image() const { SkASSERT(this->setImageHasBeenCalled()); return fImage; } // Return the size of the image. size_t imageSize() const; // Path // If we haven't already tried to associate a path to this glyph // (i.e. setPathHasBeenCalled() returns false), then use the // SkScalerContext or SkPath argument to try to do so. N.B. this // may still result in no path being associated with this glyph, // e.g. if you pass a null SkPath or the typeface is bitmap-only. // // This setPath() call is sticky... once you call it, the glyph // stays in its state permanently, ignoring any future calls. // // Returns true if this is the first time you called setPath() // and there actually is a path; call path() to get it. bool setPath(SkArenaAlloc* alloc, SkScalerContext* scalerContext); bool setPath(SkArenaAlloc* alloc, const SkPath* path); // Returns true if that path has been set. bool setPathHasBeenCalled() const { return fPathData != nullptr; } // Return a pointer to the path if it exists, otherwise return nullptr. Only works if the // path was previously set. const SkPath* path() const; // Format bool isColor() const { return fMaskFormat == SkMask::kARGB32_Format; } SkMask::Format maskFormat() const { return static_cast<SkMask::Format>(fMaskFormat); } size_t formatAlignment() const; // Bounds int maxDimension() const { return std::max(fWidth, fHeight); } SkIRect iRect() const { return SkIRect::MakeXYWH(fLeft, fTop, fWidth, fHeight); } SkRect rect() const { return SkRect::MakeXYWH(fLeft, fTop, fWidth, fHeight); } int left() const { return fLeft; } int top() const { return fTop; } int width() const { return fWidth; } int height() const { return fHeight; } bool isEmpty() const { // fHeight == 0 -> fWidth == 0; SkASSERT(fHeight != 0 || fWidth == 0); return fWidth == 0; } bool imageTooLarge() const { return fWidth >= kMaxGlyphWidth; } // Make sure that the intercept information is on the glyph and return it, or return it if it // already exists. // * bounds - either end of the gap for the character. // * scale, xPos - information about how wide the gap is. // * array - accumulated gaps for many characters if not null. // * count - the number of gaps. void ensureIntercepts(const SkScalar bounds[2], SkScalar scale, SkScalar xPos, SkScalar* array, int* count, SkArenaAlloc* alloc); private: // There are two sides to an SkGlyph, the scaler side (things that create glyph data) have // access to all the fields. Scalers are assumed to maintain all the SkGlyph invariants. The // consumer side has a tighter interface. friend class RandomScalerContext; friend class SkScalerContext; friend class SkScalerContextProxy; friend class SkScalerContext_Empty; friend class SkScalerContext_FreeType; friend class SkScalerContext_FreeType_Base; friend class SkScalerContext_DW; friend class SkScalerContext_GDI; friend class SkScalerContext_Mac; friend class SkStrikeClient; friend class SkStrikeServer; friend class SkTestScalerContext; friend class SkTestSVGScalerContext; friend class TestSVGTypeface; friend class TestTypeface; static constexpr uint16_t kMaxGlyphWidth = 1u << 13u; // Support horizontal and vertical skipping strike-through / underlines. // The caller walks the linked list looking for a match. For a horizontal underline, // the fBounds contains the top and bottom of the underline. The fInterval pair contains the // beginning and end of of the intersection of the bounds and the glyph's path. // If interval[0] >= interval[1], no intersection was found. struct Intercept { Intercept* fNext; SkScalar fBounds[2]; // for horz underlines, the boundaries in Y SkScalar fInterval[2]; // the outside intersections of the axis and the glyph }; struct PathData { Intercept* fIntercept{nullptr}; SkPath fPath; bool fHasPath{false}; }; size_t allocImage(SkArenaAlloc* alloc); // path == nullptr indicates that there is no path. void installPath(SkArenaAlloc* alloc, const SkPath* path); // The width and height of the glyph mask. uint16_t fWidth = 0, fHeight = 0; // The offset from the glyphs origin on the baseline to the top left of the glyph mask. int16_t fTop = 0, fLeft = 0; // fImage must remain null if the glyph is empty or if width > kMaxGlyphWidth. void* fImage = nullptr; // Path data has tricky state. If the glyph isEmpty, then fPathData should always be nullptr, // else if fPathData is not null, then a path has been requested. The fPath field of fPathData // may still be null after the request meaning that there is no path for this glyph. PathData* fPathData = nullptr; // The advance for this glyph. float fAdvanceX = 0, fAdvanceY = 0; // This is a combination of SkMask::Format and SkGlyph state. The SkGlyph can be in one of two // states, just the advances have been calculated, and all the metrics are available. The // illegal mask format is used to signal that only the advances are available. uint8_t fMaskFormat = MASK_FORMAT_UNKNOWN; // Used by the DirectWrite scaler to track state. int8_t fForceBW = 0; const SkPackedGlyphID fID; }; #endif
[ "pcding@ucdavis.edu" ]
pcding@ucdavis.edu
6f5ca6c7eecb88e3d598c1e63dc38ccb8b9b57e3
8bb6bcd72d318aee012a6b9e86b77b85092aa31a
/assign5/PriorityQueue/src/VectorPriorityQueue.h
0e2ac2b5067601134e37e732b5930ab046a90f86
[]
no_license
forevermzm/CS106B-1
e273d27f47cb274692274497c919f1acad6ad84a
dce69865381c269e1eeea7d7b6f51040cb679711
refs/heads/master
2021-01-22T10:13:20.029112
2014-11-06T20:06:29
2014-11-06T20:06:29
26,320,665
2
2
null
null
null
null
UTF-8
C++
false
false
4,409
h
/** * VectorPriorityQueue * -------------------- * This priority queue uses an unsorted Vector of PQEntries to store * its elements. The enqueue is very efficient, as new elements are * appended onto the end of the vector. The dequeue, peek, and peekPriority * aren't very efficient, because the class needs to look through the entire * vector to find the smallest element. */ #ifndef _vectorpriorityqueue_h #define _vectorpriorityqueue_h #include <iostream> #include <string> #include "vector.h" #include "PQEntry.h" using namespace std; class VectorPriorityQueue { public: /** * @brief VectorPriorityQueue * Constructor for vector priority queue. Takes no arguments, and no prior * setup required, so empty. */ VectorPriorityQueue(); /** * @brief ~VectorPriorityQueue * Destructor for vector priority queue. No clean up required, so empty. */ ~VectorPriorityQueue(); /** * @brief changePriority * Changes the priority of one of the entries. Loops through the entire * vector looking for the entry with the given value, then changes its * priority if found. If an entry with the value is not found, or if the * entry's priority is already more urgent than the newPriority, then * the method will throw an exception and not change anything. * O(n) - worst case = entry isn't there, look through every element * @param value - Value of the entry the user wants to change. * @param newPriority - New priority that the desired entry should have. */ void changePriority(string value, int newPriority); /** * @brief clear * Clears the priority queue. * O(n) - clears each element in the queue. */ void clear(); /** * @brief dequeue * Dequeues the most urgent entry and returns its value. * O(n) - worst case = most urgent element is at the end of the queue. * @return - The value of the most urgent entry. */ string dequeue(); /** * @brief enqueue * Enqueues a given entry onto the end of the vector priority queue. * O(1) - always adds on to the end. * @param value - Value of the new entry. * @param priority - Priority of the new entry. */ void enqueue(string value, int priority); /** * @brief isEmpty * Returns if the priority queue has no elements. * O(1) - checks private size variable. * @return - Whether priority queue has no elements. */ bool isEmpty() const; /** * @brief peek * Returns the value of the most urgent entry without changing the * priority queue. * O(n) - worst case = most urgent element is at the end of the queue. * @return - Value of the most urgent entry. */ string peek() const; /** * @brief peekPriority * Returns the priority of the most urgent entry without changing the * priority queue. * O(n) - worst case = most urgent element is at the end of the queue. * @return - Priority of the most urgent entry. */ int peekPriority() const; /** * @brief size * Returns the number of elements in the priority queue. * O(1) - checks private size variable. * @return - Number of elements. */ int size() const; /** * @brief operator << * Formats printing of priority queue. Loops through the queue and prints * every element. * O(n) - goes through each element in the queue. * @param out - String represntation of queue to be printed. * @param queue - Priority queue to be printed. * @return */ friend ostream& operator <<(ostream& out, const VectorPriorityQueue& queue); private: /** * @brief priorityQueue * Private variable that keeps track of vector of PQEntries. */ Vector<PQEntry> priorityQueue; /** * @brief getMostUrgentElement * Loops through the entire queue and returns the most urgent element. * O(n) - always needs to look through the entire queue. * @return - The index of the most urgent element. */ int getMostUrgentElement() const; /** * @brief getElemAtIndex * Returns element at the specified index. * @param index * @return - found PQEntry */ PQEntry getElemAtIndex(int index) const; }; #endif
[ "16chuang@castilleja.org" ]
16chuang@castilleja.org
7fb715f935594aa9aad1555aef1c38e2c89e8fd4
42adc629d0ecc1eafe5f77bd56ecb99f9931fe81
/Source/kiwi_camera_follow/RoadTest.cpp
37bd41d0a7a4ea9ad88c99096036789ed411d339
[]
no_license
lejonmcgowan/Jetpack-Kiwi
435c9eadc339fa649f4853e427687b73e4509c72
e699e69a83145ff83969f538a12ca1adae5a7106
refs/heads/master
2021-01-10T08:38:11.973987
2016-03-14T06:20:58
2016-03-14T06:20:58
51,726,089
1
0
null
null
null
null
UTF-8
C++
false
false
541
cpp
// Fill out your copyright notice in the Description page of Project Settings. #include "kiwi_camera_follow.h" #include "RoadTest.h" // Sets default values ARoadTest::ARoadTest() { // Set this actor to call Tick() every frame. You can turn this off to improve performance if you don't need it. PrimaryActorTick.bCanEverTick = true; } // Called when the game starts or when spawned void ARoadTest::BeginPlay() { Super::BeginPlay(); } // Called every frame void ARoadTest::Tick( float DeltaTime ) { Super::Tick( DeltaTime ); }
[ "lejonmcgowan@gmail.com" ]
lejonmcgowan@gmail.com
544691f851b8c5ab0f3fce65d7ef07dcfab7e4c9
b66eaf76662219e560eadf6e2d62b8b1a19de4f1
/Introduction/AdHoc/Game (other)/11459.cpp
2dd82b56244e15690ae41b7cfc9c28357036e9d8
[]
no_license
jPHU/CP3
a6d6256ea53fcbecef0af99a26ef4b3633009ea9
d1b8b37ef0a3896829fa5704a69b8b808056f686
refs/heads/master
2021-05-05T12:00:37.896507
2018-02-18T19:56:11
2018-02-18T19:56:11
118,205,699
0
0
null
null
null
null
UTF-8
C++
false
false
1,562
cpp
#include <iostream> #include <stdio.h> #include <map> #include <string.h> using namespace std; int main(void) { int n; scanf("%d", &n); while(n--) { int a, b, c; scanf("%d %d %d", &a, &b, &c); map<int, int> SAL; for(int i = 0; i < b; ++i) { int start, end; scanf("%d %d", &start, &end); SAL[start] = end; } int positions[a]; for(int i = 0; i < a; ++i) { positions[i] = 1; } bool winner = false; int curPlayer = 0; for(int i = 0; i < c; ++i) { int roll; scanf("%d", &roll); if(winner) continue; int newPosition = positions[curPlayer] + roll; if(newPosition >= 100) { positions[curPlayer] = 100; winner = true; } // Theres a SNEK else if(SAL.find(newPosition) != SAL.end()) { positions[curPlayer] = SAL.find(newPosition)->second; } else { positions[curPlayer] = newPosition; } if(positions[curPlayer] >= 100) { winner = true; } curPlayer = (curPlayer + 1) % a; } for(int i = 0; i < a; ++i) { printf("Position of player %d is %d.\n", i + 1, positions[i]); } } }
[ "justinphew@gmail.com" ]
justinphew@gmail.com
ff529b6057bfc73fb9c06db53cc93cf1e9dad241
6103937b91aa61521944a574bced529f75bcf034
/lib/utl.h
f7502b3dc76f16e0628f13966a3bec4034370260
[]
no_license
wenjielubot/RobotExample
64d13c1f843b7882059032fae60d440d238f60c4
d324e48a0ddab8c57cb9e388673471438b646233
refs/heads/master
2021-01-10T01:38:59.483261
2015-05-27T21:18:58
2015-05-27T21:18:58
36,395,903
0
0
null
null
null
null
UTF-8
C++
false
false
386
h
#ifndef UTL_H_ #define UTL_H_ namespace hll { /** * 1-D Gaussian sampler * @param mean, sigma * @return float */ float sample(float mean, float sigma); /** * contrain value to its range * @param input value, maximum vlue, minimum value * @return float */ float constrain(float value, float vmax, float vmin); } /* end of namespace */ #endif /* SimulatorApp_H_ */
[ "wenjie.lu@yahoo.com" ]
wenjie.lu@yahoo.com
b4756ebab6980e9673277821aba6befd07d3128d
51701cc1a968f304f10f064d847fe114353b4b2c
/KMINT_Framework/Framework/week4/SDLFramework/Field.h
1af5546ad2737fbb46af641f5f0885885b3cd3b8
[]
no_license
engineer-murataydin/Kunstmatige-Inelligentie-KMINT-
fae02366e6403a816afd8a0133e71d8dc756c8ed
dc0440616ad4535b2cc9d1b70033052777041164
refs/heads/master
2020-04-06T04:02:18.167088
2015-01-05T15:16:03
2015-01-05T15:16:03
26,441,023
0
1
null
null
null
null
UTF-8
C++
false
false
386
h
#pragma once #include <vector> #include "Rabbit.h" #include "Cow.h" class Field { public: Field(double width, double heigth); ~Field(); const double width; const double height; void setRabbit(Rabbit* rabbit); void addCow(Cow* cow); vector<Cow*> getCows() const; Rabbit* getRabbit() const; void init(int cowAmount = 1); private: vector<Cow*> cows; Rabbit* rabbit; };
[ "hyppo8@hotmail.com" ]
hyppo8@hotmail.com
30d1d112a598271c4737983cbd3a8f4fa5a31358
1bd3daf1f777cf8f4576c7d4e4da433872fa23a1
/Reylax/BvhNode2.cpp
c8299a900bffb9d009c584e251217f30d5c6eafd
[]
no_license
d1kkop/Raylax
ab94bd15d5ce02128141a2e148db61aede1ce1bd
3d495b560bc2765a13f781bc0b36820bfba6dd42
refs/heads/master
2020-03-24T19:35:56.130691
2018-08-26T22:14:35
2018-08-26T22:14:35
142,935,791
0
0
null
null
null
null
UTF-8
C++
false
false
11,335
cpp
#include "ReylaxCommon.h" #include "Reylax_internal.h" #include "Reylax.h" #include "DeviceBuffer.h" using namespace std; int rlTriBoxOverlap(const float* boxcenter, const float* boxhalfsize, const vec3 triverts[3]); namespace Reylax { // -------- BvhNode ------------------------------------------------------------------------------------------------- u32 BvhNode::build2(const MeshData** meshPtrs, u32 numMeshDatas, DeviceBuffer** ppBvhTree, DeviceBuffer** ppFaces, DeviceBuffer** ppFaceClusters, DeviceBuffer** ppSides, vec3& worldMin, vec3& worldMax) { if ( !meshPtrs || numMeshDatas == 0 || !ppBvhTree || !ppFaces || !ppFaceClusters || !ppSides ) { return ERROR_INVALID_PARAMETER; } struct stNode { u32 depth; BvhNode* node; std::vector<Face> faces; }; const u32 stSize = BVH_MAX_DEPTH; stNode stack[stSize]; // push first faces on stack and approximate face count to allocate u32 allocatedFaceCount = 0; forEachFace(meshPtrs, numMeshDatas, [&](u32 mId, const u32 id[3], const vec3 v[3]) { Face f; f.x = id[0]; f.y = id[1]; f.z = id[2]; f.w = mId; f.mat = nullptr; stack[0].faces.push_back( f ); allocatedFaceCount++; }); allocatedFaceCount *= 200; // allocate sufficient amount of data u32 numNodes = 1024*1024*8; u32 numFacesClusters = _max<u32>((u32)sqrt(numNodes), allocatedFaceCount/(BVH_NUM_FACES_IN_LEAF/8)); #if RL_PRINT_STATS printf("--- BVH Static intermediate allocations ---\n\n"); float bvhSize = (float)sizeof(BvhNode)*numNodes/1024/1024; float faceSize = (float)sizeof(Face)*allocatedFaceCount/1024/1024; float fclusSize = (float)sizeof(BvhNode)*numFacesClusters/1024/1024; printf("BvhNodes: %d, size %.3fmb\n", numNodes, bvhSize); printf("Faces: %d, size %.3fmb\n", allocatedFaceCount, faceSize); printf("Fclusters: %d, size %.3fmb\n", numFacesClusters, fclusSize); printf("Total: %.3fmb\n", (bvhSize+faceSize+fclusSize)); #endif BvhNode* nodes = new BvhNode[numNodes]; Face* faces = new Face[allocatedFaceCount]; // times 2 to accomodate for overlapping faces on two boxes FaceCluster* fc = new FaceCluster[numFacesClusters]; // indexers into memory buffers u32 nodeIndexer = 1; u32 faceIndexer = 0; u32 faceClusterIndexer = 0; // setup remaining part of first node in stack (faces for stack[0] have been poplated already) stNode* st = stack; st->depth = 0; st->node = nodes; i32 top=0; // set bbox of first stack node determineBbox(st->faces, meshPtrs, worldMin, worldMax); st->node->bMin = worldMin; st->node->bMax = worldMax; st->node->left = 0; st->node->right = 0; // generate tree while ( top >= 0 ) { st = &stack[top--]; BvhNode*node = st->node; vec3 bMin = node->bMin; vec3 bMax = node->bMax; vec3 hs = (bMax - bMin)*.5f; assert(hs.x>0.f && hs.y>0.f && hs.z>0.f); if ( st->depth == BVH_MAX_DEPTH || (u32)st->faces.size() <= BVH_NUM_FACES_IN_LEAF || ( hs.x <= BVH_MIN_SIZE || hs.y <= BVH_MIN_SIZE || hs.z <= BVH_MIN_SIZE ) ) { if ( (u32)st->faces.size() > BVH_NUM_FACES_IN_LEAF ) { printf("Could not fit all faces (%d) in a leaf node of BVH while max depth was reached.\n", (u32)st->faces.size()); } else { #if BVH_DBG_INFO printf("Fitted %d faces in leaf, depth %d\n", (u32)st->faces.size(), st->depth); #endif } assert( faceClusterIndexer < numFacesClusters ); u32 numFaces = _min( (u32)st->faces.size(), (u32)BVH_NUM_FACES_IN_LEAF ); BVH_SET_LEAF_AND_FACES( node->left, numFaces ); node->right = faceClusterIndexer++; FaceCluster* cluster = fc + node->right; cluster->numFaces = numFaces; assert( node->numFaces()==cluster->numFaces ); assert( BVH_GETNUM_TRIANGLES(node->left)==cluster->numFaces ); for ( u32 i=0; i<cluster->numFaces; ++i ) { assert( faceIndexer < allocatedFaceCount ); Face* fNew = faces + faceIndexer++; *fNew = st->faces[i]; cluster->faces[i] = faceIndexer-1; } } else { u32 splitAxis = 0; float biggest = hs.x; if ( hs.y > biggest ) { splitAxis = 1; biggest = hs.y; } if ( hs.z > biggest ) { splitAxis = 2; } #if BVH_DBG_INFO printf("splitAxis %d\n", splitAxis); #endif float s = (bMax[splitAxis] + bMin[splitAxis])*.5f; vec3 lMax = node->bMax; vec3 rMin = node->bMin; lMax[splitAxis] = s; rMin[splitAxis] = s; vec3 cpL = (bMin+lMax)*.5f; vec3 hsL = (lMax-bMin)*.5f; vec3 cpR = (rMin+bMax)*.5f; vec3 hsR = (bMax-rMin)*.5f; vector<Face> facesL, facesR; for ( auto& f : st->faces ) { const vec3* vd = ( const vec3*)(meshPtrs[f.w] )->vertexData[VERTEX_DATA_POSITION]; const vec3 v[3] = { vd[f.x], vd[f.y], vd[f.z] }; if ( rlTriBoxOverlap(&cpL.x, &hsL.x, v) == 1 ) facesL.push_back(f); if ( rlTriBoxOverlap(&cpR.x, &hsR.x, v) == 1 ) facesR.push_back(f); } #if BVH_DBG_INFO printf("Faces left: %zd | cpL %.3f %.3f %.3f | hsL %.3f %.3f %.3f\n", facesL.size(), cpL.x, cpL.y, cpL.z, hsL.x, hsL.y, hsL.z); printf("Faces right: %zd | cpR %.3f %.3f %3f | hsR %.3f %.3f %.3f\n", facesR.size(), cpR.x, cpR.y, cpR.z, hsR.x, hsR.y, hsR.z); #endif // left BvhNode* left = nodes + nodeIndexer++; left->bMin = bMin; left->bMax = lMax; left->left = 0; left->right = 0; // right BvhNode* right = nodes + nodeIndexer++; right->bMin = rMin; right->bMax = bMax; right->left = 0; right->right = 0; // push new nodes on stack u32 depth = st->depth; assert(top+2 < stSize); st = &stack[++top]; st->depth = depth+1; st->faces = move(facesR); st->node = right; st = &stack[++top]; st->depth = depth+1; st->faces = move(facesL); st->node = left; // left and right of parent are now known BVH_SET_AXIS( node->right, splitAxis ); BVH_SET_INDEX( node->right, nodeIndexer-1 ); node->left = nodeIndexer-2; } // split } // while // Sides of leafs can now be determine as index of every node is known. u32* sides_data = new u32[faceClusterIndexer*6]; struct sideStack { u32 node; u32 indices[6]; }; sideStack sstack[stSize]; sideStack* sst = &sstack[0]; sst->node = 0; top=0; for ( auto& sd : sst->indices ) sd = RL_INVALID_INDEX; while ( top>=0 ) { sst = &sstack[top--]; BvhNode* node = nodes + sst->node; if ( node->isLeaf() ) { assert( node->right < faceClusterIndexer ); u32* pSides = sides_data + node->right*6; memcpy( pSides, sst->indices, sizeof(u32)*6 ); } else { assert( top + 2 < stSize ); u32 spAxis = BVH_GET_AXIS( node->right ); assert(spAxis==0 || spAxis==1 || spAxis==2); u32 oldSides[6]; memcpy( oldSides, sst->indices, sizeof(u32)*6 ); // right sst = &sstack[++top]; sst->node = BVH_GET_INDEX(node->right); memcpy( sst->indices, oldSides, sizeof(u32)*6 ); sst->indices[ spAxis*2 ] = node->left; //printf("Indices Right\n"); //for ( auto& i : sst->indices ) printf("%d ", i ); //printf("\n"); // left sst = &sstack[++top]; sst->node = node->left; memcpy( sst->indices, oldSides, sizeof(u32)*6 ); sst->indices[ spAxis*2+1 ] = BVH_GET_INDEX( node->right ); // spAxis also stored in right //printf("Indices Left\n"); //for ( auto& i : sst->indices ) printf("%d ", i ); //printf("\n"); } } // setup device memory *ppBvhTree = new DeviceBuffer(sizeof(BvhNode) * nodeIndexer); *ppFaces = new DeviceBuffer(sizeof(Face) * faceIndexer); *ppFaceClusters = new DeviceBuffer(sizeof(FaceCluster) * faceClusterIndexer); *ppSides = new DeviceBuffer(sizeof(u32)*6*faceClusterIndexer); (*ppBvhTree)->copyFrom(nodes, false); (*ppFaces)->copyFrom(faces, false); (*ppFaceClusters)->copyFrom(fc, false); (*ppSides)->copyFrom( sides_data, false ); // statistics #if RL_PRINT_STATS float nodeSize = (float)sizeof(BvhNode)*nodeIndexer/1024/1024; float facesize = (float)sizeof(Face)*faceIndexer/1024/1024; float faceClusterSize = (float)sizeof(FaceCluster)*faceClusterIndexer/1024/1024; float sidesSize = (float)sizeof(u32)*6*faceClusterIndexer/1024/1024; printf("\nActual allocations on device\n"); printf("NodeCount %d, size %.3fmb\n", nodeIndexer, nodeSize); printf("FaceCount %d, size %.3fmb\n", faceIndexer, facesize); printf("FaceClusterCount %d, size %.3fmb\n", faceClusterIndexer, faceClusterSize); printf("Sidelinks %d, size %.3fmb\n", faceClusterIndexer, sidesSize); printf("Total: %.3fmb\n", (nodeSize+facesize+faceClusterSize+sidesSize)); showDebugInfo( nodes ); #endif // Ensure data is copied to device before deletion of host memory SyncDevice(); // get rid of intermediate data delete[] nodes; delete[] faces; delete[] fc; delete[] sides_data; #if RL_PRINT_STATS printf("\nDELETED intermediate allocations\n\n"); printf("--- End BVH static scene creation ---\n\n"); #endif return ERROR_ALL_FINE; } }
[ "bart.knuiman@gmail.com" ]
bart.knuiman@gmail.com
0133eb46a152588ac0ee786489e5aae8663624e5
813eb8705581a31726c432007406c88af4ac9822
/atcoder1481.cpp
33369a78003cccf3605d6f620a09a9ad9e86a858
[]
no_license
vansh-kapila/Coding_Blocks_CPP
ac59a8b1e444ab4ef1e2204e9b514ce856ce974d
f660d544e578ab361bc12d52fca539b478057c0e
refs/heads/main
2023-07-13T20:39:07.878081
2021-08-18T07:06:38
2021-08-18T07:06:38
397,504,399
0
0
null
null
null
null
UTF-8
C++
false
false
1,039
cpp
/* Author : VANSH KAPILA */ /* "The greatest glory in living lies not in never falling, but in rising every time we fall." -*/ #include <bits/stdc++.h> #define pb(x) push_back(x) #define all(x) x.begin(), x.end() #define debug(x) cout << '>' << #x << ':' << x << endl; #define int long long #define ld long double #define endl "\n"; const int mod = 1000000007; using namespace std; int32_t main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); int test = 1; //cin>>test; while (test--) { int n; cin >> n; int arr[n], brr[n]; for (int i = 0; i < n; i++) { /* code */ cin >> arr[i]; } for (int i = 0; i < n; i++) { /* code */ cin >> brr[i]; } for (int i = 1; i < n; i++) { brr[i]=min(brr[i],arr[i-1]+brr[i-1]); } for (int i = 0; i < n; i++) { if(i==0) { brr[i]=min(brr[i],arr[n-1]+brr[n-1]); } else{ brr[i]=min(brr[i],arr[i-1]+brr[i-1]);} } for (int i = 0; i < n; i++) { cout<<brr[i]<<endl; } } return 0; }
[ "vanshkapila2002@gmail.com" ]
vanshkapila2002@gmail.com
bb33117848de7d852c4ffffec975bddeb82e313d
b2c750ffb2b24b99f4974ab33fe4d1f1c00688c3
/gc/private/collect.hpp
6862b0bd4e0540fdd5b039bfb2be6cbe549e04ad
[ "Apache-2.0" ]
permissive
guowen23/Mix-C
6544e9eb1fda76791b824f193fd24fd55f621bd2
5712fb6306a85d7df0c0528640843c04efd5edb1
refs/heads/master
2023-03-19T02:47:27.705108
2021-03-08T15:23:22
2021-03-08T15:23:22
null
0
0
null
null
null
null
UTF-8
C++
false
false
2,576
hpp
/* 在 GC 组件中,collect 模板类将 routing 的结果作为输入,输出构成环形引用的类型集合 我们定义 collect 的模板参数 kvlist_t 作为连接关系集合, result_list 作为结果集合, search_list 期初是一个只有根类型 root_t 的集合。 1. 从 search_list 中取出一个元素 first,若无可取的元素,则遍历结束 2. 若 first 不在 result_list,就将 first 添加到 result_list 中,否则跳到操作 1 3. 将 kvlist_t 中与 first 相连接的类型取出并放入搜索集合 search_list 4. 跳到操作 1 */ #ifndef xpack_gc_private_collect #define xpack_gc_private_collect #pragma push_macro("xuser") #undef xuser #define xuser mixc::gc_private_collect::inc #include"meta_seq/tdistinct_append.hpp" #include"meta_seq/tfilter.hpp" #include"meta_seq/tin.hpp" #include"meta_seq/tlist.hpp" #include"meta_seq/tmerge.hpp" #include"meta_seq/tpop_by.hpp" #include"meta_seq/tselector_key.hpp" #include"meta_seq/tselector_val.hpp" #include"mixc.hpp" #pragma pop_macro("xuser") namespace mixc::gc_private_collect{ using namespace inc; template<class root_t, class kvlist_t> struct collect{ private: template<class current_kvlist, class result_list, class first, class ... args_t> static auto invoke(current_kvlist kv, tlist<first, args_t...>, result_list result){ using pair = tpop_by<current_kvlist, first, tselector_key>; using item_kvlist = typename pair::item_list; if constexpr (tin<result_list, first> or item_kvlist::length == 0){ return invoke(kv, tlist<args_t...>(), result); } else{ using rest_kvlist = typename pair::new_list; using parents_list = typename tfilter<item_kvlist, tselector_val>::new_list; using new_children_list = typename tmerge<tlist<args_t...>, parents_list>::new_list; using new_result = typename tdistinct_append<result_list, first>::new_list; return invoke( rest_kvlist(), new_children_list(), new_result() ); } } template<class current_kvlist, class result_list> static auto invoke(current_kvlist, tlist<>, result_list r){ return r; } public: using result_list = decltype( invoke(kvlist_t(), tlist<root_t>(), tlist<>()) ); }; } #endif xexport(mixc::gc_private_collect::collect)
[ "x4495@outlook.com" ]
x4495@outlook.com
91354ca7f32d3f06efbccb42043ac19b91cedc8d
6048fb8f98b9d38baa96aae455cf3ced3ec81e2c
/rviz_default_plugins/test/rviz_default_plugins/displays/pose_array/pose_array_display_test.cpp
ad6073276f89d95d6aec97d628b0be4b4393fa37
[ "BSD-3-Clause-Clear" ]
permissive
sagniknitr/rviz
e24cec73597d7c8ae8ef78b05758da13edcd4c56
07b164b3c0fe26f4951862718952703cdf3558ea
refs/heads/ros2
2020-03-07T22:13:18.301643
2018-06-04T09:30:38
2018-06-04T09:30:38
127,748,201
0
0
BSD-3-Clause-Clear
2018-06-04T09:30:39
2018-04-02T11:38:09
C++
UTF-8
C++
false
false
12,095
cpp
/* * Copyright (c) 2018, Bosch Software Innovations GmbH. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted (subject to the limitations in the disclaimer * below) provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Neither the name of the copyright holder nor the names of its * contributors may be used to endorse or promote products derived from * this software without specific prior written permission. * * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE GRANTED BY THIS * LICENSE. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #include <gtest/gtest.h> #include <gmock/gmock.h> #include <memory> #include <vector> #ifndef _WIN32 # pragma GCC diagnostic push # pragma GCC diagnostic ignored "-Wunused-parameter" # pragma GCC diagnostic ignored "-Wpedantic" #else #pragma warning(push) #pragma warning(disable : 4996) #endif #include <OgreRoot.h> #include <OgreEntity.h> #include <OgreManualObject.h> #ifndef _WIN32 # pragma GCC diagnostic pop #else # pragma warning(pop) #endif #include "rviz_common/properties/float_property.hpp" #include "../../../../src/rviz_default_plugins/displays/pose_array/pose_array_display.hpp" #include "../display_test_fixture.hpp" #include "../../scene_graph_introspection.hpp" using namespace ::testing; // NOLINT class PoseArrayDisplayFixture : public DisplayTestFixture { public: PoseArrayDisplayFixture() { display_ = std::make_unique<rviz_default_plugins::displays::PoseArrayDisplay>( context_.get(), scene_manager_->getRootSceneNode()->createChildSceneNode()); arrow_2d_length_property_ = display_->childAt(5); for (int i = 3; i < 5; i++) { common_arrow_properties_.push_back(display_->childAt(i)); } for (int i = 6; i < 10; i++) { arrow_3d_properties_.push_back(display_->childAt(i)); } for (int i = 10; i < 12; i++) { axes_properties_.push_back(display_->childAt(i)); } } std::unique_ptr<rviz_default_plugins::displays::PoseArrayDisplay> display_; rviz_common::properties::Property * arrow_2d_length_property_; std::vector<rviz_common::properties::Property *> common_arrow_properties_; std::vector<rviz_common::properties::Property *> arrow_3d_properties_; std::vector<rviz_common::properties::Property *> axes_properties_; }; geometry_msgs::msg::PoseArray::SharedPtr createMessageWithOnePose() { auto message = std::make_shared<geometry_msgs::msg::PoseArray>(); message->header = std_msgs::msg::Header(); message->header.frame_id = "pose_array_frame"; message->header.stamp = rclcpp::Clock().now(); geometry_msgs::msg::Pose pose; pose.position.x = 1; pose.position.y = 2; pose.position.z = 3; pose.orientation.x = 1; pose.orientation.y = 0; pose.orientation.z = 1; pose.orientation.w = 0; message->poses.push_back(pose); return message; } void expectAxesAreVisible(Ogre::SceneNode * node) { for (uint16_t i = 0; i < 3; ++i) { auto child_node = dynamic_cast<Ogre::SceneNode *>(node->getChild(i)->getChild(0)); auto entity = dynamic_cast<Ogre::Entity *>(child_node->getAttachedObject(0)); ASSERT_TRUE(entity); EXPECT_TRUE(entity->isVisible()); } } TEST_F(PoseArrayDisplayFixture, constructor_set_all_the_properties_in_the_right_order) { EXPECT_THAT(display_->childAt(3)->getNameStd(), Eq("Color")); EXPECT_THAT(display_->childAt(4)->getNameStd(), Eq("Alpha")); EXPECT_THAT(display_->childAt(5)->getNameStd(), Eq("Arrow Length")); EXPECT_THAT(display_->childAt(6)->getNameStd(), Eq("Head Radius")); EXPECT_THAT(display_->childAt(7)->getNameStd(), Eq("Head Length")); EXPECT_THAT(display_->childAt(8)->getNameStd(), Eq("Shaft Radius")); EXPECT_THAT(display_->childAt(9)->getNameStd(), Eq("Shaft Length")); EXPECT_THAT(display_->childAt(10)->getNameStd(), Eq("Axes Length")); EXPECT_THAT(display_->childAt(11)->getNameStd(), Eq("Axes Radius")); } TEST_F(PoseArrayDisplayFixture, at_startup_only_flat_arrows_propertie_are_visible) { for (const auto & property : common_arrow_properties_) { EXPECT_FALSE(property->getHidden()); } for (const auto & property : arrow_3d_properties_) { EXPECT_TRUE(property->getHidden()); } for (const auto & property : axes_properties_) { EXPECT_TRUE(property->getHidden()); } EXPECT_FALSE(arrow_2d_length_property_->getHidden()); } TEST_F(PoseArrayDisplayFixture, processMessage_corrctly_manages_property_visibility_from_arrow2d_to_arrow3d) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->setShape("Arrow (3D)"); display_->processMessage(msg); for (const auto & property : common_arrow_properties_) { EXPECT_FALSE(property->getHidden()); } for (const auto & property : arrow_3d_properties_) { EXPECT_FALSE(property->getHidden()); } for (const auto & property : axes_properties_) { EXPECT_TRUE(property->getHidden()); } EXPECT_TRUE(arrow_2d_length_property_->getHidden()); } TEST_F(PoseArrayDisplayFixture, processMessage_corrctly_manages_property_visibility_from_arrow2d_to_axes) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->setShape("Axes"); display_->processMessage(msg); for (const auto & property : common_arrow_properties_) { EXPECT_TRUE(property->getHidden()); } for (const auto & property : arrow_3d_properties_) { EXPECT_TRUE(property->getHidden()); } for (const auto & property : axes_properties_) { EXPECT_FALSE(property->getHidden()); } EXPECT_TRUE(arrow_2d_length_property_->getHidden()); } TEST_F(PoseArrayDisplayFixture, setTransform_with_invalid_message_returns_early) { mockValidTransform(); auto msg = createMessageWithOnePose(); msg->poses[0].position.x = nan("NaN"); display_->processMessage(msg); auto arrows_3d = rviz_default_plugins::findAllArrows(scene_manager_->getRootSceneNode()); auto axes = rviz_default_plugins::findAllAxes(scene_manager_->getRootSceneNode()); auto manual_object = rviz_default_plugins::findOneManualObject(scene_manager_->getRootSceneNode()); // the default position and orientation of the scene node are (0, 0, 0) and (1, 0, 0, 0) EXPECT_THAT(display_->getSceneNode()->getPosition(), Vector3Eq(Ogre::Vector3(0, 0, 0))); EXPECT_THAT( display_->getSceneNode()->getOrientation(), QuaternionEq(Ogre::Quaternion(1, 0, 0, 0))); EXPECT_THAT(manual_object->getBoundingRadius(), FloatEq(0)); EXPECT_THAT(arrows_3d, SizeIs(0)); EXPECT_THAT(axes, SizeIs(0)); } TEST_F(PoseArrayDisplayFixture, setTransform_with_invalid_transform_returns_early) { EXPECT_CALL(*frame_manager_, getTransform(_, _, _, _)).WillOnce(Return(false)); auto msg = createMessageWithOnePose(); display_->processMessage(msg); auto arrows_3d = rviz_default_plugins::findAllArrows(scene_manager_->getRootSceneNode()); auto axes = rviz_default_plugins::findAllAxes(scene_manager_->getRootSceneNode()); auto manual_object = rviz_default_plugins::findOneManualObject(scene_manager_->getRootSceneNode()); // the default position and orientation of the scene node are (0, 0, 0) and (1, 0, 0, 0) EXPECT_THAT(display_->getSceneNode()->getPosition(), Vector3Eq(Ogre::Vector3(0, 0, 0))); EXPECT_THAT( display_->getSceneNode()->getOrientation(), QuaternionEq(Ogre::Quaternion(1, 0, 0, 0))); EXPECT_THAT(manual_object->getBoundingRadius(), FloatEq(0)); EXPECT_THAT(arrows_3d, SizeIs(0)); EXPECT_THAT(axes, SizeIs(0)); } TEST_F(PoseArrayDisplayFixture, setTransform_sets_node_position_and_orientation_correctly) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->processMessage(msg); EXPECT_THAT(display_->getSceneNode()->getPosition(), Vector3Eq(Ogre::Vector3(0, 1, 0))); EXPECT_THAT( display_->getSceneNode()->getOrientation(), QuaternionEq(Ogre::Quaternion(0, 0, 1, 0))); } TEST_F(PoseArrayDisplayFixture, processMessage_sets_manualObject_correctly) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->processMessage(msg); auto manual_object = rviz_default_plugins::findOneManualObject(scene_manager_->getRootSceneNode()); auto manual_objectbounding_radius = 4.17732; EXPECT_THAT(manual_object->getBoundingRadius(), FloatEq(manual_objectbounding_radius)); EXPECT_THAT( manual_object->getBoundingBox().getCenter(), Vector3Eq(Ogre::Vector3(0.85f, 2, 3.3f))); } TEST_F(PoseArrayDisplayFixture, processMessage_sets_arrows3d_correctly) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->setShape("Arrow (3D)"); display_->processMessage(msg); auto arrows = rviz_default_plugins::findAllArrows(scene_manager_->getRootSceneNode()); // The orientation is first manipulated by the display and then in setOrientation() in arrow.cpp auto expected_orientation = Ogre::Quaternion(0, 1, 0, 1) * Ogre::Quaternion(Ogre::Degree(-90), Ogre::Vector3::UNIT_Y) * Ogre::Quaternion(Ogre::Degree(-90), Ogre::Vector3::UNIT_X); expected_orientation.normalise(); EXPECT_TRUE(rviz_default_plugins::arrowIsVisible(scene_manager_)); EXPECT_THAT(arrows, SizeIs(1)); rviz_default_plugins::assertArrowWithTransform( scene_manager_, Ogre::Vector3(1, 2, 3), Ogre::Vector3(1, 1, 1), expected_orientation); } TEST_F(PoseArrayDisplayFixture, processMessage_sets_axes_correctly) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->setShape("Axes"); display_->processMessage(msg); auto frames = rviz_default_plugins::findAllAxes(scene_manager_->getRootSceneNode()); auto expected_orientation = Ogre::Quaternion(0, 1, 0, 1); expected_orientation.normalise(); expectAxesAreVisible(frames[0]); EXPECT_THAT(frames, SizeIs(1)); EXPECT_THAT(frames[0]->getPosition(), Vector3Eq(Ogre::Vector3(1, 2, 3))); EXPECT_THAT(frames[0]->getOrientation(), QuaternionEq(expected_orientation)); } TEST_F(PoseArrayDisplayFixture, processMessage_updates_the_display_correctly_after_shape_change) { mockValidTransform(); auto msg = createMessageWithOnePose(); display_->setShape("Arrow (3D)"); display_->processMessage(msg); auto arrows = rviz_default_plugins::findAllArrows(scene_manager_->getRootSceneNode()); auto frames = rviz_default_plugins::findAllAxes(scene_manager_->getRootSceneNode()); auto manual_object = rviz_default_plugins::findOneManualObject(scene_manager_->getRootSceneNode()); EXPECT_THAT(arrows, SizeIs(1)); EXPECT_THAT(manual_object->getBoundingRadius(), FloatEq(0)); EXPECT_THAT(frames, SizeIs(0)); display_->setShape("Axes"); display_->processMessage(msg); auto post_update_arrows = rviz_default_plugins::findAllArrows(scene_manager_->getRootSceneNode()); auto post_update_frames = rviz_default_plugins::findAllAxes(scene_manager_->getRootSceneNode()); EXPECT_THAT(post_update_frames, SizeIs(1)); EXPECT_THAT(manual_object->getBoundingRadius(), FloatEq(0)); EXPECT_THAT(post_update_arrows, SizeIs(0)); }
[ "william+github@osrfoundation.org" ]
william+github@osrfoundation.org
9552e38f1d4ebf8a112ad651a4bd0ae53acaecce
ea4a165ee5ec50f3725cc6dba73328b596b1655b
/test/cctest/test-debug.cc
62a687387657157142698ab48f6f3c40f3b486fd
[ "BSD-3-Clause", "Apache-2.0", "SunPro" ]
permissive
cocos/v8
aee84292afaf7d640fd98855766552e229b529f9
93dcb090f1141bf80d1adaf4bb919b3b4c49ea89
refs/heads/main
2023-05-02T23:41:56.618739
2023-04-26T20:06:42
2023-04-26T23:01:28
633,206,875
0
1
null
2023-04-27T02:24:22
2023-04-27T02:24:21
null
UTF-8
C++
false
false
209,630
cc
// Copyright 2012 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following // disclaimer in the documentation and/or other materials provided // with the distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived // from this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include <stdlib.h> #include "include/v8-extension.h" #include "include/v8-function.h" #include "include/v8-json.h" #include "include/v8-locker.h" #include "src/api/api-inl.h" #include "src/base/strings.h" #include "src/codegen/compilation-cache.h" #include "src/debug/debug-interface.h" #include "src/debug/debug-scopes.h" #include "src/debug/debug.h" #include "src/deoptimizer/deoptimizer.h" #include "src/execution/frames-inl.h" #include "src/execution/microtask-queue.h" #include "src/objects/objects-inl.h" #include "src/utils/utils.h" #include "test/cctest/cctest.h" using ::v8::internal::Handle; using ::v8::internal::StepInto; // From StepAction enum using ::v8::internal::StepNone; // From StepAction enum using ::v8::internal::StepOut; // From StepAction enum using ::v8::internal::StepOver; // From StepAction enum // --- H e l p e r F u n c t i o n s // Compile and run the supplied source and return the requested function. static v8::Local<v8::Function> CompileFunction(v8::Isolate* isolate, const char* source, const char* function_name) { CompileRunChecked(isolate, source); v8::Local<v8::String> name = v8_str(isolate, function_name); v8::Local<v8::Context> context = isolate->GetCurrentContext(); v8::MaybeLocal<v8::Value> maybe_function = context->Global()->Get(context, name); return v8::Local<v8::Function>::Cast(maybe_function.ToLocalChecked()); } // Compile and run the supplied source and return the requested function. static v8::Local<v8::Function> CompileFunction(LocalContext* env, const char* source, const char* function_name) { return CompileFunction((*env)->GetIsolate(), source, function_name); } // Is there any debug info for the function? static bool HasBreakInfo(v8::Local<v8::Function> fun) { Handle<v8::internal::JSFunction> f = Handle<v8::internal::JSFunction>::cast(v8::Utils::OpenHandle(*fun)); Handle<v8::internal::SharedFunctionInfo> shared(f->shared(), f->GetIsolate()); return shared->HasBreakInfo(); } // Set a break point in a function with a position relative to function start, // and return the associated break point number. static i::Handle<i::BreakPoint> SetBreakPoint(v8::Local<v8::Function> fun, int position, const char* condition = nullptr) { i::Handle<i::JSFunction> function = i::Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*fun)); position += function->shared().StartPosition(); static int break_point_index = 0; i::Isolate* isolate = function->GetIsolate(); i::Handle<i::String> condition_string = condition ? isolate->factory()->NewStringFromAsciiChecked(condition) : isolate->factory()->empty_string(); i::Debug* debug = isolate->debug(); i::Handle<i::BreakPoint> break_point = isolate->factory()->NewBreakPoint(++break_point_index, condition_string); debug->SetBreakpoint(handle(function->shared(), isolate), break_point, &position); return break_point; } static void ClearBreakPoint(i::Handle<i::BreakPoint> break_point) { v8::internal::Isolate* isolate = CcTest::i_isolate(); v8::internal::Debug* debug = isolate->debug(); debug->ClearBreakPoint(break_point); } // Change break on exception. static void ChangeBreakOnException(v8::Isolate* isolate, bool caught, bool uncaught) { v8::internal::Debug* debug = reinterpret_cast<v8::internal::Isolate*>(isolate)->debug(); debug->ChangeBreakOnException(v8::internal::BreakCaughtException, caught); debug->ChangeBreakOnException(v8::internal::BreakUncaughtException, uncaught); } // Prepare to step to next break location. static void PrepareStep(i::StepAction step_action) { v8::internal::Debug* debug = CcTest::i_isolate()->debug(); debug->PrepareStep(step_action); } // This function is in namespace v8::internal to be friend with class // v8::internal::Debug. namespace v8 { namespace internal { // Collect the currently debugged functions. Handle<FixedArray> GetDebuggedFunctions() { Debug* debug = CcTest::i_isolate()->debug(); v8::internal::DebugInfoListNode* node = debug->debug_info_list_; // Find the number of debugged functions. int count = 0; while (node) { count++; node = node->next(); } // Allocate array for the debugged functions Handle<FixedArray> debugged_functions = CcTest::i_isolate()->factory()->NewFixedArray(count); // Run through the debug info objects and collect all functions. count = 0; while (node) { debugged_functions->set(count++, *node->debug_info()); node = node->next(); } return debugged_functions; } // Check that the debugger has been fully unloaded. void CheckDebuggerUnloaded() { // Check that the debugger context is cleared and that there is no debug // information stored for the debugger. CHECK(!CcTest::i_isolate()->debug()->debug_info_list_); // Collect garbage to ensure weak handles are cleared. i::DisableConservativeStackScanningScopeForTesting no_stack_scanning( CcTest::heap()); CcTest::CollectAllGarbage(); CcTest::CollectAllGarbage(); // Iterate the heap and check that there are no debugger related objects left. HeapObjectIterator iterator(CcTest::heap()); for (HeapObject obj = iterator.Next(); !obj.is_null(); obj = iterator.Next()) { CHECK(!obj.IsDebugInfo()); } } } // namespace internal } // namespace v8 // Check that the debugger has been fully unloaded. static void CheckDebuggerUnloaded() { v8::internal::CheckDebuggerUnloaded(); } // --- D e b u g E v e n t H a n d l e r s // --- // --- The different tests uses a number of debug event handlers. // --- // Debug event handler which counts a number of events. int break_point_hit_count = 0; int break_point_hit_count_deoptimize = 0; class DebugEventCounter : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context>, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { break_point_hit_count++; // Perform a full deoptimization when the specified number of // breaks have been hit. if (break_point_hit_count == break_point_hit_count_deoptimize) { i::Deoptimizer::DeoptimizeAll(CcTest::i_isolate()); } if (step_action_ != StepNone) PrepareStep(step_action_); } void set_step_action(i::StepAction step_action) { step_action_ = step_action; } private: i::StepAction step_action_ = StepNone; }; // Debug event handler which performs a garbage collection. class DebugEventBreakPointCollectGarbage : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context>, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { // Perform a garbage collection when break point is hit and continue. Based // on the number of break points hit either scavenge or mark compact // collector is used. break_point_hit_count++; if (break_point_hit_count % 2 == 0) { // Scavenge. CcTest::CollectGarbage(v8::internal::NEW_SPACE); } else { // Mark sweep compact. CcTest::CollectAllGarbage(); } } }; // Debug event handler which re-issues a debug break and calls the garbage // collector to have the heap verified. class DebugEventBreak : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context>, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { // Count the number of breaks. break_point_hit_count++; // Run the garbage collector to enforce heap verification if option // --verify-heap is set. CcTest::CollectGarbage(v8::internal::NEW_SPACE); // Set the break flag again to come back here as soon as possible. v8::debug::SetBreakOnNextFunctionCall(CcTest::isolate()); } }; v8::debug::BreakReasons break_right_now_reasons = {}; static void BreakRightNow(v8::Isolate* isolate, void*) { v8::debug::BreakRightNow(isolate, break_right_now_reasons); } // Debug event handler which re-issues a debug break until a limit has been // reached. int max_break_point_hit_count = 0; bool terminate_after_max_break_point_hit = false; class DebugEventBreakMax : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context>, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { v8::Isolate* v8_isolate = CcTest::isolate(); v8::internal::Isolate* isolate = CcTest::i_isolate(); if (break_point_hit_count < max_break_point_hit_count) { // Count the number of breaks. break_point_hit_count++; // Set the break flag again to come back here as soon as possible. v8_isolate->RequestInterrupt(BreakRightNow, nullptr); } else if (terminate_after_max_break_point_hit) { // Terminate execution after the last break if requested. v8_isolate->TerminateExecution(); } // Perform a full deoptimization when the specified number of // breaks have been hit. if (break_point_hit_count == break_point_hit_count_deoptimize) { i::Deoptimizer::DeoptimizeAll(isolate); } } }; // --- T h e A c t u a l T e s t s // Test that the debug info in the VM is in sync with the functions being // debugged. TEST(DebugInfo) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Create a couple of functions for the test. v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){}", "foo"); v8::Local<v8::Function> bar = CompileFunction(&env, "function bar(){}", "bar"); // Initially no functions are debugged. CHECK_EQ(0, v8::internal::GetDebuggedFunctions()->length()); CHECK(!HasBreakInfo(foo)); CHECK(!HasBreakInfo(bar)); EnableDebugger(env->GetIsolate()); // One function (foo) is debugged. i::Handle<i::BreakPoint> bp1 = SetBreakPoint(foo, 0); CHECK_EQ(1, v8::internal::GetDebuggedFunctions()->length()); CHECK(HasBreakInfo(foo)); CHECK(!HasBreakInfo(bar)); // Two functions are debugged. i::Handle<i::BreakPoint> bp2 = SetBreakPoint(bar, 0); CHECK_EQ(2, v8::internal::GetDebuggedFunctions()->length()); CHECK(HasBreakInfo(foo)); CHECK(HasBreakInfo(bar)); // One function (bar) is debugged. ClearBreakPoint(bp1); CHECK_EQ(1, v8::internal::GetDebuggedFunctions()->length()); CHECK(!HasBreakInfo(foo)); CHECK(HasBreakInfo(bar)); // No functions are debugged. ClearBreakPoint(bp2); DisableDebugger(env->GetIsolate()); CHECK_EQ(0, v8::internal::GetDebuggedFunctions()->length()); CHECK(!HasBreakInfo(foo)); CHECK(!HasBreakInfo(bar)); } // Test that a break point can be set at an IC store location. TEST(BreakPointICStore) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){bar=0;}", "foo"); // Run without breakpoints. foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at an IC store location. TEST(BreakPointCondition) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRun("var a = false"); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo() { return 1 }", "foo"); // Run without breakpoints. CompileRun("foo()"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0, "a == true"); CompileRun("foo()"); CHECK_EQ(0, break_point_hit_count); CompileRun("a = true"); CompileRun("foo()"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("foo()"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at an IC load location. TEST(BreakPointICLoad) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRunChecked(env->GetIsolate(), "bar=1"); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){var x=bar;}", "foo"); // Run without breakpoints. foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at an IC call location. TEST(BreakPointICCall) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRunChecked(env->GetIsolate(), "function bar(){}"); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){bar();}", "foo"); // Run without breakpoints. foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at an IC call location and survive a GC. TEST(BreakPointICCallWithGC) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventBreakPointCollectGarbage delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRunChecked(env->GetIsolate(), "function bar(){return 1;}"); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){return bar();}", "foo"); v8::Local<v8::Context> context = env.local(); // Run without breakpoints. CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(1, break_point_hit_count); CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at an IC call location and survive a GC. TEST(BreakPointConstructCallWithGC) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventBreakPointCollectGarbage delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRunChecked(env->GetIsolate(), "function bar(){ this.x = 1;}"); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){return new bar(1).x;}", "foo"); v8::Local<v8::Context> context = env.local(); // Run without breakpoints. CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(1, break_point_hit_count); CHECK_EQ(1, foo->Call(context, env->Global(), 0, nullptr) .ToLocalChecked() ->Int32Value(context) .FromJust()); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointBuiltin) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test simple builtin === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this != 1"); ExpectString("'b'.repeat(10)", "bbbbbbbbbb"); CHECK_EQ(1, break_point_hit_count); ExpectString("'b'.repeat(10)", "bbbbbbbbbb"); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("'b'.repeat(10)", "bbbbbbbbbb"); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointApiIntrinsics) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); // === Test that using API-exposed functions won't trigger breakpoints === { v8::Local<v8::Function> weakmap_get = CompileRun("WeakMap.prototype.get").As<v8::Function>(); SetBreakPoint(weakmap_get, 0); v8::Local<v8::Function> weakmap_set = CompileRun("WeakMap.prototype.set").As<v8::Function>(); SetBreakPoint(weakmap_set, 0); // Run with breakpoint. break_point_hit_count = 0; CompileRun("var w = new WeakMap(); w.set(w, 1); w.get(w);"); CHECK_EQ(2, break_point_hit_count); break_point_hit_count = 0; v8::Local<v8::debug::EphemeronTable> weakmap = v8::debug::EphemeronTable::New(env->GetIsolate()); v8::Local<v8::Object> key = v8::Object::New(env->GetIsolate()); CHECK(!weakmap->Set(env->GetIsolate(), key, v8_num(1)).IsEmpty()); CHECK(!weakmap->Get(env->GetIsolate(), key).IsEmpty()); CHECK_EQ(0, break_point_hit_count); } { v8::Local<v8::Function> object_to_string = CompileRun("Object.prototype.toString").As<v8::Function>(); SetBreakPoint(object_to_string, 0); // Run with breakpoint. break_point_hit_count = 0; CompileRun("var o = {}; o.toString();"); CHECK_EQ(1, break_point_hit_count); break_point_hit_count = 0; v8::Local<v8::Object> object = v8::Object::New(env->GetIsolate()); CHECK(!object->ObjectProtoToString(env.local()).IsEmpty()); CHECK_EQ(0, break_point_hit_count); } { v8::Local<v8::Function> map_set = CompileRun("Map.prototype.set").As<v8::Function>(); v8::Local<v8::Function> map_get = CompileRun("Map.prototype.get").As<v8::Function>(); v8::Local<v8::Function> map_has = CompileRun("Map.prototype.has").As<v8::Function>(); v8::Local<v8::Function> map_delete = CompileRun("Map.prototype.delete").As<v8::Function>(); SetBreakPoint(map_set, 0); SetBreakPoint(map_get, 0); SetBreakPoint(map_has, 0); SetBreakPoint(map_delete, 0); // Run with breakpoint. break_point_hit_count = 0; CompileRun( "var m = new Map(); m.set(m, 1); m.get(m); m.has(m); m.delete(m);"); CHECK_EQ(4, break_point_hit_count); break_point_hit_count = 0; v8::Local<v8::Map> map = v8::Map::New(env->GetIsolate()); CHECK(!map->Set(env.local(), map, v8_num(1)).IsEmpty()); CHECK(!map->Get(env.local(), map).IsEmpty()); CHECK(map->Has(env.local(), map).FromJust()); CHECK(map->Delete(env.local(), map).FromJust()); CHECK_EQ(0, break_point_hit_count); } { v8::Local<v8::Function> set_add = CompileRun("Set.prototype.add").As<v8::Function>(); v8::Local<v8::Function> set_get = CompileRun("Set.prototype.has").As<v8::Function>(); v8::Local<v8::Function> set_delete = CompileRun("Set.prototype.delete").As<v8::Function>(); SetBreakPoint(set_add, 0); SetBreakPoint(set_get, 0); SetBreakPoint(set_delete, 0); // Run with breakpoint. break_point_hit_count = 0; CompileRun("var s = new Set(); s.add(s); s.has(s); s.delete(s);"); CHECK_EQ(3, break_point_hit_count); break_point_hit_count = 0; v8::Local<v8::Set> set = v8::Set::New(env->GetIsolate()); CHECK(!set->Add(env.local(), set).IsEmpty()); CHECK(set->Has(env.local(), set).FromJust()); CHECK(set->Delete(env.local(), set).FromJust()); CHECK_EQ(0, break_point_hit_count); } v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointJSBuiltin) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test JS builtin === break_point_hit_count = 0; builtin = CompileRun("Array.prototype.sort").As<v8::Function>(); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); CompileRun("[1,2,3].sort()"); CHECK_EQ(1, break_point_hit_count); CompileRun("[1,2,3].sort()"); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("[1,2,3].sort()"); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointBoundBuiltin) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test bound function from a builtin === break_point_hit_count = 0; builtin = CompileRun( "var boundrepeat = String.prototype.repeat.bind('a');" "String.prototype.repeat") .As<v8::Function>(); ExpectString("boundrepeat(10)", "aaaaaaaaaa"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); ExpectString("boundrepeat(10)", "aaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("boundrepeat(10)", "aaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointConstructorBuiltin) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test Promise constructor === break_point_hit_count = 0; builtin = CompileRun("Promise").As<v8::Function>(); ExpectString("(new Promise(()=>{})).toString()", "[object Promise]"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this != 1"); ExpectString("(new Promise(()=>{})).toString()", "[object Promise]"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("(new Promise(()=>{})).toString()", "[object Promise]"); CHECK_EQ(1, break_point_hit_count); // === Test Object constructor === break_point_hit_count = 0; builtin = CompileRun("Object").As<v8::Function>(); CompileRun("new Object()"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); CompileRun("new Object()"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("new Object()"); CHECK_EQ(1, break_point_hit_count); // === Test Number constructor === break_point_hit_count = 0; builtin = CompileRun("Number").As<v8::Function>(); CompileRun("new Number()"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); CompileRun("new Number()"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("new Number()"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointInlinedBuiltin) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test inlined builtin === break_point_hit_count = 0; builtin = CompileRun("Math.sin").As<v8::Function>(); CompileRun("function test(x) { return 1 + Math.sin(x) }"); CompileRun( "%PrepareFunctionForOptimization(test);" "test(0.5); test(0.6);" "%OptimizeFunctionOnNextCall(test); test(0.7);"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this != 1"); CompileRun("Math.sin(0.1);"); CHECK_EQ(1, break_point_hit_count); CompileRun("test(0.2);"); CHECK_EQ(2, break_point_hit_count); // Re-optimize. CompileRun( "%PrepareFunctionForOptimization(test);" "%OptimizeFunctionOnNextCall(test);"); ExpectBoolean("test(0.3) < 2", true); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test(0.3);"); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointInlineBoundBuiltin) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test inlined bound builtin === break_point_hit_count = 0; builtin = CompileRun( "var boundrepeat = String.prototype.repeat.bind('a');" "String.prototype.repeat") .As<v8::Function>(); CompileRun("function test(x) { return 'a' + boundrepeat(x) }"); CompileRun( "%PrepareFunctionForOptimization(test);" "test(4); test(5);" "%OptimizeFunctionOnNextCall(test); test(6);"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this != 1"); CompileRun("'a'.repeat(2);"); CHECK_EQ(1, break_point_hit_count); CompileRun("test(7);"); CHECK_EQ(2, break_point_hit_count); // Re-optimize. CompileRun( "%PrepareFunctionForOptimization(f);" "%OptimizeFunctionOnNextCall(test);"); CompileRun("test(8);"); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test(9);"); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointInlinedConstructorBuiltin) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test inlined constructor builtin (regular construct builtin) === break_point_hit_count = 0; builtin = CompileRun("Promise").As<v8::Function>(); CompileRun("function test(x) { return new Promise(()=>x); }"); CompileRun( "%PrepareFunctionForOptimization(test);" "test(4); test(5);" "%OptimizeFunctionOnNextCall(test); test(6);"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this != 1"); CompileRun("new Promise(()=>{});"); CHECK_EQ(1, break_point_hit_count); CompileRun("test(7);"); CHECK_EQ(2, break_point_hit_count); // Re-optimize. CompileRun( "%PrepareFunctionForOptimization(f);" "%OptimizeFunctionOnNextCall(test);"); CompileRun("test(8);"); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test(9);"); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointBuiltinConcurrentOpt) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test concurrent optimization === break_point_hit_count = 0; builtin = CompileRun("Math.sin").As<v8::Function>(); CompileRun("function test(x) { return 1 + Math.sin(x) }"); CompileRun( "%PrepareFunctionForOptimization(test);" "test(0.5); test(0.6);" "%DisableOptimizationFinalization();" "%OptimizeFunctionOnNextCall(test, 'concurrent');" "test(0.7);"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); // Have the concurrent compile job finish now. CompileRun( "%FinalizeOptimization();" "%GetOptimizationStatus(test);"); CompileRun("test(0.2);"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test(0.3);"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointBuiltinTFOperator) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test builtin represented as operator === break_point_hit_count = 0; builtin = CompileRun("String.prototype.indexOf").As<v8::Function>(); CompileRun("function test(x) { return 1 + 'foo'.indexOf(x) }"); CompileRun( "%PrepareFunctionForOptimization(f);" "test('a'); test('b');" "%OptimizeFunctionOnNextCall(test); test('c');"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0); CompileRun("'bar'.indexOf('x');"); CHECK_EQ(1, break_point_hit_count); CompileRun("test('d');"); CHECK_EQ(2, break_point_hit_count); // Re-optimize. CompileRun( "%PrepareFunctionForOptimization(f);" "%OptimizeFunctionOnNextCall(test);"); CompileRun("test('e');"); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test('f');"); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointBuiltinNewContext) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test builtin from a new context === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); CompileRun("'a'.repeat(10)"); CHECK_EQ(0, break_point_hit_count); // Set breakpoint. bp = SetBreakPoint(builtin, 0); { // Create and use new context after breakpoint has been set. v8::HandleScope handle_scope(env->GetIsolate()); v8::Local<v8::Context> new_context = v8::Context::New(env->GetIsolate()); v8::Context::Scope context_scope(new_context); // Run with breakpoint. CompileRun("'b'.repeat(10)"); CHECK_EQ(1, break_point_hit_count); CompileRun("'b'.repeat(10)"); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("'b'.repeat(10)"); CHECK_EQ(2, break_point_hit_count); } v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } void NoOpFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); info.GetReturnValue().Set(v8_num(2)); } TEST(BreakPointApiFunction) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; v8::Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); v8::Local<v8::Function> function = function_template->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("f"), function).ToChecked(); // === Test simple builtin === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0, "this != 1"); ExpectInt32("f()", 2); CHECK_EQ(1, break_point_hit_count); ExpectInt32("f()", 2); CHECK_EQ(2, break_point_hit_count); // Direct call through API does not trigger breakpoint. function->Call(env.local(), v8::Undefined(env->GetIsolate()), 0, nullptr) .ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectInt32("f()", 2); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointApiConstructor) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; v8::Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); v8::Local<v8::Function> function = function_template->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("f"), function).ToChecked(); // === Test simple builtin === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0, "this != 1"); CompileRun("new f()"); CHECK_EQ(1, break_point_hit_count); CompileRun("new f()"); CHECK_EQ(2, break_point_hit_count); // Direct call through API does not trigger breakpoint. function->NewInstance(env.local()).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("new f()"); CHECK_EQ(2, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } void GetWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); info.GetReturnValue().Set( info[0] .As<v8::Object>() ->Get(info.GetIsolate()->GetCurrentContext(), info[1]) .ToLocalChecked()); } TEST(BreakPointApiGetter) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; v8::Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); v8::Local<v8::FunctionTemplate> get_template = v8::FunctionTemplate::New(env->GetIsolate(), GetWrapperCallback); v8::Local<v8::Function> function = function_template->GetFunction(env.local()).ToLocalChecked(); v8::Local<v8::Function> get = get_template->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("f"), function).ToChecked(); env->Global()->Set(env.local(), v8_str("get_wrapper"), get).ToChecked(); CompileRun( "var o = {};" "Object.defineProperty(o, 'f', { get: f, enumerable: true });"); // === Test API builtin as getter === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0); CompileRun("get_wrapper(o, 'f')"); CHECK_EQ(0, break_point_hit_count); CompileRun("o.f"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("get_wrapper(o, 'f', 2)"); CompileRun("o.f"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } void SetWrapperCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); CHECK(info[0] .As<v8::Object>() ->Set(info.GetIsolate()->GetCurrentContext(), info[1], info[2]) .FromJust()); } TEST(BreakPointApiSetter) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; v8::Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); v8::Local<v8::FunctionTemplate> set_template = v8::FunctionTemplate::New(env->GetIsolate(), SetWrapperCallback); v8::Local<v8::Function> function = function_template->GetFunction(env.local()).ToLocalChecked(); v8::Local<v8::Function> set = set_template->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("f"), function).ToChecked(); env->Global()->Set(env.local(), v8_str("set_wrapper"), set).ToChecked(); CompileRun( "var o = {};" "Object.defineProperty(o, 'f', { set: f, enumerable: true });"); // === Test API builtin as setter === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0); CompileRun("o.f = 3"); CHECK_EQ(1, break_point_hit_count); CompileRun("set_wrapper(o, 'f', 2)"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("o.f = 3"); CHECK_EQ(1, break_point_hit_count); // === Test API builtin as setter, with condition === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0, "arguments[0] == 3"); CompileRun("set_wrapper(o, 'f', 2)"); CHECK_EQ(0, break_point_hit_count); CompileRun("set_wrapper(o, 'f', 3)"); CHECK_EQ(0, break_point_hit_count); CompileRun("o.f = 3"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("set_wrapper(o, 'f', 2)"); CompileRun("o.f = 3"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointApiAccessor) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; // Create 'foo' class, with a hidden property. v8::Local<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(env->GetIsolate()); v8::Local<v8::FunctionTemplate> accessor_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); obj_template->SetAccessorProperty(v8_str("f"), accessor_template, accessor_template); v8::Local<v8::Object> obj = obj_template->NewInstance(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("o"), obj).ToChecked(); v8::Local<v8::Function> function = CompileRun("Object.getOwnPropertyDescriptor(o, 'f').set") .As<v8::Function>(); // === Test API accessor === break_point_hit_count = 0; CompileRun("function get_loop() { for (var i = 0; i < 10; i++) o.f }"); CompileRun("function set_loop() { for (var i = 0; i < 10; i++) o.f = 2 }"); CompileRun("get_loop(); set_loop();"); // Initialize ICs. // Run with breakpoint. bp = SetBreakPoint(function, 0); CompileRun("o.f = 3"); CHECK_EQ(1, break_point_hit_count); CompileRun("o.f"); CHECK_EQ(2, break_point_hit_count); CompileRun("for (var i = 0; i < 10; i++) o.f"); CHECK_EQ(12, break_point_hit_count); CompileRun("get_loop();"); CHECK_EQ(22, break_point_hit_count); CompileRun("for (var i = 0; i < 10; i++) o.f = 2"); CHECK_EQ(32, break_point_hit_count); CompileRun("set_loop();"); CHECK_EQ(42, break_point_hit_count); // Test that the break point also works when we install the function // template on a new property (with a fresh AccessorPair instance). v8::Local<v8::ObjectTemplate> baz_template = v8::ObjectTemplate::New(env->GetIsolate()); baz_template->SetAccessorProperty(v8_str("g"), accessor_template, accessor_template); v8::Local<v8::Object> baz = baz_template->NewInstance(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("b"), baz).ToChecked(); CompileRun("b.g = 4"); CHECK_EQ(43, break_point_hit_count); CompileRun("b.g"); CHECK_EQ(44, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("o.f = 3"); CompileRun("o.f"); CHECK_EQ(44, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(Regress1163547) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; auto constructor_tmpl = v8::FunctionTemplate::New(env->GetIsolate()); auto prototype_tmpl = constructor_tmpl->PrototypeTemplate(); auto accessor_tmpl = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); prototype_tmpl->SetAccessorProperty(v8_str("f"), accessor_tmpl); auto constructor = constructor_tmpl->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("C"), constructor).ToChecked(); CompileRun("o = new C();"); v8::Local<v8::Function> function = CompileRun("Object.getOwnPropertyDescriptor(C.prototype, 'f').get") .As<v8::Function>(); // === Test API accessor === break_point_hit_count = 0; // At this point, the C.prototype - which holds the "f" accessor - is in // dictionary mode. auto constructor_fun = Handle<i::JSFunction>::cast(v8::Utils::OpenHandle(*constructor)); CHECK(!i::JSObject::cast(constructor_fun->prototype()).HasFastProperties()); // Run with breakpoint. bp = SetBreakPoint(function, 0); CompileRun("o.f"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointOnLazyAccessorInNewContexts) { // Check that breakpoints on a lazy accessor still get hit after creating new // contexts. // Regression test for parts of http://crbug.com/1368554. v8::Isolate* isolate = CcTest::isolate(); v8::HandleScope scope(isolate); DebugEventCounter delegate; v8::debug::SetDebugDelegate(isolate, &delegate); auto accessor_tmpl = v8::FunctionTemplate::New(isolate, NoOpFunctionCallback); accessor_tmpl->SetClassName(v8_str("get f")); auto object_tmpl = v8::ObjectTemplate::New(isolate); object_tmpl->SetAccessorProperty(v8_str("f"), accessor_tmpl); { v8::Local<v8::Context> context1 = v8::Context::New(isolate); context1->Global() ->Set(context1, v8_str("o"), object_tmpl->NewInstance(context1).ToLocalChecked()) .ToChecked(); v8::Context::Scope context_scope(context1); // 1. Set the breakpoint v8::Local<v8::Function> function = CompileRun(context1, "Object.getOwnPropertyDescriptor(o, 'f').get") .ToLocalChecked() .As<v8::Function>(); SetBreakPoint(function, 0); // 2. Run and check that we hit the breakpoint break_point_hit_count = 0; CompileRun(context1, "o.f"); CHECK_EQ(1, break_point_hit_count); } { // Create a second context and check that we also hit the breakpoint // without setting it again. v8::Local<v8::Context> context2 = v8::Context::New(isolate); context2->Global() ->Set(context2, v8_str("o"), object_tmpl->NewInstance(context2).ToLocalChecked()) .ToChecked(); v8::Context::Scope context_scope(context2); CompileRun(context2, "o.f"); CHECK_EQ(2, break_point_hit_count); } { // Create a third context, but this time we use a global template instead // and let the bootstrapper initialize "o" instead. auto global_tmpl = v8::ObjectTemplate::New(isolate); global_tmpl->Set(v8_str("o"), object_tmpl); v8::Local<v8::Context> context3 = v8::Context::New(isolate, nullptr, global_tmpl); v8::Context::Scope context_scope(context3); CompileRun(context3, "o.f"); CHECK_EQ(3, break_point_hit_count); } v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointInlineApiFunction) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); i::Handle<i::BreakPoint> bp; v8::Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(env->GetIsolate(), NoOpFunctionCallback); v8::Local<v8::Function> function = function_template->GetFunction(env.local()).ToLocalChecked(); env->Global()->Set(env.local(), v8_str("f"), function).ToChecked(); CompileRun( "function g() { return 1 + f(); };" "%PrepareFunctionForOptimization(g);"); // === Test simple builtin === break_point_hit_count = 0; // Run with breakpoint. bp = SetBreakPoint(function, 0); ExpectInt32("g()", 3); CHECK_EQ(1, break_point_hit_count); ExpectInt32("g()", 3); CHECK_EQ(2, break_point_hit_count); CompileRun("%OptimizeFunctionOnNextCall(g)"); ExpectInt32("g()", 3); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectInt32("g()", 3); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that a break point can be set at a return store location. TEST(BreakPointConditionBuiltin) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> builtin; i::Handle<i::BreakPoint> bp; // === Test global variable === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); CompileRun("var condition = false"); CompileRun("'a'.repeat(10)"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "condition == true"); CompileRun("'b'.repeat(10)"); CHECK_EQ(0, break_point_hit_count); CompileRun("condition = true"); CompileRun("'b'.repeat(10)"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("'b'.repeat(10)"); CHECK_EQ(1, break_point_hit_count); // === Test arguments === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); CompileRun("function f(x) { return 'a'.repeat(x * 2); }"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "arguments[0] == 20"); ExpectString("f(5)", "aaaaaaaaaa"); CHECK_EQ(0, break_point_hit_count); ExpectString("f(10)", "aaaaaaaaaaaaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("f(10)", "aaaaaaaaaaaaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // === Test adapted arguments === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); CompileRun("function f(x) { return 'a'.repeat(x * 2, x); }"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "arguments[1] == 10 && arguments[2] == undefined"); ExpectString("f(5)", "aaaaaaaaaa"); CHECK_EQ(0, break_point_hit_count); ExpectString("f(10)", "aaaaaaaaaaaaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("f(10)", "aaaaaaaaaaaaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // === Test var-arg builtins === break_point_hit_count = 0; builtin = CompileRun("String.fromCharCode").As<v8::Function>(); CompileRun("function f() { return String.fromCharCode(1, 2, 3); }"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "arguments.length == 3 && arguments[1] == 2"); CompileRun("f(1, 2, 3)"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("f(1, 2, 3)"); CHECK_EQ(1, break_point_hit_count); // === Test rest arguments === break_point_hit_count = 0; builtin = CompileRun("String.fromCharCode").As<v8::Function>(); CompileRun("function f(...info) { return String.fromCharCode(...info); }"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "arguments.length == 3 && arguments[1] == 2"); CompileRun("f(1, 2, 3)"); CHECK_EQ(1, break_point_hit_count); ClearBreakPoint(bp); CompileRun("f(1, 3, 3)"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("f(1, 2, 3)"); CHECK_EQ(1, break_point_hit_count); // === Test receiver === break_point_hit_count = 0; builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); CompileRun("function f(x) { return x.repeat(10); }"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. bp = SetBreakPoint(builtin, 0, "this == 'a'"); ExpectString("f('b')", "bbbbbbbbbb"); CHECK_EQ(0, break_point_hit_count); ExpectString("f('a')", "aaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); ExpectString("f('a')", "aaaaaaaaaa"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(BreakPointInlining) { i::v8_flags.allow_natives_syntax = true; break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); break_point_hit_count = 0; v8::Local<v8::Function> inlinee = CompileRun("function f(x) { return x*2; } f").As<v8::Function>(); CompileRun("function test(x) { return 1 + f(x) }"); CompileRun( "%PrepareFunctionForOptimization(test);" "test(0.5); test(0.6);" "%OptimizeFunctionOnNextCall(test); test(0.7);"); CHECK_EQ(0, break_point_hit_count); // Run with breakpoint. i::Handle<i::BreakPoint> bp = SetBreakPoint(inlinee, 0); CompileRun("f(0.1);"); CHECK_EQ(1, break_point_hit_count); CompileRun("test(0.2);"); CHECK_EQ(2, break_point_hit_count); // Re-optimize. CompileRun( "%PrepareFunctionForOptimization(test);" "%OptimizeFunctionOnNextCall(test);"); CompileRun("test(0.3);"); CHECK_EQ(3, break_point_hit_count); // Run without breakpoints. ClearBreakPoint(bp); CompileRun("test(0.3);"); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } static void CallWithBreakPoints(v8::Local<v8::Context> context, v8::Local<v8::Object> recv, v8::Local<v8::Function> f, int break_point_count, int call_count) { break_point_hit_count = 0; for (int i = 0; i < call_count; i++) { f->Call(context, recv, 0, nullptr).ToLocalChecked(); CHECK_EQ((i + 1) * break_point_count, break_point_hit_count); } } // Test GC during break point processing. TEST(GCDuringBreakPointProcessing) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); DebugEventBreakPointCollectGarbage delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> foo; // Test IC store break point with garbage collection. foo = CompileFunction(&env, "function foo(){bar=0;}", "foo"); SetBreakPoint(foo, 0); CallWithBreakPoints(context, env->Global(), foo, 1, 10); // Test IC load break point with garbage collection. foo = CompileFunction(&env, "bar=1;function foo(){var x=bar;}", "foo"); SetBreakPoint(foo, 0); CallWithBreakPoints(context, env->Global(), foo, 1, 10); // Test IC call break point with garbage collection. foo = CompileFunction(&env, "function bar(){};function foo(){bar();}", "foo"); SetBreakPoint(foo, 0); CallWithBreakPoints(context, env->Global(), foo, 1, 10); // Test return break point with garbage collection. foo = CompileFunction(&env, "function foo(){}", "foo"); SetBreakPoint(foo, 0); CallWithBreakPoints(context, env->Global(), foo, 1, 25); // Test debug break slot break point with garbage collection. foo = CompileFunction(&env, "function foo(){var a;}", "foo"); SetBreakPoint(foo, 0); CallWithBreakPoints(context, env->Global(), foo, 1, 25); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Call the function three times with different garbage collections in between // and make sure that the break point survives. static void CallAndGC(v8::Local<v8::Context> context, v8::Local<v8::Object> recv, v8::Local<v8::Function> f) { break_point_hit_count = 0; for (int i = 0; i < 3; i++) { // Call function. f->Call(context, recv, 0, nullptr).ToLocalChecked(); CHECK_EQ(1 + i * 3, break_point_hit_count); // Scavenge and call function. CcTest::CollectGarbage(v8::internal::NEW_SPACE); f->Call(context, recv, 0, nullptr).ToLocalChecked(); CHECK_EQ(2 + i * 3, break_point_hit_count); // Mark sweep (and perhaps compact) and call function. CcTest::CollectAllGarbage(); f->Call(context, recv, 0, nullptr).ToLocalChecked(); CHECK_EQ(3 + i * 3, break_point_hit_count); } } // Test that a break point can be set at a return store location. TEST(BreakPointSurviveGC) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Function> foo; // Test IC store break point with garbage collection. { CompileFunction(&env, "function foo(){}", "foo"); foo = CompileFunction(&env, "function foo(){bar=0;}", "foo"); SetBreakPoint(foo, 0); } CallAndGC(context, env->Global(), foo); // Test IC load break point with garbage collection. { CompileFunction(&env, "function foo(){}", "foo"); foo = CompileFunction(&env, "bar=1;function foo(){var x=bar;}", "foo"); SetBreakPoint(foo, 0); } CallAndGC(context, env->Global(), foo); // Test IC call break point with garbage collection. { CompileFunction(&env, "function foo(){}", "foo"); foo = CompileFunction(&env, "function bar(){};function foo(){bar();}", "foo"); SetBreakPoint(foo, 0); } CallAndGC(context, env->Global(), foo); // Test return break point with garbage collection. { CompileFunction(&env, "function foo(){}", "foo"); foo = CompileFunction(&env, "function foo(){}", "foo"); SetBreakPoint(foo, 0); } CallAndGC(context, env->Global(), foo); // Test non IC break point with garbage collection. { CompileFunction(&env, "function foo(){}", "foo"); foo = CompileFunction(&env, "function foo(){var bar=0;}", "foo"); SetBreakPoint(foo, 0); } CallAndGC(context, env->Global(), foo); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that the debugger statement causes a break. TEST(DebuggerStatement) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); v8::Script::Compile(context, v8_str(env->GetIsolate(), "function bar(){debugger}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Script::Compile( context, v8_str(env->GetIsolate(), "function foo(){debugger;debugger;}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "foo")) .ToLocalChecked()); v8::Local<v8::Function> bar = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "bar")) .ToLocalChecked()); // Run function with debugger statement bar->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); // Run function with two debugger statement foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test setting a breakpoint on the debugger statement. TEST(DebuggerStatementBreakpoint) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Script::Compile(context, v8_str(env->GetIsolate(), "function foo(){debugger;}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "foo")) .ToLocalChecked()); // The debugger statement triggers breakpoint hit foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0); // Set breakpoint does not duplicate hits foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); ClearBreakPoint(bp); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that the conditional breakpoints work event if code generation from // strings is prohibited in the debugee context. TEST(ConditionalBreakpointWithCodeGenerationDisallowed) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(x) {\n" " var s = 'String value2';\n" " return s + x;\n" "}", "foo"); // Set conditional breakpoint with condition 'true'. SetBreakPoint(foo, 4, "true"); break_point_hit_count = 0; env->AllowCodeGenerationFromStrings(false); foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Simple test of the stepping mechanism using only store ICs. TEST(DebugStepLinear) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){a=1;b=1;c=1;}", "foo"); // Run foo to allow it to get optimized. CompileRun("a=0; b=0; c=0; foo();"); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); SetBreakPoint(foo, 3); run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Context> context = env.local(); foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(4, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); SetBreakPoint(foo, 3); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only active break points are hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test of the stepping mechanism for keyed load in a loop. TEST(DebugStepKeyedLoadLoop) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); // Create a function for testing stepping of keyed load. The statement 'y=1' // is there to have more than one breakable statement in the loop, TODO(315). v8::Local<v8::Function> foo = CompileFunction( &env, "function foo(a) {\n" " var x;\n" " var len = a.length;\n" " for (var i = 0; i < len; i++) {\n" " y = 1;\n" " x = a[i];\n" " }\n" "}\n" "y=0\n", "foo"); v8::Local<v8::Context> context = env.local(); // Create array [0,1,2,3,4,5,6,7,8,9] v8::Local<v8::Array> a = v8::Array::New(env->GetIsolate(), 10); for (int i = 0; i < 10; i++) { CHECK(a->Set(context, v8::Number::New(env->GetIsolate(), i), v8::Number::New(env->GetIsolate(), i)) .FromJust()); } // Call function without any break points to ensure inlining is in place. const int kArgc = 1; v8::Local<v8::Value> args[kArgc] = {a}; foo->Call(context, env->Global(), kArgc, args).ToLocalChecked(); // Set up break point and step through the function. SetBreakPoint(foo, 3); run_step.set_step_action(StepOver); break_point_hit_count = 0; foo->Call(context, env->Global(), kArgc, args).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(44, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test of the stepping mechanism for keyed store in a loop. TEST(DebugStepKeyedStoreLoop) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); // Create a function for testing stepping of keyed store. The statement 'y=1' // is there to have more than one breakable statement in the loop, TODO(315). v8::Local<v8::Function> foo = CompileFunction( &env, "function foo(a) {\n" " var len = a.length;\n" " for (var i = 0; i < len; i++) {\n" " y = 1;\n" " a[i] = 42;\n" " }\n" "}\n" "y=0\n", "foo"); v8::Local<v8::Context> context = env.local(); // Create array [0,1,2,3,4,5,6,7,8,9] v8::Local<v8::Array> a = v8::Array::New(env->GetIsolate(), 10); for (int i = 0; i < 10; i++) { CHECK(a->Set(context, v8::Number::New(env->GetIsolate(), i), v8::Number::New(env->GetIsolate(), i)) .FromJust()); } // Call function without any break points to ensure inlining is in place. const int kArgc = 1; v8::Local<v8::Value> args[kArgc] = {a}; foo->Call(context, env->Global(), kArgc, args).ToLocalChecked(); // Set up break point and step through the function. SetBreakPoint(foo, 3); run_step.set_step_action(StepOver); break_point_hit_count = 0; foo->Call(context, env->Global(), kArgc, args).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(44, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test of the stepping mechanism for named load in a loop. TEST(DebugStepNamedLoadLoop) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping of named load. v8::Local<v8::Function> foo = CompileFunction( &env, "function foo() {\n" " var a = [];\n" " var s = \"\";\n" " for (var i = 0; i < 10; i++) {\n" " var v = new V(i, i + 1);\n" " v.y;\n" " a.length;\n" // Special case: array length. " s.length;\n" // Special case: string length. " }\n" "}\n" "function V(x, y) {\n" " this.x = x;\n" " this.y = y;\n" "}\n", "foo"); // Call function without any break points to ensure inlining is in place. foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Set up break point and step through the function. SetBreakPoint(foo, 4); run_step.set_step_action(StepOver); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(65, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } static void DoDebugStepNamedStoreLoop(int expected) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); // Create a function for testing stepping of named store. v8::Local<v8::Context> context = env.local(); v8::Local<v8::Function> foo = CompileFunction( &env, "function foo() {\n" " var a = {a:1};\n" " for (var i = 0; i < 10; i++) {\n" " a.a = 2\n" " }\n" "}\n", "foo"); // Call function without any break points to ensure inlining is in place. foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Set up break point and step through the function. SetBreakPoint(foo, 3); run_step.set_step_action(StepOver); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all expected break locations are hit. CHECK_EQ(expected, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test of the stepping mechanism for named load in a loop. TEST(DebugStepNamedStoreLoop) { DoDebugStepNamedStoreLoop(34); } // Test the stepping mechanism with different ICs. TEST(DebugStepLinearMixedICs) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction(&env, "function bar() {};" "function foo() {" " var x;" " var index='name';" " var y = {};" " a=1;b=2;x=a;y[index]=3;x=y[index];bar();}", "foo"); // Run functions to allow them to get optimized. CompileRun("a=0; b=0; bar(); foo();"); SetBreakPoint(foo, 0); run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(10, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); SetBreakPoint(foo, 0); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only active break points are hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepDeclarations) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const char* src = "function foo() { " " var a;" " var b = 1;" " var c = foo;" " var d = Math.floor;" " var e = b + d(1.2);" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 0); // Stepping through the declarations. run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(5, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepLocals) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const char* src = "function foo() { " " var a,b;" " a = 1;" " b = a + 2;" " b = 1 + 2 + 3;" " a = Math.floor(b);" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 0); // Stepping through the declarations. run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(5, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepIf) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " a = 1;" " if (x) {" " b = 1;" " } else {" " c = 1;" " d = 1;" " }" "}" "a=0; b=0; c=0; d=0; foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 0); // Stepping through the true part. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_true[argc] = {v8::True(isolate)}; foo->Call(context, env->Global(), argc, argv_true).ToLocalChecked(); CHECK_EQ(4, break_point_hit_count); // Stepping through the false part. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_false[argc] = {v8::False(isolate)}; foo->Call(context, env->Global(), argc, argv_false).ToLocalChecked(); CHECK_EQ(5, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepSwitch) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " a = 1;" " switch (x) {" " case 1:" " b = 1;" " case 2:" " c = 1;" " break;" " case 3:" " d = 1;" " e = 1;" " f = 1;" " break;" " }" "}" "a=0; b=0; c=0; d=0; e=0; f=0; foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 0); // One case with fall-through. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_1[argc] = {v8::Number::New(isolate, 1)}; foo->Call(context, env->Global(), argc, argv_1).ToLocalChecked(); CHECK_EQ(6, break_point_hit_count); // Another case. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_2[argc] = {v8::Number::New(isolate, 2)}; foo->Call(context, env->Global(), argc, argv_2).ToLocalChecked(); CHECK_EQ(5, break_point_hit_count); // Last case. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_3[argc] = {v8::Number::New(isolate, 3)}; foo->Call(context, env->Global(), argc, argv_3).ToLocalChecked(); CHECK_EQ(7, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepWhile) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " var a = 0;" " while (a < x) {" " a++;" " }" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 8); // "var a = 0;" // Looping 0 times. We still should break at the while-condition once. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_0[argc] = {v8::Number::New(isolate, 0)}; foo->Call(context, env->Global(), argc, argv_0).ToLocalChecked(); CHECK_EQ(3, break_point_hit_count); // Looping 10 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_10[argc] = {v8::Number::New(isolate, 10)}; foo->Call(context, env->Global(), argc, argv_10).ToLocalChecked(); CHECK_EQ(23, break_point_hit_count); // Looping 100 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_100[argc] = {v8::Number::New(isolate, 100)}; foo->Call(context, env->Global(), argc, argv_100).ToLocalChecked(); CHECK_EQ(203, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepDoWhile) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " var a = 0;" " do {" " a++;" " } while (a < x)" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 8); // "var a = 0;" // Looping 0 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_0[argc] = {v8::Number::New(isolate, 0)}; foo->Call(context, env->Global(), argc, argv_0).ToLocalChecked(); CHECK_EQ(4, break_point_hit_count); // Looping 10 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_10[argc] = {v8::Number::New(isolate, 10)}; foo->Call(context, env->Global(), argc, argv_10).ToLocalChecked(); CHECK_EQ(22, break_point_hit_count); // Looping 100 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_100[argc] = {v8::Number::New(isolate, 100)}; foo->Call(context, env->Global(), argc, argv_100).ToLocalChecked(); CHECK_EQ(202, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepFor) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " a = 1;" " for (i = 0; i < x; i++) {" " b = 1;" " }" "}" "a=0; b=0; i=0; foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 8); // "a = 1;" // Looping 0 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_0[argc] = {v8::Number::New(isolate, 0)}; foo->Call(context, env->Global(), argc, argv_0).ToLocalChecked(); CHECK_EQ(4, break_point_hit_count); // Looping 10 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_10[argc] = {v8::Number::New(isolate, 10)}; foo->Call(context, env->Global(), argc, argv_10).ToLocalChecked(); CHECK_EQ(34, break_point_hit_count); // Looping 100 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_100[argc] = {v8::Number::New(isolate, 100)}; foo->Call(context, env->Global(), argc, argv_100).ToLocalChecked(); CHECK_EQ(304, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepForContinue) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " var a = 0;" " var b = 0;" " var c = 0;" " for (var i = 0; i < x; i++) {" " a++;" " if (a % 2 == 0) continue;" " b++;" " c++;" " }" " return b;" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8::Local<v8::Value> result; SetBreakPoint(foo, 8); // "var a = 0;" // Each loop generates 4 or 5 steps depending on whether a is equal. // Looping 10 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_10[argc] = {v8::Number::New(isolate, 10)}; result = foo->Call(context, env->Global(), argc, argv_10).ToLocalChecked(); CHECK_EQ(5, result->Int32Value(context).FromJust()); CHECK_EQ(62, break_point_hit_count); // Looping 100 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_100[argc] = {v8::Number::New(isolate, 100)}; result = foo->Call(context, env->Global(), argc, argv_100).ToLocalChecked(); CHECK_EQ(50, result->Int32Value(context).FromJust()); CHECK_EQ(557, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepForBreak) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const int argc = 1; const char* src = "function foo(x) { " " var a = 0;" " var b = 0;" " var c = 0;" " for (var i = 0; i < 1000; i++) {" " a++;" " if (a == x) break;" " b++;" " c++;" " }" " return b;" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8::Local<v8::Value> result; SetBreakPoint(foo, 8); // "var a = 0;" // Each loop generates 5 steps except for the last (when break is executed) // which only generates 4. // Looping 10 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_10[argc] = {v8::Number::New(isolate, 10)}; result = foo->Call(context, env->Global(), argc, argv_10).ToLocalChecked(); CHECK_EQ(9, result->Int32Value(context).FromJust()); CHECK_EQ(64, break_point_hit_count); // Looping 100 times. run_step.set_step_action(StepInto); break_point_hit_count = 0; v8::Local<v8::Value> argv_100[argc] = {v8::Number::New(isolate, 100)}; result = foo->Call(context, env->Global(), argc, argv_100).ToLocalChecked(); CHECK_EQ(99, result->Int32Value(context).FromJust()); CHECK_EQ(604, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepForIn) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. v8::Local<v8::Function> foo; const char* src_1 = "function foo() { " " var a = [1, 2];" " for (x in a) {" " b = 0;" " }" "}" "foo()"; foo = CompileFunction(&env, src_1, "foo"); SetBreakPoint(foo, 0); // "var a = ..." run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(8, break_point_hit_count); // Create a function for testing stepping. Run it to allow it to get // optimized. const char* src_2 = "function foo() { " " var a = {a:[1, 2, 3]};" " for (x in a.a) {" " b = 0;" " }" "}" "foo()"; foo = CompileFunction(&env, src_2, "foo"); SetBreakPoint(foo, 0); // "var a = ..." run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(10, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugStepWith) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const char* src = "function foo(x) { " " var a = {};" " with (a) {}" " with (b) {}" "}" "foo()"; CHECK(env->Global() ->Set(context, v8_str(env->GetIsolate(), "b"), v8::Object::New(env->GetIsolate())) .FromJust()); v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 8); // "var a = {};" run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(4, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugConditional) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. Run it to allow it to get // optimized. const char* src = "function foo(x) { " " return x ? 1 : 2;" "}" "foo()"; v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); SetBreakPoint(foo, 0); // "var a;" run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); run_step.set_step_action(StepInto); break_point_hit_count = 0; const int argc = 1; v8::Local<v8::Value> argv_true[argc] = {v8::True(isolate)}; foo->Call(context, env->Global(), argc, argv_true).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that step in does not step into native functions. TEST(DebugStepNatives) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){debugger;Math.sin(1);}", "foo"); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(3, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only active break points are hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that step in works with function.apply. TEST(DebugStepFunctionApply) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction(&env, "function bar(x, y, z) { if (x == 1) { a = y; b = z; } }" "function foo(){ debugger; bar.apply(this, [1,2,3]); }", "foo"); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); v8::Local<v8::Context> context = env.local(); run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // With stepping all break locations are hit. CHECK_EQ(7, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only the debugger statement is hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that step in works with function.call. TEST(DebugStepFunctionCall) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction( &env, "function bar(x, y, z) { if (x == 1) { a = y; b = z; } }" "function foo(a){ debugger;" " if (a) {" " bar.call(this, 1, 2, 3);" " } else {" " bar.call(this, 0);" " }" "}", "foo"); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); run_step.set_step_action(StepInto); // Check stepping where the if condition in bar is false. break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(6, break_point_hit_count); // Check stepping where the if condition in bar is true. break_point_hit_count = 0; const int argc = 1; v8::Local<v8::Value> argv[argc] = {v8::True(isolate)}; foo->Call(context, env->Global(), argc, argv).ToLocalChecked(); CHECK_EQ(8, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only the debugger statement is hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } // Test that step in works with Function.call.apply. TEST(DebugStepFunctionCallApply) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. v8::Local<v8::Function> foo = CompileFunction(&env, "function bar() { }" "function foo(){ debugger;" " Function.call.apply(bar);" " Function.call.apply(Function.call, " "[Function.call, bar]);" "}", "foo"); // Register a debug event listener which steps and counts. DebugEventCounter run_step; v8::debug::SetDebugDelegate(env->GetIsolate(), &run_step); run_step.set_step_action(StepInto); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(6, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Register a debug event listener which just counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Without stepping only the debugger statement is hit. CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } // Tests that breakpoint will be hit if it's set in script. TEST(PauseInScript) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); i::Isolate* isolate = reinterpret_cast<i::Isolate*>(env->GetIsolate()); // Register a debug event listener which counts. DebugEventCounter event_counter; v8::debug::SetDebugDelegate(env->GetIsolate(), &event_counter); v8::Local<v8::Context> context = env.local(); // Create a script that returns a function. const char* src = "(function (evt) {})"; const char* script_name = "StepInHandlerTest"; v8::ScriptOrigin origin(env->GetIsolate(), v8_str(env->GetIsolate(), script_name)); v8::Local<v8::Script> script = v8::Script::Compile(context, v8_str(env->GetIsolate(), src), &origin) .ToLocalChecked(); // Set breakpoint in the script. i::Handle<i::Script> i_script( i::Script::cast(v8::Utils::OpenHandle(*script)->shared().script()), isolate); i::Handle<i::String> condition = isolate->factory()->empty_string(); int position = 0; int id; isolate->debug()->SetBreakPointForScript(i_script, condition, &position, &id); break_point_hit_count = 0; v8::Local<v8::Value> r = script->Run(context).ToLocalChecked(); CHECK(r->IsFunction()); CHECK_EQ(1, break_point_hit_count); // Get rid of the debug delegate. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } int message_callback_count = 0; TEST(DebugBreak) { i::v8_flags.stress_compaction = false; #ifdef VERIFY_HEAP i::v8_flags.verify_heap = true; #endif LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which sets the break flag and counts. DebugEventBreak delegate; v8::debug::SetDebugDelegate(isolate, &delegate); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. const char* src = "function f0() {}" "function f1(x1) {}" "function f2(x1,x2) {}" "function f3(x1,x2,x3) {}"; v8::Local<v8::Function> f0 = CompileFunction(&env, src, "f0"); v8::Local<v8::Function> f1 = CompileFunction(&env, src, "f1"); v8::Local<v8::Function> f2 = CompileFunction(&env, src, "f2"); v8::Local<v8::Function> f3 = CompileFunction(&env, src, "f3"); // Call the function to make sure it is compiled. v8::Local<v8::Value> argv[] = { v8::Number::New(isolate, 1), v8::Number::New(isolate, 1), v8::Number::New(isolate, 1), v8::Number::New(isolate, 1)}; // Call all functions to make sure that they are compiled. f0->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); f1->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); f2->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); f3->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Set the debug break flag. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); // Call all functions with different argument count. break_point_hit_count = 0; for (unsigned int i = 0; i < arraysize(argv); i++) { f0->Call(context, env->Global(), i, argv).ToLocalChecked(); f1->Call(context, env->Global(), i, argv).ToLocalChecked(); f2->Call(context, env->Global(), i, argv).ToLocalChecked(); f3->Call(context, env->Global(), i, argv).ToLocalChecked(); } // One break for each function called. CHECK_EQ(4 * arraysize(argv), break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } class DebugScopingListener : public v8::debug::DebugDelegate { public: void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught, v8::debug::ExceptionType exception_type) override { break_count_++; auto stack_traces = v8::debug::StackTraceIterator::Create(CcTest::isolate()); v8::debug::Location location = stack_traces->GetSourceLocation(); CHECK_EQ(26, location.GetColumnNumber()); CHECK_EQ(0, location.GetLineNumber()); auto scopes = stack_traces->GetScopeIterator(); CHECK_EQ(v8::debug::ScopeIterator::ScopeTypeWith, scopes->GetType()); CHECK_EQ(20, scopes->GetStartLocation().GetColumnNumber()); CHECK_EQ(31, scopes->GetEndLocation().GetColumnNumber()); scopes->Advance(); CHECK_EQ(v8::debug::ScopeIterator::ScopeTypeLocal, scopes->GetType()); CHECK_EQ(0, scopes->GetStartLocation().GetColumnNumber()); CHECK_EQ(68, scopes->GetEndLocation().GetColumnNumber()); scopes->Advance(); CHECK_EQ(v8::debug::ScopeIterator::ScopeTypeGlobal, scopes->GetType()); scopes->Advance(); CHECK(scopes->Done()); } unsigned break_count() const { return break_count_; } private: unsigned break_count_ = 0; }; TEST(DebugBreakInWrappedScript) { i::v8_flags.stress_compaction = false; #ifdef VERIFY_HEAP i::v8_flags.verify_heap = true; #endif LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which sets the break flag and counts. DebugScopingListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); static const char* source = // 0 1 2 3 4 5 6 7 "try { with({o : []}){ o[0](); } } catch (e) { return e.toString(); }"; static const char* expect = "TypeError: o[0] is not a function"; // For this test, we want to break on uncaught exceptions: ChangeBreakOnException(isolate, true, true); { v8::ScriptCompiler::Source script_source(v8_str(source)); v8::Local<v8::Function> fun = v8::ScriptCompiler::CompileFunction(env.local(), &script_source) .ToLocalChecked(); v8::Local<v8::Value> result = fun->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK(result->IsString()); CHECK(v8::Local<v8::String>::Cast(result) ->Equals(env.local(), v8_str(expect)) .FromJust()); } // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CHECK_EQ(1, delegate.break_count()); CheckDebuggerUnloaded(); } static void EmptyHandler(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); } TEST(DebugScopeIteratorWithFunctionTemplate) { LocalContext env; v8::HandleScope handle_scope(env->GetIsolate()); v8::Isolate* isolate = env->GetIsolate(); EnableDebugger(isolate); v8::Local<v8::Function> func = v8::Function::New(env.local(), EmptyHandler).ToLocalChecked(); std::unique_ptr<v8::debug::ScopeIterator> iterator = v8::debug::ScopeIterator::CreateForFunction(isolate, func); CHECK(iterator->Done()); DisableDebugger(isolate); } TEST(DebugBreakWithoutJS) { i::v8_flags.stress_compaction = false; #ifdef VERIFY_HEAP i::v8_flags.verify_heap = true; #endif LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::Local<v8::Context> context = env.local(); // Register a debug event listener which sets the break flag and counts. DebugEventBreak delegate; v8::debug::SetDebugDelegate(isolate, &delegate); // Set the debug break flag. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); v8::Local<v8::String> json = v8_str("[1]"); v8::Local<v8::Value> parsed = v8::JSON::Parse(context, json).ToLocalChecked(); CHECK(v8::JSON::Stringify(context, parsed) .ToLocalChecked() ->Equals(context, json) .FromJust()); CHECK_EQ(0, break_point_hit_count); CompileRun(""); CHECK_EQ(1, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test to ensure that JavaScript code keeps running while the debug break // through the stack limit flag is set but breaks are disabled. TEST(DisableBreak) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which sets the break flag and counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); // Create a function for testing stepping. const char* src = "function f() {g()};function g(){i=0; while(i<10){i++}}"; v8::Local<v8::Function> f = CompileFunction(&env, src, "f"); // Set, test and cancel debug break. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); v8::debug::ClearBreakOnNextFunctionCall(env->GetIsolate()); // Set the debug break flag. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); // Call all functions with different argument count. break_point_hit_count = 0; f->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); { v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); i::Isolate* isolate = reinterpret_cast<i::Isolate*>(env->GetIsolate()); v8::internal::DisableBreak disable_break(isolate->debug()); f->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); } f->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DisableDebuggerStatement) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug event listener which sets the break flag and counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRun("debugger;"); CHECK_EQ(1, break_point_hit_count); // Check that we ignore debugger statement when breakpoints aren't active. i::Isolate* isolate = reinterpret_cast<i::Isolate*>(env->GetIsolate()); isolate->debug()->set_break_points_active(false); CompileRun("debugger;"); CHECK_EQ(1, break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); } static const char* kSimpleExtensionSource = "(function Foo() {" " return 4;" "})() "; // http://crbug.com/28933 // Test that debug break is disabled when bootstrapper is active. TEST(NoBreakWhenBootstrapping) { v8::Isolate* isolate = CcTest::isolate(); v8::HandleScope scope(isolate); // Register a debug event listener which sets the break flag and counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(isolate, &delegate); // Set the debug break flag. v8::debug::SetBreakOnNextFunctionCall(isolate); break_point_hit_count = 0; { // Create a context with an extension to make sure that some JavaScript // code is executed during bootstrapping. v8::RegisterExtension( std::make_unique<v8::Extension>("simpletest", kSimpleExtensionSource)); const char* extension_names[] = { "simpletest" }; v8::ExtensionConfiguration extensions(1, extension_names); v8::HandleScope handle_scope(isolate); v8::Context::New(isolate, &extensions); } // Check that no DebugBreak events occurred during the context creation. CHECK_EQ(0, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } TEST(SetDebugEventListenerOnUninitializedVM) { v8::HandleScope scope(CcTest::isolate()); EnableDebugger(CcTest::isolate()); } // Test that clearing the debug event listener actually clears all break points // and related information. TEST(DebuggerUnload) { LocalContext env; v8::HandleScope handle_scope(env->GetIsolate()); // Check debugger is unloaded before it is used. CheckDebuggerUnloaded(); // Set a debug event listener. break_point_hit_count = 0; DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::HandleScope scope(env->GetIsolate()); // Create a couple of functions for the test. v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(){x=1}", "foo"); v8::Local<v8::Function> bar = CompileFunction(&env, "function bar(){y=2}", "bar"); // Set some break points. SetBreakPoint(foo, 0); SetBreakPoint(foo, 4); SetBreakPoint(bar, 0); SetBreakPoint(bar, 4); // Make sure that the break points are there. break_point_hit_count = 0; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(2, break_point_hit_count); bar->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(4, break_point_hit_count); } // Remove the debug event listener without clearing breakpoints. Do this // outside a handle scope. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } int event_listener_hit_count = 0; // Test for issue http://code.google.com/p/v8/issues/detail?id=289. // Make sure that DebugGetLoadedScripts doesn't return scripts // with disposed external source. class EmptyExternalStringResource : public v8::String::ExternalStringResource { public: EmptyExternalStringResource() { empty_[0] = 0; } ~EmptyExternalStringResource() override = default; size_t length() const override { return empty_.length(); } const uint16_t* data() const override { return empty_.begin(); } private: ::v8::base::EmbeddedVector<uint16_t, 1> empty_; }; TEST(DebugScriptLineEndsAreAscending) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Compile a test script. v8::Local<v8::String> script_source = v8_str(isolate, "function f() {\n" " debugger;\n" "}\n"); v8::ScriptOrigin origin1 = v8::ScriptOrigin(isolate, v8_str(isolate, "name")); v8::Local<v8::Script> script = v8::Script::Compile(env.local(), script_source, &origin1) .ToLocalChecked(); USE(script); Handle<v8::internal::FixedArray> instances; { v8::internal::Debug* debug = CcTest::i_isolate()->debug(); instances = debug->GetLoadedScripts(); } CHECK_GT(instances->length(), 0); for (int i = 0; i < instances->length(); i++) { Handle<v8::internal::Script> new_script = Handle<v8::internal::Script>( v8::internal::Script::cast(instances->get(i)), CcTest::i_isolate()); v8::internal::Script::InitLineEnds(CcTest::i_isolate(), new_script); v8::internal::FixedArray ends = v8::internal::FixedArray::cast(new_script->line_ends()); CHECK_GT(ends.length(), 0); int prev_end = -1; for (int j = 0; j < ends.length(); j++) { const int curr_end = v8::internal::Smi::ToInt(ends.get(j)); CHECK_GT(curr_end, prev_end); prev_end = curr_end; } } } static v8::Local<v8::Context> expected_context; static v8::Local<v8::Value> expected_context_data; class ContextCheckEventListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { CheckContext(); } void ScriptCompiled(v8::Local<v8::debug::Script> script, bool is_live_edited, bool has_compile_error) override { CheckContext(); } void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught, v8::debug::ExceptionType) override { CheckContext(); } bool IsFunctionBlackboxed(v8::Local<v8::debug::Script> script, const v8::debug::Location& start, const v8::debug::Location& end) override { CheckContext(); return false; } private: void CheckContext() { v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext(); CHECK(context == expected_context); CHECK(context->GetEmbedderData(0)->StrictEquals(expected_context_data)); event_listener_hit_count++; } }; // Test which creates two contexts and sets different embedder data on each. // Checks that this data is set correctly and that when the debug event // listener is called the expected context is the one active. TEST(ContextData) { v8::Isolate* isolate = CcTest::isolate(); v8::HandleScope scope(isolate); // Create two contexts. v8::Local<v8::Context> context_1; v8::Local<v8::Context> context_2; v8::Local<v8::ObjectTemplate> global_template = v8::Local<v8::ObjectTemplate>(); v8::Local<v8::Value> global_object = v8::Local<v8::Value>(); context_1 = v8::Context::New(isolate, nullptr, global_template, global_object); context_2 = v8::Context::New(isolate, nullptr, global_template, global_object); ContextCheckEventListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); // Default data value is undefined. CHECK_EQ(0, context_1->GetNumberOfEmbedderDataFields()); CHECK_EQ(0, context_2->GetNumberOfEmbedderDataFields()); // Set and check different data values. v8::Local<v8::String> data_1 = v8_str(isolate, "1"); v8::Local<v8::String> data_2 = v8_str(isolate, "2"); context_1->SetEmbedderData(0, data_1); context_2->SetEmbedderData(0, data_2); CHECK(context_1->GetEmbedderData(0)->StrictEquals(data_1)); CHECK(context_2->GetEmbedderData(0)->StrictEquals(data_2)); // Simple test function which causes a break. const char* source = "function f() { debugger; }"; // Enter and run function in the first context. { v8::Context::Scope context_scope(context_1); expected_context = context_1; expected_context_data = data_1; v8::Local<v8::Function> f = CompileFunction(isolate, source, "f"); f->Call(context_1, context_1->Global(), 0, nullptr).ToLocalChecked(); } // Enter and run function in the second context. { v8::Context::Scope context_scope(context_2); expected_context = context_2; expected_context_data = data_2; v8::Local<v8::Function> f = CompileFunction(isolate, source, "f"); f->Call(context_2, context_2->Global(), 0, nullptr).ToLocalChecked(); } // Two times compile event and two times break event. CHECK_GT(event_listener_hit_count, 3); v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } // Test which creates a context and sets embedder data on it. Checks that this // data is set correctly and that when the debug event listener is called for // break event in an eval statement the expected context is the one returned by // Message.GetEventContext. TEST(EvalContextData) { v8::HandleScope scope(CcTest::isolate()); v8::Local<v8::Context> context_1; v8::Local<v8::ObjectTemplate> global_template = v8::Local<v8::ObjectTemplate>(); context_1 = v8::Context::New(CcTest::isolate(), nullptr, global_template); ContextCheckEventListener delegate; v8::debug::SetDebugDelegate(CcTest::isolate(), &delegate); // Contexts initially do not have embedder data fields. CHECK_EQ(0, context_1->GetNumberOfEmbedderDataFields()); // Set and check a data value. v8::Local<v8::String> data_1 = v8_str(CcTest::isolate(), "1"); context_1->SetEmbedderData(0, data_1); CHECK(context_1->GetEmbedderData(0)->StrictEquals(data_1)); // Simple test function with eval that causes a break. const char* source = "function f() { eval('debugger;'); }"; // Enter and run function in the context. { v8::Context::Scope context_scope(context_1); expected_context = context_1; expected_context_data = data_1; v8::Local<v8::Function> f = CompileFunction(CcTest::isolate(), source, "f"); f->Call(context_1, context_1->Global(), 0, nullptr).ToLocalChecked(); } v8::debug::SetDebugDelegate(CcTest::isolate(), nullptr); // One time compile event and one time break event. CHECK_GT(event_listener_hit_count, 2); CheckDebuggerUnloaded(); } // Debug event listener which counts script compiled events. class ScriptCompiledDelegate : public v8::debug::DebugDelegate { public: void ScriptCompiled(v8::Local<v8::debug::Script>, bool, bool has_compile_error) override { if (!has_compile_error) { after_compile_event_count++; } else { compile_error_event_count++; } } int after_compile_event_count = 0; int compile_error_event_count = 0; }; // Tests that after compile event is sent as many times as there are scripts // compiled. TEST(AfterCompileEventWhenEventListenerIsReset) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); const char* script = "var a=1"; ScriptCompiledDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Script::Compile(context, v8_str(env->GetIsolate(), script)) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); v8::Script::Compile(context, v8_str(env->GetIsolate(), script)) .ToLocalChecked() ->Run(context) .ToLocalChecked(); // Setting listener to nullptr should cause debugger unload. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Compilation cache should be disabled when debugger is active. CHECK_EQ(2, delegate.after_compile_event_count); } // Tests that syntax error event is sent as many times as there are scripts // with syntax error compiled. TEST(SyntaxErrorEventOnSyntaxException) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // For this test, we want to break on uncaught exceptions: ChangeBreakOnException(env->GetIsolate(), false, true); ScriptCompiledDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); // Check initial state. CHECK_EQ(0, delegate.compile_error_event_count); // Throws SyntaxError: Unexpected end of input CHECK( v8::Script::Compile(context, v8_str(env->GetIsolate(), "+++")).IsEmpty()); CHECK_EQ(1, delegate.compile_error_event_count); CHECK(v8::Script::Compile(context, v8_str(env->GetIsolate(), "/sel\\/: \\")) .IsEmpty()); CHECK_EQ(2, delegate.compile_error_event_count); v8::Local<v8::Script> script = v8::Script::Compile(context, v8_str(env->GetIsolate(), "JSON.parse('1234:')")) .ToLocalChecked(); CHECK_EQ(2, delegate.compile_error_event_count); CHECK(script->Run(context).IsEmpty()); CHECK_EQ(3, delegate.compile_error_event_count); v8::Script::Compile(context, v8_str(env->GetIsolate(), "new RegExp('/\\/\\\\');")) .ToLocalChecked(); CHECK_EQ(3, delegate.compile_error_event_count); v8::Script::Compile(context, v8_str(env->GetIsolate(), "throw 1;")) .ToLocalChecked(); CHECK_EQ(3, delegate.compile_error_event_count); } class ExceptionEventCounter : public v8::debug::DebugDelegate { public: void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught, v8::debug::ExceptionType) override { exception_event_count++; } int exception_event_count = 0; }; UNINITIALIZED_TEST(NoBreakOnStackOverflow) { // We must set v8_flags.stack_size before initializing the isolate. i::v8_flags.stack_size = 100; v8::Isolate::CreateParams create_params; create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); v8::Isolate* isolate = v8::Isolate::New(create_params); isolate->Enter(); { LocalContext env(isolate); v8::HandleScope scope(isolate); ChangeBreakOnException(isolate, true, true); ExceptionEventCounter delegate; v8::debug::SetDebugDelegate(isolate, &delegate); CHECK_EQ(0, delegate.exception_event_count); CompileRun( "function f() { return f(); }" "try { f() } catch {}"); CHECK_EQ(0, delegate.exception_event_count); } isolate->Exit(); isolate->Dispose(); } // Tests that break event is sent when event listener is reset. TEST(BreakEventWhenEventListenerIsReset) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); const char* script = "function f() {};"; ScriptCompiledDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Script::Compile(context, v8_str(env->GetIsolate(), script)) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "f")) .ToLocalChecked()); f->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // Setting event listener to nullptr should cause debugger unload. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); // Compilation cache should be disabled when debugger is active. CHECK_EQ(1, delegate.after_compile_event_count); } // Tests that script is reported as compiled when bound to context. TEST(AfterCompileEventOnBindToContext) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope handle_scope(isolate); ScriptCompiledDelegate delegate; v8::debug::SetDebugDelegate(isolate, &delegate); v8::ScriptCompiler::Source script_source( v8::String::NewFromUtf8Literal(isolate, "var a=1")); v8::Local<v8::UnboundScript> unbound = v8::ScriptCompiler::CompileUnboundScript(isolate, &script_source) .ToLocalChecked(); CHECK_EQ(delegate.after_compile_event_count, 0); unbound->BindToCurrentContext(); CHECK_EQ(delegate.after_compile_event_count, 1); v8::debug::SetDebugDelegate(isolate, nullptr); } // Test that if DebugBreak is forced it is ignored when code from // debug-delay.js is executed. TEST(NoDebugBreakInAfterCompileEventListener) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); // Register a debug event listener which sets the break flag and counts. DebugEventCounter delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); // Set the debug break flag. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); // Create a function for testing stepping. const char* src = "function f() { eval('var x = 10;'); } "; v8::Local<v8::Function> f = CompileFunction(&env, src, "f"); // There should be only one break event. CHECK_EQ(1, break_point_hit_count); // Set the debug break flag again. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); f->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // There should be one more break event when the script is evaluated in 'f'. CHECK_EQ(2, break_point_hit_count); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that the debug break flag works with function.apply. TEST(RepeatDebugBreak) { // Test that we can repeatedly set a break without JS execution continuing. LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); // Create a function for testing breaking in apply. v8::Local<v8::Function> foo = CompileFunction(&env, "function foo() {}", "foo"); // Register a debug delegate which repeatedly sets a break and counts. DebugEventBreakMax delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); // Set the debug break flag before calling the code using function.apply. v8::debug::SetBreakOnNextFunctionCall(env->GetIsolate()); // Trigger a break by calling into foo(). break_point_hit_count = 0; max_break_point_hit_count = 10000; foo->Call(context, env->Global(), 0, nullptr).ToLocalChecked(); // When keeping the debug break several break will happen. CHECK_EQ(break_point_hit_count, max_break_point_hit_count); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } // Test that setting the terminate execution flag during debug break processing. static void TestDebugBreakInLoop(const char* loop_head, const char** loop_bodies, const char* loop_tail) { // Receive 10 breaks for each test and then terminate JavaScript execution. static const int kBreaksPerTest = 10; for (int i = 0; loop_bodies[i] != nullptr; i++) { // Perform a lazy deoptimization after various numbers of breaks // have been hit. v8::base::EmbeddedVector<char, 1024> buffer; v8::base::SNPrintF(buffer, "function f() {%s%s%s}", loop_head, loop_bodies[i], loop_tail); i::PrintF("%s\n", buffer.begin()); for (int j = 0; j < 3; j++) { break_point_hit_count_deoptimize = j; if (j == 2) { break_point_hit_count_deoptimize = kBreaksPerTest; } break_point_hit_count = 0; max_break_point_hit_count = kBreaksPerTest; terminate_after_max_break_point_hit = true; // Function with infinite loop. CompileRun(buffer.begin()); // Set the debug break to enter the debugger as soon as possible. v8::debug::SetBreakOnNextFunctionCall(CcTest::isolate()); // Call function with infinite loop. CompileRun("f();"); CHECK_EQ(kBreaksPerTest, break_point_hit_count); CHECK(!CcTest::isolate()->IsExecutionTerminating()); } } } static const char* loop_bodies_1[] = {"", "g()", "if (a == 0) { g() }", "if (a == 1) { g() }", "if (a == 0) { g() } else { h() }", "if (a == 0) { continue }", nullptr}; static const char* loop_bodies_2[] = { "if (a == 1) { continue }", "switch (a) { case 1: g(); }", "switch (a) { case 1: continue; }", "switch (a) { case 1: g(); break; default: h() }", "switch (a) { case 1: continue; break; default: h() }", nullptr}; void DebugBreakLoop(const char* loop_header, const char** loop_bodies, const char* loop_footer) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); // Register a debug delegate which repeatedly sets the break flag and counts. DebugEventBreakMax delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRun( "var a = 1;\n" "function g() { }\n" "function h() { }"); TestDebugBreakInLoop(loop_header, loop_bodies, loop_footer); // Also test with "Scheduled" break reason. break_right_now_reasons = v8::debug::BreakReasons{v8::debug::BreakReason::kScheduled}; TestDebugBreakInLoop(loop_header, loop_bodies, loop_footer); break_right_now_reasons = v8::debug::BreakReasons{}; // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(DebugBreakInWhileTrue1) { DebugBreakLoop("while (true) {", loop_bodies_1, "}"); } TEST(DebugBreakInWhileTrue2) { DebugBreakLoop("while (true) {", loop_bodies_2, "}"); } TEST(DebugBreakInWhileCondition1) { DebugBreakLoop("while (a == 1) {", loop_bodies_1, "}"); } TEST(DebugBreakInWhileCondition2) { DebugBreakLoop("while (a == 1) {", loop_bodies_2, "}"); } TEST(DebugBreakInDoWhileTrue1) { DebugBreakLoop("do {", loop_bodies_1, "} while (true)"); } TEST(DebugBreakInDoWhileTrue2) { DebugBreakLoop("do {", loop_bodies_2, "} while (true)"); } TEST(DebugBreakInDoWhileCondition1) { DebugBreakLoop("do {", loop_bodies_1, "} while (a == 1)"); } TEST(DebugBreakInDoWhileCondition2) { DebugBreakLoop("do {", loop_bodies_2, "} while (a == 1)"); } TEST(DebugBreakInFor1) { DebugBreakLoop("for (;;) {", loop_bodies_1, "}"); } TEST(DebugBreakInFor2) { DebugBreakLoop("for (;;) {", loop_bodies_2, "}"); } TEST(DebugBreakInForCondition1) { DebugBreakLoop("for (;a == 1;) {", loop_bodies_1, "}"); } TEST(DebugBreakInForCondition2) { DebugBreakLoop("for (;a == 1;) {", loop_bodies_2, "}"); } class DebugBreakInlineListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { int expected_frame_count = 4; int expected_line_number[] = {1, 4, 7, 13}; int frame_count = 0; auto iterator = v8::debug::StackTraceIterator::Create(CcTest::isolate()); for (; !iterator->Done(); iterator->Advance(), ++frame_count) { v8::debug::Location loc = iterator->GetSourceLocation(); CHECK_EQ(expected_line_number[frame_count], loc.GetLineNumber()); } CHECK_EQ(frame_count, expected_frame_count); } }; TEST(DebugBreakInline) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::HandleScope scope(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); const char* source = "function debug(b) { \n" " if (b) debugger; \n" "} \n" "function f(b) { \n" " debug(b) \n" "}; \n" "function g(b) { \n" " f(b); \n" "}; \n" "%PrepareFunctionForOptimization(g); \n" "g(false); \n" "g(false); \n" "%OptimizeFunctionOnNextCall(g); \n" "g(true);"; DebugBreakInlineListener delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Script> inline_script = v8::Script::Compile(context, v8_str(env->GetIsolate(), source)) .ToLocalChecked(); inline_script->Run(context).ToLocalChecked(); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); } static void RunScriptInANewCFrame(const char* source) { v8::TryCatch try_catch(CcTest::isolate()); CompileRun(source); CHECK(try_catch.HasCaught()); } TEST(Regress131642) { // Bug description: // When doing StepOver through the first script, the debugger is not reset // after exiting through exception. A flawed implementation enabling the // debugger to step into Array.prototype.forEach breaks inside the callback // for forEach in the second script under the assumption that we are in a // recursive call. In an attempt to step out, we crawl the stack using the // recorded frame pointer from the first script and fail when not finding it // on the stack. LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugEventCounter delegate; delegate.set_step_action(StepOver); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); // We step through the first script. It exits through an exception. We run // this inside a new frame to record a different FP than the second script // would expect. const char* script_1 = "debugger; throw new Error();"; RunScriptInANewCFrame(script_1); // The second script uses forEach. const char* script_2 = "[0].forEach(function() { });"; CompileRun(script_2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); } class DebugBreakStackTraceListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { v8::StackTrace::CurrentStackTrace(CcTest::isolate(), 10); } }; static void AddDebugBreak(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); v8::debug::SetBreakOnNextFunctionCall(info.GetIsolate()); } TEST(DebugBreakStackTrace) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); DebugBreakStackTraceListener delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::FunctionTemplate> add_debug_break_template = v8::FunctionTemplate::New(env->GetIsolate(), AddDebugBreak); v8::Local<v8::Function> add_debug_break = add_debug_break_template->GetFunction(context).ToLocalChecked(); CHECK(env->Global() ->Set(context, v8_str("add_debug_break"), add_debug_break) .FromJust()); CompileRun("(function loop() {" " for (var j = 0; j < 1000; j++) {" " for (var i = 0; i < 1000; i++) {" " if (i == 999) add_debug_break();" " }" " }" "})()"); } v8::base::Semaphore terminate_requested_semaphore(0); v8::base::Semaphore terminate_fired_semaphore(0); class DebugBreakTriggerTerminate : public v8::debug::DebugDelegate { public: void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { if (terminate_already_fired_) return; terminate_requested_semaphore.Signal(); // Wait for at most 2 seconds for the terminate request. CHECK( terminate_fired_semaphore.WaitFor(v8::base::TimeDelta::FromSeconds(2))); terminate_already_fired_ = true; } private: bool terminate_already_fired_ = false; }; class TerminationThread : public v8::base::Thread { public: explicit TerminationThread(v8::Isolate* isolate) : Thread(Options("terminator")), isolate_(isolate) {} void Run() override { terminate_requested_semaphore.Wait(); isolate_->TerminateExecution(); terminate_fired_semaphore.Signal(); } private: v8::Isolate* isolate_; }; TEST(DebugBreakOffThreadTerminate) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); DebugBreakTriggerTerminate delegate; v8::debug::SetDebugDelegate(isolate, &delegate); TerminationThread terminator(isolate); CHECK(terminator.Start()); v8::TryCatch try_catch(env->GetIsolate()); env->GetIsolate()->RequestInterrupt(BreakRightNow, nullptr); CompileRun("while (true);"); CHECK(try_catch.HasTerminated()); } class ArchiveRestoreThread : public v8::base::Thread, public v8::debug::DebugDelegate { public: ArchiveRestoreThread(v8::Isolate* isolate, int spawn_count) : Thread(Options("ArchiveRestoreThread")), isolate_(isolate), debug_(reinterpret_cast<i::Isolate*>(isolate_)->debug()), spawn_count_(spawn_count), break_count_(0) {} void Run() override { { v8::Locker locker(isolate_); v8::Isolate::Scope i_scope(isolate_); v8::HandleScope scope(isolate_); v8::Local<v8::Context> context = v8::Context::New(isolate_); v8::Context::Scope context_scope(context); auto callback = [](const v8::FunctionCallbackInfo<v8::Value>& info) { v8::Local<v8::Value> value = info.Data(); CHECK(value->IsExternal()); auto art = static_cast<ArchiveRestoreThread*>( v8::Local<v8::External>::Cast(value)->Value()); art->MaybeSpawnChildThread(); }; v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New( isolate_, callback, v8::External::New(isolate_, this)); CHECK(context->Global() ->Set(context, v8_str("maybeSpawnChildThread"), fun->GetFunction(context).ToLocalChecked()) .FromJust()); v8::Local<v8::Function> test = CompileFunction(isolate_, "function test(n) {\n" " debugger;\n" " nest();\n" " middle();\n" " return n + 1;\n" " function middle() {\n" " debugger;\n" " nest();\n" " Date.now();\n" " }\n" " function nest() {\n" " maybeSpawnChildThread();\n" " }\n" "}\n", "test"); debug_->SetDebugDelegate(this); v8::internal::DisableBreak enable_break(debug_, false); v8::Local<v8::Value> args[1] = {v8::Integer::New(isolate_, spawn_count_)}; int result = test->Call(context, context->Global(), 1, args) .ToLocalChecked() ->Int32Value(context) .FromJust(); // Verify that test(spawn_count_) returned spawn_count_ + 1. CHECK_EQ(spawn_count_ + 1, result); } } void BreakProgramRequested(v8::Local<v8::Context> context, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { auto stack_traces = v8::debug::StackTraceIterator::Create(isolate_); if (!stack_traces->Done()) { v8::debug::Location location = stack_traces->GetSourceLocation(); i::PrintF("ArchiveRestoreThread #%d hit breakpoint at line %d\n", spawn_count_, location.GetLineNumber()); const int expectedLineNumber[] = {1, 2, 3, 6, 4}; CHECK_EQ(expectedLineNumber[break_count_], location.GetLineNumber()); switch (break_count_) { case 0: // debugger; case 1: // nest(); case 2: // middle(); // Attempt to stop on the next line after the first debugger // statement. If debug->{Archive,Restore}Debug() improperly reset // thread-local debug information, the debugger will fail to stop // before the test function returns. debug_->PrepareStep(StepOver); // Spawning threads while handling the current breakpoint verifies // that the parent thread correctly archived and restored the // state necessary to stop on the next line. If not, then control // will simply continue past the `return n + 1` statement. // // A real world multi-threading app would probably never unlock the // Isolate at a break point as that adds a thread switch point while // debugging where none existed in the application and a // multi-threaded should be able to count on not thread switching // over a certain range of instructions. MaybeSpawnChildThread(); break; case 3: // debugger; in middle(); // Attempt to stop on the next line after the first debugger // statement. If debug->{Archive,Restore}Debug() improperly reset // thread-local debug information, the debugger will fail to stop // before the test function returns. debug_->PrepareStep(StepOut); break; case 4: // return n + 1; break; default: CHECK(false); } } ++break_count_; } void MaybeSpawnChildThread() { if (spawn_count_ > 1) { v8::Unlocker unlocker(isolate_); // Spawn a thread that spawns a thread that spawns a thread (and so // on) so that the ThreadManager is forced to archive and restore // the current thread. ArchiveRestoreThread child(isolate_, spawn_count_ - 1); CHECK(child.Start()); child.Join(); // The child thread sets itself as the debug delegate, so we need to // usurp it after the child finishes, or else future breakpoints // will be delegated to a destroyed ArchiveRestoreThread object. debug_->SetDebugDelegate(this); // This is the most important check in this test, since // child.GetBreakCount() will return 1 if the debugger fails to stop // on the `next()` line after the grandchild thread returns. CHECK_EQ(child.GetBreakCount(), 5); // This test on purpose unlocks the isolate without exiting and // re-entering. It must however update the stack start, which would have // been done automatically if the isolate was properly re-entered. reinterpret_cast<i::Isolate*>(isolate_)->heap()->SetStackStart( v8::base::Stack::GetStackStart()); } } int GetBreakCount() { return break_count_; } private: v8::Isolate* isolate_; v8::internal::Debug* debug_; const int spawn_count_; int break_count_; }; TEST(DebugArchiveRestore) { v8::Isolate* isolate = CcTest::isolate(); ArchiveRestoreThread thread(isolate, 4); // Instead of calling thread.Start() and thread.Join() here, we call // thread.Run() directly, to make sure we exercise archive/restore // logic on the *current* thread as well as other threads. thread.Run(); CHECK_EQ(thread.GetBreakCount(), 5); } class DebugEventExpectNoException : public v8::debug::DebugDelegate { public: void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught, v8::debug::ExceptionType) override { CHECK(false); } }; static void TryCatchWrappedThrowCallback( const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); v8::TryCatch try_catch(info.GetIsolate()); CompileRun("throw 'rejection';"); CHECK(try_catch.HasCaught()); } TEST(DebugPromiseInterceptedByTryCatch) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); DebugEventExpectNoException delegate; v8::debug::SetDebugDelegate(isolate, &delegate); v8::Local<v8::Context> context = env.local(); ChangeBreakOnException(isolate, false, true); v8::Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(isolate, TryCatchWrappedThrowCallback); CHECK(env->Global() ->Set(context, v8_str("fun"), fun->GetFunction(context).ToLocalChecked()) .FromJust()); CompileRun("var p = new Promise(function(res, rej) { fun(); res(); });"); CompileRun( "var r;" "p.then(function() { r = 'resolved'; }," " function() { r = 'rejected'; });"); CHECK(CompileRun("r")->Equals(context, v8_str("resolved")).FromJust()); } class NoInterruptsOnDebugEvent : public v8::debug::DebugDelegate { public: void ScriptCompiled(v8::Local<v8::debug::Script> script, bool is_live_edited, bool has_compile_error) override { ++after_compile_handler_depth_; // Do not allow nested AfterCompile events. CHECK_LE(after_compile_handler_depth_, 1); v8::Isolate* isolate = CcTest::isolate(); v8::Isolate::AllowJavascriptExecutionScope allow_script(isolate); isolate->RequestInterrupt(&HandleInterrupt, this); CompileRun("function foo() {}; foo();"); --after_compile_handler_depth_; } private: static void HandleInterrupt(v8::Isolate* isolate, void* data) { NoInterruptsOnDebugEvent* d = static_cast<NoInterruptsOnDebugEvent*>(data); CHECK_EQ(0, d->after_compile_handler_depth_); } int after_compile_handler_depth_ = 0; }; TEST(NoInterruptsInDebugListener) { LocalContext env; v8::HandleScope handle_scope(env->GetIsolate()); NoInterruptsOnDebugEvent delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRun("void(0);"); } TEST(BreakLocationIterator) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); v8::HandleScope scope(isolate); v8::Local<v8::Value> result = CompileRun( "function f() {\n" " debugger; \n" " f(); \n" " debugger; \n" "} \n" "f"); Handle<i::Object> function_obj = v8::Utils::OpenHandle(*result); Handle<i::JSFunction> function = Handle<i::JSFunction>::cast(function_obj); Handle<i::SharedFunctionInfo> shared(function->shared(), i_isolate); EnableDebugger(isolate); CHECK(i_isolate->debug()->EnsureBreakInfo(shared)); i_isolate->debug()->PrepareFunctionForDebugExecution(shared); Handle<i::DebugInfo> debug_info(shared->GetDebugInfo(), i_isolate); { i::BreakIterator iterator(debug_info); CHECK(iterator.GetBreakLocation().IsDebuggerStatement()); CHECK_EQ(17, iterator.GetBreakLocation().position()); iterator.Next(); CHECK(iterator.GetBreakLocation().IsDebugBreakSlot()); CHECK_EQ(32, iterator.GetBreakLocation().position()); iterator.Next(); CHECK(iterator.GetBreakLocation().IsCall()); CHECK_EQ(32, iterator.GetBreakLocation().position()); iterator.Next(); CHECK(iterator.GetBreakLocation().IsDebuggerStatement()); CHECK_EQ(47, iterator.GetBreakLocation().position()); iterator.Next(); CHECK(iterator.GetBreakLocation().IsReturn()); CHECK_EQ(60, iterator.GetBreakLocation().position()); iterator.Next(); CHECK(iterator.Done()); } DisableDebugger(isolate); } class DebugStepOverFunctionWithCaughtExceptionListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { ++break_point_hit_count; if (break_point_hit_count >= 3) return; PrepareStep(StepOver); } int break_point_hit_count = 0; }; TEST(DebugStepOverFunctionWithCaughtException) { i::v8_flags.allow_natives_syntax = true; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); DebugStepOverFunctionWithCaughtExceptionListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); CompileRun( "function foo() {\n" " try { throw new Error(); } catch (e) {}\n" "}\n" "debugger;\n" "foo();\n" "foo();\n"); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CHECK_EQ(3, delegate.break_point_hit_count); } bool near_heap_limit_callback_called = false; size_t NearHeapLimitCallback(void* data, size_t current_heap_limit, size_t initial_heap_limit) { near_heap_limit_callback_called = true; return initial_heap_limit + 10u * i::MB; } UNINITIALIZED_TEST(DebugSetOutOfMemoryListener) { i::v8_flags.stress_concurrent_allocation = false; v8::Isolate::CreateParams create_params; create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); create_params.constraints.set_max_old_generation_size_in_bytes(10 * i::MB); v8::Isolate* isolate = v8::Isolate::New(create_params); i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); { v8::Isolate::Scope i_scope(isolate); v8::HandleScope scope(isolate); LocalContext context(isolate); isolate->AddNearHeapLimitCallback(NearHeapLimitCallback, nullptr); CHECK(!near_heap_limit_callback_called); // The following allocation fails unless the out-of-memory callback // increases the heap limit. int length = 10 * i::MB / i::kTaggedSize; i_isolate->factory()->NewFixedArray(length, i::AllocationType::kOld); CHECK(near_heap_limit_callback_called); isolate->RemoveNearHeapLimitCallback(NearHeapLimitCallback, 0); } isolate->Dispose(); } TEST(DebugCoverage) { i::v8_flags.always_turbofan = false; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::debug::Coverage::SelectMode(isolate, v8::debug::CoverageMode::kPreciseCount); v8::Local<v8::String> source = v8_str( "function f() {\n" "}\n" "f();\n" "f();"); CompileRun(source); v8::debug::Coverage coverage = v8::debug::Coverage::CollectPrecise(isolate); CHECK_EQ(1u, coverage.ScriptCount()); v8::debug::Coverage::ScriptData script_data = coverage.GetScriptData(0); v8::Local<v8::debug::Script> script = script_data.GetScript(); CHECK(script->Source() ->JavaScriptCode() .ToLocalChecked() ->Equals(env.local(), source) .FromMaybe(false)); CHECK_EQ(2u, script_data.FunctionCount()); v8::debug::Coverage::FunctionData function_data = script_data.GetFunctionData(0); v8::debug::Location start = script->GetSourceLocation(function_data.StartOffset()); v8::debug::Location end = script->GetSourceLocation(function_data.EndOffset()); CHECK_EQ(0, start.GetLineNumber()); CHECK_EQ(0, start.GetColumnNumber()); CHECK_EQ(3, end.GetLineNumber()); CHECK_EQ(4, end.GetColumnNumber()); CHECK_EQ(1, function_data.Count()); function_data = script_data.GetFunctionData(1); start = script->GetSourceLocation(function_data.StartOffset()); end = script->GetSourceLocation(function_data.EndOffset()); CHECK_EQ(0, start.GetLineNumber()); CHECK_EQ(0, start.GetColumnNumber()); CHECK_EQ(1, end.GetLineNumber()); CHECK_EQ(1, end.GetColumnNumber()); CHECK_EQ(2, function_data.Count()); } namespace { v8::debug::Coverage::ScriptData GetScriptDataAndDeleteCoverage( v8::Isolate* isolate) { v8::debug::Coverage coverage = v8::debug::Coverage::CollectPrecise(isolate); CHECK_EQ(1u, coverage.ScriptCount()); return coverage.GetScriptData(0); } } // namespace TEST(DebugCoverageWithCoverageOutOfScope) { i::v8_flags.always_turbofan = false; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::debug::Coverage::SelectMode(isolate, v8::debug::CoverageMode::kPreciseCount); v8::Local<v8::String> source = v8_str( "function f() {\n" "}\n" "f();\n" "f();"); CompileRun(source); v8::debug::Coverage::ScriptData script_data = GetScriptDataAndDeleteCoverage(isolate); v8::Local<v8::debug::Script> script = script_data.GetScript(); CHECK(script->Source() ->JavaScriptCode() .ToLocalChecked() ->Equals(env.local(), source) .FromMaybe(false)); CHECK_EQ(2u, script_data.FunctionCount()); v8::debug::Coverage::FunctionData function_data = script_data.GetFunctionData(0); CHECK_EQ(0, function_data.StartOffset()); CHECK_EQ(26, function_data.EndOffset()); v8::debug::Location start = script->GetSourceLocation(function_data.StartOffset()); v8::debug::Location end = script->GetSourceLocation(function_data.EndOffset()); CHECK_EQ(0, start.GetLineNumber()); CHECK_EQ(0, start.GetColumnNumber()); CHECK_EQ(3, end.GetLineNumber()); CHECK_EQ(4, end.GetColumnNumber()); CHECK_EQ(1, function_data.Count()); function_data = script_data.GetFunctionData(1); start = script->GetSourceLocation(function_data.StartOffset()); end = script->GetSourceLocation(function_data.EndOffset()); CHECK_EQ(0, function_data.StartOffset()); CHECK_EQ(16, function_data.EndOffset()); CHECK_EQ(0, start.GetLineNumber()); CHECK_EQ(0, start.GetColumnNumber()); CHECK_EQ(1, end.GetLineNumber()); CHECK_EQ(1, end.GetColumnNumber()); CHECK_EQ(2, function_data.Count()); } namespace { v8::debug::Coverage::FunctionData GetFunctionDataAndDeleteCoverage( v8::Isolate* isolate) { v8::debug::Coverage coverage = v8::debug::Coverage::CollectPrecise(isolate); CHECK_EQ(1u, coverage.ScriptCount()); v8::debug::Coverage::ScriptData script_data = coverage.GetScriptData(0); CHECK_EQ(2u, script_data.FunctionCount()); v8::debug::Coverage::FunctionData function_data = script_data.GetFunctionData(0); CHECK_EQ(1, function_data.Count()); CHECK_EQ(0, function_data.StartOffset()); CHECK_EQ(26, function_data.EndOffset()); return function_data; } } // namespace TEST(DebugCoverageWithScriptDataOutOfScope) { i::v8_flags.always_turbofan = false; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::debug::Coverage::SelectMode(isolate, v8::debug::CoverageMode::kPreciseCount); v8::Local<v8::String> source = v8_str( "function f() {\n" "}\n" "f();\n" "f();"); CompileRun(source); v8::debug::Coverage::FunctionData function_data = GetFunctionDataAndDeleteCoverage(isolate); CHECK_EQ(1, function_data.Count()); CHECK_EQ(0, function_data.StartOffset()); CHECK_EQ(26, function_data.EndOffset()); } TEST(DebugGetPossibleBreakpointsReturnLocations) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::Local<v8::String> source = v8_str( "function fib(x) {\n" " if (x < 0) return;\n" " if (x === 0) return 1;\n" " if (x === 1) return fib(0);\n" " return x > 2 ? fib(x - 1) + fib(x - 2) : fib(1) + fib(0);\n" "}"); CompileRun(source); std::vector<v8::Global<v8::debug::Script>> scripts; v8::debug::GetLoadedScripts(isolate, scripts); CHECK_EQ(scripts.size(), 1); std::vector<v8::debug::BreakLocation> locations; CHECK(scripts[0].Get(isolate)->GetPossibleBreakpoints( v8::debug::Location(0, 17), v8::debug::Location(), true, &locations)); int returns_count = 0; for (size_t i = 0; i < locations.size(); ++i) { if (locations[i].type() == v8::debug::kReturnBreakLocation) { ++returns_count; } } // With Ignition we generate one return location per return statement, // each has line = 5, column = 0 as statement position. CHECK_EQ(returns_count, 4); } TEST(DebugEvaluateNoSideEffect) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); EnableDebugger(env->GetIsolate()); i::Isolate* isolate = CcTest::i_isolate(); std::vector<i::Handle<i::JSFunction>> all_functions; { i::HeapObjectIterator iterator(isolate->heap()); for (i::HeapObject obj = iterator.Next(); !obj.is_null(); obj = iterator.Next()) { if (!obj.IsJSFunction()) continue; i::JSFunction fun = i::JSFunction::cast(obj); all_functions.emplace_back(fun, isolate); } } // Perform side effect check on all built-in functions. The side effect check // itself contains additional sanity checks. for (i::Handle<i::JSFunction> fun : all_functions) { bool failed = false; isolate->debug()->StartSideEffectCheckMode(); failed = !isolate->debug()->PerformSideEffectCheck( fun, v8::Utils::OpenHandle(*env->Global())); isolate->debug()->StopSideEffectCheckMode(); if (failed) isolate->clear_pending_exception(); } DisableDebugger(env->GetIsolate()); } TEST(DebugEvaluateGlobalSharedCrossOrigin) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::TryCatch tryCatch(isolate); tryCatch.SetCaptureMessage(true); v8::MaybeLocal<v8::Value> result = v8::debug::EvaluateGlobal(isolate, v8_str(isolate, "throw new Error()"), v8::debug::EvaluateGlobalMode::kDefault); CHECK(result.IsEmpty()); CHECK(tryCatch.HasCaught()); CHECK(tryCatch.Message()->IsSharedCrossOrigin()); } TEST(DebugEvaluateLocalSharedCrossOrigin) { struct BreakProgramDelegate : public v8::debug::DebugDelegate { void BreakProgramRequested(v8::Local<v8::Context> context, std::vector<v8::debug::BreakpointId> const&, v8::debug::BreakReasons) final { v8::Isolate* isolate = context->GetIsolate(); v8::TryCatch tryCatch(isolate); tryCatch.SetCaptureMessage(true); std::unique_ptr<v8::debug::StackTraceIterator> it = v8::debug::StackTraceIterator::Create(isolate); v8::MaybeLocal<v8::Value> result = it->Evaluate(v8_str(isolate, "throw new Error()"), false); CHECK(result.IsEmpty()); CHECK(tryCatch.HasCaught()); CHECK(tryCatch.Message()->IsSharedCrossOrigin()); } } delegate; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); v8::debug::SetDebugDelegate(isolate, &delegate); v8::Script::Compile(env.local(), v8_str(isolate, "debugger;")) .ToLocalChecked() ->Run(env.local()) .ToLocalChecked(); v8::debug::SetDebugDelegate(isolate, nullptr); } namespace { i::MaybeHandle<i::Script> FindScript( i::Isolate* isolate, const std::vector<i::Handle<i::Script>>& scripts, const char* name) { Handle<i::String> i_name = isolate->factory()->NewStringFromAsciiChecked(name); for (const auto& script : scripts) { if (!script->name().IsString()) continue; if (i_name->Equals(i::String::cast(script->name()))) return script; } return i::MaybeHandle<i::Script>(); } } // anonymous namespace UNINITIALIZED_TEST(LoadedAtStartupScripts) { i::v8_flags.expose_gc = true; v8::Isolate::CreateParams create_params; create_params.array_buffer_allocator = CcTest::array_buffer_allocator(); v8::Isolate* isolate = v8::Isolate::New(create_params); i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate); { v8::Isolate::Scope i_scope(isolate); v8::HandleScope scope(isolate); LocalContext context(isolate); std::vector<i::Handle<i::Script>> scripts; CompileWithOrigin(v8_str("function foo(){}"), v8_str("normal.js"), false); std::unordered_map<i::Script::Type, int> count_by_type; { i::DisallowGarbageCollection no_gc; i::Script::Iterator iterator(i_isolate); for (i::Script script = iterator.Next(); !script.is_null(); script = iterator.Next()) { if (script.type() == i::Script::Type::kNative && script.name().IsUndefined(i_isolate)) { continue; } ++count_by_type[script.type()]; scripts.emplace_back(script, i_isolate); } } CHECK_EQ(count_by_type[i::Script::Type::kNative], 0); CHECK_EQ(count_by_type[i::Script::Type::kExtension], 1); CHECK_EQ(count_by_type[i::Script::Type::kNormal], 1); #if V8_ENABLE_WEBASSEMBLY CHECK_EQ(count_by_type[i::Script::Type::kWasm], 0); #endif // V8_ENABLE_WEBASSEMBLY CHECK_EQ(count_by_type[i::Script::Type::kInspector], 0); i::Handle<i::Script> gc_script = FindScript(i_isolate, scripts, "v8/gc").ToHandleChecked(); CHECK_EQ(gc_script->type(), i::Script::Type::kExtension); i::Handle<i::Script> normal_script = FindScript(i_isolate, scripts, "normal.js").ToHandleChecked(); CHECK_EQ(normal_script->type(), i::Script::Type::kNormal); } isolate->Dispose(); } TEST(SourceInfo) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); const char* source = "//\n" "function a() { b(); };\n" "function b() {\n" " c(true);\n" "};\n" " function c(x) {\n" " if (x) {\n" " return 1;\n" " } else {\n" " return 1;\n" " }\n" " };\n" "function d(x) {\n" " x = 1 ;\n" " x = 2 ;\n" " x = 3 ;\n" " x = 4 ;\n" " x = 5 ;\n" " x = 6 ;\n" " x = 7 ;\n" " x = 8 ;\n" " x = 9 ;\n" " x = 10;\n" " x = 11;\n" " x = 12;\n" " x = 13;\n" " x = 14;\n" " x = 15;\n" "}\n"; v8::Local<v8::Script> v8_script = v8::Script::Compile(env.local(), v8_str(source)).ToLocalChecked(); i::Handle<i::Script> i_script( i::Script::cast(v8::Utils::OpenHandle(*v8_script)->shared().script()), CcTest::i_isolate()); v8::Local<v8::debug::Script> script = v8::ToApiHandle<v8::debug::Script>(i_script); // Test that when running through source positions the position, line and // column progresses as expected. v8::debug::Location prev_location = script->GetSourceLocation(0); CHECK_EQ(prev_location.GetLineNumber(), 0); CHECK_EQ(prev_location.GetColumnNumber(), 0); for (int offset = 1; offset < 100; ++offset) { v8::debug::Location location = script->GetSourceLocation(offset); if (prev_location.GetLineNumber() == location.GetLineNumber()) { CHECK_EQ(location.GetColumnNumber(), prev_location.GetColumnNumber() + 1); } else { CHECK_EQ(location.GetLineNumber(), prev_location.GetLineNumber() + 1); CHECK_EQ(location.GetColumnNumber(), 0); } prev_location = location; } // Every line of d() is the same length. Verify we can loop through all // positions and find the right line # for each. // The position of the first line of d(), i.e. "x = 1 ;". const int start_line_d = 13; const int start_code_d = static_cast<int>(strstr(source, " x = 1 ;") - source); const int num_lines_d = 15; const int line_length_d = 10; int p = start_code_d; for (int line = 0; line < num_lines_d; ++line) { for (int column = 0; column < line_length_d; ++column) { v8::debug::Location location = script->GetSourceLocation(p); CHECK_EQ(location.GetLineNumber(), start_line_d + line); CHECK_EQ(location.GetColumnNumber(), column); ++p; } } // Test first position. CHECK_EQ(script->GetSourceLocation(0).GetLineNumber(), 0); CHECK_EQ(script->GetSourceLocation(0).GetColumnNumber(), 0); // Test second position. CHECK_EQ(script->GetSourceLocation(1).GetLineNumber(), 0); CHECK_EQ(script->GetSourceLocation(1).GetColumnNumber(), 1); // Test first position in function a(). const int start_a = static_cast<int>(strstr(source, "function a") - source) + 10; CHECK_EQ(script->GetSourceLocation(start_a).GetLineNumber(), 1); CHECK_EQ(script->GetSourceLocation(start_a).GetColumnNumber(), 10); // Test first position in function b(). const int start_b = static_cast<int>(strstr(source, "function b") - source) + 13; CHECK_EQ(script->GetSourceLocation(start_b).GetLineNumber(), 2); CHECK_EQ(script->GetSourceLocation(start_b).GetColumnNumber(), 13); // Test first position in function c(). const int start_c = static_cast<int>(strstr(source, "function c") - source) + 10; CHECK_EQ(script->GetSourceLocation(start_c).GetLineNumber(), 5); CHECK_EQ(script->GetSourceLocation(start_c).GetColumnNumber(), 12); // Test first position in function d(). const int start_d = static_cast<int>(strstr(source, "function d") - source) + 10; CHECK_EQ(script->GetSourceLocation(start_d).GetLineNumber(), 12); CHECK_EQ(script->GetSourceLocation(start_d).GetColumnNumber(), 10); // Test offsets. CHECK_EQ(script->GetSourceOffset(v8::debug::Location(1, 10)), v8::Just(start_a)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(2, 13)), v8::Just(start_b)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(3, 0)), v8::Just(start_b + 5)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(3, 2)), v8::Just(start_b + 7)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(4, 0)), v8::Just(start_b + 16)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(5, 12)), v8::Just(start_c)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(6, 0)), v8::Just(start_c + 6)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(7, 0)), v8::Just(start_c + 19)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(8, 0)), v8::Just(start_c + 35)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(9, 0)), v8::Just(start_c + 48)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(10, 0)), v8::Just(start_c + 64)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(11, 0)), v8::Just(start_c + 70)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(12, 10)), v8::Just(start_d)); CHECK_EQ(script->GetSourceOffset(v8::debug::Location(13, 0)), v8::Just(start_d + 6)); for (int i = 1; i <= num_lines_d; ++i) { CHECK_EQ(script->GetSourceOffset(v8::debug::Location(start_line_d + i, 0)), v8::Just(6 + (i * line_length_d) + start_d)); } CHECK_EQ(script->GetSourceOffset(v8::debug::Location(start_line_d + 17, 0)), v8::Nothing<int>()); // Make sure invalid inputs work properly. const int last_position = static_cast<int>(strlen(source)) - 1; CHECK_EQ(script->GetSourceLocation(-1).GetLineNumber(), 0); CHECK_EQ(script->GetSourceLocation(last_position + 2).GetLineNumber(), i::kNoSourcePosition); // Test last position. CHECK_EQ(script->GetSourceLocation(last_position).GetLineNumber(), 28); CHECK_EQ(script->GetSourceLocation(last_position).GetColumnNumber(), 1); CHECK_EQ(script->GetSourceLocation(last_position + 1).GetLineNumber(), 29); CHECK_EQ(script->GetSourceLocation(last_position + 1).GetColumnNumber(), 0); } namespace { class SetBreakpointOnScriptCompiled : public v8::debug::DebugDelegate { public: void ScriptCompiled(v8::Local<v8::debug::Script> script, bool is_live_edited, bool has_compile_error) override { v8::Local<v8::String> name; if (!script->SourceURL().ToLocal(&name)) return; v8::Local<v8::Context> context = CcTest::isolate()->GetCurrentContext(); if (!name->Equals(context, v8_str("test")).FromJust()) return; CHECK(!has_compile_error); v8::debug::Location loc(1, 2); CHECK(script->SetBreakpoint(v8_str(""), &loc, &id_)); CHECK_EQ(loc.GetLineNumber(), 1); CHECK_EQ(loc.GetColumnNumber(), 10); } void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { ++break_count_; CHECK_EQ(inspector_break_points_hit[0], id_); } int break_count() const { return break_count_; } private: int break_count_ = 0; v8::debug::BreakpointId id_; }; } // anonymous namespace TEST(Regress517592) { LocalContext env; v8::HandleScope handle_scope(env->GetIsolate()); SetBreakpointOnScriptCompiled delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); CompileRun( v8_str("eval('var foo = function foo() {\\n' +\n" "' var a = 1;\\n' +\n" "'}\\n' +\n" "'//@ sourceURL=test')")); CHECK_EQ(delegate.break_count(), 0); CompileRun(v8_str("foo()")); CHECK_EQ(delegate.break_count(), 1); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); } namespace { std::string FromString(v8::Isolate* isolate, v8::Local<v8::String> str) { v8::String::Utf8Value utf8(isolate, str); return std::string(*utf8); } } // namespace TEST(GetPrivateFields) { LocalContext env; v8::Isolate* v8_isolate = CcTest::isolate(); v8::HandleScope scope(v8_isolate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::String> source = v8_str( "var X = class {\n" " #field_number = 1;\n" " #field_function = function() {};\n" "}\n" "var x = new X()"); CompileRun(source); v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); std::vector<v8::Local<v8::Value>> names; std::vector<v8::Local<v8::Value>> values; int filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateFields); CHECK(v8::debug::GetPrivateMembers(context, object, filter, &names, &values)); CHECK_EQ(names.size(), 2); for (int i = 0; i < 2; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); if (name_str == "#field_number") { CHECK(value->Equals(context, v8_num(1)).FromJust()); } else { CHECK_EQ(name_str, "#field_function"); CHECK(value->IsFunction()); } } source = v8_str( "var Y = class {\n" " #base_field_number = 2;\n" "}\n" "var X = class extends Y{\n" " #field_number = 1;\n" " #field_function = function() {};\n" "}\n" "var x = new X()"); CompileRun(source); names.clear(); values.clear(); object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); CHECK(v8::debug::GetPrivateMembers(context, object, filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; std::string name_str = FromString(v8_isolate, name.As<v8::String>()); if (name_str == "#base_field_number") { CHECK(value->Equals(context, v8_num(2)).FromJust()); } else if (name_str == "#field_number") { CHECK(value->Equals(context, v8_num(1)).FromJust()); } else { CHECK_EQ(name_str, "#field_function"); CHECK(value->IsFunction()); } } source = v8_str( "var Y = class {\n" " constructor() {" " return new Proxy({}, {});" " }" "}\n" "var X = class extends Y{\n" " #field_number = 1;\n" " #field_function = function() {};\n" "}\n" "var x = new X()"); CompileRun(source); names.clear(); values.clear(); object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); CHECK(v8::debug::GetPrivateMembers(context, object, filter, &names, &values)); CHECK_EQ(names.size(), 2); for (int i = 0; i < 2; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); if (name_str == "#field_number") { CHECK(value->Equals(context, v8_num(1)).FromJust()); } else { CHECK_EQ(name_str, "#field_function"); CHECK(value->IsFunction()); } } } TEST(GetPrivateMethodsAndAccessors) { LocalContext env; v8::Isolate* v8_isolate = CcTest::isolate(); v8::HandleScope scope(v8_isolate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::String> source = v8_str( "var X = class {\n" " #method() { }\n" " get #accessor() { }\n" " set #accessor(val) { }\n" " get #readOnly() { }\n" " set #writeOnly(val) { }\n" "}\n" "var x = new X()"); CompileRun(source); v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); std::vector<v8::Local<v8::Value>> names; std::vector<v8::Local<v8::Value>> values; int accessor_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateAccessors); int method_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateMethods); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#method")->Equals(context, name.As<v8::String>()).FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); if (name_str == "#accessor") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } else if (name_str == "#readOnly") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsNull()); } else { CHECK_EQ(name_str, "#writeOnly"); CHECK(accessors->getter()->IsNull()); CHECK(accessors->setter()->IsFunction()); } } source = v8_str( "var Y = class {\n" " #method() {}\n" " get #accessor() {}\n" " set #accessor(val) {};\n" "}\n" "var X = class extends Y{\n" " get #readOnly() {}\n" " set #writeOnly(val) {};\n" "}\n" "var x = new X()"); CompileRun(source); names.clear(); values.clear(); object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#method")->Equals(context, name.As<v8::String>()).FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); if (name_str == "#accessor") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } else if (name_str == "#readOnly") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsNull()); } else { CHECK_EQ(name_str, "#writeOnly"); CHECK(accessors->getter()->IsNull()); CHECK(accessors->setter()->IsFunction()); } } source = v8_str( "var Y = class {\n" " constructor() {" " return new Proxy({}, {});" " }" "}\n" "var X = class extends Y{\n" " #method() {}\n" " get #accessor() {}\n" " set #accessor(val) {};\n" "}\n" "var x = new X()"); CompileRun(source); names.clear(); values.clear(); object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#method")->Equals(context, name.As<v8::String>()).FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK( v8_str("#accessor")->Equals(context, name.As<v8::String>()).FromJust()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } } TEST(GetPrivateStaticMethodsAndAccessors) { LocalContext env; v8::Isolate* v8_isolate = CcTest::isolate(); v8::HandleScope scope(v8_isolate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::String> source = v8_str( "var X = class {\n" " static #staticMethod() { }\n" " static get #staticAccessor() { }\n" " static set #staticAccessor(val) { }\n" " static get #staticReadOnly() { }\n" " static set #staticWriteOnly(val) { }\n" "}\n"); CompileRun(source); v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "X")) .ToLocalChecked()); std::vector<v8::Local<v8::Value>> names; std::vector<v8::Local<v8::Value>> values; int accessor_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateAccessors); int method_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateMethods); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#staticMethod") ->Equals(context, name.As<v8::String>()) .FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); if (name_str == "#staticAccessor") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } else if (name_str == "#staticReadOnly") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsNull()); } else { CHECK_EQ(name_str, "#staticWriteOnly"); CHECK(accessors->getter()->IsNull()); CHECK(accessors->setter()->IsFunction()); } } } TEST(GetPrivateStaticAndInstanceMethodsAndAccessors) { LocalContext env; v8::Isolate* v8_isolate = CcTest::isolate(); v8::HandleScope scope(v8_isolate); v8::Local<v8::Context> context = env.local(); v8::Local<v8::String> source = v8_str( "var X = class {\n" " static #staticMethod() { }\n" " static get #staticAccessor() { }\n" " static set #staticAccessor(val) { }\n" " static get #staticReadOnly() { }\n" " static set #staticWriteOnly(val) { }\n" " #method() { }\n" " get #accessor() { }\n" " set #accessor(val) { }\n" " get #readOnly() { }\n" " set #writeOnly(val) { }\n" "}\n" "var x = new X()\n"); CompileRun(source); v8::Local<v8::Object> object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "X")) .ToLocalChecked()); std::vector<v8::Local<v8::Value>> names; std::vector<v8::Local<v8::Value>> values; int accessor_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateAccessors); int method_filter = static_cast<int>(v8::debug::PrivateMemberFilter::kPrivateMethods); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#staticMethod") ->Equals(context, name.As<v8::String>()) .FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); if (name_str == "#staticAccessor") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } else if (name_str == "#staticReadOnly") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsNull()); } else { CHECK_EQ(name_str, "#staticWriteOnly"); CHECK(accessors->getter()->IsNull()); CHECK(accessors->setter()->IsFunction()); } } names.clear(); values.clear(); object = v8::Local<v8::Object>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "x")) .ToLocalChecked()); CHECK(v8::debug::GetPrivateMembers(context, object, method_filter, &names, &values)); CHECK_EQ(names.size(), 1); { v8::Local<v8::Value> name = names[0]; v8::Local<v8::Value> value = values[0]; CHECK(name->IsString()); CHECK(v8_str("#method")->Equals(context, name.As<v8::String>()).FromJust()); CHECK(value->IsFunction()); } names.clear(); values.clear(); CHECK(v8::debug::GetPrivateMembers(context, object, accessor_filter, &names, &values)); CHECK_EQ(names.size(), 3); for (int i = 0; i < 3; i++) { v8::Local<v8::Value> name = names[i]; v8::Local<v8::Value> value = values[i]; CHECK(name->IsString()); std::string name_str = FromString(v8_isolate, name.As<v8::String>()); CHECK(v8::debug::AccessorPair::IsAccessorPair(value)); v8::Local<v8::debug::AccessorPair> accessors = value.As<v8::debug::AccessorPair>(); if (name_str == "#accessor") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsFunction()); } else if (name_str == "#readOnly") { CHECK(accessors->getter()->IsFunction()); CHECK(accessors->setter()->IsNull()); } else { CHECK_EQ(name_str, "#writeOnly"); CHECK(accessors->getter()->IsNull()); CHECK(accessors->setter()->IsFunction()); } } } namespace { class SetTerminateOnResumeDelegate : public v8::debug::DebugDelegate { public: enum Options { kNone, kPerformMicrotaskCheckpointAtBreakpoint, kRunJavaScriptAtBreakpoint }; explicit SetTerminateOnResumeDelegate(Options options = kNone) : options_(options) {} void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { break_count_++; v8::Isolate* isolate = paused_context->GetIsolate(); v8::debug::SetTerminateOnResume(isolate); if (options_ == kPerformMicrotaskCheckpointAtBreakpoint) { v8::MicrotasksScope::PerformCheckpoint(isolate); } if (options_ == kRunJavaScriptAtBreakpoint) { CompileRun("globalVariable = globalVariable + 1"); } } void ExceptionThrown(v8::Local<v8::Context> paused_context, v8::Local<v8::Value> exception, v8::Local<v8::Value> promise, bool is_uncaught, v8::debug::ExceptionType exception_type) override { exception_thrown_count_++; v8::debug::SetTerminateOnResume(paused_context->GetIsolate()); } int break_count() const { return break_count_; } int exception_thrown_count() const { return exception_thrown_count_; } private: int break_count_ = 0; int exception_thrown_count_ = 0; Options options_; }; } // anonymous namespace TEST(TerminateOnResumeAtBreakpoint) { break_point_hit_count = 0; LocalContext env; v8::HandleScope scope(env->GetIsolate()); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); // If the delegate doesn't request termination on resume from breakpoint, // foo diverges. v8::Script::Compile( context, v8_str(env->GetIsolate(), "function foo(){debugger; while(true){}}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "foo")) .ToLocalChecked()); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { bool microtask_one_ran = false; static void MicrotaskOne(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); CHECK(v8::MicrotasksScope::IsRunningMicrotasks(info.GetIsolate())); v8::HandleScope scope(info.GetIsolate()); v8::MicrotasksScope microtasks(info.GetIsolate()->GetCurrentContext(), v8::MicrotasksScope::kDoNotRunMicrotasks); ExpectInt32("1 + 1", 2); microtask_one_ran = true; } } // namespace TEST(TerminateOnResumeRunMicrotaskAtBreakpoint) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); SetTerminateOnResumeDelegate delegate( SetTerminateOnResumeDelegate::kPerformMicrotaskCheckpointAtBreakpoint); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); // Enqueue a microtask that gets run while we are paused at the breakpoint. env->GetIsolate()->EnqueueMicrotask( v8::Function::New(env.local(), MicrotaskOne).ToLocalChecked()); // If the delegate doesn't request termination on resume from breakpoint, // foo diverges. v8::Script::Compile( context, v8_str(env->GetIsolate(), "function foo(){debugger; while(true){}}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "foo")) .ToLocalChecked()); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 1); CHECK(microtask_one_ran); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(TerminateOnResumeRunJavaScriptAtBreakpoint) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); CompileRun("var globalVariable = 0;"); SetTerminateOnResumeDelegate delegate( SetTerminateOnResumeDelegate::kRunJavaScriptAtBreakpoint); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); // If the delegate doesn't request termination on resume from breakpoint, // foo diverges. v8::Script::Compile( context, v8_str(env->GetIsolate(), "function foo(){debugger; while(true){}}")) .ToLocalChecked() ->Run(context) .ToLocalChecked(); v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( env->Global() ->Get(context, v8_str(env->GetIsolate(), "foo")) .ToLocalChecked()); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); ExpectInt32("globalVariable", 1); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(TerminateOnResumeAtException) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); ChangeBreakOnException(env->GetIsolate(), true, true); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); const char* source = "throw new Error(); while(true){};"; v8::ScriptCompiler::Source script_source(v8_str(source)); v8::Local<v8::Function> foo = v8::ScriptCompiler::CompileFunction(env.local(), &script_source) .ToLocalChecked(); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 0); CHECK_EQ(delegate.exception_thrown_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(TerminateOnResumeAtBreakOnEntry) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); { v8::TryCatch try_catch(env->GetIsolate()); v8::Local<v8::Function> builtin = CompileRun("String.prototype.repeat").As<v8::Function>(); SetBreakPoint(builtin, 0); v8::Local<v8::Value> val = CompileRun("'b'.repeat(10)"); CHECK_EQ(delegate.break_count(), 1); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.exception_thrown_count(), 0); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(TerminateOnResumeAtBreakOnEntryUserDefinedFunction) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); { v8::TryCatch try_catch(env->GetIsolate()); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo(b) { while (b > 0) {} }", "foo"); // Run without breakpoints to compile source to bytecode. CompileRun("foo(-1)"); CHECK_EQ(delegate.break_count(), 0); SetBreakPoint(foo, 0); v8::Local<v8::Value> val = CompileRun("foo(1)"); CHECK_EQ(delegate.break_count(), 1); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.exception_thrown_count(), 0); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(TerminateOnResumeAtUnhandledRejection) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); ChangeBreakOnException(env->GetIsolate(), true, true); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); v8::Local<v8::Function> foo = CompileFunction( &env, "async function foo() { Promise.reject(); while(true) {} }", "foo"); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 0); CHECK_EQ(delegate.exception_thrown_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { void RejectPromiseThroughCpp(const v8::FunctionCallbackInfo<v8::Value>& info) { CHECK(i::ValidateCallbackInfo(info)); auto data = reinterpret_cast<std::pair<v8::Isolate*, LocalContext*>*>( info.Data().As<v8::External>()->Value()); v8::Local<v8::String> value1 = v8::String::NewFromUtf8Literal(data->first, "foo"); v8::Local<v8::Promise::Resolver> resolver = v8::Promise::Resolver::New(data->second->local()).ToLocalChecked(); v8::Local<v8::Promise> promise = resolver->GetPromise(); CHECK_EQ(promise->State(), v8::Promise::PromiseState::kPending); resolver->Reject(data->second->local(), value1).ToChecked(); CHECK_EQ(promise->State(), v8::Promise::PromiseState::kRejected); // CHECK_EQ(*v8::Utils::OpenHandle(*promise->Result()), // i::ReadOnlyRoots(CcTest::i_isolate()).exception()); } } // namespace TEST(TerminateOnResumeAtUnhandledRejectionCppImpl) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(env->GetIsolate()); ChangeBreakOnException(isolate, true, true); SetTerminateOnResumeDelegate delegate; auto data = std::make_pair(isolate, &env); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); { // We want to trigger a breakpoint upon Promise rejection, but we will only // get the callback if there is at least one JavaScript frame in the stack. v8::Local<v8::Function> func = v8::Function::New(env.local(), RejectPromiseThroughCpp, v8::External::New(isolate, &data)) .ToLocalChecked(); CHECK(env->Global() ->Set(env.local(), v8_str("RejectPromiseThroughCpp"), func) .FromJust()); CompileRun("RejectPromiseThroughCpp(); while (true) {}"); CHECK_EQ(delegate.break_count(), 0); CHECK_EQ(delegate.exception_thrown_count(), 1); } ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { static void UnreachableMicrotask( const v8::FunctionCallbackInfo<v8::Value>& info) { UNREACHABLE(); } } // namespace TEST(TerminateOnResumeFromMicrotask) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); SetTerminateOnResumeDelegate delegate( SetTerminateOnResumeDelegate::kPerformMicrotaskCheckpointAtBreakpoint); ChangeBreakOnException(env->GetIsolate(), true, true); v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); { v8::TryCatch try_catch(env->GetIsolate()); // Enqueue a microtask that gets run while we are paused at the breakpoint. v8::Local<v8::Function> foo = CompileFunction( &env, "function foo(){ Promise.reject(); while (true) {} }", "foo"); env->GetIsolate()->EnqueueMicrotask(foo); env->GetIsolate()->EnqueueMicrotask( v8::Function::New(env.local(), UnreachableMicrotask).ToLocalChecked()); CHECK_EQ(2, CcTest::i_isolate()->native_context()->microtask_queue()->size()); v8::MicrotasksScope::PerformCheckpoint(env->GetIsolate()); CHECK_EQ(0, CcTest::i_isolate()->native_context()->microtask_queue()->size()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 0); CHECK_EQ(delegate.exception_thrown_count(), 1); } ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } class FutexInterruptionThread : public v8::base::Thread { public: FutexInterruptionThread(v8::Isolate* isolate, v8::base::Semaphore* enter, v8::base::Semaphore* exit) : Thread(Options("FutexInterruptionThread")), isolate_(isolate), enter_(enter), exit_(exit) {} void Run() override { enter_->Wait(); v8::debug::SetTerminateOnResume(isolate_); exit_->Signal(); } private: v8::Isolate* isolate_; v8::base::Semaphore* enter_; v8::base::Semaphore* exit_; }; namespace { class SemaphoreTriggerOnBreak : public v8::debug::DebugDelegate { public: SemaphoreTriggerOnBreak() : enter_(0), exit_(0) {} void BreakProgramRequested( v8::Local<v8::Context> paused_context, const std::vector<v8::debug::BreakpointId>& inspector_break_points_hit, v8::debug::BreakReasons break_reasons) override { break_count_++; enter_.Signal(); exit_.Wait(); } v8::base::Semaphore* enter() { return &enter_; } v8::base::Semaphore* exit() { return &exit_; } int break_count() const { return break_count_; } private: v8::base::Semaphore enter_; v8::base::Semaphore exit_; int break_count_ = 0; }; } // anonymous namespace TEST(TerminateOnResumeFromOtherThread) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); ChangeBreakOnException(env->GetIsolate(), true, true); SemaphoreTriggerOnBreak delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); FutexInterruptionThread timeout_thread(env->GetIsolate(), delegate.enter(), delegate.exit()); CHECK(timeout_thread.Start()); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); const char* source = "debugger; while(true){};"; v8::ScriptCompiler::Source script_source(v8_str(source)); v8::Local<v8::Function> foo = v8::ScriptCompiler::CompileFunction(env.local(), &script_source) .ToLocalChecked(); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { class InterruptionBreakRightNow : public v8::base::Thread { public: explicit InterruptionBreakRightNow(v8::Isolate* isolate) : Thread(Options("InterruptionBreakRightNow")), isolate_(isolate) {} void Run() override { // Wait a bit before terminating. v8::base::OS::Sleep(v8::base::TimeDelta::FromMilliseconds(100)); isolate_->RequestInterrupt(BreakRightNow, nullptr); } private: static void BreakRightNow(v8::Isolate* isolate, void* data) { v8::debug::BreakRightNow(isolate); } v8::Isolate* isolate_; }; } // anonymous namespace TEST(TerminateOnResumeAtInterruptFromOtherThread) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); ChangeBreakOnException(env->GetIsolate(), true, true); SetTerminateOnResumeDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); InterruptionBreakRightNow timeout_thread(env->GetIsolate()); v8::Local<v8::Context> context = env.local(); { v8::TryCatch try_catch(env->GetIsolate()); const char* source = "while(true){}"; v8::ScriptCompiler::Source script_source(v8_str(source)); v8::Local<v8::Function> foo = v8::ScriptCompiler::CompileFunction(env.local(), &script_source) .ToLocalChecked(); CHECK(timeout_thread.Start()); v8::MaybeLocal<v8::Value> val = foo->Call(context, env->Global(), 0, nullptr); CHECK(val.IsEmpty()); CHECK(try_catch.HasTerminated()); CHECK_EQ(delegate.break_count(), 1); } // Exiting the TryCatch brought the isolate back to a state where JavaScript // can be executed. ExpectInt32("1 + 1", 2); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { class NoopDelegate : public v8::debug::DebugDelegate {}; } // namespace // Tests that the Isolate::Pop/Push leaves an empty stack for `await` when // the Debugger is active but the AsyncEventDelegate is not set. // Regression test for https://crbug.com/1225905 TEST(AwaitCleansUpGlobalPromiseStack) { LocalContext env; v8::HandleScope scope(env->GetIsolate()); NoopDelegate delegate; v8::debug::SetDebugDelegate(env->GetIsolate(), &delegate); v8::debug::SetAsyncEventDelegate(env->GetIsolate(), nullptr); v8::Local<v8::String> source = v8_str( "(async () => {\n" " await Promise.resolve();\n" "})();\n"); CompileRun(source); CHECK(CcTest::i_isolate()->IsPromiseStackEmpty()); v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } TEST(CreateMessageFromOldException) { LocalContext context; v8::HandleScope scope(context->GetIsolate()); context->GetIsolate()->SetCaptureStackTraceForUncaughtExceptions(true); v8::Local<v8::Value> error; { v8::TryCatch try_catch(context->GetIsolate()); CompileRun(R"javascript( function f1() { throw new Error('error in f1'); }; f1(); )javascript"); CHECK(try_catch.HasCaught()); error = try_catch.Exception(); } CHECK(error->IsObject()); v8::Local<v8::Message> message = v8::debug::CreateMessageFromException(context->GetIsolate(), error); CHECK(!message.IsEmpty()); CHECK_EQ(3, message->GetLineNumber(context.local()).FromJust()); CHECK_EQ(16, message->GetStartColumn(context.local()).FromJust()); v8::Local<v8::StackTrace> stackTrace = message->GetStackTrace(); CHECK(!stackTrace.IsEmpty()); CHECK_EQ(2, stackTrace->GetFrameCount()); stackTrace = v8::Exception::GetStackTrace(error); CHECK(!stackTrace.IsEmpty()); CHECK_EQ(2, stackTrace->GetFrameCount()); } TEST(CreateMessageDoesNotInspectStack) { LocalContext context; v8::HandleScope scope(context->GetIsolate()); // Do not enable Isolate::SetCaptureStackTraceForUncaughtExceptions. v8::Local<v8::Value> error; { v8::TryCatch try_catch(context->GetIsolate()); CompileRun(R"javascript( function f1() { throw new Error('error in f1'); }; f1(); )javascript"); CHECK(try_catch.HasCaught()); error = try_catch.Exception(); } // The caught error should not have a stack trace attached. CHECK(error->IsObject()); CHECK(v8::Exception::GetStackTrace(error).IsEmpty()); // The corresponding message should also not have a stack trace. v8::Local<v8::Message> message = v8::debug::CreateMessageFromException(context->GetIsolate(), error); CHECK(!message.IsEmpty()); CHECK(message->GetStackTrace().IsEmpty()); } namespace { class ScopeListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context> context, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { i::Isolate* isolate = CcTest::i_isolate(); i::DebuggableStackFrameIterator iterator_( isolate, isolate->debug()->break_frame_id()); // Go up one frame so we are on the script level. iterator_.Advance(); auto frame_inspector = std::make_unique<i::FrameInspector>(iterator_.frame(), 0, isolate); i::ScopeIterator scope_iterator( isolate, frame_inspector.get(), i::ScopeIterator::ReparseStrategy::kScriptIfNeeded); // Iterate all scopes triggering block list creation along the way. This // should not run into any CHECKs. while (!scope_iterator.Done()) scope_iterator.Next(); } }; } // namespace TEST(ScopeIteratorDoesNotCreateBlocklistForScriptScope) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which creates a ScopeIterator. ScopeListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); CompileRun(R"javascript( function foo() { debugger; } foo(); )javascript"); // Get rid of the debug event listener. v8::debug::SetDebugDelegate(isolate, nullptr); CheckDebuggerUnloaded(); } namespace { class DebugEvaluateListener : public v8::debug::DebugDelegate { public: void BreakProgramRequested(v8::Local<v8::Context> context, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { v8::Isolate* isolate = context->GetIsolate(); auto it = v8::debug::StackTraceIterator::Create(isolate); v8::Local<v8::Value> result = it->Evaluate(v8_str(isolate, "x"), /* throw_on_side_effect */ false) .ToLocalChecked(); CHECK_EQ(42, result->ToInteger(context).ToLocalChecked()->Value()); } }; } // namespace // This test checks that the debug-evaluate blocklist logic correctly handles // scopes created by `ScriptCompiler::CompileFunction`. It creates a function // scope nested inside an eval scope with the exact same source positions. // This can confuse the blocklist mechanism if not handled correctly. TEST(DebugEvaluateInWrappedScript) { LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); // Register a debug event listener which evaluates 'x'. DebugEvaluateListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); static const char* source = "const x = 42; () => x; debugger;"; { v8::ScriptCompiler::Source script_source(v8_str(source)); v8::Local<v8::Function> fun = v8::ScriptCompiler::CompileFunction(env.local(), &script_source) .ToLocalChecked(); fun->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); } // Get rid of the debug event listener. v8::debug::SetDebugDelegate(env->GetIsolate(), nullptr); CheckDebuggerUnloaded(); } namespace { class ConditionListener : public v8::debug::DebugDelegate { public: void BreakpointConditionEvaluated( v8::Local<v8::Context> context, v8::debug::BreakpointId breakpoint_id_arg, bool exception_thrown_arg, v8::Local<v8::Value> exception_arg) override { breakpoint_id = breakpoint_id_arg; exception_thrown = exception_thrown_arg; exception = exception_arg; } void BreakProgramRequested(v8::Local<v8::Context> context, const std::vector<v8::debug::BreakpointId>&, v8::debug::BreakReasons break_reasons) override { break_point_hit_count++; } v8::debug::BreakpointId breakpoint_id; bool exception_thrown = false; v8::Local<v8::Value> exception; }; } // namespace TEST(SuccessfulBreakpointConditionEvaluationEvent) { break_point_hit_count = 0; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); ConditionListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo() { const x = 5; }", "foo"); i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0, "true"); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(1, break_point_hit_count); CHECK_EQ(bp->id(), delegate.breakpoint_id); CHECK(!delegate.exception_thrown); CHECK(delegate.exception.IsEmpty()); } // Checks that SyntaxErrors in breakpoint conditions are reported to the // DebugDelegate. TEST(FailedBreakpointConditoinEvaluationEvent) { break_point_hit_count = 0; LocalContext env; v8::Isolate* isolate = env->GetIsolate(); v8::HandleScope scope(isolate); ConditionListener delegate; v8::debug::SetDebugDelegate(isolate, &delegate); v8::Local<v8::Function> foo = CompileFunction(&env, "function foo() { const x = 5; }", "foo"); i::Handle<i::BreakPoint> bp = SetBreakPoint(foo, 0, "bar()."); foo->Call(env.local(), env->Global(), 0, nullptr).ToLocalChecked(); CHECK_EQ(0, break_point_hit_count); CHECK_EQ(bp->id(), delegate.breakpoint_id); CHECK(delegate.exception_thrown); CHECK(!delegate.exception.IsEmpty()); }
[ "dumganhar@gmail.com" ]
dumganhar@gmail.com
b508f9c53d7b42e1ae0fe243f376d4f20d211a3e
9c0d1e267ba2bf065c9054736a63d7c584113753
/DataIO/include/HistoCreator.h
6e8a68d5c71575cb62035f9d7af8a2738caf9d31
[]
no_license
akalinow/HistoGui
6b6ace12e5146305f501d44ed53303b622cc5233
6a9f0e903d62f136d68d5eb6fc826fd4190080ce
refs/heads/master
2021-01-18T00:47:18.666006
2017-12-08T08:55:21
2017-12-08T08:55:21
48,236,616
0
1
null
2015-12-18T13:23:55
2015-12-18T13:23:55
null
UTF-8
C++
false
false
793
h
/** @file HistoCreator.h @brief Loads multiplexed binary file for the GUI or processes ROOT tree to generate one @author kzawisto @created: 2015-10-29 **************************************************************/ #ifndef INCLUDE_HISTOCREATOR_H_ #define INCLUDE_HISTOCREATOR_H_ #include <string> #include <vector> #include"HistoConfig.h" using std::string; using std::vector; ///Creates histos from single IDataSource class HistoCreator { string configPath; public: vector<unsigned int> cutsLow,cutsHigh; HistogramConfig hc; vector< vector<unsigned int> > histos; HistoCreator(string configPath ); HistoCreator(ptree pt ); void processTree(); void createHistos(); void createHistosOld(); void writeZeros(); void runTests(); }; #endif /* INCLUDE_HISTOCREATOR_H_ */
[ "krystian.zawistowski4@gmail.com" ]
krystian.zawistowski4@gmail.com
f3abe1af30461316185f506ab301401de4afa79b
70cffda2b19be5ce6f812b2c181d5c22bad60429
/EarTrumpet.Interop/EndpointNotificationHandler.cpp
74cf4b56c53527f5bccd8738e5d3124c52bef841
[ "MIT" ]
permissive
factormystic/EarTrumpet
4c39610f1c40cbb1b473a39e5f6cd311300d92fb
b8989333486fb4a1597155c14bbfca90f41a1bc5
refs/heads/master
2021-08-30T04:00:24.161252
2017-12-05T08:44:04
2017-12-05T08:44:04
113,780,946
0
0
null
2017-12-10T20:27:04
2017-12-10T20:27:04
null
UTF-8
C++
false
false
4,126
cpp
#include "common.h" #include "Mmdeviceapi.h" #include "endpointvolume.h" #include "callbacks.h" #include "handlers.h" #include "ControlChangeHandler.h" #include "EndpointNotificationHandler.h" using namespace EarTrumpet::Interop; HRESULT EndpointNotificationHandler::OnDefaultDeviceChanged(EDataFlow dataFlow, ERole role, PCWSTR rawDeviceId) { if (dataFlow == EDataFlow::eRender && role != ERole::eCommunications) { std::wstring deviceId(rawDeviceId); _lastSeenDeviceId = deviceId; if (_controlChangeHandlers.find(deviceId) == _controlChangeHandlers.end()) { CComObject<ControlChangeHandler>* controlChangeHandler; FAST_FAIL(GetCachedControlChangeHandlerByDeviceId(deviceId, &controlChangeHandler)); controlChangeHandler->RegisterVolumeChangedCallback(deviceId.c_str(), this); IAudioEndpointVolume* audioEndpointVolume; FAST_FAIL(GetCachedAudioEndpointVolumeByDeviceId(deviceId, &audioEndpointVolume)); FAST_FAIL(audioEndpointVolume->RegisterControlChangeNotify(controlChangeHandler)); } float volume; FAST_FAIL(GetDefaultDeviceVolume(&volume)); FAST_FAIL(OnVolumeChanged(_lastSeenDeviceId.c_str(), volume)); } return S_OK; } HRESULT EndpointNotificationHandler::RegisterVolumeChangeHandler(IMMDeviceEnumerator* deviceEnumerator, IEndpointNotificationCallback* callback) { _deviceEnumerator = deviceEnumerator; _endpointCallback = callback; CComPtr<IMMDevice> defaultDevice; FAST_FAIL(deviceEnumerator->GetDefaultAudioEndpoint(EDataFlow::eRender, ERole::eMultimedia, &defaultDevice)); CComHeapPtr<wchar_t> defaultDeviceId; FAST_FAIL(defaultDevice->GetId(&defaultDeviceId)); return OnDefaultDeviceChanged(EDataFlow::eRender, ERole::eMultimedia, defaultDeviceId); } HRESULT EndpointNotificationHandler::OnVolumeChanged(PCWSTR deviceId, float volume) { if (_lastSeenDeviceId == deviceId) { FAST_FAIL(_endpointCallback->OnVolumeChanged(volume)); } return S_OK; } HRESULT EndpointNotificationHandler::GetDefaultDeviceVolume(float* volume) { IAudioEndpointVolume* endpointVolume; FAST_FAIL(GetCachedAudioEndpointVolumeByDeviceId(_lastSeenDeviceId, &endpointVolume)); return endpointVolume->GetMasterVolumeLevelScalar(volume); } HRESULT EndpointNotificationHandler::GetCachedDeviceByDeviceId(std::wstring const& deviceId, IMMDevice** device) { if (_cachedDevices.find(deviceId) == _cachedDevices.end()) { FAST_FAIL(_deviceEnumerator->GetDevice(deviceId.c_str(), &_cachedDevices[deviceId])); } *device = _cachedDevices[deviceId].p; return S_OK; } HRESULT EndpointNotificationHandler::GetCachedAudioEndpointVolumeByDeviceId(std::wstring const& deviceId, IAudioEndpointVolume** audioEndpointVolume) { IMMDevice* device; FAST_FAIL(GetCachedDeviceByDeviceId(deviceId, &device)); if (_cachedEndpoints.find(deviceId) == _cachedEndpoints.end()) { FAST_FAIL(device->Activate(__uuidof(IAudioEndpointVolume), CLSCTX_INPROC_SERVER, nullptr, reinterpret_cast<void**>(&_cachedEndpoints[deviceId]))); } *audioEndpointVolume = _cachedEndpoints[deviceId].p; return S_OK; } HRESULT EndpointNotificationHandler::GetCachedControlChangeHandlerByDeviceId(std::wstring const& deviceId, CComObject<ControlChangeHandler>** controlChangeHandler) { if (_controlChangeHandlers.find(deviceId) == _controlChangeHandlers.end()) { FAST_FAIL(CComObject<ControlChangeHandler>::CreateInstance(&_controlChangeHandlers[deviceId])); _controlChangeHandlers[deviceId]->AddRef(); } *controlChangeHandler = _controlChangeHandlers[deviceId]; return S_OK; } HRESULT EndpointNotificationHandler::OnDeviceStateChanged(PCWSTR, DWORD) { return S_OK; } HRESULT EndpointNotificationHandler::OnDeviceAdded(PCWSTR) { return S_OK; } HRESULT EndpointNotificationHandler::OnDeviceRemoved(PCWSTR) { return S_OK; } HRESULT EndpointNotificationHandler::OnPropertyValueChanged(PCWSTR, const PROPERTYKEY) { return S_OK; }
[ "rafael@withinwindows.com" ]
rafael@withinwindows.com
de2d7d3159a4ef8de1bcfb6e58bae80c0359e686
c50d61136efbd74c97d939468542e40e0fbb79e1
/core/src/types/geometry.h
5a2e2424714fd4ec68f055e1e9170788e22f3e4e
[]
no_license
Ajblast/GameEngine
e95836d631fa2e2057ab9a5219ceb57fcbf5b23f
db2473add049125f7e2c21965a3957e4f3d74ffc
refs/heads/main
2023-09-01T17:31:20.655818
2021-10-17T13:03:45
2021-10-17T13:03:45
327,814,676
0
0
null
null
null
null
UTF-8
C++
false
false
4,805
h
#pragma once #include <vector> #include <string> #include "types/vecs/vec2.h" #include "types/vecs/vec3.h" #include "types/vecs/vec4.h" #include "color.h" #include "primitiveType.h" #include "dataPrimitives.h" // Maximum number of face indices #ifndef GRAV_MAX_FACE_INDICES #define GRAV_MAX_FACE_INDICES 0x7fff #endif // Maximum number of face vertices #ifndef GRAV_MAX_VERTICES #define GRAV_MAX_VERTICES 0x7fffffff #endif // Maximum number of faces #ifndef GRAV_MAX_FACES #define GRAV_MAX_FACES 0x7fffffff #endif namespace GRAVEngine { typedef uint32 faceIndex; typedef uint32 meshIndex; typedef uint32 vertexIndex; typedef uint32 normalIndex; typedef uint32 textureIndex; typedef vec4 plane; // A ray struct GRAVAPI ray { ray() : m_Pos(), m_Dir() {} ray(const vec3& pos, const vec3 dir) : m_Pos(pos), m_Dir(dir) {} ray(const ray& other) : m_Pos(other.m_Pos), m_Dir(other.m_Dir) {} ray(ray&& other) noexcept : m_Pos(std::move(other.m_Pos)), m_Dir(std::move(other.m_Dir)) {} ray& operator=(const ray& other) { if (this != &other) { m_Pos = other.m_Pos; m_Dir = other.m_Dir; } return *this; } ray& operator=(ray&& other) noexcept { if (this != &other) { m_Pos = std::move(other.m_Pos); m_Dir = std::move(other.m_Dir); } return *this; } vec3 m_Pos; // Ray start position vec3 m_Dir; // Ray direction }; // The face of an object struct GRAVAPI face { public: scope<vertexIndex[]> m_Vertices; // Vertex indices vertexIndex m_VertexCount; // Vertex count face() : m_Vertices(nullptr), m_VertexCount(0) {} face(const face& other) { // Use the copy assignment *this = other; } ~face() {} face& operator=(const face& other) { if (this != &other) { // Get the vertex count m_VertexCount = other.m_VertexCount; if (m_VertexCount) { // Need to make a deep copy of the vertices m_Vertices = createScope<vertexIndex[]>(m_VertexCount); // Copy the data memcpy(m_Vertices.get(), other.m_Vertices.get(), m_VertexCount * sizeof(vertexIndex)); } else m_Vertices = nullptr; // Null array if there are no items } return *this; } // Equality Comparison bool operator==(const face& other) const { // Initial check vertex pointers if (m_Vertices == other.m_Vertices) return true; // Check vertex counts if (m_VertexCount != other.m_VertexCount) return false; if (m_Vertices == nullptr || other.m_Vertices == nullptr) return false; // Compare the memory if (memcmp(m_Vertices.get(), other.m_Vertices.get(), m_VertexCount * sizeof(vertexIndex)) != 0) return false; return true; } // Not Equality Comparison bool operator!=(const face& other) const { return !(*this == other); } }; //struct bone //{ // //}; //struct vertexWeight //{ // //}; struct GRAVAPI mesh { public: std::string m_Name; // name of the mesh uint32 m_PrimitiveTypes; // Bitwise combination of all the types present in the mesh vertexIndex m_VertexCount; // Number of vertices scope<vec3[]> m_Vertices; // Vertices scope<vec3[]> m_Normals; // Vertex Normals //scope<vec3[]> m_Tangents; // Vertex Tangents //scope<vec3[]> m_Bitangents; // Vertex Bitangents scope<vec2[]> m_TextureCoords; // Vertex Texture Coords scope<RGBA[]> m_Colors; // Vertex Colors faceIndex m_FaceCount; // Number of faces scope<face[]> m_Faces; // Faces //boneIndex m_BoneCount; // Number of bones //scope<scope<bone[]>[]> m_Bones; // Bones //materialIndex m_MaterialIndex; // Material used by this mesh mesh() : mesh("") {} mesh(const std::string& meshName) : m_Name(meshName), m_PrimitiveTypes((uint32) primitiveType::NONE), m_VertexCount(0), m_Vertices(nullptr), m_Normals(nullptr)/*, m_Tangents(nullptr), m_Bitangents(nullptr)*/, m_TextureCoords(nullptr), m_Colors(nullptr), m_FaceCount(0), m_Faces(nullptr) {} ~mesh() {} inline const vertexIndex vertexCount() const { return m_VertexCount; } inline const faceIndex faceCount() const { return m_FaceCount; } //inline const boneIndex boneCount() const { return m_BoneCount; } inline const bool hasPositions() const { return m_VertexCount > 0 && m_Vertices != nullptr; } inline const bool hasFaces() const { return m_FaceCount > 0 && m_Faces != nullptr; } inline const bool hasNormals() const { return m_VertexCount > 0 && m_Normals != nullptr; } //inline const bool hasTangetsAndBitangents() const { return m_VertexCount > 0 && m_Tangents != nullptr && m_Bitangents != nullptr; } inline const bool hasTextureCoords() const { return m_VertexCount > 0 && m_TextureCoords != nullptr; } inline const bool hasColors() const { return m_VertexCount > 0 && m_Colors != nullptr; } }; }
[ "austinkincer@gmail.com" ]
austinkincer@gmail.com
7033e4e506e4188727130badc9117a65e6ff1016
b60f89e5d2ccf346dff5a2bc7523ef307842d64a
/Sources/Post/Filters/SepiaFilter.hpp
9afd08d50d14307e873856762a1053b9d45ed758
[ "MIT" ]
permissive
EQMG/Acid
bebcffa21c27bbdf5dd9afb8bb964e04a483ab74
2ff8adee30cfb571d27a1d937689608ccea12734
refs/heads/master
2023-08-08T06:04:20.040879
2022-07-19T05:41:12
2022-07-19T05:41:12
96,174,151
1,388
166
MIT
2021-09-12T18:16:24
2017-07-04T04:07:10
C++
UTF-8
C++
false
false
249
hpp
#pragma once #include "Post/PostFilter.hpp" namespace acid { class ACID_EXPORT SepiaFilter : public PostFilter { public: explicit SepiaFilter(const Pipeline::Stage &pipelineStage); void Render(const CommandBuffer &commandBuffer) override; }; }
[ "mattparks5855@gmail.com" ]
mattparks5855@gmail.com
1a9c9e5e535b5877c1fc74ec7f78f23062e5f4a6
bb82a5f977bef455714c16e24e2d8254e2d0faa5
/src/vendor/cget/include/nlohmann/detail/meta/type_traits.hpp
05311a09bf19a2672b161ed13472cf6a2c44bf7d
[ "Unlicense" ]
permissive
pqrs-org/Karabiner-Elements
4ae307d82f8b67547c161c7d46d2083a0fd07630
d05057d7c769e2ff35638282e888a6d5eca566be
refs/heads/main
2023-09-01T03:11:08.474417
2023-09-01T00:44:19
2023-09-01T00:44:19
63,037,806
8,197
389
Unlicense
2023-09-01T00:11:00
2016-07-11T04:57:55
C++
UTF-8
C++
false
false
88
hpp
../../../../cget/pkg/nlohmann__json/install/include/nlohmann/detail/meta/type_traits.hpp
[ "tekezo@pqrs.org" ]
tekezo@pqrs.org
b9c6e8d5c26a4be1c9811322489d9aaf0cb0b915
a3d6556180e74af7b555f8d47d3fea55b94bcbda
/components/feed/core/v2/web_feed_subscriptions/subscription_datastore_provider.cc
948623fe743d4405a17ade10458363d2dda6842c
[ "BSD-3-Clause" ]
permissive
chromium/chromium
aaa9eda10115b50b0616d2f1aed5ef35d1d779d6
a401d6cf4f7bf0e2d2e964c512ebb923c3d8832c
refs/heads/main
2023-08-24T00:35:12.585945
2023-08-23T22:01:11
2023-08-23T22:01:11
120,360,765
17,408
7,102
BSD-3-Clause
2023-09-10T23:44:27
2018-02-05T20:55:32
null
UTF-8
C++
false
false
2,564
cc
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/feed/core/v2/web_feed_subscriptions/subscription_datastore_provider.h" #include "base/logging.h" #include "base/strings/strcat.h" #include "components/feed/core/proto/v2/xsurface.pb.h" #include "components/feed/core/v2/public/types.h" #include "components/feed/core/v2/xsurface_datastore.h" namespace feed { namespace { constexpr const char kWebFeedFollowStateKeyPrefix[] = "/app/webfeed-follow-state/"; feedxsurface::WebFeedFollowState::FollowState ToProtoState( WebFeedSubscriptionStatus status) { switch (status) { case WebFeedSubscriptionStatus::kUnknown: return feedxsurface::WebFeedFollowState::UNSPECIFIED; case WebFeedSubscriptionStatus::kSubscribed: return feedxsurface::WebFeedFollowState::FOLLOWED; case WebFeedSubscriptionStatus::kNotSubscribed: return feedxsurface::WebFeedFollowState::NOT_FOLLOWED; case WebFeedSubscriptionStatus::kSubscribeInProgress: return feedxsurface::WebFeedFollowState::FOLLOW_IN_PROGRESS; case WebFeedSubscriptionStatus::kUnsubscribeInProgress: return feedxsurface::WebFeedFollowState::UNFOLLOW_IN_PROGRESS; } } std::string MakeKey(const std::string& web_feed_id) { return base::StrCat({kWebFeedFollowStateKeyPrefix, web_feed_id}); } std::string MakeEntry(WebFeedSubscriptionStatus status) { feedxsurface::WebFeedFollowState pb; pb.set_follow_state(ToProtoState(status)); std::string binary; pb.SerializeToString(&binary); return binary; } } // namespace SubscriptionDatastoreProvider::SubscriptionDatastoreProvider( XsurfaceDatastoreDataWriter* writer) : writer_(writer) {} SubscriptionDatastoreProvider::~SubscriptionDatastoreProvider() = default; void SubscriptionDatastoreProvider::Update( std::vector<std::pair<std::string, WebFeedSubscriptionStatus>> new_state_list) { base::flat_map<std::string, WebFeedSubscriptionStatus> new_state( std::move(new_state_list)); for (const auto& entry : new_state) { auto iter = state_.find(entry.first); if (iter != state_.end() && iter->second == entry.second) continue; writer_->UpdateDatastoreEntry(MakeKey(entry.first), MakeEntry(entry.second)); } for (const auto& entry : state_) { if (!new_state.contains(entry.first)) writer_->RemoveDatastoreEntry(MakeKey(entry.first)); } state_ = std::move(new_state); } } // namespace feed
[ "chromium-scoped@luci-project-accounts.iam.gserviceaccount.com" ]
chromium-scoped@luci-project-accounts.iam.gserviceaccount.com
25f9f9920015f479de31ab12870549f3e4cb4518
622974cd61d5a4c6cb90ce39775198989e0a2b4c
/apps/cloud_composer/src/project_model.cpp
b41d8a238adc618d0823eaade62298d633119b3a
[ "BSD-3-Clause" ]
permissive
kalectro/pcl_groovy
bd996ad15a7f6581c79fedad94bc7aaddfbaea0a
10b2f11a1d3b10b4ffdd575950f8c1977f92a83c
refs/heads/master
2021-01-22T21:00:10.455119
2013-05-13T02:44:37
2013-05-13T02:44:37
8,296,825
2
0
null
null
null
null
UTF-8
C++
false
false
21,607
cpp
#include <pcl/apps/cloud_composer/qt.h> #include <pcl/apps/cloud_composer/project_model.h> #include <pcl/apps/cloud_composer/tool_interface/abstract_tool.h> #include <pcl/apps/cloud_composer/commands.h> #include <pcl/apps/cloud_composer/work_queue.h> #include <pcl/apps/cloud_composer/items/cloud_item.h> #include <pcl/apps/cloud_composer/cloud_view.h> #include <pcl/apps/cloud_composer/merge_selection.h> #include <pcl/apps/cloud_composer/transform_clouds.h> pcl::cloud_composer::ProjectModel::ProjectModel (QObject* parent) : QStandardItemModel (parent) { last_directory_ = QDir ("."); selection_model_ = new QItemSelectionModel (this); undo_stack_ = new QUndoStack (this); undo_stack_->setUndoLimit (10); work_thread_ = new QThread(); work_queue_ = new WorkQueue (); work_queue_->moveToThread (work_thread_); connect (this, SIGNAL (enqueueNewAction (AbstractTool*, ConstItemList)), work_queue_, SLOT (enqueueNewAction (AbstractTool*, ConstItemList))); connect (work_queue_, SIGNAL (commandComplete (CloudCommand*)), this, SLOT (commandCompleted (CloudCommand*))); work_thread_->start (); connect (this, SIGNAL (rowsInserted ( const QModelIndex, int, int)), this, SIGNAL (modelChanged ())); connect (this, SIGNAL (rowsRemoved ( const QModelIndex, int, int)), this, SIGNAL (modelChanged ())); connect (this, SIGNAL (rowsAboutToBeRemoved ( const QModelIndex, int, int)), this, SLOT (clearSelection())); connect (selection_model_, SIGNAL (selectionChanged(QItemSelection,QItemSelection)), this, SLOT (emitAllStateSignals ())); connect (selection_model_, SIGNAL (selectionChanged(QItemSelection,QItemSelection)), this, SLOT (itemSelectionChanged (QItemSelection,QItemSelection))); selected_style_map_.insert (interactor_styles::PCL_VISUALIZER, true); selected_style_map_.insert (interactor_styles::CLICK_TRACKBALL, false); selected_style_map_.insert (interactor_styles::RECTANGULAR_FRUSTUM, false); selected_style_map_.insert (interactor_styles::SELECTED_TRACKBALL, false); } pcl::cloud_composer::ProjectModel::ProjectModel (const ProjectModel&) : QStandardItemModel () { } pcl::cloud_composer::ProjectModel::~ProjectModel () { work_thread_->quit (); work_thread_->deleteLater (); work_queue_->deleteLater (); } pcl::cloud_composer::ProjectModel::ProjectModel (QString project_name, QObject* parent) : QStandardItemModel (parent) { selection_model_ = new QItemSelectionModel(this); setName (project_name); } void pcl::cloud_composer::ProjectModel::setName (QString new_name) { //If it hasn't been set yet if (!horizontalHeaderItem (0)) setHorizontalHeaderItem (0, new QStandardItem (new_name)); else { QStandardItem* header = horizontalHeaderItem (0); header->setText(new_name); } } void pcl::cloud_composer::ProjectModel::setCloudView (CloudView* view) { cloud_view_ = view; // Initialize status variables tied to the view setAxisVisibility (true); } void pcl::cloud_composer::ProjectModel::setPointSelection (boost::shared_ptr<SelectionEvent> selected_event) { selection_event_ = selected_event; //Get all the items in this project that are clouds QList <CloudItem*> project_clouds; for (int i = 0; i < this->rowCount (); ++i) { CloudItem* cloud_item = dynamic_cast <CloudItem*> (this->item (i)); if ( cloud_item ) project_clouds.append ( cloud_item ); } selected_item_index_map_.clear (); // Find all indices in the selected points which are present in the clouds foreach (CloudItem* cloud_item, project_clouds) { pcl::PointIndices::Ptr found_indices = boost::make_shared<pcl::PointIndices>(); selected_event->findIndicesInItem (cloud_item, found_indices); if (found_indices->indices.size () > 0) { qDebug () << "Found "<<found_indices->indices.size ()<<" points in "<<cloud_item->text (); selected_item_index_map_. insert (cloud_item, found_indices); cloud_item->setForeground (QBrush (Qt::green)); } } setSelectedStyle (interactor_styles::PCL_VISUALIZER); emit mouseStyleState (interactor_styles::PCL_VISUALIZER); } void pcl::cloud_composer::ProjectModel::manipulateClouds (boost::shared_ptr<ManipulationEvent> manip_event) { //Get all the items in this project that are clouds QList <CloudItem*> project_clouds; for (int i = 0; i < this->rowCount (); ++i) { CloudItem* cloud_item = dynamic_cast <CloudItem*> (this->item (i)); if ( cloud_item ) project_clouds.append ( cloud_item ); } QMap <QString, vtkSmartPointer<vtkMatrix4x4> > transform_map = manip_event->getEndMap (); QList <QString> ids = transform_map.keys (); ConstItemList input_data; TransformClouds* transform_tool = new TransformClouds (transform_map); foreach (CloudItem* cloud_item, project_clouds) { if (ids.contains (cloud_item->getId ())) { qDebug () << "Found matching item for actor "<<cloud_item->getId (); input_data.append (cloud_item); } } //Move the tool object to the work queue thread transform_tool->moveToThread (work_thread_); //Emit signal which tells work queue to enqueue this new action emit enqueueNewAction (transform_tool, input_data); } void pcl::cloud_composer::ProjectModel::insertNewCloudFromFile () { qDebug () << "Inserting cloud from file..."; QString filename = QFileDialog::getOpenFileName (0,tr ("Select cloud to open"), last_directory_.absolutePath (), tr ("PointCloud(*.pcd)")); if ( filename.isNull ()) { qWarning () << "No file selected, no cloud loaded"; return; } else { QFileInfo file_info (filename); last_directory_ = file_info.absoluteDir (); } sensor_msgs::PointCloud2::Ptr cloud_blob (new sensor_msgs::PointCloud2); Eigen::Vector4f origin; Eigen::Quaternionf orientation; int version; pcl::PCDReader pcd; if (pcd.read (filename.toStdString (), *cloud_blob, origin, orientation, version) < 0) { qDebug () << "Failed to read cloud from file"; return; } if (cloud_blob->width * cloud_blob->height == 0) { qDebug () << "Cloud read has zero size!"; return; } QFileInfo file_info (filename); QString short_filename = file_info.baseName (); //Check if this name already exists in the project - if so, append digit QList <QStandardItem*> items = findItems (short_filename); if (items.size () > 0) { int k = 2; items = findItems (short_filename+ tr ("-%1").arg (k)); while (items.size () > 0) { ++k; items = findItems (short_filename+ tr ("-%1").arg (k)); } short_filename = short_filename+ tr ("-%1").arg (k); } CloudItem* new_item = new CloudItem (short_filename, cloud_blob, origin, orientation, true); insertNewCloudComposerItem (new_item, invisibleRootItem()); } void pcl::cloud_composer::ProjectModel::insertNewCloudFromRGBandDepth () { qDebug () << "Inserting cloud from RGB and Depth files..."; QString rgb_filename = QFileDialog::getOpenFileName (0,tr ("Select rgb image file to open"), last_directory_.absolutePath (), tr ("Images(*.png *.bmp *.tif *.ppm)")); QString depth_filename; if ( rgb_filename.isNull ()) { qWarning () << "No file selected, no cloud loaded"; return; } else { QFileInfo file_info (rgb_filename); last_directory_ = file_info.absoluteDir (); QString base_name = file_info.baseName (); QStringList depth_filter; depth_filter << base_name.split("_").at(0) + "_depth.*"; last_directory_.setNameFilters (depth_filter); QFileInfoList depth_info_list = last_directory_.entryInfoList (); if (depth_info_list.size () == 0) { qCritical () << "Could not find depth file in format (rgb file base name)_depth.*"; return; } else if (depth_info_list.size () > 1) { qWarning () << "Found more than one file which matches depth naming format, using first one!"; } depth_filename = depth_info_list.at (0).absoluteFilePath (); } //Read the images vtkSmartPointer<vtkImageReader2Factory> reader_factory = vtkSmartPointer<vtkImageReader2Factory>::New (); vtkImageReader2* rgb_reader = reader_factory->CreateImageReader2 (rgb_filename.toStdString ().c_str ()); qDebug () << "RGB File="<<rgb_filename; if ( ! rgb_reader->CanReadFile (rgb_filename.toStdString ().c_str ())) { qCritical () << "Cannot read rgb image file!"; return; } rgb_reader->SetFileName (rgb_filename.toStdString ().c_str ()); rgb_reader->Update (); qDebug () << "Depth File="<<depth_filename; vtkImageReader2* depth_reader = reader_factory->CreateImageReader2 (depth_filename.toStdString ().c_str ()); if ( ! depth_reader->CanReadFile (depth_filename.toStdString ().c_str ())) { qCritical () << "Cannot read depth image file!"; return; } depth_reader->SetFileName (depth_filename.toStdString ().c_str ()); depth_reader->Update (); vtkSmartPointer<vtkImageData> rgb_image = rgb_reader->GetOutput (); int *rgb_dims = rgb_image->GetDimensions (); vtkSmartPointer<vtkImageData> depth_image = depth_reader->GetOutput (); int *depth_dims = depth_image->GetDimensions (); if (rgb_dims[0] != depth_dims[0] || rgb_dims[1] != depth_dims[1]) { qCritical () << "Depth and RGB dimensions to not match!"; qDebug () << "RGB Image is of size "<<rgb_dims[0] << " by "<<rgb_dims[1]; qDebug () << "Depth Image is of size "<<depth_dims[0] << " by "<<depth_dims[1]; return; } qDebug () << "Images loaded, making cloud"; PointCloud<PointXYZRGB>::Ptr cloud = boost::make_shared <PointCloud<PointXYZRGB> >(); cloud->points.reserve (depth_dims[0] * depth_dims[1]); cloud->width = depth_dims[0]; cloud->height = depth_dims[1]; cloud->is_dense = false; // Fill in image data int centerX = static_cast<int>(cloud->width / 2.0); int centerY = static_cast<int>(cloud->height / 2.0); unsigned short* depth_pixel; unsigned char* color_pixel; float scale = 1.0f/1000.0f; float focal_length = 525.0f; float fl_const = 1.0f / focal_length; depth_pixel = static_cast<unsigned short*>(depth_image->GetScalarPointer (depth_dims[0]-1,depth_dims[1]-1,0)); color_pixel = static_cast<unsigned char*> (rgb_image->GetScalarPointer (depth_dims[0]-1,depth_dims[1]-1,0)); for (int y=0; y<cloud->height; ++y) { for (int x=0; x<cloud->width; ++x, --depth_pixel, color_pixel-=3) { PointXYZRGB new_point; // uint8_t* p_i = &(cloud_blob->data[y * cloud_blob->row_step + x * cloud_blob->point_step]); float depth = (float)(*depth_pixel) * scale; // qDebug () << "Depth = "<<depth; if (depth == 0.0f) { new_point.x = new_point.y = new_point.z = std::numeric_limits<float>::quiet_NaN (); } else { new_point.x = ((float)(x - centerX)) * depth * fl_const; new_point.y = ((float)(centerY - y)) * depth * fl_const; // vtk seems to start at the bottom left image corner new_point.z = depth; } uint32_t rgb = (uint32_t)color_pixel[0] << 16 | (uint32_t)color_pixel[1] << 8 | (uint32_t)color_pixel[2]; new_point.rgb = *reinterpret_cast<float*> (&rgb); cloud->points.push_back (new_point); // qDebug () << "depth = "<<depth << "x,y,z="<<data[0]<<","<<data[1]<<","<<data[2]; //qDebug() << "r ="<<color_pixel[0]<<" g="<<color_pixel[1]<<" b="<<color_pixel[2]; } } qDebug () << "Done making cloud!"; QFileInfo file_info (rgb_filename); QString short_filename = file_info.baseName (); //Check if this name already exists in the project - if so, append digit QList <QStandardItem*> items = findItems (short_filename); if (items.size () > 0) { int k = 2; items = findItems (short_filename+ tr ("-%1").arg (k)); while (items.size () > 0) { ++k; items = findItems (short_filename+ tr ("-%1").arg (k)); } short_filename = short_filename+ tr ("-%1").arg (k); } CloudItem* new_item = CloudItem::createCloudItemFromTemplate<PointXYZRGB> (short_filename,cloud); insertNewCloudComposerItem (new_item, invisibleRootItem()); } void pcl::cloud_composer::ProjectModel::saveSelectedCloudToFile () { qDebug () << "Saving cloud to file..."; QModelIndexList selected_indexes = selection_model_->selectedIndexes (); if (selected_indexes.size () == 0) { QMessageBox::warning (qobject_cast<QWidget *>(this->parent ()), "No Cloud Selected", "Cannot save, no cloud is selected in the browser or cloud view"); return; } else if (selected_indexes.size () > 1) { QMessageBox::warning (qobject_cast<QWidget *>(this->parent ()), "Too many clouds Selected", "Cannot save, currently only support saving one cloud at a time"); return; } QStandardItem* item = this->itemFromIndex (selected_indexes.value (0)); CloudItem* cloud_to_save = dynamic_cast <CloudItem*> (item); if (!cloud_to_save ) { QMessageBox::warning (qobject_cast<QWidget *>(this->parent ()), "Not a Cloud!", "Selected item is not a cloud, not saving!"); return; } QString filename = QFileDialog::getSaveFileName (0,tr ("Save Cloud"), last_directory_.absolutePath (), tr ("PointCloud(*.pcd)")); if ( filename.isNull ()) { qWarning () << "No file selected, not saving"; return; } else { QFileInfo file_info (filename); last_directory_ = file_info.absoluteDir (); } sensor_msgs::PointCloud2::ConstPtr cloud = cloud_to_save->data (ItemDataRole::CLOUD_BLOB).value <sensor_msgs::PointCloud2::ConstPtr> (); Eigen::Vector4f origin = cloud_to_save->data (ItemDataRole::ORIGIN).value <Eigen::Vector4f> (); Eigen::Quaternionf orientation = cloud_to_save->data (ItemDataRole::ORIENTATION).value <Eigen::Quaternionf> (); int result = pcl::io::savePCDFile (filename.toStdString (), *cloud, origin, orientation ); } void pcl::cloud_composer::ProjectModel::enqueueToolAction (AbstractTool* tool) { qDebug () << "Enqueuing tool action "<<tool->getToolName ()<<" in project model "<<this->getName (); //Get the currently selected item(s), put them in a list, and create the command ConstItemList input_data; QModelIndexList selected_indexes = selection_model_->selectedIndexes (); if (selected_indexes.size () == 0) { QMessageBox::warning (qobject_cast<QWidget *>(this->parent ()), "No Items Selected", "Cannot use tool, no item is selected in the browser or cloud view"); return; } foreach (QModelIndex index, selected_indexes) { QStandardItem* item = this->itemFromIndex (index); if ( dynamic_cast <CloudComposerItem*> (item)) input_data.append (dynamic_cast <CloudComposerItem*> (item)); } qDebug () << "Input for tool is "<<input_data.size () << " element(s)"; //Move the tool object to the work queue thread tool->moveToThread (work_thread_); //Emit signal which tells work queue to enqueue this new action emit enqueueNewAction (tool, input_data); } void pcl::cloud_composer::ProjectModel::commandCompleted (CloudCommand* command) { //We set the project model here - this wasn't done earlier so model is never exposed to plugins command->setProjectModel (this); qDebug () << "Applying command changes to model and pushing onto undo stack"; //command->redo (); undo_stack_->push (command); } void pcl::cloud_composer::ProjectModel::insertNewCloudComposerItem (CloudComposerItem* new_item, QStandardItem* parent_item) { parent_item->appendRow (new_item); } /////////////////////////////////////////////////////////////// //Slots for commands arriving from GUI /////////////////////////////////////////////////////////////// void pcl::cloud_composer::ProjectModel::clearSelection () { getSelectionModel ()->clearSelection (); //Clear the point selector as well if it has an active selection if (selection_event_) selection_event_.reset (); foreach (CloudItem* selected_item, selected_item_index_map_.keys()) { qDebug () << "Setting item color back to black"; selected_item->setForeground (QBrush (Qt::black));; } selected_item_index_map_.clear (); } void pcl::cloud_composer::ProjectModel::deleteSelectedItems () { QModelIndexList selected_indexes = selection_model_->selectedIndexes (); if (selected_indexes.size () == 0) { QMessageBox::warning (qobject_cast<QWidget *>(this->parent ()), "No Items Selected", "Cannot execute delete command, no item is selected in the browser or cloud view"); return; } ConstItemList input_data; foreach (QModelIndex index, selected_indexes) { QStandardItem* item = this->itemFromIndex (index); //qDebug () << item->text () << " selected!"; if ( dynamic_cast <CloudComposerItem*> (item)) input_data.append (dynamic_cast <CloudComposerItem*> (item)); } // qDebug () << "Input for command is "<<input_data.size () << " element(s)"; DeleteItemCommand* delete_command = new DeleteItemCommand (ConstItemList ()); delete_command->setInputData (input_data); if (delete_command->runCommand (0)) commandCompleted(delete_command); else qCritical () << "Execution of delete command failed!"; } void pcl::cloud_composer::ProjectModel::setAxisVisibility (bool visible) { //qDebug () << "Setting axis visibility to "<<visible; axis_visible_ = visible; cloud_view_->setAxisVisibility (axis_visible_); } void pcl::cloud_composer::ProjectModel::mouseStyleChanged (QAction* new_style_action) { interactor_styles::INTERACTOR_STYLES selected_style = new_style_action->data ().value<interactor_styles::INTERACTOR_STYLES> (); qDebug () << "Selected style ="<<selected_style; setSelectedStyle (selected_style); // Now set the correct interactor if (cloud_view_) cloud_view_->setInteractorStyle (selected_style); else qWarning () << "No Cloud View active, can't change interactor style!"; } void pcl::cloud_composer::ProjectModel::createNewCloudFromSelection () { // We need only clouds to be selected if (!onlyCloudItemsSelected ()) { qCritical () << "Only Clouds Selected = False -- Cannot create a new cloud from non-cloud selection"; return; } //Add selected items into input data list QModelIndexList selected_indexes = selection_model_->selectedIndexes (); ConstItemList input_data; foreach (QModelIndex index, selected_indexes) { QStandardItem* item = this->itemFromIndex (index); //qDebug () << item->text () << " selected!"; if ( dynamic_cast <CloudComposerItem*> (item)) input_data.append (dynamic_cast <CloudComposerItem*> (item)); } QMap <const CloudItem*, pcl::PointIndices::ConstPtr> selected_const_map; foreach ( CloudItem* item, selected_item_index_map_.keys ()) selected_const_map.insert (item, selected_item_index_map_.value (item)); MergeSelection* merge_tool = new MergeSelection (selected_const_map); //We don't call the enqueueToolAction function since that would abort if we only have a green selection //Move the tool object to the work queue thread merge_tool->moveToThread (work_thread_); //Emit signal which tells work queue to enqueue this new action emit enqueueNewAction (merge_tool, input_data); } void pcl::cloud_composer::ProjectModel::selectAllItems (QStandardItem* item) { int num_rows; if (!item) item = this->invisibleRootItem (); else selection_model_->select (item->index (), QItemSelectionModel::Select); //qDebug () << "Select all!"<< item->rowCount(); for (int i = 0; i < item->rowCount (); ++i) { if (item->child (i)) selectAllItems(item->child (i)); } } ///////////////////////////////////////////////////////// //Slots for Model State //////////////////////////////////////////////////////// void pcl::cloud_composer::ProjectModel::emitAllStateSignals () { emit axisVisible (axis_visible_); emit deleteAvailable (selection_model_->hasSelection ()); emit newCloudFromSelectionAvailable (onlyCloudItemsSelected ()); //Find out which style is active, emit the signal QMap<interactor_styles::INTERACTOR_STYLES, bool>::iterator itr = selected_style_map_.begin(); foreach (interactor_styles::INTERACTOR_STYLES style, selected_style_map_.keys()) { if (selected_style_map_.value (style)) { emit mouseStyleState (style); break; } } } void pcl::cloud_composer::ProjectModel::itemSelectionChanged ( const QItemSelection & selected, const QItemSelection & deselected ) { //qDebug () << "Item selection changed!"; //Set all point selected cloud items back to green text, since if they are selected they get changed to white foreach (CloudItem* selected_item, selected_item_index_map_.keys()) { selected_item->setForeground (QBrush (Qt::green));; } } ////////////////////////////////////////////////////// // Private Support Functions ////////////////////////////////////////////////////// bool pcl::cloud_composer::ProjectModel::onlyCloudItemsSelected () { QModelIndexList selected_indexes = selection_model_->selectedIndexes(); foreach (QModelIndex model_index, selected_indexes) { if (this->itemFromIndex (model_index)->type () != CloudComposerItem::CLOUD_ITEM ) { return false; } } return true; } void pcl::cloud_composer::ProjectModel::setSelectedStyle (interactor_styles::INTERACTOR_STYLES style) { QMap<interactor_styles::INTERACTOR_STYLES, bool>::iterator itr = selected_style_map_.begin(); while (itr != selected_style_map_.end ()) { itr.value() = false; ++itr; } selected_style_map_[style] = true; }
[ "jkammerl@rbh.willowgarage.com" ]
jkammerl@rbh.willowgarage.com
cc40550652244b4ded9478de92137cc7426bd0d6
eb0eecfd2745ccc87e87e7634e4dcea7cb327db4
/leetcode/Set_Matrix_Zeroes/SetMatrixZeroes_ConstantSpace.cpp
a7a7dbd66018c6d955174c4eca8edb271b33fc21
[]
no_license
ailyanlu1/Programming-Challenges
64e0dcfe68d8e4de3bf77df258779752adf4473b
0641a8b8fb5a07cf734ecf16368c2bbd98f4c8c2
refs/heads/master
2020-03-23T09:03:15.370963
2015-05-09T14:33:32
2015-05-09T14:33:32
null
0
0
null
null
null
null
UTF-8
C++
false
false
1,130
cpp
// O(1) Space complexity, use the first zero as pivot to record if a col or row need to be set zero class Solution { public: void setZeroes(vector<vector<int> > &matrix) { int n = matrix.size(); if(n < 1) return; int m = matrix[0].size(); int x = -1, y = -1; for(int i = 0; i < n; ++i){ for(int j = 0; j < m; ++j){ if(matrix[i][j] == 0){ if(x == -1 && y == -1){ x = i; y = j; }else{ matrix[x][j] = 0; matrix[i][y] = 0; } } } } if(x == -1 && y == -1) return; for(int i = 0; i < n; ++i){ if(i == x) continue; for(int j = 0; j < m; ++j){ if(j == y) continue; if(matrix[x][j] == 0 || matrix[i][y] == 0){ matrix[i][j] = 0; } } } for(int i = 0; i < n; ++i) matrix[i][y] = 0; for(int j = 0; j < m; ++j) matrix[x][j] = 0; } };
[ "binlong.plus@gmail.com" ]
binlong.plus@gmail.com
a0fb50a5d7f7dea3c29ef645330f2ac7d220dbe2
5e5563a2610a8ea900ca56537150a63eb7aa5560
/nextRound/nextRound.cpp
c78f273e338bb3b0f3fddeee96fc3454a0f17e52
[]
no_license
ToxicCoderAJ/Codeforces-code
ba9ec3ef29f4884922751a2b3003c5ddb60616f4
b6486449cc90d5bdee13e878c4d051a90136bc65
refs/heads/main
2023-02-08T00:12:07.778948
2020-12-30T16:35:14
2020-12-30T16:35:14
325,589,740
0
0
null
null
null
null
UTF-8
C++
false
false
114
cpp
#include <iostream> using namespace std; int main(){ int n,k; cin >> n >> k; return 0; }
[ "noreply@github.com" ]
ToxicCoderAJ.noreply@github.com
031c26a10fbabfca24296adfe09764577fc260d8
73864265ceb1bd7f20da2462796b86a55b995067
/external/include/king/Engine.h
9304996cccc81a06992dfdadc1c1fa73b22dda84
[]
no_license
eusekerci/MidasMinerClone
d372785228f77fe512581ff5d3a36f5e076a2a06
18b7047d55542b73568cd37bdeb020fa0299bb47
refs/heads/master
2021-01-19T12:45:29.522493
2017-08-25T06:50:49
2017-08-25T06:50:49
100,806,332
1
0
null
null
null
null
UTF-8
C++
false
false
1,102
h
// (C) king.com Ltd 2014 #pragma once #include <glm/fwd.hpp> #include <memory> namespace King { class Updater; class Engine { public: enum Texture { TEXTURE_BACKGROUND, TEXTURE_BLUE, TEXTURE_GREEN, TEXTURE_PURPLE, TEXTURE_RED, TEXTURE_YELLOW, TEXTURE_SELECTION, TEXTURE_MAX }; Engine(const char* assetsDirectory); ~Engine(); float GetLastFrameSeconds() const; float GetMouseX() const; float GetMouseY() const; bool GetMouseButtonDown() const; void Start(Updater& updater); void Quit(); int GetTextureHeight(Texture texture) const; int GetTextureWidth(Texture texture) const; void Render(Texture texture, const glm::mat4& transform); void Render(Texture texture, float x, float y, float rotation = 0.0f); float CalculateStringWidth(const char* text) const; void Write(const char* text, const glm::mat4& transform); void Write(const char* text, float x, float y, float rotation = 0.0f); int GetWidth() const; int GetHeight() const; private: struct EngineImplementation; std::unique_ptr<EngineImplementation> mPimpl; }; }
[ "enesugursekerci@gmail.com" ]
enesugursekerci@gmail.com