New branch 'private/jmux/indexed-pagedescs' available with the following commits: commit 565b88041d7417160d2ae97a7b3906659cf790e7 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon May 12 18:55:58 2014 +0200
Fixup vector stuff (catchall) Fixup some occations of broken vector => sorted_vector stuff. There are still plenty of failures in the unit tests especially with ooxml import and export. Change-Id: Ia10a5672e882799ee0cb7f14382558f836bc1128 commit 4a0900813da02a58d262e0c5ba03fb639acddfca Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Tue May 13 17:39:54 2014 +0200 Convert SwPageDescs to a o3tl::sorted_vector Originally I planned to use a boost::container::flat_map, but there seem to be now way to directly access the indexed vector. All unit tests still work without this patch! I'm still missing some codepatchs, which assume all new PageDesc indizes are craeted at the back. Change-Id: Iaf8f69152c8f9c8f28afed919cad89e835912968 commit 9b5b3803ed9efe0aca0c4d7779c6ff7479385691 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon May 12 16:30:34 2014 +0200 Change MakePageDesc return type Almost everybody except SwDoc::ClearDoc just use the index once to get the SwPageDesc* pointer. This is just a cleanup patch to prepare the conversion from a stable vector index to a sorted vector, where indices change on insert and removal. Change-Id: I4b2491813530fd3efb2480e389912c410c221168 commit 1f7082aa5528801dd02132d75b6d9d5b3671cd18 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon May 12 16:00:02 2014 +0200 Implement SwPageDescs like o3tl::sorted_vector API This moves the SwPageDescs class to pagedesc.hxx and extends it from a vector class to a o3tl::sorted_vector compatible API. This also drops multiple implementations for the "find SwPageDesc by name algorithm". This should just be a cleanup patch and is a preparation for the change of SwPageDescs from vector to o3tl::sorted_vector. Change-Id: I08561c139d1af9bad6ca68be27466fac33fab384 commit 02776dedcb3dda21de919ba28aea3cdbade94742 Author: Jan-Marek Glogowski <glo...@fbihome.de> Date: Mon May 12 10:20:00 2014 +0200 Sorted vector special case: default first element A lot of code using vectors in LO relies on the fact, that the first entry in the vector contains the default values. Therefore this adds a boolean to the constructor, which leaves the first entry unsorted in the vector and special cases find and insert. All other functions are unaffected. Change-Id: I9603f47be4fb56d991f42066ce9f5ad0ab6ffdf8 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits