summaryrefslogtreecommitdiff
path: root/svx
AgeCommit message (Collapse)AuthorFilesLines
2013-01-12'Calculate' string was untranslatableAndras Timar1-1/+1
Change-Id: I289e3f2c16ac1cd109e511af11f9a8fa38894edb Reviewed-on: https://gerrit.libreoffice.org/1663 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-01-10Resolves: fdo#58589 recovery dialog title area text is missingCaolán McNamara2-2/+2
regression since efc6b840a0423099d6c3e0d33c14d34637fbba4c as that changes the order in which windows are drawn Change-Id: I37388229533127ab915bec351f094fcd4786b2a3 (cherry picked from commit f8a4ce67987e5cb47f07dc61eeb450e1d5b9c541) Reviewed-on: https://gerrit.libreoffice.org/1606 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi>
2013-01-08Make LO buildable again after the GraphicFilter move.Jan Holesovsky14-20/+20
Conflicts: svtools/Library_svt.mk q# Change-Id: I3455a7294b136400f32163626d5a7a7f2bfa898c Signed-off-by: Cor Nouws <oolst@nouenoff.nl> Signed-off-by: Olivier Hallot <olivier.hallot@documentfoundation.org> Signed-off-by: Adolfo Jayme Barrientos <fitoschido@ubuntu.com> Signed-off-by: Michael Meeks <michael.meeks@suse.com>
2013-01-07Bugfix for improper function call, column count was compared with row countK_Karthikeyan1-1/+1
Change-Id: Iacf59548209d2be8b36839ae12bed9cedb7bdded Reviewed-on: https://gerrit.libreoffice.org/1562 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit aaaa5350075ad5f589c242ec40f9f6ab7fe822a5)
2013-01-07Fix calls to SfxPoolItem* Put with a Which-ID of sal_falseWerner Koerner2-2/+2
Change-Id: I39914909fd394532e7a32c791d4480530393c1c0 Reviewed-on: https://gerrit.libreoffice.org/1499 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit 475469626b3a92528a9584d6c34f2b44b7eb8d1c)
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 (cherry picked from commit 31b93b8600a3e219d33173aa68d9ab570e477e50) Signed-off-by: David Tardon <dtardon@redhat.com>
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 (cherry picked from commit a2dd3acd205cb8df959ac03e99b1d1991cc562a8)
2012-12-19fdo#56267, fdo#56980 propagate shape change to subclassesDavid Tardon3-3/+29
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 (cherry picked from commit 7fec8dfcaca4efc92516f9af51a3157f1a11ccd7) Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-19Revert "fdo#58399 - revert attempts to untangle and accelerate this mess."David Tardon2-12/+20
This reverts commit bb3f2900a867fdcb6df916fff58199b4ce94dd05. (cherry picked from commit c3fed9f4ea354427c205bd407fcfa3d04093ba50) Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-18fix assertionDavid Tardon1-2/+2
Change-Id: I67bf571062c5246402979170e0395ede320dac82 Signed-off-by: David Tardon <dtardon@redhat.com>
2012-12-18set numbers in svx/uiconfig/ui/compressgraphicdialog.ui to translatable="no"Rene Engelhard1-7/+7
as otherwise we get uiex's output is invalid: svx uiconfig\ui Change-Id: I39b776cdb3561be0bffb8e9ebe3bf9f2660162f6 Signed-off-by: Caolan McNamara <caolanm@redhat.com>
2012-12-18fix 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-17fdo#58399 - revert attempts to untangle and accelerate this mess.Michael Meeks2-20/+12
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-16Compress graphics dialog converted to new widget layout.Tomaž Vajngerl8-461/+807
Change-Id: Ibcf6338f33c40fbe6682a843b4771d51ea5a6845
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-12Resolves: fdo#57469 allow tab to traverse into custom widgetsCaolán McNamara2-2/+2
The magic WB_TABSTOP bit is the one that allows a widget to be accepted as a candidate for getting focus when pressing tab (cherry picked from commit 166d8257979aac6775319a9e1f305bc94df97e29) Conflicts: svx/source/dialog/fontlb.cxx Change-Id: I7d964bae6b84184ccbc4652d66cf3d2637566405
2012-12-06Avoid seeking a cursor to where it already isLionel Elie Mamane1-2/+12
Change-Id: I817aef57f3e028d77cf13f8cca1ecc7afcea9725
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 (cherry picked from commit 0849f7317907d899157f506b235f445b449bcbd6)
2012-12-04added Change picture menu item to graphic shape popupRadek Doulik3-5/+35
Change-Id: I6e4927b847ca6990990be1075c8371404736e27e
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 Behrens8-15/+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 Grandin6-12/+11
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 Yoshida3-5/+4
Change-Id: Ie239d3d0f8f4ec81a4c5dbed3a1a132117875c7c
2012-11-29Pass pointer to view data entry to Paint() instead of its raw flag value.Kohei Yoshida8-41/+37
We need to hide these flags away. Change-Id: I112003a88a92174f5012b3356ba261a039eeccc1
2012-11-29API CHANGE a11y unpublishing and add/removeListener rename.Thorsten Behrens12-63/+38
The a11y API has never really been picked up by tools vendors, let's not tie ourselves up here for no good reason. This unpublishes all css::accessibility, and dependend API. With that, we can change the rather unfortunately-named add/ removeEventListener to be add/removeAccessibleEventListener, thus not conflicting with the XComponent methods of the same name. Change-Id: I595598c3a8e46415f80b2780f333333174865fe4
2012-11-29Change default shape colorAlexander Wilms1-5/+5
Change-Id: I922fe667d6bf892916681988cd8599c7db9dc106
2012-11-28Fix various build breaks.Kohei Yoshida1-2/+2
Change-Id: Ie33a4a02f9820e0d52ca3f17c6b410ebe1e6e8f0
2012-11-28Sync draw object to calc grid for better alignment when zoomingNoel Power22-40/+176
There can be some serious rounding errors involved when calculating where to draw the grid lines for the various row heights in a document. This can be especially true for a document that has many different row heights. This results in draw objects appearing to move relative to the grid line at different zoom levels. This patch attempts to fix this problem adjusting the position of the shapes as they are drawn to ensure their position relative to grid appears to be stable. We do this by translating the position of the shape to the corrosponding position of it's cell anchor. Of course not all shapes are cell anchored and in this case we position the shape relative a temporary synthesized cell anchor. The patch essentially does the following a) calculates the offset to be applied for each shape at the current zoom level to ensure that the shape will be drawn relative to the correct cell grid see drwlayer.cxx, drawview.cxx & gridwin3.cxx, svdobj.[ch]xx b) apply the offset in the drawing layer for each of the different drawing primitives see svx/source/sdr/contact/* c) making sure the position and size of the newly created shape ( at any zoom level ) are still as expected when zoom level is changed. see. sc/source/ui/drawfunc/fuco*.cxx & d) making sure that overlays and handles are displayed at the correct position see svx/source/svdraw/* it could also be that a full blown transform might be needed to additionally scale the object ( to ensure that the edges of the object stay stable relative to ajacent grid lines ) If necessary we could do that in a later step. Change-Id: I02232f8ba192d58dbf96b80adf66c281cd0f65e8
2012-11-28fdo#46808, use service constructor for sdbc::ConnectionPoolNoel Grandin3-4/+4
Change-Id: Id12226af5e537b1eeacbb062ad937a3551e245c0
2012-11-28fdo#46808, Adapt reflection::ProxyFactory UNO service to new styleNoel Grandin1-6/+4
The service is deprecated, but we still have a handful of in-tree users, and converting it lets me thread XComponentContext through a bunch of classes. Change-Id: Iffdfe537ada6b9e4a89f9b3c8dd82ca85f4bfaba
2012-11-27remove legacy String svl's Put*Entry family of function and convert usersNorbert Thiebaud1-1/+6
Change-Id: Iebf4017ce4c2c48389716eac1bbf7f386ac7a296
2012-11-27String => OUString in svl numfmuno + clean-up legacy of GetPreviewStringNorbert Thiebaud1-2/+6
Change-Id: I20f080b76b864208f0706bef9e87cb299f3845aa
2012-11-27Remve obsolete DBG_CTOR/DTOR stuff againStephan Bergmann1-2/+2
...which 0a063f3a36eaf7b90ab6a5cd5b2ad6a63ce9742c re-introduced in error? Change-Id: I2866165bddc74361dcb72e37cf98fb801f629e9e
2012-11-27re-base on ALv2 code. Includes:Michael Meeks755-16998/+11196
Patch contributed by Christian Lippka impress212: #i113063# patch: dubios self assign in svx/source/dialog/framelink.cxx http://svn.apache.org/viewvc?view=revision&revision=1167619 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 cws mba34issues01: #i117712#: fix several resource errors introduced by IAccessible2 implementation http://svn.apache.org/viewvc?view=revision&revision=1172343 cws mba34issues01: #i117719#: use correct resource ID http://svn.apache.org/viewvc?view=revision&revision=1172351 Patch contributed by Andre Fischer Do not add targets for junit tests when junit is disabled. http://svn.apache.org/viewvc?view=revision&revision=1241508 Patches contributed by Armin Le-Grand #118804# corrected GraphicExporter behaviour on shortcut when pixel graphic is requested http://svn.apache.org/viewvc?view=revision&revision=1240195 fix for #118525#: Using primitives for chart sub-geometry visualisation http://svn.apache.org/viewvc?view=revision&revision=1226879 #118485# - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 #118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 13f79535-47bb-0310-9956-ffa450edef68 Patch contributed by Regina Henschel linecap: Reintegrating finished LineCap feature http://svn.apache.org/viewvc?view=revision&revision=1232507 Patch contributed by Wang Lei (leiw) #i118760# split the first table cell vertically, then undo&redo, the Presentation app will crash http://svn.apache.org/viewvc?view=revision&revision=1301361 cleanup globlmn hacks, undo dependent fixmes.
2012-11-27findbar: use new SetPlaceholderText methodIvan Timofeev2-37/+3
Change-Id: I2e9b825110ed2e83c053b2084c4e6c868d1e9d9f
2012-11-26fix crash on impress quit, when custom shapes were added during editingRadek Doulik1-1/+4
- reset connection to this unoshape in sdr object so that it doesn't try to delete uno shape later when it might be already deleted Change-Id: I1195bfdaccceb9d7e3e0f0a48aaacb16f7a46ced
2012-11-26rearrange controls on table data view navigation barLionel Elie Mamane1-40/+43
The settings for font size confused pixels and points ----> correct that with the kind help of Kendy and Thorsten. When font size was adjusted, control width was not recomputed ----> first change font size, then compute widths. First label glued to left of bar ----> add 1 pixel of space. In "row number" text entry area, center the text horizontally. In "row count" label: - justify text to the left for a "complete sentence" emulation with the other controls - use thousands separators + adapt width for that Less space between last button and scroll bar. A bit less space between controls in general. Change-Id: I2bb1e52d9555ecb054f16f762cf4ed5040814f10
2012-11-25Apply Style: Fix the styles preview on Windows.Jan Holesovsky1-1/+1
Change-Id: Ic684e52df585add9ff0f068fa4871ada3916be16
2012-11-25findbar: disable up/down buttons by default, there is no text to searchIvan Timofeev1-0/+6
Change-Id: I67550f0b40e1c0d294bf8837a2e6ad3bb30dac8a
2012-11-25Apply Style: Support styles with background.Jan Holesovsky1-0/+14
Change-Id: Iff3e3c4f3bd2ea09c39db80ed5400efadeafee30
2012-11-25cppCheck: remove dead assignment and dead variablesjailletc361-1/+0
Change-Id: I3f0eae93be7f362ff70f8a544c46cd500d2ca50c Signed-off-by: jailletc36 <christophe.jaillet@wanadoo.fr> Reviewed-on: https://gerrit.libreoffice.org/1153 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2012-11-25Make the font combo box in the toolbar a bit smaller.Jan Holesovsky1-1/+1
Change-Id: I4ea350f7557b53e8edc44679f83d67e4f5326ae1
2012-11-24Apply Style: Correct the font size when it is too big to fit nicely.Jan Holesovsky1-1/+11
Change-Id: I6bfa1d5d4064de70974508fe6122f5289972e9a7
2012-11-24Apply Style: Preview more properties.Jan Holesovsky1-4/+37
Change-Id: I708cea6d5d0fcb675d69312cea212b93ce4e8e39
2012-11-24Apply Style: Preview the text color too.Jan Holesovsky1-6/+11
Change-Id: Id9429b058842b1437e3d3cad171181ea604cc7fa