Difference between revisions of "Office modules since OpenOffice.org 2.3"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
Since OpenOffice.org 2.3 the context for UI configuration has grown up to 20 modules. This was mainly due to the new feature that allows OpenOffice.org Base to have separated UI configuration modules for database forms and database reports, so that the settings are not shared with text documents anymore.
 
Since OpenOffice.org 2.3 the context for UI configuration has grown up to 20 modules. This was mainly due to the new feature that allows OpenOffice.org Base to have separated UI configuration modules for database forms and database reports, so that the settings are not shared with text documents anymore.
  
The following is an up-to-date list of available modules (in brackets is a short description):
 
  
#<CODE>com.sun.star.text.TextDocument</CODE> <nowiki>[OpenOffice.org Writer]</nowiki>
+
== List of available modules ==
#<CODE>com.sun.star.text.WebDocument</CODE> <nowiki>[OpenOffice.org Writer/Web]</nowiki>
+
 
#<CODE>com.sun.star.text.GlobalDocument</CODE> <nowiki>[OpenOffice.org Writer/Master Document]</nowiki>
+
The following is an up-to-date list of available modules with a short description:
#<CODE>com.sun.star.sheet.SpreadsheetDocument</CODE> <nowiki>[OpenOffice.org Calc]</nowiki>
+
 
#<CODE>com.sun.star.presentation.PresentationDocument</CODE> <nowiki>[OpenOffice.org Impress]</nowiki>
+
 
#<CODE>com.sun.star.drawing.DrawingDocument</CODE> <nowiki>[OpenOffice.org Draw]</nowiki>
+
 
