![]() | InDesign SDK 20.5 |
Public Member Functions | |
| SnpProcessDocumentLayerCmds () | |
| virtual | ~SnpProcessDocumentLayerCmds () |
| ErrorCode | CreateNewLayer (IDocument *doc) |
| ErrorCode | CopyToNewLayer (IDocument *doc, IControlView *view) |
| ErrorCode | CreateActiveLayer (IDocument *doc, IControlView *view) |
| ErrorCode | CopySelectedItems (IControlView *view) |
| ErrorCode | SetLayerPrefs (bool16 pasteRemembersLayers) |
| bool16 | GetPasteRemembersLayers () |
| ErrorCode | SelectAllItemsOnActiveLayer (IDocument *doc, IControlView *view) |
| ErrorCode | ChangeItemName (UIDRef selectedItemRef, PMString itemName) |
| ErrorCode | ShowHidePageItem (UIDRef selectedItemRef) |
| inline |
Constructor.
| inlinevirtual |
Destructor.
change the current selected item name if it is not assigned by user
| selectedItemRef | IN the current selected item |
| itemName | IN the new pageitem name |
| ErrorCode SnpProcessDocumentLayerCmds::CopySelectedItems | ( | IControlView * | view | ) |
Copy/Paste the current selection into the current layer via the IScrapSuite and the clipboard.
| view | IN the control view |
| ErrorCode SnpProcessDocumentLayerCmds::CopyToNewLayer | ( | IDocument * | doc, |
| IControlView * | view | ||
| ) |
| doc | IN the document |
| view | IN the control view |
| ErrorCode SnpProcessDocumentLayerCmds::CreateActiveLayer | ( | IDocument * | doc, |
| IControlView * | view | ||
| ) |
Invokes NewLayerCmd to create a new command followed by SetActiveLayerCmd to make the new layer active.
| doc | IN the document |
| view | IN the control view |
| ErrorCode SnpProcessDocumentLayerCmds::CreateNewLayer | ( | IDocument * | doc | ) |
| doc | IN the document |
| bool16 SnpProcessDocumentLayerCmds::GetPasteRemembersLayers | ( | ) |
Queries the layer preferences to find if the preference PasteRemembersLayers is set.
| ErrorCode SnpProcessDocumentLayerCmds::SelectAllItemsOnActiveLayer | ( | IDocument * | doc, |
| IControlView * | view | ||
| ) |
select all page items on active layer
| doc | IN the current document |
| view | IN the control view to use |
| ErrorCode SnpProcessDocumentLayerCmds::SetLayerPrefs | ( | bool16 | pasteRemembersLayers | ) |
Invokes SetLayerPrefsCmd to set layer preferences
| pasteRemembersLayers | IN whether or not to set PasteRemembersLayers preference |
| ErrorCode SnpProcessDocumentLayerCmds::ShowHidePageItem | ( | UIDRef | selectedItemRef | ) |
hide the current selected item
| selectedItemRef | IN the current selected item |