summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2015-12-19Fix pivot cache debugging.Michael Meeks
Change-Id: I79facae1159f878092a47560bb1c4488842fcc0a Reviewed-on: https://gerrit.libreoffice.org/20811 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2015-12-18Use std::unique_ptr for SdrLayerAdmin data member.Kohei Yoshida
Change-Id: Ib49f52c94ae96b8bddec6718585d5d7d6e3d148d Reviewed-on: https://gerrit.libreoffice.org/20806 Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2015-12-18Formula Wizard: evaluating expressions always in matrix context is wrongEike Rathke
Change-Id: I276f7bbf2bd6fa7c67d8691634ad9d79e4a08b1c
2015-12-18sc: convert SequenceMapping O(n^2) algorithm to O(n log(n)) tdf#85548Noel Grandin
Change-Id: Ie0c819ac3f8b0c0b165e95ae5e58405a12c38472 Reviewed-on: https://gerrit.libreoffice.org/20753 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-12-18crashtesting: crash on converting ooo93489-1.ods to pdfCaolán McNamara
with --headless --convert-to pdf ooo93489-1.ods probable regression from... commit d4daad185e9583bedbb5a4eef1fd53e1f22e219b Author: Jan Holesovsky <kendy@collabora.com> Date: Mon Nov 30 10:28:43 2015 +0100 sc interpreter: Move the code that can create a ScFullMatrix. In that original code I see there was a check for "Data array is shorter than the row size of the reference. Truncate it to the data" which doesn't exist anymore. If I reintroduce that check here the crash is avoided. Change-Id: I7c7a5979d9c14c133b05e89ce3794e6b739ca61c Reviewed-on: https://gerrit.libreoffice.org/20794 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-12-18sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: Ia9d061d9f5fb07e07fd6253a6493a4e9b1f9c975
2015-12-18sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: I5abc1d6fae7186342e45a83253d56c2311ec5139
2015-12-18sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: Iaaf8e5f14691cde32058a78842b9c411f2b92d93
2015-12-18sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: Id56046d135e7d1acdd7e705b5f0c40f71427c121
2015-12-18sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: I32ab5eb985bd55d9194f3bff4739614cb6e93516
2015-12-18tdf#93837 Convert RID_POPUP_TAB to xmlMaxim Monastirsky
Change-Id: Ia05fb0a568c29d7990a8a837e1df953358acfa1f
2015-12-18Small corrections to Calc context menusMaxim Monastirsky
- Re-add clipboard functions to Auditing and Pivot table menus. (In the old implementation, clipboard functions were added to all context menu unconditionally at runtime. This led to odd things like the clipboard functions visible in print preview. Luckily now we can decide which menu should have them.) - Rename Auditing menu to "Detective", to match the menubar. - Rename "Edit Cell" menu name to "Cell Edit". - Rename the page style dialog command back to "Format Page" to match the menubar (Format->Page). Change-Id: I41b7aba8adacbf1ac995be846cd2af3edd52b1c0
2015-12-18related tdf#96398 pull out more NPAPI-related codeThorsten Behrens
Fixup windows PCH plus pulling out more code now unused due to NPAPI removal. Follow-up to 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4. Change-Id: I8ad42a28139ceeab0cae1f608d55beb28c159db3 Reviewed-on: https://gerrit.libreoffice.org/20783 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-17Clean unused defines after src->xml conversionMaxim Monastirsky
... in 1c035f1b0eb6f5e5fbb6c54bf2eea9a6c983eb8f Change-Id: I71271824b68ed21ac5db95b01fee61337fde189b Reviewed-on: https://gerrit.libreoffice.org/20736 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-17nConfigId is always 0Maxim Monastirsky
Change-Id: Ic314bc04a22ebf23fa7b06dca06e4d2afae096f9
2015-12-17[API CHANGE] Remove NPAPI-related UNO APIThorsten Behrens
Follow-up to 4c18af27bf95b332ee2006cfc0bbf469fb1a84d4, related to tdf#96398, removing more client code. The following published interfaces are removed: com::sun::star::mozilla::XPluginInstance com::sun::star::mozilla::XPluginInstanceNotifySink com::sun::star::mozilla::XPluginInstancePeer com::sun::star::mozilla::XPluginInstanceSyncPeer com::sun::star::mozilla::XPluginWindowPeer com::sun::star::plugin::PluginDescription com::sun::star::plugin::PluginException com::sun::star::plugin::PluginManager com::sun::star::plugin::PluginMode com::sun::star::plugin::PluginVariable com::sun::star::plugin::XPlugin com::sun::star::plugin::XPluginContext com::sun::star::plugin::XPluginManager Change-Id: I3818a23e0f46fd01bfe9be11b57f6a551c013441 Reviewed-on: https://gerrit.libreoffice.org/20780 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-12-17tdf#90598: filter options dialog controls expandableOliver Specht
listboxes are expandable horizontally and in non-dropdown mode also vertically Change-Id: I77fdc332ee79437c054e6a0d7f8e3c87e1ff3791 Reviewed-on: https://gerrit.libreoffice.org/20763 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-12-17handle varargs with first required and subsequent optional, tdf#71459 relatedEike Rathke
Change-Id: I56c66f516ba2a2e12cab4848c8c352315f27b3bb
2015-12-17add RAWSUBTRACT spreadsheet function, tdf#71459Eike Rathke
Change-Id: I2ae13771c85044b771e253a8189a30cb4aecb30f
2015-12-17Remove unused ToolPanel (aka TaskPane)Samuel Mehrbrodt
Superseded by the Sidebar Change-Id: I54970d71cd9d42de4f47b223e50dd9474b40632a Reviewed-on: https://gerrit.libreoffice.org/20724 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-12-17sw, sd, sc: clean up no longer necessary isTiledRendering() member functionsMiklos Vajna
Change-Id: I508a29fd261865771d780b1c241841d9abfeb6ed
2015-12-16assert that no ODF import happens without a BaseURLMichael Stahl
Change-Id: I4520a9d0350349cb083ed627a19264a3a97e090f
2015-12-16don't call getOutputString when we are not using the result, tdf#92802Markus Mohrhard
Change-Id: I5569eb618b5577714bd10c77ade198638394df8b Reviewed-on: https://gerrit.libreoffice.org/20725 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2015-12-16sfx2: clean up no longer needed SfxObjectShell::isTiledRendering()Miklos Vajna
Change-Id: Ia4fb0b489509364c641f8e1e695353bbdb036b59
2015-12-15Resolves: tdf#95440 SharedString are interned per document, re-internEike Rathke
... if literal strings are copied with formula expression tokens. Change-Id: I13526907bb6c2c605c6ed9584fa6e3f2b18623b8
2015-12-15filter: add BaseURL parameter to SvxMSDffManager::ImportOLE()Michael Stahl
... mainly for the (unlikely) case of ODF embedded objects in MSO binary files, which can be created by toggling the Tools->Options->Load/Save->Microsoft Office export settings. Change-Id: I270f1516b70b20ec0b60cfbd17c2c327c3d9efd0
2015-12-15sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: Idabd8facd21efb2da3e46185272d76bce2d0b44c
2015-12-15sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: I800f8d4facaa6dc8eb04b2544ce0e9035af66442
2015-12-15sc: replace boost::ptr_map with std::map<std::unique_ptr>Michael Stahl
Change-Id: I311d3a3e35ae4321e92e1fe2e0651b3b4899c0bd
2015-12-15Prefix members with 'm'Tor Lillqvist
Change-Id: I0a44c12fa8637a5a730743adcc6dfadeab91e72f
2015-12-15Bin silly 'STATIC DATA' commentsTor Lillqvist
Change-Id: I50e3772b7b479d2cf1eb644c7334d0f987874ccb
2015-12-14tdf#96447 : Show correct borders in border editor when multimarkedDennis Francis
Change-Id: Icfa10e1662f6ac00110a8d301734a72dcacc1780 Reviewed-on: https://gerrit.libreoffice.org/20672 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-12-14tdf#34094 : Allow column and row selections while creating a formulaDennis Francis
Change-Id: I516ca96c0743840fb03d8208f7236ca25027bc45 Reviewed-on: https://gerrit.libreoffice.org/20102 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-12-14tdf#93837 Convert some Calc context menus to xmlMaxim Monastirsky
TODO: - Clean the now unused defines/resources. - Several submenus are duplicated (in the menubar too). Makes sense to refactor them to separate popup menu controllers. Change-Id: I85505eda1c5fb707b1e6064007f27af7b31452bf Reviewed-on: https://gerrit.libreoffice.org/20704 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2015-12-12tdf#73006 : Put results in correct cells after Text to ColumnsDennis Francis
Change-Id: I7a1653424edd93b2de0597ce8a94aa5f4fa85622 Reviewed-on: https://gerrit.libreoffice.org/20258 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-12-12No need for a separate <vcl/lstbox.h>Tor Lillqvist
Change-Id: Ib8d0e3d240e693c678d575b4791f69ca760919ec
2015-12-12tdf#96339 fix bug in sort listNoel Grandin
this bug was caused by commit 2aacf6c2cd82322b953988ff30d3bc997ae76d7b "sc: boost::ptr_vector->std::vector" Since the code in question likes passing around a pointer to the element of the vector, convert to using std::vector<std::unique_ptr> Change-Id: I9e9676fe7c2dc32e23ba6708aaea1f16c1bf2ff8
2015-12-11separate ScRange::Move() and MoveSticky(), tdf#92779Eike Rathke
To selectively use the sticky mechanism, i.e. not in an actual move of a range during cut&paste or drag&drop. Actually currently only in ScTokenArray::AdjustReferenceOnShift() Change-Id: I223e5013e4b820efb4ecb9e8ce8aa04a8bc01e27
2015-12-11No need for a separate <vcl/graph.h>Tor Lillqvist
Change-Id: I962544005b5d408f7c044a02eefe09b87d8a81fe
2015-12-11silence -Werror=strict-overflowEike Rathke
error: assuming signed overflow does not occur when assuming that (X + c) < X is always false [-Werror=strict-overflow] if ( rAddress.Row() < Row() ) Change-Id: Ia643491657680fffcaacae4a474af479b9a07e35
2015-12-11No need for a separate <vcl/combobox.h>Tor Lillqvist
Change-Id: Iebf7b44e78fc28c20bdf0cbea84dbfd730b04016
2015-12-11unit test for sticky end col/row anchors, tdf#92779Eike Rathke
Change-Id: I78584e37e5944327db9cc5b6472a9e7ea972b37e
2015-12-11geez, how about actually checking the Move() error return? tdf#92779 relatedEike Rathke
Handle failure condition where we know how to treat it, i.e. when updating references, assert in all other places that so far silently ignored it and implicitly assumed the failing Move() truncating at bounds would be alright. In case we'll encounter an assertion we'll have to inspect those places and decide what to do about it. Noticed this error with a reference like B1048575 and inserting two rows above, it became B1048576 instead of B#REF! Change-Id: I00757f3ed2e305b591178047933ed60f1533317e
2015-12-11sc: Merge ScMultiTextWnd into ScTextWnd.Jan Holesovsky
Change-Id: I21ed0e37feec0e7c078c2e284b7f4169f0cff432
2015-12-11sc: Prefix members of ScInputBarGroup.Jan Holesovsky
Change-Id: I72e4fdacb326a966b2717e235a58de856189a6cf
2015-12-11sc interpreter: Force OpenCL off when testing the s/w interpreter.Jan Holesovsky
Change-Id: I2a459605021ee31b67b4bfbfd1f2e17ccbd22aeb
2015-12-11tdf#69977: uno::Sequence is expensiveNoel Grandin
when used as a mutable data-structure. Plain std::vector halves the time taken to display the chart dialog Create a class to represent the std::vector we are going to be passing around, and move some of the utility methods into it to make the code prettier. Also create an optimised append(&&) method for the common case of appending small temporaries. Change-Id: I7f5b43fb4a8a84e40e6a52fcb7e9f974091b4485
2015-12-10tdf#93263: Take function mask from ScPivotFieldKatarina Behrens
and not from ScDPLabelData (that's what old code used to do as well). Afaics ScDPLabelData.mnFuncMask member is never modified as the array gets populated in ScDPObject::FillLabelDataForDimension. UI has thus only its default value (PIVOT_FUNC_NONE) and so subtotals get reset on every change. ScPivotField however contains the right func mask, so take it from there. Change-Id: I862be121683aac079e788ce535f714ac8cdbcd0b Reviewed-on: https://gerrit.libreoffice.org/20041 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-12-10sticky end only if it already was a range on the same axis, tdf#92779Eike Rathke
Change-Id: I66f624e696a4a6e681733ab863cd57c342cc0bc1
2015-12-10Missing includeStephan Bergmann
Change-Id: I74a3cd6bf6cd780040b2a9eaefb2bde9acbfd6dd