Space: Apache OpenOffice Community
(https://cwiki.apache.org/confluence/display/OOOUSERS)
Page: Sidebar Introduction
(https://cwiki.apache.org/confluence/display/OOOUSERS/Sidebar+Introduction)
Edited by JackyLi1011:
---------------------------------------------------------------------
*{+}Sidebar overview{+}*
A sidebar is a replace or an alternative to toolbar. Normally it will docked in
the right side of whole window. It can also be floated to other places by
dragging the dock window title bar. A sidebar contains two parts: panel
dock(right narrow window like a vertical table bar) and dock window(left side).
Panel dock contains some buttons which is used to show/hide left related dock
window. A button is expressed with a image which indicates the function of its
related dock window. A dock window can be design for property, style,
navigator, clip arts and so on. It contains a title bar and a panel. A panel
can contains several sections such as text section and paragraph section. A
section is divides two parts: section title bar and section page.
!sidebar.JPG|border=1!
*{+}Sidebar code view{+}*
Sidebar implementation is mainly in sfx module. Below concept is referred to
for it:
|| Concept || Roles ||
| Dispatcher\\ | {color:#000000}Internally maintains a stack of objects, each
representing a context. Examples for these contexts are “document”, “view”,
“text”, “table”, “cell” etc{color}\\ |
| Bindings\\ | |
| View frame(shell)\\ | |
| Interface\\ | |
| Slot\\ | |
| Work window\\ | |
| Child window\\ | |
| Others\\ | |
!General.jpg|border=1!
For more details, refer to
here: [http://wiki.services.openoffice.org/wiki/Framework/Article/Implementation_of_the_Dispatch_API_In_SFX2]
*{+}Sidebar creation process{+}*
1. Child window and factory registration
!window_registration.jpg|border=1!
2. Panel dock creation
!panel_dock_creation.jpg|border=1!
3. Dock(Child) window creation
!docking_window_creation_1.jpg|border=1!
!docking_window_creation_2.jpg|border=1!
4. Property panel creation
!docking_window_creation_3.jpg|border=1!
5. Section creation with context sensitive
!docking_window_creation_4.jpg|border=1!
!docking_window_creation_5.jpg|border=1!
Change your notification preferences:
https://cwiki.apache.org/confluence/users/viewnotifications.action