I need a application to make template doc.
the template have some concept:
1. section. (not like ms word), section have property like ¡°title, id, readonly, candeleted. Section can nest, but not allow override. Section start must be paragraph start and section end must be paragraph end. If section property readonly=true, all content is section will be readonly, and don¡¯t allow insert anything. If candeleted=false, the section cann¡¯t be deleted, but all content can be deleted if readonly=false.
2. group. Group have same property as section. Group is items group. It contain some richview items, not like section, it start at a item and end at other item end. Group can¡¯t nest.
Section and group have same behavior. When cursor move over the area, a rectangle around the area will be show. On the rectangle top-left corner has a smart popup button for popup menu to setting section or group property.
I think using checkpoint to identify the section or group start and end position, checkpoint tag can store other properties with section or group. On onmousemove event to show rectangle. But the item with checkpoint may be deleted by user.
Other question is item copy or cut behavior, those properties in section or group will not be copy. How to implement it? Have any idea and suggestion?
section:
group:
help about template editor feature.
-
- Site Admin
- Posts: 17559
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
As for pasting, you can use OnPaste event to paste the content in a temporal invisible TRichViewEdit (using rvTemp.Paste), then modify content of this invisible TRichViewEdit, then insert it content to the main editor (rvTemp.SaveRVFToStream, rvMain.InsertRVFFromStreamEd).
As for other features, I am afraid it would be quite complicated to implement them.
As for other features, I am afraid it would be quite complicated to implement them.