summaryrefslogtreecommitdiff
path: root/sw/inc/ring.hxx
AgeCommit message (Collapse)Author
2015-10-12Replace "SAL_FINAL" with "final" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: Ifa5ba21308e32df44571fa2941370f2f11179580
2015-06-26Remove workarounds for no longer supported GCC 4.6Stephan Bergmann
In bridges/source/cpp_uno/gcc3_macosx_x86-64/share.hxx, the #if also covered Clang, which actually needs these declarations (for now; the right fix will probably be to #include <cxxabi.h>). Change-Id: I1eebd59e2371f3498d740ab78244927358c4f23f
2015-02-16sw: work around buggy boost::intrusive::circular_list_algorithms::unlink()Michael Stahl
Boost is clearly following the C++ tradition of surprising omissions. Change-Id: I205ef17f87b176da938ebfa3e1a0748e94605daf
2015-02-16(related: tdf#80715) sw: fix Ring::MoveTo() not doing anything...Michael Stahl
... if the parameter is currently in the same list. The "boost::intrusive::circular_list_algorithms::transfer" has a precondition that the 2 parameters must not be in the same list. This causes an infinite loop in SwFindParaText::Find(), which is hiding the infinite loop that i'm trying to debug... While at it, remove some unnecessary complexity. Change-Id: Ib41f52c6d5c44ecc358c6170ee1e6e98729e1302
2015-02-16sw: RingContainer::merge(): assert that the Rings aren't already linkedMichael Stahl
The function would un-merge them in that case, which is just a little bit surprising. Change-Id: Ife1d572635b812d3ff5b9f93c1ddf1954e12aca5
2015-02-09Also fix other Ring ctorStephan Bergmann
...after 8b12e63b60530a2ad3769bc4983cc09bedd34c79 "Don't downcast from Ring<T> base class ctor/dtor to derived class T" Change-Id: I734841a78e272e985d784bd756412e1af90b2df5
2015-02-04Don't downcast from Ring<T> base class ctor/dtor to derived class TStephan Bergmann
...it is undefined behavior. Change-Id: I16b66d4c5b98f54bf1a1c692c96b65f5b2d8084c
2014-12-23use sw::Ring insteadBjoern Michaelsen
2014-12-08typoBjoern Michaelsen
Change-Id: I5f6b2136f4eb5cdb4825a3df3fc7d2015d8a3d85
2014-12-08trying to make this fit in gcc-4.6s little brainBjoern Michaelsen
Change-Id: I0c247a0f316b6700017ae0668b41497811924577
2014-12-07effectively expand init_header into member init listCaolán McNamara
this is all that init_header does anyway Change-Id: If1607ab25b43bd313d2d2f1da65c20fc87ae7951
2014-12-07trying to fix Windows breaker into the blindBjoern Michaelsen
- ring.hxx(246) : error C2440: ´<function-style-cast>´ : cannot convert from ´const SwViewShell *´ to ´sw::RingIterator<const value_type>´ - ring.hxx(250) : error C2665: ´sw::RingIterator<const value_type>::RingIterator´ : none of the 3 overloads could convert all the argument types - only tested on gcc-4.8 here Change-Id: I181b8a694834133ef31a4a89bf93c90e3ce63b54 Reviewed-on: https://gerrit.libreoffice.org/13334 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2014-12-05this seems to be working too and is less uglyBjoern Michaelsen
Change-Id: I335572eee5e898b55423f6fbabd519e287933fa1
2014-12-05also dont confuse clang on OSXBjoern Michaelsen
Change-Id: I4d80adbd284b7ed8193fa79e4d4abdec3ba60cb2
2014-12-05ugly preliminary hack for keeping ggc 4.6 happyBjoern Michaelsen
Change-Id: I41d605b5acbb54969d6b2cb68f06583983ee0d4b
2014-12-05add unique() functionBjoern Michaelsen
Change-Id: I9866a2725bc74e3afd90eb5c32587beb7f4f6e2a
2014-12-05move Ring<>::MoveRingTo to RingContainer<>::mergeBjoern Michaelsen
Change-Id: I864c9768ffd84c8cdee986cafd205ef2943c73e5
2014-12-05Rename GetNext/GetPrev to GetPrevInRing/GetNextInRing ...Bjoern Michaelsen
... and make them protected. We already have way too many GetNexts in Writer. For now heal this by providing wrappers in the derived classes. This should allow to remove these classes from exposing these one at a time. Change-Id: Iabe3a56e22a4e640e6887aa98decf4e021e627bc
2014-12-05more const correctnessBjoern Michaelsen
Change-Id: I786269210a7906c0d6b74e2cdb32100c8ae07666
2014-12-05stick to code conventions for new codeBjoern Michaelsen
Change-Id: I596733f76a16c01f85d1cae5f130e6ef59fe137a
2014-12-05work towards better constnessBjoern Michaelsen
Change-Id: Ideef73ecd6620f1d1dd283d830e41f567699a5fc
2014-12-04cid#1256668: uninit ptr fieldBjoern Michaelsen
Change-Id: I14f3bd9e3abd9562f47f21319da511df475b7fdd
2014-12-04cid#1256669: uninit ptr fieldBjoern Michaelsen
Change-Id: I6e3c5ac5281052b49c734b152ad4cd83021c6de9
2014-12-04cid#1256663: only allow comparing iterators from the same ringBjoern Michaelsen
Change-Id: I77eb186f0048a9bc335408bace96111e6cb2ca53
2014-12-04coverity#1256663: sw: fix Ring::equals()Michael Stahl
Change-Id: I199ad135fcb217866e8daa0797f4013f8acf4f6a
2014-12-04more docsBjoern Michaelsen
Change-Id: I4e97e8991269abff4a20ae7574ef4b86b799c2ce
2014-12-04reformatBjoern Michaelsen
Change-Id: I6ae55a0c1b4f57e4c39e9c0e4b89ccc216d1bd0a
2014-12-03update docs for C++11 iterationBjoern Michaelsen
Change-Id: Iab8b2e3d9e85d715de6ca973fd1c541c837bf6f3
2014-12-03move size() into the container tooBjoern Michaelsen
Change-Id: I22ee641e7d07fa7c0cae7a4b36ce61dbed62b31f
2014-12-03move container stuff out of sw::Ring<>Bjoern Michaelsen
Change-Id: Idf72c16318735d6b3ef7f421aceacc225a7697bf
2014-12-02rename numberOf() to STL-like size()Bjoern Michaelsen
Change-Id: I82332e91ed152e42b55ae921b3b61c5144253c39
2014-12-02ring docsBjoern Michaelsen
Change-Id: Ie26b98bb2e2946f326de6ff58677e33539db70b6
2014-12-02add rangeRing() for easier iterationBjoern Michaelsen
Change-Id: I0ef002c0c32c1435cbc62f954f98dc11c3f69945
2014-12-02Blind fix for C2491: definition of dllimport function not allowedTor Lillqvist
Change-Id: I81e89126a7721e50fb07a99e582de792cdc480dd
2014-12-02unconfuse clang about the nature of struct-class-duality of traitsBjoern Michaelsen
Change-Id: I030ab87d489cadce0b0e7a64744cef941268132d
2014-12-02const iteratorsBjoern Michaelsen
Change-Id: I129b51c2e736e04287141c0eae8c212c179a3475
2014-12-02move Ring to sw::RingBjoern Michaelsen
Change-Id: I3109185f747b821ee94aae5c58f86768ca30713a
2014-12-02use new typesafer implementationBjoern Michaelsen
Change-Id: I2228b2d421987c71e9738e32d138eccab02ea1db
2014-12-02make ring header onlyBjoern Michaelsen
Change-Id: If8a52d12cb145120be4477ee79f8cdc55329c36c
2014-12-02some more iterationBjoern Michaelsen
Change-Id: I5ca9b79b2992b8499beec04ebe86d82ae14b0ee2
2014-12-02more testing and initial iteratorsBjoern Michaelsen
2014-12-02private pointerBjoern Michaelsen
Change-Id: I2c5b2a5d99236f3d3887bba994acd1cf77ae83ba
2014-12-02use boostBjoern Michaelsen
Change-Id: Ic5ded259912eb4d6b367ea294dc3a372fcd44195
2014-12-02test intrusiveBjoern Michaelsen
2014-02-27Remove visual noise from swAlexander Wilms
Conflicts: sw/inc/unodraw.hxx sw/inc/unoframe.hxx sw/sdi/swriter.sdi sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unoparagraph.cxx sw/source/filter/ww8/rtfexportfilter.cxx sw/source/ui/inc/unotxvw.hxx sw/source/ui/lingu/hyp.cxx sw/source/ui/lingu/sdrhhcwrap.cxx sw/source/ui/uno/swdetect.hxx Change-Id: Ic0a3fb2392187c277c9b36915ffb10dcf0317908 Reviewed-on: https://gerrit.libreoffice.org/8322 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-11-05fixincludeguards.sh: swThomas Arnhold
Change-Id: I8e0889200d1a1c36e53022a74792728efd66c2fc
2012-11-30re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by Oliver-Rainer Wittmann sw34bf06: #i117783# - Writer's implementation of XPagePrintable - apply print settings to new printing routines http://svn.apache.org/viewvc?view=revision&revision=1172115 sw34bf06: #o12311627# use <rtl_random> methods to create unique ids for list styles and list ids http://svn.apache.org/viewvc?view=revision&revision=1172112 sw34bf06 #i114725#,#i115828# - method <SwDoc::ClearDoc()> - clear list structures completely http://svn.apache.org/viewvc?view=revision&revision=1172122 i#118572 - remove ui string and help content regarding usage of Java Mail in Writer's Mail Merge as Java Mail is not used. http://svn.apache.org/viewvc?view=revision&revision=1197035 Patches contributed by Mathias Bauer cws mba34issues01: #i117718#: provide filter name in case storage of medium does not allow to detect one http://svn.apache.org/viewvc?view=revision&revision=1172350 cws mba34issues01: #i117721#: directly provide parameters retrieved from SfxMedium http://svn.apache.org/viewvc?view=revision&revision=1172353 gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 cws mba34issues01: #i117723#: convert assertion into trace http://svn.apache.org/viewvc?view=revision&revision=1172355 cws mba34issues01: #i117699#: keep layout alive until swdoc dies http://svn.apache.org/viewvc?view=revision&revision=1172362 cws mba34issues01: #i117943#: missing color attributes in RTF clipboard http://svn.apache.org/viewvc?view=revision&revision=1172363 Patch contributed by Henning Brinkmann imported patch i#103878 http://svn.apache.org/viewvc?view=revision&revision=1172109 Patches contributed by Michael Stahl sw34bf06: #i117955#: WW8 export: disable storing of section breaks in endnotes http://svn.apache.org/viewvc?view=revision&revision=1172119 Patch contributed by imacat Fixed the Asian language work count. http://svn.apache.org/viewvc?view=revision&revision=1241345 Patch contributed by Pedro Giffuni i#20878 - Add comment with BZ issue for reference. http://svn.apache.org/viewvc?view=revision&revision=1244517 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 add writerperfect dependency.
2012-09-18Modifying comments to meet doxygen standardsAbdulmajeed Al-Abaulrazzaq
Change-Id: Ibc60c20241b70492aaebcebccb738c7e11fdbb41 Reviewed-on: https://gerrit.libreoffice.org/638 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2011-04-18Translations of German comments.Christoph Herzog
2010-11-14RTF: port last changes from CWSMiklos Vajna