incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 120358] New: Some properties of tab page model do not work
Date Tue, 24 Jul 2012 15:13:04 GMT

          Priority: P3
            Bug ID: 120358
           Summary: Some properties of tab page model do not work
          Severity: normal
        Issue Type: DEFECT
    Classification: Code
                OS: All
          Hardware: All
            Status: CONFIRMED
           Version: AOO 3.4.0
         Component: code
           Product: framework

Created attachment 78714
Document contains macro to reproduce the problem

Some properties of tab page model do not work on tab page model, Enabled,
ImageURL and ToolTip properties are not work well.

New tab model can be created as follows, this code piece is from attached
  d = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
  dm = d.getModel()

  tabs =
    Array("Height", "PositionX", "PositionY", "Width"), _
    Array(100, 0, 0, 100))
  dm.insertByName("tabs", tabs)

  tab1 = tabs.createTabPage(1)
  tab1.Title = "Page1" ' works
  tabs.insertByIndex(0, tab1)

Tab page model created by createTabPage method is instance of
UnoControlTabPageModel class 
defined in toolkit/inc/toolkit/controls/tabpagemodel.hxx.
If it implemented according to IDL service css.awt.tree.UnoControlTabPageModel, 
it should implement css.awt.tree.XTabPageModel interface. 
But it does not implemented and it has several properties.

When new tab page is inserted into the tab page container, 
VCLXTabPageContainer::elementInserted method is called and page values are 
taken through awt.tree.XTabPageModel interface. But they are 
not connected to above properties.

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

View raw message