summaryrefslogtreecommitdiff
path: root/sw/inc
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: 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-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-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-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-10loplugin:staticmethodsStephan Bergmann
Change-Id: I00acce39f94653ef8e2465f15ba572b619a1c7fb
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-10Wizzard->WizzardCaolán McNamara
Change-Id: Ib97387fac7f519ce255ab68b08438a71d753382d
2015-09-09sw: replace boost::ptr_vector with std::vectorMichael Stahl
Change-Id: I6bef6fc863034b162459a46d332fa66a06916e7f
2015-09-09sw: Help vs 2015 with virtual base inheritanceDavid Ostrovsky
MSVC 14.0 was failing to compile IMark class an friends with: error C2280: 'SwModify &SwModify::operator =(const SwModify &)': attempting to reference a deleted function: [1]. After defining copy ctor and assignment operator in SwModify and derived classes as deleted the next failure was: error C2512: 'sw::mark::IMark::IMark': no appropriate default constructor available: [2]. Defining default ctor as default in IMark and derived classes seems to make all compilers happy. [1] http://paste.openstack.org/show/447854 [2] http://paste.openstack.org/show/447856 Change-Id: I2822e8ec4b98ca18d0a0128ed2ceeb38f347c5bf Reviewed-on: https://gerrit.libreoffice.org/18362 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-09-09tdf#92036: sw: fix idle spelling loopMichael Stahl
There is a sort of intentional infinite loop in the idle spell checking handler: while the user is typing a word, it should not be marked as invalid yet, in order not to annoy them with red underlines. So the word where the cursor is positioned always remained dirty, unless you happen to have a grammar checker enabled, which clears the paragraph's dirty flag from a separate thread. To avoid the infinite loop, add another spell checking state "PENDING" which is the same as dirty except that it should cancel the idle spell checking. The idle spell checking will run again when the user does the next editing operation. Notably this means if the user just moves the cursor out of the wrongly spelled word, it won't be underlined yet, but that appears a minor issue, and checking when the cursor leaves the word appears too hard to implement. Change-Id: Ifb3d6d17f94f9f1cfad82e70dfa79f1594c38647
2015-09-09sw: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
with the variadic variants. Change-Id: I1c423f98fba55c1ac5c3bd9a4e81ebd7eb6604b4 Reviewed-on: https://gerrit.libreoffice.org/18393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-09convert Link<> to typedNoel Grandin
Change-Id: I3127752785b77672d37f99bc9eaa881377dabe7c Reviewed-on: https://gerrit.libreoffice.org/18431 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-09convert Link<> to typedNoel Grandin
Change-Id: I2aeda615e39db5a3cd39e168db34425e2912be8b
2015-09-09convert Link<> to typedNoel Grandin
Change-Id: I184d836e944d6dcfd17233a7a83680f1c1bff9bf
2015-09-08loplugin:mergeclasses merge SwpHintsArray with SwpHintsNoel Grandin
and clean up the API a little, there were multiple versions of the same accessor with different names. Change-Id: I01e44a7a81c0d67cbb6135a6d196ee106cbf994a
2015-09-07sw: fix newly created document being modifiedMichael Stahl
After the document is created, an event is dispatched on the main loop that calls SfxPickList::Notify(), which modifies document properties. It tries to prevent setting the document to modified by calling SfxObjectShell::EnableSetModified(false), but Writer cunningly outwits it by simply having its own independent(?) modified flag that is set unconditionally in DocumentStatisticsManager::DocInfoChgd(). Let's assume that if the modified flag shouldn't be modified in SfxObjectShell, it shouldn't be modified in DocumentStatisticsManager. Somehow in 4.4 and 4.3 the same thing was going on, but it didn't result in a visibly enabled Save icon in the UI, but with 5.0 it does - cannot easily bisect why that changed due to tdf#91383. Change-Id: Id30fd831eb29910c9fb44ed3031bf8da23586bea
2015-09-07tdf#91383: sw: prevent style preview from actually creating stylesMichael Stahl
The dialog/sidebar should not actually create styles that don't exist yet, because it messes up Undo and the (unused) styles are then unnecessarily exported to documents. Due to Writer's ... unusual SwDocStyleSheet class this is a bit tricky. Add a new function GetItemSetForPreview() and use it from the style preview code. The implementation does not use FillPhysical so will temporarily create and then delete any non-existing styles. Skip page and numbering styles for now since they don't have a useful preview. (regression from ca95307638207db5d662059aa61594151a13e927) Change-Id: Id6ee30ea467fc24c991547a4c23a9ce14fdd86c7
2015-09-07sw: convert boost::ptr_vector to std::vector<std::unique_ptr>Michael Stahl
Change-Id: I341fb7c0712dff77ebfed41560a487f85c27c25a
2015-09-07sw: convert boost::ptr_vector to std::vector<std::unique_ptr>Michael Stahl
Change-Id: If8d9770717c21875b4472b0d94a1fa5a9d136085
2015-09-04sw: replace boost::ptr_map with std::mapMichael Stahl
Change-Id: I8cf906b7f3f9647a60b20a977ea11c8698438ec2
2015-09-04convert Link<> to typedNoel Grandin
Change-Id: I2136c3db2742afcb4722f69297276bea1e0119f4 Reviewed-on: https://gerrit.libreoffice.org/18306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-030xFF is reserved in [Height|Width]Percent as a special flagCaolán McNamara
no logic change here, just collect all the uses of 0xff, 0xFF, 255, 0xfe that are for this hackery together under SwFormatFrmSize::SYNCED Change-Id: I061da70962e410903aed94b62868dec1d61e54b9
2015-09-03tdf#39080 Hide white space between pages in 'print layout'Ashod Nakashian
Merged Hide Whitespace with Browser Mode and hooked the former with the UI. In Hide Whitespace mode the headers and footers are removed and page margins as well as between-page gaps are reduced to minimum. In single-page view the side margins are left as-is. In multi-page and book-view the sides are removed, however, they have twice the width of the top and bottom. Printing and PDF export disable this mode. The usable screen real-estate is greatly improved in this mode, which is controlled from the View menu. Change-Id: I2d0075ae9a76162c26c78e9eb23a71920cdfc522 Reviewed-on: https://gerrit.libreoffice.org/17281 Reviewed-by: Jean-Baptiste Faure <jbfaure@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-02SetXXX(bool) with a default value of false are just wrongNoel Grandin
Change-Id: I4888d0474199bb10ca81d1ad03118a150f574671 Reviewed-on: https://gerrit.libreoffice.org/18235 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-01sw: sort includes in editsh.hxxMichael Stahl
Change-Id: I74181ccf42e86bc6b65056199e6102bc05518a34
2015-09-01sw: replace boost::ptr_vector with std::vectorMichael Stahl
Change-Id: Iad91811a0e674b3541d51f3e94a9a5770bfda0a1
2015-08-31sw: convert boost::ptr_vector to std::vector<std::unique_ptr>Michael Stahl
Change-Id: I7fc96e3b7754bb3f4718f9142c75ee82aef0a22c
2015-08-31convert Link<> to typedNoel Grandin
and remove some dead code Change-Id: I6a42dbaea5053b4aa3c47b3f154410b05f32dfe4
2015-08-29o3tl/cow_wrapper: remove boost dependencyDaniel Robertson
Remove boost dependencies from ::o3tl::cow_wrapper, and add the necessary includes to files including checked_delete and noncopyable that do not already include the necessary files. Change-Id: Iedae4232002792724226829a5d5cf9d16ffd0686 Reviewed-on: https://gerrit.libreoffice.org/18125 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-28make PostUserEvent Link<> typedNoel Grandin
Change-Id: I13f10bda985d55d419a5bff481130a456ae2db8a
2015-08-26convert Link to TypedNoel Grandin
and make it statically allocated, no point in dynamically allocating such a small object Change-Id: If476bf5dc1e0d535383d16bc49c8d567776f16cd
2015-08-26Convert vcl Button Link<> click handler to typed Link<Button*,void>Noel Grandin
Change-Id: Ie80dfb003118d40741549c41ebcc7eda4819f05b
2015-08-22sw: translate thatMichael Stahl
Change-Id: If218ecd47435c261de14bd5f838c1e54f826a6ab
2015-08-21tdf#92612 Right-clicking after applying "paint buckets" leads to multiple UndoAshod Nakashian
In paint bucket mode the user can undo by right-clicking. Undoing, however, is only possible after the first paint op. After undoing is enabled, the user can undo indefinetely by righ-clicking. This is not consistent and can be confusing. This patch tracks the changes done after entering the paint bucket mode, and allows the user to undo them using right-clicking until they reach the first operation before entering this context. Because the user can undo/redo using other means, the patch takes it into account and will reset its tracking to accomodate this. Ultimately, the user is able to make any changes in paint bucket mode and undo them all by right-clicking, but no further than that. Change-Id: I93380fb60db83aee37a1d324218ba6ab1700a2e5 Reviewed-on: https://gerrit.libreoffice.org/16951 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2015-08-21AutoCorrect methods result in ambiguous overloadsNoel Grandin
When actually using the parameter defaults. So just remove the defaults. Change-Id: I02dbffcd87a3a07382cb10655d46e7d0312f4e51
2015-08-21allow differentiation between ww6 and ww8Caolán McNamara
Change-Id: Ia2181b3e9d01661aee521a763b0f87c65e6bad0c
2015-08-20tdf#93240: replace boost::ptr_vector with std::vector<std::unique_ptr>Michael Stahl
Change-Id: I38f9140e565ab2a4d5dc7ad0c1d52837a5b5b67a
2015-08-20tdf#92324 Fixed MailMerge printing with values from databaseVasily Melenchuk
Locking of ExpFields is required to lock current state of fields and database cursor: generation of print preview and some other operations can cause changing of current database record, especially if document contains nextrecord fields. Change-Id: If0466ef2489d96264380b5978ef7d7cf3f545c23 Reviewed-on: https://gerrit.libreoffice.org/17857 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-08-20loplugin: defaultparamsNoel Grandin
Change-Id: If105665a016183f08a2be13366e5068060b5954c
2015-08-20more config skipping stuff and a tester toolCaolán McNamara
Change-Id: I5e93a4c84b3a0940239213766eb24d21fb5fd649 Reviewed-on: https://gerrit.libreoffice.org/17863 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-08-17tdf#39080 Hide Whitespace UI option added to the View menu.Ashod Nakashian
Change-Id: I1f9ba9ef489159ca54db802393d958d7fd6ac8ff Reviewed-on: https://gerrit.libreoffice.org/17280 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>