To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=78291
                 Issue #|78291
                 Summary|awt property introspection ...
               Component|gsl
                 Version|680m211
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|PATCH
                Priority|P3
            Subcomponent|code
             Assigned to|pl
             Reported by|mmeeks





------- Additional comments from [EMAIL PROTECTED] Mon Jun 11 09:03:05 +0000 
2007 -------
So :-) imagine my surprise to discover awt widgets have a property-set like
interface but no XPropertySetInfo to discover what properties they support.

Interestingly, running the first pass of the new code seemed to reveal a number
of missing properties at the unocontrols.cxx level, that should (probably) come
from the underlying inheritance in the awt implementations eg.

It seems that things like UnoControlComboBoxModel are missing some derived
properties: EchoChar (etc.) UnoControlDateFieldModel likewise - is that
deliberate ? [ though they ultimately inherit from bases with these - I had to
cut that chain:

+void VCLXFormattedSpinField::ImplGetPropertyIds(...
+{
+    // Interestingly in the UnoControl API this is
+    // - not derived from XEdit ultimately, (correct ?) - so cut this here ...
+//    VCLXSpinField::ImplGetPropertyIds( rIds );
+    VCLXWindow::ImplGetPropertyIds( rIds );
+}

Similarly the ComboBox also seems to be missing a number of VCLXEdit related
properties - is that deliberate ?

layout container - start child 'combobox'
   missing property 46 (EchoChar)
   missing property 48 (HardLineBreaks)
   missing property 12 (HScroll)
   missing property 104 (LineEndFormat)
   missing property 10 (MultiLine)
   missing property 13 (VScroll)

Having said that - running the xmlscript test - which instantiates most (all?)
awt controls - seems to show no other issues: which should allow us to prune the
(larger code-size-wise) ImplRegisterProperty call blocks [ and eliminate the
VERIFY_PROPS blocks ].

So - other questions:
  * is it ok to aggregate an XPropertySetInfo interface
      + as you see it has little cost (beyond loosing *pDummy2 -
        I assume it is ok to steal that ? ;-)
  * would it be better to implement an XPropertySet interface instead ?
    presumably there is some rational behind a custom get/setProperty
    interface ?

Thanks.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to