summaryrefslogtreecommitdiff
path: root/sc/source/filter/xml/xmlwrap.cxx
AgeCommit message (Collapse)AuthorFilesLines
2014-02-03fdo#74325: Ensure that all note objects have an sdr object before exporting.Kohei Yoshida1-0/+2
Otherwise, if a note hasn't been displayed at least once before saving that note would not get saved. In the future, we should modify the export code to not rely on SdrObject to check the presence of note. Change-Id: Ib7ca3ac00a0c9cdd3a01facda7af479ef172afbe (cherry picked from commit 018500a73f3b1082b6662b7c123dfe5158ae5752) Reviewed-on: https://gerrit.libreoffice.org/7782 Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
2013-12-19Backport Calc's data stream massive cleanup effort.Kohei Yoshida1-0/+9
Change-Id: Ifbeb7c2d90d87a7cffe9a752f9e8b4910d55fcd9
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructorNoel Grandin1-10/+5
Convert code like: OStringBuffer aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OStringBuffer aKeyName("NDX"); which compiles down to the same code Change-Id: If9c96a290bc18cc8285fb733f27be58c6958b63c
2013-11-11remove unnecessary use of OUString constructor in SC moduleNoel Grandin1-4/+4
Change-Id: I2d40c589eb3b5c99300f36cd705c32cf824b2a98
2013-10-08covnert sc/source/filter/xml/*.cxx from String to OUStringNoel Grandin1-1/+1
Change-Id: I7ad382b7e5a27135eaf27f1756c7d6be78618e1e
2013-07-19fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFOJelle van der Waa1-21/+16
Change-Id: I8ab8f69413561c5e5a198bb11f07920720c48d25 Reviewed-on: https://gerrit.libreoffice.org/4886 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-06-29remove OUString wrap for string literalsThomas Arnhold1-5/+5
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: https://gerrit.libreoffice.org/4624 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-06-05remove unused componentcontext.hxx includesNoel Grandin1-1/+0
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-05-13fdo#46808, Convert some XMultiServiceFactory to XComponentContextNoel Grandin1-25/+16
Change-Id: I409d4820dd772aa761e806ac06a4f210c801fb41
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák1-1/+1
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák1-62/+60
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-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold1-10/+10
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold1-30/+30
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-14catch const &Eike Rathke1-10/+10
Change-Id: Ieac2188ead00d8e08b53835616a26e25e4be1e94
2013-03-14i119411 - Read/write RDF support on ODS file formatAriel Constenla-Haile1-1/+63
Patch by: Tsutomu Uchino Review by: arielch Conflicts: sc/inc/scerrors.hxx Change-Id: Idebf093b599b57cd0be4c871590db75c59c14dc1
2013-02-26fdo#38838 Replaced some use of (Xub)String with OUString.Jean-Noël Rouvignac1-3/+3
Change-Id: I5a8f2d1a5762c20d21d31b04778a9e2cac8df9cb Reviewed-on: https://gerrit.libreoffice.org/2364 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-22fdo#38838 search replace for String::CreateFromInt32().Jean-Noël Rouvignac1-2/+2
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ Change-Id: I45edaec4de2481ad45f9bcae2e280d5aca487714 Reviewed-on: https://gerrit.libreoffice.org/2281 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2013-02-21pass the storage to the XML import filterLuboš Luňák1-0/+3
The Calc case of 73a24e709396e4dd906b8cfbd7719e51f29dd3a7 . Change-Id: If280dab5bac7fa7719840ebba51bdca61b9d8c2d
2013-02-19fdo#38838 ScGlobal::GetRscString() now returns OUString instead of String.Jean-Noël Rouvignac1-4/+4
Cleaned up the call sites. Change-Id: I6c688cecd4f872ed064ccfa3af4b402a779860dc Reviewed-on: https://gerrit.libreoffice.org/2155 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-01-08DynamicErrorInfo objects must be allocated on the heapStephan Bergmann1-2/+2
cf. "delete pInfo;" in ErrorHandler::HandleError_Impl (tools/source/ref/errinf.cxx). This reverts the remaining (non UNO related) changes from e48d47469508dee55ae6abcb3988222b5612e1e9 "fix some memory leaks in sc" and 5ea7e74c29f7279b6c31d38185ace576f68f4fb2 "fix some memory leaks in sd" that had not already been reverted. Whether any of these instantiations are really leaked (i.e., never deleted again in calls to ErrorHandler::HandleError_Impl) is unclear to me, but that would need to be fixed in a different way. Change-Id: I6d9e7a2f6fce6d6a4d5d390c09a5a12f593028a6
2013-01-06fix some memory leaks in scMarkus Mohrhard1-2/+2
Change-Id: I1e3b9a55561f941346cb9f553f960dc2bafbb1b6
2012-12-04re-base on ALv2 code. Includes:Michael Meeks1-32/+24
Patches contributed by Herbert Duerr i#118735 prevent endless loop if vlookup/hlookup doesn't find anything http://svn.apache.org/viewvc?view=revision&revision=1239673 Patches contributed by Andre Fischer remove lp_solver http://svn.apache.org/viewvc?view=revision&revision=1199180 i#118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Armin Le-Grand i#118485 - Styles for OLEs are not saved. http://svn.apache.org/viewvc?view=revision&revision=1182166 i#118524: apply patch, followup fixes to 118485 http://svn.apache.org/viewvc?view=revision&revision=1186077 Patches contributed by lihuiibm i#108860 - Fix range validation. http://svn.apache.org/viewvc?view=revision&revision=1242846 i#118954 Chart data will lost after copy to different file http://svn.apache.org/viewvc?view=revision&revision=1301345 Patches contributed by Ariel Constenla-Haile Fix Linux build breaker: extra qualification on member http://svn.apache.org/viewvc?view=revision&revision=1301591 i#118696 - i#118697 - Fix some Sheet Tab Color API issues http://svn.apache.org/viewvc?view=revision&revision=1225428 i#118697 - Fix uninitialized variable http://svn.apache.org/viewvc?view=revision&revision=1225859 i#118771 - ScUndoImportTab should preserve tab background color http://svn.apache.org/viewvc?view=revision&revision=1230356 i#118921 - Repaint linked sheet tab background color after updating link http://svn.apache.org/viewvc?view=revision&revision=1245177 i#118927 - Undo/Redo "Update Link" does not reset sheet tab color http://svn.apache.org/viewvc?view=revision&revision=1245241 i#118747 - Copy tab color when transferring sheets across documents http://svn.apache.org/viewvc?view=revision&revision=1230355 Patch contributed by Oliver Rainer-Wittman i#118012 - methods <ScBroadcastAreaSlot::AreaBroadcast(..)> and <ScBroadcastAreaSlot::AreaBroadcastInRange(..)> adapt stl-container iteration in order to avoid destroyed iterators during iteration. http://svn.apache.org/viewvc?view=revision&revision=1297916 Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1396797 http://svn.apache.org/viewvc?view=revision&revision=1397315 Patch contributed by Daniel Rentz calc69: #i116936# fix VBA symbol Cells http://svn.apache.org/viewvc?view=revision&revision=1172135 Patches contributed by leiw: i#118546 CPU 100% on switched off AutoCalculate with Conditional Formatting on date values http://svn.apache.org/viewvc?view=revision&revision=1301380 Re-add new function documentation. Many various cleanups. Add missing calc66: #o11817313# also look at formula result number format, remove redundant binaries.
2012-12-04sw34bf04: #i103539#: always import meta.xml, to extract the BuildId:Michael Stahl1-14/+19
SvXMLMetaDocumentContext: refactor to not require DocumentProperties, and always set the BuildId from the meta:generator element. {Sc,Sd,Sw}XMLImport::CreateMetaContext(): always create context. sc, sd: add OrganizerMode property to ODF import. Conflicts: sc/source/filter/xml/xmlimprt.cxx sc/source/filter/xml/xmlwrap.cxx
2012-11-14Fix fdo#51121 OWA misbehaviour with uncompressed meta.xmlThorsten Behrens1-8/+6
Change Calc to save ODF with compressed meta.xml as well, since there's no reason not to. Change-Id: Ib591b0e771a6f394d955f2ea9b43d6fb7c30ecdf
2012-10-22fdo#46808, Adapt xml::sax::XWriter UNO service to new styleNoel Grandin1-14/+9
Create a merged XWriter interface for the service. The xml.sax.Writer service already existed, it just did not have an IDL file. Change-Id: I4e6d3f3c68f9282a55fc7aa19778f97632fd8ad5
2012-10-12mark lcl_ functions static or rename them if they are not local at allLuboš Luňák1-1/+1
http://lists.freedesktop.org/archives/libreoffice/2012-October/039639.html Change-Id: I231f0b367bf0b513c6c1ce4c4cfdb7c3dc8660d5
2012-10-04fdo#46808, Adapt xml::sax::XParser UNO service to new styleNoel Grandin1-9/+4
The xml.sax.Parser service already existed, it just did not have a new-style service to create it. Change-Id: I6f145a7504ff9e149c802f723991954a2801cbc9
2012-07-27unify return type in this methodMarkus Mohrhard1-2/+2
Change-Id: I8db70cff48ce900db0710b30f94090ebd7d77c0a
2012-07-27this explicit conversion is unnecessary, use the implicit oneMarkus Mohrhard1-1/+1
Change-Id: I798a1cd56baa86c7ee08b5f47ec5149d8a4815de
2012-06-09Remove superfluous include commentsThomas Arnhold1-2/+0
Change-Id: Ie5792855761b9be209bf3fa2cba9e6998523c982
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi1-2/+1
2012-01-07Fix for fdo43460 Part XXX getLength() to isEmpty()Olivier Hallot1-4/+4
Part XXX Modules sc
2012-01-05Removed unnecessary tools includes.Marcel Metz1-1/+0
2011-11-27remove include of pch header from scNorbert Thiebaud1-2/+0
2011-11-11ByteString->rtl::OStringCaolán McNamara1-15/+25
2011-11-04catch exception by const referenceTakeshi Abe1-4/+4
2011-05-27Follow-up of DBG_* removalJacek Wolszczak1-6/+5
2011-05-27Replace DBG_* with OSL_* in sc/source/filterJacek Wolszczak1-10/+10
2011-03-18Merge remote-tracking branch 'origin/integration/dev300_m101'Jan Holesovsky1-24/+44
Conflicts: chart2/source/controller/main/UndoManager.cxx chart2/source/tools/RegressionCurveHelper.cxx sc/inc/address.hxx sc/inc/attrib.hxx sc/inc/bigrange.hxx sc/inc/callform.hxx sc/inc/cell.hxx sc/inc/chartarr.hxx sc/inc/chartlis.hxx sc/inc/chgtrack.hxx sc/inc/collect.hxx sc/inc/compiler.hxx sc/inc/detdata.hxx sc/inc/document.hxx sc/inc/fillinfo.hxx sc/inc/olinetab.hxx sc/inc/prnsave.hxx sc/inc/queryparam.hxx sc/inc/sc.hrc sc/inc/scabstdlg.hxx sc/inc/table.hxx sc/inc/validat.hxx sc/inc/zforauto.hxx sc/source/core/data/documen2.cxx sc/source/core/data/document.cxx sc/source/core/data/table1.cxx sc/source/core/tool/address.cxx sc/source/core/tool/token.cxx sc/source/filter/excel/frmbase.cxx sc/source/filter/excel/impop.cxx sc/source/filter/excel/xename.cxx sc/source/filter/inc/formel.hxx sc/source/filter/inc/xename.hxx sc/source/filter/xml/xmlexprt.cxx sc/source/filter/xml/xmlnexpi.cxx sc/source/filter/xml/xmlnexpi.hxx sc/source/ui/dbgui/filtdlg.cxx sc/source/ui/inc/docfunc.hxx sc/source/ui/inc/namedlg.hxx sc/source/ui/namedlg/namedlg.cxx sc/source/ui/src/namedlg.src
2011-03-13Add missing osl/diagnose.hThomas Arnhold1-0/+1
2011-03-13Move DBG_ERROR to OSL_FAIL for strings GetBuffer()Thomas Arnhold1-5/+5
2011-03-10Merge commit 'ooo/DEV300_m101' into integration/dev300_m101Kohei Yoshida1-24/+44
2011-02-06Fix build.Thomas Arnhold1-0/+1
2011-02-06Remove dead codeThomas Arnhold1-51/+0
2011-01-19Replace suitable equalsAscii calls with equalsAsciiL.Thomas Arnhold1-1/+1
2011-01-17removetooltypes01: #i112600# remove tooltypes from scMikhail Voytenko1-2/+2
2010-11-11Use RTL_CONSTASCII_USTRINGPARAMJulien Nabet1-4/+3
2010-10-25remvove vos/macros.h usageNorbert Thiebaud1-1/+0
2010-10-25merge vosremoval-reference.diffNorbert Thiebaud1-0/+2
2010-10-13Add vim/emacs modelines to all source filesSebastian Spaeth1-0/+2
Fixes #fdo30794 Based on bin/add-modelines script (originally posted in mail 1286706307.1871.1399280959@webmail.messagingengine.com) Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>