Object Linking and Embedding

Object Linking and Embedding (OLE) is a proprietary technology developed by Microsoft that allows embedding and linking to documents and other objects. For developers, it brought OLE Control Extension (OCX), a way to develop and use custom user interface elements. On a technical level, an OLE object is any object that implements the IOleObject interface, possibly along with a wide range of other interfaces, depending on the object's needs.

Overview

OLE allows an editing application to export part of a document to another editing application and then import it with additional content. For example, a desktop publishing system might send some text to a word processor or a picture to a bitmap editor using OLE.[1] The main benefit of OLE is to add different kinds of data to a document from different applications, like a text editor and an image editor. This creates a Compound File Binary Format document and a master file to which the document makes reference. Changes to data in the master file immediately affect the document that references it. This is called "linking" (instead of "embedding").

OLE can also be used to transfer data between different applications using drag and drop or clipboard operations.

History

OLE 1.0

OLE 1.0, released in 1990, was an evolution of the original Dynamic Data Exchange (DDE) concept that Microsoft developed for earlier versions of Windows. While DDE was limited to transferring limited amounts of data between two running applications, OLE was capable of maintaining active links between two documents or even embedding one type of document within another.

OLE servers and clients communicate with system libraries using virtual function tables, or VTBLs. The VTBL consists of a structure of function pointers that the system library can use to communicate with the server or client. The server and client libraries, OLESVR.DLL and OLECLI.DLL, were originally designed to communicate between themselves using the WM_DDE_EXECUTE message.

OLE 1.0 later evolved to become an architecture for software components known as the Component Object Model (COM), and later DCOM.

When an OLE object is placed on the clipboard or embedded in a document, both a visual representation in native Windows formats (such as a bitmap or metafile) is stored, as well as the underlying data in its own format. This allows applications to display the object without loading the application used to create the object, while also allowing the object to be edited, if the appropriate application is installed.

The Object Packager, a component of OLE, shipping from Windows 3.1 up to Windows XP allows a non-OLE object to be "packaged" so it can be embedded into an OLE client.

OLE 2.0

OLE 2.0 was the next evolution of OLE, sharing many of the same goals as version 1.0, but was re-implemented on top of the COM instead of using VTBLs directly. New features were OLE automation, drag-and-drop, in-place activation and structured storage. Monikers evolved from OLE 1 object names, and provided a hierarchical object and resource naming system similar to URLs or URIs, which were independently invented. Windows now has merged the two technologies supporting a URL Moniker type, and a Moniker URL scheme.

OLE custom controls

OLE custom controls were introduced in 1994 as a replacement for the now deprecated Visual Basic Extension controls. Instead of upgrading these, the new architecture was based on OLE. In particular, any container that supported OLE 2.0 could already embed OLE custom controls, although these controls cannot react to events unless the container supports this. OLE custom controls are usually shipped in the form of a dynamic link library with the .ocx extension. In 1996 all interfaces for controls (except IUnknown) were made optional to keep the file size of controls down, so they would download faster; these were then called ActiveX Controls.

Technical details

OLE objects and containers are implemented on top of the Component Object Model; they are objects that can implement interfaces to export their functionality. Only the IOleObject interface is compulsory, but other interfaces may also need to be implemented if the functionality exported by those interfaces is required.

To ease understanding of what follows, some terminology has to be explained. The view status of an object is whether the object is transparent, opaque, or opaque with a solid background, and whether it supports drawing with a specified aspect. The site of an object is an object representing the location of the object in its container. A container supports a site object for every object contained.

What follows is a list of interfaces, grouped by the object that usually needs to implement them. Interfaces usually implemented by the OLE object are usually called on by the OLE container, and vice versa. Note that in the following list indentation indicates interface inheritance. All non-indented interfaces derive from IUnknown.

OLE object

