14850 Commits

Author SHA1 Message Date
Zolnai Tamás
9ee69cbd6f glTF export: Use plural folder names
Change-Id: If17628395ede512c00b666efc5511d9711edfb5a
2014-06-16 12:58:52 +02:00
Andras Timar
76fe2776af translatable="yes" in .ui files
Change-Id: I2f15875aaba4d960e7b66d38286ef08e091532e1
2014-06-16 12:32:25 +02: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
Matúš Kukan
97dae845c2 Use proper name also when libmerged is used.
gb_Library__get_name was forgotten in
1817366cb5f61337b34b5284615d3d4e0a8aa68a

Change-Id: I42592d70455b9c695879d7fa20881c77a1ca2066
2014-06-16 10:33:42 +02:00
Zolnai Tamás
634530620e Fix --disable-gltf build
saveAndReload tests export, which is needed only
when gltf support is enabled.

Change-Id: I08152c12db77ad2fc623f2699784b968378686db
2014-06-15 06:05:14 +02:00
Stephan Bergmann
448c62835b SdStyleSheetPool::GetBulletFont can be static
...that's why the problem fixed in 0466c0dcddd3b5af02c711794e8cd4c3c6c12993 "Set
mxStyleSheetPool before using it" had never caused trouble in practice (and its
change to SdDrawDocument ctor can be reverted again)

Change-Id: I662995ab4fcaa7ae461cb9575666825d8a869735
2014-06-13 18:09:20 +02:00
Caolán McNamara
8a5b397105 Resolves: fdo#78151 change style on toggling bullets on master page outliners
"do what I mean"

In master pages prior to this if we toggle bullets on and off the that changes
the *level* of the paragraph. And because the paragraph is effectively a
preview of the equivalent style level, changing the level disconnects it from
the style which is useless for us.

So instead turn the numbering off at the given outline level. In order to
toggle the numbering back split the defaults-setting into a reusable piece that
sets the numbering indent which we can call to toggle numbering back on

Also split out the broadcast style change *and explicit child* broadcast code
into a reusable method, the absence of which left me stumped for well over an
hour as to why my changes only worked on level 1

Change-Id: I311c7f35f1ca7dff1d151c6141ff5faa7f15c5a2
2014-06-13 17:06:06 +01:00
Stephan Bergmann
c6eb208473 loplugin:staticcall
Change-Id: I502702dfd04405748a314bd171e6298850777c0a
2014-06-13 17:54:31 +02:00
Stephan Bergmann
0466c0dcdd Set mxStyleSheetPool before using it
Change-Id: Id5ce3555c487aa7abcf97855a036663c91dd28b1
2014-06-13 12:08:04 +02:00
Zolnai Tamás
ca3a1e1c6b 3D model insertion: display extensions in the filter selector
Change-Id: I8c7b7a311cbd38058540d3462b0497ebe3d28a9e
2014-06-12 21:43:36 +02:00
Zolnai Tamás
e8fcf1153f Change glTF mime type: {application -> model}/vnd.gltf+json
There is no an accepted mime type for glTF models yet, so
follow collada's mime type: model/vnd.collada+xml.

Change-Id: I1e23a95dbb0caea781dade819f8e08235cb5c1dc
2014-06-12 21:43:36 +02:00
Zolnai Tamás
653bac184f Make glTF support an experimental feature
Change-Id: I75e69ba1acafbab8362536f02f4d39a8fc2deed1
2014-06-12 21:43:36 +02:00
Zolnai Tamás
fe70101856 Introduce HAVE_FEATURE_GLTF to enable/disable gltf related code
When it is a release build then enable it only on Windows and
Linux.

Change-Id: I7c462aeb75e6ab60eeaa0fa42ca7853a6369b742
2014-06-12 21:43:35 +02:00
Caolán McNamara
b9daf7cacd coverity#735840 Unchecked dynamic_cast
Change-Id: I3c772ec30360103f569b34e7c83f65b469eb5be8
2014-06-12 14:12:03 +01:00
Stephan Bergmann
bb761be472 Change SfxTabPage ctor SfxItemSet param from ref to pointer
...and also corresponding param of CreateTabPage function type and corresponding
Craete functions.  There were some call sites that passed undefined "null
pointer references" and SfxTabPage internally uses a pointer member pSet that is
checked for null anyway.

Change-Id: I4eb3636155eac46c9c9d26e6e6e842e85d7e95af
2014-06-11 14:39:04 +02:00
Stephan Bergmann
a92e973b6d Change SfxTabPage::Reset param from ref to pointer
...there was a call site that passed undefined "null pointer reference"
(apparently in a case where the passed argument was actually unused)

Change-Id: I663d4264b7a84f44ca69c732f3bc502f614b2b2a
2014-06-11 10:39:03 +02:00
Zolnai Tamás
98dd0f2bb5 Related bnc#862510: extend handling of txXfrm
We don't actually need to check mbAnchorCtr to change
text spacing. This txXfrm workaround works only with rectangles,
because other shapes' text area can be smaller then the shape
size. So add some condition to avoid using it for
other shapes.

