summaryrefslogtreecommitdiff
path: root/sc/source/filter
AgeCommit message (Collapse)Author
2013-06-24Switch to using multi_type_vector for cell storage.Kohei Yoshida
The old style cell storage is no more. Currently the code is buildable, but crashes during unit test. Change-Id: Ie688e22e95c7fb02b9e97b23df0fc1883a97945f
2013-06-24fix hair & fine cell border export ( followon fix fdo#56960 )Noel Power
1) align excel binary and oox import filter border thickness values 2) use new fine-dash border style 3) detect & determine hair vrs fine borderline on export Change-Id: Ieb024bc6f4bfc87c525082c7b9a1f3c444f5c5ca
2013-06-24fix for bnc#823935Noel Power
window network drive urls on import get internall converted to SMB (so it appears anyway) when exported the file:/// that was on the target ( in the relId ) for the hyperlink is dropped. Apparently the scheme isn't necessary for the binary import. If one of these strange 'detected as smb' window shares are exported make sure we add the file:/// (cherry picked from commit 8e33e95500c2f5edc91e853024a5c0fff285fcce) Change-Id: Id62e1f4845bfbc610f73499881dc33d3d955923b
2013-06-23we don't need this hack without inherited number formats, fdo#66076Markus Mohrhard
Change-Id: If315ce28a4182019002141c7330475e0843f9a40
2013-06-17Resolves: #i119512# selection lost if there is blank item selected...Jian Fang Zhang
in page filed of Pivot Table Found by: shan zhu Patch by: bjcheny Review by: Yolanda Zhang Ying (cherry picked from commit 305986a4ee0f1294d629c51c75d8f793b5b80e1d) Conflicts: oox/source/xls/pivottablebuffer.cxx Change-Id: Ied8ca19738e9b2e7bb596010f7ae9e308792fcbc
2013-06-13Introduce O[U]String::toUInt32Stephan Bergmann
...which has become necessary since bd60d41176da540b01d7583cfe00637431967f39 "Handle oveflow in O(U)String::toInt() functions" reduces values in the range (SAL_MAX_INT32 .. SAL_MAX_UINT32] to zero, but some calls of toInt32(16) relied on getting a correct (unsigned) value for the whole input range ["0" .. "FFFFFFFF"] (see libreoffice-4-1 commit 9bf6c83367cedb7be81bf67f30d2147d26c7a8c3 "Revert overflow checks in O[U]String::toInt{32,64} again"). Audited all uses of toInt32/64 with non-decimal radix. (There is still a TODO comment in oox/source/helper/attributelist.cxx, and stoc/source/typeconv/convert.cxx will still need some love and test code.) Change-Id: Iadaca1c0e41dab553687d0ce41c20c10cd657a95
2013-06-13Resolves: #i121504# Support for alpha channel in clipboard for all systemsArmin Le Grand
(cherry picked from commit ef3931ff410117e1237b3bef7bc090e8b83b9519) Conflicts: automation/source/server/statemnt.cxx basic/source/runtime/methods.cxx canvas/source/vcl/devicehelper.cxx canvas/source/vcl/spritedevicehelper.cxx drawinglayer/source/processor2d/vclhelperbufferdevice.cxx drawinglayer/source/processor2d/vclmetafileprocessor2d.cxx drawinglayer/source/tools/converters.cxx dtrans/source/win32/dtobj/FmtFilter.cxx editeng/source/items/bulitem.cxx extensions/source/scanner/sanedlg.cxx external/gcc3_specific/makefile.mk filter/source/graphicfilter/eos2met/eos2met.cxx filter/source/graphicfilter/ios2met/ios2met.cxx filter/source/msfilter/msdffimp.cxx fpicker/source/office/iodlg.cxx framework/source/fwe/classes/addonsoptions.cxx framework/source/fwe/helper/actiontriggerhelper.cxx sc/source/filter/excel/xiescher.cxx sc/source/ui/docshell/docsh.cxx sc/source/ui/inc/viewfunc.hxx sd/source/ui/app/sdxfer.cxx sd/source/ui/unoidl/unopage.cxx sd/source/ui/view/sdview3.cxx sfx2/source/appl/fileobj.cxx sfx2/source/appl/linkmgr2.cxx sfx2/source/dialog/filedlghelper.cxx sfx2/source/dialog/intro.cxx sfx2/source/doc/docinf.cxx sot/inc/sot/formats.hxx sot/source/base/formats.cxx svtools/bmpmaker/bmpcore.cxx svtools/bmpmaker/bmpsum.cxx svtools/inc/svtools/transfer.hxx svtools/source/filter/filter.cxx svtools/source/filter/wmf/emfwr.cxx svtools/source/filter/wmf/enhwmf.cxx svtools/source/filter/wmf/winwmf.cxx svtools/source/filter/wmf/wmfwr.cxx svtools/source/graphic/graphic.cxx svtools/source/graphic/provider.cxx svtools/source/misc/transfer.cxx svx/inc/svx/xoutbmp.hxx svx/source/sdr/overlay/overlaymanagerbuffered.cxx svx/source/xoutdev/_xoutbmp.cxx sw/source/core/view/viewsh.cxx sw/source/filter/ww1/w1filter.cxx sw/source/filter/ww8/ww8par.hxx sw/source/ui/dochdl/swdtflvr.cxx toolkit/source/awt/vclxbitmap.cxx toolkit/source/helper/vclunohelper.cxx vcl/Library_vcl.mk vcl/Package_inc.mk vcl/aqua/source/dtrans/DataFlavorMapping.cxx vcl/aqua/source/dtrans/OSXTransferable.cxx vcl/aqua/source/dtrans/PictToBmpFlt.cxx vcl/aqua/source/dtrans/PictToBmpFlt.hxx vcl/inc/vcl/alpha.hxx vcl/inc/vcl/bitmap.hxx vcl/inc/vcl/bitmapex.hxx vcl/inc/vcl/pngwrite.hxx vcl/inc/vcl/salbtype.hxx vcl/inc/vcl/wall.hxx vcl/source/gdi/animate.cxx vcl/source/gdi/bitmap2.cxx vcl/source/gdi/bitmapex.cxx vcl/source/gdi/bmpconv.cxx vcl/source/gdi/cvtsvm.cxx vcl/source/gdi/impgraph.cxx vcl/source/gdi/impimagetree.cxx vcl/source/gdi/metaact.cxx vcl/source/gdi/wall.cxx Change-Id: I79938bc412c048c3d4e64f430f216e73bec16167
2013-06-12typo correction AX_SELCTION_xxx -> AX_SELECTION_xxxNoel Power
petty correct of AX_SELCTION_xxx -> AX_SELECTION_xxx but it was irritating me Change-Id: Iae7a0151a63502aa89f04ae54fe7348548ffd32c
2013-06-11Add a comment clarifying the intent of the code that may look like a bug.Kohei Yoshida
Change-Id: Idd340f939bcfbe6bb8cf2f589662ea8691e1606c
2013-06-11-Werror=shadowStephan Bergmann
...shadowing typedef in include/vcl/salnativewidgets.hxx Change-Id: Ibca5c99bb783d1788e6528ff7ccd0994af069adb
2013-06-11fix build error, reinstate WriteOCXExcelKludgeStream to export ole controlNoel Power
new ole export used WriteOCXExcelKludgeStream but that function dissapeared when msocximex was stripped of ocx control import ( now we use the new filters in oox ) When that stuff was moved WriteOCXExcelKludgeStream was #ifdef'ed out Change-Id: I370983efa5e8c4ba2b210dfb7535ea211d13a8c1
2013-06-11Resolves: #i121045 After save a xls file contain marco in AOO, macor can't...Jianyuan Li
Reported by: binguo Reviewed by: sunying Patched by: Jianyuan Li Change-Id: Ie728ce5185082334e3ce250d73e0660a6097f494
2013-06-11Resolves: #i121120 Support RightB(), LeftB(), LenB() and MidB()Wang Lei
Patch by: Zhang Lu Review by: Wang Lei (cherry picked from commit 424079cb8348d77e40f7d3291578bdffbe662f34) Conflicts: formula/inc/formula/compiler.hrc formula/inc/formula/opcode.hxx oox/source/xls/formulabase.cxx sc/inc/helpids.h sc/util/hidother.src sc/util/makefile.mk Change-Id: Ia04aa69aa2764842507b36ba7cc8c99e99a314e9
2013-06-10Possibly uninitialized variablesFridrich Štrba
Change-Id: Ie2b52f66c02f395d45fe24bbd2c3d897c7335add
2013-06-07share spPaperSizeTable ( and associated access code ) in msfilterNoel Power
PageSetup.PaperSize implementation more or less copy&pasted the papersize conversion code from oox, this is a followup to remove the duplication. ( Probably the binary filter could be converted to use this also saving yet another nearly similar implementation ) Change-Id: I479f0322163161f7819c5d650a9511910ac2e781
2013-06-07remove unintended changes ( from some aborted approach )Noel Power
Change-Id: I793a635711475ebb1125611ec48d52c130cd20a0
2013-06-07add missing PageSetup.PageSize apiNoel Power
Change-Id: If52fb46f61962827acc08025617d9d61a6ab6d40
2013-06-06use a transparent graphic for the OLE2 image, and spell 'Empty' correctly.Michael Meeks
Change-Id: I94fbe74b6febede4819851dfa78690507b04f4f7
2013-06-06Resolves: #i121334# Changed default for charts background to be none...Armin Le Grand
(from white) to allow fill settings in the various apps to have an effect (cherry picked from commit 0050a8e4eace17ed1b55c7ec919edaa0daadc3a7) Conflicts: chart2/source/model/main/PageBackground.cxx sc/source/ui/drawfunc/fuins2.cxx sd/source/ui/view/viewshe2.cxx Related: #i121334# turned back chart non-fill defaults... done the non-fill using tooling when creating new chart modules (cherry picked from commit af9220c24c9d80e5415d9d7d8f273b28d0d27cdb) Conflicts: chart2/source/model/main/PageBackground.cxx sc/source/filter/starcalc/scfobj.cxx sd/source/ui/view/viewshe2.cxx svx/inc/svx/charthelper.hxx svx/source/svdraw/charthelper.cxx sw/source/ui/table/tablemgr.cxx Related: #i121334# deactivated setting chart OLE background to transparent... for better UI experience and better back-compatibility to other OpenOffice derivates (cherry picked from commit 5fa621198a981ea994d9903298e8a1d884ee686b) Unname unused arguments to prevent compiler warnings. (cherry picked from commit c3c4df7647d8d4ab1425bb3c7f38932c4adcbe74) Change-Id: I1b4579aca701a4d637d21d7963b87f637458d0a5 01855cc3d4ec3c321109f924f6de4cdfbec4cd5d 18757f64ae84a415dc781929db4b76f571172ab1 de9879c2e1c249c0d957e4e46723b167ae1a8e90
2013-06-06another attempt at followon patch for fdo#38385 attempt to detect rtlNoel Power
First attempt confused things ( and was error prone ) by introducing maStart and maEnd BorderLine members to BorderLine model. Better to just leave maLeft & maRight and attempt to swap if RTL. Of course tbh this is somewhat of an optimistic attempt to swap start and end borders if needed. I am not at all sure though that I am dectecting the RTL-ness of a cell in the correct way. There are some comments in the code in any case that reflect my uncertainty ( hopefully they will be of use if/when some tweak is needed ) Change-Id: Ie953d73067630f0041fa037c6120cdbda683e796
2013-06-06Revert "follow patch for fdo#38385 attempt to detect rtl"Noel Power
This reverts commit d2cccde341af33b72378f3e7b0e8dd9ff1cd5e65.
2013-06-05sc: XLSX export: remove mpAttributes crack:Michael Stahl
When there are attributes, XclExpXmlStartElementRecord::SaveXml() would not call startElement() but instead write the XML element all by itself, which means there will be an endElement() for which no previous startElement() was called, which makes checking that these match hard. Since this silly mpAttributes over-engineering is only used in one place anyway, give that a separate subclass and use startElement(). There is still an issue with various WriteAttribute methods; if those are used it's probably not possible to check that for well-formedness. Change-Id: Id842f000a6fecd77211836705545d58031ebd0f8
2013-06-05remove unused componentcontext.hxx includesNoel Grandin
Change-Id: I598926b72c5540b472f9607e2f3df134a8c50048
2013-06-04fix for fdo#53042 fix ole object macro bindings ( for xlsm )Noel Power
A number of fixes needed here a) make sure convert properties of control model is done before inserting control model into formcontainer, need to do that to ensure that GenerateVBAEvents is set ( so the fake VBA event generation can be triggered ) b) remove the IsAlieanExcel check in servuno.cxx ( it's too strict and additionally seems there is confusion over the media type to check ) c) split the vba import so that we can ensure the VBA mode is set (if we have modules to import ) before sheets are imported and defer further processing ( actual assigning of the modules and associated objects ) until later Change-Id: I8fdbe788b400d7e41d4cc4b51b15f692bd7b0ecc
2013-06-04bnc#821795 eat stray backslashes, in ooxml num format they don't escapeNoel Power
the '\' char in the number format isn't an escape character but rather an indicator that the next character should be displayed. Change-Id: Id2ae2fcfe5f195d2b85c2933c12d2d4443bb4dd8
2013-06-04use better values for OOXML border width, fdo#56960Tim Richardson
Change-Id: Id735c7ef89411581f7bc8d7f10b3edfe8aba0c72
2013-06-03move these two variables from member variables to normal variablesMarkus Mohrhard
Change-Id: Ie57cf12a3dc0984367c34dc4f52fd00036cf3d9d
2013-06-03restore old codeMarkus Mohrhard
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 Mohrhard
Change-Id: Ib8e5cf92d733bafaef7f9e0bb8e3bf823075f489
2013-06-03Revert "the print range may start in row 0, fdo#62938"Markus Mohrhard
This reverts commit 988d388007ddafaa8a59735df99cbce678a689a8.
2013-06-03this was commited accidentallyMarkus Mohrhard
Change-Id: I2bdbf566d3443a98d3abf967512fc5b53bd25a78
2013-06-03the print range can start in row 0, fdo#62938Markus Mohrhard
Change-Id: I8569e4e120a6fd2b626db0bdaadf5d9234d09a36
2013-06-02all formula cells have now an explicit number formatMarkus Mohrhard
Remove ScFormulaCell::GetStandardFormat Change-Id: I0b19f572cfcf5c08c81009b0f10e7cc44a1aa2f4
2013-06-02remove inherited number formats, related fdo#60215Markus Mohrhard
Change-Id: I23d5e1b3baeb1499ada1fba1665027bdbe3fbb87
2013-06-02String to OUStringMarkus Mohrhard
Change-Id: I4ca8254fea9e2ec78cb1d542cc8c0c2cd12e6e89
2013-06-02bail out early for error cellsMarkus Mohrhard
Change-Id: Ice38b42cdd01b8dbb472752d2c8e1679181f8422
2013-06-02bail out for error cells earlyMarkus Mohrhard
Change-Id: I36581f3b735008dbba6eea5808da654eb8b279e3
2013-06-02remove one more use of inherited number formatsMarkus Mohrhard
Change-Id: If12ca06b45821efe9e52555095a45ae3ce2d377a
2013-06-02preparations for inherited number format removalMarkus Mohrhard
Without inherited number format these calls are unnecessary. Change-Id: I359cb217eb32d98df29bb6d2c0fbb14367e30425
2013-06-02remove temporary String instancesMarkus Mohrhard
Change-Id: I8afd7636fa0dcbf53402e8a4393868526e56892b
2013-06-01use size_t where possible and fix some more placesMarkus Mohrhard
Change-Id: I43c315aa9867cf871657064fd9455700b31879ab
2013-05-31fix buildLuboš Luňák
caused by 5658600001a41c536cc1497eb7419512cb1353d8 Change-Id: Ifb6e092cd50d8c1a77ba0e8a849c84931a776ad9
2013-05-31No need for two Excel filter servicesStephan Bergmann
The reason to have both export-only XclExpXmlStream ("com.sun.star.comp.oox.ExcelFilterExport") and im-/export oox::xls::ExcelFilter ("com.sun.star.comp.oox.xls.ExcelFilter"), where the latter uses the former to implement export, appears to be historic. Get rid of the former service, but keep it as an independent C++ class for now (still also deriving from XmlFilterBase)---this can likely be cleaned up by somebdoy versed in those XmlFilterBase details. With the last use (in oox::xls::ExcelFilter, to instantiate XclExpXmlStream) of the recently introduced com.sun.star.oox.ExcelFilterExport new-style service gone now, remove that service again. Change-Id: Id3adacd293cbe4390242827615f074d4bbe9d85a
2013-05-31Trivially merge ExcelFilterBase into ExcelFilterStephan Bergmann
Change-Id: I4c5080dd05ea7e00c56a820c8ce226c78d0a46b7
2013-05-31Resolves: #i119487 Images lose macro association when open Excel file in AOOWang Lei
Patch by: Chen Peng Review by: Wang Lei (cherry picked from commit 0c3cf59b060aa28c6d16c98c6139b316971f8c6b) Change-Id: Ibb68dba9427953e8477f40be79a6271dc1b84aa5
2013-05-30Clean up scfilt_component_getFactoryStephan Bergmann
Change-Id: I1f1be2cdc10e6ec386cc5d2e71c1e189a987df56
2013-05-30String to OUString.Donizete Waterkemper
Change-Id: I0a6bba13d71b45a7f9161030073d4d3399ea6ad5 https://gerrit.libreoffice.org/#/c/4012/
2013-05-30XclExpComments::SaveXml: MSVC complains about distance() callMichael Stahl
Change-Id: I446bf4ab0a80b7d8ed0f7235fa1da8a08b2e88dc
2013-05-29r is an optional attribute in c and r, fdo#65059Markus Mohrhard
Change-Id: Ic954cc5692ddc899f8a6fa99466bc0c8a83da352
2013-05-28oops forgot to use the mbReadyForFinalize flag in CondFormat::finalizeImport()Noel Power
Change-Id: I4606b4b1e26303ebba501276a176b2fb66bf9e37