summaryrefslogtreecommitdiff
path: root/editeng/source
AgeCommit message (Collapse)AuthorFilesLines
2015-03-30sc tiled editing: Setup the Calc's editeng for tiled editing.Jan Holesovsky1-1/+0
Change-Id: Ice6d9b66e72f6f88762a8c930b8b77dee7f64b40
2015-03-30editeng tiled rendering: fix selection overlay in ImpressMiklos Vajna1-1/+8
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 Bergmann3-59/+59
Change-Id: I4d4ae12d372b16a0b77298e8a31e12a05a28410d
2015-03-27convert GETATTRIBS_ constants to enum classNoel Grandin6-19/+19
Change-Id: I236caa9e2dc80455198b442e72e8d9df58f03adc
2015-03-26const_cast: convert some C-style casts and remove some redundant onesStephan Bergmann12-27/+27
Change-Id: I8682fee997d8dac254ca431f96172c9aa58c8c06
2015-03-26the valid flags in SvxBulletItem are unusedNoel Grandin1-29/+12
Change-Id: Ifd06179e42edc916002e8b0feaabd888852f1aa6
2015-03-26bullet justification in SvxBulletItem is unusedNoel Grandin1-6/+3
Change-Id: Ib303c89f84a95eed96cfccfc947c2b4d6919ab95
2015-03-26convert BS_ constants to SvxBulletStyle enum classNoel Grandin1-11/+13
Change-Id: I8d68394c29b7602b21f8d972552aa7226778d3ff
2015-03-26convert SvxNumRuleType to enum classNoel Grandin1-2/+2
Change-Id: I4707b2f0325d2e39c11bb99ef687100eb55639e1
2015-03-26convert NUM_ constants to enum clasNoel Grandin3-9/+9
Change-Id: Id41ea91aaf618c7f3f323698c09caa7c8df2290a
2015-03-25Tweak fixStephan Bergmann1-1/+1
Change-Id: I637acffabb9888750f397ff90a018bbce9493895
2015-03-25convert SPELLCMD_ constants to enum classNoel Grandin1-4/+4
Change-Id: I0f57a60a44ddac63a73e0bb35df59b3b25857d43
2015-03-25fix buildDavid Tardon1-1/+1
Change-Id: I5eb81a895740cfd917bc5d1474cbac1c9c8ff38c
2015-03-25convert EE_STAT constants to enum classNoel Grandin5-12/+12
Change-Id: I2967cdbfd0303844892150bbff7aa5ce1a57054f
2015-03-25convert EV_CNTRL constants to enum classNoel Grandin4-22/+22
Change-Id: I0ffc0e222c978ce7c734228f712e88422d3a615f
2015-03-25convert EE_CNTRL constants to enum classNoel Grandin10-63/+63
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 Grandin1-9/+9
Change-Id: I223c032e1637fecb8b7b0578a81762572973084b
2015-03-25convert VALID_ constants to enum classNoel Grandin1-7/+5
Change-Id: Id63d0e0dcf550b4d4f9cf3a2800aeb40f9f9bbce
2015-03-23sd: when tiled rendering, disable map mode earlyMiklos Vajna1-1/+1
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 Vajna1-0/+7
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 Vajna1-2/+22
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 Vajna1-0/+5
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 Vajna1-19/+24
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 Vajna1-1/+12
Change-Id: I5ea37875aa36cc30847643721b369bbe491101e8
2015-03-20tdf#88230: cleanup solar mutex yieldingPranav Kant1-22/+20
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 Johansson1-49/+59
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>
2015-03-19loplugin:constantfunction: editengNoel Grandin10-96/+2
Change-Id: I112bb65a3f470b3f179efd1cf9fa979175d5d350
2015-03-18create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin4-15/+15
of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
2015-03-16ImpEditView::DrawSelection: emit TEXT_SELECTION LOK callbackMiklos Vajna1-0/+26
With this, if one double-clicks on a word in an editeng text, we emit the correct selection rectangle list callback. No start/end rectangles yet, though. Change-Id: Ie05f6f4a44dc638076527f21a4b6a44e9bf63ecb
2015-03-16LOK: extract the callback typedef to a separate LibreOfficeKitTypes.h headerMiklos Vajna1-1/+1
With this, most LO code can avoid rebuilding when touching LibreOfficeKit.h, something that caused a mass-rebuild earlier. Change-Id: I4880fc7ad82cc535377b2b602897e3172ffa480b
2015-03-16editeng tiled rendering: emit callbacks necessary to have a blinking cursorMiklos Vajna2-0/+15
Change-Id: I031827cbcb14242ede549ce6f65f809795075db5
2015-03-16Add ImpEditView::libreOfficeKitCallback()Miklos Vajna4-0/+32
And various other methods, so that it's possible to invoke the callback in ImpEditView. This will be needed by the blinking editeng cursor. Change-Id: Ie1b6957e5c48f606e71d5808df3f632924d3a2ec
2015-03-15editeng: nAnz -> nCountMiklos Vajna1-6/+6
Change-Id: Ieda943586c95e3edcd277dfa5e8586cc8c27867a
2015-03-11utl::ConfigItem::Commit() should call ClearModified()Michael Stahl1-4/+2
Rename the virtual function, and add a new non-virtual Commit() to do that. Change-Id: I09421df781ba965d6ff638b46cd8214fb3a00022
2015-03-11V668 no sense in testing the result of new against nullCaolán McNamara2-23/+9
Change-Id: I4a33bd92fc8448638a4bfe1eab7e5041a4c5cc39
2015-03-11const_cast -> mutableZolnai Tamás1-2/+2
Change-Id: Idedcb4a9add451fbdf39cad1429669a12b8c11b9
2015-03-11Avoid casting SvxBrushItem:nShadingValueZolnai Tamás1-3/+3
Change-Id: Ida97950286bc69154d10cbc9b5ac699e7ad608ad
2015-03-11tdf#89867: editeng: fix crash on shutdown after changing AutoCorrect optionsMichael Stahl1-0/+2
Since commit 5bff4b016c4b44f4123e0e6a4fd4c0c4dc0cfa2d the SvxAutoCorrCfg::pAutoCorrect is cleared by one terminate() listener but then another terminate() listener calls Commit() on all modified utl::ConfigItem and these two have a Commit() that does not clear the modified flag so they are always modified. Sadly there's no non-virtual Commit() wrapper that calls ClearModified() on the base class... Change-Id: I9ae220d78bb109c7bf0fdc544754a0686b357115
2015-03-09V801: Decreased performanceCaolán McNamara2-6/+6
Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
2015-03-06Idle: Changed to new enum nameTobias Madl1-1/+1
Change-Id: Id3852abe9bc7bbe774331a7d691abd2a79ff59b4
2015-03-06Idle: Removed VCL_IDLE_PRIORITY_ prefix of enumTobias Madl1-1/+1
Change-Id: I12290bed7e4f298ab90393b8de6e2b6e7061e53f
2015-03-06idle includes and enum useJennifer Liebel2-1/+2
Change-Id: I8a280c54d81c7da74c9ab03ff3fc788e373ca4e4
2015-03-06Timer: Reversed some Idles to TimerTobias Madl4-9/+9
Change-Id: I213722cc98490430378014290cb09cca9e469bbb
2015-03-04V813: Decreased performanceCaolán McNamara2-24/+24
Change-Id: I8a7528366156b288dc422b09cff0d5a32cde3c91
2015-03-04V813: Decreased performanceCaolán McNamara2-9/+9
Change-Id: Ica2563d9e8da15e19eb38246d4de54a1fcb75655
2015-03-02convert PARAFLAG_ constants to enum classNoel Grandin6-26/+26
Change-Id: I71f5ea8e91fe0f50a471e33e4e2c02840a76b707
2015-03-02replace SVX_SEARCHCMD_ constants with enum classNoel Grandin1-4/+4
Change-Id: I675c488742219cc19624a21d1fc8e5033e7cbefa
2015-02-25remove NUMBERFORMAT_ constantsNoel Grandin1-2/+2
.. in favour of just using the underlying constants from css::util::NumberFormat Change-Id: I0c6b128b66c91b268f5ae300f9c17c7792df5e99
2015-02-24Typo: curently->currentlyJulien Nabet1-1/+1
Change-Id: I2362c2c7a1c637b02eeebcae8ee1e3c0fc2b2422
2015-02-23ImpEditEngine::UpdateViews: need to go via Invalidate() for tiled renderingMiklos Vajna5-1/+31
This makes typed characters appear as you type it (and not only after the editing of the shape text is finished) in Impress. Change-Id: Id47efe8223ddfdbad36f436366c9c8c8e0cb45f4