Commit graph

7064 commits

Author SHA1 Message Date
Norbert Thiebaud
b854de954f deprecate oustringostreaminserter.hxx
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-18 10:10:06 +00:00
Caolán McNamara
c20ba023c7 XubString->OUString
Change-Id: Ic8b191dfb0d14e129dc804aeb4ac14c732e72e6b
2012-09-17 10:46:27 +01:00
Stephan Bergmann
9ac86f484b Improvement on previous commit, UCB clean up
* 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 18:24:49 +02:00
Rob Snelders
fb42827f32 - fdo#35973 - Remember the state of the sidebar pane in Impress (ToolPanel)
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-14 14:36:14 +00:00
Luboš Luňák
04ddb79f50 fix debug message
It did not compile, and not using the deprecated macro fixes that
as a side-effect.

Change-Id: I97b8cd2ff1a650ec9d38cbf7eeb8780177a7fd7a
2012-09-14 13:33:53 +02:00
Frank Schoenheit [fs]
19e1c3add5 gridfixes: fixed assertion
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-14 08:02:15 +00:00
Norbert Thiebaud
6dfd1803a9 gridfixes: use long instead of sal_uInt32, to prevent pb on 64bit platforms
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-14 08:01:24 +00:00
Norbert Thiebaud
906cce2545 gridfixes: impl_getColumnForOrdinate:no need to subs m_nRowHeaderWidthPixel
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-14 07:58:31 +00:00
Norbert Thiebaud
5deceabaa6 gridfixes: impl_ni_calculateColumnWidths: re-calculate the proper values
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-14 07:56:36 +00:00
Norbert Thiebaud
c1c12bd160 gridfixes: ensure removal of a column in grid control adjusts the cursor
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-14 07:54:39 +00:00
Norbert Thiebaud
a6754e5a09 gridfixes: re-enable the mouse listeners which got lost
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-14 07:52:56 +00:00
Norbert Thiebaud
b68f053b76 gridfixes: lcl_getAlignmentTextDrawFlags: row header w/o columns
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-14 07:51:48 +00:00
Norbert Thiebaud
712c1c4172 gridfixes: impl_ni_relayout: update the child window position/size last
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-14 07:50:48 +00:00
Norbert Thiebaud
dd0431a537 gridfixes: fixed selection handling, part I
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-14 07:48:39 +00:00
Frank Schoenheit [fs]
a1f695dea5 UNFINISHED: column resizing refactoring
Change-Id: Iac8db5ee848f35f19f8fe4eb431485559600be49
2012-09-14 09:49:28 +02:00
Norbert Thiebaud
fe08068cf9 gridfixes: #i117398# allow to specify selection colors in table/grid
Conflicts:

	toolkit/inc/toolkit/helper/property.hxx
	toolkit/source/controls/grid/defaultgriddatamodel.cxx

