summaryrefslogtreecommitdiff
path: root/svx/source
AgeCommit message (Collapse)AuthorFilesLines
2013-01-07Cleanup: #include <tools/gen.hxx>Matteo Casalin16-13/+15
Change-Id: Ic547b4a59102afc8bdbc85ec95ac312e32ef2530 Reviewed-on: https://gerrit.libreoffice.org/1484 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-01-07UNO objects must be allocated on the heapStephan Bergmann1-4/+9
This was a regression introduced with 6da90944b5134d65bfbd7dcaf024956aa139efc1 "ugly memory leak." Change-Id: Ie976d7ddcdac974aeeba14ffd64c4641b5d096a4
2013-01-06ugly memory leakMarkus Mohrhard1-4/+4
Change-Id: I200713987eb1c19f7d795190e7acef02af569cc8
2013-01-04Make LO buildable again after the GraphicFilter move.Jan Holesovsky14-20/+20
Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c
2013-01-02Change if-statements to switchWerner Koerner1-9/+8
The bit-values do overlap, 3rd and 4th case were never reached. Change-Id: Iaaf39a11811c4e28c34260a7eab7fa0476165d1b Reviewed-on: https://gerrit.libreoffice.org/1497 Reviewed-by: Tomáš Chvátal <tchvatal@suse.cz> Tested-by: Tomáš Chvátal <tchvatal@suse.cz>
2013-01-01remove use of #pragma optimizeLuboš Luňák2-13/+0
All these are years old, guessing from some comments as old as Windows 9x support. These workarounds do not seem to be needed now. Change-Id: If67baa5cdefcec33b28696c764b1ed96143b7ccd
2013-01-01move xmlsecurity .ui stuff to right place and adapt code to use itCaolán McNamara1-1/+15
Change-Id: If1f3dbbbef07004ec02a65563524c6c17dc16c00
2013-01-01hook SvxSimpleTableContainer child positioning off ResizeCaolán McNamara1-2/+2
instead of SetSizePixel etc. Change-Id: I17246821f1805bda9da0503e4fab05be5724512c
2012-12-27Sigh, my git grep regexps missed some casesTor Lillqvist1-1/+1
Change-Id: I085f14f40fb83cba171b35b14cf7c0d99091fc00
2012-12-24fdo#56980, fdo#58267 don't leave stale SdrObject refs aroundDavid Tardon1-0/+32
When a new SvxShape is set on this SdrObject, remove itself from the previously set SvxShape (if any). Otherwise it will try to reset the SdrObject's SvxShape in its destructor... Change-Id: I89d952a722b643a06f8eea87aad68f8bd230f811
2012-12-21Remove unused cppuhelper/servicefactory.hxx includesStephan Bergmann4-4/+0
Change-Id: I27fd4d1f1dfafccaa7936defb5cd687d6266e0a2
2012-12-21fdo#46808, Convert frame::Desktop to new style service.Noel Grandin3-13/+10
I had to drop XEventBroadcaster from the merged interface because it introduced method name conflicts (addEventListener). Shouldn't be an issue since it was scheduled to be dropped anyhow, and the service implementation still implements it, so existing clients will be fine. I dropped the interface XPropertySet from the combined IDL because nobody seems to be using it, and it's primary purpose appears to be to set weird flags. I dropped the optional interfaces XStatusIndicatorFactory XDispatchInformationProvider from the combined IDL because the service does not implement them, and nobody seems to be using them. I suspect they were mistakenly copied from XFrame. I also did not convert the Title, UserDefinedAttributes and LayoutManager properties to attributes, again because no-one is using them. Change-Id: I678a00006ed2cca2d6c37c4e39465811442c33af
2012-12-20fdo#58427: fix another crash in SvxFontPrevWindow::PaintMichael Stahl1-2/+7
In Writer, Search&replace -> More options -> Formats used to have a window title of "Example" but not any more; let's add another fallback for the example text to makeRepresentativeTextForFont, which seems to give "Lorem ipsum" here. (regression from widget layout) Change-Id: I8dd9c099be31ed4390b04e8069a74960b58c6084
2012-12-20convert columns dialog (and sections/frame/page tab page) to .uiCaolán McNamara1-0/+47
Change-Id: I7ce64b63acba1581754e5a75ea48e3df654973ae
2012-12-19Some cppcheck cleaningJulien Nabet6-21/+14
Change-Id: I750058d7e25de26bf82e76ff09c69257ae09c5ba
2012-12-19fdo#56267, fdo#56980 propagate shape change to subclassesDavid Tardon1-1/+9
It turns out (as witnessed by fdo#56267) that my fix for fdo#56980 only cured the symptom, not the cause. The real problem is caused by the following sequence of events during ODF import: 1) an SvxCustomShape object is created (XShape iface) 2) an SdrObjCustomShape object is created for the SvxCustomShape, but it is not associated with it (yet) 3) another SvxCustomShape object is created internally by the SdrObjCustomShape and they are associated 4) an EnhancedCustomShapeEngine is created for this SvxCustomShape by SdrObjCustomShape 5) the SvxCustomShape from point 1 is set to the SdrObjCustomShape At some point (I did not follow this explicitly) the SvxCustomShape cached by the EnhancedCustomShapeEngine loses its (weak) reference to the SdrObjCustomShape. This leaves it gutted and all subsequent calls to render() return an empty XShape. The solution is simple: let SdrObjCustomShape know that the associated UNO shape has changed, so it can drop the custom shape engine. Change-Id: I267838ea4857dfcd646f40c811f3ae572237a1e6
2012-12-19Revert "fdo#58399 - revert attempts to untangle and accelerate this mess."David Tardon1-11/+17
This reverts commit bb3f2900a867fdcb6df916fff58199b4ce94dd05.
2012-12-18fix assertionDavid Tardon1-2/+2
Change-Id: I67bf571062c5246402979170e0395ede320dac82
2012-12-18remove manual entry of 50 to 600 now that we support items in .uiCaolán McNamara1-8/+0
Change-Id: I68e5547916af4986dfab31aac9e25cc8fad8d0e0
2012-12-17fdo#58399 - revert attempts to untangle and accelerate this mess.Michael Meeks1-17/+11
Reverts commits: 76350361f386b78e1bc9edb75af89e7ff3afe356 67f899e1d2db0dccde4b9587a52b7157fe1fb0be 1d77d4eada214e14938336070b248c18705939ff 1d16f59023b1b19d01ca69b8c9735be6d3baf5d9 The bug has a great series of linked bugs and stack-traces; the weakref / mixed tools & UNO lifecycle here is simply hideous.
2012-12-17fix problematic calc object selection after object create (at non 100% zoom)Noel Power1-0/+1
sometimes difficult to select custom shapes etc. created at non 100% zoom levels. workaround was to use selection tool to select an area. Change-Id: I112a60ebf37a37b16f6af5e70358853088e648a8
2012-12-17UniString::ToUpperAscii -> OUString::toAsciiUpperCaseCaolán McNamara1-3/+2
Change-Id: I70f2238021c79a34b97a6bdbcc374d8b1ffb2a31
2012-12-17String aNam uppercased but otherwise unusedCaolán McNamara1-3/+0
Change-Id: Ifd8c5edd3711357374efb2aba0ed108a36d3c740
2012-12-14Remove 2 unused methods from CompressGraphicsDialogJulien Nabet1-29/+0
Change-Id: I51ce4a231a43dc32a36303d293c718ee44b371a1
2012-12-13fix non-PCH MSVC buildLuboš Luňák1-2/+2
2012-12-13PCH for Library_svx and Library_svxcoreLuboš Luňák9-45/+47
2012-12-12Resolves: fdo#57469 allow tab to traverse into custom widgetsCaolán McNamara3-3/+3
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a candidate for getting focus when pressing tab Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
2012-12-12fdo#58029 - substantially accelerate re-rendering of complex formsMichael Meeks1-17/+4
Some writer VCL Windows appear to have thousands of children. Remove an N^2 in handling them, and let VCL do the job instead. i#103611 continues to stay fixed for simpler code. Change-Id: I63ddc0647f22c7e60feaaff6b795712c04693c05
2012-12-11fix variable namingJack Leigh1-63/+63
Changed to pointers by fdb7fe63db5ba17036a71fe4f7f25f834bef8f95 but names not updated Change-Id: I45d04c209842a26fb731ad495e969c9477a6984d Reviewed-on: https://gerrit.libreoffice.org/1298 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2012-12-10Replacing '__LOADONCALLAPI' with 'SAL_CALL' definitionChristos Strubulis1-1/+1
Change-Id: I692a9cfdca5ad50170eea2178a6aa87e8154b951
2012-12-10move .ui to be consistent with the other onesCaolán McNamara1-618/+0
set one button as the default one set the ??? placeholder texts as not for translation Change-Id: I71928318e762c1e331a90b9bc865bca3dca56423
2012-12-10callcatcher: remove unused rtf filter and associated methodsCaolán McNamara2-21/+0
update and remove newly unused code, mostly original rtf filter Change-Id: I2dd302851ee6fad62d79fbc81cb8a61a861396db
2012-12-10do not return reference to a local objectDavid Tardon1-1/+1
regression introduced by fdb7fe63db5ba17036a71fe4f7f25f834bef8f95 Change-Id: Id3f89b61b464763a37c5f063c0d541154ec40105
2012-12-09Compress graphics dialog converted to new widget layout.Tomaž Vajngerl4-422/+777
Change-Id: Iff1ffba10c5aaf3d438acf0a69467a0ac9e0f7cf
2012-12-06Avoid seeking a cursor to where it already isLionel Elie Mamane1-2/+12
Change-Id: I817aef57f3e028d77cf13f8cca1ecc7afcea9725
2012-12-06just use return value optimizationCaolán McNamara9-113/+68
Change-Id: I2c7937c238d90192383e20923f62233821445c10
2012-12-06convert number format page to .uiCaolán McNamara1-5/+20
Change-Id: Icaae0aa69156ebffab5750a1820a0a7a94a39022
2012-12-06fdo#46808, Adapt sdb::ErrorMessageDialog UNO service to new styleNoel Grandin1-12/+4
Change-Id: Iaf12324e6aa64b268555b0f4c82f04f4c0f6f123
2012-12-06Translate German comments in tbcontrl.cxxSamuel Mehrbrodt1-37/+30
Change-Id: I071feef9c7df4ad5ab72cd9caef5cbcbec1ae53d Reviewed-on: https://gerrit.libreoffice.org/1249 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2012-12-06Modify the default Style list in Writer, give them a custom order.Samuel Mehrbrodt1-8/+10
Asking on UX-Advise, there were no negative voices for this change: http://nabble.documentfoundation.org/Libreoffice-ux-advise-Default-Styles-in-Writer-td4020441.html Change-Id: I780eaecc29c88493f09194399dfc00be1484c549 Reviewed-on: https://gerrit.libreoffice.org/1248 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2012-12-05findbar: show up/down buttons when searching for selected textIvan Timofeev1-0/+1
1. Type and select some text in Writer 2. Ctrl+F Result: the text appears in the combobox, but the up/down buttons are still disabled. Change-Id: I9cd9f0bad52967a9934577c9bb743085b108fa94
2012-12-04fdo#40339: line style toolbar dropdown list not updatedIvan Timofeev1-1/+4
... because XLineDashItem::GetName returns the so-called "api name" (from RID_SVXSTR_DASH_DEF_START..RID_SVXSTR_DASH_DEF_END range), while the listbox is filled with corresponding translated names. Change-Id: I9edeeee6f6219f2b31fb02c24c70f3fef4f0efcb
2012-12-03fixes for where fast string operator+ is not perfectly source compatibleLuboš Luňák1-8/+8
Change-Id: I80af0399037e4f68113338139e7f2ad2400e65ab
2012-12-03API CHANGE: roll back the XStyle changes to add a new Hidden property on StyleCédric Bosdonnat1-2/+0
Change-Id: If6d23925567fb184cd8fc4e00fc72fe4d216e756
2012-12-03fdo#56980 drop cached shape engine on invalidationDavid Tardon1-0/+1
Change-Id: I9591375e1f7d1b6f69ca9a39add52a94ac852c7f
2012-11-30API CHANGE: Added XStyle::isHidden() and XStyle::setHidden()Cédric Bosdonnat1-0/+2
Change-Id: I44770c05d51104b45d94145db8263187205daa84
2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens7-14/+0
This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
2012-11-30fdo#46808, use service constructor for i18n::CollatorNoel Grandin5-10/+9
Change-Id: I15a360723e335345aad09e73fcb0f6815ed9e0d4
2012-11-29Remove unused method & remove header include by using forward declaration.Kohei Yoshida3-0/+3
Also, SvViewDataEntry has lost one friend. Change-Id: Icf6d4127de38fed485cd260edae97748b1f78ede
2012-11-29Get it to build.Kohei Yoshida2-3/+2
Change-Id: Ie239d3d0f8f4ec81a4c5dbed3a1a132117875c7c