DataObject
When implemented, enables the transfer of data, and notification of data changes. It must be implemented by objects that are to support drag-and-drop, being copied to or pasted from the clipboard, or being linked or embedded in a containing document.
ObjectWithSite
Allows the caller to inform the OLE object of its site. This functionality is also provided by OleObject, but ObjectWithSite can be used, when supported, if OleObject is not used for other matters.
OleCache
Allows visual presentations from a DataObject to be cached. This allows an embedded object to store its visual representation, thus enabling it to be displayed later without needing to start the application that was used to create the object.
Usually the stock implementation is used.
OleCache2
Provides more fine-grained control over caching.
Usually the stock implementation is used.
OleCacheControl
This interface is not called by the container, but internally by the object to allow it to receive notifications of when its DataObject is running, thereby allowing it to subscribe to notifications of data changes of that object and thus allowing it to update the cached presentation properly.
Usually the stock implementation is used.
OleDocument
Allows the OLE object to support multiple views of its data, as well as a few related functions.
OleDocumentView
A document object (an object that implements OleDocument) implements this interface for every view. It allows the caller to set the site of the object, query and set the size of the object and to show and activate it, as well as some related functions.
OleWindow
OleInPlaceActiveObject
Called by the outermost container of an object to interact with it while it's active, e.g. to process accelerator keys in the container's message queue that are meant for the contained object.
OleInPlaceObject
Called by the container to activate or deactivate the object.
IOleInPlaceObjectWindowless
A windowless object is an object that doesn't have its own window but it instead displayed in its container's window. It is used by the container to relay messages received by the container's window that are intended for the contained object. For example, if the mouse is moved over a window, Windows places a mouse move message along with the mouse coordinates in the message queue of the window. If this window contains windowless embedded objects, the message may have to be relayed to such an object if the coordinates of the mouse-pointer are over this object. For similar reasons this interface also provides access to the object's DropTarget interface.
OleLink
Allows the object to support linking, e.g. by allowing the container to set the source of a linked object.
Usually the stock implementation is used.
OleObject
Arguably the most important interface for an OLE object. For example, it allows the container to inform the object of its site, initialize the object from data, to open and close it, to query and set the size of the object, to ask for notifications on the container's AdviseSink and to execute objects defined as "verbs" on the object. These verbs often include "Open" or "Edit", but can also include other verbs. One of the verbs is defined to be the principal verb, and it is executed when the user double-clicks an object.
ViewObject
Allows an object to draw itself directly, without passing a DataObject to the container. For objects that support both DataObject and this interface, the underlying implementation is usually shared.
ViewObject2
Additionally allows the caller to query the size of the object.
ViewObjectEx
Adds support for flicker-free drawing of transparent objects, hit-testing for objects with irregular shapes and setting the size of an object.

OLE container

IAdviseSink
Allows the implementer to receive notifications when the object is saved, closed, or renamed, or when its data or visual presentation changes.
IAdviseSink2
Additionally allows the implementer to receive notifications when the link source of the OLE object changes.
IAdviseSinkEx
Additionally allows the implementer to receive notifications when the view status of the OLE object changes.
IOleClientSite
This interface allows the caller to obtain information on the container and location of an object, as well requesting that the object be saved, resized, shown, hidden, et cetera.
IOleDocumentSite
Allows the caller to ask for the object on this site to be activated immediately. If this interface is implemented, IOleClientSite, IOleInPlaceSite and IAdviseSink must be implemented as well.
IOleContainer
This interface allows the caller to enumerate embedded objects in a container, or to find such objects by name. It is primarily useful if the container wishes to support links to embedded objects.
IOleWindow
IOleInPlaceUIWindow
Enables embedded objects to negotiate space for toolbars on the container's window.
IOleInPlaceFrame
Allows the caller to ask the container to insert its menu items in an empty menu that will become the cooperative menu. Also allows the caller to ask the container to show or hide this menu, to show or hide dialog boxes, and to process accelerator keys received by the contained object intended for the container.
IOleInPlaceSite
If a container implements this interface, it allows embedded objects to be activated in place, i.e. without opening in a separate window. It provides access to the container's IOleInPlaceUIWindow.
IOleInPlaceSiteEx
If a container implements this interface, it allows embedded objects to check whether they need to redraw on activation or deactivation. It also allows them to request their UI to activate.
IOleInPlaceSiteWindowless
If a container wishes to support windowless embedded objects, it needs to provide functionality to embedded objects to replace the functionality normally provided by an embedded object's window. For example this interface provides a way to access the container's window's device context, thereby enabling the embedded object to draw in the container's window.
IOleUILinkContainer
Contains the methods that the standard OLE dialog boxes that manage linked objects use to update linked objects in a container, or to query and change their sources. Used by the "Links", "Change source", "Update links" and "Object properties" dialog boxes.
IOleUILinkInfo
Additionally allows the dialog boxes to query when linked objects were last updated, and whether this was done automatically or manually.
IOleUIObjInfo
Contains the methods needed by the "Object properties" dialog box. For example if the user opens the "Object properties" dialog box and asks for the object to be converted to another type, a method on this interface is called.
IOleUndoManager
Provides a centralized undo service to both the container itself and to embedded objects. When an undoable action is performed, an IOleUndoUnit is created and added to the IOleUndoManager

