summaryrefslogtreecommitdiff
path: root/sw/source/uibase/shells
AgeCommit message (Collapse)AuthorFilesLines
2016-09-27tdf#87914 sw: add an initial .uno:SmallCaps commandMiklos Vajna1-0/+37
- handle it in SwTextShell (for normal Writer text) - simple icon in the galaxy theme Change-Id: Ib8f11dbca28b19a2fc0411c92d9f0b4b052277bb
2016-09-26convert eNBOType constants to scoped enumNoel Grandin2-6/+6
and remove unused constants, which means we can remove the GraphicBulletsTypeMgr and MixBulletsTypeMgr classes Change-Id: I395691b48987543355379708e2c60d0de438d72c
2016-09-13Revert "tdf#73797 Enable object rotation (.uno:ToggleObjectRotateMode) for ↵jan iversen2-10/+10
writer" This reverts commit 594182ce7c2551dd1d13a014cfdfd96a057e63de. Change-Id: Idf2580e84d4190ba0aaba1a3394a4318043da458 Reviewed-on: https://gerrit.libreoffice.org/28858 Reviewed-by: jan iversen <jani@documentfoundation.org> Tested-by: jan iversen <jani@documentfoundation.org>
2016-09-10tdf#73797 Enable object rotation (.uno:ToggleObjectRotateMode) for writerGulsah Kose2-10/+10
Change-Id: Ida868d0fc077d6697a0c3754b1add6a48c5d426c Signed-off-by: Gulsah Kose <gulsah.1004@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/27995 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
2016-09-09loplugin:constantparam in svxNoel Grandin1-1/+1
Change-Id: Id08850b90a0e286ff837dd6b0c1691fa7dc793fa Reviewed-on: https://gerrit.libreoffice.org/28746 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-09-08loplugin:constantparam in swNoel Grandin1-2/+2
Change-Id: Ibae4cac28e6ff52298c804519f683017729c07a5
2016-09-08loplugin:constantparam in swNoel Grandin7-10/+10
Change-Id: Ic49d1c3c7b57fb213964ddc21b0f774c762aad94
2016-09-08convert nsRedlineMode_t to typed_flagsNoel Grandin1-2/+2
including fixing a bug in SwXMLExport::exportDoc where it was ORing with a constant from a different type: nsRedlineType_t::REDLINE_INSERT Change-Id: I2bb154c9a35d106e64fd1a8b6e928d0384c9fafe
2016-08-31Get rid of a pointless indirect function pointer variableNoel Grandin1-2/+2
Change-Id: I913a6be200b78790f465d2672d6da22a3b8d2b73
2016-08-31Get rid of a pointless indirect function pointer variableNoel Grandin3-7/+7
Change-Id: I81055c6973247e226dc9dc3fda072aef94fa8966
2016-08-31Get rid of a pointless indirect function pointer variableNoel Grandin1-2/+2
Change-Id: I542a5fb00a5c972230c072d72a745fddb095f708
2016-08-30Let OUStringLiteral1 take its arg as ctor arg, not template argStephan Bergmann2-6/+6
...which makes it more flexible, can now also be used on non-const arguments. The drawback of the argument no longer being a compile-time constant is remedied by making the ctor constexpr. Change-Id: Ia4903a2cc86791fece92eac0cb8406b6659dd19d
2016-08-29sw: use SwModule::GetRedlineAuthor() in SwTextShell::ExecField()Miklos Vajna1-4/+3
This avoids some code duplication, and also means that the redline author set by SwDocShell::SetView() affects the inserted Writer comments as well, while those were 'Unknown Author' in the LOK case. Change-Id: Ib51183302ee6904fdf69fb16f27ecfe6df39e6cb
2016-08-29Adapt loplugin:stringconstant to improved OUStringLiteral1Stephan Bergmann2-11/+8
Change-Id: Ibc5128df8bcf8cb5f2f09551c0de6dfdb46bdee0 Reviewed-on: https://gerrit.libreoffice.org/28447 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-08-29Switch isTextBox to use the format pointersJan-Marek Glogowski1-2/+2
This replaces all possible occurences of the text box format maps, which just want to know, if a SwFrameFormat is part of a text box to use the direct lookup via the isTextBox, which is now a cheap call. Change-Id: I3b4e2301f816aead1b719cd70a8ef118e685ccfc
2016-08-25convert SvxAnchorIds to scoped enumNoel Grandin1-2/+2
Change-Id: I4375fa07eb6ac81b21b904e965e4c2f9600ca99a
2016-08-25convert DataAccessDescriptorProperty to scoped enumNoel Grandin1-4/+4
Change-Id: Ifb8fb1d28464f0638ec1485d77ad333b1acc667c
2016-08-24convert SdrPathSmoothKind to scoped enumNoel Grandin1-8/+8
Change-Id: I9b4a4226322c4d4eb2ab220ecf0b0efb068eea8e
2016-08-24convert SdrPathSegmentKind to scoped enumNoel Grandin1-4/+4
Change-Id: I1f5da7fb90b0100610677279e93b6e02347c120f
2016-08-24convert SdrObjClosedKind to scoped enumNoel Grandin1-3/+3
Change-Id: Icb3a6ce66687ea66f72df956dc695e0a4147365e
2016-08-23convert SdrHorAlign to scoped enumNoel Grandin1-6/+6
Change-Id: Ibddc5458c363b4174186c73bd0b3d9501933171a
2016-08-23convert SdrVertAlign to scoped enumNoel Grandin1-6/+6
Change-Id: Ie517acfea6b8e34def35e0362a8e9e387de588c4
2016-08-23convert SdrIterMode to scoped enumNoel Grandin1-1/+1
Change-Id: Iaa4631039e6b96627d8e547f21136f107e157d8a
2016-08-19convert SdrCreateCmd to scoped enumNoel Grandin1-1/+1
Change-Id: I8772032dee25c790314384750b8c7277c4879318
2016-08-19convert SdrDragMode to scoped enumNoel Grandin3-5/+5
Change-Id: I244132d2240a46f42f14d453e5987968d274e907
2016-08-17convert SvxEscapement to scoped enumNoel Grandin3-29/+30
and fix a potential bug with footnotes and superscripts in writer in ndtxt.cxx, where it was passing bad args to the SvxEscapementItem constructor Change-Id: I0d2de34c056e7824f3b456a86d502e10ac93a1c1
2016-08-17convert SvxTabAdjust to scoped enumNoel Grandin1-1/+1
Change-Id: I29a33b8ea5daaa4b9059d024ffa4a99ca924f7ef
2016-08-17convert SvxLineSpace to scoped enumNoel Grandin1-2/+2
and rename to be more explicit Change-Id: Id06e6b68ef30e1d0d0daf19c37a390060e8bcb01
2016-08-17convert SvxInterLineSpaceRule to scoped enumNoel Grandin1-2/+2
and rename it to be more explicit Change-Id: I3f8bd7928495dba1e94b785cdda06d9819ee66bf
2016-08-17convert SvxSpecialLineSpace to scoped enumNoel Grandin2-6/+6
And move it inside editeng, since it's not really used anywhere else. And fix a bunch of places that were incorrectly calling the constructor with the enum. Change-Id: I74e8ab8bcf315eb5ad0720e74d04a450f0a3e5c9
2016-08-17convert SvxBreak to scoped enumNoel Grandin2-2/+2
Change-Id: If8b79ed617e5662550bd73bd1506d047217f2313
2016-08-15sw lok: limit undo/redo in SwDrawTextShellMiklos Vajna1-2/+9
So that one view can only undo/redo its own changes. This is used when editing shape text, as that doesn't use sw::UndoManager::GetLastUndoInfo(). Change-Id: Ibc3d6fcbd18398569190f06ed9b7399c54bb7d41
2016-08-12tdf#91832: ensure GETLINK reports proper contents for reverse selections tooBjoern Michaelsen1-0/+5
Change-Id: I4e77a55de012b5edd0d922b5e534e4dd6bb714b6 Reviewed-on: https://gerrit.libreoffice.org/28077 Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Tested-by: Björn Michaelsen <bjoern.michaelsen@canonical.com>
2016-08-10sw undo: add a Repair argument to the .uno:Undo/Redo commandsMiklos Vajna1-1/+16
Undo/redo is limited to undo actions created by the same view in the LOK case, this argument removes this limit. This can be used by a client for "document repair" purposes, where undo/redo of others' changes is intentional. The sfx command dispatch has support for FASTCALL slots (a state function is not called, the command is always enabled) and also has support for state functions, but those functions only get the ID of the slots, not its parameters. What is needed here is a command that's disabled by default, but in case a Repair argument is used, then it's unconditionally enabled. So handle that case in the sfx dispatcher directly for now. Change-Id: I96c1130bf51abcdd722684b1fa4a8277f92fd555
2016-08-09sw lok: limit undo/redo access to undo actions created by the same viewMiklos Vajna1-2/+2
So one view can't undo the changes of an other view by accident. If this is found to be useful in the desktop case, perhaps a dedicated config option can be added for it; for now the behavior is LOK-only. Change-Id: I7ff505d021bd6f6be36953ecc8f8bb971ce8927e Reviewed-on: https://gerrit.libreoffice.org/28007 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-08-01Simplify dynamic_cast followed by a static_cast.Jan Holesovsky1-12/+10
Change-Id: I3eab142e0df07371c1a5657d9304e556542a513a
2016-07-28GSoC Emoji ControlAkshay Deep1-0/+1
Tab Window Add emoji.json to installation directory Read the JSON data from code Filter emojis according to categories Insert Emoji at cursor position Toolbar control Change-Id: Ia5a577ce41398132872914ebfa499e4d4077d57e Reviewed-on: https://gerrit.libreoffice.org/26700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-07-28tdf#101168 sw: fix missing repaint on undo with multiple windowsMiklos Vajna1-4/+8
Need to lock / unlock all view shells, not just the current one. Change-Id: I754214a202c6bbb74daac6f933481cb3fe7b9dbb Reviewed-on: https://gerrit.libreoffice.org/27620 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-07-28sw: rename generic rSh in SwBaseShell::ExecUndo()Miklos Vajna1-8/+8
So that it's a bit more obvious it's not a base shell nor a view shell. Change-Id: I723a6394c59f4013576e3c4e2ff3016369d2227c Reviewed-on: https://gerrit.libreoffice.org/27616 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2016-07-27Simplify dynamic_cast followed by a static_cast.Jan Holesovsky2-27/+26
Change-Id: Ic95ca9b07e73a9f5b25834cd2d23c9180861b7c1
2016-07-21Simplify dynamic_cast followed by a static_cast.Jan Holesovsky1-5/+5
Change-Id: I9a37110b5d7b89e41393f1b4344b3ab3d673d700
2016-07-19clang-tidy performance-unnecessary-value-param in swStephan Bergmann1-2/+2
Change-Id: I6cd0d28dade01366b087aebff894b6f003d87b31
2016-06-28Convert Bitmap tab to Pattern tabRishabh Kumar4-5/+6
Change-Id: I5cf02f1889090539f7adb826483c91a1ef3c3925 Reviewed-on: https://gerrit.libreoffice.org/26015 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
2016-06-27GSoC notebookbar: switching tabs depending on contextSzymon Kłos11-22/+22
+ sfx2::sidebar::EnumContext moved to the vcl module + TabPage contains vector with context values + vcl builder reads control's contexts from the "class" mark + ContextTabControl shows tabs depending on context Change-Id: I661b0d3f35d46ace2a2e8eb1d374148f0c60017d Reviewed-on: https://gerrit.libreoffice.org/26447 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-06-16Remove the :: prefix in ::std for swMark Page1-1/+1
This patch was created using a script Variable name textual alignment is preserved to the same level Change-Id: I6b4858f8059b8cf71fc253e87d6df634362d62e9 Reviewed-on: https://gerrit.libreoffice.org/26306 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-06-01Convert VCL_MESSAGE to scoped enumNoel Grandin1-1/+1
Change-Id: I976536849fa5585c96cee23b660c56d3d0116933 Reviewed-on: https://gerrit.libreoffice.org/25720 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-30editeng: rename misleading SvxBoxItem::GetDistance()/SetDistance()Michael Stahl2-3/+6
Change-Id: Iea61f2de2b907974bbb05c66abf6cdaeab87b8b2
2016-05-30fdo#34362 Setting table border from toolbar resets "spacing to content"Rodolfo Ribeiro Gomes1-3/+6
Change-Id: Iec51c02ab389015d268849aa0dda870c11323f46 Signed-off-by: Rodolfo Ribeiro Gomes <rodolforg@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/24764 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-30Some clean up of uses of css::uno::Any::setValueStephan Bergmann2-4/+2
Change-Id: I04e8aef35a6083b61d775c8eb3f96757da2b31bd
2016-05-27Convert GRAPHIC to scoped enumNoel Grandin2-21/+21
Change-Id: I1fd09a729cbda00f99841532e0dd3fa66bce7bea Reviewed-on: https://gerrit.libreoffice.org/25534 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>