summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-09-17convert Link<> to typedNoel Grandin
Change-Id: I87d4697fe032e3095406becdda026447edd1d68a
2015-09-16sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I4abd8fcbbe8ef439097eed7c2b20584450182cd5
2015-09-16sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I3bfb0933d5233b89f24773500f07fdc92d0011e9
2015-09-16sw: replace boost::ptr_vector with std::vectorMichael Stahl
Change-Id: I708bd090b28fd8b9f2642425fa55fcaa5f8346ec
2015-09-16sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I880526fdcce3be0f9e9149695812e048d95004e6
2015-09-16tdf#93139 Orca Screen Reader does not read bulletNiklas Johansson
To make Orca read bullet lists lets not suppress it from the accessible text. This has a downside on Windows when using NVDA which due to a hack in NVDA now reads the bullet twice. This hack is done because of this bug so I think we should fix it. Change-Id: Ibc11c1e0545f8cde4cd3d4a0d665ea47d645a61d Reviewed-on: https://gerrit.libreoffice.org/18398 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jacobo Aragunde Pérez <jaragunde@igalia.com>
2015-09-16unused .ui fileAndras Timar
Change-Id: I796be2353dc00c02746fb80fcc870dbddae397ff Reviewed-on: https://gerrit.libreoffice.org/18603 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-09-16sw: prefix members of SwDBTreeList_ImplMiklos Vajna
Change-Id: Id828ffe75943c7f6e194b310486d51a068eead1c
2015-09-16convert Link<> to typedNoel Grandin
Change-Id: I58b31530b4a29851abe9eccdf8f832b9d0348c2c
2015-09-15tdf#94237 tiled rendering: Use the entire document as the visual area.Jan Holesovsky
Many places were already adapted for the tiled rendering, and the conditions checking for the VisArea() were changed so that the checks are ignored when tiled rendering is active. Unfortunately there are still some places left, and they are causing that various areas are invalidated only partially. Let's sort it out for good, and report the entire document as the VisArea() when the tiled rendering is active, and if there are performance problems, let's profile that & act accordingly. Change-Id: I53f18915ed0aec898704dd1350a9534cfc3f001b
2015-09-15sw: use same condition in other cases in SwLayIdle::_DoIdleJob()Michael Stahl
The difference is VclInputFlags::APPEVENT, which is a Mac OSX specific mystery that presumably indicates user input. Change-Id: Icd0e3aa273e1a16e9bf0fb678e9e51dd37e159b7
2015-09-15tdf#93261: sw: fix idle auto-complete collection loop on big parasMichael Stahl
5 ms timers cause SwTextFrm::CollectAutoCmplWrds() to return early, and unlike the auto-spelling stuff there is nothing to store the already-checked range of the paragraph, so on the next iteration it will start from the beginning and time-out again. Prevent that by excluding TIMER events here, as is already done for the ONLINE_SPELLING case. Change-Id: Iac781f10ce0aef902fa921030e61b4cff65d0cb3
2015-09-15tdf#93261: sw: fix idle auto-complete collection loop on empty parasMichael Stahl
So the auto-spell-checking is hyper-optimized to add the words to the auto-complete list as well, and call SetAutoCompleteWordDirty(). But if you disable the auto-spell-checking, then a separate function SwTextFrm::CollectAutoCmplWrds() will be called, which is buggy because it only resets the dirty flag if at least one word of sufficient length was found in the paragraph, which is never the case for an empty paragraph. Change-Id: Idec64fc3c379301426a44e06a1114c474de36014
2015-09-15Related: tdf#93675 wrong font used in drawings in exported .docxCaolán McNamara
get the right font so stuff fits in the shapes like its supposed to Change-Id: Ic9777166395fcbf64572494034f06ef182073e19
2015-09-15sw: SWAP_IF_ -> SwSwapIfMiklos Vajna
It's a class, not a macro anymore. Change-Id: Ia8414d430b2889c834457d8bfd2aa338f2ed994a
2015-09-14Avoid getTokenCount in (SwMailMergeOutputTypePage) TypeHdl_Impl linkMatteo Casalin
Change-Id: If506716a45a869c40a0a449189b049c38215e25c
2015-09-14Avoid getTokenCount in SwAddressPreview::DrawText_ImplMatteo Casalin
Change-Id: I28c678d0d3db4cbea6c15141d1d0157447cd4db7
2015-09-14No need to copy OUStrings in SwMailMergeHelper::CheckMailAddressMatteo Casalin
Change-Id: I77ff719274991d901cf3869cd45ea416c772be2f
2015-09-14Simplify a Sequence constructionStephan Bergmann
Change-Id: Ifb945147a29e26a7445d0a106542d7723e068ba3
2015-09-14Set ContentTypeId::UNKNOWN to -1Stephan Bergmann
...which matches the original situation better, where ContentTypeId was sal_uInt16, and so the default -1 for /org.openoffice.Office/Writer/Navigator/RootType happened to match UNKNOWN being USHRT_MAX. Follow-up to 874cc6cb72e6e795f48bcee5d4fe5c595fb1f702 "Don't read out-of-range ContentTypeId from configuration." Change-Id: I6d136412982c3cfb06ddef3b6c1acd800d92ae05
2015-09-14Don't read out-of-range ContentTypeId from configurationStephan Bergmann
officecfg/registry/schema/org/openoffice/Office/Writer.xcs specifies -1 as default for /org.openoffice.Office/Writer/Navigator/RootType, which now triggers the assert in o3tl::enumarray::operator[] during JunitTest_toolkit_unoapi_1. Regression introduced with cb45d0d4272da54f90cb2b03d2cdbe1a4eebc75c "convert CONTENT_TYPE to scoped enum." (A better fix might be to replace ContentTypeId::UNKNOWN with -1; to be followed-up upon.) Change-Id: Id12c775cee8936ef2fd411da25558acabb5fa0c9
2015-09-14silence bogus warningCaolán McNamara
Change-Id: Ib8f4bcebfbd1f25f426a5d7954c3a55248c3c315
2015-09-14sw: prefix members of SwTransferableMiklos Vajna
Change-Id: I2011bc44a4afbf41ecaadbbb4fa82b7dac130e27
2015-09-14tdf#92586 xmloff: fix import of stretched background imageMiklos Vajna
The bug document has: <style:page-layout-properties ... style:repeat="no-repeat"> <style:background-image ... style:repeat="stretch"/> </style:page-layout-properties> When a stretched background image is set on a page style using the Writer UI, then these two style:repeat attributes always match, but not in the bugdoc. The later used to have priority, till commit 7d9bb549d498d6beed2c4050c402d09643febdfa (Related: #i124638# Second step of DrawingLayer FillAttributes..., 2014-06-02). Fix the problem by extending XMLBackgroundImageContext::EndElement(): if we know that the <style:page-layout-properties> sets the FillBitmapMode property, then don't blindly set BackGraphicLocation, but try to overwrite the exiting FillBitmapMode one. Change-Id: I64ab4363b20cc95003d35acd63ea421472b1c071
2015-09-14convert EDIT_MODE to scoped enumNoel Grandin
Change-Id: I04efbfa9abc1975cec72c8a1119868d0a97142a2 Reviewed-on: https://gerrit.libreoffice.org/18537 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-14convert CONTENT_TYPE to scoped enumNoel Grandin
Change-Id: I84b6d595f3997207385355f2bb3a9b64e6c9977b Reviewed-on: https://gerrit.libreoffice.org/18536 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-14convert RegionMode to scoped enumNoel Grandin
Change-Id: I07041ce4d6571ac384390443293543368f11b7d6 Reviewed-on: https://gerrit.libreoffice.org/18535 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-13boost->stdCaolán McNamara
Change-Id: I9b4f884c6313a53fea543ea6f93175205351ad14 Reviewed-on: https://gerrit.libreoffice.org/18517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-12Update many ListBox users to its sal_Int32 interfaceMatteo Casalin
Change-Id: I6469ac5e2d17406bee9bc434930e2471cb3bae9f
2015-09-11sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I8baa909f5e3ddb6b227337f3731e4d4b4ca183e5
2015-09-11sw: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I5316874cb8abe191da4fd385b281599d422a23ee
2015-09-11sw: add unit test for the redline frame duplication regressionMichael Stahl
Change-Id: I4b0f6199ebb8a9f462e53f3fdf8be871a267ba69
2015-09-11Revert "Fix single node CopyRange"Michael Stahl
This reverts commit 9099e21b89184bd4e39def497e483cac4a77ec5a. It causes the problem that frames anchored to the same node where redlines start or end get duplicated during Hide. Jan-Marek said that the original mail-merge related problem this change was fixing is now most likely fixed differently, and the test in testMultiPageAnchoredDraws() still passes. Change-Id: Ie84fed3f64be7696782bc557004eb18fccc5b64b
2015-09-11tdf#94045: negative margins in OOXML reenabledOliver Specht
OOXMLUniversalMeasureValue is an integer value and needs to be converted to a signed integer. unit test included Change-Id: I7fe3fdf4b8b12df55e9cea2a968b9537676687eb Reviewed-on: https://gerrit.libreoffice.org/18496 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2015-09-11tdf#93901: apply handling in style/edit dialog improvedOliver Specht
introduced SfxTabPage::ChangesApplied() to enable resetting values to their initial state while editing styles Change-Id: I60fd68d8464e12e795b0e0d2f2e53882a225c181 Reviewed-on: https://gerrit.libreoffice.org/18467 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-09-11sw: indentation fixesMiklos Vajna
Change-Id: I7cf97f06053275fa229bbd24a06f7b0104f024fb
2015-09-11convert Link<> to typedNoel Grandin
Change-Id: I85658fa35b9b85106a3b9c8ef303584cad6f39b0
2015-09-10loplugin:staticmethodsStephan Bergmann
Change-Id: I00acce39f94653ef8e2465f15ba572b619a1c7fb
2015-09-10coverity#1323757 Dereference before null checkCaolán McNamara
Change-Id: I5353b78b6961d28fb3f42e5f2073e9a83ac1037c
2015-09-10Related: tdf#93676 default to as-char inside captionsCaolán McNamara
This will (hopefull) improve round-tripping to doc[x] for new documents because word can only have as-char elements inside frames so we get a like-for-like conversion if the defaults are used. Change-Id: I3913b9b624dd5ba57ed07140bced8e3dca289cf5
2015-09-10split out useful code as standalone makeItemSetFromFormatAnchorCaolán McNamara
Change-Id: I385549b4841dfc715aa984bcc257d78c9f1c3ed4
2015-09-10GetCurFrameFormat->GetSelectedFrameFormatCaolán McNamara
Change-Id: I2f1eb4567b6e073991d95dbcecdc79b24010f2c1
2015-09-10GetSelectedFlyFrm+GetCurrFlyFrm -> GetSelectedOrCurrFlyFrmCaolán McNamara
Change-Id: I4348c4cf54dcd5504c52cf8ab550572257eef50b
2015-09-10bundle duplicate pattern into a GetCurrFlyFrm methodCaolán McNamara
Change-Id: Ib12b825ef9cc6e2b57e9320d435e3863d319cf0f
2015-09-10GetCurrFlyFrm just forwards to GetSelectedFlyFrmCaolán McNamara
Change-Id: Ia0b83a3aad71a72ae2135c5d7f6ddb6d9644b10b
2015-09-10this FindFlyFrm variant returns the Selected FlyFrmCaolán McNamara
the other one actively searches for the FlyFrm that matches the XEmbeddedObject argument Change-Id: I2f9271c01337b4a32d7b644f82d16d85c2dc5b51
2015-09-10convert Link<> to typedNoel Grandin
Change-Id: I603463d0486d4d0f21ebbdc6eca900db58bb090f
2015-09-10Wizzard->WizzardCaolán McNamara
Change-Id: Ib97387fac7f519ce255ab68b08438a71d753382d
2015-09-10sw: use std::unique_ptr<> in textMiklos Vajna
Change-Id: I0a4e0b5abbbbd58e7c0fc8235d88cf08a29a7c70
2015-09-09sw: replace boost::ptr_vector with std::vectorMichael Stahl
Change-Id: I6bef6fc863034b162459a46d332fa66a06916e7f