Other

IDataAdviseHolder
The methods of IDataObject that pertain to data change notifications can be implemented by calling the methods of this interface.
Usually the stock implementation is used.
IOleAdviseHolder
The methods of IOleObject that pertain to notifications can be implemented by calling the methods of this interface.
Usually the stock implementation is used.
IDropSource
Implemented by objects that can be dragged, i.e. that can be the source of a drag-and-drop operations. When implemented it allows the object to draw drag-and-drop effects, and to specify when the object is dropped, or the drag-and-drop operation is cancelled.
IDropTarget
Implemented by objects that accept dropped objects, i.e. that can be the target of drag-and-drop operations. When implemented it allows the target to specify if a dropped object will be accepted, and what happens to an object after it is dropped.
IOleCommandTarget
Can be implemented by objects (OLE objects, OLE containers, and other objects) that wish to support certain standard commands. It allows callers to query if commands are supported, and to execute commands. Commands that an object might typically wish to implement may include things like "delete", "cut", "copy", "paste", "undo", "find", "print", "save", "zoom", and so on. Currently 58 standard commands have been defined, and they include commands commonly used by office software, web browsers and similar applications.
IOleUndoUnit
Represents an action that can be undone. It contains all information necessary to undo an action. It is created by objects and containers, so that undoable actions can be added to the container's IOleUndoManager.
IOleParentUndoUnit
Allows an undo unit to contain other undo units. In essence this allows the undo unit to act as an undo stack, grouping undo units together. For example, if a macro is run, all undo-able actions performed by the macro may be grouped together in one undo unit.
IOleWindow
This interface represents a window of a container or contained object. It allows callers to obtain the handle of the window, and to toggle the context-sensitive help function. When the context-sensitive help function is turned on, typically the mouse-pointer changes to an arrow with a question mark to indicate that clicking a user interface element will result in opening a help window.

Competition

OpenDoc technology tried to compete with OLE. Some of Microsoft's competitors[who?] considered OpenDoc to be more robust and easier to use. OpenDoc allowed users to view and edit information across applications, directly in competition with Microsoft's proprietary OLE standard. In 1993 some Microsoft competitors established a consortium called the Component Integration Laboratories ("CIL") to develop OpenDoc as an open standard for cross-platform linking and embedding.

Microsoft required OLE compatibility as a condition of Microsoft's certification of an application's compatibility with Windows 95. Microsoft initially announced that applications using OpenDoc would be deemed compatible with OLE, and would receive certification for Windows 95. Microsoft later reversed the decision and said that applications using OpenDoc might not receive certification at all. Microsoft withheld specifications and debugged versions of OLE until after it had released its competing applications.

Interoperability

Use of OLE objects limits interoperability, because these objects are not widely supported in programs for viewing or editing files outside of Microsoft Windows (e.g., embedding of other files inside the file, such as tables or charts from a spreadsheet application in a text document or presentation file).[2][3][4][5] If software that understands an OLE object is not available, the object is usually replaced by a picture (bitmap representation of the object) or not displayed at all.[6][7][8]

See also

