Commit graph

307553 commits

Author SHA1 Message Date
Tor Lillqvist
533092a738 touch depends on sal, toolkit depends on touch
Change-Id: I77e108391b48a9dc50491f8e76de8f277f92dfc6
2012-06-18 23:01:49 +03:00
Tor Lillqvist
daaa550121 Pass also scale and offset to createScreenCompatibleDeviceUsingBuffer()
Pass on to VirtualDevice where used to set the MapMode of the device
appropriately. Adapt DocumentLoader, use to scale the page rendering
to exactly fit the virtual device.

Change-Id: I4b0bc67e12114d3d9d493ff1aca2ef5d2cc78912
2012-06-18 22:38:41 +03:00
Tor Lillqvist
8dd75128a5 ByteBufferWrapper tweaks
operator() gets called in a Java GC thread. A JNIEnv* saved in the
constructor (which is called from the UI thread) is not valid in other
threads (although for now, Dalvik notices, warns, and works around
it). So don't bother keeping the JNIEnv*. Instead fetch one when
needed. Move the method implementations from inline in the header to
libotouch's android.cxx.

Change-Id: I7de6fc54bb8d9a59146576d6e8c325fe917393ee
2012-06-18 22:38:30 +03:00
Tor Lillqvist
36244dcfa1 Drop accidentally duplicated section
Change-Id: I7444c59efa4fceff9046341cbac934488dd67514
2012-06-18 20:22:46 +03:00
Lionel Elie Mamane
b86f2147e4 fdo#43967 legacy report designer wizard formats dates improperly
1) Set FormatsSupplier property only if underlying object has one.
   Else, exception is thrown and the format is not set
2) getTyperelatedFieldData uses the format keys, so initialize them
   before call, not after.

Change-Id: I68c4c96a9da9a6afdc3ab8964e973588f53ee814
2012-06-18 16:47:30 +02:00
Stefan Knorr (astron)
f4c567f8d4 Remove License/Credits menu items
The About dialog now houses these functions.

Change-Id: I7f751027564897a063d2910644c69680d471b6d9

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-18 16:34:44 +02:00
Ruslan Kabatsayev
a7f69caf25 GTK: don't crash on X errors
Change-Id: I5b1353b409bc7043d2d1c313a3606ed807eced4b

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-18 16:32:52 +02:00
Caolán McNamara
e31de5e002 detect wrong UniString ctor
there's no way j was intended to be used as a rtl_TextEncoding
here. From context it's clearly meant to create a UniString from
a subset of the input ByteString

Change-Id: Ic0a0773f90686d73ec4eb8b8e03a454585758578
2012-06-18 15:13:52 +01:00
Caolán McNamara
06e2005ed8 convert LocaleDataWrapper to OUString
Change-Id: Icb5f5adf9139d1c0f0e86d8128ea6742ce20b138
2012-06-18 15:13:51 +01:00
Caolán McNamara
8e01e88145 add a route to compare a O[U]String to one code unit
Seems very awkward to create an entire temporary O[U]String just to compare it
to another when we want to know if that other contains just one char of a given
value

Change-Id: Iacd4e0d87dc5c5211fa06c61c55e1ed85b1e91f3
2012-06-18 15:13:51 +01:00
Caolán McNamara
40445a57c6 use boost::noncopyable
Change-Id: I1a72115796dfe876fe20bc3fecd9897c90da8db5
2012-06-18 15:13:51 +01:00
Caolán McNamara
5819bec966 ditch last (?) String::String(const sal_Unicode*)
Change-Id: I47ce16581a9923729a7e5e1e5cedaf91e4b215ac
2012-06-18 15:13:51 +01:00
Caolán McNamara
0e0aca151b callcatcher: drop unused macro-generated GetChildWindowId methods
add _WITHID variants for the cases where we (apparently?) still need
them.

Change-Id: I3b8290869368487f04ecd93a5f3a717de7fd10b4
2012-06-18 15:13:51 +01:00
Takeshi Abe
40bb1f631b removed unused forward declarations of class
Change-Id: I32894b853912741e935e2409d2857fe384f67665
2012-06-18 23:04:20 +09:00
Stephan Bergmann
213d5355d7 Clean up some more
...making use of Java 5 variadic function parameters.

Change-Id: I1b538ec7fbb3021a225031543e25dad081a7a409
2012-06-18 14:23:19 +02:00
Noel Grandin
5695aea3bb Add casts to reduce javac warning messages.
These warning arise because of the additional of varargs parameters
in Java1.6. Casting the parameter eliminates the compiler
confusion.

