incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 120358] New: Some properties of tab page model do not work
Date Tue, 24 Jul 2012 15:13:04 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=120358

          Priority: P3
            Bug ID: 120358
          Assignee: ooo-issues@incubator.apache.org
           Summary: Some properties of tab page model do not work
          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

Created attachment 78714
  --> https://issues.apache.org/ooo/attachment.cgi?id=78714&action=edit
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
document:
  DialogLibraries.loadLibrary("Standard")
  d = CreateUnoDialog(DialogLibraries.Standard.Dialog1)
  dm = d.getModel()

  tabs =
dm.createInstance("com.sun.star.awt.tab.UnoControlTabPageContainerModel")
  tabs.setPropertyValues(_
    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.

Mime
View raw message