References

  1. ^ This article is based on material taken from Object+Linking+and+Embedding at the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.
  2. ^ Byfield, Bruce (2005-08-23). "FOSS word processors compared: OOo Writer, AbiWord, and KWord". Linux.com. The Linux Foundation. Archived from the original on 2020-11-06. Retrieved 2020-09-29.
  3. ^ Byfield, Bruce (2005-07-28). "Sharing files between OpenOffice.org and Microsoft Office". Linux.com. The Linux Foundation. Archived from the original on 2020-11-06. Retrieved 2020-09-29.
  4. ^ Sharma, Mayank (2008-11-20). "SoftMaker Office 2008 focuses on compatibility with Microsoft Office". Linux.com. The Linux Foundation. Archived from the original on 2020-11-06. Retrieved 2020-09-29.
  5. ^ Lagadec, Philippe (2006-11-30). "OpenOffice / OpenDocument and Microsoft Office 2007 / Open XML security" (PDF). PacSec 2006 Conference. Archived (PDF) from the original on 2011-07-22. Retrieved 2020-09-29.
  6. ^ Gong, Rhett (2005-09-05). "RE: OLE object - bitmap representation?". Newsgroupmicrosoft.public.win32.programmer.ole. Usenet: [email protected]. Retrieved 2020-09-29.
  7. ^ O'Neill, Mike (2005-02-09). "A Rich Edit Control That Displays Bitmaps and Other OLE Objects". Code Project. Archived from the original on 2011-12-31. Retrieved 2020-09-29.
  8. ^ "ACC: Why OLE Objects Cause Databases to Grow". Microsoft. 2007-01-19. Archived from the original on 2008-02-15.

Read other articles:

Untuk edisi ke-69 yang diadakan Mei 2021, lihat Miss Universe 2020. Miss Universe 2021Harnaaz Kaur Sandhu, Miss Universe 2021Tanggal12 Desember 2021Tempat Universe Dome, Eilat, IsraelPembawa acaraSteve HarveyCarson KressleyCheslie KrystPengisi acaraJoJoNoa KirelHarel SkaatPenyiaranInternasional:FoxTelemundo Penyiar resmi:yes Dramayes VODSTINGTV[1]Peserta80Finalis/Semifinalis16DebutBahrainTidak tampilBarbadosBelizeIndonesiaMalaysiaMyanmarUruguayTampil kembaliGuinea ...

 

 

«StereoRai - La radio della musica dal vivo» (Lo slogan di presentazione del canale radiofonico) StereoRaiPaese Italia Linguaitaliano Data di lancio1991 Data di chiusura1994 EditoreRai Canali precedentiRaiStereoUno Canali gemellatiRai Radio 1 DiffusioneTerrestreFMin Italia Modifica dati su Wikidata · Manuale StereoRai è stato un canale radiofonico della Rai, nato il 31 marzo 1991 sulla FM di Rai Radio 1 dall'esperienza di RaiStereoUno, che cessò di esistere nel 1994. La progra...

 

 

1790 treaty between the United States and Creek A portrait of Henry Knox, who signed the treaty The Treaty of New York was a treaty signed in 1790 between leaders of the Muscogee and U.S. Secretary of War Henry Knox, who served in the presidential administration of George Washington. A failed 1789 attempt at a treaty between the United States and the Muscogee at Rock Landing, Georgia in 1789, was abruptly ended by Muscogee leader Alexander McGillivray, who described his grievances in a letter...

Questa voce o sezione sull'argomento veicoli militari è priva o carente di note e riferimenti bibliografici puntuali. Sebbene vi siano una bibliografia e/o dei collegamenti esterni, manca la contestualizzazione delle fonti con note a piè di pagina o altri riferimenti precisi che indichino puntualmente la provenienza delle informazioni. Puoi migliorare questa voce citando le fonti più precisamente. Segui i suggerimenti del progetto di riferimento. Leopard 1Leopard 1A5-DK danese al mus...

 

 

