Component Architecture
Previous  Top  Next


This topic shows the software architecture behind the DTP editor. It may be of interest to the developer that is interested in integrating DtpDocuments into a project.

A trial version of the component collection is available on our website. You are encouraged to try this trial component collection in your project.

clip0083
Below is a list of objects with their key properties and key methods. This is not a complete list, just most important items are mentioned. Events are not listed.

TDtpDocument
Key Methods
·AlignLeft/Center/Right/Top/Middle/Bottom  
·Clear  
·ClearSelection  
·Cut/Copy/Paste  
·Group/Ungroup  
·InsertShape  
·LoadFromFile/SaveToFile  
·MoveBack/MoveFront/MoveToBackground/MoveToForeground  
·New  
·PageAdd/Copy/Delete/Move/Insert  
·Print/PrintSelection  
·Undo  
·ZoomIn/Out/Page/Width  
Key Properties
·AllowKeyInput  
·Archive: pointer to the document file  
·AutoPageUpdate  
·Default page properties (sizes, color, margins, background image)  
·HelperMethod  
·Hint properties (pause, hide pause, short pause)  
·HotzoneScrolling, HotzoneDuration  
·InsertMode  
·MultiselectMethod  
·Pages[]: Owned list of pages in this document  
·PageUpdateInterval: For thumbnail update  
·Performance: memory over speed/speed over memory  
·PrintQuality  
·Quality (see resample method in user panel)  
·ReadOnly  
·RenderDPM: internal rendering resolution  
·ScreenDPM: screen resolution (scaling factor)  
·ShowMargins  
·SnapToGrid  
·ThumbnailWidth/Height  
·UndoEnabled  
·Viewstyle (Print layout or normal)  

TDtpShape
Key Methods
·LoadFromXML/SaveToXML  
Key Properties
·AllowEdit  
·AllowResize  
·AllowRotate  
·AllowSelect  
·Anchors  
·Effects[]: Owned list of effects (TDtpEffect)  
·DocLeft, DocTop, DocWidth, DocHeight: the left/top and width/height in document units.  
·DocAngle: rotation of the shape relative to the parent shape.  
·Hint: the hint to display on MouseOver  
·Flipped, Mirrored  
·MasterAlpha: master transparency  
·Name: name of the shape (for use in scripting)  
·PopupMenu: pointer to a popupmenu to display on rightclick  
·PreserveAspect: preserve the aspect ratio  
·Selected  
·Tag: an integer value that the developer can use  
·Visible  

TDtpPage
Key Methods
·Print, PrintFast, PrintScreen  
Key Properties
·BackgroundImage  
·GridSize/Color  
·MarginLeft/Top/Bottom/Right  
·PageColor  
·IsDefaultPage  


TDtpComponent
This component inherits directly from TDtpDocument and serves as the front end to the library. It is visible on the component tab and can be dropped on the form. It publishes a number of properties from TDtpDocument.

TDtpThumbnailView
This is the viewer for thumbnails, and has a reference to the TDtpDocument.

TDtpPropertyPanels
This is the page control with tabbed property panels, and has a reference to the TDtpDocument.