#include <SnpCreateFrame.h>
- How to to create frames(IGraphicFrameData) of various types on a spread positioned relative to the current page,
- rectangle frame, text frame and various styled graphics are created,
- how to use ILayoutControlData to find the active spread layer and page.
- See Also
- IGraphicFrameData
- ILayoutControlData
- SDKLayoutHelper
- SnpGraphicHelper
| bool16 SnpCreateFrame::ActivateTextEditor | ( | | ) | |
Activate kIBeamToolBoss if a text tool is not already active.
- Returns
- kTrue on success, kFalse otherwise.
Create a spline in the shape of an arrow with various graphic attributes applied so that it is drawn as a dashed line with an arrow head at one end.
- Parameters
| layoutControlData | IN gives the active spread layer the frame will be parented on and the page it will be positioned on. |
| boundsInPageCoords | IN bounding box of the frame in page co-ordinates. |
- Returns
- UIDRef of created frame (IGraphicFrameData), UIDRef::gNull on failure.
Create a rectangle frame.
- Parameters
| layoutControlData | IN gives the active spread layer the frame will be parented on and the page it will be positioned on. |
| boundsInPageCoords | IN bounding box of the frame in page co-ordinates. |
- Returns
- UIDRef of created frame (IGraphicFrameData), UIDRef::gNull on failure.
Create a rectangular graphic.
- Parameters
| layoutControlData | IN gives the active spread layer the frame will be parented on and the page it will be positioned on. |
| boundsInPageCoords | IN bounding box of the frame in page co-ordinates. |
- Returns
- UIDRef of created frame (IGraphicFrameData), UIDRef::gNull on failure.
Create a square parented inside a rectangular graphic with a fancy border.
- Parameters
| layoutControlData | IN gives the active spread layer the frame will be parented on and the page it will be positioned on. |
| boundsInPageCoords | IN bounding box of the frame in page co-ordinates. |
- Returns
- UIDRef of created frame (IGraphicFrameData), UIDRef::gNull on failure.
Create a text frame.
- Parameters
| layoutControlData | IN gives the active spread layer the frame will be parented on and the page it will be positioned on. |
| boundsInPageCoords | IN bounding box of the frame in page co-ordinates. |
- Returns
- UIDRef of created frame (IGraphicFrameData), UIDRef::gNull on failure.
If the frame is a text frame activate the text editor and make a text selection to set the text caret at the start of the story, otherwise make a layout selection of the frame.
- Parameters
| selectionManager | |
| frameUIDRef | |
- Returns
- kTrue on success, kFalse otherwise.