没有合适的资源?快使用搜索试试~ 我知道了~
首页OpenOffice.org 3.1 开发者指南
OpenOffice.org 3.1 开发者指南
5星 · 超过95%的资源 需积分: 12 13 下载量 183 浏览量
更新于2024-07-23
2
收藏 16.8MB PDF 举报
"OpenOffice开发者指南"
OpenOffice.org3.1开发者指南是一份详细的文档,旨在帮助程序员和开发者深入了解如何利用UNO(Universal Network Objects)框架进行编程。此指南覆盖了OpenOffice的基础到高级开发概念,提供了丰富的信息来帮助开发者创建、修改和扩展OpenOffice的应用程序。
版权信息表明该指南遵循PDL(Public Domain License),允许自由使用和分发。文档内容分为多个部分,以逐步引导读者深入理解OpenOffice的开发环境。
1. **第一部分:初识步骤**
这一部分介绍了使用UNO编程的基本概念和其在OpenOffice中的应用领域。开发者将了解如何开始设置和配置环境,包括所需的文件、安装集以及配置。此外,还介绍了如何首次与OpenOffice的对象进行交互。
2. **获取对象**
开发者将学习如何在OpenOffice.org中获取和操作对象,如创建新对象、处理文档对象以及那些由其他对象提供的对象。还提到了对象集合,这在处理多个相关对象时尤其有用。
3. **与对象工作**
在这一章节,讨论了对象、接口和服务的概念,以及如何使用服务。通过一个例子——操作电子表格文档,展示了如何实际应用这些概念。
4. **常见类型**
详细解释了OpenOffice中使用的各种数据类型,包括结构(Struct)、Any类型以及Sequence。此外,还介绍了元素访问方法和确定对象类型的技巧。
5. **示例:HelloText, HelloTable, HelloShape**
提供了实际的编程示例,展示了如何在文本、表格和绘图中创建对象,这有助于开发者理解如何在不同组件之间实现通用机制。
6. **专业UNO**
在这部分,深入探讨了API的概念,如数据类型(包括简单类型和Any类型)、接口、服务以及如何引用它们。还涵盖了接口引用、服务构造器、包含属性和引用其他服务的方法。
7. **API概念**
对接口和服务的更深入讲解,强调了它们在OpenOffice中的核心作用,并且提供了如何有效地利用它们进行开发的指导。
这份开发者指南是OpenOffice开发者的宝贵资源,它不仅涵盖了基本概念,还提供实用示例和高级API知识,帮助开发者能够充分利用OpenOffice的UNO框架构建强大且功能丰富的应用程序。
Element /description/publisher..............................................................................525
Element /description/publisher/name....................................................................525
Element /description/release-notes.......................................................................526
Element /description/release-notes/src.................................................................526
Description of Atom Feed...........................................................................................527
Examples...................................................................................................................527
description.xml Containing Direct Reference to the Update Information ..............527
Using the Atom Feed ...........................................................................................528
Options Dialog...........................................................................................................529
Available samples ................................................................................................530
Creating the GUI of the Options Page.......................................................................530
Saving and Reading Data for the Options Page........................................................531
Defining the Usage of Options Pages........................................................................541
The Options Dialog of the Extension Manager...........................................................546
Adding a Leaf to an Existing Node.............................................................................546
Adding Several Leaves..............................................................................................548
Grouping of Leaves....................................................................................................550
Adding Nodes............................................................................................................551
Adding Several Nodes...............................................................................................553
Absolute Position of Leaves.......................................................................................553
Grouping of Nodes.....................................................................................................554
Assigning Nodes to Modules......................................................................................556
Defining a Module......................................................................................................557
Absolute Position of Nodes........................................................................................557
Help Content..............................................................................................................559
Extension help format ..........................................................................................559
Deployment...........................................................................................................561
Error handling ......................................................................................................562
Integration into the OpenOffice.org help system ..................................................562
Help Viewer Contents page .................................................................................562
Help Viewer Index page .......................................................................................563
Help Viewer Find page .........................................................................................563
Help Viewer Bookmarks page ..............................................................................564
Context sensitive help and extended tool tips ......................................................564
Links ....................................................................................................................564
Images .................................................................................................................565
File Format ...........................................................................................................565
5 Advanced UNO........................................................................................................567
Choosing an Implementation Language ..............................................................567
C++ ......................................................................................................................569
OpenOffice.org Basic ...........................................................................................569
OLE Automation Bridge .......................................................................................570
Python ..................................................................................................................570
Use Cases ...........................................................................................................570
C++ ......................................................................................................................571
OpenOffice.org Basic ...........................................................................................571
OLE Automation ...................................................................................................571
Python ..................................................................................................................571
Recommendation .................................................................................................571
Language Bindings....................................................................................................572
Implementing UNO Language Bindings.....................................................................572
Overview of Language Bindings and Bridges ......................................................573
Code Generator ...................................................................................................573
UNO Bridge ..........................................................................................................573
UNO Component Loader .....................................................................................574
Bootstrapping .......................................................................................................574
Implementation Options .......................................................................................575
UNO C++ Bridges......................................................................................................576
Binary UNO Interfaces .........................................................................................577
C++ Proxy ............................................................................................................578
Binary UNO Proxy ................................................................................................580
Additional Hints ....................................................................................................582
UNO Reflection API...................................................................................................582
XTypeProvider Interface ......................................................................................583
Converter Service ................................................................................................583
CoreReflection Service ........................................................................................583
Invocation .............................................................................................................585
InvocationAdapterFactory ....................................................................................586
XTypeDescription .................................................................................................587
XInvocation Bridge.....................................................................................................588
Scripting Existing UNO Objects ...........................................................................588
Argument Conversion ..........................................................................................590
Exception Handling ..............................................................................................591
Property Support ..................................................................................................591
Implementing UNO objects ..................................................................................592
Example Python Bridge PyUNO................................................................................593
Implementation Loader..............................................................................................596
Shared Library Loader .........................................................................................598
Bridges .................................................................................................................599
Help with New Language Bindings............................................................................600
Differences Between UNO and Corba.......................................................................600
UNO Design Patterns and Coding Styles...................................................................602
Double-Checked Locking .....................................................................................603
6 Office Development.................................................................................................607
OpenOffice.org Application Environment...................................................................607
Desktop Environment.................................................................................................608
Framework API..........................................................................................................609
Frame-Controller-Model Paradigm in OpenOffice.org................................................610
Frames.......................................................................................................................611
Linking Components and Windows ......................................................................611
Communication through Dispatch Framework .....................................................613
Components in Frames ........................................................................................613
Controllers..................................................................................................................614
Windows....................................................................................................................615
Dispatch Framework..................................................................................................615
Using the Desktop......................................................................................................616
Using the Component Framework.............................................................................622
Getting Frames, Controllers and Models from Each Other........................................623
Frames.......................................................................................................................624
XFrame ................................................................................................................624
Frame Hierarchies ...............................................................................................624
Frame Actions ......................................................................................................627
XFramesSupplier .................................................................................................629
XDispatchProvider and XDispatchProviderInterception .......................................629
XStatusIndicatorFactory .......................................................................................630
Controllers..................................................................................................................630
XController ...........................................................................................................630
XDispatchProvider ...............................................................................................631
XSelectionSupplier ...............................................................................................631
XContextMenuInterception ...................................................................................631
Document Specific Controller Services ................................................................632
Models.......................................................................................................................633
XModel .................................................................................................................634
XModifiable ..........................................................................................................635
XStorable .............................................................................................................635
XPrintable ............................................................................................................635
XEventBroadcaster ..............................................................................................635
XEventsSupplier ..................................................................................................636
XDocumentInfoSupplier .......................................................................................636
XViewDataSupplier ..............................................................................................636
Document Specific Features ................................................................................637
Window Interfaces.....................................................................................................638
XWindow ..............................................................................................................638
XTopWindow ........................................................................................................639
XWindowPeer ......................................................................................................639
Creating Frames Manually.........................................................................................640
Frame Creation ....................................................................................................640
Assigning Windows to Frames .............................................................................640
Setting Components into Frame Hierarchies .......................................................641
Handling Documents..................................................................................................643
Loading Documents .............................................................................................643
URL Parameter ....................................................................................................651
Target Frame ........................................................................................................651
Closing Documents....................................................................................................655
Reacting Upon Closing ........................................................................................655
How to Trigger Closing .........................................................................................656
XCloseable ...........................................................................................................657
Storing Documents....................................................................................................661
Printing Documents ..............................................................................................663
Using the Dispatch Framework..................................................................................663
Command URL..........................................................................................................664
Processing Chain.......................................................................................................664
Dispatch Process.......................................................................................................666
Getting a Dispatch Object ....................................................................................667
Listening for Status Information ...........................................................................668
Listening for Context Changes .............................................................................669
Dispatching a Command ......................................................................................670
Dispatch Results........................................................................................................671
Dispatch Interception.................................................................................................672
Java Window Integration............................................................................................674
The Window Handle .............................................................................................674
Using the Window Handle ....................................................................................675
Legal Solution ......................................................................................................676
More Remote Problems .......................................................................................678
Common Application Features...................................................................................679
Clipboard .............................................................................................................679
Copying Data .......................................................................................................681
Becoming a Clipboard Viewer ..............................................................................684
OpenOffice.org Clipboard Data Formats ..............................................................685
Internationalization.....................................................................................................686
Introduction ..........................................................................................................686
Overview and Using the API......................................................................................687
XLocaleData ........................................................................................................687
XCharacterClassification ......................................................................................687
XCalendar ............................................................................................................687
XExtendedCalendar .............................................................................................688
XNumberFormatCode ..........................................................................................688
XNativeNumberSupplier ......................................................................................688
XCollator ..............................................................................................................689
XTransliteration ....................................................................................................689
XTextConversion ..................................................................................................690
XBreakIterator ......................................................................................................690
XIndexEntrySupplier ............................................................................................690
XExtendedIndexEntrySupplier .............................................................................691
Implementing a New Locale.......................................................................................691
XLocaleData ........................................................................................................691
XCalendar ............................................................................................................695
XCharacterClassification ......................................................................................696
XBreakIterator ......................................................................................................696
XCollator ..............................................................................................................698
XTransliteration ....................................................................................................699
XTextConversion ..................................................................................................700
XNativeNumberSupplier ......................................................................................704
XIndexEntrySupplier ............................................................................................705
A Comment on Search and Replace ....................................................................706
Linguistics..................................................................................................................706
Services Overview ...............................................................................................707
Using Spellchecker....................................................................................................710
Relevant properties ..............................................................................................711
Using Hyphenator......................................................................................................712
Relevant properties ..............................................................................................713
剩余1655页未读,继续阅读
点击了解资源详情
点击了解资源详情
点击了解资源详情
2009-01-05 上传
2013-03-05 上传
点击了解资源详情
点击了解资源详情
yxz23
- 粉丝: 0
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Spring2.5开发简明教程中文版(1-4章有书签)
- Protus资料,使用手册
- 动态分区管理方法 操作系统实验 存储管理
- unbound + libevent + epoll学习.txt
- 2008东软笔试题资料
- 时间限制及IP显示JSP
- GPU_Programming_Guide
- 集成电路的基本知识处理及应用
- BPEL 经典教程,第二版,目前学习BPEL最好的书籍
- vsnettt_infoq_chinese.pdf
- Windows驱动编程基础教程
- 软件项目挣值分析方法应用
- VC调整测试初步掌握
- 软件项目风险的识别与风险的分析
- nunit c#单元测试 pdf
- 200套测试题,同志们好好学习面试好公司吧
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功