summaryrefslogtreecommitdiff
path: root/include
AgeCommit message (Collapse)AuthorFilesLines
2014-06-18LOK: kill double initialize.Andrzej Hunt2-6/+0
Change-Id: I4d3dd913faea8b9f4a0bd3c13af37d097ced9888
2014-06-17LOK: Split into instance and class.Andrzej Hunt2-14/+23
Change-Id: I2b6f33eaf12343c7da1328a932eb703bb4e4ef6f Signed-off-by: Michael Meeks <michael.meeks@collabora.com>
2014-06-13resolved fdo#79978 propagate error through DoubleArray of matrixEike Rathke1-0/+4
Regression introduced with 83f77ab0661df992f241e5f9ecb1aa8f8eaeafec. 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 (cherry picked from commit a288bebbcec0b16e1ced09a601de5ffbb6b1bbe0)
2014-06-13resolved fdo#79957 propagate ForceArray through jump tokensEike Rathke2-5/+10
ForceArray parameters weren't propagated and enforced to array arguments on svJump tokens (FormulaJumpToken), namely IF, CHOOSE, IFERROR and IFNA. Change-Id: Icf9074f11b826655a52858d778d9a0122d207aa4 (cherry picked from commit c9d037e5e8e5850e9c69372580e7a506b573fc2a)
2014-06-13Extract kmz and collada converter code to a seperate functionZolnai Tamás1-0/+2
Plus fix some problems related to temp files. e.g. kmz converter was creating temp files next to the input file. Change-Id: Ib3f367fe1c4ef3cb25f5ca1c3d06b2dde78c5e45 (cherry picked from commit 573ced4087f46788a8596fb89c657d3427be4bf8)
2014-06-12liblok: add include for size_t.Michael Meeks1-0/+2
Change-Id: Icd7d78a332fbb67e32ab929f0afc5881ab7448eb
2014-06-12cast loses precisionCaolán McNamara1-4/+4
Change-Id: Ic688f08cada4ae70ea1dfb1e29e249a166456452
2014-06-12liblok: check new methods via macros on nSize, not by de-referencing.Michael Meeks2-1/+11
We can't check for NULL from beyond the end of a smaller structure. Change-Id: Id3754bf747c402cf0d767eda5fd4b5ad6b5789e9
2014-06-12Complete LibreOfficeKit C++ renaming.Andrzej Hunt1-3/+2
Change-Id: Ice611cf5913051346a3a0c0b00ed35a35a0dfe3c
2014-06-11Upgrade LibreOfficeKit C++ API.Andrzej Hunt1-10/+14
Change-Id: If263b8fc748f67a1ed423c0f3f7cd465cf533993
2014-06-11Rename C api of LibreOfficeKit.Andrzej Hunt2-18/+18
However for the sake of ABI compatibility we can't change liblibreoffice_hook. Change-Id: I0e921efeeab40ef1b53a67c0e7a89d4c75ced831
2014-06-11Move liblibreoffice into LibreOfficeKit.Andrzej Hunt2-0/+149
Conflicts: include/LibreOfficeKit/LibreOfficeKit.hxx Change-Id: Ib2754a77be470faaa6f9b27644a1d8dd082ed2b8
2014-06-10make that variable protected againMarkus Mohrhard1-2/+2
Change-Id: I17235397e490458c250165c36bec97bf1ce326d7
2014-06-10avoid problems with poppler's and vcl's FontInfo during runtimeMarkus Mohrhard5-35/+38
Change-Id: I1dbd256812cccae1e6ed0ad8bb34ce427e5e5be8 Conflicts: include/vcl/metric.hxx svtools/source/control/ctrlbox.cxx svtools/source/control/ctrltool.cxx svtools/source/control/stdmenu.cxx svx/source/sidebar/nbdtmg.cxx
2014-06-07we only support GLX 1.3+Markus Mohrhard1-2/+2
Change-Id: I2447498cf92da91a7fb2d67ee041d603ae16fe25
2014-06-07Lsan: fix memory leakMarkus Mohrhard1-0/+2
Change-Id: I82a517a267cceaac4dd1030d45c67fc070e22def
2014-06-07Lsan: fix invalid memory accessMarkus Mohrhard1-0/+2
The chart object can be destroyed after the context. Change-Id: I5ae370638f296ea314ee11680e0a8d81a8fdbe69
2014-06-06bnc#880763: PPTX import: wrong z-order becuause of wrong import orderZolnai Tamás2-2/+3
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 (cherry picked from commit 46d682eec92bb241f4604a4b6ab42a3859cd0d48)
2014-06-062nd part of bnc#870233: import font color from color fragment for SmartArtsZolnai Tamás2-0/+7
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 (cherry picked from commit 639571d52b1b7e4cf912803642ca245c5dd86839)
2014-06-061st part of bnc#870233: wrong list style in shapesZolnai Tamás1-0/+3
Text list styles were copied, without proper copy constructor and operator. It lad to mix up list styles and so text font. (cherry picked from commit 31650d5b4255c484faec11d570cb98a80f0120cc) Change-Id: Iee7a6c0c1f74322fd7b80e41a262849f948e463a
2014-06-05fdo#79597 Password UI: correct typo for 1 characterLaurent Balland-Poirier2-0/+2
Display a different string in case of 1 character for minimum length Change-Id: Iba2fbbb7d4101718def7c79ce5354debf5d97041 Reviewed-on: https://gerrit.libreoffice.org/9631 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com> (cherry picked from commit a4440671a9de18ebf944ed09c432a98908d79f5e) Reviewed-on: https://gerrit.libreoffice.org/9646
2014-06-04add convenience functions to handle dirsDavid Tardon1-0/+3
Change-Id: I81c94565e09e0d839d95bf4f09b029838bb37ad5 (cherry picked from commit 31ba2cb2fcb3b9466c553cf12d50bc6437ee826f)
2014-06-03oox, writerfilter: Support for artistic effects on picturesJacobo Aragunde Pérez4-1/+74
Bitmaps can define artistic effects like in the following example: <a:blip r:embed="rId5"> <a:extLst> <a:ext uri="{BEBA8EAE-BF5A-486C-A8C5-ECC9F3942E4B}"> <a14:imgProps xmlns:a14="http://schemas.microsoft.com/office/drawing/2010/main"> <a14:imgLayer r:embed="rId6"> <a14:imgEffect> <a14:artisticMarker trans="14000" size="80" /> </a14:imgEffect> </a14:imgLayer> </a14:imgProps> </a:ext> </a:extLst> </a:blip> They are defined in the MS-ODRAWXML extension. Ref: http://msdn.microsoft.com/en-us/library/dd905216(v=office.12).aspx LO core doesn't support them, but I'm preserving them using the shape grab bag. Bitmaps must not be transformed to a SwXTextGraphicObject so the grab bag of the XShape is not discarded. Added several Context and Properties objects on the import side to traverse and save the relevant tags, and added the corresponding code on the export side to extract the grab bag and output the effect back. When Word applies an artistic effect, it creates two embedded files; one contains the bitmap with the effect and the other one contains the original bitmap to be able to undo the effect. We also read the original bitmap, store it in the shape grab bag and save it back to the docx file. When two pictures apply different effects to the same picture, it is only saved once in the original document. Added a cache to DrawingML to know if the picture has already been exported. Finally, added unit tests for a selection of artistic effects. [Squashing commits from master: 21d4cfe19e2796ebf89c408e292c4473924b2bc4 642a252cf1a2f1d08c4bbfcae15527bb82c7664d 2e68a1468c035fc3bb4d02ad0b3187872fe1e67b b5f6a5cfc517ecd8aa6ba96471d854b07b92ebaa 38d7b82c277599f2e613256c4353aa7dfdc219ec] Change-Id: I39327a8118e23829c029122154a31ce3af5b48cd Reviewed-on: https://gerrit.libreoffice.org/9495 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-03add bDisallowPrivate parameter to LanguageTag::isValidBcp47()Eike Rathke1-1/+7
Change-Id: I0924b0fa268c38c238226d082cf26595bba72f0c (cherry picked from commit fecde4c7099fdb7c5ee396b0f68ec517f3a08955)
2014-06-02add LANGUAGE_USER_FRENCH_TOGO 0x8C0C [fr-TG] French (Togo), fdo#79353Eike Rathke1-0/+1
Change-Id: Id1e127a3652d4bef280327c2a62d95c17c012656 (cherry picked from commit b247e5f77d23e5cc43ea7e176a5dc01e6b30f17d)
2014-06-02add LANGUAGE_USER_FRENCH_NIGER 0x880C [fr-NE] French (Niger), fdo#79352Eike Rathke1-0/+1
Change-Id: I6d793317bc1caef4a95275bad263a5b2feac12e4 (cherry picked from commit 4ffdd43ae43b504fbc920a3cf2685b00f8219580)
2014-06-02add LANGUAGE_USER_FRENCH_BENIN 0x840C fr-BJ French (Benin), fdo#79351Eike Rathke1-0/+1
Change-Id: Idc54b0fae9283d795b79231214cf14aae43adca2 (cherry picked from commit 3a14b9357f13f777721d7af5539bdb385d09fdc5)
2014-05-30bnc#870237: wrong text position in grouped listZolnai Tamás1-2/+4
In grouped list text area does not cover the whole shape but just a part of it at the top. To get the same visual effect modify text distance attribute. Change-Id: I32f30d0afbc1975f940c4562ec65f46596e97060 (cherry picked from commit 53c376d35b7223d53e8c9403390afe53d1f69089) Reviewed-on: https://gerrit.libreoffice.org/9571 Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com> Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2014-05-30Resolves: fdo#79360 impress hangs on using sidebar new styleCaolán McNamara2-17/+5
because those styles are "pseudo-styles" and a new one cannot be added. The possibility is supposed to be disabled, and it is disabled in the floating stylelist. The old code assumes there can only be one of these stylelists and when a stylelist queries if the "new" should be disabled the callback asks the stylelist what family is selected, but only asks the floating one. So, floating closed, sidebar open, the new is not disabled. Implement the ancient TODO now that we have to. Instead of asking the stylelist what family is selected, query the frame for what is the current SID_STYLE_FAMILY as set by whatever is the active stylelist. What's disturbing is the SID_STYLE_FAMILY values are not SfxStyleFamily, but indexes that have to be mapped to SfxStyleFamily. I bet there are a pile of bugs around that, especially with little islands of different conversion codesites (cherry picked from commit 7a211e834fc271d3f28d7f8c49197c925242d862) Conflicts: sfx2/source/appl/appmisc.cxx convert from NId to FamilyId instead of FamilyId to NId should be equivalent for comparison purposes (cherry picked from commit f48f5138ecedd3bb9ec0b454b9fe216001610156) remove unused virtual method, slim this down initially (cherry picked from commit fa551c422426962194b6bff4234f12eb5bdf57ca) Change-Id: I85c8032d7c26ae6eea245685748f89b2a860e767
2014-05-29Detach all DocBasicItem objects upon process termination.Kohei Yoshida1-0/+2
To prevent rogue DocBasicItem objects (which are global objects) from attempting to stop listening after the main app is dead. Change-Id: I68a667137ca4e0eff18278f4d2d5dd67466eaf34 (cherry picked from commit a916b6ff7fdf1bcb1182e72e4a5bf2f901c698da)
2014-05-28Related: fdo#79142 make SetName default to ReindexingCaolán McNamara2-3/+7
Change-Id: I408042bc7bf1a5a955203d65d2c68ebf9527b9b5 (cherry picked from commit 05e2fd162ef86ebe4ea2a2a679cabeae33e844f0)
2014-05-28Resolves: fdo#79142 When Creating Styles - The 2nd One Always Replaces the 1stCaolán McNamara1-0/+1
regression from 0c17ccc493d0c7a80f37600dae76a09a119bef78 I think it might actually make more sense for SetName to always Reindex and have another SetNameNoReindex for selective use where its known safe to get away with it Change-Id: I6bf7e1f45130f741954ab525b838f3ac5ff61a89 (cherry picked from commit aa8b268935b07c9bf95a596ee84c76eed4c03634)
2014-05-26rebase all import libsDavid Tardon3-25/+23
Change-Id: I9e1fc613816c943f4fb1033185e34e3acf317f1d (cherry picked from commit 48c9d7ac7ccdad27067efe0d168e96ff48372631)
2014-05-23switch the Western language list box to SvxLanguageComboBoxEike Rathke2-1/+16
This allows the user to assign an arbitrary (but valid) BCP 47 language tag to a portion of text, so that customized spell-checkers or other language-dependent tools can be used without the need to wait for LibreOffice to add yet another language to the list in the next release. +bool SvtLanguageTable::HasLanguageType() (cherry picked from commit 2a8eff589a53c8dd65e18d7a9d11cdb98a937e68) + SvxLanguageComboBox EditModifyHdl(), SaveEditedAsEntry() (cherry picked from commit 29c024afbe6a46459e37c5ceec510de1cd0ca7c8) handle SvxLanguageComboBox edit (cherry picked from commit 1aad7628dcd7fd14d48814d00c3d04e4ec0c59d5) finally switch the Western language list box to SvxLanguageComboBox (cherry picked from commit dbe8b3b6d4f2d2cc2e8c702b78034e9013f71e8f) advance start of edit selection on a matching entry ... to allow continuous typing. (cherry picked from commit fe2b8ef18b11b226fddd1cf3fc7f9133426a1b1a) Change-Id: Id57eb51b69e50be78f85d19a7b3623c1acdf6509 Reviewed-on: https://gerrit.libreoffice.org/9447 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Reviewed-by: Björn Michaelsen <bjoern.michaelsen@canonical.com> Reviewed-by: Kohei Yoshida <libreoffice@kohei.us> Tested-by: Kohei Yoshida <libreoffice@kohei.us>
2014-05-22bnc#467278: Introduce a warning that changes to VBA macros cannot be saved.Jan Holesovsky1-1/+1
As an InfoBar, so hopefully not annoying... Change-Id: I5d4e79273edc03829fdab2d6d5a291576c954e4b
2014-05-21cp#1000072: Skip styles import for external link cache documents.Kohei Yoshida1-7/+5
This reduces external link update time by 10%. Change-Id: Ic14d9ea7530818f839330a2004f6aa67ef1e831e
2014-05-21So ZCodec::ReadAsynchron was wrong in using a persistent mpIStm after allStephan Bergmann1-1/+0
The fun thing is that with the (only) call-site to ReadAsynchron in PNGReaderImpl::ImplReadIDAT (vcl/source/gdi/pngread.cxx) passing in rIStm references to stack-allocated SvMemoryStream instances, mpIStm could point to an old, destroyed instance from a previous call, but which would have been located at exactly the same stack address as the currently passed in rIStm, so the wrong mpIStm->Read call would effectively behaved exactly the same as a correct rIStm.Read call. This went unnoticed "since the beginning" until AddressSanitizer's UseAfterReturn check came along... Change-Id: I7c75ed2d36a4c24c111d88eff647816bd2c5dbca
2014-05-21ZCodec::mpIStm is apparently(?) effectively only used by ReadAsynchronStephan Bergmann1-1/+1
...(which can be called multiple times in a row). But which actually looks wrong... Change-Id: I2e4914e6fed8ced383e430699dd462add9da8c08
2014-05-21we have GetEntryPos(), use itEike Rathke1-0/+3
Change-Id: Iebb19951efa81817793a155164862076d1198e6e
2014-05-21Split ZCodec::ImplInitBuf into InitCompress, InitDecompressStephan Bergmann1-1/+2
Change-Id: I2714b1f1dadc74f8501203bc8b0722c56c9c5fb9
2014-05-21Replace ZCodec::mbInit with sane enumStephan Bergmann1-2/+8
...and document how the member functions are supposed to be called from client code. Change-Id: Ia4847945e4a361c43a0ed001e3e78e901c9abcad
2014-05-21ZCodec::UpdateCRC is privateStephan Bergmann1-1/+2
Change-Id: I2103f8a323d0454bdd1c779aadb99889ae1cf6e5
2014-05-21Remove unused ZCodec::IsFinishedStephan Bergmann1-1/+0
Change-Id: I9741daf288c11dc8e0f0ad2f64e934e814c3ef8a
2014-05-21Remove unnecessary GZCodec derivationStephan Bergmann1-14/+3
Change-Id: Id710a1fe4a3c1593add69bb2a7014d26f9499e87
2014-05-21Remove unused ZCODEC_BEST_SPEED, ZCODEC_BEST_COMPRESSION macrosStephan Bergmann1-2/+0
Change-Id: Ibdf211b858c25a4b301cbde3dcab3a51765e4050
2014-05-21Split ZCodec::BeginCompression param into its 3 independent componentsStephan Bergmann1-13/+10
Change-Id: I275abafe81c8bb617c70646244b14f6cecc33854
2014-05-21Remove unnecessary ZCODEC_DEFAULT macroStephan Bergmann1-3/+2
Change-Id: I57a5a14a51c0441e0fed006457ac95057f188462
2014-05-21Remove unnecessary ZCODEC_DEFAULT_STRATEGY macroStephan Bergmann1-4/+2
...and directly use zlib.h's Z_DEFAULT_STRATEGY Change-Id: Ibf528cbc32afec4d442656aa2963f50c0875d6a5
2014-05-21Remove unused ZCODEC_ZFILTERED, ZCODEC_ZHUFFMAN_ONLY macrosStephan Bergmann1-2/+0
Change-Id: Ie02fb495beebd02d8331e547cbe6648dc70f241f
2014-05-21Remove unnecessary DEFAULT_IN/OUT_BUFSIZE macrosStephan Bergmann1-11/+1
Change-Id: Icd509f55b3f91c4ce3b21bfa3a501d99532539d9