pyuno
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| pyuno [2010/07/21 01:44] – suapapa | pyuno [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 39: | Line 39: | ||
| ctx.ServiceManager | ctx.ServiceManager | ||
| </ | </ | ||
| + | ====== ooclac ====== | ||
| + | 그냥 ooclac 실행하고 해도 되나?? | ||
| + | <code python> | ||
| + | # | ||
| + | |||
| + | import uno | ||
| + | localContext = uno.getComponentContext() | ||
| + | resolver = localContext.ServiceManager.createInstanceWithContext(" | ||
| + | ctx = resolver.resolve( " | ||
| + | smgr = ctx.ServiceManager | ||
| + | desktop = smgr.createInstanceWithContext( " | ||
| + | oDoc = desktop.getCurrentComponent() | ||
| + | |||
| + | # sheet to be activated | ||
| + | oSheet = oDoc.getSheets().getByIndex(2) | ||
| + | |||
| + | # activate the sheet | ||
| + | oController = oDoc.getCurrentController() | ||
| + | oController.setActiveSheet(oSheet) | ||
| + | |||
| + | # set first visible row | ||
| + | oController.setFirstVisibleRow(3) | ||
| + | </ | ||
| + | |||
| + | ====== ooimpress ====== | ||
| + | UNO service : com.sun.star.presentation.SlideShow | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | |||
| ====== references ====== | ====== references ====== | ||
| + | *[[http:// | ||
| *[[http:// | *[[http:// | ||
| *[[http:// | *[[http:// | ||
| *[[http:// | *[[http:// | ||
| + | *[[http:// | ||
pyuno.1279676686.txt.gz · Last modified: 2013/08/03 05:04 (external edit)