summaryrefslogtreecommitdiff
path: root/editeng
AgeCommit message (Collapse)Author
2015-11-18editeng: wrong default item for EE_PARA_FORBIDDENRULESMichael Stahl
Change-Id: Idad6192fd1e3049913fac3dd906264fde6d1914e
2015-11-18editeng: wrong default item for EE_PARA_HANGINGPUNCTUATIONMichael Stahl
Change-Id: Ib23b5847625964c701bda23d7c58ad32c6024c9b
2015-11-18use unique_ptr for pImpl in editeng/Noel Grandin
Change-Id: I43ae9f706db15594b3a0c5cba41436d009588393
2015-11-17Add SvStream::ReadUtf16 (don't assume sal_Unicode is unsigned short)Stephan Bergmann
Change-Id: I74f34e3389582617fa83f8f4a3d6867cf87189e1
2015-11-17editeng: fix SvxTableField::operator==()Michael Stahl
This was erroneously returning false due to inverted dynamic_cast check, causing "svl/source/items/itempool.cxx:750: unequal items in Put(): no operator==?, with ID/pos 4048" (regression from fa91dd31f39a24329d288d4e1cda28db3a16af0d) Change-Id: I9c5b49150470fc78d58ecd2a2e990637627bd591
2015-11-15Fast PCH generator and optimized PCH filesAshod Nakashian
Ported update_pch.sh to Python with improved performance and features. The new script is invoked from the same update_pch.sh which calls it for each library in parallel, although it can be invoked directly. The ported script (update_pch) updates all PCH files in ~15 seconds where the old script took ~4500 seconds. In addition, the new script supports 3-tiered headers (system, module, and local) and is very flexible to support other improvement. It has a per-library optimal configuration settings that can be updated using another new scripts (update_pch_autotune.sh) which finds optimal per-PCH settings. PCH files have been generated using the new scripts which builds significantly faster (2-3x, depending on module and configuration) and the intermediate binaries are noticably smaller (by several GBs). The new script stamps each generated PCH file with the command that generated it to make it trivial for users to update them, and also adds the command to invoke another script (update_pch_bisect) that helps find missing headers or conflicting headers that may break the build after updating the PCH. Finally update_pch has built-in unit-tests for makefile parsing and other core functionality. Change-Id: Ib933b50e50374d7e2e7e3e95ba8799b0cc8a27fa Reviewed-on: https://gerrit.libreoffice.org/19965 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-13editeng lok: respect origin of map mode for TEXT_SELECTIONMiklos Vajna
With this, selections of Writer comment text show up at the correct position, not at the top left corner of the window. Change-Id: If865503d9a02a27730e382d65c42c706dd533a93
2015-11-13editeng lok: respect origin of map mode for INVALIDATE_VISIBLE_CURSORMiklos Vajna
Writer comments are separate widgets, but we want to have coordinates in absolutes twips, so give Writer a chance to inform us about the delta. For now only do this in case the map unit is twips, as Impress sets the origin already. Change-Id: Idf340944165e44b0888c00965d6be7798712ff76
2015-11-115th step to remove tools/rtti.hxxOliver Specht
tools/rtti.hxx removed completed the interface of some Sdr.* Items and removed pseudo items Change-Id: I0cdcd01494be35b97a27d5985aa908affa96048a Reviewed-on: https://gerrit.libreoffice.org/19837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I49cf179016a0690cb87bc12880da8b1824ac01cc
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: Iee1e64d22e799653bc58d6a72c57c55787e45d84
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I2b4cdb3809de0e9c69253d2cd05714e15fdc8913
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I5b3d8e0e20938d8e66045ea6282f37afe29474e2
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I7a49ed58cb20c365308db703c67e43c6687f35e4
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I562b1f7cd1e5e7f7fc03b8f54bd6117255703eb5
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I8fc80274e7eb33c81062f8514f63e6d0682d1b8f
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: I212c6b990da655ad7947154ca9e62981b049489e
2015-11-10editeng: boost::ptr_vector->std::vector<std::unique_ptr>Noel Grandin
Change-Id: Ifc44041290d44c5e4dcbd9a0882b99fe0f8f62a5
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
Change-Id: I9fe00eef7ddcd4a3c87e497a8d62f98e71a0d6d8
2015-11-09EditUndoRemoveChars::GetStr must return a referenceStephan Bergmann
...as ImpEditEngine::ImpRemoveChars (editeng/source/editeng/impedit2.cxx) calls pCurUndo->GetStr() += aStr; Regression introduced with d5e11f5ffb741aabe7e43be78ef764a1f3cafd8e "convert editeng/source/editeng/editundo.hxx from String to OUString." Change-Id: Iab3dd3b861bca715a90e89e3a63a6f298657367d
2015-11-09new loplugin: oncevarNoel Grandin
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f Reviewed-on: https://gerrit.libreoffice.org/19815 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
Change-Id: Icf08e69ba327225da816bd57648d4242dcbf3280
2015-11-05fix tdf#95488, crash in report wizardNoel Grandin
This reverts commit bb76b8f10697f3d5ca1f9a2f19902b043bd61cd7 "loplugin:mergeclasses" Change-Id: Ib65459ab45cd4cefa859ed75f9ddc4f070879b1d
2015-11-04editeng: Eliminate unecessary padding in classesDaniel Robertson
Edit the order of SvxLRSpaceItem and PaintFirstLineInfo members to remove unecessary padding due to data alignment. Change-Id: Icf2c92ef86a32384e51d1cb6f1a079b10995dfd5 Reviewed-on: https://gerrit.libreoffice.org/19763 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2015-11-03dynamic_cast fixed againOliver Specht
changes commit 5ae015fc74330ac4c24b67370c59518084f1d201 to check the SvxFieldItem Change-Id: I2c327a0a16fdd3e9341365554e10fb6fe04e1efe Reviewed-on: https://gerrit.libreoffice.org/19757 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-11-03Wrong dynamic_castJulien Nabet
EditCharAttrib doesn't inherit from or related to SvxFieldItem Moreover, we can see lines like this: const SvxFieldItem* pFieldItem = dynamic_cast<const SvxFieldItem*>(pAttr->GetItem()); Change-Id: I9f5710dc4a9a4e71d31538620a9ddc1dedee063f Reviewed-on: https://gerrit.libreoffice.org/19575 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-11-02tdf#94269: Replace "n" prefix for bool variables with "b"Benjamin Ni
Change-Id: I178545792c7354a362658ac7ef8b1d4cf0865797 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2015-10-31use uno::Reference::set method instead of assignmentNoel Grandin
Change-Id: I150f213ab033f5fc1b50abe4e1529292206c9feb Reviewed-on: https://gerrit.libreoffice.org/19689 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-30convert Sequence<XInterface> constructions to use initializer listsNoel Grandin
Change-Id: I66475190cc0f18465c56b94af7bc0d5a1ca81242
2015-10-27loplugin:unusedmethodsNoel Grandin
Change-Id: I161cd52606c11b6008f5d8b1d8ee391692f91861 Reviewed-on: https://gerrit.libreoffice.org/19231 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-27Replace boost::bind by lambdas in editeng tree.Mario J. Rugiero
Change-Id: I3e0383757fb50e9223b5b87558e880859de7f396 Reviewed-on: https://gerrit.libreoffice.org/19619 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-23get rid of erroneous 0x7ff language maskCaolán McNamara
Change-Id: I2b3501967fc0088e0bebf6c366e033c61b652921
2015-10-23more tdf#76964 fall back to primary language via getLanguageCaolán McNamara
Change-Id: I7718ff6f93f704e37e9a046cb07c497b2d533a2a
2015-10-23Resolves: tdf#76964 fall back to primary language via getLanguageCaolán McNamara
instead of bittwiddling which ends up trying to resolve the system language Change-Id: I545bd5e39f99003ddedf3c90031e8b818edc1de2
2015-10-21more removal of com::sun::star typedefsNoel Grandin
Change-Id: Ia73f1b4f1dcfa3f0936359e744afe76e02dcd2eb
2015-10-20loplugin:defaultparamsStephan Bergmann
Change-Id: Id5e399309144b99757e172e69e8e6dbc5fbff365
2015-10-19loplugin:defaultparamsStephan Bergmann
Change-Id: I62e0ec63ff09c200e0b621c8b042a976e8ce630e
2015-10-19convert DBG_ASSERTWARNING to SAL_WARN_IFNoel Grandin
I know the comment in debug.hxx said to use SAL_INFO, but SAL_WARN makes much more sense. Change-Id: I3d81f9db89ef8cebe1e4f2983941d69b4c7e6b7d
2015-10-19convert remaing DBG_WARNING to SAL_INFONoel Grandin
and drop the macro Change-Id: I452ca373d0c277166e94928c1bce78bf37e39d7c
2015-10-19WaE: loplugin:defaultparamsTor Lillqvist
Change-Id: I65f4cc10c4a3dc5ffc21b64d76dc32f1613a0062
2015-10-19fix cppcheck:nullPointerRedundantCheck commitNoel Grandin
fix my commit 2d64fcf4c8d3316ad9ae2232601678553dcad6a3 "cppcheck:nullPointerRedundantCheck" Change-Id: I0875005d938b43a91e15c564a23d70cb097548a9
2015-10-19cppcheck:nullPointerRedundantCheckNoel Grandin
Change-Id: I00a58a90f96e9eaf681239146213706e278ea5e1 Reviewed-on: https://gerrit.libreoffice.org/19421 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-16editeng tiled rendering: avoid selections callbacks in Paint()Miklos Vajna
Given that we emit selection callbacks on each logical operations (set selection, deselect all, etc) already, it's not necessary to emit callbacks in DrawSelection() when it's called from Paint(). Change-Id: I6781c71ee2f292de2a1c7d129fc49b514aca2be1
2015-10-15calling IsSet() before Call() on Link<> is unnecessaryNoel Grandin
the Call() already does a check Found with: git grep -A 1 -w 'IsSet()' | grep -B 1 '.Call(' | grep ':' | cut -d ':' -f 1 Change-Id: Ia7248f5d62640b75f705e539c3d1183e39c0d847
2015-10-13editeng: add EditView::GetSelectionRectangles()Miklos Vajna
This gives sd access to the selection rectangles as well (as opposed only to the document model positions of selections). Change-Id: Icb903e91f9e868573403b360bbe839705ddf2916
2015-10-13remove some useless commentsNoel Grandin
found with git grep '// /' Change-Id: I948cf9ae61bbbf2ec706ca5b0572c4f27c58c745
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I2ea407acd763ef2d7dae2d3b8f32525523ac8274
2015-10-12Replace "SAL_DELETED_FUNCTION" with "= delete" in LIBO_INTERNAL_ONLY codeStephan Bergmann
Change-Id: I328ac7a95ccc87732efae48b567a0556865928f3
2015-10-08editeng, sw, sc: use comphelper::string::join()Miklos Vajna
Change-Id: I9b0a32271a965bc4089720ccb61b26b67ceab7b2
2015-10-07loplugin:mergeclassesNoel Grandin
Change-Id: I8f5c2ae658f8784233db98f752b6f9fa53110195