前の関連記事:LibreOffice5(156)ドキュメントに埋め込んだモジュールをインポートする 撤廃メソッドの排除
ページスタイルのサービスとインターフェイスの一覧
def macro(): ctx = XSCRIPTCONTEXT.getComponentContext() # コンポーネントコンテクストの取得。 smgr = ctx.getServiceManager() # サービスマネージャーの取得。 tcu = smgr.createInstanceWithContext("pq.Tcu", ctx) # サービス名か実装名でインスタンス化。 doc = XSCRIPTCONTEXT.getDocument() defaultpagestyle = doc.getStyleFamilies()["PageStyles"]["Default"] tcu.wtree(defaultpagestyle)
デフォルトページスタイルについて調べています。
├─.style.PageStyle
│ ├─.style.PageProperties
│ │ .util.Color BackColor
│ │ string BackGraphicFilter
│ │ .style.GraphicLocation BackGraphicLocation
│ │ string BackGraphicURL
│ │ boolean BackTransparent
│ │ long BorderDistance
│ │ .table.BorderLine BottomBorder
│ │ long BottomBorderDistance
│ │ long BottomMargin
│ │ boolean FirstIsShared
│ │ .util.Color FooterBackColor
│ │ string FooterBackGraphicFilter
│ │ .style.GraphicLocation FooterBackGraphicLocation
│ │ string FooterBackGraphicURL
│ │ boolean FooterBackTransparent
│ │ long FooterBodyDistance
│ │ long FooterBorderDistance
│ │ .table.BorderLine FooterBottomBorder
│ │ long FooterBottomBorderDistance
│ │ boolean FooterDynamicSpacing
│ │ long FooterHeight
│ │ boolean FooterIsDynamicHeight
│ │ boolean FooterIsOn
│ │ boolean FooterIsShared
│ │ .table.BorderLine FooterLeftBorder
│ │ long FooterLeftBorderDistance
│ │ long FooterLeftMargin
│ │ .table.BorderLine FooterRightBorder
│ │ long FooterRightBorderDistance
│ │ long FooterRightMargin
│ │ .table.ShadowFormat FooterShadowFormat
│ │ .text.XText FooterText
│ │ .text.XText FooterTextLeft
│ │ .text.XText FooterTextRight
│ │ .table.BorderLine FooterTopBorder
│ │ long FooterTopBorderDistance
│ │ long FootnoteHeight
│ │ short FootnoteLineAdjust
│ │ .util.Color FootnoteLineColor
│ │ long FootnoteLineDistance
│ │ byte FootnoteLineRelativeWidth
│ │ short FootnoteLineStyle
│ │ long FootnoteLineTextDistance
│ │ short FootnoteLineWeight
│ │ long GridBaseHeight
│ │ .util.Color GridColor
│ │ boolean GridDisplay
│ │ short GridLines
│ │ short GridMode
│ │ boolean GridPrint
│ │ boolean GridRubyBelow
│ │ long GridRubyHeight
│ │ .util.Color HeaderBackColor
│ │ string HeaderBackGraphicFilter
│ │ .style.GraphicLocation HeaderBackGraphicLocation
│ │ string HeaderBackGraphicURL
│ │ boolean HeaderBackTransparent
│ │ long HeaderBodyDistance
│ │ long HeaderBorderDistance
│ │ .table.BorderLine HeaderBottomBorder
│ │ long HeaderBottomBorderDistance
│ │ boolean HeaderDynamicSpacing
│ │ long HeaderHeight
│ │ boolean HeaderIsDynamicHeight
│ │ boolean HeaderIsOn
│ │ boolean HeaderIsShared
│ │ .table.BorderLine HeaderLeftBorder
│ │ long HeaderLeftBorderDistance
│ │ long HeaderLeftMargin
│ │ .table.BorderLine HeaderRightBorder
│ │ long HeaderRightBorderDistance
│ │ long HeaderRightMargin
│ │ .table.ShadowFormat HeaderShadowFormat
│ │ .text.XText HeaderText
│ │ .text.XText HeaderTextLeft
│ │ .text.XText HeaderTextRight
│ │ .table.BorderLine HeaderTopBorder
│ │ long HeaderTopBorderDistance
│ │ long Height
│ │ boolean IsLandscape
│ │ .table.BorderLine LeftBorder
│ │ long LeftBorderDistance
│ │ long LeftMargin
│ │ short NumberingType
│ │ .style.PageStyleLayout PageStyleLayout
│ │ string PrinterPaperTray
│ │ boolean RegisterModeActive
│ │ string RegisterParagraphStyle
│ │ .table.BorderLine RightBorder
│ │ long RightBorderDistance
│ │ long RightMargin
│ │ .table.ShadowFormat ShadowFormat
│ │ .awt.Size Size
│ │ .text.XTextColumns TextColumns
│ │ .table.BorderLine TopBorder
│ │ long TopBorderDistance
│ │ long TopMargin
│ │ .container.XNameContainer UserDefinedAttributes
│ │ long Width
│ │ short WritingMode
│ └─.style.Style
│ │ string DisplayName
│ │ string FollowStyle
│ │ boolean Hidden
│ │ string IsAutoUpdate
│ │ boolean IsPhysical
│ │ [.beans.NamedValue] ParaStyleConditions
│ │ [.beans.PropertyValue] StyleInteropGrabBag
│ ├─.beans.XMultiPropertySet
│ │ void addPropertiesChangeListener( [in] [string] aPropertyNames,
│ │ [in] .beans.XPropertiesChangeListener xListener)
│ │ void firePropertiesChangeEvent( [in] [string] aPropertyNames,
│ │ [in] .beans.XPropertiesChangeListener xListener)
│ │ .beans.XPropertySetInfo getPropertySetInfo()
│ │ [any] getPropertyValues( [in] [string] aPropertyNames)
│ │ void removePropertiesChangeListener( [in] .beans.XPropertiesChangeListener xListener)
│ │ void setPropertyValues( [in] [string] aPropertyNames,
│ │ [in] [any] aValues
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException,
│ │ .beans.PropertyVetoException)
│ ├─.beans.XMultiPropertyStates
│ │ [any] getPropertyDefaults( [in] [string] aPropertyNames
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ [.beans.PropertyState] getPropertyStates( [in] [string] aPropertyName
│ │ ) raises ( .beans.UnknownPropertyException)
│ │ void setAllPropertiesToDefault()
│ │ void setPropertiesToDefault( [in] [string] aPropertyNames
│ │ ) raises ( .beans.UnknownPropertyException)
│ ├─.beans.XPropertySet
│ │ void addPropertyChangeListener( [in] string aPropertyName,
│ │ [in] .beans.XPropertyChangeListener xListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void addVetoableChangeListener( [in] string PropertyName,
│ │ [in] .beans.XVetoableChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ .beans.XPropertySetInfo getPropertySetInfo()
│ │ any getPropertyValue( [in] string PropertyName
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void removePropertyChangeListener( [in] string aPropertyName,
│ │ [in] .beans.XPropertyChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void removeVetoableChangeListener( [in] string PropertyName,
│ │ [in] .beans.XVetoableChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void setPropertyValue( [in] string aPropertyName,
│ │ [in] any aValue
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException,
│ │ .beans.PropertyVetoException,
│ │ .beans.UnknownPropertyException)
│ ├─.style.XStyle
│ │ │ string getParentStyle()
│ │ │ boolean isInUse()
│ │ │ boolean isUserDefined()
│ │ │ void setParentStyle( [in] string aParentStyle
│ │ │ ) raises ( .container.NoSuchElementException)
│ │ └─.container.XNamed
│ │ string getName()
│ │ void setName( [in] string aName)
│ └─.xml.UserDefinedAttributesSupplier
│ .container.XNameContainer UserDefinedAttributes
├─.beans.XPropertyState
│ any getPropertyDefault( [in] string aPropertyName
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ .beans.PropertyState getPropertyState( [in] string PropertyName
│ ) raises ( .beans.UnknownPropertyException)
│ [.beans.PropertyState] getPropertyStates( [in] [string] aPropertyName
│ ) raises ( .beans.UnknownPropertyException)
│ void setPropertyToDefault( [in] string PropertyName
│ ) raises ( .beans.UnknownPropertyException)
└──(サービスやインターフェイスに属しないプロパティ)
long BackgroundColor
boolean CenterHorizontally
boolean CenterVertically
short FirstPageNumber
long FooterBackgroundColor
boolean FooterDynamic
boolean FooterOn
boolean FooterShared
long HeaderBackgroundColor
boolean HeaderDynamic
boolean HeaderOn
boolean HeaderShared
boolean IsBackgroundTransparent
.sheet.XHeaderFooterContent LeftPageFooterContent
.sheet.XHeaderFooterContent LeftPageHeaderContent
short PageScale
boolean PrintAnnotations
boolean PrintCharts
boolean PrintDownFirst
boolean PrintDrawing
boolean PrintFormulas
boolean PrintGrid
boolean PrintHeaders
boolean PrintObjects
boolean PrintZeroValues
.sheet.XHeaderFooterContent RightPageFooterContent
.sheet.XHeaderFooterContent RightPageHeaderContent
short ScaleToPages
short ScaleToPagesX
short ScaleToPagesY
boolean TransparentFooterBackground
boolean TransparentHeaderBackground
│ ├─.style.PageProperties
│ │ .util.Color BackColor
│ │ string BackGraphicFilter
│ │ .style.GraphicLocation BackGraphicLocation
│ │ string BackGraphicURL
│ │ boolean BackTransparent
│ │ long BorderDistance
│ │ .table.BorderLine BottomBorder
│ │ long BottomBorderDistance
│ │ long BottomMargin
│ │ boolean FirstIsShared
│ │ .util.Color FooterBackColor
│ │ string FooterBackGraphicFilter
│ │ .style.GraphicLocation FooterBackGraphicLocation
│ │ string FooterBackGraphicURL
│ │ boolean FooterBackTransparent
│ │ long FooterBodyDistance
│ │ long FooterBorderDistance
│ │ .table.BorderLine FooterBottomBorder
│ │ long FooterBottomBorderDistance
│ │ boolean FooterDynamicSpacing
│ │ long FooterHeight
│ │ boolean FooterIsDynamicHeight
│ │ boolean FooterIsOn
│ │ boolean FooterIsShared
│ │ .table.BorderLine FooterLeftBorder
│ │ long FooterLeftBorderDistance
│ │ long FooterLeftMargin
│ │ .table.BorderLine FooterRightBorder
│ │ long FooterRightBorderDistance
│ │ long FooterRightMargin
│ │ .table.ShadowFormat FooterShadowFormat
│ │ .text.XText FooterText
│ │ .text.XText FooterTextLeft
│ │ .text.XText FooterTextRight
│ │ .table.BorderLine FooterTopBorder
│ │ long FooterTopBorderDistance
│ │ long FootnoteHeight
│ │ short FootnoteLineAdjust
│ │ .util.Color FootnoteLineColor
│ │ long FootnoteLineDistance
│ │ byte FootnoteLineRelativeWidth
│ │ short FootnoteLineStyle
│ │ long FootnoteLineTextDistance
│ │ short FootnoteLineWeight
│ │ long GridBaseHeight
│ │ .util.Color GridColor
│ │ boolean GridDisplay
│ │ short GridLines
│ │ short GridMode
│ │ boolean GridPrint
│ │ boolean GridRubyBelow
│ │ long GridRubyHeight
│ │ .util.Color HeaderBackColor
│ │ string HeaderBackGraphicFilter
│ │ .style.GraphicLocation HeaderBackGraphicLocation
│ │ string HeaderBackGraphicURL
│ │ boolean HeaderBackTransparent
│ │ long HeaderBodyDistance
│ │ long HeaderBorderDistance
│ │ .table.BorderLine HeaderBottomBorder
│ │ long HeaderBottomBorderDistance
│ │ boolean HeaderDynamicSpacing
│ │ long HeaderHeight
│ │ boolean HeaderIsDynamicHeight
│ │ boolean HeaderIsOn
│ │ boolean HeaderIsShared
│ │ .table.BorderLine HeaderLeftBorder
│ │ long HeaderLeftBorderDistance
│ │ long HeaderLeftMargin
│ │ .table.BorderLine HeaderRightBorder
│ │ long HeaderRightBorderDistance
│ │ long HeaderRightMargin
│ │ .table.ShadowFormat HeaderShadowFormat
│ │ .text.XText HeaderText
│ │ .text.XText HeaderTextLeft
│ │ .text.XText HeaderTextRight
│ │ .table.BorderLine HeaderTopBorder
│ │ long HeaderTopBorderDistance
│ │ long Height
│ │ boolean IsLandscape
│ │ .table.BorderLine LeftBorder
│ │ long LeftBorderDistance
│ │ long LeftMargin
│ │ short NumberingType
│ │ .style.PageStyleLayout PageStyleLayout
│ │ string PrinterPaperTray
│ │ boolean RegisterModeActive
│ │ string RegisterParagraphStyle
│ │ .table.BorderLine RightBorder
│ │ long RightBorderDistance
│ │ long RightMargin
│ │ .table.ShadowFormat ShadowFormat
│ │ .awt.Size Size
│ │ .text.XTextColumns TextColumns
│ │ .table.BorderLine TopBorder
│ │ long TopBorderDistance
│ │ long TopMargin
│ │ .container.XNameContainer UserDefinedAttributes
│ │ long Width
│ │ short WritingMode
│ └─.style.Style
│ │ string DisplayName
│ │ string FollowStyle
│ │ boolean Hidden
│ │ string IsAutoUpdate
│ │ boolean IsPhysical
│ │ [.beans.NamedValue] ParaStyleConditions
│ │ [.beans.PropertyValue] StyleInteropGrabBag
│ ├─.beans.XMultiPropertySet
│ │ void addPropertiesChangeListener( [in] [string] aPropertyNames,
│ │ [in] .beans.XPropertiesChangeListener xListener)
│ │ void firePropertiesChangeEvent( [in] [string] aPropertyNames,
│ │ [in] .beans.XPropertiesChangeListener xListener)
│ │ .beans.XPropertySetInfo getPropertySetInfo()
│ │ [any] getPropertyValues( [in] [string] aPropertyNames)
│ │ void removePropertiesChangeListener( [in] .beans.XPropertiesChangeListener xListener)
│ │ void setPropertyValues( [in] [string] aPropertyNames,
│ │ [in] [any] aValues
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException,
│ │ .beans.PropertyVetoException)
│ ├─.beans.XMultiPropertyStates
│ │ [any] getPropertyDefaults( [in] [string] aPropertyNames
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ [.beans.PropertyState] getPropertyStates( [in] [string] aPropertyName
│ │ ) raises ( .beans.UnknownPropertyException)
│ │ void setAllPropertiesToDefault()
│ │ void setPropertiesToDefault( [in] [string] aPropertyNames
│ │ ) raises ( .beans.UnknownPropertyException)
│ ├─.beans.XPropertySet
│ │ void addPropertyChangeListener( [in] string aPropertyName,
│ │ [in] .beans.XPropertyChangeListener xListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void addVetoableChangeListener( [in] string PropertyName,
│ │ [in] .beans.XVetoableChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ .beans.XPropertySetInfo getPropertySetInfo()
│ │ any getPropertyValue( [in] string PropertyName
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void removePropertyChangeListener( [in] string aPropertyName,
│ │ [in] .beans.XPropertyChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void removeVetoableChangeListener( [in] string PropertyName,
│ │ [in] .beans.XVetoableChangeListener aListener
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .beans.UnknownPropertyException)
│ │ void setPropertyValue( [in] string aPropertyName,
│ │ [in] any aValue
│ │ ) raises ( .lang.WrappedTargetException,
│ │ .lang.IllegalArgumentException,
│ │ .beans.PropertyVetoException,
│ │ .beans.UnknownPropertyException)
│ ├─.style.XStyle
│ │ │ string getParentStyle()
│ │ │ boolean isInUse()
│ │ │ boolean isUserDefined()
│ │ │ void setParentStyle( [in] string aParentStyle
│ │ │ ) raises ( .container.NoSuchElementException)
│ │ └─.container.XNamed
│ │ string getName()
│ │ void setName( [in] string aName)
│ └─.xml.UserDefinedAttributesSupplier
│ .container.XNameContainer UserDefinedAttributes
├─.beans.XPropertyState
│ any getPropertyDefault( [in] string aPropertyName
│ ) raises ( .lang.WrappedTargetException,
│ .beans.UnknownPropertyException)
│ .beans.PropertyState getPropertyState( [in] string PropertyName
│ ) raises ( .beans.UnknownPropertyException)
│ [.beans.PropertyState] getPropertyStates( [in] [string] aPropertyName
│ ) raises ( .beans.UnknownPropertyException)
│ void setPropertyToDefault( [in] string PropertyName
│ ) raises ( .beans.UnknownPropertyException)
└──(サービスやインターフェイスに属しないプロパティ)
long BackgroundColor
boolean CenterHorizontally
boolean CenterVertically
short FirstPageNumber
long FooterBackgroundColor
boolean FooterDynamic
boolean FooterOn
boolean FooterShared
long HeaderBackgroundColor
boolean HeaderDynamic
boolean HeaderOn
boolean HeaderShared
boolean IsBackgroundTransparent
.sheet.XHeaderFooterContent LeftPageFooterContent
.sheet.XHeaderFooterContent LeftPageHeaderContent
short PageScale
boolean PrintAnnotations
boolean PrintCharts
boolean PrintDownFirst
boolean PrintDrawing
boolean PrintFormulas
boolean PrintGrid
boolean PrintHeaders
boolean PrintObjects
boolean PrintZeroValues
.sheet.XHeaderFooterContent RightPageFooterContent
.sheet.XHeaderFooterContent RightPageHeaderContent
short ScaleToPages
short ScaleToPagesX
short ScaleToPagesY
boolean TransparentFooterBackground
boolean TransparentHeaderBackground
参考にしたサイト
ページスタイルのプロパティの解説があります。
0 件のコメント:
コメントを投稿