home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Assembler / TFF-AOC.DMS / in.adf / Release3.1 / AutoDocs3.1.lha / doc / amigaguide_dt.doc < prev    next >
Encoding:
Text File  |  1993-08-12  |  10.7 KB  |  409 lines

  1. TABLE OF CONTENTS
  2.  
  3. amigaguide/amigaguide.datatype
  4. amigaguide/amigaguide.datatype                 amigaguide/amigaguide.datatype
  5.  
  6.     NAME
  7.     amigaguide.datatype -- data type for AmigaGuide databases.
  8.  
  9.     FUNCTION
  10.     The amigaguide.datatype is the DataTypes class for AmigaGuide
  11.     databases.
  12.  
  13.     METHODS
  14.     OM_NEW -- Create a new AmigaGuide object.
  15.  
  16.     OM_GET -- Obtain the value of an attribute.
  17.  
  18.     OM_SET -- Set the values of multiple attributes.
  19.  
  20.     OM_UPDATE -- Update the values of multiple attributes.
  21.  
  22.     OM_DISPOSE -- Dispose of an AmigaGuide object.
  23.  
  24.     GM_LAYOUT -- Layout the object and notify the application of the
  25.         title and size.
  26.  
  27.     GM_HITTEST -- Determine if the object has been hit with the
  28.         mouse.
  29.  
  30.     GM_GOACTIVE -- Tell the object to go active.
  31.  
  32.     GM_HANDLEINPUT -- Handle input.
  33.  
  34.     GM_RENDER -- Cause the AmigaGuide database to render.
  35.  
  36.     DTM_GOTO -- Cause the AmigaGuide database to load and display
  37.         document.
  38.  
  39.     DTM_TRIGGER -- Trigger an event.
  40.  
  41.         STM_COMMAND - Invoke an AmigaGuide command.
  42.  
  43.         STM_CONTENTS - Display the table of contents.
  44.  
  45.         STM_INDEX - Display the index.
  46.  
  47.         STM_HELP - Display the help file.
  48.  
  49.         STM_RETRACE - Retrace.
  50.  
  51.         STM_BROWSE_PREV - Go to the previous sequential document.
  52.  
  53.         STM_BROWSE_NEXT - Go to the next sequential document.
  54.  
  55.     DTM_PROCLAYOUT -- Layout (remap) the AmigaGuide database on the
  56.         application's process.
  57.  
  58.     DTM_FRAMEBOX -- Obtain the display environment that the
  59.         AmigaGuide database requires.
  60.  
  61.     DTM_SELECT -- Select an area in the AmigaGuide database.
  62.  
  63.     DTM_CLEARSELECTED -- Deselect the selected area of the
  64.         AmigaGuide database.
  65.  
  66.     DTM_COPY -- Copy the selected area of the text to the clipboard
  67.         as FTXT.  If no area is selected, then the entire text
  68.         is copied.
  69.  
  70.     DTM_PRINT -- Print the selected area of the text.  If no area
  71.         is selected, then the entire text is printed.
  72.  
  73.     DTM_WRITE -- Write the selected area of the text to a file.
  74.         If no area is selected, then the entire text is saved.
  75.  
  76.     TAGS
  77.     DTA_TriggerMethods -- List of the trigger methods supported.
  78.  
  79.         Applicability is (G).
  80.  
  81.     DTA_Methods -- List of the methods supported.
  82.  
  83.         Applicability is (G).
  84.  
  85.     DTA_TextAttr (struct TextAttr *) -- Text attribute to use for
  86.         the AmigaGuide database.
  87.  
  88.         Applicability is (ISG).
  89.  
  90.     DTA_Name (STRPTR) -- Name of the AmigaGuide database.
  91.  
  92.         Applicability is (I).
  93.  
  94.     DTA_Handle (BPTR) -- File handle for the AmigaGuide database.
  95.  
  96.         Applicability is (I).
  97.  
  98.     DTA_NodeName (STRPTR) -- Document to display.
  99.  
  100.         Applicability is (I).
  101.  
  102.     TDTA_WordDelim (STRPTR) -- Characters used to deliminate words.
  103.  
  104.         Applicability is (IS).
  105.  
  106.     AGA_HelpGroup (ULONG) -- Help group that the AmigaGuide object
  107.         belongs in.
  108.  
  109.         Applicability is (I).
  110.  
  111.     COMMANDS
  112.     Commands must start in the very first column of a line, and
  113.     can be the only thing on the line.  If a line begins with an
  114.     @ sign, then it is interpreted as a command.
  115.  
  116.     The following commands can be used in the global section
  117.     of a database.
  118.  
  119.       @$VER: <AmigaDOS version string>
  120.       Specify the version of the database.  This command
  121.       must always be in upper-case.
  122.  
  123.       @(C) <copyright>
  124.       Specify the copyright notice for the database.
  125.  
  126.       @AUTHOR <name>
  127.       Specify the author of the database.
  128.  
  129.       @DATABASE <name>
  130.       Must be the very first line of an AmigaGuide document.
  131.  
  132.       @DNODE <name>
  133.       Indicates the start of a dynamic node.  The AmigaGuide system
  134.       uses the callback hooks to obtain the document from a document
  135.       provider.  This is obsolete, do not use.
  136.  
  137.       @FONT <name> <size>
  138.       Specify the font to use for the database.
  139.  
  140.       @HEIGHT <chars>
  141.       How high, in characters, the largest document is.
  142.  
  143.       @HELP <name/node>
  144.       Specify the name of the help node, which will be accessed
  145.       by the Help button.  Can be a node in an external database.
  146.  
  147.       @INDEX <name/node>
  148.       Specify the name of the index node, which will be accessed
  149.       by the Index button.  Can be a node in an external database.
  150.  
  151.       @MACRO <name> <commands>
  152.       This is used to construct a macro.  A macro can be used the
  153.       same way as an attribute command, and can only consist of
  154.       other attribute commands or macros.  The macro list is
  155.       searched before the attribute command list is searched.  This
  156.       is new for V40.
  157.  
  158.           @macro icom "@{i}$1 @{ui}"
  159.  
  160.           ...
  161.  
  162.           This is an @{icom "example"} of macro.
  163.  
  164.       @MASTER <path>
  165.       Complete path of the source document used to define this
  166.       AmigaGuide database.
  167.  
  168.       @NODE <name> <title>
  169.       Indicate the start of a node (page/article/section). The first
  170.       node, or main node, must be named MAIN.  MAIN must be the master
  171.       table of contents for the database.
  172.  
  173.       @ONCLOSE <rxcommand>
  174.       This is used to specify an ARexx macro file to execute when
  175.       the database is closed.  The return value of the script has no
  176.       effect on the database.  New for V40.
  177.  
  178.       @ONOPEN <rxcommand>
  179.       This is used to specify an ARexx macro file to execute when
  180.       the database is opened.  If the script returns an error, then
  181.       the database will not be opened.  New for V40.
  182.  
  183.       @REM <remark>
  184.       @REMARK <remark>
  185.       This is used to place remarks in the database.  These remarks
  186.       are not displayed to the user.
  187.  
  188.       @SMARTWRAP
  189.       This is used to indicate that the text of the database is to
  190.       wordwrapped using a more intelligent algorithm than @wordwrap.
  191.       A paragraph doesn't need to be restricted to one physical
  192.       line, but paragraphs must be separated by two line feeds.
  193.       New for V40.
  194.  
  195.       @TAB <num>
  196.       Number of spaces in a tab.  Defaults to 8.  New for V40.
  197.  
  198.       @WIDTH <chars>
  199.       How wide, in characters, the largest document is.
  200.  
  201.       @WORDWRAP
  202.       Turn on wordwrapping for the whole database.  A paragraph must
  203.       be restrained to one physical line.
  204.  
  205.     The following commands can be used within nodes of a database.
  206.  
  207.       \
  208.       A backslash is the escape character.  A backslash in front of
  209.       the @ sign is used to escape it.
  210.  
  211.       @ENDNODE <name>
  212.       Indicate the end of a node.  Must start at the beginning of a
  213.       line.
  214.  
  215.       @FONT <name> <size>
  216.       Specify the font to use for the node.
  217.  
  218.       @HELP <name/node>
  219.       Specify the name of the help node, which will be accessed
  220.       by the Help button.  Can be a node in an external database.
  221.  
  222.       @INDEX <name/node>
  223.       Specify the name of the index node, which will be accessed
  224.       by the Index button.  Can be a node in an external database.
  225.  
  226.       @KEYWORDS <keywords>
  227.       Keywords of the node.  Someday when searching is
  228.       reimplemented, there will be a keyword search.
  229.  
  230.       @NEXT <node name>
  231.       Node to display when the user selects "Browse >"
  232.  
  233.       @ONCLOSE <rxcommand>
  234.       This is used to specify an ARexx macro file to execute when
  235.       the node is closed.  The return value of the script has no
  236.       effect on the node.  New for V40.
  237.  
  238.       @ONOPEN <rxcommand>
  239.       This is used to specify an ARexx macro file to execute when
  240.       the node is opened.  If the script returns an error, then
  241.       the node will not be opened.  New for V40.
  242.  
  243.       @PREV <node name>
  244.       Node to display when the user selects "< Browse"
  245.  
  246.       @SMARTWRAP
  247.       This is used to indicate that the text of the node is to
  248.       wordwrapped using a more intelligent algorithm than @wordwrap.
  249.       A paragraph doesn't need to be restricted to one physical
  250.       line, but paragraphs must be separated by two line feeds.
  251.       New for V40.
  252.  
  253.       @TAB <num>
  254.       Number of spaces in a tab.  Defaults to 8.  New for V40.
  255.  
  256.       @TITLE <title>
  257.       Title to display in the title bar of the window during the
  258.       display of this node.  Must start at the beginning of a line.
  259.  
  260.       @TOC <node name>
  261.       Name of the node that contains the table of contents for this
  262.       node.  Defaults to MAIN.  This is the node that is displayed
  263.       when the user presses the "Contents" button.
  264.  
  265.       @WORDWRAP
  266.       Turn on wordwrapping for the node.  A paragraph must
  267.       be restrained to one physical line.
  268.  
  269.       @{<label> <command>}
  270.       Indicate a textual link point.  Can be anywhere in a line.
  271.       Starting with 3.0, AmigaGuide can can link to graphics,
  272.       sounds, animations and other DataTypes.
  273.  
  274.     ATTRIBUTES
  275.     Following is a list of attributes that can be applied to the
  276.     text of a node.
  277.  
  278.       @{AMIGAGUIDE}
  279.       Displays the word AmigaGuide in bold followed by the ® symbol.
  280.       New for V40.
  281.  
  282.       @{APEN}
  283.       Use to change the foreground color to a specific pen number.
  284.       New for V40.
  285.  
  286.       @{B}
  287.       Turn bold on.
  288.  
  289.       @{BG <color>}
  290.       Used to change the background text color.  Color can be:
  291.  
  292.         Text
  293.         Shine
  294.         Shadow
  295.         Fill
  296.         FillText
  297.         Background
  298.         Highlight
  299.  
  300.       @{BODY}
  301.       Indicate that the following text is the body of the document.
  302.       Word wrap will be turned back on if it is the default.  New
  303.       for V40.
  304.  
  305.       @{BPEN}
  306.       Use to change the background color to a specific pen number.
  307.       New for V40.
  308.  
  309.       @{CLEARTABS}
  310.       Restore the default tab stops.  New for V40.
  311.  
  312.       @{CODE}
  313.       Indicate that the following text is not to be word-wrapped.
  314.       New for V40.
  315.  
  316.       @{FG <color>}
  317.       Used to change the foreground color.  The same colors can be
  318.       used as in the FG command.
  319.  
  320.       @{I}
  321.       Turn italic on.
  322.  
  323.       @{JCENTER}
  324.       Turn on centering.  New for V40.
  325.  
  326.       @{JLEFT}
  327.       Turn on left justification.  New for V40.
  328.  
  329.       @{JRIGHT}
  330.       Turn on right justification.  New for V40.
  331.  
  332.       @{LINDENT}
  333.       Set the number of spaces to indent the body of a paragraph.
  334.       New for V40.
  335.  
  336.       @{LINE}
  337.       Force a line feed without starting a new paragraph.  New for V40.
  338.  
  339.       @{PAR}
  340.       Used to indicate the end of a paragraph.  This is the same as
  341.       two sequential LF's in the source file.  New for V40.
  342.  
  343.       @{PARD}
  344.       Restore the default settings for a paragraph.  Text pen to 1,
  345.       background to 0, normal font, and no indentation.  New for V40.
  346.  
  347.       @{PARI}
  348.       Set the number of spaces to indent the first line of a
  349.       paragraph relative to the normal paragraph indentation.  The
  350.       value may be a negative number.  New for V40.
  351.  
  352.       @{PLAIN}
  353.       Used to turn off all @{B}, @{I}, and @{U} commands.  New for
  354.       V40.
  355.  
  356.       @{SETTABS <n> ... <n>}
  357.       This is used to establish tab stops.  New for V40.
  358.  
  359.       @{TAB}
  360.       The same as character 9 in the source file.  New for V40.
  361.  
  362.       @{U}
  363.       Turn underline on.
  364.  
  365.       @{UB}
  366.       Turn bold off.
  367.  
  368.       @{UI}
  369.       Turn italic off.
  370.  
  371.       @{UU}
  372.       Turn underline off.
  373.  
  374.     AREXX COMMANDS
  375.     AmigaGuide supports the following ARexx commands.
  376.  
  377.       BEEP
  378.       DisplayBeep().
  379.  
  380.       CLOSE
  381.       Close the current database.
  382.  
  383.       GETNODECOUNT
  384.       Returns the number of nodes in the database using the RESULT
  385.       variable.  New for V40.
  386.  
  387.       LINK
  388.       Go to the named node.
  389.  
  390.       NEXT
  391.       Go to the next physical node in the database.  Same as
  392.       pressing the "Browse >" button.  New for V40.
  393.  
  394.       PREVIOUS
  395.       Go to the previous physical node in the database.  Same as
  396.       pressing the "Browse <" button.  New for V40.
  397.  
  398.       PRINT
  399.       Print the current node.  Doesn't return until complete.  New for
  400.       V40.
  401.  
  402.       QUIT
  403.       Close the current database.
  404.  
  405.       RETRACE
  406.       Go to the previous node in the database.  Same as pressing the
  407.       "Retrace" button.  New for V40.
  408.  
  409.