Plus fix typos cause regression introduced in:
53c376d35b7223d53e8c9403390afe53d1f69089

Change-Id: I87917b8e0b2bb97ae1bba773e7dda7f81682736f
2014-06-10 19:08:59 +02:00
Stephan Bergmann
4dbeadb9c1 Change SfxTabPage::FillItemSet param from ref to pointer
...there were a number of call sites that passed undefined "null pointer
references" (apparently in cases where the passed argument was actually unused)

Change-Id: I19799e90f0cd8e98367782441a5ea9df27b59830
2014-06-10 17:25:23 +02:00
Stephan Bergmann
2f8fd888b4 -Werror,-Wundefined-bool-conversion
Change-Id: I13f415f1870d385433c4b9e287c2f5bae170c8ee
2014-06-10 17:25:22 +02:00
Caolán McNamara
a7cc77e378 coverity#1213458 Uncaught exception
Change-Id: I7bfcda3ec7bfe1bdf46ce11e799972a96d9fc3dc
2014-06-10 16:08:04 +01:00
Kohei Yoshida
c5539bb585 fdo#79676: Initialize with a default chart only from the UI.
When creating an embedded chart object during import, we don't want to
create a default chart which would only mess up the chart data.

With this change, ChartModel::initNew() is a no-op.

Change-Id: Id29659c3885ec1e06bed26d2c851123fb63072cc
2014-06-10 10:02:25 -04:00
Caolán McNamara
ea93714e94 coverity#735616 Division or modulo by float zero
Change-Id: I5aaad2cd80e6930cbca57b4df2bfee3a6989ca41
2014-06-10 10:48:43 +01:00
Katarina Behrens
3466cbc01c fdo#77987, part 3: use signed ints consistently
everywhere where snap line coords are manipulated

Change-Id: I8de1662680bd6e5dc9d42d633fa591dacc260a9b
2014-06-10 00:23:46 +02:00
Katarina Behrens
25678ae57d fdo#77987, part 2: snap line coordinates can be negative
thus, use signed integers here

Change-Id: I8de1662680bd6e5dc9d42d633fa591dacc260a9b
2014-06-10 00:05:18 +02:00
Katarina Behrens
64992cc56e fdo#77987, part 1: set min&max values of spinboxes
by attaching adjustments to them. This restores pre-ui behaviour,
as without proper initial minimum value, one can't enter values < 0
into the dialog

I just copied the numbers as they were in .src file, but they were
prolly completely made up (and they're adjusted later anyway
according to size/position of workspace)

Change-Id: Ic09fdd9e947f04d6f2151e9d7a8714f4f1d29552
2014-06-10 00:04:59 +02:00
Caolán McNamara
efd6106f09 de-virtualize these stringify methods, nothing overrides them
Change-Id: Id523ae3f50147fd778a1576c2851d01e1ea8c3ae
2014-06-09 16:24:40 +01:00
Michael Stahl
1817366cb5 gbuild: remove config_libraries.h and gb_Helper_generate_config_libraries
This much ugly complexity, generating a header on every gbuild startup
etc. is really not warranted for 6 callers of the generated macros.
Also, the Win32 make has problems with the quoting.

Change-Id: If945e09c1730e52174a6084677842dc611d66b2f
2014-06-09 17:05:50 +02:00
Caolán McNamara
eb4cd7e74d some remaining sal_uInt16 to sal_Int32 editeng ESelection bounds
Change-Id: Ib47dea5c2d965cf613c465e624a1bdd81becb1c2
2014-06-09 12:27:56 +01:00
Caolán McNamara
7e600aca08 Related: fdo#78151 force outliners in master view to be read-only text
because these contain place-holder text and it doesn't make sense
to be able to edit them (unless some-day we support custom place-holder
prompts)

because they are now read-only add a pair of "show next level" and "hide
last level" features so on right clicking the last outline paragraph
you can make the next one visible, or make the last one invisible

Change-Id: Iea24d810f298156cfe2f32aa53d0515da45e08eb
2014-06-09 09:23:58 +01:00
Noel Grandin
184a00b962 loplugin: inlinesimplememberfunctions
Change-Id: I42119f656ca528286fb25d2d36c0af54b7d04a6b
2014-06-09 10:10:13 +02:00
Jan Holesovsky
f7d51f43de html export: More standard time specification in <meta/>.
Change-Id: I1a62d12531029cc36fb8aeabecb9d92a8af837f7
2014-06-06 21:55:06 +02:00
Jan Holesovsky
b00d84975e sd html: Provide some minimal reasonable defaults.
Change-Id: I72b02f7d87cf6075d318c1cc0d7288e27bbe1b9c
2014-06-06 18:25:27 +02:00
Jan Holesovsky
2f54153491 sd html: Unit test for the metadata export.
Change-Id: I1e38e28b57e816a0829d1a56f2ffcb32d8f93718
2014-06-06 18:25:26 +02:00
Jan Holesovsky
1380f5d542 sd html: Implement export of metadata in the single document case.
Change-Id: Icf99c9bcea187e2a3127b97050d6ddb072540b0d
2014-06-06 18:25:26 +02:00
Zolnai Tamás
46d682eec9 bnc#880763: PPTX import: wrong z-order becuause of wrong import order
importExtDrawings() must be called as soon as possible,
before parser starts to parse the next shape.
Call it when graphicFrame tag is closed. This tag include
the reference to the SmartArt.