#<CODE>com.sun.star.formula.FormulaProperties</CODE> <nowiki>[OpenOffice.org Math]</nowiki>
+
{| width="100%" border="1" cellpadding="2"
#<CODE>com.sun.star.chart2.ChartDocument</CODE> <nowiki>[OpenOffice.org Chart]</nowiki>
+
!width="40%"|Module name
#<CODE>com.sun.star.xforms.XMLFormDocument</CODE> <nowiki>[XML Forms (XForms)]</nowiki>
+
!width="60%"|Description
#<CODE>com.sun.star.sdb.OfficeDatabaseDocument</CODE> <nowiki>[OpenOffice.org Base: This module represents OpenOffice.org Base main application; that is, the application main window when you open an ODB file.]</nowiki>
+
|-
#<CODE>com.sun.star.sdb.TableDesign</CODE> <nowiki>[OpenOffice.org Base: Table Design module]</nowiki>
+
||<CODE>com.sun.star.text.TextDocument</CODE> ||OpenOffice.org Writer
#<CODE>com.sun.star.sdb.QueryDesign</CODE> <nowiki>[OpenOffice.org Base: This is the module where you design queries and views. The module is the same for Design View and SQL View.]</nowiki>
+
|-
#<CODE>com.sun.star.sdb.RelationDesign</CODE> <nowiki>[OpenOffice.org Base: Module to design database relations]</nowiki>
+
||<CODE>com.sun.star.text.WebDocument</CODE> ||OpenOffice.org Writer/Web
#<CODE>com.sun.star.sdb.FormDesign</CODE> <nowiki>[OpenOffice.org Base: Module for creating/editing and viewing embedded forms]</nowiki>
+
|-
#<CODE>com.sun.star.report.ReportDefinition</CODE> <nowiki>[OpenOffice.org Base: new Sun Report Builder in design view. The executed report will be a com.sun.star.text.TextDocument or com.sun.star.sheet.SpreadsheetDocument]</nowiki>
+
||<CODE>com.sun.star.text.GlobalDocument</CODE> ||OpenOffice.org Writer/Master Document
#<CODE>com.sun.star.sdb.TextReportDesign</CODE> <nowiki>[OpenOffice.org Base: Module for creating/editing and viewing reports created using the report wizzard]</nowiki>
+
|-
#<CODE>com.sun.star.sdb.DataSourceBrowser</CODE> <nowiki>[In OpenOfice.org Base: the component where you open tables/view/queries; in other modules: component to access every datasource registered in OpenOffice.org (pressing F4)]</nowiki>
+
||<CODE>com.sun.star.sheet.SpreadsheetDocument</CODE> ||OpenOffice.org Calc
#<CODE>com.sun.star.script.BasicIDE</CODE> <nowiki>[OpenOffice.org Basic IDE]</nowiki>
+
|-
#<CODE>com.sun.star.frame.StartModule</CODE> <nowiki> [the start module is the last component that remains when you close every Office document with the X at the right corner of the menu bar, without termitating the Desktop]</nowiki>
+
||<CODE>com.sun.star.presentation.PresentationDocument</CODE> ||OpenOffice.org Impress
#<CODE>com.sun.star.frame.Bibliography</CODE> <nowiki> [Bibliographical database]</nowiki>
+
|-
 +
||<CODE>com.sun.star.drawing.DrawingDocument</CODE> ||OpenOffice.org Draw
 +
|-
 +
||<CODE>com.sun.star.formula.FormulaProperties</CODE> ||OpenOffice.org Math
 +
|-
 +
||<CODE>com.sun.star.chart2.ChartDocument</CODE> ||OpenOffice.org Chart
 +
|-
 +
||<CODE>com.sun.star.xforms.XMLFormDocument</CODE> ||XML Forms (XForms)
 +
|-
 +
||<CODE>com.sun.star.sdb.OfficeDatabaseDocument</CODE> ||OpenOffice.org Base: This module represents OpenOffice.org Base main application; that is, the application main window when you open an ODB file
 +
|-
 +
||<CODE>com.sun.star.sdb.TableDesign</CODE> ||OpenOffice.org Base: Table Design module
 +
|-
 +
||<CODE>com.sun.star.sdb.QueryDesign</CODE> ||OpenOffice.org Base: This is the module where you design queries and views. The module is the same for Design View and SQL View.
 +
|-
 +
||<CODE>com.sun.star.sdb.RelationDesign</CODE> ||OpenOffice.org Base: Module to design database relations
 +
|-
 +
||<CODE>com.sun.star.sdb.FormDesign</CODE> ||OpenOffice.org Base: Module for creating/editing and viewing embedded forms
 +
|-
 +
||<CODE>com.sun.star.report.ReportDefinition</CODE> ||OpenOffice.org Base: new Sun Report Builder in design view. The executed report will be a com.sun.star.text.TextDocument or com.sun.star.sheet.SpreadsheetDocument
 +
|-
 +
||<CODE>com.sun.star.sdb.TextReportDesign</CODE> ||OpenOffice.org Base: Module for creating/editing and viewing reports created using the report wizzard
 +
|-
 +
||<CODE>com.sun.star.sdb.DataSourceBrowser</CODE> ||In OpenOfice.org Base: the component where you open tables/view/queries; in other modules: component to access every datasource registered in OpenOffice.org (pressing F4)
 +
|-
 +
||<CODE>com.sun.star.script.BasicIDE</CODE> ||OpenOffice.org Basic IDE
 +
|-
 +
||<CODE>com.sun.star.frame.StartModule</CODE> ||the start module is the last component that remains when you close every Office document with the X at the right corner of the menu bar, without termitating the Desktop
 +
|-
 +
||<CODE>com.sun.star.frame.Bibliography</CODE> ||Bibliographical database
 +
|}
  
 
== How to get the module's names ==
 
== How to get the module's names ==
Line 30: Line 59:
 
=== Example in Java: ===
 
=== Example in Java: ===
  
<PRE>
+
    <source lang="java">
 
     public static void main(String[] args) {
 
     public static void main(String[] args) {
 
         try {
 
         try {
Line 61: Line 90:
 
         }
 
         }
 
     }
 
     }
</PRE>
+
    </source>
  
 
=== Example in OpenOffice.org Basic ===
 
=== Example in OpenOffice.org Basic ===
  
<PRE>
+
<source lang="oobas">
 
Sub OOoModules
 
Sub OOoModules
 
   Dim oModuleManager as Object
 
   Dim oModuleManager as Object
 
   oModuleManager = createUnoService("com.sun.star.frame.ModuleManager")
 
   oModuleManager = createUnoService("com.sun.star.frame.ModuleManager")
   MsgBox Join(oModuleManager.getElementNames(), chr(10)),64, "OpenOffice.org Modules"
+
 
 +
   Dim sMessage$, sModules$()
 +
  Dim i%
 +
  sModules = oModuleManager.getElementNames()
 +
  For i=0 To UBound(sModules)
 +
        sMessage = sMessage + "[" + CStr(i+1) + "]    " + sModules(i) + Chr(13)
 +
  Next
 +
 
 +
  MsgBox sMessage,64, "OpenOffice.org Modules"
 
