亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? oleclientsite.java

?? 源碼為Eclipse開(kāi)源開(kāi)發(fā)平臺(tái)桌面開(kāi)發(fā)工具SWT的源代碼,
?? JAVA
?? 第 1 頁(yè) / 共 4 頁(yè)
字號(hào):
protected int Release() {	refCount--;		if (refCount == 0) {		disposeCOMInterfaces();	}	return refCount;}protected void releaseObjectInterfaces() {	if (objIOleInPlaceObject!= null)		objIOleInPlaceObject.Release();	objIOleInPlaceObject = null;		if (objIOleObject != null) {			objIOleObject.Close(COM.OLECLOSE_NOSAVE);		objIOleObject.Release();	}	objIOleObject = null;		if (objDocumentView != null){		objDocumentView.Release();	}	objDocumentView = null;		if (objIViewObject2 != null) {		objIViewObject2.SetAdvise(aspect, 0, 0);		objIViewObject2.Release();	}	objIViewObject2 = null;		if (objIOleCommandTarget != null)		objIOleCommandTarget.Release();	objIOleCommandTarget = null;			if (objIUnknown != null){		objIUnknown.Release();	}	objIUnknown = null;		COM.CoFreeUnusedLibraries();}public boolean save(File file, boolean includeOleInfo) {	if (includeOleInfo)		return saveToStorageFile(file);	return saveToTraditionalFile(file);}private boolean saveFromContents(int address, File file) {	boolean success = false;		IStream tempContents = new IStream(address);	tempContents.AddRef();	try {		FileOutputStream writer = new FileOutputStream(file);				int increment = 1024 * 4;		int pv = COM.CoTaskMemAlloc(increment);		int[] pcbWritten = new int[1];		while (tempContents.Read(pv, increment, pcbWritten) == COM.S_OK && pcbWritten[0] > 0) {			byte[] buffer = new byte[ pcbWritten[0]];			OS.MoveMemory(buffer, pv, pcbWritten[0]);			writer.write(buffer); // Note: if file does not exist, this will create the file the 			                      // first time it is called			success = true;		}		COM.CoTaskMemFree(pv);					writer.close();			} catch (IOException err) {	}	tempContents.Release();	return success;}private boolean saveFromOle10Native(int address, File file) {	boolean success = false;		IStream tempContents = new IStream(address);	tempContents.AddRef();		// The "\1Ole10Native" stream contains a DWORD header whose value is the length 	// of the native data that follows.	int pv = COM.CoTaskMemAlloc(4);	int[] size = new int[1];	int rc = tempContents.Read(pv, 4, null);	OS.MoveMemory(size, pv, 4);	COM.CoTaskMemFree(pv);	if (rc == COM.S_OK && size[0] > 0) {				// Read the data		byte[] buffer = new byte[size[0]];		pv = COM.CoTaskMemAlloc(size[0]);		rc = tempContents.Read(pv, size[0], null);		OS.MoveMemory(buffer, pv, size[0]);		COM.CoTaskMemFree(pv);		// open the file and write data into it		try {			FileOutputStream writer = new FileOutputStream(file);			writer.write(buffer); // Note: if file does not exist, this will create the file			writer.close();			success = true;		} catch (IOException err) {		}	}	tempContents.Release();	return success;}private int SaveObject() {	updateStorage();			return COM.S_OK;}/** * Saves the document to the specified file and includes OLE spcific inforrmation.  This method  * must <b>only</b> be used for files that have an OLE Storage format.  For example, a word file  * edited with Word.Document should be saved using this method because there is formating information * that should be stored in the OLE specific Storage format. * * @param file the file to which the changes are to be saved * * @return true if the save was successful */private boolean saveToStorageFile(File file) {	// The file will be saved using the formating of the current application - this	// may not be the format of the application that was originally used to create the file	// e.g. if an Excel file is opened in Word, the Word application will save the file in the 	// Word format	// Note: if the file already exists, some applications will not overwrite the file	// In these cases, you should delete the file first (probably save the contents of the file in case the	// save fails)	if (file == null || file.isDirectory()) return false;	if (!updateStorage()) return false;		// get access to the persistant storage mechanism	int[] address = new int[1];	if (objIOleObject.QueryInterface(COM.IIDIPersistStorage, address) != COM.S_OK) return false;	IPersistStorage permStorage = new IPersistStorage(address[0]);	try {		address = new int[1];		char[] path = (file.getAbsolutePath()+"\0").toCharArray();		int mode = COM.STGM_TRANSACTED | COM.STGM_READWRITE | COM.STGM_SHARE_EXCLUSIVE | COM.STGM_CREATE;		int result = COM.StgCreateDocfile(path, mode, 0, address); //Does an AddRef if successful		if (result != COM.S_OK) return false;		IStorage storage =  new IStorage(address[0]);		try {			if (COM.OleSave(permStorage.getAddress(), storage.getAddress(), false) == COM.S_OK) {				if (storage.Commit(COM.STGC_DEFAULT) == COM.S_OK) {					return true;				}			}		} finally {			storage.Release();		}	} finally {		permStorage.Release();	}	return false;}/** * Saves the document to the specified file.  This method must be used for * files that do not have an OLE Storage format.  For example, a bitmap file edited with MSPaint  * should be saved using this method because bitmap is a standard format that does not include any * OLE specific data. * * @param file the file to which the changes are to be saved * * @return true if the save was successful */private boolean saveToTraditionalFile(File file) {	// Note: if the file already exists, some applications will not overwrite the file	// In these cases, you should delete the file first (probably save the contents of the file in case the	// save fails)	if (file == null || file.isDirectory())		return false;	if (!updateStorage())		return false;		int[] address = new int[1];	// Look for a CONTENTS stream	if (tempStorage.OpenStream("CONTENTS", 0, COM.STGM_DIRECT | COM.STGM_READ | COM.STGM_SHARE_EXCLUSIVE, 0, address) == COM.S_OK) //$NON-NLS-1$		return saveFromContents(address[0], file);			// Look for Ole 1.0 object stream	if (tempStorage.OpenStream("\1Ole10Native", 0, COM.STGM_DIRECT | COM.STGM_READ | COM.STGM_SHARE_EXCLUSIVE, 0, address) == COM.S_OK) //$NON-NLS-1$		return saveFromOle10Native(address[0], file);			return false;}private int Scroll(int scrollExtant) {	return COM.S_OK;}void setBorderSpace(RECT newBorderwidth) {	borderWidths = newBorderwidth;	// readjust size and location of client site	Rectangle area = frame.getClientArea();	setBounds(borderWidths.left, borderWidths.top, 				area.width - borderWidths.left - borderWidths.right, 				area.height - borderWidths.top - borderWidths.bottom);	setObjectRects();}private void setExtent(int width, int height){	// Resize the width and height of the embedded/linked OLENatives object	// to the specified values.	if (objIOleObject == null || isStatic || inUpdate) return;	SIZE currentExtent = getExtent();	if (width == currentExtent.cx && height == currentExtent.cy) return;	SIZE newExtent = new SIZE();	newExtent.cx = width; newExtent.cy = height;	newExtent = xFormPixelsToHimetric(newExtent);	   // Get the server running first, then do a SetExtent, then show it	boolean alreadyRunning = COM.OleIsRunning(objIOleObject.getAddress());	if (!alreadyRunning)		COM.OleRun(objIOleObject.getAddress());		if (objIOleObject.SetExtent(aspect, newExtent) == COM.S_OK){		inUpdate = true;		objIOleObject.Update();		inUpdate = false;		if (!alreadyRunning)			// Close server if it wasn't already running upon entering this method.			objIOleObject.Close(COM.OLECLOSE_SAVEIFDIRTY);	}}public void setIndent(Rectangle newIndent) {	indent = new RECT();	indent.left = newIndent.x;	indent.right = newIndent.width;	indent.top = newIndent.y;	indent.bottom = newIndent.height;}private void setObjectRects() {	if (objIOleInPlaceObject == null) return;		// size the object to fill the available space	// leave a border	RECT rect = getRect();	objIOleInPlaceObject.SetObjectRects(rect, rect);}private int ShowObject() {	/* Tells the container to position the object so it is visible to 	 * the user. This method ensures that the container itself is 	 * visible and not minimized.	 */	return COM.S_OK;}/** * Displays a dialog with the property information for this OLE Object.  The OLE Document or * ActiveX Control must support the ISpecifyPropertyPages interface. * * @param title the name that will appear in the titlebar of the dialog */public void showProperties(String title) {	// Get the Property Page information from the OLE Object	int[] ppvObject = new int[1];	if (objIUnknown.QueryInterface(COM.IIDISpecifyPropertyPages, ppvObject) != COM.S_OK) return;	ISpecifyPropertyPages objISPP = new ISpecifyPropertyPages(ppvObject[0]);	CAUUID caGUID = new CAUUID();	int result = objISPP.GetPages(caGUID);	objISPP.Release();	if (result != COM.S_OK) return;	// create a frame in which to display the pages	char[] chTitle = null;	if (title != null) {		chTitle = new char[title.length()];		title.getChars(0, title.length(), chTitle, 0);	}	result = COM.OleCreatePropertyFrame(frame.handle, 10, 10, chTitle, 1, new int[] {objIUnknown.getAddress()}, caGUID.cElems, caGUID.pElems, COM.LOCALE_USER_DEFAULT, 0, 0);	// free the property page information	COM.CoTaskMemFree(caGUID.pElems);}private boolean updateStorage() {	if (tempStorage == null) return false;	int[] ppv = new int[1];	if (objIUnknown.QueryInterface(COM.IIDIPersistStorage, ppv) != COM.S_OK) return false;	IPersistStorage iPersistStorage = new IPersistStorage(ppv[0]);	int result = COM.OleSave(iPersistStorage.getAddress(), tempStorage.getAddress(), true);	if (result != COM.S_OK){		// OleSave will fail for static objects, so do what OleSave does.		COM.WriteClassStg(tempStorage.getAddress(), objClsid);		result = iPersistStorage.Save(tempStorage.getAddress(), true);	}		tempStorage.Commit(COM.STGC_DEFAULT);	result = iPersistStorage.SaveCompleted(0);	iPersistStorage.Release();				return true;}private SIZE xFormHimetricToPixels(SIZE aSize) {	// Return a new Size which is the pixel transformation of a 	// size in HIMETRIC units.	int hDC = OS.GetDC(0);	int xppi = OS.GetDeviceCaps(hDC, 88); // logical pixels/inch in x	int yppi = OS.GetDeviceCaps(hDC, 90); // logical pixels/inch in y	OS.ReleaseDC(0, hDC);	int cx = Compatibility.round(aSize.cx * xppi, 2540); // 2540 HIMETRIC units per inch	int cy = Compatibility.round(aSize.cy * yppi, 2540);	SIZE size = new SIZE();	size.cx = cx;	size.cy = cy;	return size;}private SIZE xFormPixelsToHimetric(SIZE aSize) {	// Return a new size which is the HIMETRIC transformation of a 	// size in pixel units.	int hDC = OS.GetDC(0);	int xppi = OS.GetDeviceCaps(hDC, 88); // logical pixels/inch in x	int yppi = OS.GetDeviceCaps(hDC, 90); // logical pixels/inch in y	OS.ReleaseDC(0, hDC);	int cx = Compatibility.round(aSize.cx * 2540, xppi); // 2540 HIMETRIC units per inch	int cy = Compatibility.round(aSize.cy * 2540, yppi);	SIZE size = new SIZE();	size.cx = cx;	size.cy = cy;	return size;}}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人在线视频一区二区| 欧美videos中文字幕| 不卡一二三区首页| 亚洲综合丁香婷婷六月香| 欧美亚洲免费在线一区| av电影在线观看一区| 久久综合九色综合欧美98 | 国产在线乱码一区二区三区| 亚洲一区二区四区蜜桃| 夜夜精品视频一区二区| 亚洲精品国产无套在线观| 亚洲人成在线播放网站岛国| 成人免费在线观看入口| 中文字幕在线播放不卡一区| 亚洲欧美日韩中文播放 | 欧美日韩高清影院| 欧美一区二区在线播放| 日韩色视频在线观看| 精品粉嫩aⅴ一区二区三区四区| 欧美mv和日韩mv国产网站| 久久美女艺术照精彩视频福利播放| 久久蜜桃一区二区| 日韩毛片一二三区| 午夜欧美一区二区三区在线播放| 天天色天天爱天天射综合| 九一久久久久久| www.成人网.com| 欧美久久久久中文字幕| 精品对白一区国产伦| 亚洲欧洲韩国日本视频| 五月天久久比比资源色| 亚洲不卡在线观看| 另类综合日韩欧美亚洲| 国产高清视频一区| 欧美伊人精品成人久久综合97| 日韩精品专区在线影院重磅| 国产精品久久国产精麻豆99网站| 午夜亚洲福利老司机| 国产激情精品久久久第一区二区 | 一区在线中文字幕| 午夜精品福利视频网站| 国产精品自产自拍| 欧美日韩aaa| 中国av一区二区三区| 日韩中文字幕区一区有砖一区 | 91丝袜美腿高跟国产极品老师| 色噜噜狠狠一区二区三区果冻| 91精品国产综合久久久久久| 中文欧美字幕免费| 久久精品国产99国产精品| 色婷婷激情一区二区三区| 久久久久久毛片| 污片在线观看一区二区| 成人一级片在线观看| 日韩欧美国产精品| 国产精品美女久久久久久久| 免费xxxx性欧美18vr| 91伊人久久大香线蕉| 久久久久国产一区二区三区四区| 亚洲影视资源网| 粉嫩一区二区三区性色av| 日韩一级大片在线| 亚洲一区中文日韩| 99久久夜色精品国产网站| 久久午夜羞羞影院免费观看| 视频一区免费在线观看| 在线精品视频免费播放| 亚洲欧美在线高清| 99在线精品观看| 又紧又大又爽精品一区二区| 国产剧情av麻豆香蕉精品| 日韩欧美国产系列| 日本aⅴ免费视频一区二区三区| 欧美三级三级三级| 亚洲午夜久久久久久久久电影网 | 亚洲aⅴ怡春院| 在线看日韩精品电影| 欧美激情一区二区三区四区| 国产一区二区三区免费| 久久久久国产精品厨房| 国产自产高清不卡| 久久午夜老司机| 岛国一区二区三区| 欧美韩国日本不卡| 不卡影院免费观看| 一区二区三区四区国产精品| 色噜噜狠狠成人中文综合 | 日韩av中文字幕一区二区 | 久久一区二区三区四区| 国产一区二区伦理片| 国产精品久线在线观看| 成人一区二区三区视频在线观看| 国产精品久久三| 99精品1区2区| 手机精品视频在线观看| 日韩亚洲欧美在线观看| 国产一区在线观看视频| 国产精品免费视频一区| 欧美制服丝袜第一页| 无吗不卡中文字幕| 2024国产精品| 99精品欧美一区二区三区综合在线| 亚洲欧美日韩成人高清在线一区| 欧美性猛交xxxx乱大交退制版 | 久久精品视频免费| 91麻豆高清视频| 日本午夜精品视频在线观看| 久久久久久一二三区| 91蝌蚪porny成人天涯| 五月激情综合婷婷| 久久久亚洲综合| caoporen国产精品视频| 五月天网站亚洲| 久久久久国产精品麻豆| 在线观看中文字幕不卡| 国产真实乱子伦精品视频| 亚洲女同女同女同女同女同69| 91精品免费在线观看| 粉嫩高潮美女一区二区三区| 午夜婷婷国产麻豆精品| 国产精品国产自产拍高清av| 欧美亚洲一区二区三区四区| 丰满放荡岳乱妇91ww| 免费成人你懂的| 亚洲一区二区四区蜜桃| 国产精品美女久久久久高潮| 欧美一区二区在线观看| 色综合 综合色| 国产精品自在欧美一区| 热久久国产精品| 亚洲综合免费观看高清完整版在线 | 午夜日韩在线观看| 亚洲人成小说网站色在线| 久久久精品人体av艺术| 日韩视频免费观看高清完整版| 97精品久久久午夜一区二区三区 | 亚洲一区在线视频观看| 中文字幕精品在线不卡| 日韩精品专区在线影院重磅| 欧美久久久久免费| 欧美视频三区在线播放| 色婷婷一区二区| 91免费观看视频在线| 国产91精品久久久久久久网曝门| 捆绑调教一区二区三区| 日本女优在线视频一区二区| 亚洲va国产va欧美va观看| 亚洲制服欧美中文字幕中文字幕| 亚洲区小说区图片区qvod| 中文子幕无线码一区tr| 久久久99免费| 国产亚洲一区二区三区在线观看 | 日本亚洲三级在线| 亚洲线精品一区二区三区八戒| 亚洲一二三四区不卡| 一区二区三区四区蜜桃| 一区二区三区欧美| 午夜天堂影视香蕉久久| 免费一级片91| 激情综合五月婷婷| 国产馆精品极品| 成人动漫一区二区三区| eeuss影院一区二区三区 | 午夜电影久久久| 日韩av不卡一区二区| 激情综合色综合久久综合| 精品一区二区免费| 国产一区二区调教| 成人高清在线视频| 色婷婷综合久久久久中文一区二区| 91影视在线播放| 555夜色666亚洲国产免| 日韩免费高清av| 日本一区二区视频在线| 亚洲激情综合网| 婷婷六月综合亚洲| 国产一区二区伦理片| 99久久夜色精品国产网站| 欧美日韩国产片| 久久亚洲影视婷婷| 亚洲婷婷在线视频| 日本大胆欧美人术艺术动态| 国产一区二区主播在线| 色综合天天狠狠| 日韩免费看的电影| 亚洲天天做日日做天天谢日日欢 | 亚洲色图制服诱惑| 日韩经典一区二区| 成人h版在线观看| 欧美日韩国产123区| 欧美国产日韩在线观看| 亚洲成av人在线观看| 国产一区二区久久| 欧美日韩综合不卡| 国产亚洲一区二区三区在线观看| 亚洲大片在线观看| 成人福利在线看| 精品国产91久久久久久久妲己 | 国产成人精品亚洲午夜麻豆| 欧美日韩免费观看一区二区三区 |