Issue 64884 - add default property behaviour for objects that support that
Summary: add default property behaviour for objects that support that
Status: CLOSED FIXED
Alias: None
Product: General
Classification: Code
Component: scripting (show other issues)
Version: OOo 2.0.2
Hardware: All All
: P3 Trivial (vote)
Target Milestone: OOo 2.2
Assignee: ab
QA Contact: issues@framework
URL:
Keywords:
: 68899 (view as issue list)
Depends on:
Blocks:
 
Reported: 2006-04-28 12:47 UTC by noel.power
Modified: 2007-02-05 13:32 UTC (History)
2 users (show)

See Also:
Issue Type: PATCH
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
patch (13.35 KB, patch)
2006-08-23 17:26 UTC, noel.power
no flags Details | Diff
patch file (17.94 KB, patch)
2006-10-19 09:42 UTC, noel.power
no flags Details | Diff
supporting udkapi changes (3.60 KB, patch)
2006-10-19 10:22 UTC, noel.power
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this issue.
Description noel.power 2006-04-28 12:47:26 UTC
Some objects in vba support a default value to be used as a lhs or rhs argument,
I call this a default property ( but probably that will cause confusion to some
people but bear with me ;-) )
e.g.
         'Range("a1") = 4' is equivalent to 'Range("a1").Value = 4'
       also
         'val = Range("a1")' is equivalent to 'val =
Range("a1").Value()'
       also
         'Range("a1") = Range("a2")' equivalent to  'Range("a1").Value =
Range("a2").Value'
         so in this case default "property" can be both a lhs & rhs arg 

proposed is an enhancement to basic to behave as above if an object indicates to
the basic runtime that such a "property" exists. Where object is an "uno object"
that supports a specific ( yet to be named ) interface e.g. XDefaultProperty
Comment 1 noel.power 2006-04-28 12:48:36 UTC
update target
Comment 2 pavel 2006-08-10 08:37:53 UTC
re-set target.

Can you update the target according to reality?
Comment 3 noel.power 2006-08-10 11:50:43 UTC
change target
Comment 4 noel.power 2006-08-23 16:34:38 UTC
*** Issue 68899 has been marked as a duplicate of this issue. ***
Comment 5 noel.power 2006-08-23 17:26:10 UTC
Created attachment 38740 [details]
patch
Comment 6 noel.power 2006-08-23 17:27:43 UTC
for review
Comment 7 ab 2006-08-25 07:57:33 UTC
STARTED
Comment 8 noel.power 2006-09-01 17:15:24 UTC
.
Comment 9 ab 2006-10-18 08:43:20 UTC
ab->npower: As discussed. If the task should be integrated for 2.1
please set the target accordingly. Back to you as already assigned
to npower4.
Comment 10 noel.power 2006-10-19 09:42:24 UTC
Created attachment 39872 [details]
patch file
Comment 11 noel.power 2006-10-19 09:42:46 UTC
added latest version of patch, started
Comment 12 noel.power 2006-10-19 10:22:18 UTC
Created attachment 39873 [details]
supporting udkapi changes
Comment 13 noel.power 2006-10-31 15:10:27 UTC
->ab can you verify?
Comment 14 ab 2006-11-01 09:07:19 UTC
Reset to fixed to allow verifying
Comment 15 ab 2006-11-01 09:08:23 UTC
Verified after code review
Comment 16 Martin Hollmichel 2006-11-02 11:09:22 UTC
set target to 2.2
Comment 17 Mathias_Bauer 2007-02-05 13:32:28 UTC
closing ancient issues