summaryrefslogtreecommitdiff
path: root/sc
AgeCommit message (Collapse)Author
2015-06-26use ScComplexRefData::IsEntireCol() and IsEntireRow()Eike Rathke
Change-Id: I4287019f5492825f6d295c4e364405f0d7329eb7
2015-06-26tdf#44419 display entire column/row references as A:A/1:1Eike Rathke
... if both anchors of the other axis are absolute. Now that we can parse them as of commit 0c8778ce1df92ca3bc2a8dd2f64568fb257e9e39 (and follow-up 4091b4fbdce40262eba46ab94653287b1fd928e8). Change-Id: Ie67127fe2d7546e7e598ee1a4d89133c08222262
2015-06-26entire rows/cols have absolute col/row anchors, tdf#44419 follow-upEike Rathke
Change-Id: I2ae8c1c81734efd7c80558ba5337253985e8e8b7
2015-06-26tdf#44419 allow A:A and 1:1 references also in Calc A1 and ODF syntaxEike Rathke
They still get displayed as A1:A1048576 and A1:AMJ1 but are accepted as input. Change-Id: I6a44ce56767695af874e9f5122501a4c7925b0d6
2015-06-26loplugin:stringconstant: handle OUString+=OUString(literal)Stephan Bergmann
Change-Id: Ie4e62535848718ca66a1fa977b09891e91ee7421
2015-06-25tdf#44419 in second reference part stop number parsing at separatorEike Rathke
Change-Id: I70218bc41df0d56ab42d652aa7ac51733dc06f4b
2015-06-25a singleton must be fully parsed to be valid, tdf#44419 relatedEike Rathke
No trailing characters must be present in 1:1 or A:A full row/column references, e.g. 2:2,2 is not valid. The original cause is the lexical analyzer that accepted 2,2 as the second part after the range operator because ',' is also the group separator here, which needs further changes. Change-Id: Iff354469f7dcb4e0b6fa645c39cc1f8ebad4a6ea
2015-06-25bail out early if maTableColumnNames.empty()Eike Rathke
Change-Id: Icda700e80aa3a48ea77b2bc90d73c37b67b62ba8
2015-06-25TableRef: compile named expression into RPN once to populate informationEike Rathke
Change-Id: Id41ca0bd6adc8152c29be4d89e9361d8fb2ffe4e
2015-06-25TableRef: ScCompiler::IsTableRefColumn() lookup column name in ScDBDataEike Rathke
... as a fallback for named expressions during document import when cell content isn't available yet. Change-Id: I134ac2aaeb5f336703edbadfd6664d916d2c5885
2015-06-25TableRef: search table column names case insensitiveEike Rathke
Change-Id: I753a4511aa2c1e37b83094189902ce7031d68c04
2015-06-25TableRef: move getTables().applyTableColumns() to the correct positionEike Rathke
... in import sequence. Change-Id: Ib5601af281f0378d283ecd61fa71c41e6c1be254
2015-06-25loplugin:stringconstant: Flag more inefficienciesStephan Bergmann
Change-Id: Icdd850336caf998e62cdb5a90fc3683eddd04a3e
2015-06-25TableRef: add ScDBData::GetColumnNameOffset()Eike Rathke
Change-Id: Id80b9e8d1f54a8b795d0f4209bdf2f980f9a5344
2015-06-25TableRef: invalidate table column names on most sheet operationsEike Rathke
Kept only on insertions and deletions, but even that may not be useful as the names aren't updated at any time so even a mere cell change will bring this out of sync. But serves as a starting point for further implementation. Change-Id: Idfede4b03b9f554cd35f984502fce625c725853c
2015-06-24sc: suppress some [loplugin:staticmethods]Michael Stahl
Change-Id: Ib0cb2a34b87c661dc9343e5458fb933496a792dc
2015-06-24TableRef: import OOXML table column names to ScDBDataEike Rathke
Change-Id: I5fa32922fffcd027ddf1c61fe0b122fa2d320d98
2015-06-24TableRef: read <table><tableColumns><tableColumn> from OOXMLEike Rathke
Change-Id: I46c57a14fd94738e51e65c482c903c2debe868b8
2015-06-24TableRef: add ScDBData::maTableColumnNamesEike Rathke
Change-Id: Ifb95f76f518646e32d1df45a77f146ad3a255087
2015-06-24Get rid of comphelper::string::is*Ascii functionsStephan Bergmann
Change-Id: I99912112e5b009d7a143f9816d757cdf6ebb1783
2015-06-23Remove another inappropriate ellipsis from a command’s nameAdolfo Jayme Barrientos
Ellipsis should be used only when further user input is needed to complete a task. Change-Id: I768e4b000539dfcc0f8861bc970147bc64526653
2015-06-23TableRef: finalize database ranges before defined namesEike Rathke
Change-Id: I7ea0646c531c8aa2a5e33baa147e08628e65c17d
2015-06-23Revert "Typo: iff->if"Julien Nabet
This reverts commit cf92da3d6e1de14756efe3f1ee79f393a2f3787d. iff can mean "if and only if" so not a typo
2015-06-23Typo: iff->ifJulien Nabet
Change-Id: I3fc60856b5a56e71d70b55c89323be074bdec3b3
2015-06-23sc: add ScModelObj::getTextSelection().Henry Castro
Calc copy part of copy&paste Change-Id: Id9d2d05b491849fa30b3c91c6b22abe60355e876
2015-06-23in OOXML save references of named expressions with col,row=0,0 base positionEike Rathke
Saving relative references of named expressions to OOXML never worked, upon reload they pointed to a different position offset by the value of the original base position. This at least saves positive relative references correctly, while generating #REF! for negative offsets which is slightly better than having them point to a wrong location and silently calculate different values.. Also, this is a prerequisite for TableRef ThisRow references in named expressions to be saved correctly in A1 notation, which results in a relative row 0 value. Change-Id: I3734f910794ceab4b9224b214ad11c64d1d18e67
2015-06-23Drop duplicate #includesTakeshi Abe
Change-Id: I4db77ea1de42676d9d2df70db3f2e1665a3fd983 Reviewed-on: https://gerrit.libreoffice.org/16419 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-06-23TableRef: clone inner reference RPN token only if it existsEike Rathke
that author was stupid ... Change-Id: Ib06e88be52e70dee72ecb00590adce696eb347c0
2015-06-23rendercontext: Mass fix of using the wrong size.Jan Holesovsky
In the paints, we must use the size of the Window for the computations, not of the RenderContext - the RenderContext can be much bigger than the Window in the double-buffering case. Fixes for example the list boxes, and many others. Change-Id: I4c7607569f88b2d097587140858d0862e54b5ea6
2015-06-23LinkUpdateMode is a global settingStephan Bergmann
Change-Id: Ida1257337c6e0916f2228fe053d9c9f085183af6
2015-06-23Excel export: set correct grammar for named expressions symbolsEike Rathke
This was always wrong for OOXML export, function names may have been written without _xlfn. prefix or substitutions not been processed, but will be vital for TableRef transformation to A1 notation. Change-Id: Ieffd7d78e2c744d3c12228a0a815b5ce68b26c81
2015-06-22sc tiled rendering: Set some minimal size of the document.Jan Holesovsky
Let's default to 12x36 cells. Change-Id: Ic39739ec036a6e5867d31b7e05b6da12ce2e46d2
2015-06-22TableRef: inherit RelName in generated reference if named expressionEike Rathke
Change-Id: I67621e59c6e20e7f3b5101772b5d274d8c745ce9
2015-06-22Fix typosAndrea Gelmini
Change-Id: I60ed5eb658d50cbc7dc572facb5463b7527b4d9b Reviewed-on: https://gerrit.libreoffice.org/16408 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-06-21Fix typosAndrea Gelmini
Change-Id: I2297bf392a405f02be2450f4624f1c9fc0b512ce Reviewed-on: https://gerrit.libreoffice.org/16373 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-06-21TableRef: use ScTokenArray::HasReferences() instead of GetNextReferenceRPN()Eike Rathke
To catch also a simple =Table[[#This Row],[Column]] that is outside of table bounds located and therefor generates an error token instead of a reference in RPN. Change-Id: I28f5ca12b5f5998c623d0f38fcf39f037aabd317
2015-06-21TableRef: make ThisRow work in named expressionsEike Rathke
... including reference update as named expressions don't hold RPN. Change-Id: Ieea19e24f1dcf71d489ff0249bc7d3644e4f0d2b
2015-06-21unit test for adjustSingleRefInName() during column insertionEike Rathke
Change-Id: Ie406361c3a3497619f4faf3680f389f3bdf76a4b
2015-06-21adjustSingleRefInName() handle relative column and row independentlyEike Rathke
The absolute part needs to be adjusted when the referenced column or row is moved, even if the other part is relative. Change-Id: Ibd6c2f58b7e01ced4d2e521f29295c044d27924a
2015-06-21TableRef: clone inner reference token in copy-ctorEike Rathke
Change-Id: I4d195932bf81c105197de64cc592894e2492b801
2015-06-21TableRef: sheet reference always absolute and 3DEike Rathke
Change-Id: I17a2889c21efe9943b348049a1e9384df167435d
2015-06-21TableRef: generated reference's column relativity follows column specifierEike Rathke
Change-Id: Ie0781bf5ebeb4cec0e3bb96f8c471e469b1b223a
2015-06-21TableRef: column specifier is an absolute referenceEike Rathke
Change-Id: Ia7de5dc101a410aa1c25f36e64627fa3461ee772
2015-06-20tdf#83859: Make arrow keys work again in named ranges dropdownKatarina Behrens
Regression from ed6b8c9f8d1b93230 which slightly changed the logic and set bHandled to true by default, thus effectively throwing all key press events except for Enter and Esc away. Set key press events (minus Enter & Esc) to bHandled = false and let them fall through to be dealt with in the base class (ComboBox) Change-Id: Ie1d857725a7de1d0bed1fd59df7eef5390ae5f3d
2015-06-19rendercontext: Fix crash with double-buffering in the Styles combo box.Jan Holesovsky
Decouple the actual window from rendercontext in UserDrawEvent. Change-Id: Ic440c4e7f59fcffb7800c578146e8eb528cbb7b4
2015-06-19add unit test for ocRangeOp and ScComplexRefData::Extend()Eike Rathke
Change-Id: Iae97c409a84f47d591ef8adf8e42fb6f52c104e2
2015-06-19Revert "tdf#90290 reduce some copy&paste code in ucalc."Eike Rathke
This reverts commit 26dacbb13d7d40b5ed2bf934dbf94b35919d0562. Change-Id: Ic8ebd787cf920041540b35ffd75e3f136872274d Reviewed-on: https://gerrit.libreoffice.org/16374 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-06-19rhbz#1233420 handle inexistent cond. formatDavid Tardon
Change-Id: I3fbbd0f3b42a3be1c2a9c54eb8f35dd18f550b16
2015-06-19tdf#90290 reduce some copy&paste code in ucalc.ritztro
Change-Id: Iea8879b2ef9e4d23ce5ea0be364d1359f174e5c4 Reviewed-on: https://gerrit.libreoffice.org/15241 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2015-06-18add test case document to unit tests, tdf#69552Eike Rathke
Change-Id: I73da1e00dd2b19088fbbe7e999611835f2ed4882