home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #3 / K-CD-3-2002.ISO / OpenOffice / f_0046 / sbasic.jar / text / sbasic / common / 01040000.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-09-07  |  12.2 KB  |  167 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Additional Options</title><meta name="filename" content="text/sbasic/common/01040000"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle2{
  5.                 margin-left:0cm; margin-right:0.005cm;}
  6.         span.Tabelle2A{
  7.                 width:5.046cm;}
  8.         span.Tabelle2B{
  9.                 width:12.949cm;}
  10.         td.Tabelle2A1{
  11.                 }
  12.         td.Tabelle2B1{
  13.                 }
  14.         td.Tabelle2A2{
  15.                 }
  16.         td.Tabelle2B2{
  17.                 }
  18.         td.Tabelle2A17{
  19.                 }
  20.         td.Tabelle2B17{
  21.                 }
  22.         table.Tabelle1{
  23.                 }
  24.         span.Tabelle1A{
  25.                 width:1.499cm;}
  26.         span.Tabelle1B{
  27.                 width:16.501cm;}
  28.         td.Tabelle1A1{
  29.                 }
  30.         table.Tabelle3{
  31.                 }
  32.         span.Tabelle3A{
  33.                 width:18cm;}
  34.         p.P1{
  35.                 }
  36.         p.P2{
  37.                 }
  38.         p.P3{
  39.                 }
  40.         p.P4{
  41.                 }
  42.         span.T1{
  43.                 font-weight:bold;}
  44.         span.fr1{
  45.                 }
  46.         span.fr2{
  47.                 }
  48.         </style></head><body>
  49.   
  50.   
  51.   <help:to-be-embedded Eid="weitere" xmlns:help="http://openoffice.org/2000/help">
  52.   <p class="Head1"><help:link Id="66494">Additional Options</help:link></p>
  53.   <p class="Paragraph">The following describes several additional options provided by OpenOffice.org.</p>
  54.   </help:to-be-embedded>
  55.   <p class="Head2">Assigning Macros to Specific Program Events</p>
  56.   <p class="Paragraph">In any OpenOffice.org application you have the option of automatically executing a macro when a specified event occurs. First, though, you must assign the desired macro to the event. The possible events are available in all OpenOffice.org programs. The following table provides an overview of program events and at what point the assigned macro is executed.</p>
  57.   <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle2A1" style="text-align:left;"><span class="Tabelle2A">
  58.       <p class="TextInTable"><span class="T1">Event</span></p>
  59.      </span></th><th class="Tabelle2B1" style="text-align:left;"><span class="Tabelle2B">
  60.       <p class="TextInTable"><span class="T1">Macro (SUB) is automatically executed,...</span></p>
  61.      </span></th></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  62.      <p class="TextInTable">Program Start</p>
  63.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  64.      <p class="TextInTable">...directly after a OpenOffice.org program is started.</p>
  65.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  66.      <p class="TextInTable">Program End</p>
  67.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  68.      <p class="TextInTable">...immediately before a OpenOffice.org program is ended.</p>
  69.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  70.      <p class="TextInTable">Create Document</p>
  71.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  72.      <p class="TextInTable">...directly after a new document is created with <span class="T1">File - New</span> or with the <span class="T1">New</span> icon.</p>
  73.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  74.      <p class="TextInTable">Open Document</p>
  75.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  76.      <p class="TextInTable">...directly after a new document is opened with <span class="T1">File - Open</span> or with the <span class="T1">Open</span> icon.</p>
  77.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  78.      <p class="TextInTable">Save Document As</p>
  79.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  80.      <p class="TextInTable">...immediately before a document is saved under a specified name (with <span class="T1">File - Save As</span>, or with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, if a document name has not yet been specified).</p>
  81.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  82.      <p class="TextInTable">Document has been saved as</p>
  83.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  84.      <p class="TextInTable">...directly after a document is saved under a specified name (with <span class="T1">File - Save As</span>, or with <span class="T1">File - Save</span> or with the <span class="T1">Save</span> icon, if a document name has not yet been specified).</p>
  85.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  86.      <p class="TextInTable">Save Document</p>
  87.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  88.      <p class="TextInTable">...immediately before a document is saved with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, provided that a document name has already been specified.</p>
  89.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  90.      <p class="TextInTable">Document has been saved</p>
  91.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  92.      <p class="TextInTable">...directly after a document is saved with <span class="T1">File - Save</span> or the <span class="T1">Save</span> icon, provided that a document name has already been specified.</p>
  93.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  94.      <p class="TextInTable">Close Document</p>
  95.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  96.      <p class="TextInTable">...directly before a document is closed.</p>
  97.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  98.      <p class="TextInTable">Document has been closed</p>
  99.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  100.      <p class="TextInTable">...directly after a document is closed. <span class="T1">Note</span>: If the document was not saved since the last modification, and the user confirms the subsequent dialog with <span class="T1">Yes</span>, the "Save Document" event will automatically be executed as well.</p>
  101.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  102.      <p class="TextInTable">Activate Document</p>
  103.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  104.      <p class="TextInTable">...directly after a document is brought to the foreground either with the corresponding entry in the Window menu, or with the key combination <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> (Tab).</p>
  105.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  106.      <p class="TextInTable">Deactivate Document</p>
  107.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  108.      <p class="TextInTable">...directly after another document is brought to the foreground either with the corresponding entry in the Window menu, or with the key combination <help:switch select="System" xmlns:help="http://openoffice.org/2000/help"><help:case select="MAC">(Command)</help:case><help:default>(Ctrl)</help:default></help:switch> (Tab).</p>
  109.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  110.      <p class="TextInTable">Print Document</p>
  111.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  112.      <p class="TextInTable">...directly after the <span class="T1">Print</span> dialog is closed, but before the actual print process begins.</p>
  113.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  114.      <p class="TextInTable">JavaScript run-time error</p>
  115.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  116.      <p class="TextInTable">... when a JavaScript run-time error occurs.</p>
  117.     </span></td></tr><tr class=""><td class="Tabelle2A2" style="text-align:left;"><span class="Tabelle2A">
  118.      <p class="TextInTable">Change of the page count</p>
  119.     </span></td><td class="Tabelle2B2" style="text-align:left;"><span class="Tabelle2B">
  120.      <p class="TextInTable">... when the page count changes.</p>
  121.     </span></td></tr><tr class=""><td class="Tabelle2A17" style="text-align:left;"><span class="Tabelle2A">
  122.      <p class="TextInTable">Print Mail Merge</p>
  123.     </span></td><td class="Tabelle2B17" style="text-align:left;"><span class="Tabelle2B">
  124.      <p class="TextInTable">...directly after the <span class="T1">Print</span> dialog is closed, but before the actual print process begins. This event occurs for each copy printed.</p>
  125.     </span></td></tr></table>
  126.   <p class="Paragraph"/>
  127.   <table><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  128.       <p class="TextInTable"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onRequest" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  129.       </p>
  130.      </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B">
  131.       <p class="TextInTable">A macro assigned to an event will also be automatically executed if the respective event is provoked by a different macro!</p>
  132.      </span></th></tr></table>
  133.   <p class="Paragraph"/>
  134.   <p class="Head3">Assigning a Macro to an Event</p>
  135.   <ul class="L1">
  136.    <li class="">
  137.     <p class="P2">Select the <span class="T1">Configure</span> command in the <span class="T1">Tools</span> menu and click the tab <span class="T1">Events</span>.</p>
  138.    </li>
  139.   </ul>
  140.   <table><tr class=""><th style="text-align:left;"><span class="Tabelle3A">
  141.       <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik2" text:anchor-type="paragraph" svg:width="13.838cm" svg:height="11.165cm" draw:z-index="1" xlink:href="66844" xlink:type="simple" xlink:show="embed" xlink:actuate="onRequest" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/>
  142.       </p>
  143.      </span></th></tr></table>
  144.   <p class="Paragraph"/>
  145.   <ul class="L2">
  146.    <li class="">
  147.     <p class="P3">From the <span class="T1">Event</span> list box, select the type of event.</p>
  148.    </li>
  149.    <li class="">
  150.     <p class="P3">In the <span class="T1">Macro</span> list box at the left, select the object (document, template, or application) which contains the macro you want to assign to an event.</p>
  151.    </li>
  152.    <li class="">
  153.     <p class="P3">In the <span class="T1">Macro</span> list box at the right, select the desired macro (SUB).</p>
  154.    </li>
  155.    <li class="">
  156.     <p class="P3">Confirm your selection with <span class="T1">OK</span>.</p>
  157.    </li>
  158.   </ul>
  159.   <p class="Head3">Removing a Macro Assigned to an Event</p>
  160.   <ul class="L3">
  161.    <li class="">
  162.     <p class="P4">In the dialog (see above) select the event for which you want to remove the macro assignment, and click <span class="T1">Remove</span>.</p>
  163.    </li>
  164.   </ul>
  165.   <p class="Head2">Assigning a Macro to a Toolbar, Key Combination or Pull-Down Menu</p>
  166.   <p class="Paragraph">In any OpenOffice.org application you can assign a macro (as well as any OpenOffice.org Basic project) to certain toolbars, define a key combination to execute a macro, or start a macro with a pull-down menu entry. Select <span class="T1">Tools - Configure</span> and click the respective tab, where you can make the desired settings.</p>
  167.  </body></html>