Commit Graph

3523 Commits

Author SHA1 Message Date
Andrzej Hunt
f35b010a95 Add ITiledRenderable.
We want to have a simple interface that allows access to tiled
rendering without digging into the internals of writer
(and in the future calc/impress/draw).

Change-Id: Ia9c278a48c919333186e5361ff25bb1ab603b846
2014-06-25 13:04:32 +01:00
Andrzej Hunt
837631c6cf LIBLOK: implement getDocumentType, make doctypes unique.
Change-Id: I6cf810af55284cb6ddd9e0bfd879fd19508d127a
2014-06-25 13:04:32 +01:00
Andrzej Hunt
d465dfb209 Implement LibreOfficeKit gtk+ viewer widget.
Very basic, but works.

Change-Id: I0c521e833b53e13065e0be48e6fa767e44b29787
2014-06-25 13:04:31 +01:00
Andrzej Hunt
cd1f3480a6 Fill the alpha channel by default for vcl 32-bit bitmaps too.
Otherwise the alpha channel for bitmaps created directly is empty,
indicating a transparent bitmap (although we don't actually handle
transparency). This complements hardcoding of the alpha channel
in basebmp. VCL bitmaps can be copied bit-for-bit directly into
a basebmp bitmap, hence it's important to make sure we fill the
alpha channel in vcl too.

Conflicts:
	include/vcl/salbtype.hxx

Change-Id: Icb2fa417db6625a6ffa6bd82eb5773ff75be5a3c
2014-06-25 13:04:30 +01:00
Andrzej Hunt
e756452c40 Add base value to set alpha channel for 32 bit colourspaces.
Currently the alpha channel is completely ignored by basebmp.
However this results in completely "transparent" output, meaning
the client has to manually overwrite the alpha channel -- instead
we now set it automatically when writing colourdata.

Unfortunately this doesn't quite work -- it seems that drawing
a non-opaque bitmap/image on top of the existing bitmap can
erase the alpha channel information (i.e. these areas will
once again be transparent -- for example document borders seem
to have a transition effect overlayed onto them): presumably
there is some method that bypasses our RGBMaskSetter (probably
some form of direct manipulation of raw values?).
manipulation in basebmp

Change-Id: Ia4be6a748cc30191a4422121f9ec347d9198b225
2014-06-25 13:04:30 +01:00
Andrzej Hunt
67d7bad694 Use external buffer for LibLO tiled rendering.
Means we can get rid of hackily storing a reference to the last
buffer we created.

Change-Id: I8092a7d87bc391301f75651a59b37fbd73ac64fd
2014-06-25 13:04:30 +01:00
Andrzej Hunt
56fea375b9 Allow passing in external buffers to svp's VirtualDevice.
We also want to be able to set whether or not the buffers
should be painted to top down, so add that parameter
as necessary (default seems to be false, however e.g. gtk
requires this to be true, i.e. needed for tiled rendering).

Change-Id: Id98882e4c7f62508ae5a976c0d8df743460a4ab2
2014-06-25 13:04:29 +01:00
Andrzej Hunt
fd5f324b09 Implement document size retrieval for LibLO.
Change-Id: Ibd69f8e766fd421b05d2305f967179a969bc5b56
2014-06-25 13:04:29 +01:00
Andrzej Hunt
41911db36e Add rowstride to tiled rendering via LibLO.
The buffer width could be larger than the desired rendering
width, hence we need to give the client access to the rowstride.

Change-Id: Ic63c1f455c89960164e076ed2528d43e64e81a40
2014-06-25 13:04:28 +01:00
Andrzej Hunt
0434043aed Return a bitmap buffer for tiled rendering from LibLO.
We still need some way of managing the buffers properly rather
than just keeping a static reference to the last buffer
that was rendered.

Change-Id: I17940c758948aa9418f4e0216ecd253d128cd04f
2014-06-25 13:04:28 +01:00
Andrzej Hunt
d2382e3f3d Add tiled rendering via liblibreoffice.
We still need to add functions for getting dimensions of documents
etc. for this to be truly useful, this is also only usable for writer
documents for now.

Change-Id: I07812c9b72caca71dfd509705af48c1d355cb2f8
2014-06-25 13:04:28 +01:00
Matúš Kukan
2e04936721 Move more oox/drawingml/ internal headers to oox/inc.
Change-Id: I0963c92356f8388ce02fb36e172ad3b2af8ba8f8
2014-06-25 09:45:26 +02:00
Miklos Vajna
efd9abb3ae loplugin:sallogareas
Change-Id: Ia5fbdfd83971ac946de6d022be55d5a286a1bf5a
2014-06-25 07:32:26 +02:00
Noel Grandin
e2080e70fe new compilerplugin returnbyref
Find places where we are returning a pointer to something, where we can
be returning a reference.
e.g.
   class A {
     struct X x;
     public X* getX() { return &x; }
   }
which can be:
     public X& getX() { return x; }

