Apache OpenOffice (AOO) Bugzilla – Issue 122145
[sidebar] When selecting two group objects only the PosAndSize toolbar stay open
Last modified: 2022-10-28 12:54:18 UTC
ALG: With the bugdoc from task #122111# from the original description when selecting both group objects, only PosSize panel stays open; Line, Area, Paragraph and Text get closed. I cannot reproduce this with two self-created groups with e.g. different fill color.
This works as designed. This multi selection activates the "MultiObject" context, for which only the "Position and Size" and the new "Insert Shapes" panels are displayed. This can easily be changed but that would be an enhancement and would a proposal of how a better solution should look like.
ALG: Seems to have to do with OLE objects; in the example math OLE objects are part of the group objects. Maybe it plays a role here that OLEs can have line/fill/text now, but could not at Symphony. Somewhere at activation this seems to be checked. @Andre: Multiselection is *not* the problem here, without Math OLEs the multiselection allows the corrcet panels to appear (no diff to single objectselection).
ALG: SidebarController::notifyContextChangeEvent gets a rEvent.ContextName only with the mentioned BugDoc, but not when multiple objects or multiple grouped objects are selected.
ALG: I would say that SelectionAnalyzer::IsShapeType should add OBJ_OLE2 (and OBJ_FRAME) if with 'ShapeType' is meant that this object can get FillStyle/LineStyle/Paragraph and Text, this would solve the problem and would make the SelectionAnalyzer work correctly when OLEs are involved.
ALG: Checking with Crash AOO Color adjustment Zeichnungen.odg...
ALG: Two changes: - In multiselection (or group object selection) OLE is seen as DrawObject to allow draw object context to be detected. This offers the Line/FillStyle panels. - for single selection of OLEs, Line/FillStyle panels are offered, default is to offer these in their closed state. Comitting changes...
"alg" committed SVN revision 1482937 into trunk: i122145 Two changes: Multiselection with mix of DrawObjects and OLE will allo...
ALG: Okay, done.