Limestone County, AlabamaLokasi di negara bagian AlabamaLokasi negara bagian Alabama di Amerika SerikatDidirikanFebruary 6, 1818[1]SeatAthensKota terbesarAthensWilayah • Keseluruhan607 sq mi (1.572 km2) • Daratan568 sq mi (1.471 km2) • Perairan39 sq mi (101 km2), (6.43%)Populasi • (2000)65.676 • Kepadatan47/sq mi (18/km²) Limestone County, Alabamaadalah county yang terletak d...

 

 

Historic church in New Jersey, United States United States historic placeSt. George's-by-the-River Episcopal ChurchU.S. National Register of Historic PlacesNew Jersey Register of Historic Places Show map of Monmouth County, New JerseyShow map of New JerseyShow map of the United StatesLocation7 Lincoln Avenue, Rumson, New JerseyCoordinates40°21′48″N 73°58′43″W / 40.36333°N 73.97861°W / 40.36333; -73.97861Area1.3 acres (0.53 ha)Built1907ArchitectWalker &...

ヨハネス12世 第130代 ローマ教皇 教皇就任 955年12月16日教皇離任 964年5月14日先代 アガペトゥス2世次代 レオ8世個人情報出生 937年スポレート公国(中部イタリア)スポレート死去 964年5月14日 教皇領、ローマ原国籍 スポレート公国親 父アルベリーコ2世(スポレート公)、母アルダその他のヨハネステンプレートを表示 ヨハネス12世(Ioannes XII、937年 - 964年5月14日)は、ロ...

 

 

