diff options
author | Maxime de Roucy <mderoucy@linagora.com> | 2012-03-08 14:49:58 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2012-03-15 16:57:44 +0100 |
commit | 88dd798c08158af747b143b3c4994a184224f13b (patch) | |
tree | b67a84fd43a3a7266fa24416ea269800a202a3c9 /sc/source | |
parent | 2e7e5e79c025b75fc01e600cc924f34b4c8b22ce (diff) |
add SCWARN_EXPORT_MAXTAB and SCWARN_EXPORT_MAXCOL
Create separate warnings when the maximum number of row, columns or
sheets is reach in the export filter to xls forma.
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/filter/excel/expop2.cxx | 7 | ||||
-rw-r--r-- | sc/source/ui/src/scerrors.src | 8 |
2 files changed, 13 insertions, 2 deletions
diff --git a/sc/source/filter/excel/expop2.cxx b/sc/source/filter/excel/expop2.cxx index a8a4ce1828b1..ab31d97a2cc3 100644 --- a/sc/source/filter/excel/expop2.cxx +++ b/sc/source/filter/excel/expop2.cxx @@ -124,10 +124,13 @@ FltError ExportBiff5::Write() sfx2::SaveOlePropertySet(xDocProps, xRootStrg ); } - //! TODO: separate warnings for columns and sheets const XclExpAddressConverter& rAddrConv = GetAddressConverter(); - if( rAddrConv.IsColTruncated() || rAddrConv.IsRowTruncated() || rAddrConv.IsTabTruncated() ) + if( rAddrConv.IsRowTruncated() ) return SCWARN_EXPORT_MAXROW; + if( rAddrConv.IsColTruncated() ) + return SCWARN_EXPORT_MAXCOL; + if( rAddrConv.IsTabTruncated() ) + return SCWARN_EXPORT_MAXTAB; return eERR_OK; } diff --git a/sc/source/ui/src/scerrors.src b/sc/source/ui/src/scerrors.src index 2a2e2ad47169..f77dcf006393 100644 --- a/sc/source/ui/src/scerrors.src +++ b/sc/source/ui/src/scerrors.src @@ -150,6 +150,14 @@ Resource RID_ERRHDLSC { Text [ en-US ] = "The document contains more rows than supported in the selected format.\nAdditional rows were not saved." ; }; + String SCWARN_EXPORT_MAXCOL & ERRCODE_RES_MASK + { + Text [ en-US ] = "The document contains more columns than supported in the selected format.\nAdditional columns were not saved." ; + }; + String SCWARN_EXPORT_MAXTAB & ERRCODE_RES_MASK + { + Text [ en-US ] = "The document contains more sheets than supported in the selected format.\nAdditional sheets were not saved." ; + }; String SCWARN_IMPORT_INFOLOST & ERRCODE_RES_MASK { Text [ en-US ] = "The document contains information not recognized by this program version.\nResaving the document will delete this information!" ; |