Change-Id: Ie863aa7cecb4c7bda230ab829e6090689518dab8
2012-09-14 09:38:47 +02:00
Norbert Thiebaud
a5d4e7806c gridfixes: #i117398# cleaned up the row selection API
- 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-14 07:19:55 +00:00
Norbert Thiebaud
2095b2e1d4 gridfixes: copied #i112562#'s fix from CWS gridcontrol06 herein
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-14 07:15:44 +00:00
Norbert Thiebaud
3d934d4860 gridfixes: #i112465# delegate RequestHelp to the base class,
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-14 07:10:51 +00:00
Norbert Thiebaud
87e333667b gridfixes: when the table controls doesn't have the focus use diff. color.
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-14 07:05:38 +00:00
Norbert Thiebaud
a7e949673c gridfixes: #i117265# use a NumberFormatter for converting cell values to text.
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-14 06:59:57 +00:00
Caolán McNamara
3e635c3368 XubString->rtl::OUString
Change-Id: If7e5d015c95f8f173750ca32e061d69f56e2d93e
2012-09-11 10:54:24 +01:00
Michael Stahl
6a1c29d7ef offapi: move css.ui.UICommandDescription to css.frame.UICommandDescription:
The service implementation used "com.sun.star.frame.UICommandDescription"
since forever, so the IDL file was essentially wrong documentation.
But since 7a464263cc 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-06 11:13:42 +02:00
Stephan Bergmann
24391f6057 Some clean up of previous commit
Change-Id: I14097acf09e9663af7d7abc5f0c9d481880ecc51
2012-09-05 14:56:19 +02:00
Noel Grandin
1c7a54e3a1 fdo#46808, Adapt frame::ModuleManager UNO service to new style
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-05 14:56:19 +02:00
Stephan Bergmann
756352698d More places that require a prefixed "system"
Change-Id: I49cf1f02faf70a5a92ab45e7678253ba4e5f68d0
2012-09-03 18:34:24 +02:00
Noel Grandin
bc00717bb7 fdo#46808, Adapt system::SystemShellExecute UNO service to new style
Change-Id: Ib298b3219c3e89dd35bce0974846ed4888ed941e
2012-09-03 15:55:05 +02:00
Noel Grandin
7a464263cc fdo#46808, Adapt UICommandDescription UNO service to new style
Change-Id: Ibca112904f137ff981ae9be3e5bd56aa11aec352
2012-09-03 15:55:03 +02:00
Noel Grandin
10362695c2 fdo#46808, Adapt ModuleUIConfigurationManagerSupplier UNO service to new style
Change-Id: I58b17349474b974edd24aa17ec08ffa848a92ae9
2012-09-03 15:55:03 +02:00
Tomaž Vajngerl
4b161067d4 Stepwise rebuild bitmap rendering from scratch to avoid rendering bugs.
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-09-02 17:30:51 +02:00
Caolán McNamara
cbba41823a String::Expand -> string::padToLength
Change-Id: I684e371c31ba76d2e9b563eed70449764346161b
2012-08-29 11:43:50 +01:00
Stephan Bergmann
7f7e0a6682 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I2a181d1442ef3b41ecba009d160d2d18d6fb71ac
2012-08-28 16:49:11 +02:00
Noel Grandin
170cfbc625 fdo#46808, Adapt document::DocumentProperties UNO service to new style
Change-Id: I19015d3e3e9aa6e4b3b4bb011183c73ab00365ca
2012-08-27 15:40:07 +02:00
Andras Timar
51b0ada740 Moldovan -> Romanian (Moldova)
Change-Id: I5d754099ca0ce2a82d1d89df4ab2b146b1cc2f4e
2012-08-23 15:37:05 +02:00
Andras Timar
0557510561 fdo#51911 add Moldovan (ro-MD) to language selection list
Change-Id: I916097048b6c8767745bcdd56430d5d2cc832e71
2012-08-22 21:31:07 +02:00
Michael Stahl
601bfe2ce3 fdo#51777: add a hack for 1 twip DOUBLE borders:
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 2d045cdb69,
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-22 00:34:52 +02:00
Thomas Arnhold
cfda6c9a00 remove some useless comments
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-18 16:49:22 +00:00
Stephan Bergmann
3a54474c40 -Werror,-Wunused-private-field (Clang towards 3.2)
Change-Id: I1341170e8ca43e23723a88ec05d826981e4473ee
2012-08-15 15:19:15 +02:00
Caolán McNamara
90bde1cbe2 that->than in comment typo
Change-Id: I3c0e8ce9b2aabe0bd27d5d6d15cd7cb53f72c31c
2012-08-15 13:37:42 +01:00
Tomaž Vajngerl
42801a0e69 Fix transparent bitmap rendering.
Convert transparent mask to 8bit-grey after scale/rotate/crop
transformation. Use correct perspective at rendering.

Change-Id: I80b19d7bec880b0c58709c7c5bee6199cbc815c9
2012-08-14 20:43:18 +02:00
Rob Snelders
b843d90568 code cleanup
Change-Id: Ib154cd53253e4d802d13a024a20f6c34d499e672
2012-08-14 15:10:55 +02:00
Noel Grandin
0beb6bc4b3 Convert from tools/list.hxx to tools/contnr.hxx
Most places don't need to include tools/list.hxx

Change-Id: Ib2415fbbf92b039a77e1f5c21856f03de60262d4
2012-08-13 22:48:15 +02:00
Thomas Arnhold
582e06f71c unusedcode.easy: remove unused code
Change-Id: I87e7264ffd3086796aaa8e136c2f9b77fde7b74f
2012-08-13 18:18:42 +02:00
Ivan Timofeev
7fbab3fc35 remove duplicate code, thanks to Petr Mladek for spotting
Change-Id: I136dc9e314197ac100f1f0d12d1f485dc659af9f
2012-08-13 17:27:55 +04:00
Caolán McNamara
919632bd5e validate polypolygon point counts
Change-Id: Ibf6bdf48e5855583f14cd2be36f1e4896a396d32
2012-08-09 08:41:08 +01:00
Ivan Timofeev
84d5e639b0 fdo#50654: update virtual device width on modifying WB_EXTRAFIELD flag
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
2012-08-08 17:26:58 +04:00
Thomas Arnhold
2beba8f93e reduce ascii noise and useless comments
Change-Id: I317058e3b25cebb7c1d89361636261c5f16a84d4
2012-08-08 13:53:54 +02:00
Thomas Arnhold
49ad17e2b1 remove include comments and boxes
Change-Id: I9ccf664e8f75a68b1b87c2b29ae617a90d0741a7
2012-08-08 13:53:53 +02:00
Noel Grandin
daccbc1e07 Convert from tools/list.hxx to std::list in GraphicCache
Change-Id: I020a2e9ef8485549d0c66798c8b651641319e17a
2012-08-08 13:53:08 +03:00
Noel Grandin
016918cf94 STL'ify SV_DECL_IMPL_PERSIST_LIST
Converts it to a template based on std::vector

Change-Id: Id7f89f494164c61a3a573cff443ac0e0488e93f1
2012-08-08 13:53:07 +03:00