جمعية القلب الأمريكية جمعية القلب الأمريكية‌ الاختصار (بالإنجليزية: AHA)‏  البلد الولايات المتحدة  المقر الرئيسي  الولايات المتحدة تاريخ التأسيس 10 يونيو 1924[1]  الوضع القانوني منظمة 501(c)(3)[2]  العضوية لجنة الاتصال الدولية للانعاش،  وأورسيد  [لغات �...

 

 

习近平 习近平自2012年出任中共中央总书记成为最高领导人期间,因其废除国家主席任期限制、开启总书记第三任期、集权统治、公共政策与理念、知识水平和自述经历等争议,被中国大陸及其他地区的民众以其争议事件、个人特征及姓名谐音创作负面称呼,用以恶搞、讽刺或批评习近平。对习近平的相关负面称呼在互联网上已经形成了一种活跃、独特的辱包亚文化。 权力�...

1976–77 season of Brentford F.C. Brentford 1976–77 football seasonBrentford1976–77 seasonChairmanDan TanaManagerJohn Docherty(until 7 September 1976)Eddie Lyons(7–16 September 1976)Bill Dodgin Jr.(from 16 September 1976)StadiumGriffin ParkFourth Division15thFA CupSecond roundLeague CupFirst roundTop goalscorerLeague: Sweetzer (23)All: Sweetzer (23)Highest home attendance8,951Lowest home attendance3,158Average home league attendance5,121 Home colours Away colours ← 1975–76...

 

 

Governor of AlabamaSeal of the governorStandard of the governorIncumbentKay Iveysince April 10, 2017Government of AlabamaStyleGovernor(informal)The Honorable(formal)StatusHead of stateHead of governmentResidenceAlabama Governor's MansionTerm lengthFour years, renewable once consecutivelyPrecursorGovernor of Alabama TerritoryInaugural holderWilliam Wyatt BibbFormationDecember 14, 1819(204 years ago) (1819-12-14)DeputyLieutenant Governor of AlabamaSalary$127,833 (2022)[1]...

 

 

Laerrucomune(IT, SC) Laèrru Laerru – Veduta LocalizzazioneStato Italia Regione Sardegna Provincia Sassari AmministrazioneSindacoMassimiliano Leonardo Manca (lista civica) dal 26-10-2020 TerritorioCoordinate40°49′02″N 8°50′07″E40°49′02″N, 8°50′07″E (Laerru) Altitudine165 m s.l.m. Superficie19,85 km² Abitanti813[1] (31-3-2024) Densità40,96 ab./km² Comuni confinantiBulzi, Martis, Nulvi, Perfugas, Sedini Altre inform...

Caverna delle Arene CandideI ritrovamenti del Giovane principe esposti al museo di archeologia ligure di PegliStato Italia Regione Liguria Province Savona ComuniFinale Ligure Altitudine93 m s.l.m. Altri nomiGrotta dei Frati, armassa Coordinate44°09′44.37″N 8°19′41.78″E44°09′44.37″N, 8°19′41.78″E Caverna delle Arene Candide Modifica dati su Wikidata · Manuale La Caverna delle Arene Candide è un importante sito archeologico in grotta situato a Fina...

 

 

Lord Mayor of PerthIncumbentBasil Zempilassince 19 October 2020StyleThe Right Honourable Lord MayorAppointerCity of PerthInaugural holderJames T. Franklin[a]Formation1929[b] Photographs of all mayors and lord mayors start from George Shenton on the staircase of the Perth Town Hall The history of the City of Perth, a local government area of Western Australia is defined over three distinct periods: From 1829 to 1838 — controlled by the Governor of Western Australia From...

 

 

HIV/AIDS in Eswatini was first reported in 1986 but has since reached epidemic proportions. As of 2016, Eswatini had the highest prevalence of HIV among adults aged 15 to 49 in the world (27.2%).[1][2] The HIV/AIDS epidemic in Eswatini has contributed largely to high mortality rates among productive Swazi age groups. Over the long-term, the epidemic and its respondents induced major cultural changes surrounding local practices and ideas of death, dying, and illness, as well a...

  提示:此条目页的主题不是芒語。 莽语Maŋ35区域越南萊州省、老挝、中国云南省族群莽族(莽人)母语使用人数约3165人(1999年)語系南亚语系 卡西—克木语族(英语:Khasi–Khmuic languages)莽语語言代碼ISO 639-3zngGlottologmang1378[1]ELPMang瀕危程度联合国教科文组织认定的瀕危語言[2]危险(UNESCO) 莽语(莽语:[maŋ35]、越南語:tiếng Mảng)是居住于越南、老�...

 

 

Bankia Bankia, S. A. Puerta de Europa, antigua sede de Bankia en Madrid.Tipo BancoSímbolo bursátil BME: BKIAISIN ES0113307062Industria Finanzas y segurosForma legal sociedad anónimaFundación 2011Disolución 2021Sede central Ver listaSocial: C/ Pintor Sorolla, 8, 46002 Valencia, España España Operativa: Paseo de la Castellana, 189, 28046 Madrid, España España Presidente José Ignacio Goirigolzarri Tellaeche[1]​Consejero Delegado José Sevilla Álvarez[1]​Prod...

 

 

Song by R.E.M New Test LeperGermany promotional releasePromotional single by R.E.M.from the album New Adventures in Hi-Fi ReleasedSeptember 9, 1996 (UK)September 10, 1996 (U.S.)StudioBad Animals, Seattle, WashingtonGenreAlternative rockLength5:26LabelWarner Bros.Songwriter(s)Bill BerryPeter BuckMike MillsMichael StipeProducer(s)Scott LittR.E.M. New Test Leper is a song by R.E.M., included on their tenth studio album, New Adventures in Hi-Fi, which was released in 1996. It wasn't released as a...

ガルシア6世García VI ナバラ国王 在位 1134年 - 1150年出生 1112年頃死去 1150年11月21日 ナバラ王国、バジェ・デ・イェリ配偶者 マルガリータ・デ・ライグレ  ウラカ・デ・カスティーリャ子女 マルガリータサンチョ6世ブランカ家名 ヒメノ家王朝 ヒメノ朝父親 ラミロ・サンチェス母親 クリスティーナ・ロドリゲステンプレートを表示 ガルシア6世(García VI, 1112年頃 - 1150�...

 

 

أردنيونالتعداد الكليالتعداد 12.000.000 نسمة تقريبًامناطق الوجود المميزةالبلد الأردن الأردن (2017) 10.053.000[1]مغتربين 2.000.000اللغات العربية (رسمية)، الشركسية (لغة أقلية)، الشيشانية (لغة أقلية).الدين إسلام سني (غالبية)، مسيحيون (أقلية).المجموعات العرقية المرتبطةفرع من التركيبة السك...