|
Module Document/AllThis module is undocumented. This is a list of its definitions. addMessage :: IConsole -> String -> <Proc> () Writes a message into the console of the document session. cloneCommandContext :: CommandContext -> <Proc> CommandContextMutable Returns a mutable copy of the given command context. It copies through merge, so only the keys that hold a single value survive. commandContext :: () -> CommandContextMutable Creates an empty mutable command context. commandList :: Variable -> <ReadGraph> [Command] Returns the commands that the document component owning commandResult :: Integer -> String -> CommandContextMutable -> CommandResult
compileDocumentSCLHandlerValueExpression :: Variable -> <ReadGraph> String As compileDocumentSCLValueExpression, but for the expression of an event handler. compileDocumentSCLValueExpression :: Variable -> <ReadGraph> String Compiles the SCL value expression of the given property variable and returns the empty string when it compiles. Otherwise the result is the message of the problem, which is what the issue shown to the user says. A failure to import a module is reported as no problem. computeDataDefinitions :: Variable -> <ReadGraph> [DataDefinition] The same function as dataDefinitions under a second name. consoleLog :: CommandContext -> String -> ()
containsKey :: CommandContext -> String -> Boolean Tells whether the command context has an entry under the given key. A key
can be there and still give contextDocument :: CommandContext -> <Proc> IDocument Returns the document that the command context carries under the key
contextVariable :: Variable -> <ReadGraph> Variable
dataDefinitions :: Variable -> <ReadGraph> [DataDefinition] Returns the data definitions of the document component owning displayValue :: Variable -> String -> <ReadGraph> String
displayValue0 :: Variable -> <ReadGraph> String Returns the documentModelContribution :: Resource -> <ReadGraph> [Variable] Returns a variable for every model of the current project, as the models a document can be shown for. The resource argument is not used. documentModelContributionLabel :: Variable -> <ReadGraph> String Names a contribution of documentModelContribution by the name of its variable. elementIdToObjectId :: IDocument -> String -> <Proc> String emptyOnClick :: () -> <ReadGraph> AbstractEventHandler Returns an event handler that does nothing and answers nothing. Deprecated. eventHandler :: ((String -> Maybe String) -> String) -> <ReadGraph> AbstractEventHandler As writeEventHandler but runs eventHandler2 :: (CommandContext -> <Proc> Maybe CommandResult) -> <ReadGraph> AbstractEventHandler As readEventHandler2 but runs fontFamily :: IFont -> <Proc> Maybe String Returns the family name of the font, or fontHeight :: IFont -> <Proc> Integer Returns the height of the font in points. fontStyle :: IFont -> <Proc> Maybe String Returns the style name of the font, such as getDocumentURI :: IDocument -> <Proc> String Returns the URI the document was built from. getKeys :: CommandContext -> [String] Returns the keys of the command context, in no particular order. getSessionGUID :: IDocument -> <Proc> String Returns the GUID of the document session the document belongs to. getTuples :: CommandContext -> String -> [Dynamic] Returns the rows stored under the given key, one tuple per row. A row of zero or of two to five elements becomes a tuple of that size, a longer row is dropped, and a row of one element currently fails with an index error. An absent key gives an empty list. getTuples3 :: CommandContext -> String -> [(a, b, c)] The same as getTuples with the result typed as triples. Nothing checks that the rows really hold three elements. justValue :: CommandContext -> String -> a The same as possibleValue without the merge :: CommandContextMutable -> CommandContext -> <Proc> CommandContextMutable
objectIdToElementId :: IDocument -> String -> <Proc> String possibleString :: CommandContext -> String -> Maybe String Returns the value stored under the given key as a string. possibleValue :: CommandContext -> String -> Maybe a Returns the value stored under the given key. The result is primitiveProperties :: <Proc> DocumentProperties Returns the standard implementation of DocumentProperties, which computes the attributes of a document component from the properties it has in the graph and collects the ones that fail into an exception map instead of failing the component. printContext :: CommandContext -> String Returns a readable listing of the command context, one line per key with
what it holds. Keys whose name begins with projectComponentState :: Variable -> String -> a -> <ReadGraph> a
propertyValueCached :: Serializable a => Typeable a => Variable -> String -> <ReadGraph> a
propertyValueCached_ :: Variable -> String -> Binding a -> <ReadGraph> a
putString :: CommandContextMutable -> String -> String -> <Proc> CommandContextMutable Stores a string under the given key and returns the same context, so that calls can be chained. Deprecated: putValue does the same for a value of any type. putTuple :: CommandContextMutable -> String -> a -> CommandContextMutable
putValue :: CommandContextMutable -> String -> a -> <Proc> CommandContextMutable Stores a value under the given key, replacing whatever the key held before, and returns the same context so that calls can be chained. The value is read back with possibleValue. readEventHandler :: Variable -> (Variable -> (String -> Maybe String) -> <ReadGraph> String) -> <ReadGraph> AbstractEventHandler As writeEventHandler but runs readEventHandler2 :: (CommandContext -> <ReadGraph,Proc> Maybe CommandResult) -> <ReadGraph> AbstractEventHandler
responseHandler :: Variable -> String -> <ReadGraph> AbstractEventHandler
The result is null if sclStateValueOrDefault :: Variable -> Variable -> String -> a -> <ReadGraph> a
sclStateVariable :: Variable -> Variable -> String -> <ReadGraph> Variable
sendEvent :: IConsole -> String -> String -> Vector Dynamic -> <Proc> ()
sendEventCtx :: IConsole -> String -> String -> CommandContext -> <Proc> () As sendEvent, but the values that belong to the event are given as a command context rather than as a flat vector. setProjectComponentState :: Variable -> String -> a -> <WriteGraph> () Sets the state that projectComponentState reads. Needs a write transaction. setSclStateValue :: Variable -> Variable -> String -> a -> <WriteGraph> ()
stateVariable :: Variable -> <ReadGraph> Variable Returns the writeEventHandler :: Variable -> (Variable -> (String -> Maybe String) -> <WriteGraph> String) -> <ReadGraph> AbstractEventHandler
writeEventHandler2 :: (CommandContext -> <WriteGraph,Proc> Maybe CommandResult) -> <ReadGraph> AbstractEventHandler As readEventHandler2 but runs |