Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catcmds(3u) [debian man page]

catcmds(3U)						    InterViews Reference Manual 					       catcmds(3U)

NAME
NewCompCmd, PrintCmd, QuitCmd, RevertCmd, SaveCompCmd, SaveCompAsCmd, ViewCompCmd - catalog-oriented commands SYNOPSIS
#include <Unidraw/Commands/catcmds.h> DESCRIPTION
The Unidraw library predefines a set of non-interpretive commands that let a user specify components to open, view, and save, plus commands for generating a PostScript external representation and for quitting the application. NewCompCmd re-initializes its editor's component to let the user start editing afresh. If the existing component is modified, NewCompCmd prompts the user to save it. PrintCmd generates a PostScriptView of the editor's component and lets the user send it to a file or to a printer. QuitCmd quits the application, prompting the user to save modified components. RevertCmd lets the user re-open the current component, discarding changes since it was last saved. SaveCompAsCmd lets the user save a component under a particular name, while SaveCompCmd saves a component named previously. Finally, View- CompCmd lets the user specify another component to view in its editor. NEWCOMPCMD PUBLIC OPERATIONS
NewCompCmd(ControlInfo*, Component* prototype = nil) NewCompCmd(Editor* = nil, Component* = nil) Create a new NewCompCmd instance, optionally supplying a prototype component. When executed, NewCompCmd will make its editor edit a copy of the prototype. The editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() NewCompCmd is not reversible. Component* GetPrototype() Return the prototype component specified in the constructor. PRINTCMD PUBLIC OPERATIONS
PrintCmd(ControlInfo*, PrintDialog* = nil) PrintCmd(Editor* = nil, PrintDialog* = nil) Create a new PrintCmd instance, optionally supplying the PrintDialog to display when executed. virtual boolean Reversible() PrintCmd is not reversible. PRINTCMD PROTECTED OPERATIONS
void print(const char* print_cmd, const char* file) Concatenates print_cmd and file and calls system(3) on the result. QUITCMD PUBLIC OPERATIONS
QuitCmd(ControlInfo*) QuitCmd(Editor* = nil) Create a new QuitCmd instance. virtual boolean Reversible() QuitCmd is not reversible. REVERTCMD PUBLIC OPERATIONS
RevertCmd(ControlInfo*) RevertCmd(Editor* = nil) Create a new RevertCmd instance. virtual boolean Reversible() RevertCmd is not reversible. SAVECOMPCMD PUBLIC OPERATIONS
SaveCompCmd(ControlInfo*) SaveCompCmd(Editor* = nil) Create a new SaveCompCmd instance. virtual boolean Reversible() SaveCompCmd is not reversible. SAVECOMPASCMD PUBLIC OPERATIONS
SaveCompAsCmd(ControlInfo*, FileChooser* = nil) SaveCompAsCmd(Editor* = nil, FileChooser* = nil) Create a new SaveCompAsCmd instance, optionally supplying the FileChooser that will prompt the user to name the component. virtual boolean Reversible() SaveCompAsCmd is not reversible. VIEWCOMPCMD PUBLIC OPERATIONS
ViewCompCmd(ControlInfo*, FileChooser* = nil) ViewCompCmd(Editor* = nil, FileChooser* = nil) Create a new ViewCompCmd instance, optionally supplying the FileChooser that will prompt the user to specify the component to view. After the new component is opened successfully, the editor's original component will be deleted if no other editor refers to it. virtual boolean Reversible() ViewCompCmd is not reversible. SEE ALSO
BasicDialog(3U), Command(3U), Component(3U), Editor(3U), PostScriptView(3U), lpr(1). Unidraw 23 January 1991 catcmds(3U)

Check Out this Related Man Page

struct(3U)						    InterViews Reference Manual 						struct(3U)

NAME
BackCmd, FrontCmd, GroupCmd, UngroupCmd - commands for modifying components structurally SYNOPSIS
#include <Unidraw/Commands/struct.h> DESCRIPTION
BackCmd, FrontCmd, GroupCmd, and UngroupCmd are purely interpretive commands for altering the structure of their editor's component. All redefine their Execute and Unexecute operations to let the editor's component interpret them as it wishes. BACKCMD PUBLIC OPERATIONS
BackCmd(ControlInfo*) BackCmd(Editor* = nil) Construct a new BackCmd. FRONTCMD PUBLIC OPERATIONS
FrontCmd(ControlInfo*) FrontCmd(Editor* = nil) Construct a new FrontCmd. GROUPCMD PUBLIC OPERATIONS
GroupCmd(ControlInfo*, GraphicComp* = nil) GroupCmd(Editor* = nil, GraphicComp* = nil) Create a new GroupCmd, optionally specifying the component into which components will be grouped. virtual void Execute() virtual void Unexecute() Execute will set the value of the _executed protected member variable to true as a side effect if anything was grouped. Similarly, Unexecute will set reset the value to false as a side effect the operation was undone. GraphicComp* GetGroup() void SetGroup(GraphicComp*) Get or set the component into which components will be grouped. SetGroup will not delete the old value. UNGROUPCMD PUBLIC OPERATIONS
UngroupCmd(ControlInfo*) UngroupCmd(Editor* = nil) Construct a new UngroupCmd. virtual void Execute() virtual void Unexecute() Execute will set the value of the _executed protected member variable to true as a side effect if anything was ungrouped. Simi- larly, Unexecute will set reset the value to false as a side effect the operation was undone. Clipboard* GetKids() void SetKids(Clipboard*) Explicitly set and get a clipboard containing the child components that were ungrouped, which is stored in the _kids protected mem- ber. UngroupCmd does not initialize this member; it merely provides the storage as a convenience to components that interpret the command and need a place to store the ungrouped children to support reverse execution. However, UngroupCmd deletes the clipboard (if it exists) in ~UngroupCmd. SetKids will not delete the old value. SEE ALSO
Command(3U), GraphicComp(3U) Unidraw 24 January 1991 struct(3U)
Man Page