Change-Id: I796fd23fd36a18aedf6e36bc28f8fab4f518c6c7
2014-06-24 11:34:21 +02:00
Matúš Kukan
991eeb3215 Remove unused mpOwner in SvxTextEditSource.
Change-Id: I824e8436945e056840386960308b8e63627a603f
2014-06-24 08:46:09 +02:00
Andrzej Hunt
707a648eb3 LOK: kill saveAsWithOptions.
The saveAsWithOptions/saveAs split existed for reasons of historical
API compatibility. Since we're breaking the API currently we can
now get a clean start, and get rid of the redundant saveAs, and
make saveAsWithOptions the standard saveAs function.

Change-Id: Ia3e2294a8604cab08e95b07544c9d10d42dd1152
2014-06-23 12:24:36 +01:00
Stephan Bergmann
9ede5cd987 Remove unused INetURLObject::PART_* values
Change-Id: Icebdf0cad5306ae42a30de0b4f997e3b611675eb
2014-06-23 11:52:14 +02:00
Matúš Kukan
e787a84c69 Move oox/drawingml/table/ internal headers to oox/inc.
Change-Id: I9de33fdcd8b1ef73d57884033f502ac4a03f63d3
2014-06-23 10:47:35 +02:00
Kohei Yoshida
1d38cb3655 fdo#71076, fdo#71767: Preserve number formats when charts are copied.
Change-Id: If5ae8852152012483237e7602e56a0c46ea8748a
2014-06-19 14:46:56 -04:00
Caolán McNamara
0e09134a4a callcatcher: update unused code
Change-Id: Ia25c686dac799707cae3f6112c731f8cd3f686c2
2014-06-19 10:26:48 +01:00
Miklos Vajna
19863db337 indentation fixes
Change-Id: Ia391ccc9889a135730f0fead11eb0b6c2f748ec4
2014-06-19 09:57:33 +02:00
Stephan Bergmann
160ae9889e Catch illegal null pointer dereferences early
Change-Id: I4d558e9a6e2c4e4d9feb45eb5a3fd01ee322bef8
2014-06-19 09:28:47 +02:00
Andrzej Hunt
f73e4594d3 LOK: kill double initialize.
Change-Id: I4d3dd913faea8b9f4a0bd3c13af37d097ced9888
2014-06-18 12:07:16 +01:00
Caolán McNamara
ffa9a802ea coverity#1028261 Uncaught exception
Change-Id: I7dd08c182657084ffa635e1960f4d0def6d7a6bb
2014-06-18 11:12:11 +01:00
Stephan Bergmann
5106c5fdca Remove newly unused comphelper::ImplementationReference
Change-Id: If272d5025e08fcf5e67de30ffdf177383ef59370
2014-06-18 11:26:34 +02:00
Stephan Bergmann
03a1c42143 rtl::Reference fits just fine here
Change-Id: Ib48999c7fe532b2a8bf5222ef27d8d4929937e3b
2014-06-18 11:26:33 +02:00
Stephan Bergmann
f512114970 Use ImplInheritanceHelper
Change-Id: I259bf6012684e393765cfd73e813bcf2875abd5f
2014-06-18 11:26:32 +02:00
Caolán McNamara
c842486ab0 restore these for the moment, still in use in sc
Change-Id: I6967a3c871338d1801d913d9bb54eba50a7660ca
2014-06-17 20:49:14 +01:00
Szymon Kłos
0cf14968aa RID_FORMULADLG_FORMULA conversion to .ui
Change-Id: I098c9ee9d22ac0401faf7fc6d65e91bf5b4b2bf8
Reviewed-on: https://gerrit.libreoffice.org/9797
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-17 19:42:15 +00:00
Andrzej Hunt
8ba3116a8f LOK: Split into instance and class.
Change-Id: I2b6f33eaf12343c7da1328a932eb703bb4e4ef6f
2014-06-17 16:58:57 +01:00
Matúš Kukan
503facc9c4 These headers are private, also do not export symbols.
Change-Id: Ic63372285fecb6f1be22e92c36cdb6f94733f5c1
2014-06-17 17:05:30 +02:00
Stephan Bergmann
a15715c343 -Wstrict-prototypes
...no reason to not have it enabled for URE C include files and what
little real C code is still left.  (But note that Clang ignores that
warning.)

Change-Id: Ia6940f9f940a0c226e9b724331d65c9862ce32e6
2014-06-17 15:51:54 +02:00
Armin Le Grand
0f61a89e51 Resolves: #i125065# handle critical cases in FillStyle/FillProperties...
toolbar combination
(cherry picked from commit 0ce4a90e14ddc9067d014405235a36aa959c6ea2)

Conflicts:
	include/svx/fillctrl.hxx
	svx/source/tbxctrls/fillctrl.cxx

