You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openoffice.apache.org by bu...@apache.org on 2013/07/02 16:07:52 UTC

[Bug 121231] Charts in spreadsheet: Allow changing from internal table to data range and vice versa

https://issues.apache.org/ooo/show_bug.cgi?id=121231

Armin Le Grand <Ar...@me.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|issues@openoffice.apache.or |Armin.Le.Grand@me.com
                   |g                           |

--- Comment #10 from Armin Le Grand <Ar...@me.com> ---
ALG: Grepping. Some (self-)comments: #118840# made data to be contained by
detecting the calc model used as temporary since these also have 'Sheet1' as
name of first sheet, thus avoiding copying/including local data. This could be
replaced/fixed different by:

ScTransferObj::SetDrawClipDoc:

        ScDocument* pDoc = (*ScGlobal::pDrawClipDocShellRef)->GetDocument();
        SCTAB aTableCount(pDoc->GetTableCount());
        String
aString(String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("_temporary_")));
        pDoc->RenameTab(0, aString);

Thus would guarantee the 1st sheet of a temporary ScDocument to have an
alternative name, older fix may be removed. Checked, but still does not save
the original data ranges; I need to follow where these will stay in the further
processing.
To allow re-defining the chart to have a range, a start point is
ControllerCommandDispatch::updateCommandAvailability in chart2,
".uno:DataRanges" (l610) should beindependent from
m_apModelState->bHasOwnData...

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