summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)Author
2015-04-21No more need for PartialWeakComponentImplHelper hereStephan Bergmann
...since 70626249cd247d9acdad417b8eaf252bae22c059 "API CHANGE a11y unpublishing and add/removeListener rename." Change-Id: I89d81326d97712abcac94c3436a13905954c55cf
2015-04-21Related tdf#88056: this guy's better off in presentation namespaceKatarina Behrens
no use for it outside Impress really ... Change-Id: I419ce252ec1b32a7ef225fefc02ec5dd87ba402a
2015-04-17loplugin:implicitboolconversion clean-upStephan Bergmann
Change-Id: I248a35364e7bc24ec2d62f70ac9a9e91f07ddf68
2015-04-17SvStream: WriteUChar -> WriteBoolStephan Bergmann
Change-Id: I89aa0e22c31d368ab36fe46917db6aacb11c7b14
2015-04-17Related tdf#88056: prep UNO stuff for ODF export/importKatarina Behrens
Change-Id: I13c95b3e96db96634a3247154d28eddb3ae6c80d
2015-04-17convert SCRIPTTYPE_ constants to scoped enumNoel Grandin
Change-Id: I5be3980ac865162d8d7626556ca47eca4b0ee433 Reviewed-on: https://gerrit.libreoffice.org/15344 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15convert SFX_ITEM constants to scoped enumNoel Grandin
Change-Id: Ief8c30c356ba947727c5ab70092042816a0db99e Reviewed-on: https://gerrit.libreoffice.org/15302 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
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
2015-04-14fix assert on saving fdo70092-1.odt to .docCaolán McNamara
Change-Id: Ib2e969ca54da16b29ec20338148ee51810cb3c47
2015-04-14editeng tiled editing: Don't overwrite bInSelection.Jan Holesovsky
Setting bInSelection in MouseButtonUp() feels wrong, and against of its other handling elsewhere. Also it breaks the selection handling in the tiled rendering case - on further redraw, selections may disappear. But it has been so since the initial check-in of the OOo code, so I have no idea what corner case I might break by deleting this, so let's guard the behavior by isTiledReneding() for now. Change-Id: I7f7b237f9f0f427e317266e05481bac439c3c8ad
2015-04-13don't assert on export of novell363086-2.docx to docCaolán McNamara
Change-Id: I40a78a9891753e0e3e1bc67a7e40f15ff756e833
2015-04-13loplugin:staticmethodsNoel Grandin
Change-Id: I332d3b3158b46cf130540c6e1479dd01cb457d03
2015-04-13Fix failing SdTiledRenderingTest::testSetTextSelection().Miklos Vajna
Change-Id: Ieaeaef249ea15de7cebc1cdb60b4d6130a6b5616
2015-04-13EditView::SetCursorLogicPosition: first deselect, then get the selectionMiklos Vajna
If you tap to nearly the end of an editeng paragraph, then drag the cursor using EditView::SetCursorLogicPosition(bPoint=true, bClearMark=true) to the end of the paragraph, finally hit enter, the text between the tap position and the end of the paragraph gets deleted. Fix this by calling GetEditSelection() after DeselectAll(), so that the original cursor position (before the drag started) never survives, which gives back the lost text, too. Change-Id: I777256765f1c8f1a7f22c549eaca19e575fdae21
2015-04-08Related tdf#88056: Add a warning when id service unknownJulien Nabet
Change-Id: I6e027027e78770e32aa484bb1598ebd8c2f291de
2015-04-08convert DIC_ERR_ constants to scoped enumNoel Grandin
Change-Id: I083f1b7f21b18c5067b01c82fa8fec467a3d0c50
2015-04-08convert SHADOW_ constants to enum classNoel Grandin
Change-Id: I1d3c144b2438776a31a246a2d0d4fe57b0caeaa3
2015-04-07Kill some whitespace found during debugging.Jan Holesovsky
Change-Id: I456aff9ab6d7469c88f21b0b2f6b922feddc9f50
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02editeng: if this should never happen, let's assert thatMichael Stahl
Change-Id: I803282c9f080013ebee33ce1109612fff509fd6e
2015-04-02tdf#85496: editeng: suppress all duplicate attributes during exportMichael Stahl
Since commit 0d57434180db6c8eda8c5b9b704f8a1c18b371df multiple 0-length attributes will be exported by the ODF filter as duplicate attributes. 846b56b6b99e334dfa44f1a24640aa3158509854 was apparently not the only bug that could cause this; unfortunately nobody is able to reproduce the editing operations that result in the newly reported issue, so just take the safe approach and check for duplicates, as is already done in the libreoffice-4-3 and libreoffice-4-2 branches. Change-Id: I1de10a99f6b84a0f4ea793ad55aaf6953b8307d5
2015-04-01convert BOX_LINE and BOXINFO_LINE to enum classNoel Grandin
since their usage is intertwined. Also introduce new o3tl utilities enumrange and enumarray to make working with scoped enums a little simpler. Change-Id: I2e1cc65dd7c638e59f17d96dfae504747cad6533
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I13a85e13b22559a9f1571ef5771b26d70a5cd4fb
2015-03-30sc tiled editing: Setup the Calc's editeng for tiled editing.Jan Holesovsky
Change-Id: Ice6d9b66e72f6f88762a8c930b8b77dee7f64b40
2015-03-30editeng tiled rendering: fix selection overlay in ImpressMiklos Vajna
The map mode is twips in Writer, that's why it worked there. For Impress, we need a conversion to always have twips output. Change-Id: I53c64b961180b6ff9b4ee75e3c5aa775416e7ae7
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: I4d4ae12d372b16a0b77298e8a31e12a05a28410d
2015-03-27convert GETATTRIBS_ constants to enum classNoel Grandin
Change-Id: I236caa9e2dc80455198b442e72e8d9df58f03adc
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann
Change-Id: I8682fee997d8dac254ca431f96172c9aa58c8c06
2015-03-26the valid flags in SvxBulletItem are unusedNoel Grandin
Change-Id: Ifd06179e42edc916002e8b0feaabd888852f1aa6
2015-03-26bullet justification in SvxBulletItem is unusedNoel Grandin
Change-Id: Ib303c89f84a95eed96cfccfc947c2b4d6919ab95
2015-03-26convert BS_ constants to SvxBulletStyle enum classNoel Grandin
Change-Id: I8d68394c29b7602b21f8d972552aa7226778d3ff
2015-03-26convert SvxNumRuleType to enum classNoel Grandin
Change-Id: I4707b2f0325d2e39c11bb99ef687100eb55639e1
2015-03-26convert NUM_ constants to enum clasNoel Grandin
Change-Id: Id41ea91aaf618c7f3f323698c09caa7c8df2290a
2015-03-25Tweak fixStephan Bergmann
Change-Id: I637acffabb9888750f397ff90a018bbce9493895
2015-03-25convert SPELLCMD_ constants to enum classNoel Grandin
Change-Id: I0f57a60a44ddac63a73e0bb35df59b3b25857d43
2015-03-25fix buildDavid Tardon
Change-Id: I5eb81a895740cfd917bc5d1474cbac1c9c8ff38c
2015-03-25convert EE_STAT constants to enum classNoel Grandin
Change-Id: I2967cdbfd0303844892150bbff7aa5ce1a57054f
2015-03-25convert EV_CNTRL constants to enum classNoel Grandin
Change-Id: I0ffc0e222c978ce7c734228f712e88422d3a615f
2015-03-25convert EE_CNTRL constants to enum classNoel Grandin
there were a couple of lines in SC and SW where the code was using a EV_CNTRL constant. I switched it to used the same-valued constant from EE_CNTRL Change-Id: I027183cc3b6e700bf365d48833e37eddc9b50f04
2015-03-25convert MouseTarget to enum classNoel Grandin
Change-Id: I223c032e1637fecb8b7b0578a81762572973084b
2015-03-25convert VALID_ constants to enum classNoel Grandin
Change-Id: Id63d0e0dcf550b4d4f9cf3a2800aeb40f9f9bbce
2015-03-23sd: when tiled rendering, disable map mode earlyMiklos Vajna
This brings sd in sync with sw, that does the same for some time already. With this, we no longer do a complete repaint 6 times after every postMouseEvent(). Change-Id: I38754f4bdbb977abbdbb0f32e1460ab2f6290f87
2015-03-23ImpEditView::ShowCursor: don't assume map mode is twipsMiklos Vajna
This makes the blinking cursor appear at the expected position in Impress when editing shape text. Change-Id: I71ad9d10f40f1ae290dc235ae26072955af84a2d
2015-03-23editeng tiled rendering: implement drag of start/end selection handleMiklos Vajna
With this, it's possible to drag the handle of not only the normal cursor, but also the start/end handle of a range selection in editeng text, e.g. Writer shape text. Change-Id: I5b9f548fb6365ecb499c68cef0d89f7f8ff3a11d
2015-03-23editeng tiled rendering: implement drag of the middle selection handleMiklos Vajna
With this, it's possible to drag the middle selection handle of editeng text (e.g. Writer shape text) and the cursor position will be updated accordingly. Change-Id: I2b03c8543efca477f2e377f3bb93732cd1775f81
2015-03-23editeng tiled rendering: allow resetting selection with a single clickMiklos Vajna
The problem was that when not tiled rendering, the selection is painted with the inverse color, and so killing the selection can be achieved with just painting it again -- using the inverse color again. For the tiled rendering case, use IsInSelectionMode() to see if we're killing the selection, and if so, just emit the empty selection. Change-Id: I045f5b100ae8d4f5802b16f68376aa21de08b994
2015-03-23ImpEditView::DrawSelection: emit TEXT_SELECTION_START/END callbacksMiklos Vajna
Change-Id: I5ea37875aa36cc30847643721b369bbe491101e8
2015-03-20tdf#88230: cleanup solar mutex yieldingPranav Kant
Use SolarMutexReleaser, instead. Change-Id: I276459c42b688813ea168d6fc80466a07a5ecba4 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
2015-03-19tdf#89437 Ordinal suffix should never be superscript in some languagesNiklas Johansson
Printing ordinal suffixes as superscript is just not done in Swedish and likely a few other languages but this change only cares for Swedish at the moment. Change-Id: Ib7600ceb0534793d900f13b2740e63c1f7f34ba9 Reviewed-on: https://gerrit.libreoffice.org/14913 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>