summaryrefslogtreecommitdiff
path: root/sw
AgeCommit message (Collapse)Author
2015-05-20tdf#76941 and tdf#87539: docx export image greyscale, watermark, black&whiteJoren De Cuyper
Thanks to Miklos :) Change-Id: Ib6344ff654e39bf712d7071545573fb2ec525b63 Reviewed-on: https://gerrit.libreoffice.org/15733 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-20tdf#85911 docx: export comment initialsJoren De Cuyper
Change-Id: I1437c197312911a15a50715235d840b24117bfba Reviewed-on: https://gerrit.libreoffice.org/15742 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
2015-05-20SwEditWin::MouseMove: ignore visual area when tiled renderingMiklos Vajna
With this, it's possible to do mouse-button-down + move several times + mouse-button-up desktop-style selection of Writer text. Change-Id: If0711c5d397a8342b31c9b5448bf6223990529e4
2015-05-20tdf#90882 Writer: insert row/col before/afterPhilippe Jung
From the contextual menu, it is now possible to insert rows or cols before the current position. Number of rows/cols inserted is based on current selection. Change-Id: Ie1a718fbb1b8caf67716f9c8fad21f90d182ca79 Reviewed-on: https://gerrit.libreoffice.org/15773 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com>
2015-05-20LOKit mouse move handlerMihai Varga
Change-Id: I783bf782df66329ea4a1f78346aa2c36b9e4e425 Reviewed-on: https://gerrit.libreoffice.org/15799 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-20fiX OSX buildNoel Grandin
Change-Id: I5dafc2c8a76356a7bbb258ec9563085d8f2b05cc
2015-05-20fix OSX buildNoel Grandin
Change-Id: I5f2ce7043802963c5fa41f0710c176a270e2d23b
2015-05-20convert DEFAULTCONSTANT constant to scoped enumNoel Grandin
Change-Id: I5ebd77edfa29d6c6c7acea37e826ef1d625916c3
2015-05-20convert ANTIALIASING constants to scoped enumNoel Grandin
Change-Id: I175b8ea4e8bc01c3cdd3dd90506eba01b35e0085
2015-05-20convert DRAWMODE constants to scoped enumNoel Grandin
Change-Id: I36cbe8057d09226f8b302963bdd94dc5600b686f
2015-05-20convert TEXT_DRAW constants to scoped enumNoel Grandin
Change-Id: Ic0f7f8fa236bb478b3598ae3fd3c1b30ebbf1a01
2015-05-20convert SAL_LAYOUT flags to scoped enumNoel Grandin
Change-Id: I0aeea1f32136e43e90a1afb0ea84dbaff2b77587
2015-05-20sw: prefix members of SwCondCollPageMiklos Vajna
Change-Id: I8e290ab6264dff4d361e1dc0eee6b69a14512d03
2015-05-19Update Apache Bugzilla’s URLAdolfo Jayme Barrientos
Change-Id: I6ef4ae530b7fb4e615100803ae6e3972d9b4545f
2015-05-19SwPaM::Find: search in shapes anchored to the rangeMiklos Vajna
Change-Id: I028f95029deaebddcacf2730d429ad53abbc79fa
2015-05-19Add sw::DocumentDrawModelManager::Search()Miklos Vajna
Change-Id: Idcbbb9e049f0fbc5d6503b86fd506df9fb2ad3c5
2015-05-19Add SwView::EnterShapeDrawTextMode()Miklos Vajna
Change-Id: Ic19519ee727bd4b6c18d14dc3eb21b2eeb4395c9
2015-05-19tdf#67421: Prevent unloading objects due to cache fullMike Kaganski
When an object is added to OLE objects cache, when cache is full, old objects are tried to be unloaded. This triggers notifications that cause all loaded objects to become active, and to be added to cache (moved to front). As the new object already was added to front of the cache, later activity pushes it to back, until it is the last object in cache. The cache in this process is overfilled, so each next refresh tries to unload current last OLE object. So, in the end, this effectively unloads all cached OLE objects. This patch prevents this by first unloading last object, and then adding new object to front of cache. Also, removed needless creation of reference (makes at least 200 function calls for no reason). Change-Id: Ia903f4df101971df1b0b0148320fc8e45ac1e79c Reviewed-on: https://gerrit.libreoffice.org/15772 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-19SwPaM::Find: when no more result in the shape, unmark itMiklos Vajna
So that when the next result is found in the normal Writer text, only that will be selected. Having both shape selection + Writer text selection is confusing. Change-Id: I52d399e7224b472f76d39d93ffc394c2e3107a86
2015-05-19tdf#90905 fix for url encoding in internal urlsVasily Melenchuk
Do not try to use INetURLObject class for encoding of internal document links. External URLs are encoded as before. Change-Id: I90621819ed21c3f793171ac4ab3fc7d49ac69f56 Reviewed-on: https://gerrit.libreoffice.org/15625 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2015-05-19check for and handle missing base in mail merge (related: fdo#33266)Bjoern Michaelsen
Change-Id: I3e362a873c28026cbecf005c07def1295aa920e0
2015-05-19tdf#91261: DOCX import: snapGrid property of paragraphs are ignoredMark Hung
Fix the situation for OOXML import filter: a) While handling DocGrid type, SnapToChars was treated as None. Now it is implemented as described in the article: http://linpeifeng.blogspot.tw/2007/02/text-grid-enhancement.html Both LinesAndChars and SnapToChars will be translated to Writer grid type "lines and characters", and set SnapToGrid property to false or true accordingly. b) All the imported paragraphs snap to grid because SnapToGrid was appended to grabbag, now it allows SnapToGrid property in paragraph and paragraph styles to be imported properly. Change-Id: I446b4c64c0ed86960896bcd61a1006c9173a757a Reviewed-on: https://gerrit.libreoffice.org/15732 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-05-19LOKit callback for search not foundMihai Varga
Needed for signaling the user when no match was found for the searched input Change-Id: I171ee956d94d6fd83036ae34102c2f1bdd5661de Reviewed-on: https://gerrit.libreoffice.org/15798 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-19sw: prefix members of SwLayouterMiklos Vajna
2 members were prefixed, 2 not, it was confusing. Change-Id: I41940e5172ff1fcec8f90afc1b5389072d0869f4
2015-05-19Remove include stdio (part3)Julien Nabet
Change-Id: I0b44a33dc38b76130a7b230962de7ce86bd4574b Reviewed-on: https://gerrit.libreoffice.org/15793 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2015-05-18tdf#89794: sw: implement SwXFlatParagraph::getPropertySetInfo()Michael Stahl
(regression from d477ff4a81ecba8a77ead5ff1a33d3e3ceed622e) Change-Id: Ic49d2c14a27d2fb188a1ba5f9a7d8c0180b8de13
2015-05-18don't assert on export of ooo74510-1.odt to .docxCaolán McNamara
the math object is broken in the original .odt so we can't export its contents as it doesn't have any Change-Id: I8226cafed65b9e16a4aca6f48a4f711a55532975
2015-05-18don't fail on export of ooo96040-2.odt to docxCaolán McNamara
If we want to close a cell of a table which encloses another table, then close that enclosed table first. These are pretty pathalogical old-school tables. For now assume this can only occur when the row of the enclosed table is cleanly closed and assert if that isn't the case. Change-Id: I28e4d40072cb8d92be361716e82574075b15dd89
2015-05-18check for TableBox without StartNodeCaolán McNamara
Change-Id: I77b21c85716083029ab8873094621e0f8eceb48f
2015-05-18callcatcher: update unused codeCaolán McNamara
Change-Id: I43dd399368953c629916dad8104a296f837a6344
2015-05-18SwPaM::Find: if there is an active text edit, then search thereMiklos Vajna
Change-Id: Ic5d81aa1faca8f2190f87fc51eccdd7695d2c0ef
2015-05-18Include <cstdint> early to be sure to get SIZE_MAXTor Lillqvist
See a441d5fbe59436089e5f7b882a3482212c9ee208 for discussion. Change-Id: I456cb814ff032a06b0ae5fbc5717869f9845a1c4
2015-05-18tdf#89783: Allow more than 64k PageDescsKatarina Behrens
+ adjust related code using the functionality Change-Id: I6fa4ad04137643009ee39522c36d6c9e6f3d2502
2015-05-18SAL_WARN_UNUSED LinkStephan Bergmann
Change-Id: I646677611e46a7e33e977a5afeea9bf831b28733
2015-05-18loplugin:staticmethodsStephan Bergmann
Change-Id: I8ab9bc20ae293fc066239b81e80f4b62bafe9d35
2015-05-18-Werror,-Winconsistent-missing-overrideStephan Bergmann
Change-Id: Iabf4dda9f21d3b6cbcf74c0d51235c85d8f6e91a
2015-05-18refactor SwPagePreview to use RenderContextTomaž Vajngerl
Change-Id: I7e19aca13ebde8d18ecf4783e59d71f4ecabeed4
2015-05-18refactor SwAddressPreview to use RenderContextTomaž Vajngerl
Change-Id: I82d76c28a2326a41fe78a25d3efcea0196775881
2015-05-18setup fg/bg in Paint methodTomaž Vajngerl
Change-Id: I38c6018816254a92a144160d963fc90a48be739f
2015-05-18add fixme - to refactor settings laterTomaž Vajngerl
Change-Id: I224daf671c49bf4dd6250a486049c817247a6fcc
2015-05-18set background in paint method in evelope previewTomaž Vajngerl
Change-Id: Ie0c500c38aca9e47c98e0b8e7f4414e038ec0786
2015-05-18refactor optload / optpage to use RenderContextTomaž Vajngerl
Change-Id: I6b4897230963ecde335c5a04b1e34c8ca02d654c
2015-05-18cleanup SwDropCapsPageTomaž Vajngerl
Change-Id: Ied1aef1bd0b62b5d7af34d12f3165f7474dcf8ff
2015-05-18comphelper: the makePropertyValue<> template is useful outside swMiklos Vajna
Change-Id: Id6392d105bbc01bb38f5615621f4d852a94e5df9
2015-05-18tdf#86814 RTF import: fix sometimes lost bold styleMiklos Vajna
The problem was that commit 76c0d0abc89cd8948706083c2660b71a2dad670c (RTF import: adapt getProperties() to createStyleProperties(), 2014-09-07) only made the character style sprms/attributes a flat list, but not the paragraph style ones. Fixing that inconsistency avoids the tokenizer adding unwanted default sprms, which cause the bold sprms go away in the bugdoc. Change-Id: I86bd1b26af18cd968375c9b39be9c8e71d51271f
2015-05-18refactor how font, fg. and bg. are applied in widgets/controlsTomaž Vajngerl
- Move vcl::RenderContext to outdev. - Change some methods on vcl::Window to accept RenderContext as parameter. - Add ApplySettings to vcl::Window - This method is called before painting. Refactor existing classes that use InitSettings to have ApplySettings or mark the classes to be refactored later. - Add RenderSettings for adding defered settings to rendering. This is similar to ApplySettings but for more ad-hoc calls. Change-Id: I4ea58461f3b6b08ccfa3e0ddd1a4a3e04f8c4f45
2015-05-17loplugin:staticmethodsStephan Bergmann
Change-Id: I441cafcd641477626eb8de9d4b35212fd29af248
2015-05-17cppcheck: noExplicitConstructorCaolán McNamara
Change-Id: Ie7e0a036c223f9576be3798feb0df95131c1803a
2015-05-17tdf#90883 WRITER: Insert button with multiple rows/columns selectedPhilippe Jung
Compute the number of rows/columns to insert based on selected cells. Change-Id: I489bca715dcf31d191f9a875ac5d59a6140a14d7 Reviewed-on: https://gerrit.libreoffice.org/15741 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
2015-05-16tdf#90150 : Page numbering in the status bar which may cause confusionmassinissaHamidi
Changes : - The page number changes when a certain amount of the previous page is reached. This is done in SetFirstVisPage. - Since the page number (and pFirstVisPage) changes before the entire previous page disappear from VisArea, there is still a portion of it which is visible and must be added for paint. This is done with GetPrev. Change-Id: If7704011bc11efe88321bf448d61708097334d7d Reviewed-on: https://gerrit.libreoffice.org/15657 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>