Plus fix up import tests.

Change-Id: I9e8d54c2b1afeb78a1122390dc4982d580c152ae
2014-06-06 16:50:04 +02:00
Caolán McNamara
9af8782493 coverity#704779 Unchecked dynamic_cast
Change-Id: Ida8bdc0930142ecf602b5aef4414cc6302bfa18b
2014-06-06 11:32:53 +01:00
Caolán McNamara
e990e4d145 c++03 vs c++11 enum namespacing
Change-Id: I91be0e7d2b013221b1d47a5cd1e4e75eb16c2b67
2014-06-06 10:06:24 +01:00
Caolán McNamara
9b237f9d84 coverity#705224 Missing break in switch, surely unintentional
Change-Id: I9ebeb373f5ab15220e3d9a4bb57db88d7a8f2714
2014-06-06 09:45:56 +01:00
Zolnai Tamás
639571d52b 2nd part of bnc#870233: import font color from color fragment for SmartArts
SmartArt import ignores some fragments during import if
drawing fragment exists, which seems to be not complete.
In this case font style is blank (white) in data (and drawing)
fragment and the real value is defined in the ignored color fragment.

So first make color fragment parsing work, then apply font
color of "node0" style on nodes of the SmartArt.

Actually, it's a workaround, because "node0" style label
is hardcoded, for a proper solution layout fragment should
be parsed too to get the right style label, but
it interferes with the drawing fragment by now.

Change-Id: I7db89176a07eee928563d42d3896fbd02190dfa8
2014-06-06 10:28:18 +02:00
Zolnai Tamás
31650d5b42 1th part of bnc#870233: wrong list style in shapes
Text list styles were copied, without proper
copy constructor and operator. It lad to mix
up list styles and so text font.

Change-Id: Iee7a6c0c1f74322fd7b80e41a262849f948e463a
2014-06-06 10:28:18 +02:00
Caolán McNamara
64df417cdb coverity#1019354 Missing break in switch, assuming intentional
Change-Id: I4dd2f68e8712a2c76797a33c54d1baf69975830f
2014-06-05 21:14:21 +01:00
Caolán McNamara
1e9ce046a3 coverity#705215 Missing break in switch
Change-Id: I52cf32e9349e547e3445fbb266a74495d69aaa3f
2014-06-05 13:35:50 +01:00
Noel Grandin
0e507ae031 various: remove SAL_THROW macro
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-05 08:17:52 +02:00
Caolán McNamara
38ad9104ef coverity#1209650 Missing break in switch, probably intentional
Change-Id: Iaa48a39cc86548dd2805703a97a90406663099ba
2014-06-04 15:13:32 +01:00
Caolán McNamara
9e2ca10d8a coverity#705863 Dereference before null check
Change-Id: I0e4d3add3adc2e387c5735b75eb5e3638f24c12b
2014-06-04 12:34:14 +01:00
Caolán McNamara
70c38b2066 coverity#705864 Dereference before null check
Change-Id: I69b3ec1c9eef117a55298781d15637b02281ff82
2014-06-04 12:34:13 +01:00
Caolán McNamara
f53169c74a coverity#705867 Dereference before null check
Change-Id: Ia541e6d8f0f0b30dcb67a8693b4dd5d53e929717
2014-06-04 12:34:13 +01:00
Caolán McNamara
051d45a59d coverity#1213293 Dereference before null check
Change-Id: If2dd3cb1c7e18bf0274551950bc33f7521e0f8e1
2014-06-04 12:34:13 +01:00
Caolán McNamara
f750ee1d70 coverity#705873 Dereference before null check
Change-Id: Ife67ce102df4dfadd3483a3c137bd767c13b3c26
2014-06-04 12:34:13 +01:00
Stephan Bergmann
369d95931f DeInitVCL at end of tests
This required some changes to the framework:

* Init-/DeInitVCL is no longer done per individual test in BootstrapFixture, but
  once per CppunitTest invocation in a new vclbootstrapprotector (similarly to
  the exisiting unobootstrapprotector).  CppunitTests that need VCL now need to
  declare gb_CppunitTest_use_vcl.

* For things to work properly, the UNO component context needs to be disposed
  from within DeInitVCL (cf. Desktop's Application::DeInit called from
  DeInitVCL).  The easiest solution was to introduce an
  Application::setDeInitHook (where the hook is called from DeInitVCL)
  specifically for vclbootstrapprotector to call.

* PythonTests don't (yet) call DeInitVCL; they still hook into
  BootstrapFixture's original test_init functionality (to call InitVCL), and do
  not make use of the vclbootstrapprotector.

Change-Id: I4f3a3c75db30b58c1cd49d81c51db14902ed68b2
2014-06-04 08:55:12 +02:00