incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120061] New: Methods of css::awt::tab::XTabPageModel interface are not visible through introspection on tab page model
Date Fri, 22 Jun 2012 16:02:18 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120061

          Priority: P3
            Bug ID: 120061
          Assignee: ooo-issues@incubator.apache.org
           Summary: Methods of css::awt::tab::XTabPageModel interface are
                    not visible through introspection on tab page model
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Reporter: hanya.runo@gmail.com
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: framework

setTitle method of css::awt::tab::XTabPageModel interface should be callable 
on created tab page model by css::awt::tab::XTabPageContainerModel interface.
It works on Java but not work on Basic and Python.

Sub TabPageTest
  DialogLibraries.loadLibrary("Standard")
  d = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
  dialogModel = d.getModel()

  tabContainerModel =
dialogModel.createInstance("com.sun.star.awt.tab.UnoControlTabPageContainerModel")
  tabContainerModel.setPropertyValues(_
    Array("Height", "PositionX", "PositionY", "Width"), Array(100, 5, 5, 100))
  dialogModel.insertByName("tabpages", tabContainerModel)

  tabPageModel = tabContainerModel.createTabPage(1)
  tabPageModel.Title = "Bar"
  tabContainerModel.insertByIndex(0, tabPageModel)
  tabPageModel.setTitle("Foo") ' <- Error: Property or method not found:
setTitle

  d.execute()
  d.dispose()
End Sub

-- 
You are receiving this mail because:
You are the assignee for the bug.

Mime
View raw message