21.08.2013 Views

OpenOffice.org BASIC Guide - OpenOffice.org wiki

OpenOffice.org BASIC Guide - OpenOffice.org wiki

OpenOffice.org BASIC Guide - 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.

ShadowFormat (struct)<br />

The Structure of Spreadsheets<br />

specifications for shadow of content area of page (com.sun.star.table.ShadowFormat structure)<br />

The following example sets the left and right-hand borders of the "Default" page style to 1 centimeter.<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 />

Doc = ThisComponent<br />

StyleFamilies = Doc.StyleFamilies<br />

PageStyles = StyleFamilies.getByName("PageStyles")<br />

DefPage = PageStyles.getByName("Default")<br />

DefPage.LeftMargin = 1000<br />

DefPage.RightMargin = 1000<br />

Headers and Footers<br />

The headers and footers of a document form part of the page properties and are defined using the<br />

com.sun.star.style.PageProperties service. The properties for formatting headers are:<br />

HeaderIsOn (Boolean)<br />

header is activated<br />

HeaderLeftMargin (long)<br />

distance between header and left-hand page margin in hundredths of a millimeter<br />

HeaderRightMargin (long)<br />

distance between header and right-hand page margin in hundredths of a millimeter<br />

HeaderBodyDistance (long)<br />

distance between header and main body of document in hundredths of a millimeter<br />

HeaderHeight (long)<br />

height of header in hundredths of a millimeter<br />

HeaderIsDynamicHeight (Boolean)<br />

height of header is automatically adapted to content<br />

HeaderLeftBorder (struct)<br />

details of the left-hand border of frame around header (com.sun.star.table.BorderLine structure)<br />

HeaderRightBorder (struct)<br />

details of the right-hand border of frame around header (com.sun.star.table.BorderLine structure)<br />

HeaderTopBorder (struct)<br />

details of the top line of the border around header (com.sun.star.table.BorderLine structure)<br />

HeaderBottomBorder (struct)<br />

details of the bottom line of the border around header (com.sun.star.table.BorderLine structure)<br />

HeaderLeftBorderDistance (long)<br />

distance between left-hand border and content of header in hundredths of a millimeter<br />

HeaderRightBorderDistance (long)<br />

distance between right-hand border and content of header in hundredths of a millimeter<br />

HeaderTopBorderDistance (long)<br />

distance between top border and content of header in hundredths of a millimeter<br />

HeaderBottomBorderDistance (long)<br />

distance between bottom border and content of header in hundredths of a millimeter<br />

Chapter 7 · Spreadsheet Documents 103

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

Saved successfully!

Ooh no, something went wrong!