Issue 40174 - XRangeSelection should support a "single cell" selection mode
Summary: XRangeSelection should support a "single cell" selection mode
Status: CLOSED FIXED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P4 Trivial
Target Milestone: ---
Assignee: oc
QA Contact: issues@api
URL: http://api.openoffice.org/docs/common...
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-08 02:26 UTC by kyoshida
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

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


Attachments
A patch (6.93 KB, patch)
2005-01-16 03:52 UTC, kyoshida
no flags Details | Diff
Document to verify the new behaviour (8.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2006-05-04 12:06 UTC, stephan.wunderlich
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description kyoshida 2005-01-08 02:26:35 UTC
XRangeSelection interface should support a "single cell" selection mode, i.e. a
selection mode that only lets you select one single cell.  Currently, this
interface only supports a "simple area select" - a mode where you can select
multiple adjoining cells.

The "single cell" select mode should also provide the following two sub-modes:

mode 1) you can only select a cell on the current sheet, and the resulting
formula will NOT include a sheet reference e.g. "$B$23"

mode 2) you are permitted to select a cell on a sheet that is not current, and
the resulting formula will include a sheet reference e.g. "$Sheet2.$B$23".

Such mode switch can be accomplished by introducing an additional property (or
two) in the RangeSelectionArguments service.
Comment 1 kyoshida 2005-01-14 14:46:07 UTC
One minor change.  There will NOT be the two sub-modes specified in my original
comment.  This single cell mode will follow the way a similar mode is
implemented natively in Calc (for example, selecting a target cell in the Goal
Seek dialog).

I've started working on this, so changing the status to STARTED...
Comment 2 kyoshida 2005-01-14 14:47:46 UTC
Assigning this issue to myself
Comment 3 kyoshida 2005-01-14 14:48:16 UTC
STARTED again
Comment 4 kyoshida 2005-01-16 03:52:04 UTC
Created attachment 21559 [details]
A patch
Comment 5 kyoshida 2005-01-16 03:56:37 UTC
The new property is a boolean and is named "SingleCellMode".  An evaluation of
this patch is much appreciated. :-)

Kohei
Comment 6 kyoshida 2005-01-16 04:04:18 UTC
In this implementation, the cell reference always stays 3D (i.e. a reference
that includes the sheet address), because switching to a 2D reference when the
selected cell is on the current sheet did not work well with ScSimpleRefDlg.
Comment 7 kyoshida 2005-02-02 14:31:58 UTC
Retarget to OOo Later & set the priority to P5
Comment 8 stx123 2005-10-11 13:53:35 UTC
Hi Kohei and Niklas,
I would like to avoid that issues of type PATCH linger in Issuezilla for ages.
Kohei, I changed the target milestone to "not determined". I think after the
review of the patch we'll find the appropriate target. But let's see whether
it's ready for integration first.
Thanks, Stefan
Comment 9 kyoshida 2005-10-11 14:58:35 UTC
Hi Stephan,
That's fine by me.  I appreciate your attention to this issue. -Kohei
Comment 10 niklas.nebel 2006-04-05 17:46:02 UTC
The patch is good. I only changed the formatting of the idl description, and
committed it to child workspace "calc36". Thanks, Kohei!
Comment 11 niklas.nebel 2006-04-26 10:15:56 UTC
reassigning to QA for verification

re-open issue and reassign to oc@openoffice.org
Comment 12 niklas.nebel 2006-04-26 10:16:01 UTC
reassign to oc@openoffice.org
Comment 13 niklas.nebel 2006-04-26 10:16:08 UTC
reset resolution to FIXED
Comment 14 stephan.wunderlich 2006-05-04 12:06:02 UTC
Created attachment 36265 [details]
Document to verify the new behaviour
Comment 15 stephan.wunderlich 2006-05-04 12:07:01 UTC
looks good in cws calc36 => verified
Comment 16 oc 2006-05-11 11:39:52 UTC
closed because fix available in OpenOffice.org Developer Snapshot Build src680_m167