summaryrefslogtreecommitdiff
path: root/sc/source/filter
AgeCommit message (Collapse)AuthorFilesLines
2013-12-02store internal CONVERT to .xlsx/.xls and distinguish from CONVERT_ADDEike Rathke2-2/+18
Change-Id: Ie9b5f6ade1c25618aa990ce17bd7b2a2b46a250a (cherry picked from commit 8302495a219e869f194f4b585c6f2b996eee0a5c)
2013-12-02sc: no such thing as std::vector::findMichael Stahl1-1/+5
Change-Id: I11bb688a8e0affda9ed78a61d9aba3d244914f8c
2013-12-02sc: threaded parsing of the core data inside large XLSX filesMichael Meeks5-154/+284
Enabled in experimental mode only or via SC_IMPORT_THREADS=<N> this allows significant parallelisation of sheet reading. I also implement a simple thread pool to manage that. Conflicts: sc/source/filter/oox/workbookfragment.cxx Change-Id: I66c72211f2699490230e993a374c26b1892eac12
2013-12-02Allow worker threads to use their own FastParser instances.Kohei Yoshida3-7/+201
To prevent deadlock during threaded sheet stream parsing. It now deadlocks at a different place. Conflicts: oox/source/core/xmlfilterbase.cxx sc/source/filter/oox/workbookfragment.cxx Change-Id: I0ba0f2c9a257e71b0a340ab14e369b06d5fd8829
2013-12-02make data streams an experimental featureMatúš Kukan1-1/+3
Change-Id: I674b86a6e1c1c0b162c159747b6900ce438ab095
2013-12-02export data streams; pretend to be an area linkMatúš Kukan2-28/+29
Fix ScXMLExport::GetAreaLinks to not use UNO, so we can hack DataStreams into ScMyAreaLinksContainer. We need to connect them to cells for export / import - that does not make sense for DataStream without any attached range. We use an arbitrary one. But you might remove it, if you create another ScAreaLink / DataStream with the same range, without knowing about it. Maybe it wouldn't be that bad to let DataStream inherit from ScAreaLink. Change-Id: I5b85a9329ba1ca46fb2893b54fe5161d2fb22f47
2013-12-02Import data streams - reuse infrastructure for ScAreaLink.Matúš Kukan1-0/+15
Change-Id: I18db991d2e8e665d5e4ca778344993e79772ccd5
2013-12-01fdo#72078 make status bar text localizableAndras Timar1-4/+2
Change-Id: I5d8ce77c8034819fd618d3d970908462511d2e1d
2013-12-01fix 2D vs 3D coordinatesystem regression, fdo#67300Markus Mohrhard1-2/+2
regression from 088e86b865062dd4cc5ba0c85c6068dea62238db
2013-12-01make the validation tool happyMarkus Mohrhard1-1/+1
This is just fucking awesome. The MSO implementers notes mention this attribute and point to some extended information that is either missing or does not mention this attribute. To make it more funny the MSO validation complains about invalid values in this attribute for our export. Change-Id: Iacf1a6666f9f6124106952ae19ae5d5866bc8cf1
2013-12-01more OOXML export validation fixes, fdo#71971Markus Mohrhard1-5/+9
Change-Id: Ic322d58817986887bbcd666ac3abc416609adf5c
2013-12-01write valid dxf record, related fdo#71971Markus Mohrhard1-6/+6
Change-Id: I99f4dfca78cc0fd5d9b947000a99f8414c2a899b
2013-11-29our UI DURATION is ODF and Excel PDURATIONEike Rathke1-1/+1
Change-Id: Iaf0e5f8096554b8b5d80265b6dc5296b3294f134 (cherry picked from commit 62e1a27dc757637223f5f18b1a340ba138e0cb82)
2013-11-28macro "MULTI_THREAD_SHEET_PARSING" is not used [-Werror=unused-macros]Eike Rathke1-2/+0
Change-Id: I1988e28f1feb64bb10c7941b02d9a76770871449
2013-11-27fdo#70499 selectn of lock/unlocked cells with worksheet protection reversedNoel Power2-30/+30
The ooxml spec documentation is rather confusing ( for me at least ) and the sense of the of the sheetProtection attributes as described seems reversed to how I read it ( or maybe it is the equivelant option in ScTableProtection that operates with the reverse sense <shrug> ) In anycase the import ( and export ) have been adjusted to take that into consideration, also the export now actually deals with the defaults correctly. Change-Id: Ia69567b8898b39c9d171486cfa800e1748c5814b
2013-11-27Move recalc on-load to after ScDocumentImport::finalize().Kohei Yoshida2-46/+62
Doing this would avoid re-grouping formula cells twice. (cherry picked from commit 06b3ccf8069c6478634dc218eaad3f02ecbfbc85) Conflicts: sc/source/filter/oox/workbookfragment.cxx Change-Id: I732658fc92f2fb3ddde0c0c00ae85f72074b6b48
2013-11-27Re-group formula cells before we do recalc on load (for xlsx).Kohei Yoshida1-0/+1
Change-Id: Iae6177433f05875e014de50eb4100fa381ddafdd
2013-11-22fdo#71722 add Excel 2010 functionsWinfried Donkers2-23/+31
EXPON.DIST, HYPGEOM.DIST, POISSON.DIST, WEIBULL.DIST Change-Id: Ib9f648739ec0af90cdf2f576c7f548a6acb7b4a6 Reviewed-on: https://gerrit.libreoffice.org/6748 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com> (cherry picked from commit e434c1ce0557454ef4cdd98435c5c0b1d5181bcf)
2013-11-22getChar() to return a null-terminated char array.Kohei Yoshida3-19/+12
No need to fetch string size with this change. Change-Id: Iae5f6c60430fc57985a0fec5bfec59727e5a8f0f
2013-11-22Set default cell style directly, without UNO API.Kohei Yoshida1-2/+10
This also avoids unnecessary row height adjustments. Change-Id: Icfecf0a5fdf7ef18db368ebadcf9d0b8700c0b65
2013-11-22More removal of UNO API for setting document properties.Kohei Yoshida3-25/+39
Change-Id: I8c68308394a64eee0985d7d1f8c8b34637a6da74
2013-11-22Call the method directly via ScDocument, not via obscure UNO API.Kohei Yoshida1-4/+2
Change-Id: I27628314337ae4df31420d63d7c09148369a6759
2013-11-22Shrink class sizes a bit.Kohei Yoshida1-14/+14
Change-Id: I2561ede5a42ad1f0f3bb74f7b9375f87010eddc3
2013-11-22Avoid re-drawing progress bar too frequently.Kohei Yoshida1-6/+8
Change-Id: I01dcd6d421c1f648b4cd8413e3baf50fd26d4c8f
2013-11-20Expose raw char array and use it to avoid OUString allocations.Kohei Yoshida3-3/+92
In SheetDataContext::importCell(). Change-Id: I52db64219f672ea5fbbda17686bf1173ceac5926
2013-11-20fdo#71436 add Excel 2010 functions for F-distributionWinfried Donkers2-2/+12
Added F.DIST.RT, F.INV.RT, F.TEST, which are renamed FDIST, FINV and FTEST and handle the right tail F-distribution. Added F.DIST and F.INV, which are new functions and handle the left tail F-distribution. Change-Id: Ia7fa26a25f3188249f280733d6111951e2600704 Reviewed-on: https://gerrit.libreoffice.org/6701 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-11-20Fix a few of my own thinkos, and add some assertionsTor Lillqvist1-2/+4
Fix two obvious mistakes from 8c37bafbc5adc0c79f218f9db2dc25ca8e683125. Add asserts to make sure the calls to ScFormulaCell::CreateCellGroup() that now don't take the nStart parameter any more (but assume that the cell for which this methoid is called is the start one) match the old ones in semantics. Change-Id: I50cb0cdaf620253881225baf39ae9cd935917b27
2013-11-20Point to the group's top cell in ScFormulaCellGroup instead of the top rowTor Lillqvist4-3/+7
It will make implementing the background compilation of OpenCL kernels easier, I hope. That needs data accessible through the ScFormulaCell. Change-Id: I77ad5a94eb13551e6238d5f5285f1c916d7cb992
2013-11-20WIP: Do OpenCL compilation in advance in a worker threadTor Lillqvist2-52/+0
Change-Id: I9fbf848bd487e5ea49a383461f04e3c1678af607
2013-11-20Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"Noel Grandin1-33/+34
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295. I mistakenly converted OUString::equalsL calls to OUString::startsWith calls.
2013-11-20fastparser: avoid excessive alloc/frees for int / bool / double parsingMichael Meeks1-1/+1
Change-Id: I596bbc723558f04588d9e767d64732164524e57a
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OUString::matchAsciiL callsNoel Grandin1-3/+3
Convert code like: defaultValue.matchAsciiL( RTL_CONSTASCII_STRINGPARAM( "nextval(" ) ); to: defaultValue.startsWith( "nextval(" ); Change-Id: I77bdcbf46bec6ded3c16a8248634b1424a1eb4f0
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL callsNoel Grandin1-34/+33
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
2013-11-20remove RTL_CONSTASCII_STRINGPARAM in OStringBuffer constructorNoel Grandin2-11/+6
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-20remove RTL_CONSTASCII_STRINGPARAM in OString constructorNoel Grandin1-2/+2
Convert code like: OString aKeyName(RTL_CONSTASCII_STRINGPARAM("NDX")); to: OString aKeyName("NDX"); which compiles down to the same code Change-Id: I1780264cae4484fc78f0586b0750c09f2dce135f
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in OString::appendNoel Grandin1-24/+23
Convert code like: aOStringBuf.append( RTL_CONSTASCII_STRINGPARAM( " is missing )") ); to: aOStringBuf.append( " is missing )" ); which compiles down to the same code. Change-Id: I3d8ed0cbf96a881686524a167412d5f303c06b71
2013-11-20remove unnecessary RTL_CONSTASCII_STRINGPARAM in appendAscii callsNoel Grandin1-2/+2
Convert code like: aStrBuf.appendAscii( RTL_CONSTASCII_STRINGPARAM( "ln(x)" )); to: aStrBuf.append( "ln(x)" ); which compiles down to the same code. Change-Id: I24c7cb45ceb32fd7cd6ec7ed203c2a5d746f1c5c
2013-11-19convert equalsAsciiL calls to startWith calls where possibleNoel Grandin3-4/+4
Simplify code like: aStr.equalsAsciiL( "%", 1 ) to aStr.startsWith( "%" ) Change-Id: Iee0e4e60b0ae6d567fa8f72db5d616fffbec3c00
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin3-4/+4
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-19-Werror,-Wunused-private-fieldStephan Bergmann1-2/+1
Change-Id: I8832317e23691531e7c5c51f9f1572ce6962e5a3
2013-11-18Handle global range names and use CreateString() during xlsx import.Kohei Yoshida1-6/+6
This makes the load speed slightly faster. Change-Id: I64e4d4b8c42a68577350539f3812cafdc0433f96
2013-11-17use the correct formula grammar for export, fdo#71549Markus Mohrhard1-1/+1
Change-Id: I50af1a394aa40c1a7dbc32caa2ace4a4552ac594
2013-11-14Do everything on main thread when the thread count is 1.Kohei Yoshida1-37/+50
This helps debugging / profiling easier. Change-Id: I7834585bf2aa5d5f550bd218b9845ec964b06655
2013-11-14fdo#71350 add Excel 2010 function CONFIDENCE.NORM and CONFIDENCE.TWinfried Donkers2-2/+6
Change-Id: I341b0c7a61047627aac1f12bc4653b6f9e65b2e3 Reviewed-on: https://gerrit.libreoffice.org/6625 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-11-14rhbz#887420 Implement "block untrusted referer links" featureStephan Bergmann1-1/+1
For now, this checks for a trusted referer (if the BlockUntrustedRefererLinks configuration prop is set) in utl::MediaDescriptor::impl_openStreamWithURL and SvxBrushItem::GetGraphicObject. Checking in additional places will probably be necessary to block /all/ unwanted communication. Also, some places marked /*TODO?*/ currently pass in an empty referer (which is always considered trusted) and will probably need to be adapted. Ideally, Referer URIs would never be empty (and consistently use something like <private:user> for cases where access is explicitly initiated by the user and should never be blocked), but that's a very daunting task, so start small by identifying the places that potentially need blocking and adding appropriate Referer URIs there. Also, Referer information should always be computed as freshly as possible from the context in which an access attempt is made, but, again, always carrying the information from the context all the way to the relevant functions is a very daunting task, so for now store the information upon object instantiation in some cases (SvxBrushItem, SdrGrafObj, ...). The Referer URI (css.document.MediaDescriptor property; SID_REFERER) was already used to track macro execution, and there is one place in SfxApplication::OpenDocExec_Impl where opening of hyperlinks (explicitly clicked by the user) is done that needs the current document's URI as Referer to check execution of macro URIs but needs an empty (or <private:user>, see above) Referer to not block non-macro URIs. Special code has been added there to handle that. Change-Id: Iafbdc07a9fe925d9ee580d4f5778448f18f2ebd9
2013-11-14Move MediaDescriptor from comphelper to unotoolsStephan Bergmann5-6/+2
...so it will be able to use SvtSecurityOptions internally. Change-Id: Id7433247e8fc53651935578510bedbcca5aa2ac9
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-49/+0
Change-Id: I52a2cb0a472b2b5d4489121a456f744c6be19b64
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-2/+0
Change-Id: Ib0974dcfa02a151ed970334e56c596e9c3343ca6
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-2/+0
Change-Id: I41ee628a7becb940fe19f3f17640ce4976df870e
2013-11-14-Werror,-Wunused-member-functionStephan Bergmann1-31/+0
Change-Id: I76caaa7e6097fc17d6eb5098b890e755e4d6e3aa