public class ODrawDoc extends ORootDoc
| Modifier and Type | Class and Description |
|---|---|
static class |
ODrawDoc.BitmapShape
A bitmap shape.
|
static class |
ODrawDoc.ConnectorShape
A connector shape.
|
static class |
ODrawDoc.EllipseShape
An Ellipse shape.
|
static class |
ODrawDoc.LineDash
A line dash.
|
static class |
ODrawDoc.LineShape
A line shape.
|
class |
ODrawDoc.Page
A Draw document page.
|
class |
ODrawDoc.PageLayer
A page layer.
|
static class |
ODrawDoc.RectangleShape
A rectangle shape.
|
static class |
ODrawDoc.ShapeType
Enumerates drawing shape types.
|
static class |
ODrawDoc.TextShape
A text shape.
|
ORootDoc.Info| Constructor and Description |
|---|
ODrawDoc(java.lang.String url)
Constructs and opens a Draw document.
|
| Modifier and Type | Method and Description |
|---|---|
ODrawDoc.Page |
insertPage(int number)
Inserts a document page.
|
java.util.ArrayList<ODrawDoc.Page> |
masterPages()
Returns a collection of all document master pages.
|
ODrawDoc.Page |
page(int number)
Returns a document page by number.
|
java.util.ArrayList<ODrawDoc.Page> |
pages()
Returns a collection of all document pages.
|
void |
removePage(int number)
Removes a document page.
|
java.lang.String |
writeOdg(java.lang.String url)
Writes the document using OFileFilter.ODG.
|
com.sun.star.lang.XComponent |
xGetXDoc()
Gets the XComponent object for the document.
|
close, deleteStyle, info, logFields, logServices, logShapes, logStyles, logSummary, numPages, numShapes, numStyles, read, setupStyles, shapes, shapesByType, style, styleFamilies, styles, styles, toString, url, write, writeProtected, xGetMSFactory, xGetXComplogProps, xGetPropSetpublic ODrawDoc(java.lang.String url)
throws com.sun.star.uno.Exception
url - the URLcom.sun.star.uno.Exceptionpublic ODrawDoc.Page page(int number) throws com.sun.star.uno.Exception
number - the page number (first is zero)com.sun.star.uno.Exceptionpublic java.util.ArrayList<ODrawDoc.Page> pages() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic java.util.ArrayList<ODrawDoc.Page> masterPages() throws com.sun.star.uno.Exception
com.sun.star.uno.Exceptionpublic ODrawDoc.Page insertPage(int number) throws com.sun.star.uno.Exception
number - the page numbercom.sun.star.uno.Exceptionpublic void removePage(int number)
throws com.sun.star.uno.Exception
number - the page numbercom.sun.star.uno.Exceptionpublic java.lang.String writeOdg(java.lang.String url)
throws com.sun.star.uno.Exception
url - the URLcom.sun.star.uno.Exceptionpublic com.sun.star.lang.XComponent xGetXDoc()