summaryrefslogtreecommitdiff
path: root/svtools
AgeCommit message (Collapse)Author
2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud
the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2012-09-17fdo#46808, Adapt i18n::LocaleData UNO service to new styleNoel Grandin
The implementation of the LocaleData implements the optional XLocaleData4, so rather than creating a new interface for the new-style service, we simply make the service implement XLocaleData4, which in turn implements XLocaleData3, XLocaleData2, XLocaleData. Change-Id: I3e9a48b031be6b2aa5e04b376b3940b942add85a
2012-09-17XubString->OUStringCaolán McNamara
Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann
* As UCB is only ever initialized with "Local"/"Office", remove this configuration vector completely. The "create" ctor creates an instance internally initialized with those "Local"/"Office" keys. Special (test) code can still instantiate an uninitialized one via plain createInstance. And for backwards compatilibity process startup still ensures to create an initialized instance early, in case there is still code out there (in extensions) that later calls plain createInstance and expects to get the already-initialized (single) instance. * XInitialization is an "implementation detail" of the UniversalContentBroker service, do not expose in XUniversalContentBroker. * ucbhelper/configurationkeys.hxx is no longer needed and is removed. * ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that requires ucbhelper::Content constructors to take explicit XComponentContext arguments now. * The only remaining code in ucbhelper/source/client/contentbroker.cxx is Android-only InitUCBHelper. Is that relevant still? Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-14- fdo#35973 - Remember the state of the sidebar pane in Impress (ToolPanel)Rob Snelders
Change-Id: Ifd45a289a5a7b0cb87100e1ff3854ec72143019c Reviewed-on: https://gerrit.libreoffice.org/526 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2012-09-14fix debug messageLuboš Luňák
It did not compile, and not using the deprecated macro fixes that as a side-effect. Change-Id: I97b8cd2ff1a650ec9d38cbf7eeb8780177a7fd7a
2012-09-14gridfixes: fixed assertionFrank Schoenheit [fs]
Change-Id: I89756b173835d0356fee7fbb166d1998bd0415ac Reviewed-on: https://gerrit.libreoffice.org/533 Reviewed-by: Michael Stahl <mstahl@redhat.com> Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: use long instead of sal_uInt32, to prevent pb on 64bit platformsNorbert Thiebaud
Change-Id: Ib612223a5626d4b525b4e86277c0a5623c0955e8 Reviewed-on: https://gerrit.libreoffice.org/540 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: impl_getColumnForOrdinate:no need to subs m_nRowHeaderWidthPixelNorbert Thiebaud
m_aColumnWidths already contains it Change-Id: I404c58fb0b32db7b7b7bf60be997f81709908ceb Reviewed-on: https://gerrit.libreoffice.org/556 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: impl_ni_calculateColumnWidths: re-calculate the proper valuesNorbert Thiebaud
for distributePixel/takeAwayPixel before finally using it to correct the rounding errors Change-Id: I6f3b178400db0696df0289331be94d69f1d4f0d2 Reviewed-on: https://gerrit.libreoffice.org/555 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: ensure removal of a column in grid control adjusts the cursorNorbert Thiebaud
Change-Id: I99be214bf12d340cc5e9330d1c21046dd366b07a Reviewed-on: https://gerrit.libreoffice.org/554 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: re-enable the mouse listeners which got lostNorbert Thiebaud
in a previous change. Do this by making the TableControl a CompoundControl, so VCL cares for everything which is needed. Consequently, get rid of the manual notification of the respective VCLEVENT_*'s, and everything related to it Change-Id: Id8872680b744e1171be916f6f66a4968e9d6567a Reviewed-on: https://gerrit.libreoffice.org/553 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: lcl_getAlignmentTextDrawFlags: row header w/o columnsNorbert Thiebaud
care the rare cases that the table has row headers, but no columns at all Change-Id: Iece17add6f5e0adf425c33f0817e8b1be953e1a7 Reviewed-on: https://gerrit.libreoffice.org/552 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: impl_ni_relayout: update the child window position/size lastNorbert Thiebaud
it relies on the other calculations (in particular calculation of the column widths) being finished Change-Id: I599aa5b2938e2aa810980c00ac8f598b4f4fcfcb Reviewed-on: https://gerrit.libreoffice.org/551 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: fixed selection handling, part INorbert Thiebaud
RowSelection::HandleMouseDown: always forward to the SelectionEngine, even if the hit row is already selected. This ensures proper de-selection handling in case of Ctrl+Click Change-Id: I46fd63332101fd078c6341c94575dc69f48f8a68 Reviewed-on: https://gerrit.libreoffice.org/549 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14UNFINISHED: column resizing refactoringFrank Schoenheit [fs]
Change-Id: Iac8db5ee848f35f19f8fe4eb431485559600be49
2012-09-14gridfixes: #i117398# allow to specify selection colors in table/gridNorbert Thiebaud
Conflicts: toolkit/inc/toolkit/helper/property.hxx toolkit/source/controls/grid/defaultgriddatamodel.cxx Change-Id: Ie863aa7cecb4c7bda230ab829e6090689518dab8
2012-09-14gridfixes: #i117398# cleaned up the row selection APINorbert Thiebaud
- made explicit that it is about row selection, leaving room for a future selection of columns - some changes for consistency - do not derive XGridControl from XGrid(Row)Selection, those two are orthogonal - published involved UNO types Change-Id: Ie97de42a9ea70a0191657f898ca9d59706e23290 Reviewed-on: https://gerrit.libreoffice.org/542 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: copied #i112562#'s fix from CWS gridcontrol06 hereinNorbert Thiebaud
Change-Id: Ifa29a8b3c027970d46844b428a3529e680c0b09c Reviewed-on: https://gerrit.libreoffice.org/541 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: #i112465# delegate RequestHelp to the base class,Norbert Thiebaud
when we do not have own help to display Change-Id: I953144aa0921e849df14e9de31010e8904dffc5f Reviewed-on: https://gerrit.libreoffice.org/539 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: when the table controls doesn't have the focus use diff. color.Norbert Thiebaud
use a different color to paint the selection, to be consistent with all our other controls Change-Id: Ia5160dfb769279e2a8a3458b16fe8f6cec08145e Reviewed-on: https://gerrit.libreoffice.org/537 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-14gridfixes: #i117265# use a NumberFormatter for converting cell values to text.Norbert Thiebaud
This means using the Locale setup in the Options, and allows for more value types (like Date/Time) to be supported Change-Id: I78fb08f2da88405851664e3e1dd4505c3727e56b Reviewed-on: https://gerrit.libreoffice.org/534 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
2012-09-11XubString->rtl::OUStringCaolán McNamara
Change-Id: If7e5d015c95f8f173750ca32e061d69f56e2d93e
2012-09-06offapi: move css.ui.UICommandDescription to css.frame.UICommandDescription:Michael Stahl
The service implementation used "com.sun.star.frame.UICommandDescription" since forever, so the IDL file was essentially wrong documentation. But since 7a464263cc5c2ca2b7128734ff4860e02d662818 converted the service to new-style, it cannot be instantated any more and e.g. clicking on Tools->Customize crashes. (Adapting the implementation instead would be an incompatible change.) Change-Id: I564bddaf3836827f5b72360a2bde19d6158b7ba5
2012-09-05Some clean up of previous commitStephan Bergmann
Change-Id: I14097acf09e9663af7d7abc5f0c9d481880ecc51
2012-09-05fdo#46808, Adapt frame::ModuleManager UNO service to new styleNoel Grandin
Create a merged XModuleManager2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Explicitly document the XNameReplace interface in the IDL, which is already implemented by the service, since there is code currently using it. Change-Id: Ib46349174b1ce495c240031e93c9427fc33d9853
2012-09-03More places that require a prefixed "system"Stephan Bergmann
Change-Id: I49cf1f02faf70a5a92ab45e7678253ba4e5f68d0
2012-09-03fdo#46808, Adapt system::SystemShellExecute UNO service to new styleNoel Grandin
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
2012-09-03fdo#46808, Adapt UICommandDescription UNO service to new styleNoel Grandin
Change-Id: Ibca112904f137ff981ae9be3e5bd56aa11aec352
2012-09-03fdo#46808, Adapt ModuleUIConfigurationManagerSupplier UNO service to new styleNoel Grandin
Change-Id: I58b17349474b974edd24aa17ec08ffa848a92ae9
2012-09-02Stepwise rebuild bitmap rendering from scratch to avoid rendering bugs.Tomaž Vajngerl
Bitmap rendering was rebuild from the original state and checked for rendering bugs at every change. Currently the implementation supports scaling by averagin for RGB channels an for alpha channel in some cases. For scaling factor > 0.6, the original bilinear scaling is used. Implementation is currently still in "outdev2" but is decoupled and will be moved to its proper place into "bitmap" and "bitmapex". Change-Id: I6feb744712956a92d6140d079dc3a85ee8511930
2012-08-29String::Expand -> string::padToLengthCaolán McNamara
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
2012-08-28-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
Change-Id: I2a181d1442ef3b41ecba009d160d2d18d6fb71ac
2012-08-27fdo#46808, Adapt document::DocumentProperties UNO service to new styleNoel Grandin
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
2012-08-26remove VBA_OOBUILD_HACK and friendsNoel Power
Change-Id: I5c21a407bcae1b668976b94a757d564120973b1a
2012-08-23Moldovan -> Romanian (Moldova)Andras Timar
Change-Id: I5d754099ca0ce2a82d1d89df4ab2b146b1cc2f4e
2012-08-22fdo#51911 add Moldovan (ro-MD) to language selection listAndras Timar
Change-Id: I916097048b6c8767745bcdd56430d5d2cc832e71
2012-08-22fdo#51777: add a hack for 1 twip DOUBLE borders:Michael Stahl
Arguably such annoyingly thin double borders don't make much sense anyway, because they're essentially 2 hairlines with ~no space between, but unfortunately older LO versions are able to create them; since the refactoring in 2d045cdb69176b280812dda0b813371cf1ac72e2, which changed the BorderWidthImpl::Get* methods to return 0 due to rounding, they were ignored at least in the HTML import, which is a regression. So add a special purpose hack that essentially rounds up the first line to 1 but not the other lines so the visual result is a hairline single border. Change-Id: I20ac4675bcf67ea58a6931a40bff3605390e9c0d
2012-08-21add more runtime deps on resource files for unit-testsMatúš Kukan
Change-Id: Id9bbb2bbcafe335eada3f36ae103a9074a56848f
2012-08-18remove some useless commentsThomas Arnhold
Change-Id: Ied223890539a3407abbed7c7135dfc3de2f2fe48 Reviewed-on: https://gerrit.libreoffice.org/429 Reviewed-by: Philipp Riemer <ruderphilipp@gmail.com> Tested-by: Philipp Riemer <ruderphilipp@gmail.com>
2012-08-17gbuild: register all jarsMichael Stahl
Change-Id: I9f49970e5e06d1afd3fc066a20d1671c93e262fc
2012-08-15-Werror,-Wunused-private-field (Clang towards 3.2)Stephan Bergmann
Change-Id: I1341170e8ca43e23723a88ec05d826981e4473ee
2012-08-15that->than in comment typoCaolán McNamara
Change-Id: I3c0e8ce9b2aabe0bd27d5d6d15cd7cb53f72c31c
2012-08-14Fix transparent bitmap rendering.Tomaž Vajngerl
Convert transparent mask to 8bit-grey after scale/rotate/crop transformation. Use correct perspective at rendering. Change-Id: I80b19d7bec880b0c58709c7c5bee6199cbc815c9
2012-08-14code cleanupRob Snelders
Change-Id: Ib154cd53253e4d802d13a024a20f6c34d499e672
2012-08-13Convert from tools/list.hxx to tools/contnr.hxxNoel Grandin
Most places don't need to include tools/list.hxx Change-Id: Ib2415fbbf92b039a77e1f5c21856f03de60262d4
2012-08-13unusedcode.easy: remove unused codeThomas Arnhold
Change-Id: I87e7264ffd3086796aaa8e136c2f9b77fde7b74f
2012-08-13remove duplicate code, thanks to Petr Mladek for spottingIvan Timofeev
Change-Id: I136dc9e314197ac100f1f0d12d1f485dc659af9f
2012-08-09validate polypolygon point countsCaolán McNamara
Change-Id: Ibf6bdf48e5855583f14cd2be36f1e4896a396d32
2012-08-08fdo#50654: update virtual device width on modifying WB_EXTRAFIELD flagIvan Timofeev
Writer sets this flag dynamically via Ruler::SetStyle depending on the text direction, the flag is set by default and gets unset for the vertical ruler, because the initial text direction is horizontal, see SwView::StateTabWin. Ruler::SetStyle calls Ruler::ImplInitExtraField, which modifies mnVirOff, however mnVirWidth depends on mnVirOff, but gets updated only in Resize. This patch copies the code from Resize to ImplInitExtraField, we cannot just call Resize from ImplInitExtraField due to possible infinite recursion. Change-Id: Ic7bb897059295aebe86c11977c37419017b55787