summaryrefslogtreecommitdiff
path: root/svx/source/svdraw
AgeCommit message (Collapse)AuthorFilesLines
2016-03-24Remove german variable and use directlySamuel Mehrbrodt1-2/+1
Change-Id: Ia31bd59e3f5619338e3793a776f048309272cab2 Reviewed-on: https://gerrit.libreoffice.org/23489 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-03-17loplugin:constantparam in svxNoel Grandin13-71/+65
Change-Id: I50fa7e4c7525d2f8107a11d8203957a47680eb80 Reviewed-on: https://gerrit.libreoffice.org/23303 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-15remove unnecessary parentheses in case labelsNoel Grandin1-2/+2
Change-Id: I987bf68c767709080c67c8b183c036a4109c6caa
2016-03-15loplugin:constantparamNoel Grandin2-3/+3
Change-Id: I270e068b3c83e966e741b0a072fecce9d92d53f5
2016-03-10coverity#1355507 uninitialized scalar fieldCaolán McNamara1-0/+1
I think commit b2fb84499e1f75735e8fd90bc2eece3fed9af5f6 Author: Noel Grandin <noel@peralex.com> Date: Mon Mar 7 14:19:22 2016 +0200 loplugin:write only fields wrong wrong and took out this param along with the unused nIndex beside it Change-Id: Idc34e03b5d59d4b0017fff456b79c807fda2535f
2016-03-09remove unused NOT_POOLABLE enum valueNoel Grandin1-1/+1
and simplify the resulting SfxItemInfo field down to a single bool Change-Id: I73e24e83d39afc7660ac85872ba96bc790713cb2 Reviewed-on: https://gerrit.libreoffice.org/23058 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-09loplugin:constantparam in svxNoel Grandin4-6/+6
Change-Id: Ib2a432fc334898c75ab5e5cf629a21fd310bd467
2016-03-07loplugin:write only fieldsNoel Grandin1-1/+0
Change-Id: Ia0fb487c5590e096659b81f76c4dc543e184c59c
2016-03-07loplugin:unuseddefaultparamsNoel Grandin1-17/+6
Change-Id: Ia414f7845425ef73859ed04853378e96cc738795 Reviewed-on: https://gerrit.libreoffice.org/22971 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-03-04loplugin:unuseddefaultparam in svxNoel Grandin5-19/+12
Change-Id: Iacd4ed12c6c5dfdc2f31f85c8c1ce2cee8a8641f
2016-03-01loplugin:unuseddefaultparam in svx (part2)Noel Grandin3-6/+4
Change-Id: I99e3d6137ec17e3fc782253c85e5fa4f1da4cec4
2016-03-01loplugin:unuseddefaultparam in svx (part1)Noel Grandin19-119/+50
Change-Id: I0fc8d00447491e8474508952c21d07aa22b6f055
2016-02-29svx: avoid instantiating OBJ_NONE (SdrObject)Michael Stahl1-1/+2
This happens when using the Drawing toolbar in Writer, the "Text Box" button. SdrCreateView::SetCurrentObj() already has the right fallback code in the "else" branch. Change-Id: Icddfa77ce10eddbfb2dc7165ce11ac6dec80b1ee
2016-02-29svx: remove unused SdrModel::getLibreOfficeKitCallback()Miklos Vajna1-5/+0
Change-Id: Id6a12d40ea43512d2ee22f51034a6a8023f40e9e
2016-02-22loplugin:write only fieldsNoel Grandin4-14/+6
Change-Id: I45895e9845a9037da207f001fece427452ed499f
2016-02-19editeng: remove never read mpLibreOfficeKitCallbackMiklos Vajna1-1/+1
As all callback invocations happen with SdrModel's callback pointer. Change-Id: I0111040c501b7927332f88cc4797b8ebab2bc57a
2016-02-17use consistent #define checks for the Windows platformNoel Grandin1-1/+1
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-12tdf#95857 Sort out German plurals ...danielt9981-4/+4
Made a start in removing the incorrect 'Infos' German plural Change-Id: Ie989351a7473fc35b563e63ce6a4fb229093af60 Reviewed-on: https://gerrit.libreoffice.org/22301 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-02-09Remove excess newlinesChris Sherlock53-370/+0
A ridiculously fast way of doing this is: for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \ --exclude-dir=workdir --exclude-dir=instdir '^ {3,}' .) do perl -0777 -i -pe 's/^ {3,}/ /gm' $i done Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c Reviewed-on: https://gerrit.libreoffice.org/22224 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09Formatting changes across all modulesChris Sherlock2-4/+0
+ Removed comment cruft + Tab formatting in number of files + Some commented out code removed + Tab characters replaced with spaces + Newline cleanup in quite a few files + Tweak header guard #endifs Change-Id: I3208ff2f047da890edcc49b73389aca22442f5fc Reviewed-on: https://gerrit.libreoffice.org/22221 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-08svx: SdrModel::mbTiledRendering is never readMiklos Vajna1-6/+0
Change-Id: I8571032b5c43a47872cb3364613ffb936624aa2d
2016-02-08loplugin:unusedmethodsNoel Grandin2-49/+0
using an idea from dtardon: <dtardon> noelgrandin, hi. could you try to run the unusedmethods clang plugin with "make build-nocheck"? that would catch functions that are only used in tests. e.g., i just removed the whole o3tl::range class, which has not been used in many years, but htere was a test for it... <noelgrandin> dtardon, interesting idea! Sure, I can do that. Change-Id: I5653953a426a2186a1e43017212d87ffce520387 Reviewed-on: https://gerrit.libreoffice.org/22041 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-06vcl: bmpacc.hxx -> bitmapaccess.hxxChris Sherlock4-4/+4
Change-Id: I4bb19d6103c4a6a902d86b62a857e3478493924c
2016-02-04vcl: take into account the font width is the average font widthChris Sherlock2-4/+4
I'm changing the Font class function names: - SetSize -> SetFontSize - GetSize -> GetFontSize - SetHeight -> SetFontHeight - GetHeight -> GetFontHeight - SetWidth -> SetAverageFontWidth - GetWidth -> GetAverageFontWidth That's because it really makes no sense to say that there is a single constant font width because obviously proportional fonts don't have one - the best we can do is an average font width, which is what folks like Microsoft sort of do already. On a fixed font, the average is still accurate, for obvious reasons :-) I'm also not a fan of GetSize/SetSize as I find it a might too generic. Change-Id: Ib80a604ba62d6883fd6cbc7994da763976be5c70 Reviewed-on: https://gerrit.libreoffice.org/22069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-03svx: can now do nAnz -> nCount without name clashesMiklos Vajna2-57/+57
Change-Id: Ifc884a44008de0a34c056348321e5344ab2cb1f1
2016-02-02remove B2DLineJoin::MiddleCaolán McNamara1-4/+1
and consistently map css::drawing::LineJoint_MIDDLE to the same thing that css::drawing::LineJoint_MITRE points to everywhere else Change-Id: I77b7586ea13f3fe84c0529172758256666488d36
2016-02-02svx: prefix members of SvdProgressInfoMiklos Vajna1-24/+24
Change-Id: I23fa86080c001d3a78c3b7d7c49274f01444d9be
2016-02-01svx: nAnz -> nObjCountMiklos Vajna1-3/+3
Change-Id: I5d7f50d52aac9b1333828db1571163d7d5a624c4
2016-01-31tools: rename FontUnderline to FontLineStyleChris Sherlock1-7/+7
Change-Id: I4750ad8569a1003b2f8c29052f3e25003ee433ca Reviewed-on: https://gerrit.libreoffice.org/21892 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-30svx: PntAnz -> PointCountMiklos Vajna3-6/+6
Change-Id: I56ccaf5a78071a132c172e3946514624afe9dd80
2016-01-29vcl: add text alignment functions to ImplFont and FontAttributesChris Sherlock1-1/+1
ImplFont and FontAttributes now have GetAlignment and SetAlignment, and I have renamed Font::GetAlign to Font::GetAlignment, and Font::SetAlign to Font::SetAlignment. See commit description in 8bfccd3a71d911b6d ("vcl: Create accessor and mutator for font scaling in FontMetric") for reasoning behind patch. Unit test added to vcl/qa/cppunit/font.cxx to test text alignment. Change-Id: I6272c84fc9416c90616d957d1897eba9469fe7ba Reviewed-on: https://gerrit.libreoffice.org/21876 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-27Resolves: rhbz#1301346 crash with null ObjListCaolán McNamara1-2/+3
Change-Id: Ia9446b06087907a2d9d1889ba7d4ccd1f78697d9
2016-01-25svx: SdrEdgeLineDeltaAnzItem -> SdrEdgeLineDeltaCountItemMiklos Vajna3-4/+4
Change-Id: I91791a3ea21ca7a68d4d1aa49e29cabc38c777ee
2016-01-22editeng: ImpEditView::mbTiledRendering is never readMiklos Vajna1-1/+0
Change-Id: Ie8e33d075f0cedbb9f7148717c4318f4494ed419
2016-01-21vcl: rename Font::GetFamily to Font::GetFamilyTypeChris Sherlock2-6/+6
Change-Id: Ie427a43bd126dcdd89c6f66582736e67130f2254 Reviewed-on: https://gerrit.libreoffice.org/21633 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-17vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock2-6/+6
Change-Id: Ie20871a3078bf875c1782b7761d60591a9c9704f Reviewed-on: https://gerrit.libreoffice.org/21529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-16revert vcl patch series that brok Mac and WindowsNorbert Thiebaud2-6/+6
revert: 9bc2f3de8672e812f3a67541c6d7069b434a7e42 vcl: add comment about ImplFontMetric::{Get|Set}LineHeight() 26371f105bc44e04469ec03fc5bb12505e651c6b vcl: FontAttributes::GetSlantType() -> FontAttributes::GetItalic() 2dd0b4317372b8022efe3911b38b4fa02956d8b9 vcl: font.hxx and metric.hxx cleanup, make ctors explicit and the dtor virtual 5ab13bf3ead3539e4ad847656da81e7eb6029652 vcl: tabify font.hxx f99550dae55e40e49bf9c9875053fe2abb4c71ca vcl: change Font::SetName() to Font::SetFamilyName() 2b297116cb6bb1061c43e5714e2609c8ee9f57d2 vcl: rename Font::GetName to Font::GetFamilyName Change-Id: I23f38921187d66b970ca815eb30dda4222a2da62
2016-01-16vcl: rename Font::GetName to Font::GetFamilyNameChris Sherlock2-6/+6
Change-Id: I83927e0992dfe0a2a79d139818a9f45d3761aae5 Reviewed-on: https://gerrit.libreoffice.org/21509 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-01-15svx: remove now unused SdrModel::isTiledRendering()Miklos Vajna6-19/+13
Change-Id: I8d3c6b1de2db57e39678a7e57de6e015c72719ec
2016-01-14editeng: handle SdrModel::isTiledSearching()Miklos Vajna1-1/+1
Given that the edit/outliner views can come and go, avoid the lifecycle problems with just passing a pointer to the sdr model to editeng, and then it'll always have the up to date "are we searching" information. editeng can't depend on svx, so provide an interface class SdrModel can implement. Change-Id: I3b98011593b00ac0fab05b6b9c591dd20d94c579
2016-01-14sd tiled rendering: it's pointless to send selection changes during search allMiklos Vajna1-0/+24
But they do cause annoying flashing. Change-Id: Ic313a15429c5db98c5660a5274aa49e95dd217e5
2016-01-14loplugin:unusedmethods unused return value in svxNoel Grandin3-18/+13
Change-Id: I15a87da20487ce031c6aab2f3df0b18fd3e4c249
2016-01-13-Werror=misleading-indentation (GCC 6)Stephan Bergmann1-2/+4
Change-Id: I83e38c017600946e4055a5b8ada87a0f64e83222
2016-01-13loplugin:unusedmethods unused return value in include/svxNoel Grandin11-76/+23
Change-Id: I9a5e937905fd71ecbbf9cb215ff6cc2b7defc6f3
2016-01-13loplugin:unusedmethods unused return value in include/svlNoel Grandin1-5/+3
Change-Id: I759fe8769daccea07c2157bfb5912df8ba285534
2016-01-11svx: SdrDragStat::GetPointAnz() -> GetPointCount()Miklos Vajna10-25/+25
Change-Id: Ib8728408a81c655c36b46a8483970c38e9a40bc4
2016-01-10Fix typosAndrea Gelmini4-5/+5
Change-Id: I9a5940027423ff0791fa7da0b79b617412ce6b86 Reviewed-on: https://gerrit.libreoffice.org/21209 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
2016-01-08lool - page border shadow can be disabledMarco Cecchetti1-0/+1
Support for text documents and presentations. Added a command line option for gtktiledviewer: --hide-page-shadow. Reviewed on: https://gerrit.libreoffice.org/21210 Change-Id: I1e427693d7af40cb5731d1730ac5b7c486d45c29
2016-01-05tdf#96708: don't modify document while copying to clipboardMike Kaganski3-8/+3
I.e., don't try to create auto-layout for clipboard pages which don't contain one; don't resize objects to text. Also, don't invalidate items that are equal to defaults, because explicitly set items are not the same as absent items: pasting an object without an item makes the property to inherit new target's default, while when the item is present, the default doesn't apply. Also, don't consider selected state of the page while stringifying - this makes selected page string to differ from not-selected clipboard page. Change-Id: I172e03e1a8c428e5fcae3a116cc9ad8de79f1a87 Reviewed-on: https://gerrit.libreoffice.org/20871 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-12-27sal_uLong/sal_uIntPtr/sal_uInt16 to sal_uInt32Matteo Casalin1-1/+1
also avoid some explicit temporaries and group some checks. Change-Id: I7795b208dde53fd383b8c75f72dd9f56429aea2b