End Sub
 
End Sub
</PRE>
+
</source>
 +
[[Category:Framework]]

Latest revision as of 20:00, 21 March 2010

Since OpenOffice.org 2.3 the context for UI configuration has grown up to 20 modules. This was mainly due to the new feature that allows OpenOffice.org Base to have separated UI configuration modules for database forms and database reports, so that the settings are not shared with text documents anymore.


List of available modules

The following is an up-to-date list of available modules with a short description:


Module name Description
com.sun.star.text.TextDocument OpenOffice.org Writer
com.sun.star.text.WebDocument OpenOffice.org Writer/Web
com.sun.star.text.GlobalDocument OpenOffice.org Writer/Master Document
com.sun.star.sheet.SpreadsheetDocument OpenOffice.org Calc
com.sun.star.presentation.PresentationDocument OpenOffice.org Impress
com.sun.star.drawing.DrawingDocument OpenOffice.org Draw
com.sun.star.formula.FormulaProperties OpenOffice.org Math
com.sun.star.chart2.ChartDocument OpenOffice.org Chart
com.sun.star.xforms.XMLFormDocument XML Forms (XForms)
com.sun.star.sdb.OfficeDatabaseDocument OpenOffice.org Base: This module represents OpenOffice.org Base main application; that is, the application main window when you open an ODB file
com.sun.star.sdb.TableDesign OpenOffice.org Base: Table Design module
com.sun.star.sdb.QueryDesign OpenOffice.org Base: This is the module where you design queries and views. The module is the same for Design View and SQL View.
com.sun.star.sdb.RelationDesign OpenOffice.org Base: Module to design database relations
com.sun.star.sdb.FormDesign OpenOffice.org Base: Module for creating/editing and viewing embedded forms
com.sun.star.report.ReportDefinition OpenOffice.org Base: new Sun Report Builder in design view. The executed report will be a com.sun.star.text.TextDocument or com.sun.star.sheet.SpreadsheetDocument
com.sun.star.sdb.TextReportDesign OpenOffice.org Base: Module for creating/editing and viewing reports created using the report wizzard
com.sun.star.sdb.DataSourceBrowser In OpenOfice.org Base: the component where you open tables/view/queries; in other modules: component to access every datasource registered in OpenOffice.org (pressing F4)
com.sun.star.script.BasicIDE OpenOffice.org Basic IDE
com.sun.star.frame.StartModule the start module is the last component that remains when you close every Office document with the X at the right corner of the menu bar, without termitating the Desktop
com.sun.star.frame.Bibliography Bibliographical database

How to get the module's names

You can get a list of modules by querying the service com.sun.star.frame.ModuleManager.

Example in Java:

    public static void main(String[] args) {
        try {
            com.sun.star.uno.XComponentContext xContext = 
                    com.sun.star.comp.helper.Bootstrap.bootstrap();
 
            com.sun.star.uno.XInterface xInterface = 
                    (com.sun.star.uno.XInterface) 
                        xContext.getServiceManager().createInstanceWithContext(
                            "com.sun.star.frame.ModuleManager", xContext);
 
            com.sun.star.container.XNameAccess xNameAccess = 
                    (com.sun.star.container.XNameAccess) 
                        com.sun.star.uno.UnoRuntime.queryInterface(
                            com.sun.star.container.XNameAccess.class, xInterface);
 
            String[] modules = xNameAccess.getElementNames();
            for (String module : modules) {
                System.out.println( module );
            }
 
        } catch (com.sun.star.comp.helper.BootstrapException e){
            e.printStackTrace();
        } catch (com.sun.star.uno.Exception e){
            e.printStackTrace();
        } catch (java.lang.Exception e){
            e.printStackTrace();
        } finally {
            System.exit( 0 );
        }
    }

Example in OpenOffice.org Basic

Sub OOoModules
   Dim oModuleManager as Object
   oModuleManager = createUnoService("com.sun.star.frame.ModuleManager")
 
   Dim sMessage$, sModules$()
   Dim i%
   sModules = oModuleManager.getElementNames()
   For i=0 To UBound(sModules)
         sMessage = sMessage + "[" + CStr(i+1) + "]    " + sModules(i) + Chr(13)
   Next
 
   MsgBox sMessage,64, "OpenOffice.org Modules"
End Sub
Personal tools