Change-Id: I4906bcfa2700ef80a67b79c61c6848a18e8a7168
2012-06-18 14:16:32 +02:00
Stephan Bergmann
b0d2e68244 -Werror=unused-parameter
Change-Id: Icb7fe93b6f21c8d34dcd263dbac07b32a5cb0432
2012-06-18 13:44:40 +02:00
Stephan Bergmann
d5e9c2e3e8 fdo#50603: Close fds across a restart of soffice on Mac OS X
...where the restart is directly from the old soffice instance, via exec, so the
restarted soffice would inherit all open fds from the old one.  The easiest
approach appears to close fds upon startup.

Change-Id: I89bb1c78f3adf2da1cd3cbd58c22df276133a883
2012-06-18 13:00:08 +02:00
Brad Sowden
20def8ddd8 Remove unnecessary temp variable
The only impact aTmpQHD.Move() has on pQuickHlpData is clearing
m_aHelpStrings but this is done anyway in the pQuickHlpData->Stop()

Change-Id: Ie730ddb1860461c81558275d54e32846c1495abe
2012-06-18 12:39:39 +02:00
Brad Sowden
3953c293e4 Remove redundant IF clause
ClearCntnt() already sets m_bIsTip and m_bIsAutoText to true.

Change-Id: Ic3ad53a7659dbfe4f28f7995976e659f5bd14afb
2012-06-18 12:39:39 +02:00
Brad Sowden
1f77d7c0c3 Clearer function names
Change-Id: I7434842fe8392eeb6e3c5fd8e605ee444f66b017
2012-06-18 12:39:39 +02:00
Brad Sowden
dc019876d8 Member variables can be made local
Change-Id: I571eaa936f8d1afb421da3137aa090e916e633ba
2012-06-18 12:39:39 +02:00
Brad Sowden
d246b85303 sal_Bool (bit field) to bool and variable renames
bIsAutoText  -> m_bIsAutoText
bIsTip       -> m_bIsTip
bChkInsBlank -> m_bAppendSpace
bClear       -> m_bIsDisplayed

Change-Id: I7aa047b7e14ed6bd05528c8650ba4c4b7fcb07d2
2012-06-18 12:39:38 +02:00
Brad Sowden
25d43d348c Some doxygen comments for QuickHelpData
Change-Id: Id6e91985f6dbdd8244df9bef0f7a938ac8ecbf3a
2012-06-18 12:39:38 +02:00
Markus Mohrhard
e8d8e9eb7c fix the number detection in data bar dialog
Change-Id: I6da7b2087114b7eb274f0a62dd531dd136ad507a
2012-06-18 12:09:18 +02:00
Markus Mohrhard
a87676e32e remove two cppcheck warnings in sc
Change-Id: Id22cfeab7c39c37a10d5508b7f0479f3fdc784a3
2012-06-18 12:09:18 +02:00
Miklos Vajna
94037e30f9 dmapper: fix crash in ListLevel::SetParaStyle
This can be triggered by using a style in the docx document, then
manually removing that style from styles.xml.

Change-Id: I4aad54d088d9fa56371ff49220316fb14fce6c37
2012-06-18 11:55:09 +02:00
Joel Madero
2ab4312961 Change validate "between" and "not between" to "valid/invalid range"
Changes Calc validate text from "between" to "valid range" and "not between" to "invalid range". This is to minimize confusion as to inclusion of minimum and maximum values as between implies non inclusive but is in fact inclusive of min and max values.

Committer: Joel Madero <joel@joel-Studio-1737.(none)>

On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

	modified:   sc/source/ui/dbgui/validate.cxx
	modified:   sc/source/ui/dbgui/validate.src
	modified:   sc/source/ui/inc/validate.hrc

Change-Id: I2259c22da2e976b25c71e11806df13636bdbc757

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-18 11:30:19 +02:00
David Tardon
012b43d571 fdo#30519 paint scrolled area from the right surface
This adds a way to test whether mpCompositeSurface contains the front
buffer image, so it can be used as a source in painting operations.
It means the mpCompositeSurface changed status from 'temporary' to
'persistent' (which it was anyway, from implementation POV :-)

Change-Id: Iee4fc7a97cd60e47d0abb148e7337f0b50cabb40
2012-06-18 10:55:31 +02:00
David Tardon
990586bd5b change the way par files for ins are collected
This avoids the need for $(wildcard), which seemed to cause problems in
some cases (in gentoo ebuild) and I never found any missing dependency
that might account for it.

