summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2014-07-01New loplugin:stringconcatStephan Bergmann
Change-Id: Id7c517fb37bc28797c45fc0dde83e866f2aa4aac
2014-07-01Related: #i124638# Second step of DrawingLayer FillAttributes...Armin Le Grand
for Writer objects, now added support for Paragraph and PageStyle (including Header and Footer) for direct attributes and style attributes (cherry picked from commit cc25c58f7052827bfebdc9fbeec668c8fa29ed1b) Conflicts: cui/source/factory/dlgfact.cxx cui/source/factory/dlgfact.hxx cui/source/inc/bbdlg.hxx cui/source/inc/cuires.hrc cui/source/tabpages/bbdlg.cxx cui/source/tabpages/bbdlg.src cui/source/tabpages/page.cxx cui/source/tabpages/tparea.cxx include/svx/pagectrl.hxx include/svx/svxdlg.hxx include/svx/svxids.hrc include/xmloff/PageMasterStyleMap.hxx include/xmloff/prstylei.hxx include/xmloff/txtprmap.hxx svx/Package_inc.mk svx/inc/svx/hdft.hxx svx/source/dialog/hdft.cxx svx/source/dialog/pagectrl.cxx svx/source/tbxctrls/tbxcolorupdate.cxx svx/source/unodraw/unobrushitemhelper.cxx sw/Library_sw.mk sw/inc/fillattributes.hxx sw/inc/format.hxx sw/inc/frmatr.hxx sw/inc/frmfmt.hxx sw/inc/hintids.hxx sw/inc/hints.hxx sw/inc/ndtxt.hxx sw/inc/node.hxx sw/inc/swunohelper.hxx sw/inc/unobrushitemhelper.hxx sw/inc/unoprnms.hxx sw/source/core/attr/format.cxx sw/source/core/attr/hints.cxx sw/source/core/doc/docdesc.cxx sw/source/core/doc/docdraw.cxx sw/source/core/doc/docfmt.cxx sw/source/core/doc/docnew.cxx sw/source/core/doc/docredln.cxx sw/source/core/doc/poolfmt.cxx sw/source/core/doc/visiturl.cxx sw/source/core/docnode/node.cxx sw/source/core/inc/frame.hxx sw/source/core/inc/frmtool.hxx sw/source/core/inc/rolbck.hxx sw/source/core/layout/atrfrm.cxx sw/source/core/layout/fillattributes.cxx sw/source/core/layout/findfrm.cxx sw/source/core/layout/paintfrm.cxx sw/source/core/txtnode/ndtxt.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtedt.cxx sw/source/core/undo/rolbck.cxx sw/source/core/unocore/swunohelper.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unomap.cxx sw/source/core/unocore/unoparagraph.cxx sw/source/core/unocore/unoprnms.cxx sw/source/core/unocore/unostyle.cxx sw/source/ui/chrdlg/paradlg.src sw/source/ui/chrdlg/pardlg.cxx sw/source/ui/fmtui/tmpdlg.cxx sw/source/ui/fmtui/tmpdlg.src sw/source/uibase/app/docst.cxx sw/source/uibase/app/docstyle.cxx sw/source/uibase/frmdlg/colex.cxx sw/source/uibase/shells/basesh.cxx sw/source/uibase/shells/textsh1.cxx sw/source/uibase/uiview/viewstat.cxx sw/source/uibase/utlui/uitool.cxx xmloff/inc/PageMasterImportContext.hxx xmloff/inc/xmloff/XMLShapeStyleContext.hxx xmloff/source/draw/XMLShapeStyleContext.cxx xmloff/source/draw/sdpropls.hxx xmloff/source/style/PageMasterExportPropMapper.cxx xmloff/source/style/PageMasterImportContext.cxx xmloff/source/style/PageMasterPropHdlFactory.cxx xmloff/source/style/PageMasterStyleMap.cxx xmloff/source/style/prstylei.cxx xmloff/source/text/txtexppr.cxx xmloff/source/text/txtprhdl.cxx xmloff/source/text/txtprmap.cxx xmloff/source/text/txtstyli.cxx Conflicts: svx/source/dialog/hdft.cxx sw/source/core/doc/visiturl.cxx sw/source/core/txtnode/thints.cxx sw/source/core/txtnode/txtatr2.cxx sw/source/core/unocore/unostyle.cxx Change-Id: I7e8779db6c0cbd1e242b63eab888f468f2de509a
2014-07-01clang scan-build: various warningsCaolán McNamara
Change-Id: I4bdfb074b3cf6fcb49765322308dfa4b9ed67713
2014-06-30Cleanup: removed comments and debugging outputmatteocam
Change-Id: I41f13d33da641153784725344f5bd526ca69542b
2014-06-30More debugging; fixed Font::IsTransparentmatteocam
Change-Id: Idcb54408dd3cf6561b78eb28fdb409d2e31df541 (cherry picked from commit d84dba8b01c1f240f22b774c951ebf206d5a3ac9)
2014-06-30Minor changes.matteocam
Change-Id: I3b8c51690eb14601435653e9a2255a5c6ed4fd7e (cherry picked from commit 0b8fe9834b398db7550f30718b3cb63860c6165d)
2014-06-30Debugging output in OutputDevice::SetTextFillColormatteocam
Change-Id: I78a75a94e4012eded1a4a5b4c36d8b399a4dda6c (cherry picked from commit 1441ae75b005b4ff1ae2683755a12c5813a3a6b3)
2014-06-30Debugging outputmatteocam
Change-Id: I4e9418746ad50e1bdb1336459c00a4cf614e2350 (cherry picked from commit 4b2d62f02a386013d0004058a02fed80eb8df675)
2014-06-30Setting SetTextFillColor from Attrs. Experiment with line colormatteocam
Change-Id: If34f000d6c5ef6ec38f7f735ada194b8fff4f56d (cherry picked from commit 7fb0e8c9a659417607c85f9b0e8245e4af4552dc)
2014-06-30Cleaned up code from tranparency in vcl. Trying setfillcolor from edit attrsmatteocam
Change-Id: I263012332e43573f260ac8c54612576eb21a11a1 (cherry picked from commit 02385eb4d8de3c5a57511d8bae3c42a523470838)
2014-06-30Cleaned up code from operations in vclmatteocam
Change-Id: Ica5194f0cf6e30ec099974ae8b794fb2bc5e654a (cherry picked from commit 4445f361aa2730b61fdd339dcdd7014b266e5c42)
2014-06-30 SetTextFillColor immediately before DrawTransparent. DrawTextRect commentedmatteocam
Change-Id: Id283624484dfcda91546fd4965bc0b6b92614f55 (cherry picked from commit ebc7be61df384120f1d0420d3e4dc5e3ac5599f4)
2014-06-30Transparency with DrawTransparent in addition to DrawRectmatteocam
Change-Id: I9e8221652b74a3004857ef4b12c6b45563a373b5 (cherry picked from commit 2f8660008ddd32c8f24825d5ba3e751bc65d6d3e)
2014-06-30Transparency by replacing DrawRectmatteocam
Change-Id: I5ba220df841cbe650c910c1c7bc1815900f13c53 (cherry picked from commit 6ec2a1a6922d22fa5efb25982b0b51cef7a97499)
2014-06-30Changed SetFillColor to SetTextFillColormatteocam
Change-Id: I3c19ac80318733ccae1e8829e3269ec8c716869e (cherry picked from commit 33384f3d23958b62e1ec9f72f2a0e6424313a177)
2014-06-30Fixed color problemmatteocam
Change-Id: I7e9340ebab26d3c979571155a3e9d051c41c58f4 (cherry picked from commit aa7d40399758c7f2270dfb0b71f4bcc39d0e24ea)
2014-06-30Moved Text Filling Color in OutDev. Text Filling occurs in ImplDrawTextmatteocam
Change-Id: I9c75066a8dea32721757d0511a2af58c68408438 (cherry picked from commit b09cf493611f2521e66159287b88acc3c05d6d33)
2014-06-30Put text filling in SvxFontmatteocam
Change-Id: I290fff0cb66fc07122b976d977dff24ac491e108 (cherry picked from commit ea56441757a34082b9ffc5f28936413fcb55e31a)
2014-06-30HasBkg method to Font.HasBkg iff HasSingleUnderline.SetBkgColor in OutputDevmatteocam
Change-Id: I10e6e1b916df0c78d26596a37944e8b57b2897e7 (cherry picked from commit 181266201b5e6aaad1dcd9cbc2dd4db44ecf3dc5)
2014-06-30rework resize into a custom widgetCaolán McNamara
so that the order of resizing will happen in the right sequence to work correctly every time Change-Id: I1adffe276db3fb80eb34ca74c2ceb51a6ee28526
2014-06-30...and ~SystemWindow can recursively destroy its child windowsStephan Bergmann
...so when the pMyParent vs. pMySysWin typos in the asserts (thanks Matteo and Micheal for spotting) were fixed, they would fire in such scenarios. So just hope that it is fine to effectively skip those safety checks in these cases, too. Change-Id: Ib925e57b68643c75a5d4db67fd64692015482179
2014-06-30Once ~SystemWindow calls ~Window, this is no longer a SystemWindowStephan Bergmann
...and hopefully it is just as fine to start this safety check at the paren, anyway. Change-Id: Ie3d7a1e233b9e3076a6603f2c6312d57b42b0f77
2014-06-30Mark WindowImpl as noncopyableStephan Bergmann
Change-Id: I80f981216067a03578cfc812b006e6b68b77068e
2014-06-30use VCL_HIDE_WINDOWS env on Mac to 'simulate' headless mode on MacNorbert Thiebaud
Building, and running the unit/subsequent test on Mac cause massive amount of flashing windows creation/destruction that make building with test very annoying on a box used for other purposes. This patch prevent the windows to be actually displayed hence mitigating the problem Change-Id: Ied2a36699b50856e0c4e6b618212481796ec99d3
2014-06-30Called C++ object pointer is nullCaolán McNamara
Change-Id: I88efc4be6ff869ef97a2b398d43f7b7914debfc6
2014-06-30Remove double assignmentPeter Senna Tschudin
The semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression i,f; position p1,p2; @@ ( (<+...i++...+>) = ...; | (<+...++i...+>) = ...; | (<+...i--...+>) = ...; | (<+...--i...+>) = ...; | i = <+...f(...)...+>; | i@p1 = ...; ( i = <+...i...+>; | i = <+...f(...)...+>; | i@p2 = ...; ) ) @@ expression i; position r.p1,r.p2; @@ * i@p1 = ...; i@p2 = ...; // </smpl> Change-Id: Ifacb878d58486f2645560592484ce24b2bc0bd6f Reviewed-on: https://gerrit.libreoffice.org/9968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-06-28vcl: don't do expensive desktop probing in headless mode.Michael Meeks
Change-Id: I10d6493997b4f3bfab769340c990c01a26f3da20
2014-06-28Avoid loading persona images in headless mode.Michael Meeks
Change-Id: Ie3bb69d93b97deab0830c2b45ba3428a8931a949
2014-06-27create_SalInstance does not need an oslModule parameterStephan Bergmann
Change-Id: I658974102f544185bf27f985bc920d8d54b40656
2014-06-27loplugin:unreffun: redundant function redeclarationStephan Bergmann
Change-Id: I6c9b85ab587f6fb9f585c9714c3a1076f627c7d3
2014-06-27Resolves: fdo#65634 improve wheel-scrolling sidebar panelsCaolán McNamara
Change-Id: I213d85a1e2bbd2377f6f0326433ddd57dc346721
2014-06-27do what I mean, not what I sayCaolán McNamara
Change-Id: I1c86ff5713401771d6002de0a26bad4430d271fd
2014-06-27send wheel scroll events of disabled widgets to its enabled parent firstCaolán McNamara
on scrolling with the wheel scroll if the pointer ends up over a disabled widget then the event doesn't go to its parent and so the scrolling halts unless the window happens to be the focus window Change-Id: I57566b5c6e395e0f62d6b928f28e47a0c3486d65
2014-06-27bah, const issueCaolán McNamara
Change-Id: If7fd95287ba1a28e7b5f5440776859b912d6ad6e
2014-06-27Resolves: fdo#80160 PNG with 1-bit colormap only show black and whiteCaolán McNamara
Change-Id: If0c9950c18e6091fafea47954a4654db436a3a44
2014-06-27tweak assert so comment appears in abort messageCaolán McNamara
Change-Id: Ibf78e5cd1620f0b61cae030e3870be4a6f87e71d
2014-06-27loplugin:unreffunStephan Bergmann
Change-Id: I2afc1cd5ed813f768f06ad0db651fb9e8e81d844
2014-06-26clang: Value stored to 'nSumG' is never readCaolán McNamara
yikes, well that was a worthwhile exercise Change-Id: I454c16ce8b307abfdd2db3d2e38f4d36fba429fa
2014-06-26clang: Dead initializationCaolán McNamara
Change-Id: Ieae5303e55f21044ef8e91e63c4896696cfad51c
2014-06-26clang: Dead incrementCaolán McNamara
Change-Id: I231218ab7a7984943470b62339e34801fb5fb9e3
2014-06-26check for self-assignCaolán McNamara
Change-Id: I6ffaaa36f2e594a2e8155589a4d7000db21ab30b
2014-06-26Related: fdo#33455 retain color on scaling of 1 bit depth pngsCaolán McNamara
Change-Id: I445ce672742ddb6d6592ef419bf5e14c5f09a5b5
2014-06-26Related: #i122471# make the Mac lookup feature handle the correct wordHerbert Dürr
(cherry picked from commit 0a4564b42de0fc61253ae4e69039860c09e53eba) Conflicts: vcl/osx/a11ytextattributeswrapper.mm Change-Id: I786815feb847a2a340d2e3d24c9a8a01bb7ace7c
2014-06-25vcl: MSVC can't link inline ITiledRenderable dtorMichael Stahl
Change-Id: Idbb776de489e0c6e6ae14cb65907ac75cfca3851
2014-06-25Fill the alpha channel by default for vcl 32-bit bitmaps too.Andrzej Hunt
Otherwise the alpha channel for bitmaps created directly is empty, indicating a transparent bitmap (although we don't actually handle transparency). This complements hardcoding of the alpha channel in basebmp. VCL bitmaps can be copied bit-for-bit directly into a basebmp bitmap, hence it's important to make sure we fill the alpha channel in vcl too. Conflicts: include/vcl/salbtype.hxx Change-Id: Icb2fa417db6625a6ffa6bd82eb5773ff75be5a3c
2014-06-25Allow passing in external buffers to svp's VirtualDevice.Andrzej Hunt
We also want to be able to set whether or not the buffers should be painted to top down, so add that parameter as necessary (default seems to be false, however e.g. gtk requires this to be true, i.e. needed for tiled rendering). Change-Id: Id98882e4c7f62508ae5a976c0d8df743460a4ab2
2014-06-25svp: deduplicate bitcount->colourspace mapping and allow overriding.Andrzej Hunt
Although svp defaults to BGR, we might want to use alternative formats (e.g. for tiled rendering to bitmap buffers which are to be used in e.g. gtk), it is probably safest to keep the current defaults but allow the user to change to whatever format they may require. (This currently only makes sense for the 32-bit RGBA/ARGB/etc. formats. However the 23 bit formats could potentially be expanded to allow a similar RGB/BGR choice.) Change-Id: I70bd3d6e7d297faef163b910f576655efee4cb3f
2014-06-25Return a bitmap buffer for tiled rendering from LibLO.Andrzej Hunt
We still need some way of managing the buffers properly rather than just keeping a static reference to the last buffer that was rendered. Change-Id: I17940c758948aa9418f4e0216ecd253d128cd04f
2014-06-24remove use of register keyword in C filesNoel Grandin
C compilers have been ignoring it for the last decade Change-Id: I42918263121dd189bab9d27077798b779b9e8da1 Reviewed-on: https://gerrit.libreoffice.org/9873 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-24new compilerplugin returnbyrefNoel Grandin
Find places where we are returning a pointer to something, where we can be returning a reference. e.g. class A { struct X x; public X* getX() { return &x; } } which can be: public X& getX() { return x; } Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7