Change-Id: I9a1b2490a7e9285559dddd4df7fb20c2216fd450
2014-06-17 13:59:38 +01:00
Caolán McNamara
084358a723 coverity#1209942 Uncaught exception
Change-Id: Ice7a4802605fbe59dfb24a27408106756a3494ba
2014-06-17 10:58:03 +01:00
Noel Grandin
3e82897353 improve the inlinesimplememberfunctions clang plugin
Change-Id: I6d5a952901648e01904ef5c37f953c517304d31e
2014-06-17 10:55:17 +02:00
Miklos Vajna
6b5c0a5cb2 VML export: handle textbox text
Previously, we always exported the text of the shape itself. Bring the
VML export in sync with the drawingML export, where we only do that if
the shape doesn't have an associated textbox -- if that's the case, then
export the textbox's text instead.

CppunitTest_sw_ooxmlsdrexport's testFdo69636 is a reproducer for this
problem, the VML assert failed because of the lack of this.

Change-Id: Icb236579da4e3b74e983a95aa5675fed7862d1e1
2014-06-17 01:16:20 +02:00
Caolán McNamara
fc2a0de936 turn the no-space edit widgets into a editwidget feature
especially because most of them don't handle intercepting text getting *pasted*
into them right, so start with the one which does that right.

Change-Id: If6770798872ed3c72c469656ebf0d4fd76d2171d
2014-06-16 16:59:09 +01:00
Caolán McNamara
dd00b2311a convert Save Progress Dialog to .ui
Change-Id: I833e6e9c78620443325b5ef9efa403a5eef497cc
2014-06-16 13:40:05 +01:00
Stephan Bergmann
e9f405a0da Clean up SdrModel::MigrateItemSet
* No need to support null pNewModel argument (the one call site that did pass in
  null explicitly in sd/source/ui/func/fupate.cxx can just as well pass in
  mpDoc, and all existing call sites are guaranteed to pass in a non-null
  value).

* With that changed, SdrModel::MigrateItemSet can be static.  (At least in
  JunitTest_forms_unoapi it could happen that the call from
  svx/source/sdr/properties/attributeproperites.cxx called MigrateItemSet on a
  null GetSdrObject.GetModel(), which was undefined behavior even though it was
  harmless.)

Change-Id: Idface48da7e889c6e5768d0e49bc67c88b4c3ec4
2014-06-16 12:05:37 +02:00
Stephan Bergmann
7242fe6e33 SAL_WARN_UNUSED_RESULT for static Reference::query function
...which the recent loplugin:staticcall changes showed was occasionally used
apparently under the assumption that it was non-static and changed the object
it was called on.

Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b
2014-06-16 10:22:31 +02:00
Caolán McNamara
8d373129e9 callcatcher: update unused code
and strip away some stuff in rsc that should now be dead

Change-Id: I6411e706c50dff299099680f1f942bf61c4e79f2
2014-06-15 20:30:39 +01:00
Caolán McNamara
05f90a9afe Paragraph argument never used in InvalidateBullet
Change-Id: I07ba855e473fb137551e70de9cfa858c5e079324
2014-06-13 17:06:06 +01:00
Caolán McNamara
120a04d678 coverity#983928 Uncaught exception
Change-Id: Ib3b25a0aab2389be68fc8339f9b08a87de419b33
2014-06-13 13:38:25 +01:00
Eike Rathke
a288bebbce resolved fdo#79978 propagate error through DoubleArray of matrix
Regression introduced with 83f77ab066.

Interpreter errors are transported using NaN coded doubles, using simple
setNan()/isNan() to flag and ignore non-numeric values skips all error
values.

Change-Id: I0d3cb30262bc5ba7ee77e53a2bc45e56569fbc4b
2014-06-13 14:21:36 +02:00
Eike Rathke
c9d037e5e8 resolved fdo#79957 propagate ForceArray through jump tokens
ForceArray parameters weren't propagated and enforced to array arguments
on svJump tokens (FormulaJumpToken), namely IF, CHOOSE, IFERROR and
IFNA.

Change-Id: Icf9074f11b826655a52858d778d9a0122d207aa4
2014-06-13 14:21:34 +02:00
Zolnai Tamás
573ced4087 Extract kmz and collada converter code to a seperate function
Plus fix some problems related to temp files.
e.g. kmz converter was creating temp files next
to the input file.

Change-Id: Ib3f367fe1c4ef3cb25f5ca1c3d06b2dde78c5e45
2014-06-13 00:20:36 +02:00
Michael Meeks
ede15aaeb1 liblok: add include for size_t.
Change-Id: Icd7d78a332fbb67e32ab929f0afc5881ab7448eb
2014-06-12 16:33:47 +01:00
Caolán McNamara
18c786cbcd cast loses precision
Change-Id: Ic688f08cada4ae70ea1dfb1e29e249a166456452
2014-06-12 14:28:55 +01:00
Michael Meeks
202dac6e20 liblok: check new methods via macros on nSize, not by de-referencing.
We can't check for NULL from beyond the end of a smaller structure.

Change-Id: Id3754bf747c402cf0d767eda5fd4b5ad6b5789e9
2014-06-12 14:07:23 +01:00
Andrzej Hunt
f24f4f92ee Complete LibreOfficeKit C++ renaming.
Change-Id: Ice611cf5913051346a3a0c0b00ed35a35a0dfe3c
2014-06-12 14:07:22 +01:00