21.08.2013 Views

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

OpenOffice.org BASIC Guide.pdf - OpenOffice.org wiki

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Formatting Spreadsheet Documents 146<br />

service:<br />

HeaderText (Object)<br />

text object with content of the header (<br />

com.sun.star.text.XText<br />

service)<br />

HeaderTextLeft (Object)<br />

text object with content of headers on left-hand pages (<br />

com.sun.star.text.XText<br />

service)<br />

HeaderTextRight (Object)<br />

text object with content of headers on right-hand pages (<br />

com.sun.star.text.XText<br />

service)<br />

FooterText (Object)<br />

text object with content of the footer (<br />

com.sun.star.text.XText<br />

service)<br />

FooterTextLeft (Object)<br />

text object with content of footers on left-hand pages (<br />

com.sun.star.text.XText<br />

service)<br />

FooterTextRight (Object)<br />

text object with content of footers on right-hand pages (<br />

com.sun.star.text.XText<br />

service)<br />

The following example creates a header in the "Default" page style for text documents and<br />

adds the text "Just a Test" to the header.<br />

Dim Doc As Object<br />

Dim Sheet As Object<br />

Dim StyleFamilies As Object<br />

Dim PageStyles As Object<br />

Dim DefPage As Object<br />

Dim HText As Object<br />

Doc = StarDesktop.CurrentComponent

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!