Difference between revisions of "Documentation/DevGuide/Charts/Chart Document Controller"

From Apache OpenOffice Wiki
Jump to: navigation, search
m
m (FINAL VERSION FOR L10N)
Line 4: Line 4:
 
|NextPage=Documentation/DevGuide/Charts/Chart Add-Ins
 
|NextPage=Documentation/DevGuide/Charts/Chart Add-Ins
 
}}
 
}}
{{DISPLAYTITLE:Chart Document Controller}}
+
{{Documentation/DevGuideLanguages|Documentation/DevGuide/Charts/{{SUBPAGENAME}}}}
 +
{{DISPLAYTITLE:Chart Document Controller}}
 
The chart document model implements <idl>com.sun.star.frame.XModel</idl>. Therefore, controllers can be registered with the method <code>connectController()</code>.  When one of the registered controllers is set as current one with <code>setCurrentController()</code>, this one is also returned in the method <code>getCurrentController()</code>.
 
The chart document model implements <idl>com.sun.star.frame.XModel</idl>. Therefore, controllers can be registered with the method <code>connectController()</code>.  When one of the registered controllers is set as current one with <code>setCurrentController()</code>, this one is also returned in the method <code>getCurrentController()</code>.
  

Revision as of 12:23, 15 May 2009



The chart document model implements com.sun.star.frame.XModel. Therefore, controllers can be registered with the method connectController(). When one of the registered controllers is set as current one with setCurrentController(), this one is also returned in the method getCurrentController().

Apart from using the controller directly, there are three other useful methods:

  void lockControllers()
  void unlockControllers()
  boolean hasControllersLocked()

With a call to lockControllers() all registered controllers will no longer be notified about changes in the model. If there are changes those are notified no earlier than after calling unlockControllers(). This is especially useful if you do many changes to the chart model at a time but do not need the view to be updated after every single change. The method hasControllersLocked() just gives you the state whether controllers are locked or not.

Template:Documentation/Note

Content on this page is licensed under the Public Documentation License (PDL).
Personal tools
In other languages