summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml
AgeCommit message (Collapse)AuthorFilesLines
2013-07-15fdo#66655: Get GETPIVOTDATA to work again.Kohei Yoshida1-2/+2
1) Compare data field name as it is displayed in the table output. 2) In the result tree, store field member names as strings as displayed in the table output, instead of as ScDPItemData. GETPIVOTDATA operates on displayed cell values and do textural comparison. There is no use storing ScDPItemData which screws up value lookup in the result tree. Change-Id: I31bc03a6800f4fadf2ba1180d1958354d43e8a07 Reviewed-on: https://gerrit.libreoffice.org/4853 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Tested-by: Michael Meeks <michael.meeks@suse.com> Reviewed-on: https://gerrit.libreoffice.org/4869 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Eike Rathke <erack@redhat.com> Reviewed-by: Eike Rathke <erack@redhat.com>
2013-07-11fix reading fonts from .odp using style::font-name (fdo#65338)Luboš Luňák1-1/+1
b40bcde076f9fabf24810d2520e878d604d99637 made writing .odp use style:font-name and office:font-face-decls, instead of using fo:font-family . But the reading back was broken, as xFontDecls is not set in XMLTextImportPropertyMapper::handleSpecialItem(), so the font data was ignored. And xFontDecls was not set because it's set while reading office:font-face-decls, which is at the top of the xml document, but even before the xml is parsed, the call to SdXMLImport::setTargetDocument() calls GetShapeImport(), which creates XMLShapeImportHelper instance, which calls XMLTextImportHelper::CreateParaExtPropMapper(), and XMLTextImportPropertyMapper is created with rImport.GetFontDecls() still being NULL at that point. And it actually doesn't seem to make any sense to just pass around all the pointers to XMLFontStylesContext, as eventually it's always just the one from SvXMLImport. So simply dump all that and make the one single place that actually uses it (i.e. XMLTextImportPropertyMapper::handleSpecialItem()) refer directly to SvXMLImport::GetFontDecls(). Change-Id: Ib1b3e4b1bcaf87ca3e4703d1cc1563ad6b3f9ce7 Reviewed-on: https://gerrit.libreoffice.org/4816 Reviewed-by: Michael Meeks <michael.meeks@suse.com> Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com> (cherry picked from commit cc3293b94ab58b196bc2786eb4012d64351e8fa4) Reviewed-on: https://gerrit.libreoffice.org/4820 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-07-03the calculation of the progressbar leads to very slow savingLaurent Godard1-3/+3
Change-Id: Ibba31126161b77b499561c5a74c057a56c07a4a8 Reviewed-on: https://gerrit.libreoffice.org/4647 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Reviewed-on: https://gerrit.libreoffice.org/4698 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-07-03simplify AddPrintRanges calls at import timeLaurent Godard1-7/+5
- at import time, use directly core functions - honor IsUndoEnabled in uno calls Change-Id: If1e762df0ca9cfa22fa2c0e75518fe892be602b6 Reviewed-on: https://gerrit.libreoffice.org/4656 Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-on: https://gerrit.libreoffice.org/4696
2013-07-01handle localized default style names, fdo#61339Markus Mohrhard2-4/+7
We need to map localized style names during import and export from and to ODF. The default styles are the only localized style names and are not imported with the name written into the file. Change-Id: Ibdc2f750b7a4b7ce6994b22248e237fe95ac638d (cherry picked from commit 5b9bad7482a98f2d0d37c4b75a13292abe653ea3) Reviewed-on: https://gerrit.libreoffice.org/4615 Reviewed-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr> Tested-by: Bosdonnat Cedric <cedric.bosdonnat@free.fr>
2013-06-28we don't need this hack without inherited number formats, fdo#66076Markus Mohrhard1-4/+1
Change-Id: If315ce28a4182019002141c7330475e0843f9a40 (cherry picked from commit 3f0b5770790dfcb408d169df1265546d6e8e3ece) Reviewed-on: https://gerrit.libreoffice.org/4593 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-04remove inherited number formats, fdo#60215Markus Mohrhard2-24/+7
Change-Id: Ia8199bdc63ee732bada51687df195c9ab9cae9aa Reviewed-on: https://gerrit.libreoffice.org/4147 Reviewed-by: Kohei Yoshida <kohei.yoshida@suse.de> Tested-by: Kohei Yoshida <kohei.yoshida@suse.de>
2013-06-03restore old codeMarkus Mohrhard1-2/+2
There is some strange handling for row 0 in the calc core code. Without a very deep inspection I can't decide whether the test or my change is the problem but for now we can live with the old behavior. Change-Id: I69615349f5b46856aba36dada235a49c84eb03af
2013-06-03correct fix for fdo#62938Markus Mohrhard1-3/+4
Change-Id: Ib8e5cf92d733bafaef7f9e0bb8e3bf823075f489
2013-06-03Revert "the print range may start in row 0, fdo#62938"Markus Mohrhard3-9/+7
This reverts commit 988d388007ddafaa8a59735df99cbce678a689a8.
2013-06-03the print range can start in row 0, fdo#62938Markus Mohrhard3-7/+9
Change-Id: I8569e4e120a6fd2b626db0bdaadf5d9234d09a36
2013-05-23only export these attributes into ODF1.2 extendedMarkus Mohrhard1-6/+6
Change-Id: I6a7fcb55287e61af3a3cd041d187d5d4c693bc6c
2013-05-23prevent invalid files if file contains currency formatsMarkus Mohrhard1-3/+3
A regression from writing error cell information into the file. Change-Id: Idb55646094fcd76912bdcd2102370681bcc8703d
2013-05-13fdo#46808, Convert sheet::GlobalSheetSettings service to new styleNoel Grandin1-22/+15
Change-Id: If5fc10e408427fe5d87968a0ad51a3142f895709
2013-05-13fdo#46808, Convert some XMultiServiceFactory to XComponentContextNoel Grandin1-25/+16
Change-Id: I409d4820dd772aa761e806ac06a4f210c801fb41
2013-05-10resolved fdo#35756 import more than 64k HTML table cellsEike Rathke1-1/+1
Enhanced EditEngine to be able to hold more than 64k paragraphs. Used also in RTF import Calc and Writer, so that could benefit as well. * changed all EditEngine,Outliner,... related paragraph index/count variables from sal_uInt16 to sal_Int32 * sal_Int32 instead of sal_uInt32 to match accessibility API * matched some Outliner methods' paragraph parameters from sal_uLong to sal_Int32 * containers capable to hold size_t nevertheless are limited to a maximum of sal_Int32 * changed definition of EE_PARA_NOT_FOUND and EE_PARA_ALL to SAL_MAX_INT32 + added EE_PARA_MAX_COUNT and EE_TEXTPOS_MAX_COUNT to initialize ESelection with what previously were hard coded 0xFFFF all over the place + for similar reason added EE_TEXTPOS_ALL corresponding to EE_PARA_ALL to initialize an ESelection spanning all available text like aSel(0,0,EE_PARA_ALL,EE_TEXTPOS_ALL) Change-Id: I62d1b9c399cd709a4f93dbac31b219a61c46ec00 Reviewed-on: https://gerrit.libreoffice.org/3838 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-05-09coverity#705446: self assignmentMarkus Mohrhard1-8/+6
Change-Id: I950a6d971b1be742fa7c0ce26697cd84121a14d0
2013-05-09Adjust for API change in mdds 0.8.0.Kohei Yoshida1-1/+1
The return value of search_tree() in flat_segment_tree has changed. Change-Id: I51d8676bd0621bd43b3f8a8f6be4bf4056d45904
2013-05-09Remove broadcaster from ScBaseCell, remove ScNoteCell and CELLTYPE_NOTE...Kohei Yoshida1-2/+1
and Calc is now officially broken. Let's start fixing this bit by bit... Change-Id: I383c88245fe1e573666da636c6a8ca8815352ce7
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák18-125/+125
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-29use boost::scoped_ptr and direct valuesMarkus Mohrhard1-5/+4
Change-Id: I70be33bc4843a19a24ce2fcb0cda094684557c04
2013-04-26Revert "remove a bit of unnecessary whitespace to make lines shorter"Markus Mohrhard1-16/+16
This reverts commit f098f40e0f8ccce4fc8187c4d3eb9c69ea103b1c. Conflicts: sc/source/filter/xml/xmlimprt.cxx Change-Id: I8a70f7503aea0e2968a04ba57a76d690a54d344c
2013-04-25prevent unnecessary String->OUString conversionsMarkus Mohrhard1-1/+1
Change-Id: I075467d17f6c59bd66a7a2d8e1e82f2a3ba42cad
2013-04-25implement import for calcext:value-typeMarkus Mohrhard4-3/+30
This saves us several string comparisons for every cell during import which should speed-up our cached value import quite a bit. I haven't profiled it yet. Additionally it lets us move away from a heuristic based approach. Change-Id: Id9ca92a1251b62e99ca54209fdd52031694784b1
2013-04-25remove a bit of unnecessary whitespace to make lines shorterMarkus Mohrhard1-15/+15
Change-Id: I364afb6d638f47a41ea31bf3df00540db417d505
2013-04-25ScXMLExport::GetCellText returned always trueMarkus Mohrhard2-33/+25
Change-Id: Ia5dbea0a496f578f619276def349ff21674fb644
2013-04-25add error to office:value-type for calc cells and fdo#51810Markus Mohrhard1-3/+40
For cached value import we need the information which cells are error cells. For ODF 1.2 extended we therefore export now calcext:office-value with the additional value "error". Change-Id: I9bc988ea4924bea767ba5e504b77f6a16e51a82e
2013-04-25fix indentationMarkus Mohrhard1-67/+65
Change-Id: Ie70d580cd2a4ad88751672fd257c825b9813c86e
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks4-88/+18
2013-04-20fdo#63154: Change Min/Max/Abs for std::min/max/absMarcos Paulo de Souza4-4/+4
Now all these usages were removed from LO. Change-Id: I8a7233db20abdcdbb18428ad4004c78cc516a0e6 Reviewed-on: https://gerrit.libreoffice.org/3326 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-04-19fdo#61541 : Count Number of selected Cells in calcPrashant Pandey1-0/+3
Change-Id: Ic9c911552f2b03bb496f47251917a3736494dce1 Reviewed-on: https://gerrit.libreoffice.org/3213 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-04-19Remove pass-through header svtools/inc/svtools/txtcmp.hxxMichael Dunphy1-1/+1
Change-Id: I605ae778e57a12588dca274a4ee34a018004034e Remove pass-through header sfx2/inc/sfx2/imgdef.hxx Change-Id: I9a5ebabefccdd63b55d64aec26488542d0d362e3 Remove pass-through header xmloff/inc/xmloff/xmlcnitm.hxx Change-Id: If880679499daee2f77d1f6e148dba963d09bbb9c Reviewed-on: https://gerrit.libreoffice.org/3477 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-18date/time IDL datatypes incompatible changeLionel Elie Mamane2-8/+8
- nanosecond precision - signed (allowed negative) year Also: assorted improvements / bugfixes in date/time handling code. Some factorisation of copy/pasted code. Change-Id: I761a1b0b8731c82f19a0c37acbcf43d3c06d6cd6
2013-04-17let us use startsWith instead of indexOfMarkus Mohrhard1-25/+25
Change-Id: I185a5a6f1d85c9e3e7ee5115b100b724031b6c03
2013-04-11Related: #i120077# Added local var for SfxItemPool for EditEngineArmin Le Grand1-32/+53
to avoid a memory leak. Found by: Chao Huang Patch by: Chao Huang, alg Review by: Chao Huang, alg (cherry picked from commit e7168710bfd30b5d682d21d81c116cd33cf22505) Conflicts: sc/source/filter/xml/xmlfonte.cxx Change-Id: I75475bb59b3a7040938826d095dcd81e19d61b46
2013-04-10Resolves: #i120077# Memory leak fixed in ScXMLFontAutoStylePool_ImplArmin Le Grand1-1/+7
also checked and fixed memory leaks caused by not deleting SfxStyleSheetIterator instances. Found by: Chao Huang Patch by: Chao Huang Review by: alg (cherry picked from commit aee8221b3fbe64d8e88aa3a1b630214807cd86f0) Conflicts: sc/source/core/data/stlsheet.cxx sc/source/filter/xml/xmlfonte.cxx sfx2/source/doc/objcont.cxx svl/source/items/style.cxx sw/source/core/unocore/unostyle.cxx Resolves: #120077# ALG: Reverted r1354011, adapted all usages of SfxStyleSheetIterator and CreateIterator to use boost::shared_ptr (cherry picked from commit ec1819f218b94bed1556653e1b2b816a65da61ef) Conflicts: sc/source/core/data/stlsheet.cxx sc/source/filter/xml/xmlfonte.cxx sfx2/source/doc/objcont.cxx svl/inc/svl/style.hxx svl/source/items/style.cxx sw/source/core/unocore/unoframe.cxx sw/source/core/unocore/unostyle.cxx 26937d4d65562b14de0aea59a7b01cc4334f73c1 Change-Id: If99bf3ee399292ec269d68b36ee78ed63f033215
2013-04-08fdo#62116: Be sure to convert relative URLs into absolute ones.Kohei Yoshida1-1/+2
Just to preserve the old (and correct) behavior. Change-Id: I229e0b80097f6d70ff3023072b52576815010b15
2013-04-08fdo#62116: Handle field objects with formats correctly.Kohei Yoshida6-43/+156
Field objects can have formats applied to them, and when they do, they appear inside a <text:span> element. Change-Id: I7b4346389f393a4ddf708670b2c524a6594128b5
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák90-1806/+1769
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-05new module i18nlangtagEike Rathke1-1/+1
Moved portions from module i18npool, all of former i18nisolang1 library that now is i18nlangtag. Included are languagetag, isolang and mslangid. This i18nlangtag code is now even used by module comphelper, so disentangling i18npool and making this an own module was needed to not create circular module dependencies. Change-Id: Ib887c3d6dde667403fd22d382310ba5f1a9b0015
2013-03-28Remove some headers in cell.hxx.Kohei Yoshida1-0/+1
Change-Id: Ic99967a3ef6a35ca4fc465054e0d4de512cafb43
2013-03-28Move ScFormulaCell into its own header source files: formulacell.?xx.Kohei Yoshida5-5/+5
Change-Id: I65f2cb12c06784b5bcf6c6a2fad773825b6c409c
2013-03-28Reduce calls to ScDocument::GetCell().Kohei Yoshida1-2/+1
Change-Id: I39196eced68d25b6b2ae1378f712564badfc4572
2013-03-27More ScBaseCell reduction...Kohei Yoshida3-22/+19
Change-Id: I3a9f9ce79de7117e7b1410c45b217e5bfe005db7
2013-03-26WaE: 'ScCellValue' defined as a struct here but previously declared as a classTor Lillqvist1-1/+1
Change-Id: I41f2b4579699ed33d9bcd7767f1cbc4a3d67d9ff
2013-03-26Get the whole change tracking code entirely ScBaseCell-free!Kohei Yoshida5-236/+229
This took me a whole day.... Change-Id: Ida757b1efa284fc9d071a225f45666c340ba89ea
2013-03-26Remove a variant of constructor from ScCellIterator.Kohei Yoshida1-1/+1
It's redundant. Change-Id: I0aae329124453a5976b2a74f6290b100ce955a4e
2013-03-23fix above/below equal average ods import/exportMarkus Mohrhard2-1/+29
Change-Id: I1c305c67772b46cede6b4da3e79578f2f1a8ee89
2013-03-22Re-did ScCellIterator to avoid copying every single iterated cell.Kohei Yoshida1-5/+7
ScCellValue copies the cell value. Let's not use it in ScCellIterator. Change-Id: Id478b607c702077751878f557b8779c98b68db28
2013-03-22More on PutCell() avoidance.Kohei Yoshida1-16/+11
Change-Id: I9166a00f1aadd4bfcb9dc46ef794cd53c19f5692