• Armin Le Grand's avatar
    SOSAW080: Added first bunch of basic changes to helpers · dfefe448
    Armin Le Grand yazdı
    SOSAW080: Make SdrModel& prerequisite to SdrObjects
    Added need for SdrModel& in constructors of SdrModel,
    SdrPage, SdrView and SdrObjList. Builds, not finished.
    SOSAW080: removed and replaced old SdrModel
    Removed and replaced GetModel()/SetModel() in all using
    classes (SdrObject, SdrPage, SdrView), added accessors
    to new referenced SdrModel, adapted all accessing places.
    Refactored/Extended ::Clone and ::operator== for these
    classes to allow cloning objects to a target SdrModel.
    Adapted places where this is done AFAP. Added quite some
    comments (tagged with 'TTTT') where possible further work
    is needed. Builds completely, thus checking in. This does
    not mean that this change is done yet.
    SOSAW080: Adapted SdrPage/SdrModel relationship
    Also needed to work on copy-construction of SdrPage and hierarchy,
    quite some stuff removed, no copy-constructor anymore, no
    MigrateItemPool stuff. Builds well, test stuck, will need
    some cleanup/finetunung
    SOSAW080: Smaller corrections/includes adapted
    SOSAW080: Smaller corrections/includes adapted
    SOSAW080: Debugging/Stabilizing/MakeUnitTestWork
    SOSAW080: Stabilized for UnitTests, cleanups
    SOSAW080: Adapted GetObjGraphic to just take a const SdrObject&
    SOSAW080: Removed ChangeModel from classes
    Classes SvxTextEditSource and SvxDrawPage (including
    TextEditSource stuff) do not need change of SdrModel
    SOSAW080: Adapted some comments to make more readable
    SOSAW080: Corrected constructor
    SOSAW080: getSdrModelFromUnoModel added override marks
    SOSAW080: Added missing includes
    SOSAW080: Corrected SdrPage constructor
    SOSAW080: Corrected some SdrObject::Clone scenarios
    Especially when cloning to another SdrModel and taking
    the sdr::properties into account.
    SOSAW080: Added include for Mac-Build
    SOSAW080: Added Scale to DefaultProperties
    If a SdrModel change happens in DefaultProperties copy
    constructor (used from Clone()), potentially a Scale
    for the SfxItems has to be done.
    SOSAW080: Added missing include for MacBuild
    SOSAW080: Corrected CppunitTest_sc_anchor_test
    An adaption of a SdrPathObj instantiation was missing,
    added that. Seems as if that test is no tpart of the
    usual 'make' scenario, but used/executed in gerrit builds
    SOSAW080: Reworked SvxShape to use SdrObject's SdrModel
    SOSAW080: Reworked SvxShape to use SdrObject's SdrModel
    SOSAW080: Free SdrObjects when SdrModel goes down
    In an UNO API test problem is that SvxShapes reference
    SdrShapes, but these are not added to a SdrPage and not
    'owned' by the SvxShape. Thus these do not get deleted
    at all (same in master, memory leak). I extended
    SvxShape::Notify the case for ModelCleared to also
    Free the SdrObject when not owner and it's not added to
    a SdrPage (in that case it gets deleted with deleting
    the SdrModel)
    SOSAW080: Solve UNO API calls that move SvxShapes to other Model
    Due to UNO API tests I got a call to insert an xShape to a
    xDrawPage which was constructed in another Model, this has now to
    be done by Cloning the SdrObject to the new SdrModel, getting
    rid of the old one and getting all the UNO implementation
    stuff right (referemces SdrObject <-> xShape).
    Change-Id: Iaf53535de0502a481466be74a1768bbb39f0e78c
    Reviewed-on: https://gerrit.libreoffice.org/52526Tested-by: 's avatarJenkins <ci@libreoffice.org>
    Reviewed-by: 's avatarArmin Le Grand <Armin.Le.Grand@cib.de>
Son kayıt (commit)
Son güncelleme
b1drange.hxx Loading commit data...
b2dconnectedranges.hxx Loading commit data...
b2dpolyrange.hxx Loading commit data...
b2drange.hxx Loading commit data...
b2drangeclipper.hxx Loading commit data...
b2drectangle.hxx Loading commit data...
b2ibox.hxx Loading commit data...
b2irange.hxx Loading commit data...
b2irectangle.hxx Loading commit data...
b3drange.hxx Loading commit data...
basicbox.hxx Loading commit data...
basicrange.hxx Loading commit data...