summaryrefslogtreecommitdiff
path: root/sw/source
AgeCommit message (Collapse)Author
2016-02-25sw classification: handle had watermark -> no watermark transitionMiklos Vajna
Previously we returned early if the new policy wanted no watermarks, but we still need to iterate over page styles to remove the old watermarks if there are ones. Change-Id: Iebab2534e7c923e47c76562982a188a32b81ed26
2016-02-24let SvxSearchItem use SearchOptions2Eike Rathke
And all those places that interface to SvxSearchItem. Change-Id: I08915824a596cd0f247a89f44e4684cd22b98082
2016-02-24sw classification: don't insert multiple watermark objects in headerMiklos Vajna
If the text is different, remove the old shape and then insert the new one. Otherwise just don't insert a new (identical) shape. Delete and insert is needed because the shape size depends on its textural content. Change-Id: I0c8faa0e3e69416ea0b89fa33155826bc2dc7a4f
2016-02-24sw classification: name watermark objects, so later it's possible to find themMiklos Vajna
Given that they are not fields, it's necessary to re-create them every time their textural content would change. Change-Id: I1276ef686b1b622dccaa8ac4996af8e4cb4de329
2016-02-24sw classification: put watermark shape to the header if policy wants soMiklos Vajna
Change-Id: Ib22b2066bb3f4059425b8c71b5fc737e160aef0b
2016-02-24sw classification: put the relevant field to the footer if policy wants soMiklos Vajna
Change-Id: I61c235660366ec1aba137097600605aae76c39a7
2016-02-24sw classification header: avoid inserting the field multiple timesMiklos Vajna
If there is a field that's the same we would append, don't do anything. The document property is already updated, and the rest is automatic: it's a field after all. Change-Id: I68713629a6917657ff491646c1b7781a9603e4f2
2016-02-24sw classification header: handle multiple page stylesMiklos Vajna
Iterating over all text nodes of the document would be quite slow, use the layout information instead. Change-Id: I124ef62e171b08af681a3ae910ffbdf839e34270
2016-02-24sw classification: put the relevant field to the header if policy wants soMiklos Vajna
Change-Id: I56d37a8c143dd5108bbc9f6444fe3e058378bf5e
2016-02-24convert DocPasswordRequestType to scoped enumNoel Grandin
Change-Id: I25d217ca2cf3e8cc4dfaccc6dc7d5453ffdc6cb6
2016-02-23loplugin:staticcallStephan Bergmann
Change-Id: If662a616839aef33340d13a42c998cea50759083
2016-02-23tdf#43514 Navigation tree: improve button nameRohan Kumar
I renamed the button "Content View" to "Content Navigation View" as proposed by Jay Philips in order to clear the confusion of an already implemented feature. Change-Id: I4784499f306de9d8859258ba741c23ac57ddb349 Reviewed-on: https://gerrit.libreoffice.org/22614 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2016-02-23tdf#97139: prevent loop while formatting small text linesOliver Specht
when text is inserted at the end of a line then text formatting starts some characters (platform and ENABLE_GRAPHITE dependent) before the insert position. In case of small lines this might even be the start of the line. To prevent going back to the previous line the cursor right margin flag needs to be reset. Change-Id: I73a62ce6c7707469fddeeffe0d7eec064c5989ea Reviewed-on: https://gerrit.libreoffice.org/22641 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-02-23sfx2 classification: add interface to set category nameMiklos Vajna
Change-Id: I289b46f5f57ef000de5f482b5c8ed7bcaa89ddab
2016-02-23loplugin:staticmethodsStephan Bergmann
after 17a6535b3b2e1f0246e7605c018eded37c4a583c "sw classification: add initial UNO command" Change-Id: I56645714bba37cf1ab5cd72f8c64553af3c3807f
2016-02-22sw classification: add initial UNO commandMiklos Vajna
It doesn't do anything useful yet, though. Change-Id: Ib6574f79996cfc7b09596f8aba21aaf106ee7c79
2016-02-22loplugin:commaoperator in sw/Noel Grandin
Change-Id: I9b00755707687e4c10c02bf49866571f2c44d8ba
2016-02-22sw: prefix members of RtfExportMiklos Vajna
Change-Id: I29fdefdbbd4ec48aee5631f6a88c8cd7bd759248
2016-02-22loplugin:write only fieldsNoel Grandin
Change-Id: I45895e9845a9037da207f001fece427452ed499f
2016-02-22sw: remove commented out code from uibase/utlui/content.cxxChris Sherlock
Change-Id: I2eec04963ee492e07d72e2e61aed5652ab5f3966
2016-02-21tdf#84938 replace FRMMGR_TYPE_ with enumackepenek
Change-Id: I899b57a485b83cd7c10ddc5192c92b4c87fe583a Reviewed-on: https://gerrit.libreoffice.org/22582 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-21tdf#93837 Convert RID_FM_TEXTATTRIBUTE_MENU to xmlMaxim Monastirsky
Change-Id: Ic37bfb9e25eba9b03b2c896c904823aec478355e
2016-02-21Convert RID_INSERT_FIELD_CTRL to xmlMaxim Monastirsky
Change-Id: I1bc72c3dfdb20fd538e297a70f5ccbd355d1dbcd
2016-02-19sw: tdf#63022 fix drag-and-drop of text in same paragraphMichael Stahl
SplitNode() inserts new node before the existing one, so pEndTextNd and aRg.aEnd point one node too far. Change-Id: I6cea44fafd9d2b47e77e76892a260c5a8c6849fc
2016-02-19tdf#89646 Implement "uno:LineToolbox" command into writer.Gulsah Kose
Change-Id: Ifd50d16a87f8b9197f80a3b1c9de1803adfd462f Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/22479 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-02-19new loplugin: find write-only fieldsNoel Grandin
Change-Id: I0f83939babacf92485420ee63f290a297d7cb717 Reviewed-on: https://gerrit.libreoffice.org/22498 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-19sw: loplugin:staticmethodsMiklos Vajna
Change-Id: I67504956436dd394446c723c1a3f164855697466
2016-02-19sw: loplugin:passstuffbyrefMiklos Vajna
Change-Id: Ie7eeb7aecba9d83a7437cf7aa0c92f0aa751a573
2016-02-19tdf#32364 - Add a "filter" to Insert > Field > Other > Cross reference tabakki95
-> Modified fldrefpage.ui using Glade to include filter GTK textbox. -> Added related code in fldref.cxx and fldref.hxx -> Modified UpdateSubType() code: Added a parameter and code to get the desired result. Change-Id: I3044c9d38b5f0a984ddcd0f27d075a86abaae7fe Reviewed-on: https://gerrit.libreoffice.org/22197 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-02-19editeng: remove never read mpLibreOfficeKitCallbackMiklos Vajna
As all callback invocations happen with SdrModel's callback pointer. Change-Id: I0111040c501b7927332f88cc4797b8ebab2bc57a
2016-02-19Remove nesting assignments inside the expression.Mark Hung
Change-Id: I88e9dc26f29b429c2d68634e306e0887565bccec Reviewed-on: https://gerrit.libreoffice.org/22494 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-18tdf#82012 - keep flip settings when compressing imageJustin Luth
Format - flip - Horizontal/Vertical setting was lost when compressing an image. Change-Id: Id39e7ce9a82174ac2248851107e398979fba56aa Reviewed-on: https://gerrit.libreoffice.org/22372 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2016-02-17Pass map by pointer (just like all the other SwAccessible... ctors do)Stephan Bergmann
Change-Id: Idc3daacd258b4033f81cee6b59dfa6a6c2e458da
2016-02-17gtk3: use native GtkPopover for calc formula prompt, etcCaolán McNamara
Change-Id: I9aa7e977228780b6273daa03be5e872342414437
2016-02-17use consistent #define checks for the Windows platformNoel Grandin
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-17tdf#97526 - in copy/paste ignore unwanted page break on first paragraphJuergen Funk
In copy/paste ignore the page break attribute from the first paragraph of the document (see also tdf#39400) Change-Id: I838c21c14647d4692673bd30df320e6704de1455 Reviewed-on: https://gerrit.libreoffice.org/22270 Reviewed-by: Oliver Specht <oliver.specht@cib.de> Tested-by: Oliver Specht <oliver.specht@cib.de>
2016-02-16tdf#97429: Fix crash on print selected areaXisco Fauli
Regression from 9eb61489ee03486a7147acdf923eaf5e3f355183 Use DelFlyInRange to iterate over nodes' range Change-Id: I219c7ec83eaa69990340d423dc34546131bb372c Reviewed-on: https://gerrit.libreoffice.org/22129 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Xisco Faulí <anistenis@gmail.com>
2016-02-16cid#1352648 uninitialized membersMiklos Vajna
Change-Id: I21faf2034c6253226637bfb65deb869d0c4eda07
2016-02-15tdf#56321 - .doc import image flipped statusJustin Luth
Although LO was exporting whether an image was flipped horizontally or vertically, it wasn't reading it in during an import. Change-Id: Ia85e3459d00f40d852bbcd3fcfe15e7b53d518ba Reviewed-on: https://gerrit.libreoffice.org/22344 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-02-15drop outdated fileDavid Tardon
Change-Id: I268f0de42e0567d74dd9b9b84b19d6afbf4d44df
2016-02-15SwView::WriteUserDataSequence: use comphelper::makePropertyValue()Miklos Vajna
Change-Id: Ibdb99942ee6c022abad74df93ebfb99c4ce6567f
2016-02-14tdf#92157: allow both dimensions of a graphic to be 0Mike Kaganski
Commit ca80f73 made it possible for one of dimensions to be zero. This commit goes further, allowing opening real-life documents with graphics having both width and height equal to 0. Thanks to libreoffice@arbruijn.dds.nl for debugging and initial patch! Change-Id: I96a13b776adfd9fe46fc2c7691eb7904400c20a1 Reviewed-on: https://gerrit.libreoffice.org/21287 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-13tdf#76817: fix missing heading styles assigned to outline levels in ooxmlMark Hung
1. Export pStyle because writerfilter regard a list as an outline only if associated pStyle is set to "Heading N". 2. Export English style name to ensure style names created by LO with non-English UI is always recognized. Change-Id: I88c590e4bae6cf30e78ebc1011023461eac4e883 Reviewed-on: https://gerrit.libreoffice.org/22086 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2016-02-13tdf#96392 disallow hanging punctuation if the frame is inside a table.Mark Hung
Change-Id: Ib9d8386b47f8fa7b8afabb94f94085c7fb2fc0bb Reviewed-on: https://gerrit.libreoffice.org/22158 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mark Hung <marklh9@gmail.com>
2016-02-12sw: fix a STL assertion in lcl_MoveAllLowerObjs()Michael Stahl
For OLE objects MoveObjectIfActive() ends up calling SwSortedObjs::Update() which removes and re-inserts objects, thus invalidating the pSortedObj iterator. (regression from 04783fd91832fa01a5b096f395edd7ad4f9c0f6b) Change-Id: I2628f1b4ecd1c20ebbc4e9dda4e4befc9fad4644
2016-02-12sw,sfx2: assert that embedded object supports XEmbedPersistMichael Stahl
Change-Id: Ibdeec746e9664f8bfe4e2af9afb8e5ec0142bd08
2016-02-12sw: unindent SwOLELRUCache::Load()Michael Stahl
Change-Id: If1a83fd4716b7a8ebfb09a7118e760fcca3a61b4
2016-02-12sw: don't crash if Office.Common/Cache/Writer/OLE_Objects set to 1Michael Stahl
(possibly regression from b717bda1f6484905aebc571c4538165a1fbfd2bb) Change-Id: I9113fe2e769cd6ba56bdccc629ac63241b238553
2016-02-13vcl: include vcl headers via triangular brackets instead of quotesChris Sherlock
Change-Id: I311f7db622ce341527fe12a92b516f800b602f92
2016-02-12sw: prefix members of ConstArcMiklos Vajna
Change-Id: Id717c768075abfc5652b60c7bb8b67dbd51548bf