1. 09 Nis, 2018 1 kayıt (commit)
  2. 06 Nis, 2018 3 kayıt (commit)
    • 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
      anymore.
      
      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).
      
      1cb7d573d323e98a89761fe662c10c4a654fdec0
      24617494a0ef79f6e33dfcb02782a833a81c6434
      763f39094b6a48b529a6952d01468f8776c97679
      242b9e228a9a042c3a5bdd38b1ea6600144276d5
      242b9e228a9a042c3a5bdd38b1ea6600144276d5
      33a6f3f306b70c223171aef796dd5ee041ad14df
      6878b33f8b05738a44c0910e40a60a0f0d1d58ed
      0a636caf3cb36c2f9c6cd11aa22cb9bc435dc8f2
      8c4626274a5cc531dad27f27c0c45d4c528fb2fb
      446685a49a6d67aedd01cfbbd5e87b07f97a4d7b
      c1b5ed3c99bc7219a0061e4ece24ea42afd2889a
      22de9a1c8af7c25be5c108671ddc548ba323ed47
      4caf6b6fbbe6e8130741d793dffb560fd01d4ed5
      488b9601735ec1822433f82f633990063951fe08
      c366d60299f239e3df856ddffedb19e743e4be0c
      c5137ba8c597c7b5f90318df50e87b93a39a28dc
      f9e646242cf89f6fde1315046952252a2c429779
      f830fbc5fadd89d04be5edd2a5abf9b0d4bf0410
      1694b54903df784385abaa8452e1201e12344238
      17bcb44d2e29920c0c74430c2d9c703b36cfa0ad
      17bcb44d2e29920c0c74430c2d9c703b36cfa0ad
      7b5c241faec7488924e5935ae8b19f785846b5e4
      bf097ee7467895823fbd158a2a9543da3b5a5078
      
      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>
      dfefe448
    • Armin Le Grand's avatar
      eba4d5b2
    • Armin Le Grand's avatar
      SOSAW080: Added first bunch of basic changes to helpers · 6c14c27c
      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
      anymore.
      
      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
      1cb7d573d323e98a89761fe662c10c4a654fdec0
      24617494a0ef79f6e33dfcb02782a833a81c6434
      763f39094b6a48b529a6952d01468f8776c97679
      242b9e228a9a042c3a5bdd38b1ea6600144276d5
      242b9e228a9a042c3a5bdd38b1ea6600144276d5
      33a6f3f306b70c223171aef796dd5ee041ad14df
      6878b33f8b05738a44c0910e40a60a0f0d1d58ed
      0a636caf3cb36c2f9c6cd11aa22cb9bc435dc8f2
      8c4626274a5cc531dad27f27c0c45d4c528fb2fb
      446685a49a6d67aedd01cfbbd5e87b07f97a4d7b
      c1b5ed3c99bc7219a0061e4ece24ea42afd2889a
      22de9a1c8af7c25be5c108671ddc548ba323ed47
      4caf6b6fbbe6e8130741d793dffb560fd01d4ed5
      488b9601735ec1822433f82f633990063951fe08
      c366d60299f239e3df856ddffedb19e743e4be0c
      c5137ba8c597c7b5f90318df50e87b93a39a28dc
      f9e646242cf89f6fde1315046952252a2c429779
      f830fbc5fadd89d04be5edd2a5abf9b0d4bf0410
      1694b54903df784385abaa8452e1201e12344238
      17bcb44d2e29920c0c74430c2d9c703b36cfa0ad
      17bcb44d2e29920c0c74430c2d9c703b36cfa0ad
      7b5c241faec7488924e5935ae8b19f785846b5e4
      bf097ee7467895823fbd158a2a9543da3b5a5078
      6c14c27c
  3. 14 Ara, 2017 1 kayıt (commit)
    • Stephan Bergmann's avatar
      No need to keep these whitelisted functions decorated with SAL_CALL · 6f4f5677
      Stephan Bergmann yazdı
      The only effect SAL_CALL effectively has on LO-internal code is to change non-
      static member functions from __thiscall to __cdecl in MSVC (where all other
      functions are __cdecl by default, anyway).  (For 3rd-party code, it could be
      argued that SAL_CALL is useful on function declarations in the URE stable
      interface other than non-static member functions, too, in case 3rd-party code
      uses a compiler switch to change the default calling convention to something
      other than __cdecl.  But loplugin:salcall exempts the URE stable interface,
      anyway.)
      
      One could argue that SAL_CALL, even if today it effectively only affects non-
      static member functions in MSVC, could be extended in the future to affect more
      functions on more platforms.  However, the current code would already not
      support that.  For example, 3af50058
      "loplugin:salcall fix functions" changed FrameControl_createInstance in
      UnoControls/source/base/registercontrols.cxx to no longer be SAL_CALL, even
      though its address (in ctl_component_getFacrory, in the same file) is passed to
      cppuhelper::createSingleFactory as an argument of type
      cppu::ComponentInstantiation, which is a pointer to SAL_CALL function.
      
      Change-Id: I3acbf7314a3d7868ed70e35bb5c47bc11a0b7ff6
      Reviewed-on: https://gerrit.libreoffice.org/46436Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
      6f4f5677
  4. 26 Ock, 2017 1 kayıt (commit)
    • Stephan Bergmann's avatar
      Remove dynamic exception specifications · e57ca028
      Stephan Bergmann yazdı
      ...(for now, from LIBO_INTERNAL_CODE only).  See the mail thread starting at
      <https://lists.freedesktop.org/archives/libreoffice/2017-January/076665.html>
      "Dynamic Exception Specifications" for details.
      
      Most changes have been done automatically by the rewriting loplugin:dynexcspec
      (after enabling the rewriting mode, to be committed shortly).  The way it only
      removes exception specs from declarations if it also sees a definition, it
      identified some dead declarations-w/o-definitions (that have been removed
      manually) and some cases where a definition appeared in multiple include files
      (which have also been cleaned up manually).  There's also been cases of macro
      paramters (that were used to abstract over exception specs) that have become
      unused now (and been removed).
      
      Furthermore, some code needed to be cleaned up manually
      (avmedia/source/quicktime/ and connectivity/source/drivers/kab/), as I had no
      configurations available that would actually build that code.  Missing @throws
      documentation has not been applied in such manual clean-up.
      
      Change-Id: I3408691256c9b0c12bc5332de976743626e13960
      Reviewed-on: https://gerrit.libreoffice.org/33574Tested-by: 's avatarJenkins <ci@libreoffice.org>
      Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
      e57ca028
  5. 19 Ock, 2017 1 kayıt (commit)
  6. 19 Eki, 2016 1 kayıt (commit)
  7. 13 Eyl, 2016 1 kayıt (commit)
    • Stephan Bergmann's avatar
      loplugin:override: No more need for the "MSVC dtor override" workaround · 91dd2db1
      Stephan Bergmann yazdı
      The issue of 362d4f0c "Explicitly mark
      overriding destructors as 'virtual'" appears to no longer be a problem with
      MSVC 2013.
      
      (The little change in the rewriting code of compilerplugins/clang/override.cxx
      was necessary to prevent an endless loop when adding "override" to
      
        OOO_DLLPUBLIC_CHARTTOOLS    virtual ~CloseableLifeTimeManager();
      
      in chart2/source/inc/LifeTime.hxx, getting stuck in the leading
      OOO_DLLPUBLIC_CHARTTOOLS macro.  Can't remember what that
      isAtEndOfImmediateMacroExpansion thing was originally necessary for, anyway.)
      
      Change-Id: I534c634504d7216b9bb632c2775c04eaf27e927e
      91dd2db1
  8. 06 May, 2016 1 kayıt (commit)
  9. 22 Nis, 2016 1 kayıt (commit)
  10. 15 Ock, 2016 1 kayıt (commit)
  11. 15 Ara, 2015 1 kayıt (commit)
    • Michael Stahl's avatar
      fix missing BaseURL when loading embedded objects · b0fc09da
      Michael Stahl yazdı
      When the object is edited in the UI, the m_xClient is set to a
      SfxInPlaceClient and the DocumentBaseURL is retrieved from it.  But if
      the object is not edited, it will be loaded during export via the API
      and without a m_xClient; in this case the DocumentBaseURL must have been
      set previously to be available during import.
      
      There appears to be no way to get the URL of the document via the API
      while it is being imported; SfxBaseModel's m_sURL is unfortunately only
      initialized from SfxObjectShell::FinishedLoading().
      
      During ODF import, the SvXMLEmbeddedObjectHelper creates the
      embedded object, so let's make it pass in the parent's BaseURL.
      
      The "DefaultParentBaseURL" parameter already exists but was unused
      previously.
      
      Change-Id: I3d1ed29b3a2c0e77ec606a1d09f7bc07e7860733
      b0fc09da
  12. 26 Eki, 2015 1 kayıt (commit)
  13. 12 Eki, 2015 2 kayıt (commit)
  14. 01 Eki, 2015 1 kayıt (commit)
  15. 17 Eyl, 2015 1 kayıt (commit)
  16. 21 Tem, 2015 1 kayıt (commit)
  17. 22 Haz, 2015 1 kayıt (commit)
  18. 15 Nis, 2015 1 kayıt (commit)
    • Noel Grandin's avatar
      remove unnecessary use of void in function declarations · 71b80995
      Noel Grandin yazdı
      ie.
          void f(void);
      becomes
          void f();
      
      I used the following command to make the changes:
      
        git grep -lP '\(\s*void\s*\)' -- *.cxx \
          | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;'
      
      and ran it for both .cxx and .hxx files.
      
      Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
      71b80995
  19. 07 Şub, 2015 1 kayıt (commit)
  20. 26 Ock, 2015 1 kayıt (commit)
    • Noel Grandin's avatar
      new loplugin: change virtual methods to non-virtual · b44cbb26
      Noel Grandin yazdı
      Where we can prove that the virtual method is never overriden.
      
      In the case of pure-virtual methods, we remove the method entirely.
      Sometimes this leads to entire methods and fields being
      eliminated.
      
      Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
      b44cbb26
  21. 08 May, 2014 1 kayıt (commit)
  22. 02 May, 2014 1 kayıt (commit)
  23. 19 Nis, 2014 1 kayıt (commit)
  24. 03 Nis, 2014 1 kayıt (commit)
  25. 27 Mar, 2014 1 kayıt (commit)
  26. 26 Şub, 2014 2 kayıt (commit)
  27. 14 Kas, 2013 1 kayıt (commit)
  28. 07 Nis, 2013 1 kayıt (commit)
    • Luboš Luňák's avatar
      mass removal of rtl:: prefixes for O(U)String* · 1946794a
      Luboš Luňák yazdı
      Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk
      have kept them, in order not to break external API (the automatic using declaration
      is LO-internal).
      
      Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
      1946794a
  29. 07 Mar, 2013 1 kayıt (commit)
  30. 14 Kas, 2012 1 kayıt (commit)
  31. 02 Eki, 2012 1 kayıt (commit)
  32. 14 Tem, 2012 1 kayıt (commit)
  33. 29 Haz, 2012 1 kayıt (commit)
  34. 29 Mar, 2011 1 kayıt (commit)
  35. 28 Mar, 2011 1 kayıt (commit)
  36. 25 Kas, 2010 1 kayıt (commit)