Change-Id: Ia03d630bb85309fbb7da3068c396834fb56cffb1
2012-06-18 10:55:31 +02:00
David Tardon
fb1d37b4ba OSL_TRACE -> SAL_INFO
Change-Id: Icc6f47cc76dfa6716fc44f6c1b5f1b11ba1443c6
2012-06-18 10:55:31 +02:00
David Tardon
0b55e9b4b3 missing intialization
Change-Id: I2350adf98e12b9c9cda4c18a6ba9f935016ac299
2012-06-18 10:55:30 +02:00
Ruslan Kabatsayev
3f99658879 Fix arguments of Rectangle constructor
Change-Id: I8f288e55694ac85f8dcd2884a53ff4b5b9eef02f
2012-06-18 10:53:27 +02:00
Chr. Rossmanith
95e1401f7f SVG: use dash parameters from svg file
Change-Id: I86b31156e1a9221d9cfdc40d5670b324ce056a89
2012-06-18 10:53:27 +02:00
Miklos Vajna
2db200e0c6 oox: last vmlshape doxygen mistakes
Change-Id: I1d74aad0280662cd06dcc633072402ba13199898
2012-06-18 10:36:53 +02:00
Fridrich Štrba
1d1c70d811 Trying to solve out of bonds in fdo#48601
Change-Id: Idf9d56714d658a14af826a74c58aad26a9e29414
2012-06-18 10:20:27 +02:00
Norbert Thiebaud
d524da2c3b rtl: (i119939) memory leak
Change-Id: I1ab34337785967d6cbac9ab47c5a2bb517001840
2012-06-17 15:10:16 -05:00
Norbert Thiebaud
f9fb24e17f writer: crash(i119959) paste of multi-line draw-text into bullet list
Change-Id: I82da331b478cd258e5f9803dfac4cb203d2dc9f6
2012-06-17 14:59:46 -05:00
Norbert Thiebaud
de1c42d9f5 writer:crash(i118878) when adding columns and chang. properties in a frame
when adding columns, GetNumCols() reflect the new number of columns
before the actual columns available are updated.
Due to the way and order in which properties are updated
the code that adjust the columns can be run before the new columns
are avialable.. and was using GetNumCols().
This patch avoid using that api and rely on the column iterator
to determine the acutal number of column available.

Change-Id: I52e75ec82c1ace65b05b8df9e54f4689f2aec8d3
2012-06-17 13:33:03 -05:00
David Tardon
794e2e601f (incomplete) attempt to build internal python with MinGW
Change-Id: I39c880e8615b164a66eb900c11b26da9d6489e02
2012-06-17 17:36:52 +02:00
Daniel Bankston
62cab9f5d3 Remove unused variables and parameters
Change-Id: I8691529e6260ea4d9e9d1d61ce3b1b28de7a676e
2012-06-17 17:04:04 +02:00
Daniel Bankston
1f2c836e7a Fix regression that caused extra validation entries to be added to scdocument
Was adding duplicate validation entries that only had the
base cell address different.

Change-Id: I7cfe78c98cff350f2621cb4f321134ade04d0158
2012-06-17 17:04:04 +02:00
Daniel Bankston
8da59adb3d Improve unit test for ODS import of data validity
-Test now ensures only the expected validation entries are tested against.
-Error output for cell validity check is improved.  The error message now
 displays each cell address that failed instead of just the first one that
 fails.

Change-Id: Ic93de0dc3e465e914470634ffab2bfb5ccbe2da7
2012-06-17 17:04:04 +02:00
Daniel Bankston
39aa1e93d7 Convert ODS import of Data Validaty to direct sc
Change-Id: Ia64c76d8e056b478fe4b6617fe262ac582008caa
2012-06-17 17:04:03 +02:00
Daniel Bankston
70726d18c7 Add unit test for ODS import of Data Validity
The unit test checks for the proper importation of the test document's
1) data validation entries
2) data validity of associate cells
3) content

Change-Id: I2858663c1d988557fc3783ecaf74892d370c1c93
2012-06-17 17:04:03 +02:00
Daniel Bankston
9e24ae6d3b Add ODS unittest that checks merged cells and their content on multiple sheets
Existing unit tests did not check if cells were merged correctly on more than
one sheet.

Change-Id: Ibd4d29abd7345afc95fede2a17c7e498d8cac3d9
2012-06-17 17:04:03 +02:00
Daniel Bankston
b622286b81 Move logic in AddFormulaCell() that adds non-formula cells into its own method
Change-Id: Icc607e48f5d7bb538c8549b40f21d5e0a75a1511
2012-06-17 17:04:03 +02:00
Daniel Bankston
3c6fc6ce98 Put logic that adds nonformula cells into its own method
Change-Id: Ieb8d806e8890166c7ccb2188a79368873aaf42a7
2012-06-17 17:04:03 +02:00
Daniel Bankston
a137ecf74a Put some conditional statements into readable methods and do minor formatting
Change-Id: I82d6349db5e7e3afdc36d893155539129f9d120c
2012-06-17 17:04:03 +02:00
Daniel Bankston
d441f74a6d Move EndElement()'s logic (that adds formula cell to doc) into its own method
Change-Id: Idd88d66856e5b9ec5e63e238434902daaa4e7f3e
2012-06-17 17:04:02 +02:00