summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-09-30 05:48:28 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-09-30 05:48:28 +0000
commit716636d558e9cc9b910da6d127314d2b20cdf0b6 (patch)
treed266019c3c89a0649074f3290439d74010ec618c /sc
parentabda8e12d8cd23c2cd1bb870b097eddfdee38825 (diff)
CWS-TOOLING: integrate CWS koheicoderemoval
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/address.hxx6
-rw-r--r--sc/inc/appoptio.hxx4
-rw-r--r--sc/inc/attarray.hxx10
-rw-r--r--sc/inc/attrib.hxx15
-rw-r--r--sc/inc/autoform.hxx3
-rw-r--r--sc/inc/callform.hxx3
-rw-r--r--sc/inc/cell.hxx20
-rw-r--r--sc/inc/chartarr.hxx9
-rw-r--r--sc/inc/chartpos.hxx9
-rw-r--r--sc/inc/chgtrack.hxx14
-rw-r--r--sc/inc/chgviset.hxx6
-rw-r--r--sc/inc/collect.hxx8
-rw-r--r--sc/inc/column.hxx21
-rw-r--r--sc/inc/compiler.hxx13
-rw-r--r--sc/inc/compressedarray.hxx6
-rw-r--r--sc/inc/conditio.hxx19
-rw-r--r--sc/inc/dapiuno.hxx4
-rw-r--r--sc/inc/datauno.hxx6
-rw-r--r--sc/inc/dbcolect.hxx12
-rw-r--r--sc/inc/detdata.hxx5
-rw-r--r--sc/inc/dociter.hxx11
-rw-r--r--sc/inc/docoptio.hxx6
-rw-r--r--sc/inc/docpool.hxx3
-rw-r--r--sc/inc/document.hxx81
-rw-r--r--sc/inc/docuno.hxx7
-rw-r--r--sc/inc/dpobject.hxx20
-rw-r--r--sc/inc/dpsave.hxx6
-rw-r--r--sc/inc/drwlayer.hxx3
-rw-r--r--sc/inc/editsrc.hxx5
-rw-r--r--sc/inc/fielduno.hxx6
-rw-r--r--sc/inc/filter.hxx10
-rw-r--r--sc/inc/fmtuno.hxx8
-rw-r--r--sc/inc/funcdesc.hxx4
-rw-r--r--sc/inc/global.hxx17
-rw-r--r--sc/inc/hints.hxx7
-rw-r--r--sc/inc/inputopt.hxx4
-rw-r--r--sc/inc/markarr.hxx5
-rw-r--r--sc/inc/miscuno.hxx216
-rw-r--r--sc/inc/olinetab.hxx11
-rw-r--r--sc/inc/patattr.hxx26
-rw-r--r--sc/inc/pivot.hxx8
-rw-r--r--sc/inc/postit.hxx28
-rw-r--r--sc/inc/printopt.hxx5
-rw-r--r--sc/inc/progress.hxx4
-rw-r--r--sc/inc/rangelst.hxx8
-rw-r--r--sc/inc/rangenam.hxx4
-rw-r--r--sc/inc/rangeutl.hxx14
-rw-r--r--sc/inc/rechead.hxx2
-rw-r--r--sc/inc/refdata.hxx8
-rw-r--r--sc/inc/scdll.hxx6
-rw-r--r--sc/inc/scimpexpmsg.hxx137
-rw-r--r--sc/inc/scmatrix.hxx10
-rw-r--r--sc/inc/scmod.hxx4
-rw-r--r--sc/inc/servuno.hxx4
-rw-r--r--sc/inc/stlpool.hxx6
-rw-r--r--sc/inc/styleuno.hxx4
-rw-r--r--sc/inc/subtotal.hxx6
-rw-r--r--sc/inc/table.hxx14
-rw-r--r--sc/inc/textuno.hxx6
-rw-r--r--sc/inc/token.hxx10
-rw-r--r--sc/inc/tokenarray.hxx7
-rw-r--r--sc/inc/userlist.hxx7
-rw-r--r--sc/inc/validat.hxx8
-rw-r--r--sc/inc/viewopti.hxx17
-rw-r--r--sc/inc/viewuno.hxx4
-rw-r--r--sc/inc/xmlwrap.hxx6
-rw-r--r--sc/source/core/data/attarray.cxx144
-rw-r--r--sc/source/core/data/attrib.cxx352
-rw-r--r--sc/source/core/data/cell.cxx20
-rw-r--r--sc/source/core/data/cell2.cxx136
-rw-r--r--sc/source/core/data/column.cxx37
-rw-r--r--sc/source/core/data/column2.cxx659
-rw-r--r--sc/source/core/data/compressedarray.cxx23
-rw-r--r--sc/source/core/data/conditio.cxx243
-rw-r--r--sc/source/core/data/dociter.cxx82
-rw-r--r--sc/source/core/data/docpool.cxx15
-rw-r--r--sc/source/core/data/documen2.cxx639
-rw-r--r--sc/source/core/data/documen3.cxx31
-rw-r--r--sc/source/core/data/documen4.cxx30
-rw-r--r--sc/source/core/data/documen8.cxx146
-rw-r--r--sc/source/core/data/documen9.cxx162
-rw-r--r--sc/source/core/data/document.cxx436
-rw-r--r--sc/source/core/data/dpobject.cxx314
-rw-r--r--sc/source/core/data/dpoutput.cxx13
-rw-r--r--sc/source/core/data/dpsave.cxx50
-rw-r--r--sc/source/core/data/drwlayer.cxx7
-rw-r--r--sc/source/core/data/global.cxx7
-rw-r--r--sc/source/core/data/global2.cxx144
-rw-r--r--sc/source/core/data/markarr.cxx36
-rw-r--r--sc/source/core/data/olinetab.cxx77
-rw-r--r--sc/source/core/data/patattr.cxx20
-rw-r--r--sc/source/core/data/pivot.cxx4
-rw-r--r--sc/source/core/data/pivot2.cxx5
-rw-r--r--sc/source/core/data/scimpexpmsg.cxx162
-rw-r--r--sc/source/core/data/stlpool.cxx243
-rw-r--r--sc/source/core/data/table1.cxx10
-rw-r--r--sc/source/core/data/table2.cxx481
-rw-r--r--sc/source/core/data/table4.cxx14
-rw-r--r--sc/source/core/data/validat.cxx101
-rw-r--r--sc/source/core/inc/addinhelpid.hxx4
-rw-r--r--sc/source/core/inc/ddelink.hxx3
-rw-r--r--sc/source/core/inc/interpre.hxx3
-rw-r--r--sc/source/core/inc/refupdat.hxx4
-rw-r--r--sc/source/core/tool/addinhelpid.cxx12
-rw-r--r--sc/source/core/tool/address.cxx36
-rw-r--r--sc/source/core/tool/appoptio.cxx113
-rw-r--r--sc/source/core/tool/autoform.cxx7
-rw-r--r--sc/source/core/tool/callform.cxx17
-rw-r--r--sc/source/core/tool/chartarr.cxx28
-rw-r--r--sc/source/core/tool/chartpos.cxx74
-rw-r--r--sc/source/core/tool/chgtrack.cxx91
-rw-r--r--sc/source/core/tool/chgviset.cxx73
-rw-r--r--sc/source/core/tool/collect.cxx36
-rw-r--r--sc/source/core/tool/compiler.cxx28
-rw-r--r--sc/source/core/tool/dbcolect.cxx364
-rw-r--r--sc/source/core/tool/ddelink.cxx7
-rw-r--r--sc/source/core/tool/detdata.cxx55
-rw-r--r--sc/source/core/tool/docoptio.cxx86
-rw-r--r--sc/source/core/tool/hints.cxx17
-rw-r--r--sc/source/core/tool/inputopt.cxx51
-rw-r--r--sc/source/core/tool/interpr4.cxx7
-rw-r--r--sc/source/core/tool/interpr5.cxx20
-rw-r--r--sc/source/core/tool/printopt.cxx13
-rw-r--r--sc/source/core/tool/progress.cxx22
-rw-r--r--sc/source/core/tool/rangelst.cxx136
-rw-r--r--sc/source/core/tool/rangenam.cxx18
-rw-r--r--sc/source/core/tool/rangeutl.cxx58
-rw-r--r--sc/source/core/tool/rechead.cxx2
-rw-r--r--sc/source/core/tool/refdata.cxx211
-rw-r--r--sc/source/core/tool/refupdat.cxx5
-rw-r--r--sc/source/core/tool/scmatrix.cxx82
-rw-r--r--sc/source/core/tool/subtotal.cxx5
-rw-r--r--sc/source/core/tool/token.cxx122
-rw-r--r--sc/source/core/tool/userlist.cxx42
-rw-r--r--sc/source/core/tool/viewopti.cxx132
-rw-r--r--sc/source/filter/excel/colrowst.cxx12
-rw-r--r--sc/source/filter/excel/excel.cxx18
-rw-r--r--sc/source/filter/excel/exctools.cxx15
-rw-r--r--sc/source/filter/excel/frmbase.cxx28
-rw-r--r--sc/source/filter/excel/namebuff.cxx63
-rw-r--r--sc/source/filter/excel/tokstack.cxx68
-rw-r--r--sc/source/filter/excel/xeformula.cxx16
-rw-r--r--sc/source/filter/excel/xehelper.cxx30
-rw-r--r--sc/source/filter/excel/xerecord.cxx12
-rw-r--r--sc/source/filter/excel/xestream.cxx54
-rw-r--r--sc/source/filter/excel/xestring.cxx72
-rw-r--r--sc/source/filter/excel/xestyle.cxx86
-rw-r--r--sc/source/filter/excel/xistream.cxx43
-rw-r--r--sc/source/filter/excel/xlpivot.cxx15
-rw-r--r--sc/source/filter/excel/xlstyle.cxx12
-rw-r--r--sc/source/filter/excel/xltools.cxx22
-rw-r--r--sc/source/filter/excel/xltracer.cxx79
-rw-r--r--sc/source/filter/ftools/fapihelper.cxx60
-rw-r--r--sc/source/filter/ftools/fprogressbar.cxx12
-rw-r--r--sc/source/filter/html/htmlpars.cxx16
-rw-r--r--sc/source/filter/inc/colrowst.hxx3
-rw-r--r--sc/source/filter/inc/exp_op.hxx6
-rw-r--r--sc/source/filter/inc/fapihelper.hxx34
-rw-r--r--sc/source/filter/inc/fdumper.hxx4
-rw-r--r--sc/source/filter/inc/formel.hxx6
-rw-r--r--sc/source/filter/inc/fprogressbar.hxx4
-rw-r--r--sc/source/filter/inc/htmlpars.hxx5
-rw-r--r--sc/source/filter/inc/namebuff.hxx7
-rw-r--r--sc/source/filter/inc/otlnbuff.hxx3
-rw-r--r--sc/source/filter/inc/qproform.hxx4
-rw-r--r--sc/source/filter/inc/tokstack.hxx6
-rw-r--r--sc/source/filter/inc/tool.h4
-rw-r--r--sc/source/filter/inc/xcl97rec.hxx30
-rw-r--r--sc/source/filter/inc/xehelper.hxx30
-rw-r--r--sc/source/filter/inc/xerecord.hxx6
-rw-r--r--sc/source/filter/inc/xestream.hxx16
-rw-r--r--sc/source/filter/inc/xestring.hxx69
-rw-r--r--sc/source/filter/inc/xestyle.hxx33
-rw-r--r--sc/source/filter/inc/xistream.hxx15
-rw-r--r--sc/source/filter/inc/xlpivot.hxx8
-rw-r--r--sc/source/filter/inc/xlstyle.hxx7
-rw-r--r--sc/source/filter/inc/xltools.hxx7
-rw-r--r--sc/source/filter/inc/xltracer.hxx16
-rw-r--r--sc/source/filter/lotus/expop.cxx6
-rw-r--r--sc/source/filter/lotus/export.cxx6
-rw-r--r--sc/source/filter/lotus/tool.cxx39
-rw-r--r--sc/source/filter/qpro/qproform.cxx14
-rw-r--r--sc/source/filter/starcalc/scflt.cxx63
-rw-r--r--sc/source/filter/xcl97/xcl97rec.cxx48
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx109
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx3
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx16
-rw-r--r--sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx6
-rw-r--r--sc/source/filter/xml/XMLConverter.cxx14
-rw-r--r--sc/source/filter/xml/XMLConverter.hxx6
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.cxx15
-rw-r--r--sc/source/filter/xml/XMLStylesImportHelper.hxx4
-rw-r--r--sc/source/filter/xml/xmlexprt.cxx214
-rw-r--r--sc/source/filter/xml/xmlexprt.hxx23
-rw-r--r--sc/source/filter/xml/xmlimprt.cxx64
-rw-r--r--sc/source/filter/xml/xmlimprt.hxx10
-rw-r--r--sc/source/filter/xml/xmlsubti.cxx26
-rw-r--r--sc/source/filter/xml/xmlsubti.hxx4
-rw-r--r--sc/source/filter/xml/xmlwrap.cxx58
-rw-r--r--sc/source/ui/Accessibility/AccessibleContextBase.cxx12
-rw-r--r--sc/source/ui/Accessibility/AccessibleCsvControl.cxx7
-rw-r--r--sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx35
-rw-r--r--sc/source/ui/Accessibility/AccessiblePreviewCell.cxx7
-rw-r--r--sc/source/ui/Accessibility/AccessibleText.cxx60
-rw-r--r--sc/source/ui/app/inputhdl.cxx16
-rw-r--r--sc/source/ui/app/inputwin.cxx33
-rw-r--r--sc/source/ui/app/scdll.cxx143
-rw-r--r--sc/source/ui/app/scmod.cxx15
-rw-r--r--sc/source/ui/app/uiitems.cxx38
-rw-r--r--sc/source/ui/cctrl/editfield.cxx7
-rw-r--r--sc/source/ui/dbgui/dapitype.cxx7
-rw-r--r--sc/source/ui/dbgui/dbnamdlg.cxx13
-rw-r--r--sc/source/ui/dbgui/expftext.cxx24
-rw-r--r--sc/source/ui/dbgui/pvfundlg.cxx8
-rw-r--r--sc/source/ui/docshell/docfunc.cxx2
-rw-r--r--sc/source/ui/docshell/docsh.cxx238
-rw-r--r--sc/source/ui/docshell/docsh2.cxx53
-rw-r--r--sc/source/ui/docshell/docsh3.cxx15
-rw-r--r--sc/source/ui/docshell/docsh4.cxx32
-rw-r--r--sc/source/ui/docshell/docsh5.cxx4
-rw-r--r--sc/source/ui/docshell/docsh8.cxx41
-rw-r--r--sc/source/ui/docshell/editable.cxx7
-rw-r--r--sc/source/ui/docshell/tablink.cxx3
-rw-r--r--sc/source/ui/formdlg/formdata.cxx14
-rw-r--r--sc/source/ui/formdlg/formula.cxx161
-rw-r--r--sc/source/ui/formdlg/funcpage.cxx6
-rw-r--r--sc/source/ui/formdlg/funcutl.cxx65
-rw-r--r--sc/source/ui/inc/AccessibleContextBase.hxx5
-rw-r--r--sc/source/ui/inc/AccessibleCsvControl.hxx4
-rw-r--r--sc/source/ui/inc/AccessiblePreviewCell.hxx5
-rw-r--r--sc/source/ui/inc/AccessibleText.hxx6
-rw-r--r--sc/source/ui/inc/acredlin.hxx4
-rw-r--r--sc/source/ui/inc/anyrefdg.hxx4
-rw-r--r--sc/source/ui/inc/conflictsdlg.hxx8
-rw-r--r--sc/source/ui/inc/content.hxx4
-rw-r--r--sc/source/ui/inc/dapitype.hxx3
-rw-r--r--sc/source/ui/inc/dbfunc.hxx4
-rw-r--r--sc/source/ui/inc/docfunc.hxx2
-rw-r--r--sc/source/ui/inc/docsh.hxx11
-rw-r--r--sc/source/ui/inc/drawview.hxx3
-rw-r--r--sc/source/ui/inc/editable.hxx4
-rw-r--r--sc/source/ui/inc/editfield.hxx3
-rw-r--r--sc/source/ui/inc/expftext.hxx4
-rw-r--r--sc/source/ui/inc/formatsh.hxx5
-rw-r--r--sc/source/ui/inc/formdata.hxx3
-rw-r--r--sc/source/ui/inc/formula.hxx9
-rw-r--r--sc/source/ui/inc/funcpage.hxx5
-rw-r--r--sc/source/ui/inc/funcutl.hxx8
-rw-r--r--sc/source/ui/inc/gridwin.hxx13
-rw-r--r--sc/source/ui/inc/groupdlg.hxx3
-rw-r--r--sc/source/ui/inc/inputhdl.hxx6
-rw-r--r--sc/source/ui/inc/inputwin.hxx7
-rw-r--r--sc/source/ui/inc/lbseldlg.hxx4
-rw-r--r--sc/source/ui/inc/navipi.hxx4
-rw-r--r--sc/source/ui/inc/olinewin.hxx4
-rw-r--r--sc/source/ui/inc/output.hxx5
-rw-r--r--sc/source/ui/inc/prevloc.hxx5
-rw-r--r--sc/source/ui/inc/prevwsh.hxx6
-rw-r--r--sc/source/ui/inc/pvfundlg.hxx3
-rw-r--r--sc/source/ui/inc/refundo.hxx6
-rw-r--r--sc/source/ui/inc/simpref.hxx4
-rw-r--r--sc/source/ui/inc/tabview.hxx24
-rw-r--r--sc/source/ui/inc/tabvwsh.hxx24
-rw-r--r--sc/source/ui/inc/uiitems.hxx21
-rw-r--r--sc/source/ui/inc/undodat.hxx70
-rw-r--r--sc/source/ui/inc/undotab.hxx2
-rw-r--r--sc/source/ui/inc/viewdata.hxx12
-rw-r--r--sc/source/ui/inc/viewfunc.hxx10
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx8
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx14
-rw-r--r--sc/source/ui/miscdlgs/conflictsdlg.cxx64
-rw-r--r--sc/source/ui/miscdlgs/groupdlg.cxx9
-rw-r--r--sc/source/ui/miscdlgs/lbseldlg.cxx10
-rw-r--r--sc/source/ui/miscdlgs/simpref.cxx13
-rw-r--r--sc/source/ui/navipi/content.cxx22
-rw-r--r--sc/source/ui/navipi/navipi.cxx50
-rw-r--r--sc/source/ui/undo/refundo.cxx10
-rw-r--r--sc/source/ui/undo/undoblk3.cxx4
-rw-r--r--sc/source/ui/undo/undodat.cxx319
-rw-r--r--sc/source/ui/undo/undotab.cxx2
-rw-r--r--sc/source/ui/unoobj/dapiuno.cxx44
-rw-r--r--sc/source/ui/unoobj/datauno.cxx65
-rw-r--r--sc/source/ui/unoobj/docuno.cxx35
-rw-r--r--sc/source/ui/unoobj/editsrc.cxx12
-rw-r--r--sc/source/ui/unoobj/fielduno.cxx38
-rw-r--r--sc/source/ui/unoobj/fmtuno.cxx26
-rw-r--r--sc/source/ui/unoobj/miscuno.cxx176
-rw-r--r--sc/source/ui/unoobj/servuno.cxx16
-rw-r--r--sc/source/ui/unoobj/shapeuno.cxx13
-rw-r--r--sc/source/ui/unoobj/styleuno.cxx14
-rw-r--r--sc/source/ui/unoobj/textuno.cxx19
-rw-r--r--sc/source/ui/unoobj/viewuno.cxx20
-rw-r--r--sc/source/ui/vba/vbahelper.cxx18
-rw-r--r--sc/source/ui/vba/vbahelper.hxx3
-rw-r--r--sc/source/ui/vba/vbarange.cxx16
-rw-r--r--sc/source/ui/vba/vbashapes.cxx5
-rw-r--r--sc/source/ui/vba/vbashapes.hxx5
-rw-r--r--sc/source/ui/view/cellsh2.cxx4
-rw-r--r--sc/source/ui/view/dbfunc.cxx10
-rw-r--r--sc/source/ui/view/drawvie3.cxx22
-rw-r--r--sc/source/ui/view/drawview.cxx32
-rw-r--r--sc/source/ui/view/formatsh.cxx11
-rw-r--r--sc/source/ui/view/gridwin.cxx10
-rw-r--r--sc/source/ui/view/gridwin2.cxx13
-rw-r--r--sc/source/ui/view/gridwin3.cxx73
-rw-r--r--sc/source/ui/view/gridwin4.cxx189
-rw-r--r--sc/source/ui/view/olinewin.cxx10
-rw-r--r--sc/source/ui/view/output.cxx138
-rw-r--r--sc/source/ui/view/output2.cxx171
-rw-r--r--sc/source/ui/view/prevloc.cxx108
-rw-r--r--sc/source/ui/view/prevwsh.cxx23
-rw-r--r--sc/source/ui/view/printfun.cxx27
-rw-r--r--sc/source/ui/view/tabview.cxx52
-rw-r--r--sc/source/ui/view/tabview3.cxx169
-rw-r--r--sc/source/ui/view/tabview4.cxx16
-rw-r--r--sc/source/ui/view/tabview5.cxx17
-rw-r--r--sc/source/ui/view/tabvwsh2.cxx4
-rw-r--r--sc/source/ui/view/tabvwsh4.cxx145
-rw-r--r--sc/source/ui/view/tabvwsh5.cxx11
-rw-r--r--sc/source/ui/view/tabvwshc.cxx118
-rw-r--r--sc/source/ui/view/viewdata.cxx118
-rw-r--r--sc/source/ui/view/viewfun2.cxx62
-rw-r--r--sc/source/ui/view/viewfun4.cxx32
-rw-r--r--sc/source/ui/view/viewfunc.cxx12
324 files changed, 2953 insertions, 10714 deletions
diff --git a/sc/inc/address.hxx b/sc/inc/address.hxx
index 3f6901b2bc37..f063ee539365 100644
--- a/sc/inc/address.hxx
+++ b/sc/inc/address.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: address.hxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.17.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -330,9 +330,6 @@ public:
inline size_t hash() const;
- // moved from ScTripel
- /// "(1,2,3)"
- String GetText() const;
/// "A1" or "$A$1" or R1C1 or R[1]C[1]
String GetColRowString( bool bAbsolute = FALSE,
const Details& rDetails = detailsOOOa1) const;
@@ -475,7 +472,6 @@ public:
// The document for the maximum defined sheet number
bool Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* =NULL );
void Justify();
- void ExtendOne();
void ExtendTo( const ScRange& rRange );
bool Intersects( const ScRange& ) const; // do two ranges intersect?
inline bool operator==( const ScRange& r ) const;
diff --git a/sc/inc/appoptio.hxx b/sc/inc/appoptio.hxx
index aba8f878915b..219036728869 100644
--- a/sc/inc/appoptio.hxx
+++ b/sc/inc/appoptio.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: appoptio.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -88,8 +88,6 @@ public:
const ScAppOptions& operator= ( const ScAppOptions& rOpt );
- friend SvStream& operator>> ( SvStream& rStream, ScAppOptions& rOpt );
- friend SvStream& operator<< ( SvStream& rStream, const ScAppOptions& rOpt );
private:
FieldUnit eMetric;
diff --git a/sc/inc/attarray.hxx b/sc/inc/attarray.hxx
index 4771d8f71b21..1f6c02c2d74f 100644
--- a/sc/inc/attarray.hxx
+++ b/sc/inc/attarray.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attarray.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -166,8 +166,8 @@ public:
BOOL IsEmpty() const;
- SCROW GetFirstEntryPos() const;
- SCROW GetLastEntryPos( BOOL bIncludeBottom ) const;
+//UNUSED2008-05 SCROW GetFirstEntryPos() const;
+//UNUSED2008-05 SCROW GetLastEntryPos( BOOL bIncludeBottom ) const;
BOOL GetFirstVisibleAttr( SCROW& rFirstRow ) const;
BOOL GetLastVisibleAttr( SCROW& rLastRow, SCROW nLastData ) const;
@@ -188,9 +188,7 @@ public:
void DeleteHardAttr( SCROW nStartRow, SCROW nEndRow );
- void Save( SvStream& rStream ) const;
- void Load( SvStream& rStream );
- void ConvertFontsAfterLoad(); // old binary file format
+//UNUSED2008-05 void ConvertFontsAfterLoad(); // old binary file format
};
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx
index a129a30ff15a..ed8c9719272b 100644
--- a/sc/inc/attrib.hxx
+++ b/sc/inc/attrib.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attrib.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -74,7 +74,6 @@ public:
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
SCsCOL GetColMerge() const {return nColMerge; }
SCsROW GetRowMerge() const {return nRowMerge; }
@@ -136,7 +135,6 @@ public:
virtual int operator==( const SfxPoolItem& ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
@@ -188,9 +186,6 @@ public:
String &rText,
const IntlWrapper* pIntl = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
const ScRange& GetRange() const { return aRange; }
void SetRange( const ScRange& rNew ) { aRange = rNew; }
@@ -235,7 +230,7 @@ public:
inline ScTableListItem( const USHORT nWhich );
ScTableListItem( const ScTableListItem& rCpy );
- ScTableListItem( const USHORT nWhich, const List& rList );
+//UNUSED2008-05 ScTableListItem( const USHORT nWhich, const List& rList );
~ScTableListItem();
ScTableListItem& operator=( const ScTableListItem &rCpy );
@@ -248,8 +243,6 @@ public:
String &rText,
const IntlWrapper* pIntl = 0 ) const;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
- virtual SfxPoolItem* Create(SvStream &, USHORT) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
BOOL GetTableList( List& aList ) const;
void SetTableList( const List& aList );
@@ -287,9 +280,6 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
-
- virtual USHORT GetVersion( USHORT nFileVersion ) const;
virtual BOOL QueryValue( com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 ) const;
virtual BOOL PutValue( const com::sun::star::uno::Any& rVal, BYTE nMemberId = 0 );
@@ -347,7 +337,6 @@ public:
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual SfxPoolItem* Create( SvStream& rStream, USHORT nVer ) const;
- virtual SvStream& Store( SvStream& rStream, USHORT nVer ) const;
double GetValue() const { return nValue; }
diff --git a/sc/inc/autoform.hxx b/sc/inc/autoform.hxx
index fa52d778bb40..d5feb4840837 100644
--- a/sc/inc/autoform.hxx
+++ b/sc/inc/autoform.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: autoform.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -245,7 +245,6 @@ public:
void CopyItem( USHORT nToIndex, USHORT nFromIndex, USHORT nWhich );
const ScNumFormatAbbrev& GetNumFormat( USHORT nIndex ) const;
- void SetNumFormat( USHORT nIndex, const ScNumFormatAbbrev& rNumFormat );
BOOL IsEqualData( USHORT nIndex1, USHORT nIndex2 ) const;
diff --git a/sc/inc/callform.hxx b/sc/inc/callform.hxx
index 4fec95645953..9d1f1a20a91c 100644
--- a/sc/inc/callform.hxx
+++ b/sc/inc/callform.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: callform.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -98,7 +98,6 @@ public:
ParamType GetReturnType() const { return eParamType[0]; }
ParamType GetAsyncType() const { return eAsyncType; }
BOOL Call(void** ppParam);
- BOOL Advice(AdvData pfCallback);
BOOL Unadvice(double nHandle);
// Name und Beschreibung des Parameters nParam.
diff --git a/sc/inc/cell.hxx b/sc/inc/cell.hxx
index 59d551ec5496..810288b56600 100644
--- a/sc/inc/cell.hxx
+++ b/sc/inc/cell.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cell.hxx,v $
- * $Revision: 1.30 $
+ * $Revision: 1.29.32.5 $
*
* This file is part of OpenOffice.org.
*
@@ -99,8 +99,6 @@ public:
inline void ForgetBroadcaster();
inline void SwapBroadcaster(ScBaseCell& rOther); // zum Sortieren
- void LoadNote( SvStream& rStream, ScDocument* pDoc );
-
// String- oder EditCell
static ScBaseCell* CreateTextCell( const String& rString, ScDocument* );
@@ -139,13 +137,10 @@ public:
ScValueCell();
ScValueCell( const double& rValue );
ScValueCell( const ScValueCell& rScValueCell, ScDocument* pDoc );
- ScValueCell( SvStream& rStream, USHORT nVer );
ScBaseCell* Clone(ScDocument* pDoc) const;
void SetValue( const double& rValue );
double GetValue() const;
-
- void Save( SvStream& rStream ) const;
};
@@ -166,15 +161,10 @@ public:
ScStringCell();
ScStringCell( const String& rString );
ScStringCell( const ScStringCell& rScStringCell, ScDocument* pDoc );
- ScStringCell( SvStream& rStream, USHORT nVer );
ScBaseCell* Clone(ScDocument* pDoc) const;
void SetString( const String& rString );
void GetString( String& rString ) const;
-
- void Save( SvStream& rStream, FontToSubsFontConverter hConv = 0 ) const;
- // convert symbol font after loading binary format
- void ConvertFont( FontToSubsFontConverter hConv );
};
@@ -200,11 +190,9 @@ public:
~ScEditCell(); // wegen pData immer!
- ScEditCell( ScDocument* );
ScEditCell( const EditTextObject* pObject, ScDocument*,
const SfxItemPool* pFromPool /* = NULL */ );
ScEditCell( const ScEditCell& rEditCell, ScDocument* );
- ScEditCell( SvStream& rStream, USHORT nVer, ScDocument* );
// fuer Zeilenumbrueche
ScEditCell( const String& rString, ScDocument* );
ScBaseCell* Clone( ScDocument* ) const;
@@ -215,8 +203,6 @@ public:
void GetString( String& rString ) const;
const EditTextObject* GetData() const { return pData; }
-
- void Save( SvStream& rStream ) const;
};
enum ScMatrixMode {
@@ -324,7 +310,6 @@ public:
BOOL HasOneReference( ScRange& r ) const;
BOOL HasRelNameReference() const;
- BOOL HasDBArea() const;
BOOL HasColRowName() const;
void UpdateReference(UpdateRefMode eUpdateRefMode,
@@ -449,10 +434,7 @@ public:
ScNoteCell();
ScNoteCell( const ScPostIt& rNote );
ScNoteCell( const ScNoteCell& rScNoteCell, ScDocument* pDoc );
- ScNoteCell( SvStream& rStream, USHORT nVer );
ScBaseCell* Clone(ScDocument* pDoc) const;
-
- void Save( SvStream& rStream ) const;
};
diff --git a/sc/inc/chartarr.hxx b/sc/inc/chartarr.hxx
index 63d602529bf0..0cce265866c2 100644
--- a/sc/inc/chartarr.hxx
+++ b/sc/inc/chartarr.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chartarr.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -90,7 +90,6 @@ public:
ScChartArray( ScDocument* pDoc, const ScRangeListRef& rRangeList,
const String& rChartName );
ScChartArray( const ScChartArray& rArr );
- ScChartArray( ScDocument* pDoc, SvStream& rStream, ScMultipleReadHeader& rHdr );
virtual ~ScChartArray();
virtual DataObject* Clone() const;
@@ -98,8 +97,6 @@ public:
const ScRangeListRef& GetRangeList() const { return aPositioner.GetRangeList(); }
void SetRangeList( const ScRangeListRef& rNew ) { aPositioner.SetRangeList(rNew); }
void SetRangeList( const ScRange& rNew ) { aPositioner.SetRangeList(rNew); }
- void AddToRangeList( const ScRange& rRange ) { aPositioner.AddToRangeList(rRange); }
- void AddToRangeList( const ScRangeListRef& rAdd ) { aPositioner.AddToRangeList(rAdd); }
const ScChartPositionMap* GetPositionMap() { return aPositioner.GetPositionMap(); }
void SetHeaders(BOOL bCol, BOOL bRow) { aPositioner.SetHeaders(bCol, bRow); }
@@ -109,8 +106,6 @@ public:
void SetName(const String& rNew) { aName = rNew; }
const String& GetName() const { return aName; }
- BOOL IsAtCursor(const ScAddress& rPos) const { return aPositioner.IsAtCursor(rPos); }
-
BOOL operator==(const ScChartArray& rCmp) const;
ScMemChart* CreateMemChart();
@@ -128,8 +123,6 @@ public:
{ return (ScChartArray*)At(nIndex); }
BOOL operator==(const ScChartCollection& rCmp) const;
-
- BOOL Load( ScDocument* pDoc, SvStream& rStream );
};
diff --git a/sc/inc/chartpos.hxx b/sc/inc/chartpos.hxx
index 4c71eb6ff04a..b3b6e8763eb1 100644
--- a/sc/inc/chartpos.hxx
+++ b/sc/inc/chartpos.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chartpos.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -135,7 +135,6 @@ private:
void CreatePositionMap();
public:
- ScChartPositioner( ScDocument* pDoc );
ScChartPositioner( ScDocument* pDoc, SCTAB nTab,
SCCOL nStartColP, SCROW nStartRowP,
SCCOL nEndColP, SCROW nEndRowP );
@@ -144,13 +143,9 @@ public:
virtual ~ScChartPositioner();
- String ReadStream( SvStream& rStream, ScMultipleReadHeader& rHdr );
-
const ScRangeListRef& GetRangeList() const { return aRangeListRef; }
void SetRangeList( const ScRangeListRef& rNew ) { aRangeListRef = rNew; }
void SetRangeList( const ScRange& rNew );
- void AddToRangeList( const ScRange& rRange );
- void AddToRangeList( const ScRangeListRef& rAdd );
void SetHeaders(BOOL bCol, BOOL bRow) { bColHeaders=bCol; bRowHeaders=bRow; }
BOOL HasColHeaders() const { return bColHeaders; }
@@ -160,8 +155,6 @@ public:
void SetStartCol(SCCOL nNew) { nStartCol = nNew; }
void SetStartRow(SCROW nNew) { nStartRow = nNew; }
- BOOL IsAtCursor(const ScAddress& rPos) const;
-
BOOL operator==(const ScChartPositioner& rCmp) const;
void InvalidateGlue()
diff --git a/sc/inc/chgtrack.hxx b/sc/inc/chgtrack.hxx
index 4e775afe8f34..f455954389c8 100644
--- a/sc/inc/chgtrack.hxx
+++ b/sc/inc/chgtrack.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chgtrack.hxx,v $
- * $Revision: 1.31 $
+ * $Revision: 1.31.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -320,10 +320,7 @@ protected:
pLnk->SetLink( pL );
return pLnk;
}
- void RemoveLink( ScChangeAction* p );
void RemoveAllAnyLinks();
- // zeigt ein AnyLink auf p?
- BOOL DependsOn( ScChangeAction* p ) const;
virtual ScChangeActionLinkEntry* GetDeletedIn() const
{ return pLinkDeletedIn; }
@@ -343,7 +340,6 @@ protected:
return new ScChangeActionLinkEntry(
&pLinkDeleted, p );
}
- BOOL RemoveDeleted( const ScChangeAction* p );
void RemoveAllDeleted();
ScChangeActionLinkEntry* AddDependent( ScChangeAction* p )
@@ -351,7 +347,6 @@ protected:
return new ScChangeActionLinkEntry(
&pLinkDependent, p );
}
- void RemoveDependent( ScChangeAction* p );
void RemoveAllDependent();
void RemoveAllLinks();
@@ -611,7 +606,6 @@ class ScChangeActionDel : public ScChangeAction
virtual const ScChangeTrack* GetChangeTrack() const { return pTrack; }
- virtual BOOL Store( SvStream&, ScMultipleWriteHeader& ) const;
virtual BOOL StoreLinks( SvStream& ) const;
virtual BOOL LoadLinks( SvStream&, ScChangeTrack* );
@@ -1168,12 +1162,6 @@ class ScChangeTrack : public SfxListener
// Content on top an Position
ScChangeActionContent* SearchContentAt( const ScBigAddress&,
ScChangeAction* pButNotThis ) const;
- // das gleiche fuer generierte Del-Eintraege,
- // wobei der Content nicht in der angegebenen
- // Richtung geloescht sein darf
- ScChangeActionContent* SearchGeneratedDelContentAt(
- const ScBigAddress&,
- ScChangeActionType eNotInDelType ) const;
void DeleteGeneratedDelContent(
ScChangeActionContent* );
ScChangeActionContent* GenerateDelContent( const ScAddress&,
diff --git a/sc/inc/chgviset.hxx b/sc/inc/chgviset.hxx
index 2cb372381b1e..7a3c0e3986bf 100644
--- a/sc/inc/chgviset.hxx
+++ b/sc/inc/chgviset.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chgviset.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -134,10 +134,6 @@ public:
BOOL IsShowRejected() const { return bShowRejected; }
void SetShowRejected( BOOL bVal ) { bShowRejected = bVal; }
-
- void Load( SvStream& rStream, USHORT nVer );
- void Store( SvStream& rStream ) const;
-
ScChangeViewSettings& operator= ( const ScChangeViewSettings& r );
/// Adjust dates according to selected DateMode
diff --git a/sc/inc/collect.hxx b/sc/inc/collect.hxx
index 3b53e09a31f9..c5f3d68813ca 100644
--- a/sc/inc/collect.hxx
+++ b/sc/inc/collect.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: collect.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -161,8 +161,8 @@ public:
nValue(nVal),
nStrType(nType) {}
- TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab,
- BOOL bAllStrings );
+//UNUSED2008-05 TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab,
+//UNUSED2008-05 BOOL bAllStrings );
TypedStrData( const TypedStrData& rCpy )
: DataObject(),
@@ -178,7 +178,9 @@ public:
private:
friend class TypedStrCollection;
+#if OLD_PIVOT_IMPLEMENTATION
friend class PivotStrCollection;
+#endif
String aStrValue;
double nValue;
diff --git a/sc/inc/column.hxx b/sc/inc/column.hxx
index 650b0e0ce9c1..f43193c23313 100644
--- a/sc/inc/column.hxx
+++ b/sc/inc/column.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: column.hxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.21.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -143,7 +143,6 @@ public:
void DeleteAtIndex( SCSIZE nIndex );
void FreeAll();
void Resize( SCSIZE nSize );
- void SetNewRow( SCROW nRow1, SCROW nRow2 );
void SwapRow( SCROW nRow1, SCROW nRow2 );
void SwapCell( SCROW nRow, ScColumn& rCol);
@@ -179,12 +178,6 @@ public:
USHORT GetBlockMatrixEdges( SCROW nRow1, SCROW nRow2, USHORT nMask ) const;
BOOL HasSelectionMatrixFragment(const ScMarkData& rMark) const;
- // Daten oder Attribute:
- SCROW GetFirstEntryPos() const;
- SCROW GetLastEntryPos() const;
-
- // nur Attribute:
- SCROW GetLastAttrPos() const;
BOOL GetFirstVisibleAttr( SCROW& rFirstRow ) const;
BOOL GetLastVisibleAttr( SCROW& rLastRow ) const;
BOOL HasVisibleAttrIn( SCROW nStartRow, SCROW nEndRow ) const;
@@ -379,16 +372,8 @@ public:
void GetFilterEntries(SCROW nStartRow, SCROW nEndRow, TypedStrCollection& rStrings);
BOOL GetDataEntries(SCROW nRow, TypedStrCollection& rStrings, BOOL bLimit);
- SCROW NoteCount( SCROW nMaxRow = MAXROW ) const;
-
- void LoadData( SvStream& rStream );
- void SaveData( SvStream& rStream ) const;
-
- void LoadNotes( SvStream& rStream );
- void SaveNotes( SvStream& rStream ) const;
+//UNUSED2008-05 SCROW NoteCount( SCROW nMaxRow = MAXROW ) const;
- BOOL Load( SvStream& rStream, ScMultipleReadHeader& rHdr );
- BOOL Save( SvStream& rStream, ScMultipleWriteHeader& rHdr ) const;
void UpdateInsertTabAbs(SCTAB nNewPos);
BOOL TestTabRefAbs(SCTAB nTable);
BOOL GetNextSpellingCell(SCROW& nRow, BOOL bInSel, const ScMarkData& rData) const;
@@ -414,7 +399,7 @@ public:
private:
ScBaseCell* CloneCell(SCSIZE nIndex, USHORT nFlags,
ScDocument* pDestDoc, const ScAddress& rDestPos);
- void CorrectSymbolCells( CharSet eStreamCharSet );
+//UNUSED2008-05 void CorrectSymbolCells( CharSet eStreamCharSet );
};
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx
index b1bd35bc8199..81f5c606c9be 100644
--- a/sc/inc/compiler.hxx
+++ b/sc/inc/compiler.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: compiler.hxx,v $
- * $Revision: 1.40 $
+ * $Revision: 1.36.30.4 $
*
* This file is part of OpenOffice.org.
*
@@ -178,13 +178,13 @@ public:
void SetSingleReference( const SingleRefData& rRef );
void SetDoubleReference( const ComplRefData& rRef );
void SetDouble( double fVal );
- void SetInt( int nVal );
+//UNUSED2008-05 void SetInt( int nVal );
+//UNUSED2008-05 void SetMatrix( ScMatrix* p );
+//UNUSED2008-05 // These methods are ok to use, reference count not cleared.
+//UNUSED2008-05 ComplRefData& GetReference();
+//UNUSED2008-05 void SetReference( ComplRefData& rRef );
void SetName( USHORT n );
- void SetMatrix( ScMatrix* p );
void SetExternal(const sal_Unicode* pStr);
- // These methods are ok to use, reference count not cleared.
- ComplRefData& GetReference();
- void SetReference( ComplRefData& rRef );
ScRawToken* Clone() const; // real copy!
ScToken* CreateToken() const; // create typified token
@@ -452,7 +452,6 @@ private:
BOOL IsColRowName( const String& );
BOOL IsBoolean( const String& );
void AutoCorrectParsedSymbol();
- void AdjustReference( SingleRefData& r );
void PushTokenArray( ScTokenArray*, BOOL = FALSE );
void PopTokenArray();
void SetRelNameReference();
diff --git a/sc/inc/compressedarray.hxx b/sc/inc/compressedarray.hxx
index 28fb65f8868b..15487e0811e8 100644
--- a/sc/inc/compressedarray.hxx
+++ b/sc/inc/compressedarray.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: compressedarray.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -102,10 +102,6 @@ public:
not decremented and the value of the first entry is returned again. */
const D& GetPrevValue( size_t& nIndex, A& nStart ) const;
- /** Fill an array with consecutive data between nStart and nEnd. Caller
- must assure that all elements fit into the array. */
- void FillDataArray( A nStart, A nEnd, D * pArray ) const;
-
/** Return the last row where an entry meets the condition:
(aValue != rCompare). If no entry meets this condition
::std::numeric_limits<A>::max() is returned. */
diff --git a/sc/inc/conditio.hxx b/sc/inc/conditio.hxx
index ffa34c35da59..a35426090f8f 100644
--- a/sc/inc/conditio.hxx
+++ b/sc/inc/conditio.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: conditio.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -106,11 +106,6 @@ class ScConditionEntry
BOOL IsValid( double nArg ) const;
BOOL IsValidStr( const String& rArg ) const;
-protected:
- ScConditionEntry( SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument );
- void StoreCondition(SvStream& rStream, ScMultipleWriteHeader& rHdr) const;
-
public:
ScConditionEntry( ScConditionMode eOper,
const String& rExpr1, const String& rExpr2,
@@ -183,14 +178,10 @@ public:
const String& rStyle );
ScCondFormatEntry( const ScCondFormatEntry& r );
ScCondFormatEntry( ScDocument* pDocument, const ScCondFormatEntry& r );
- ScCondFormatEntry( SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument );
virtual ~ScCondFormatEntry();
void SetParent( ScConditionalFormat* pNew ) { pParent = pNew; }
- void Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const;
-
int operator== ( const ScCondFormatEntry& r ) const;
const String& GetStyle() const { return aStyleName; }
@@ -215,15 +206,11 @@ class ScConditionalFormat
public:
ScConditionalFormat(sal_uInt32 nNewKey, ScDocument* pDocument);
ScConditionalFormat(const ScConditionalFormat& r);
- ScConditionalFormat(SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument);
~ScConditionalFormat();
// echte Kopie der Formeln (fuer Ref-Undo / zwischen Dokumenten)
ScConditionalFormat* Clone(ScDocument* pNewDoc = NULL) const;
- void Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const;
-
void AddEntry( const ScCondFormatEntry& rNew );
BOOL IsEmpty() const { return (nEntryCount == 0); }
@@ -280,9 +267,7 @@ public:
ScConditionalFormat* GetFormat( sal_uInt32 nKey );
- void Load( SvStream& rStream, ScDocument* pDocument );
- void Store( SvStream& rStream ) const;
- void ResetUsed();
+//UNUSED2008-05 void ResetUsed();
void CompileAll();
void CompileXML();
diff --git a/sc/inc/dapiuno.hxx b/sc/inc/dapiuno.hxx
index 31cedfc0b111..8fe665ae6130 100644
--- a/sc/inc/dapiuno.hxx
+++ b/sc/inc/dapiuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dapiuno.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.10.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -69,7 +69,9 @@ namespace com { namespace sun { namespace star { namespace sheet {
}}}}
class ScDocShell;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivot;
+#endif
class ScDPSaveDimension;
class ScDPSaveGroupDimension;
class ScDPSaveNumGroupDimension;
diff --git a/sc/inc/datauno.hxx b/sc/inc/datauno.hxx
index 313c9f0171ad..405d49e2a6b2 100644
--- a/sc/inc/datauno.hxx
+++ b/sc/inc/datauno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: datauno.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -502,10 +502,6 @@ public:
// nField[] hier innerhalb des Bereichs:
void GetQueryParam(ScQueryParam& rQueryParam) const;
void SetQueryParam(const ScQueryParam& rQueryParam);
- void GetSortParam(ScSortParam& rSortParam) const;
- void SetSortParam(const ScSortParam& rSortParam);
- void GetImportParam(ScImportParam& rImportParam) const;
- void SetImportParam(const ScImportParam& rImportParam);
void GetSubTotalParam(ScSubTotalParam& rSubTotalParam) const;
void SetSubTotalParam(const ScSubTotalParam& rSubTotalParam);
diff --git a/sc/inc/dbcolect.hxx b/sc/inc/dbcolect.hxx
index b283c44a8799..0b3f965ebc96 100644
--- a/sc/inc/dbcolect.hxx
+++ b/sc/inc/dbcolect.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbcolect.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.5 $
*
* This file is part of OpenOffice.org.
*
@@ -129,7 +129,6 @@ public:
SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
BOOL bByR = TRUE, BOOL bHasH = TRUE);
ScDBData(const ScDBData& rData);
- ScDBData( SvStream& rStream, ScMultipleReadHeader& rHdr );
~ScDBData();
virtual DataObject* Clone() const;
@@ -138,8 +137,6 @@ public:
BOOL operator== (const ScDBData& rData) const;
- BOOL Store( SvStream& rStream, ScMultipleWriteHeader& rHdr ) const;
-
const String& GetName() const { return aName; }
void GetName(String& rName) const { rName = aName; }
void SetName(const String& rName) { aName = rName; }
@@ -160,7 +157,7 @@ public:
BOOL IsStripData() const { return bStripData; }
void SetStripData(BOOL bSet) { bStripData = bSet; }
- BOOL IsBeyond(SCROW nMaxRow) const;
+//UNUSED2008-05 BOOL IsBeyond(SCROW nMaxRow) const;
String GetSourceString() const;
String GetOperations() const;
@@ -182,8 +179,6 @@ public:
BOOL IsDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bStartOnly) const;
BOOL IsDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const;
- String GetTargetName(const String& rDocName) const;
-
BOOL HasImportParam() const { return bDBImport; }
BOOL HasQueryParam() const { return bDoQuery[0]; }
BOOL HasSortParam() const { return bDoSort[0]; }
@@ -228,9 +223,6 @@ public:
ScDBData* GetDBAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab, BOOL bStartOnly) const;
ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const;
- BOOL Load( SvStream& rStream );
- BOOL Store( SvStream& rStream ) const;
-
BOOL SearchName( const String& rName, USHORT& rIndex ) const;
void DeleteOnTab( SCTAB nTab );
diff --git a/sc/inc/detdata.hxx b/sc/inc/detdata.hxx
index a99cdf24d893..06beb91790f1 100644
--- a/sc/inc/detdata.hxx
+++ b/sc/inc/detdata.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: detdata.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -101,9 +101,6 @@ public:
void Append( ScDetOpData* pData );
- void Load( SvStream& rStream );
- void Store( SvStream& rStream ) const;
-
BOOL HasAddError() const { return bHasAddError; }
};
diff --git a/sc/inc/dociter.hxx b/sc/inc/dociter.hxx
index ec53cb863d8c..12d47638b9ae 100644
--- a/sc/inc/dociter.hxx
+++ b/sc/inc/dociter.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dociter.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -105,10 +105,11 @@ private:
BOOL GetThis(double& rValue, USHORT& rErr);
public:
- ScValueIterator(ScDocument* pDocument,
- SCCOL nSCol, SCROW nSRow, SCTAB nSTab,
- SCCOL nECol, SCROW nERow, SCTAB nETab,
- BOOL bSTotal = FALSE, BOOL bTextAsZero = FALSE);
+//UNUSED2008-05 ScValueIterator(ScDocument* pDocument,
+//UNUSED2008-05 SCCOL nSCol, SCROW nSRow, SCTAB nSTab,
+//UNUSED2008-05 SCCOL nECol, SCROW nERow, SCTAB nETab,
+//UNUSED2008-05 BOOL bSTotal = FALSE, BOOL bTextAsZero = FALSE);
+
ScValueIterator(ScDocument* pDocument,
const ScRange& rRange, BOOL bSTotal = FALSE,
BOOL bTextAsZero = FALSE );
diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx
index 6a90e4c5e7c3..e161e3e02428 100644
--- a/sc/inc/docoptio.hxx
+++ b/sc/inc/docoptio.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docoptio.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -83,8 +83,6 @@ public:
void ResetDocOptions();
inline void CopyTo(ScDocOptions& rOpt);
- void Load(SvStream& rStream);
- void Save(SvStream& rStream, BOOL bConfig = FALSE) const;
inline const ScDocOptions& operator=( const ScDocOptions& rOpt );
inline int operator==( const ScDocOptions& rOpt ) const;
@@ -178,7 +176,7 @@ class SC_DLLPUBLIC ScTpCalcItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScTpCalcItem( USHORT nWhich );
+//UNUSED2008-05 ScTpCalcItem( USHORT nWhich );
ScTpCalcItem( USHORT nWhich,
const ScDocOptions& rOpt );
ScTpCalcItem( const ScTpCalcItem& rItem );
diff --git a/sc/inc/docpool.hxx b/sc/inc/docpool.hxx
index c96c86365d8e..64bfa3ad3ddc 100644
--- a/sc/inc/docpool.hxx
+++ b/sc/inc/docpool.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docpool.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -62,7 +62,6 @@ public:
virtual const SfxPoolItem& Put( const SfxPoolItem&, USHORT nWhich = 0 );
virtual void Remove( const SfxPoolItem& );
static void CheckRef( const SfxPoolItem& );
- void MyLoadCompleted();
void StyleDeleted( ScStyleSheet* pStyle ); // Loeschen von Vorlagen im Organizer
virtual SfxItemPresentation GetPresentation(
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 8dd4c2a3df36..60f3d8e8033a 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: document.hxx,v $
- * $Revision: 1.115 $
+ * $Revision: 1.111.20.7 $
*
* This file is part of OpenOffice.org.
*
@@ -96,8 +96,10 @@ class ScFormulaCell;
class ScMarkData;
class ScOutlineTable;
class ScPatternAttr;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivot;
class ScPivotCollection;
+#endif
class ScPrintRangeSaver;
class ScRangeData;
class ScRangeName;
@@ -119,7 +121,6 @@ class ScDPCollection;
class ScMatrix;
class ScScriptTypeData;
class ScPoolHelper;
-class ScImpExpLogMsg;
struct ScSortParam;
class ScRefreshTimerControl;
class ScUnoListenerCalls;
@@ -229,7 +230,9 @@ friend class ScHorizontalCellIterator;
friend class ScHorizontalAttrIterator;
friend class ScDocAttrIterator;
friend class ScAttrRectIterator;
+#if OLD_PIVOT_IMPLEMENTATION
friend class ScPivot;
+#endif
private:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > xServiceManager;
@@ -250,7 +253,9 @@ private:
ScTable* pTab[MAXTABCOUNT];
ScRangeName* pRangeName;
ScDBCollection* pDBCollection;
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* pPivotCollection;
+#endif
ScDPCollection* pDPCollection;
ScChartCollection* pChartCollection;
std::auto_ptr< ScTemporaryChartLock > apTemporaryChartLock;
@@ -286,8 +291,6 @@ private:
ScExtDocOptions* pExtDocOptions; // fuer Import etc.
ScConsolidateParam* pConsolidateDlgData;
- List* pLoadedSymbolStringCellList; // binary file format import of symbol font string cells
-
ScRecursionHelper* pRecursionHelper; // information for recursive and iterative cell formulas
ScAutoNameCache* pAutoNameCache; // for automatic name lookup during CompileXML
@@ -372,8 +375,6 @@ private:
BOOL bChartListenerCollectionNeedsUpdate;
// ob RC_FORCED Formelzellen im Dokument sind/waren (einmal an immer an)
BOOL bHasForcedFormulas;
- // ist beim Laden/Speichern etwas weggelassen worden?
- BOOL bLostData;
// ob das Doc gerade zerstoert wird (kein Notify-Tracking etc. mehr)
BOOL bInDtorClear;
// ob bei Spalte/Zeile einfuegen am Rand einer Referenz die Referenz
@@ -435,7 +436,6 @@ public:
XColorTable* GetColorTable();
SvxLinkManager* GetLinkManager() { return pLinkManager; }
- void SetLinkManager( SvxLinkManager* pNew );
const ScDocOptions& GetDocOptions() const;
void SetDocOptions( const ScDocOptions& rOpt );
@@ -476,20 +476,19 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL bStartOnly = FALSE) const;
ScDBData* GetDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const;
- ScRangeData* GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab,
- BOOL bStartOnly = FALSE) const;
+//UNUSED2008-05 ScRangeData* GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab,
+//UNUSED2008-05 BOOL bStartOnly = FALSE) const;
ScRangeData* GetRangeAtBlock( const ScRange& rBlock, String* pName=NULL ) const;
ScDPCollection* GetDPCollection();
ScDPObject* GetDPAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
ScDPObject* GetDPAtBlock( const ScRange& rBlock ) const;
-
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* GetPivotCollection() const;
void SetPivotCollection(ScPivotCollection* pNewPivotCollection);
ScPivot* GetPivotAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
-
+#endif
ScChartCollection* GetChartCollection() const;
- void SetChartCollection(ScChartCollection* pNewChartCollection);
void StopTemporaryChartLock();
@@ -538,18 +537,8 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL IsBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
BOOL* pOnlyNotBecauseOfMatrix = NULL ) const;
- BOOL IsSelectedBlockEditable( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const;
BOOL IsSelectionEditable( const ScMarkData& rMark,
BOOL* pOnlyNotBecauseOfMatrix = NULL ) const;
- BOOL IsSelectionOrBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const;
- BOOL IsSelectedOrBlockEditable( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const;
-
BOOL HasSelectedBlockMatrixFragment( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
const ScMarkData& rMark ) const;
@@ -580,7 +569,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL bInsertNew = TRUE,
BOOL bResultsOnly = FALSE );
void TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDestPos);
- void ClearDrawPage(SCTAB nTab);
void SetVisible( SCTAB nTab, BOOL bVisible );
BOOL IsVisible( SCTAB nTab ) const;
void SetLayoutRTL( SCTAB nTab, BOOL bRTL );
@@ -697,7 +685,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL HasControl( SCTAB nTab, const Rectangle& rMMRect );
void InvalidateControls( Window* pWin, SCTAB nTab, const Rectangle& rMMRect );
- void StopAnimations( SCTAB nTab, Window* pWin );
void StartAnimations( SCTAB nTab, Window* pWin );
BOOL HasBackgroundDraw( SCTAB nTab, const Rectangle& rMMRect );
@@ -759,13 +746,12 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
void GetCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell ) const;
ScBaseCell* GetCell( const ScAddress& rPos ) const;
- void RefreshNoteFlags();
+//UNUSED2008-05 void RefreshNoteFlags();
BOOL HasNoteObject( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
BOOL HasData( SCCOL nCol, SCROW nRow, SCTAB nTab );
SC_DLLPUBLIC BOOL HasStringData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
BOOL HasValueData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
- USHORT GetErrorData(SCCOL nCol, SCROW nRow, SCTAB nTab) const;
BOOL HasStringCells( const ScRange& rRange ) const;
/** Returns true, if there is any data to create a selection list for rPos. */
@@ -801,7 +787,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
ScRange* pLastRange = NULL,
Rectangle* pLastMM = NULL ) const;
- BOOL IsOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
BOOL IsHorOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
BOOL IsVerOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const;
@@ -809,8 +794,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
SCCOL nCol2, SCROW nRow2, SCTAB nTab2, USHORT nMask );
BOOL HasAttrib( const ScRange& rRange, USHORT nMask );
- BOOL HasLines( const ScRange& rRange, Rectangle& rSizes ) const;
-
void GetBorderLines( SCCOL nCol, SCROW nRow, SCTAB nTab,
const SvxBorderLine** ppLeft,
const SvxBorderLine** ppTop,
@@ -821,7 +804,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
void SetDirty();
void SetDirty( const ScRange& );
- void SetDirtyVar();
void SetTableOpDirty( const ScRange& ); // for Interpreter TableOp
void CalcAll();
void CalcAfterLoad();
@@ -854,7 +836,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
// if CalcFormulaTree() is currently running
BOOL IsCalculatingFormulaTree() { return bCalculatingFormulaTree; }
- void GetErrCode( SCCOL nCol, SCROW nRow, SCTAB nTab, USHORT& rErrCode );
USHORT GetErrCode( const ScAddress& ) const;
void GetDataArea( SCTAB nTab, SCCOL& rStartCol, SCROW& rStartRow,
@@ -944,7 +925,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
void DeleteObjectsInArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
const ScMarkData& rMark );
void DeleteObjectsInSelection( const ScMarkData& rMark );
- void DeleteObjects( SCTAB nTab );
void DeleteArea(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
const ScMarkData& rMark, USHORT nDelFlag);
@@ -1099,10 +1079,8 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
void FindConditionalFormat( ULONG nKey, ScRangeList& rRanges );
void FindConditionalFormat( ULONG nKey, ScRangeList& rRanges, SCTAB nTab );
void ConditionalChanged( ULONG nKey );
- void SetConditionalUsed( ULONG nKey ); // beim Speichern
ULONG AddValidationEntry( const ScValidationData& rNew );
- void SetValidationUsed( ULONG nKey ); // beim Speichern
const ScValidationData* GetValidationEntry( ULONG nIndex ) const;
@@ -1150,14 +1128,9 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
BOOL IsStyleSheetUsed( const ScStyleSheet& rStyle, BOOL bGatherAllStyles ) const;
- // Rueckgabe TRUE bei ApplyFlags: Wert geaendert
- BOOL ApplyFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark, INT16 nFlags );
BOOL ApplyFlagsTab( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
SCTAB nTab, INT16 nFlags );
- BOOL RemoveFlags( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark, INT16 nFlags );
BOOL RemoveFlagsTab( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
SCTAB nTab, INT16 nFlags );
@@ -1262,8 +1235,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
const ScBitMaskCompressedArray< SCROW, BYTE> & GetRowFlagsArray( SCTAB nTab ) const;
ScBitMaskCompressedArray< SCROW, BYTE> & GetRowFlagsArrayModifiable( SCTAB nTab );
- /// @return the index of the last column with any set flags (auto-pagebreak is ignored).
- SCCOL GetLastFlaggedCol( SCTAB nTab ) const;
/// @return the index of the last row with any set flags (auto-pagebreak is ignored).
SCROW GetLastFlaggedRow( SCTAB nTab ) const;
@@ -1303,7 +1274,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
Size GetPageSize( SCTAB nTab ) const;
void SetPageSize( SCTAB nTab, const Size& rSize );
void SetRepeatArea( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCROW nStartRow, SCROW nEndRow );
- void UpdatePageBreaks();
void UpdatePageBreaks( SCTAB nTab, const ScRange* pUserArea = NULL );
void RemoveManualBreaks( SCTAB nTab );
BOOL HasManualBreaks( SCTAB nTab ) const;
@@ -1344,12 +1314,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
SCCOL nEndCol, SCROW nEndRow, SCTAB nTab );
ScRange GetRange( SCTAB nTab, const Rectangle& rMMRect );
- BOOL LoadPool( SvStream& rStream, BOOL bLoadRefCounts );
- BOOL SavePool( SvStream& rStream ) const;
-
- BOOL Load( SvStream& rStream, ScProgress* pProgress );
- BOOL Save( SvStream& rStream, ScProgress* pProgress ) const;
-
void UpdStlShtPtrsFrmNms();
void StylesToNames();
@@ -1359,9 +1323,6 @@ SC_DLLPUBLIC ScDBCollection* GetDBCollection() const;
ULONG GetSrcVersion() const { return nSrcVer; }
SCROW GetSrcMaxRow() const { return nSrcMaxRow; }
- void SetLostData();
- BOOL HasLostData() const { return bLostData; }
-
void SetSrcCharSet( CharSet eNew ) { eSrcSet = eNew; }
void UpdateFontCharSet();
@@ -1439,7 +1400,6 @@ SC_DLLPUBLIC SvNumberFormatter* GetFormatTable() const;
BOOL GetHasMacroFunc() const { return bHasMacroFunc; }
void SetHasMacroFunc(BOOL bSet) { bHasMacroFunc = bSet; }
- BOOL HasMacroCallsAfterLoad();
BOOL CheckMacroWarn();
void SetRangeOverflowType(sal_uInt32 nType) { nRangeOverflowType = nType; }
@@ -1495,7 +1455,7 @@ SC_DLLPUBLIC SvNumberFormatter* GetFormatTable() const;
private:
- void SetAutoFilterFlags();
+//UNUSED2008-05 void SetAutoFilterFlags();
void FindMaxRotCol( SCTAB nTab, RowInfo* pRowInfo, SCSIZE nArrCount,
SCCOL nX1, SCCOL nX2 ) const;
@@ -1683,19 +1643,11 @@ public:
ScNoteEditEngine& GetNoteEngine();
SfxItemPool& GetNoteItemPool();
- void AddToImpExpLog( const ScImpExpLogMsg& rMsg );
- void AddToImpExpLog( ScImpExpLogMsg* pMsg );
-
ScRefreshTimerControl* GetRefreshTimerControl() const
{ return pRefreshTimerControl; }
ScRefreshTimerControl * const * GetRefreshTimerControlAddress() const
{ return &pRefreshTimerControl; }
- /// if symbol string cells of old binary file format are in list
- BOOL SymbolStringCellsPending() const;
- /// get list of ScSymbolStringCellEntry, create if necessary
- List& GetLoadedSymbolStringCellsList();
-
void SetPastingDrawFromOtherDoc( BOOL bVal )
{ bPastingDrawFromOtherDoc = bVal; }
BOOL PastingDrawFromOtherDoc() const
@@ -1715,10 +1667,7 @@ public:
{ return eStorageGrammar; }
private: // CLOOK-Impl-Methoden
- void ImplLoadDocOptions( SvStream& rStream );
- void ImplLoadViewOptions( SvStream& rStream );
- void ImplSaveDocOptions( SvStream& rStream ) const;
- void ImplSaveViewOptions( SvStream& rStream ) const;
+
void ImplCreateOptions(); // bei Gelegenheit auf on-demand umstellen?
void ImplDeleteOptions();
@@ -1735,8 +1684,6 @@ private: // CLOOK-Impl-Methoden
void LoadDdeLinks(SvStream& rStream);
void SaveDdeLinks(SvStream& rStream) const;
- void LoadAreaLinks(SvStream& rStream);
- void SaveAreaLinks(SvStream& rStream) const;
void DeleteAreaLinksOnTab( SCTAB nTab );
void UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
diff --git a/sc/inc/docuno.hxx b/sc/inc/docuno.hxx
index 73cb9949c9f5..05a46d53c22f 100644
--- a/sc/inc/docuno.hxx
+++ b/sc/inc/docuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docuno.hxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.27.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -116,10 +116,7 @@ public:
ScDocument* GetDocument() const;
SfxObjectShell* GetEmbeddedObject() const;
- BOOL IsEmbedded() const;
- double GetOutputFactor() const;
- BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab );
void UpdateAllRowHeights();
ScDrawLayer* MakeDrawLayer();
@@ -658,7 +655,7 @@ private:
ScDocShell* pDocShell;
public:
- ScSpreadsheetSettingsObj(ScDocShell* pDocSh);
+//UNUSED2008-05 ScSpreadsheetSettingsObj(ScDocShell* pDocSh);
virtual ~ScSpreadsheetSettingsObj();
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx
index 0e5dcff76052..e04d4a7750ed 100644
--- a/sc/inc/dpobject.hxx
+++ b/sc/inc/dpobject.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dpobject.hxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.14.30.5 $
*
* This file is part of OpenOffice.org.
*
@@ -57,8 +57,10 @@ class ScDPSaveData;
class ScDPOutput;
class ScMultipleReadHeader;
class ScMultipleWriteHeader;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivot;
class ScPivotCollection;
+#endif
struct ScPivotParam;
struct ScImportSourceDesc;
struct ScSheetSourceDesc;
@@ -182,13 +184,11 @@ public:
void ToggleDetails(const ::com::sun::star::sheet::DataPilotTableHeaderData& rElemDesc, ScDPObject* pDestObj);
- BOOL StoreOld(SvStream& rStream, ScMultipleWriteHeader& rHdr ) const;
- BOOL StoreNew(SvStream& rStream, ScMultipleWriteHeader& rHdr ) const;
- BOOL LoadNew(SvStream& rStream, ScMultipleReadHeader& rHdr );
BOOL FillOldParam(ScPivotParam& rParam, BOOL bForFile) const;
BOOL FillLabelData(ScPivotParam& rParam);
+#if OLD_PIVOT_IMPLEMENTATION
void InitFromOldPivot(const ScPivot& rOld, ScDocument* pDoc, BOOL bSetSource);
-
+#endif
BOOL GetHierarchiesNA( sal_Int32 nDim, com::sun::star::uno::Reference< com::sun::star::container::XNameAccess >& xHiers );
BOOL GetHierarchies( sal_Int32 nDim, com::sun::star::uno::Sequence< rtl::OUString >& rHiers );
@@ -256,13 +256,9 @@ public:
virtual DataObject* Clone() const;
ScDPObject* operator[](USHORT nIndex) const {return (ScDPObject*)At(nIndex);}
-
- BOOL StoreOld( SvStream& rStream ) const;
- BOOL StoreNew( SvStream& rStream ) const;
- BOOL LoadNew( SvStream& rStream );
-
+#if OLD_PIVOT_IMPLEMENTATION
void ConvertOldTables( ScPivotCollection& rOldColl );
-
+#endif
void DeleteOnTab( SCTAB nTab );
void UpdateReference( UpdateRefMode eUpdateRefMode,
const ScRange& r, SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
@@ -271,7 +267,7 @@ public:
void WriteRefsTo( ScDPCollection& r ) const;
String CreateNewName( USHORT nMin = 1 ) const;
- void EnsureNames();
+//UNUSED2008-05 void EnsureNames();
};
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx
index d8cbec552c46..a03ca15f5451 100644
--- a/sc/inc/dpsave.hxx
+++ b/sc/inc/dpsave.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dpsave.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -146,7 +146,6 @@ public:
void SetLayoutName(const String* pName);
const String& GetLayoutName() const;
BOOL HasLayoutName() const;
- void ResetLayoutName();
const ::com::sun::star::sheet::DataPilotFieldReference* GetReferenceValue() const { return pReferenceValue; }
void SetReferenceValue(const ::com::sun::star::sheet::DataPilotFieldReference* pNew);
@@ -233,9 +232,6 @@ public:
void WriteToSource( const com::sun::star::uno::Reference<
com::sun::star::sheet::XDimensionsSupplier>& xSource );
- void Store( SvStream& rStream ) const;
- void Load( SvStream& rStream );
-
BOOL IsEmpty() const;
const ScDPDimensionSaveData* GetExistingDimensionData() const { return pDimensionData; }
diff --git a/sc/inc/drwlayer.hxx b/sc/inc/drwlayer.hxx
index 9a6883b2583f..9bb4cdc6aa7c 100644
--- a/sc/inc/drwlayer.hxx
+++ b/sc/inc/drwlayer.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drwlayer.hxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.21.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -154,7 +154,6 @@ public:
const ScAddress& rDestPos, const Rectangle& rDestRange );
void SetPageSize( USHORT nPageNo, const Size& rSize );
- ULONG GetDefTextHeight() const;
// mirror or move between positive and negative positions for RTL
void MirrorRTL( SdrObject* pObj );
diff --git a/sc/inc/editsrc.hxx b/sc/inc/editsrc.hxx
index d9a610b3cee8..950c3533e44a 100644
--- a/sc/inc/editsrc.hxx
+++ b/sc/inc/editsrc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editsrc.hxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.17.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -190,9 +190,6 @@ public:
virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool bCreate = sal_False );
virtual void UpdateData();
virtual SfxBroadcaster& GetBroadcaster() const;
-
- void SetDoUpdateData(sal_Bool bValue);
- sal_Bool IsDirty() const;
};
#endif
diff --git a/sc/inc/fielduno.hxx b/sc/inc/fielduno.hxx
index 170beff14191..d716e857188d 100644
--- a/sc/inc/fielduno.hxx
+++ b/sc/inc/fielduno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fielduno.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -148,8 +148,8 @@ private:
String aRepresentation;
String aTarget;
+ ScCellFieldObj(); // disabled
public:
- ScCellFieldObj();
ScCellFieldObj(ScDocShell* pDocSh, const ScAddress& rPos,
const ESelection& rSel);
virtual ~ScCellFieldObj();
@@ -345,8 +345,8 @@ private:
ESelection aSelection;
sal_Int16 nFileFormat; // enum SvxFileFormat, valid if not inserted
+ ScHeaderFieldObj(); // disabled
public:
- ScHeaderFieldObj();
ScHeaderFieldObj(ScHeaderFooterContentObj* pContent, USHORT nP,
USHORT nT, const ESelection& rSel);
virtual ~ScHeaderFieldObj();
diff --git a/sc/inc/filter.hxx b/sc/inc/filter.hxx
index 3a197bfa2831..3a966f210c38 100644
--- a/sc/inc/filter.hxx
+++ b/sc/inc/filter.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: filter.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -34,6 +34,8 @@
#include <tools/string.hxx>
#include <rtl/textenc.h>
+#define ENABLE_LOTUS123_EXPORT 0
+
class SfxMedium;
class SvStream;
@@ -87,8 +89,6 @@ enum ExportFormatExcel { ExpBiff2, ExpBiff3, ExpBiff4, ExpBiff4W, ExpBiff5 };
FltError ScImportLotus123( SfxMedium&, ScDocument*, CharSet eSrc = RTL_TEXTENCODING_DONTKNOW );
-FltError ScImportExcel( SfxMedium&, ScDocument* );
-
FltError ScImportExcel( SfxMedium&, ScDocument*, const EXCIMPFORMAT );
// eFormat == EIF_AUTO -> passender Filter wird automatisch verwendet
// eFormat == EIF_BIFF5 -> nur Biff5-Stream fuehrt zum Erfolg (auch wenn in einem Excel97-Doc)
@@ -109,9 +109,9 @@ FltError ScImportQuattroPro( SfxMedium &rMedium, ScDocument *pDoc );
// Diverse Exportfilter
// ***********************************************************************
+#if ENABLE_LOTUS123_EXPORT
FltError ScExportLotus123( SvStream&, ScDocument*, ExportFormatLotus, CharSet eDest );
-
-FltError ScExportExcel234( SvStream&, ScDocument*, ExportFormatExcel, CharSet eDest );
+#endif
FltError ScExportExcel5( SfxMedium&, ScDocument*, const BOOL bTuerk, CharSet eDest );
diff --git a/sc/inc/fmtuno.hxx b/sc/inc/fmtuno.hxx
index 792ea013dcfb..ca1320b9e1dc 100644
--- a/sc/inc/fmtuno.hxx
+++ b/sc/inc/fmtuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fmtuno.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -86,8 +86,8 @@ private:
ScTableConditionalEntry* GetObjectByIndex_Impl(USHORT nIndex) const;
void AddEntry_Impl(const ScCondFormatEntryItem& aEntry);
+ ScTableConditionalFormat(); // disable
public:
- ScTableConditionalFormat();
ScTableConditionalFormat(ScDocument* pDoc, ULONG nKey,
const ScGrammar::Grammar eGrammar);
virtual ~ScTableConditionalFormat();
@@ -159,8 +159,8 @@ private:
ScTableConditionalFormat* pParent;
ScCondFormatEntryItem aData;
+ ScTableConditionalEntry(); // disabled
public:
- ScTableConditionalEntry();
ScTableConditionalEntry(ScTableConditionalFormat* pPar,
const ScCondFormatEntryItem& aItem);
virtual ~ScTableConditionalEntry();
@@ -229,8 +229,8 @@ private:
void ClearData_Impl();
+ ScTableValidationObj(); // disabled
public:
- ScTableValidationObj();
ScTableValidationObj(ScDocument* pDoc, ULONG nKey,
const ScGrammar::Grammar eGrammar);
virtual ~ScTableValidationObj();
diff --git a/sc/inc/funcdesc.hxx b/sc/inc/funcdesc.hxx
index ab33939feed6..fe1d970e1c2e 100644
--- a/sc/inc/funcdesc.hxx
+++ b/sc/inc/funcdesc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: funcdesc.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.30.1 $
*
* This file is part of OpenOffice.org.
*
@@ -149,8 +149,6 @@ public:
const ScFuncDesc** ppFDesc = NULL,
String*** pppArgs = NULL );
- static const ScFuncDesc* GetDefaultFuncDesc();
-
static xub_StrLen GetFunctionStart( const String& rFormula, xub_StrLen nStart,
BOOL bBack, String* pFuncName = NULL );
diff --git a/sc/inc/global.hxx b/sc/inc/global.hxx
index 33e8859b23c7..6965b2acc8e7 100644
--- a/sc/inc/global.hxx
+++ b/sc/inc/global.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: global.hxx,v $
- * $Revision: 1.53 $
+ * $Revision: 1.53.32.8 $
*
* This file is part of OpenOffice.org.
*
@@ -84,6 +84,12 @@ extern "C" {
#define SC_TRANSLITERATION_CASESENSE 0
#endif
+// Remove the old pivot table implementation that the current data pilot
+// implementation has effectively replaced. The old pivot code was still
+// around to handle loading of the old binary format. Now that the old
+// binary filter is handled by binfilter, we can safely remove the old pivot
+// handling code.
+#define OLD_PIVOT_IMPLEMENTATION 0
//------------------------------------------------------------------------
struct LabelData;
@@ -773,9 +779,6 @@ struct ScQueryEntry
void Clear();
ScQueryEntry& operator=( const ScQueryEntry& r );
BOOL operator==( const ScQueryEntry& r ) const;
-
- void Load(SvStream& rStream);
- void Store(SvStream& rStream) const;
};
struct SC_DLLPUBLIC ScQueryParam
@@ -817,9 +820,6 @@ public:
void MoveToDest();
void FillInExcelSyntax(String& aCellStr, SCSIZE nIndex);
-
- void Load(SvStream& rStream);
- void Store(SvStream& rStream) const;
};
// -----------------------------------------------------------------------
@@ -881,9 +881,6 @@ struct ScConsolidateParam
void Clear (); // = ClearDataAreas()+Members
void ClearDataAreas ();
void SetAreas ( ScArea* const* ppAreas, USHORT nCount );
-
- void Load( SvStream& rStream );
- void Store( SvStream& rStream ) const;
};
// -----------------------------------------------------------------------
diff --git a/sc/inc/hints.hxx b/sc/inc/hints.hxx
index 21c4fae9d478..92c17caf9641 100644
--- a/sc/inc/hints.hxx
+++ b/sc/inc/hints.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hints.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -43,9 +43,10 @@ class ScPaintHint : public SfxHint
USHORT nParts;
BOOL bPrint; // Flag, ob auch Druck/Vorschau betroffen ist
+ ScPaintHint(); // disabled
+
public:
TYPEINFO();
- ScPaintHint();
ScPaintHint( const ScRange& rRng, USHORT nPaint = PAINT_ALL );
~ScPaintHint();
@@ -95,7 +96,7 @@ class ScPointerChangedHint : public SfxHint
public:
TYPEINFO();
- ScPointerChangedHint( USHORT nF );
+//UNUSED2008-05 ScPointerChangedHint( USHORT nF );
~ScPointerChangedHint();
USHORT GetFlags() const { return nFlags; }
diff --git a/sc/inc/inputopt.hxx b/sc/inc/inputopt.hxx
index 8fa0c6f1bb0b..4d56f70b4d33 100644
--- a/sc/inc/inputopt.hxx
+++ b/sc/inc/inputopt.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputopt.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -81,8 +81,6 @@ public:
BOOL GetReplaceCellsWarn() const { return bReplCellsWarn; }
const ScInputOptions& operator= ( const ScInputOptions& rOpt );
- friend SvStream& operator>> ( SvStream& rStream, ScInputOptions& rOpt );
- friend SvStream& operator<< ( SvStream& rStream, const ScInputOptions& rOpt );
};
diff --git a/sc/inc/markarr.hxx b/sc/inc/markarr.hxx
index 6555e762b073..83a218887508 100644
--- a/sc/inc/markarr.hxx
+++ b/sc/inc/markarr.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: markarr.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -56,7 +56,6 @@ public:
~ScMarkArray();
void Reset( BOOL bMarked = FALSE );
BOOL GetMark( SCROW nRow ) const;
- void SetMark( SCROW nRow, BOOL bMarked );
void SetMarkArea( SCROW nStartRow, SCROW nEndRow, BOOL bMarked );
BOOL IsAllMarked( SCROW nStartRow, SCROW nEndRow ) const;
BOOL HasOneMark( SCROW& rStartRow, SCROW& rEndRow ) const;
@@ -67,8 +66,6 @@ public:
BOOL Search( SCROW nRow, SCSIZE& nIndex ) const;
void DeleteArea(SCROW nStartRow, SCROW nEndRow);
- void SwapCol(ScMarkArray& rMarkArray);
- void MoveTo(SCROW nStartRow, SCROW nEndRow, ScMarkArray& rMarkArray);
/// Including current row, may return -1 if bUp and not found
SCsROW GetNextMarked( SCsROW nRow, BOOL bUp ) const;
diff --git a/sc/inc/miscuno.hxx b/sc/inc/miscuno.hxx
index c5a5422826c3..8eee5df56ebd 100644
--- a/sc/inc/miscuno.hxx
+++ b/sc/inc/miscuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: miscuno.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -126,57 +126,55 @@ public:
throw(::com::sun::star::uno::RuntimeException);
};
-
-class ScEmptyEnumerationAccess : public cppu::WeakImplHelper2<
- com::sun::star::container::XEnumerationAccess,
- com::sun::star::lang::XServiceInfo >
-{
-public:
- ScEmptyEnumerationAccess();
- virtual ~ScEmptyEnumerationAccess();
-
- // XEnumerationAccess
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
- createEnumeration() throw(::com::sun::star::uno::RuntimeException);
-
- // XElementAccess
- virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
- throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
- throw(::com::sun::star::uno::RuntimeException);
-};
-
-
-class ScEmptyEnumeration : public cppu::WeakImplHelper2<
- com::sun::star::container::XEnumeration,
- com::sun::star::lang::XServiceInfo >
-{
-public:
- ScEmptyEnumeration();
- virtual ~ScEmptyEnumeration();
-
- // XEnumeration
- virtual sal_Bool SAL_CALL hasMoreElements() throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
- throw(::com::sun::star::container::NoSuchElementException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
- throw(::com::sun::star::uno::RuntimeException);
-};
+//UNUSED2008-05 class ScEmptyEnumerationAccess : public cppu::WeakImplHelper2<
+//UNUSED2008-05 com::sun::star::container::XEnumerationAccess,
+//UNUSED2008-05 com::sun::star::lang::XServiceInfo >
+//UNUSED2008-05 {
+//UNUSED2008-05 public:
+//UNUSED2008-05 ScEmptyEnumerationAccess();
+//UNUSED2008-05 virtual ~ScEmptyEnumerationAccess();
+//UNUSED2008-05
+//UNUSED2008-05 // XEnumerationAccess
+//UNUSED2008-05 virtual ::com::sun::star::uno::Reference< ::com::sun::star::container::XEnumeration > SAL_CALL
+//UNUSED2008-05 createEnumeration() throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05
+//UNUSED2008-05 // XElementAccess
+//UNUSED2008-05 virtual ::com::sun::star::uno::Type SAL_CALL getElementType()
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual sal_Bool SAL_CALL hasElements() throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05
+//UNUSED2008-05 // XServiceInfo
+//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 };
+
+//UNUSED2008-05 class ScEmptyEnumeration : public cppu::WeakImplHelper2<
+//UNUSED2008-05 com::sun::star::container::XEnumeration,
+//UNUSED2008-05 com::sun::star::lang::XServiceInfo >
+//UNUSED2008-05 {
+//UNUSED2008-05 public:
+//UNUSED2008-05 ScEmptyEnumeration();
+//UNUSED2008-05 virtual ~ScEmptyEnumeration();
+//UNUSED2008-05
+//UNUSED2008-05 // XEnumeration
+//UNUSED2008-05 virtual sal_Bool SAL_CALL hasMoreElements() throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual ::com::sun::star::uno::Any SAL_CALL nextElement()
+//UNUSED2008-05 throw(::com::sun::star::container::NoSuchElementException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05
+//UNUSED2008-05 // XServiceInfo
+//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 };
// new (uno 3) variant
class ScNameToIndexAccess : public cppu::WeakImplHelper2<
@@ -214,63 +212,63 @@ public:
throw(::com::sun::star::uno::RuntimeException);
};
-class ScPrintSettingsObj : public cppu::WeakImplHelper2<
- com::sun::star::beans::XPropertySet,
- com::sun::star::lang::XServiceInfo >
-{
-public:
- ScPrintSettingsObj();
- virtual ~ScPrintSettingsObj();
-
- // XPropertySet
- virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
- SAL_CALL getPropertySetInfo()
- throw(::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Any& aValue )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::beans::PropertyVetoException,
- ::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
- const ::rtl::OUString& PropertyName )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& xListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XPropertyChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
- virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::beans::XVetoableChangeListener >& aListener )
- throw(::com::sun::star::beans::UnknownPropertyException,
- ::com::sun::star::lang::WrappedTargetException,
- ::com::sun::star::uno::RuntimeException);
-
- // XServiceInfo
- virtual ::rtl::OUString SAL_CALL getImplementationName( )
- throw(::com::sun::star::uno::RuntimeException);
- virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
- throw(::com::sun::star::uno::RuntimeException);
- virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
- throw(::com::sun::star::uno::RuntimeException);
-};
+//UNUSED2008-05 class ScPrintSettingsObj : public cppu::WeakImplHelper2<
+//UNUSED2008-05 com::sun::star::beans::XPropertySet,
+//UNUSED2008-05 com::sun::star::lang::XServiceInfo >
+//UNUSED2008-05 {
+//UNUSED2008-05 public:
+//UNUSED2008-05 ScPrintSettingsObj();
+//UNUSED2008-05 virtual ~ScPrintSettingsObj();
+//UNUSED2008-05
+//UNUSED2008-05 // XPropertySet
+//UNUSED2008-05 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
+//UNUSED2008-05 SAL_CALL getPropertySetInfo()
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
+//UNUSED2008-05 const ::com::sun::star::uno::Any& aValue )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::beans::PropertyVetoException,
+//UNUSED2008-05 ::com::sun::star::lang::IllegalArgumentException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
+//UNUSED2008-05 const ::rtl::OUString& PropertyName )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
+//UNUSED2008-05 const ::com::sun::star::uno::Reference<
+//UNUSED2008-05 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
+//UNUSED2008-05 const ::com::sun::star::uno::Reference<
+//UNUSED2008-05 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
+//UNUSED2008-05 const ::com::sun::star::uno::Reference<
+//UNUSED2008-05 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
+//UNUSED2008-05 const ::com::sun::star::uno::Reference<
+//UNUSED2008-05 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
+//UNUSED2008-05 throw(::com::sun::star::beans::UnknownPropertyException,
+//UNUSED2008-05 ::com::sun::star::lang::WrappedTargetException,
+//UNUSED2008-05 ::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05
+//UNUSED2008-05 // XServiceInfo
+//UNUSED2008-05 virtual ::rtl::OUString SAL_CALL getImplementationName( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( )
+//UNUSED2008-05 throw(::com::sun::star::uno::RuntimeException);
+//UNUSED2008-05 };
class ScUnoHelpFunctions
diff --git a/sc/inc/olinetab.hxx b/sc/inc/olinetab.hxx
index b6966341c12c..2ef72d67bc10 100644
--- a/sc/inc/olinetab.hxx
+++ b/sc/inc/olinetab.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: olinetab.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -54,9 +54,6 @@ public:
ScOutlineEntry( SCCOLROW nNewStart, SCCOLROW nNewSize,
BOOL bNewHidden = FALSE );
ScOutlineEntry( const ScOutlineEntry& rEntry );
- ScOutlineEntry( SvStream& rStream, ScMultipleReadHeader& rHdr );
-
- void Store( SvStream& rStream, ScMultipleWriteHeader& rHdr );
virtual DataObject* Clone() const;
@@ -135,9 +132,6 @@ public:
BOOL bShow,
const ScBitMaskCompressedArray< SCCOLROW, BYTE>& rHiddenFlags );
- void Load( SvStream& rStream );
- void Store( SvStream& rStream );
-
void RemoveAll();
};
@@ -163,9 +157,6 @@ public:
BOOL TestInsertRow( SCSIZE nSize );
void InsertRow( SCROW nStartRow, SCSIZE nSize );
BOOL DeleteRow( SCROW nStartRow, SCSIZE nSize );
-
- void Load( SvStream& rStream );
- void Store( SvStream& rStream );
};
diff --git a/sc/inc/patattr.hxx b/sc/inc/patattr.hxx
index 80c36efac17c..86506d7ccdb8 100644
--- a/sc/inc/patattr.hxx
+++ b/sc/inc/patattr.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: patattr.hxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -136,18 +136,18 @@ public:
with text encoding RTL_TEXTENC_SYMBOL */
BOOL IsSymbolFont() const;
- /** Create a FontToSubsFontConverter if needed for
- this pattern, else return 0.
-
- @param nFlags is the bit mask which shall be
- used for CreateFontToSubsFontConverter().
-
- The converter must be destroyed by the caller
- using DestroyFontToSubsFontConverter() which
- should be accomplished using the
- ScFontToSubsFontConverter_AutoPtr
- */
- FontToSubsFontConverter GetSubsFontConverter( ULONG nFlags ) const;
+//UNUSED2008-05 /** Create a FontToSubsFontConverter if needed for
+//UNUSED2008-05 this pattern, else return 0.
+//UNUSED2008-05
+//UNUSED2008-05 @param nFlags is the bit mask which shall be
+//UNUSED2008-05 used for CreateFontToSubsFontConverter().
+//UNUSED2008-05
+//UNUSED2008-05 The converter must be destroyed by the caller
+//UNUSED2008-05 using DestroyFontToSubsFontConverter() which
+//UNUSED2008-05 should be accomplished using the
+//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr
+//UNUSED2008-05 */
+//UNUSED2008-05 FontToSubsFontConverter GetSubsFontConverter( ULONG nFlags ) const;
ULONG GetNumberFormat( SvNumberFormatter* ) const;
ULONG GetNumberFormat( SvNumberFormatter* pFormatter,
diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx
index 536b6f185400..3caf946459d2 100644
--- a/sc/inc/pivot.hxx
+++ b/sc/inc/pivot.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pivot.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -65,12 +65,14 @@ class SubTotal;
#include <com/sun/star/sheet/DataPilotFieldLayoutInfo.hpp>
#include <com/sun/star/sheet/DataPilotFieldAutoShowInfo.hpp>
+#if OLD_PIVOT_IMPLEMENTATION
#define PIVOT_STYLE_INNER 0
#define PIVOT_STYLE_RESULT 1
#define PIVOT_STYLE_CATEGORY 2
#define PIVOT_STYLE_TITLE 3
#define PIVOT_STYLE_FIELDNAME 4
#define PIVOT_STYLE_TOP 5
+#endif
class SvStream;
class ScDocument;
@@ -140,6 +142,7 @@ struct ScPivotParam
// -----------------------------------------------------------------------
+#if OLD_PIVOT_IMPLEMENTATION
struct PivotColRef
{
SCSIZE nDataIndex;
@@ -153,10 +156,12 @@ struct PivotColRef
nFuncMask = PIVOT_FUNC_NONE;
}
};
+#endif
typedef PivotField PivotFieldArr[PIVOT_MAXFIELD];
typedef PivotField PivotPageFieldArr[PIVOT_MAXPAGEFIELD];
+#if OLD_PIVOT_IMPLEMENTATION
class PivotStrCollection : public StrCollection
{
ScUserListData* pUserData;
@@ -357,6 +362,7 @@ public:
String CreateNewName( USHORT nMin = 1 ) const;
};
+#endif
//------------------------------------------------------------------------
diff --git a/sc/inc/postit.hxx b/sc/inc/postit.hxx
index a43599f1eec1..15ca7ec6a521 100644
--- a/sc/inc/postit.hxx
+++ b/sc/inc/postit.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: postit.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -124,32 +124,6 @@ inline int ScPostIt::operator==( const ScPostIt& rPostIt ) const
&& maItemSet == rPostIt.maItemSet );
}
-inline SvStream& operator>>( SvStream& rStream, ScPostIt& rPostIt )
-{
- // without bShown !!!
-
- CharSet eSet = rStream.GetStreamCharSet();
- String aText = rPostIt.GetText();
- rStream.ReadByteString( aText, eSet );
- rStream.ReadByteString( rPostIt.maStrDate, eSet );
- rStream.ReadByteString( rPostIt.maStrAuthor, eSet );
-
- return rStream;
-}
-
-inline SvStream& operator<<( SvStream& rStream, const ScPostIt& rPostIt )
-{
- // without bShown !!!
-
- CharSet eSet = rStream.GetStreamCharSet();
- String aText = rPostIt.GetText();
- rStream.WriteByteString( aText, eSet );
- rStream.WriteByteString( rPostIt.maStrDate, eSet );
- rStream.WriteByteString( rPostIt.maStrAuthor, eSet );
-
- return rStream;
-}
-
// ============================================================================
#endif
diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx
index d59416450a8f..6c4a88d9df60 100644
--- a/sc/inc/printopt.hxx
+++ b/sc/inc/printopt.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: printopt.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -66,7 +66,7 @@ class SC_DLLPUBLIC ScTpPrintItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScTpPrintItem( USHORT nWhich );
+//UNUSED2008-05 ScTpPrintItem( USHORT nWhich );
ScTpPrintItem( USHORT nWhich,
const ScPrintOptions& rOpt );
ScTpPrintItem( const ScTpPrintItem& rItem );
@@ -94,7 +94,6 @@ public:
ScPrintCfg();
void SetOptions( const ScPrintOptions& rNew );
- void OptionsChanged(); // after direct access to ScPrintOptions base class
virtual void Commit();
};
diff --git a/sc/inc/progress.hxx b/sc/inc/progress.hxx
index 4206efc821ff..6796b467aa24 100644
--- a/sc/inc/progress.hxx
+++ b/sc/inc/progress.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: progress.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -68,8 +68,6 @@ public:
BOOL bWait = TRUE );
static ScProgress* GetInterpretProgress() { return pInterpretProgress; }
static void DeleteInterpretProgress();
- static void SetAllowInterpret( BOOL bVal );
- static BOOL GetAllowInterpret() { return bAllowInterpretProgress; }
static ULONG GetInterpretCount() { return nInterpretProgress; }
static ULONG GetGlobalRange() { return nGlobalRange; }
static ULONG GetGlobalPercent() { return nGlobalPercent; }
diff --git a/sc/inc/rangelst.hxx b/sc/inc/rangelst.hxx
index 19a7c0118d3e..8ce292003f2d 100644
--- a/sc/inc/rangelst.hxx
+++ b/sc/inc/rangelst.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangelst.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -50,7 +50,6 @@ public:
virtual ~ScRangeList();
ScRangeList& operator=(const ScRangeList& rList);
void RemoveAll();
- ScRangeList* Clone() const;
void Append( const ScRange& rRange )
{
ScRangePtr pR = new ScRange( rRange );
@@ -68,9 +67,6 @@ public:
const ScRange& rWhere,
SCsCOL nDx, SCsROW nDy, SCsTAB nDz );
ScRange* Find( const ScAddress& ) const;
- ScRange* Find( const ScRange& ) const;
- BOOL Load( SvStream&, USHORT nVer );
- BOOL Store( SvStream& ) const;
BOOL operator==( const ScRangeList& ) const;
BOOL Intersects( const ScRange& ) const;
BOOL In( const ScRange& ) const;
@@ -102,8 +98,6 @@ public:
void DeleteOnTab( SCTAB nTab );
ScRangePair* Find( const ScAddress& ) const;
ScRangePair* Find( const ScRange& ) const;
- BOOL Load( SvStream&, USHORT nVer );
- BOOL Store( SvStream& ) const;
ScRangePair** CreateNameSortedArray( ULONG& nCount, ScDocument* ) const;
BOOL operator==( const ScRangePairList& ) const;
};
diff --git a/sc/inc/rangenam.hxx b/sc/inc/rangenam.hxx
index fc555a6772e2..6658bccbe1f1 100644
--- a/sc/inc/rangenam.hxx
+++ b/sc/inc/rangenam.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangenam.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -152,8 +152,6 @@ public:
void ReplaceRangeNamesInUse( const ScIndexMap& rMap );
- BOOL IsBeyond( SCROW nMaxRow ) const;
-
static void MakeValidName( String& rName );
SC_DLLPUBLIC static BOOL IsNameValid( const String& rName, ScDocument* pDoc );
};
diff --git a/sc/inc/rangeutl.hxx b/sc/inc/rangeutl.hxx
index 8010f0e9f539..74c1859fd6d3 100644
--- a/sc/inc/rangeutl.hxx
+++ b/sc/inc/rangeutl.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangeutl.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -118,11 +118,6 @@ public:
sal_Bool bAppendStr,
sal_Unicode cSeperator = ' ');
- static void AppendString(
- ::rtl::OUString& rString,
- const ::rtl::OUString& rNewStr,
- sal_Unicode cSeperator = ' ');
-
static sal_Int32 IndexOf(
const ::rtl::OUString& rString,
sal_Unicode cSearchChar,
@@ -264,13 +259,9 @@ public:
ScArea( const ScArea& r );
- void Clear ();
ScArea& operator= ( const ScArea& r );
BOOL operator== ( const ScArea& r ) const;
BOOL operator!= ( const ScArea& r ) const { return !( operator==(r) ); }
- void GetString ( String& rStr,
- BOOL bAbsolute = TRUE, ScDocument* pDoc = NULL,
- ScAddress::Details const & rDetails = ScAddress::detailsOOOa1 ) const;
public:
SCTAB nTab;
@@ -280,9 +271,6 @@ public:
SCROW nRowEnd;
};
-SvStream& operator<< ( SvStream& rStream, const ScArea& rArea );
-SvStream& operator>> ( SvStream& rStream, ScArea& rArea );
-
//------------------------------------------------------------------------
//
diff --git a/sc/inc/rechead.hxx b/sc/inc/rechead.hxx
index 813901026ce6..14be3ddcb325 100644
--- a/sc/inc/rechead.hxx
+++ b/sc/inc/rechead.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rechead.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/inc/refdata.hxx b/sc/inc/refdata.hxx
index 3c592063d62d..640a24fab327 100644
--- a/sc/inc/refdata.hxx
+++ b/sc/inc/refdata.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refdata.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -112,9 +112,9 @@ struct SingleRefData // Single reference (one address) into the sheet
void SmartRelAbs( const ScAddress& rPos );
void CalcRelFromAbs( const ScAddress& rPos );
void CalcAbsIfRel( const ScAddress& rPos );
- void OldBoolsToNewFlags( const OldSingleRefBools& );
- BYTE CreateStoreByteFromFlags() const;
- void CreateFlagsFromLoadByte( BYTE );
+//UNUSED2008-05 void OldBoolsToNewFlags( const OldSingleRefBools& );
+//UNUSED2008-05 BYTE CreateStoreByteFromFlags() const;
+//UNUSED2008-05 void CreateFlagsFromLoadByte( BYTE );
BOOL operator==( const SingleRefData& ) const;
};
diff --git a/sc/inc/scdll.hxx b/sc/inc/scdll.hxx
index 038567662b4d..64b568076d28 100644
--- a/sc/inc/scdll.hxx
+++ b/sc/inc/scdll.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scdll.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -70,9 +70,7 @@ public:
static void Init(); // called directly after loading the DLL
static void Exit(); // called directly befor unloading the DLL
-
- static void FillStatusBar(StatusBar &rBar);
-
+//UNUSED2008-05 static void FillStatusBar(StatusBar &rBar);
static ULONG DetectFilter( SfxMedium& rMedium, const SfxFilter** ppFilter,
SfxFilterFlags nMust, SfxFilterFlags nDont );
};
diff --git a/sc/inc/scimpexpmsg.hxx b/sc/inc/scimpexpmsg.hxx
index 32b4ba72e0cf..d74a7f0f1ee2 100644
--- a/sc/inc/scimpexpmsg.hxx
+++ b/sc/inc/scimpexpmsg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scimpexpmsg.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -35,74 +35,73 @@
#include <tools/string.hxx>
#include <tools/solar.h>
-enum ScImpExpMsg
-{
- SC_IMPEXPMSG_UNKNOWN
-};
-
-
-class String;
-
-
-class ScImpExpLogMsg
-{
-private:
- ScImpExpMsg eId;
- String* pPos;
- String* pHint;
-protected:
-public:
- ScImpExpLogMsg( ScImpExpMsg eId );
- ScImpExpLogMsg( ScImpExpMsg eId, const String& rPosition );
- ScImpExpLogMsg( ScImpExpMsg eId, const String& rPosition, const String& rAdditionalHint );
- ScImpExpLogMsg( const ScImpExpLogMsg& rCpy );
- virtual ~ScImpExpLogMsg();
-
- ScImpExpLogMsg& operator =( const ScImpExpLogMsg& rCpy );
-
- void Set( ScImpExpMsg eId, const String* pPos = NULL, const String* pHint = NULL );
-
- inline ScImpExpMsg GetId( void ) const;
- inline const String* GetPos( void ) const;
- inline const String* GetHint( void ) const;
-
- static String GetMsg( ScImpExpMsg eId );
- inline String GetMsg( void ) const;
-};
-
-
-
-
-inline ScImpExpLogMsg& ScImpExpLogMsg::operator =( const ScImpExpLogMsg& r )
-{
- Set( r.eId, r.pPos, r.pHint );
- return *this;
-}
-
-
-inline ScImpExpMsg ScImpExpLogMsg::GetId( void ) const
-{
- return eId;
-}
-
-
-inline const String* ScImpExpLogMsg::GetPos( void ) const
-{
- return pPos;
-}
-
-
-inline const String* ScImpExpLogMsg::GetHint( void ) const
-{
- return pHint;
-}
-
-
-inline String ScImpExpLogMsg::GetMsg( void ) const
-{
- return GetMsg( eId );
-}
-
+//UNUSED2008-05 enum ScImpExpMsg
+//UNUSED2008-05 {
+//UNUSED2008-05 SC_IMPEXPMSG_UNKNOWN
+//UNUSED2008-05 };
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 class String;
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 class ScImpExpLogMsg
+//UNUSED2008-05 {
+//UNUSED2008-05 private:
+//UNUSED2008-05 ScImpExpMsg eId;
+//UNUSED2008-05 String* pPos;
+//UNUSED2008-05 String* pHint;
+//UNUSED2008-05 protected:
+//UNUSED2008-05 public:
+//UNUSED2008-05 ScImpExpLogMsg( ScImpExpMsg eId );
+//UNUSED2008-05 ScImpExpLogMsg( ScImpExpMsg eId, const String& rPosition );
+//UNUSED2008-05 ScImpExpLogMsg( ScImpExpMsg eId, const String& rPosition, const String& rAdditionalHint );
+//UNUSED2008-05 ScImpExpLogMsg( const ScImpExpLogMsg& rCpy );
+//UNUSED2008-05 virtual ~ScImpExpLogMsg();
+//UNUSED2008-05
+//UNUSED2008-05 ScImpExpLogMsg& operator =( const ScImpExpLogMsg& rCpy );
+//UNUSED2008-05
+//UNUSED2008-05 void Set( ScImpExpMsg eId, const String* pPos = NULL, const String* pHint = NULL );
+//UNUSED2008-05
+//UNUSED2008-05 inline ScImpExpMsg GetId( void ) const;
+//UNUSED2008-05 inline const String* GetPos( void ) const;
+//UNUSED2008-05 inline const String* GetHint( void ) const;
+//UNUSED2008-05
+//UNUSED2008-05 static String GetMsg( ScImpExpMsg eId );
+//UNUSED2008-05 inline String GetMsg( void ) const;
+//UNUSED2008-05 };
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 inline ScImpExpLogMsg& ScImpExpLogMsg::operator =( const ScImpExpLogMsg& r )
+//UNUSED2008-05 {
+//UNUSED2008-05 Set( r.eId, r.pPos, r.pHint );
+//UNUSED2008-05 return *this;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 inline ScImpExpMsg ScImpExpLogMsg::GetId( void ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return eId;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 inline const String* ScImpExpLogMsg::GetPos( void ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return pPos;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 inline const String* ScImpExpLogMsg::GetHint( void ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return pHint;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 inline String ScImpExpLogMsg::GetMsg( void ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return GetMsg( eId );
+//UNUSED2008-05 }
#endif
diff --git a/sc/inc/scmatrix.hxx b/sc/inc/scmatrix.hxx
index b0a6c4a24f15..a3f036d59a45 100644
--- a/sc/inc/scmatrix.hxx
+++ b/sc/inc/scmatrix.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scmatrix.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -199,8 +199,6 @@ public:
void PutDouble( double fVal, SCSIZE nC, SCSIZE nR);
void PutDouble( double fVal, SCSIZE nIndex)
{ pMat[nIndex].fVal = fVal; }
- void PutDoubleAndResetString( double fVal, SCSIZE nC, SCSIZE nR );
- void PutDoubleAndResetString( double fVal, SCSIZE nIndex );
void PutString( const String& rStr, SCSIZE nC, SCSIZE nR);
void PutString( const String& rStr, SCSIZE nIndex);
void PutEmpty( SCSIZE nC, SCSIZE nR);
@@ -217,8 +215,6 @@ public:
void FillDouble( double fVal,
SCSIZE nC1, SCSIZE nR1, SCSIZE nC2, SCSIZE nR2 );
- /// lower left triangle
- void FillDoubleLowerLeft( double fVal, SCSIZE nC2 );
/** May be used before obtaining the double value of an element to avoid
passing its NAN around.
@@ -295,10 +291,6 @@ public:
void MatTrans( ScMatrix& mRes) const;
void MatCopy ( ScMatrix& mRes) const;
- /** Copy upper left of this matrix to mRes matrix.
- This matrix's dimensions must be greater than the mRes matrix
- dimensions. */
- void MatCopyUpperLeft( ScMatrix& mRes) const;
// Convert ScInterpreter::CompareMat values (-1,0,1) to boolean values
void CompareEqual();
diff --git a/sc/inc/scmod.hxx b/sc/inc/scmod.hxx
index 0899135170a8..f1522f374ce1 100644
--- a/sc/inc/scmod.hxx
+++ b/sc/inc/scmod.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scmod.hxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.24.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -152,7 +152,6 @@ public:
virtual void FillStatusBar(StatusBar &rBar);
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
void DeleteCfg();
- void CloseDialogs();
// von der Applikation verschoben:
@@ -238,7 +237,6 @@ SC_DLLPUBLIC void SetAppOptions ( const ScAppOptions& rO
void SetRefInputHdl( ScInputHandler* pNew );
ScInputHandler* GetRefInputHdl();
- void SetInputWindow( ScInputWindow* pWin );
void ViewShellGone(ScTabViewShell* pViewSh);
void ViewShellChanged();
// Kommunikation mit Funktionsautopilot
diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx
index 22c8026b3f72..ace44dc5be4d 100644
--- a/sc/inc/servuno.hxx
+++ b/sc/inc/servuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: servuno.hxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -105,7 +105,7 @@ public:
static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
MakeInstance( sal_uInt16 nType, ScDocShell* pDocShell );
static ::com::sun::star::uno::Sequence<rtl::OUString> GetAllServiceNames();
- static String GetProviderName(sal_uInt16 nObjectType);
+//UNUSED2008-05 static String GetProviderName(sal_uInt16 nObjectType);
static sal_uInt16 GetProviderType(const String& rServiceName);
};
diff --git a/sc/inc/stlpool.hxx b/sc/inc/stlpool.hxx
index f9f250892324..86db2815a0d8 100644
--- a/sc/inc/stlpool.hxx
+++ b/sc/inc/stlpool.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: stlpool.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -56,7 +56,7 @@ public:
void CreateStandardStyles();
void CopyStdStylesFrom( ScStyleSheetPool* pSrcPool );
- void UpdateStdNames();
+//UNUSED2008-05 void UpdateStdNames();
void CopyStyleFrom( ScStyleSheetPool* pSrcPool,
const String& rName, SfxStyleFamily eFamily );
@@ -69,8 +69,6 @@ public:
virtual SfxStyleSheetBase& Make( const String&, SfxStyleFamily eFam,
USHORT nMask = 0xffff, USHORT nPos = 0xffff );
- void ConvertFontsAfterLoad(); // old binary file format
-
protected:
virtual ~ScStyleSheetPool();
diff --git a/sc/inc/styleuno.hxx b/sc/inc/styleuno.hxx
index c06a19542a39..959036df02e8 100644
--- a/sc/inc/styleuno.hxx
+++ b/sc/inc/styleuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: styleuno.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -219,8 +219,8 @@ private:
throw(::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException);
+ ScStyleObj(); // disabled
public:
- ScStyleObj();
ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const String& rName);
virtual ~ScStyleObj();
diff --git a/sc/inc/subtotal.hxx b/sc/inc/subtotal.hxx
index 27801d97c7a3..adc604151f35 100644
--- a/sc/inc/subtotal.hxx
+++ b/sc/inc/subtotal.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: subtotal.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -35,6 +35,7 @@
class SubTotal
{
+#if OLD_PIVOT_IMPLEMENTATION
private:
long nCount;
long nCount2;
@@ -62,6 +63,9 @@ public:
short Valid( USHORT nFunction ) const;
// return 0 => Fehler, -1 => kein Wert, 1 => ok
double Result( USHORT nFunction ) const;
+#endif
+public:
+
static BOOL SafePlus( double& fVal1, double fVal2);
static BOOL SafeMult( double& fVal1, double fVal2);
static BOOL SafeDiv( double& fVal1, double fVal2);
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 3f35327cb796..3e8325e1793a 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: table.hxx,v $
- * $Revision: 1.35 $
+ * $Revision: 1.35.30.6 $
*
* This file is part of OpenOffice.org.
*
@@ -350,13 +350,13 @@ public:
BOOL HasData( SCCOL nCol, SCROW nRow );
BOOL HasStringData( SCCOL nCol, SCROW nRow );
BOOL HasValueData( SCCOL nCol, SCROW nRow );
- USHORT GetErrorData(SCCOL nCol, SCROW nRow) const;
+//UNUSED2008-05 USHORT GetErrorData(SCCOL nCol, SCROW nRow) const;
BOOL HasStringCells( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow ) const;
USHORT GetErrCode( const ScAddress& rPos ) const
{ return aCol[rPos.Col()].GetErrCode( rPos.Row() ); }
- USHORT GetErrCode( SCCOL nCol, SCROW nRow ) const;
+//UNUSED2008-05 USHORT GetErrCode( SCCOL nCol, SCROW nRow ) const;
void ResetChanged( const ScRange& rRange );
@@ -385,7 +385,7 @@ public:
void UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY );
void UpdateInsertTab(SCTAB nTable);
- void UpdateInsertTabOnlyCells(SCTAB nTable);
+//UNUSED2008-05 void UpdateInsertTabOnlyCells(SCTAB nTable);
void UpdateDeleteTab( SCTAB nTable, BOOL bIsMove, ScTable* pRefUndo = NULL );
void UpdateMoveTab(SCTAB nOldPos, SCTAB nNewPos, SCTAB nTabNo, ScProgress& );
void UpdateCompile( BOOL bForceIfNameInUse = FALSE );
@@ -551,8 +551,6 @@ public:
void SetRowFlags( SCROW nRow, BYTE nNewFlags );
void SetRowFlags( SCROW nStartRow, SCROW nEndRow, BYTE nNewFlags );
- /// @return the index of the last column with any set flags (auto-pagebreak is ignored).
- SCCOL GetLastFlaggedCol() const;
/// @return the index of the last row with any set flags (auto-pagebreak is ignored).
SCROW GetLastFlaggedRow() const;
@@ -580,10 +578,6 @@ public:
void StripHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
void ExtendHidden( SCCOL& rX1, SCROW& rY1, SCCOL& rX2, SCROW& rY2 );
-
- BOOL Load( SvStream& rStream, USHORT nVersion, ScProgress* pProgress );
- BOOL Save( SvStream& rStream, long& rSavedDocCells, ScProgress* pProgress ) const;
-
void Sort(const ScSortParam& rSortParam, BOOL bKeepQuery);
BOOL ValidQuery(SCROW nRow, const ScQueryParam& rQueryParam,
BOOL* pSpecial = NULL, ScBaseCell* pCell = NULL,
diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx
index 3baa95421961..2d50f575d29f 100644
--- a/sc/inc/textuno.hxx
+++ b/sc/inc/textuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textuno.hxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -77,8 +77,9 @@ private:
EditTextObject* pRightText;
SfxBroadcaster aBC;
+ ScHeaderFooterContentObj(); // disabled
+
public:
- ScHeaderFooterContentObj();
ScHeaderFooterContentObj( const EditTextObject* pLeft,
const EditTextObject* pCenter,
const EditTextObject* pRight );
@@ -352,7 +353,6 @@ public:
ScEditEngineTextObj();
virtual ~ScEditEngineTextObj() throw();
- void SetText( const String& rStr );
void SetText( const EditTextObject& rTextObject );
EditTextObject* CreateTextObject();
};
diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx
index f8c7d1b32b11..f3476250c83e 100644
--- a/sc/inc/token.hxx
+++ b/sc/inc/token.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: token.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.15.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -179,10 +179,10 @@ public:
BOOL TextEqual( const ScToken& rToken ) const;
BOOL Is3DRef() const; // reference with 3D flag set
- // If token in RPN resulted from resolving a name and contains an absolute
- // reference. Token must be obtained through ScTokenArray::GetNextReferenceRPN()
- // or similar.
- BOOL IsRPNReferenceAbsName() const;
+//UNUSED2008-05 // If token in RPN resulted from resolving a name and contains an absolute
+//UNUSED2008-05 // reference. Token must be obtained through ScTokenArray::GetNextReferenceRPN()
+//UNUSED2008-05 // or similar.
+//UNUSED2008-05 BOOL IsRPNReferenceAbsName() const;
/** If rTok1 and rTok2 both are SingleRef or DoubleRef tokens, extend/merge
ranges as needed for ocRange.
diff --git a/sc/inc/tokenarray.hxx b/sc/inc/tokenarray.hxx
index 40e54792b51f..584f9e33c6df 100644
--- a/sc/inc/tokenarray.hxx
+++ b/sc/inc/tokenarray.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tokenarray.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -112,8 +112,9 @@ public:
BOOL HasOpCode( OpCode ) const;
BOOL HasOpCodeRPN( OpCode ) const;
- /// Token of type svIndex
- BOOL HasName() const;
+//UNUSED2008-05 /// Token of type svIndex
+//UNUSED2008-05 BOOL HasName() const;
+
/// Token of type svIndex or opcode ocColRowName
BOOL HasNameOrColRowName() const;
/// Exactly and only one range (valid or deleted)
diff --git a/sc/inc/userlist.hxx b/sc/inc/userlist.hxx
index d118ae232517..7554cc13e49b 100644
--- a/sc/inc/userlist.hxx
+++ b/sc/inc/userlist.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: userlist.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -49,11 +49,10 @@ friend class ScUserList;
public:
ScUserListData(const String& rStr);
ScUserListData(const ScUserListData& rData);
- ScUserListData( SvStream& rStream );
virtual ~ScUserListData();
virtual DataObject* Clone() const { return new ScUserListData(*this); }
- BOOL Store( SvStream& rStream ) const;
+
const String& GetString() const { return aStr; }
void SetString( const String& rStr);
USHORT GetSubCount() const;
@@ -73,8 +72,6 @@ public:
virtual DataObject* Clone() const;
ScUserListData* GetData( const String& rSubStr ) const;
- BOOL Load( SvStream& rStream );
- BOOL Store( SvStream& rStream ) const;
/// If the list in rStr is already inserted
BOOL HasEntry( const String& rStr ) const;
diff --git a/sc/inc/validat.hxx b/sc/inc/validat.hxx
index fa28553d30bb..02cdbb8fbd2c 100644
--- a/sc/inc/validat.hxx
+++ b/sc/inc/validat.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: validat.hxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -98,12 +98,8 @@ public:
ScDocument* pDocument, const ScAddress& rPos );
ScValidationData( const ScValidationData& r );
ScValidationData( ScDocument* pDocument, const ScValidationData& r );
- ScValidationData( SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument );
virtual ~ScValidationData();
- void Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const;
-
ScValidationData* Clone() const // echte Kopie
{ return new ScValidationData( GetDocument(), *this ); }
ScValidationData* Clone(ScDocument* pNew) const
@@ -201,8 +197,6 @@ public:
ScValidationData* GetData( sal_uInt32 nKey );
- void Load( SvStream& rStream, ScDocument* pDocument );
- void Store( SvStream& rStream ) const;
void ResetUsed();
void CompileXML();
diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx
index 50f4aeb27b7b..fee3984449b7 100644
--- a/sc/inc/viewopti.hxx
+++ b/sc/inc/viewopti.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewopti.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -90,9 +90,6 @@ public:
const ScGridOptions& operator= ( const ScGridOptions& rCpy );
int operator== ( const ScGridOptions& rOpt ) const;
int operator!= ( const ScGridOptions& rOpt ) const { return !(operator==(rOpt)); }
-
- friend SvStream& operator>> ( SvStream& rStream, ScGridOptions& rOpt );
- friend SvStream& operator<< ( SvStream& rStream, const ScGridOptions& rOpt );
};
//==================================================================
@@ -128,10 +125,6 @@ public:
int operator== ( const ScViewOptions& rOpt ) const;
int operator!= ( const ScViewOptions& rOpt ) const { return !(operator==(rOpt)); }
- friend SvStream& operator>> ( SvStream& rStream, ScViewOptions& rOpt );
-
- void Save(SvStream& rStream, BOOL bConfig = FALSE) const;
-
private:
BOOL aOptArr [MAX_OPT];
ScVObjMode aModeArr [MAX_TYPE];
@@ -141,12 +134,6 @@ private:
BOOL bHideAutoSpell;
};
-inline SvStream& operator<<( SvStream& rStream, const ScViewOptions& rOpt )
-{
- rOpt.Save( rStream, FALSE );
- return rStream;
-}
-
//==================================================================
// Item fuer Einstellungsdialog - Ansicht
//==================================================================
@@ -155,7 +142,7 @@ class SC_DLLPUBLIC ScTpViewItem : public SfxPoolItem
{
public:
TYPEINFO();
- ScTpViewItem( USHORT nWhich );
+//UNUSED2008-05 ScTpViewItem( USHORT nWhich );
ScTpViewItem( USHORT nWhich, const ScViewOptions& rOpt );
ScTpViewItem( const ScTpViewItem& rItem );
~ScTpViewItem();
diff --git a/sc/inc/viewuno.hxx b/sc/inc/viewuno.hxx
index ea8f83337d44..e489cb718163 100644
--- a/sc/inc/viewuno.hxx
+++ b/sc/inc/viewuno.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewuno.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -211,8 +211,8 @@ private:
void StartActivationListening();
void EndActivationListening();
+ ScTabViewObj(); // disabled
public:
- ScTabViewObj();
ScTabViewObj(ScTabViewShell* pViewSh);
virtual ~ScTabViewObj();
diff --git a/sc/inc/xmlwrap.hxx b/sc/inc/xmlwrap.hxx
index c1da477b53ff..7245ee4f45b3 100644
--- a/sc/inc/xmlwrap.hxx
+++ b/sc/inc/xmlwrap.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlwrap.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -58,8 +58,8 @@ class ScXMLImportWrapper
SfxMedium* pMedium;
::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage > xStorage;
- com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator(
- com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rModel);
+//UNUSED2008-05 com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator(
+//UNUSED2008-05 com::sun::star::uno::Reference< com::sun::star::frame::XModel >& rModel);
com::sun::star::uno::Reference< com::sun::star::task::XStatusIndicator> GetStatusIndicator();
sal_uInt32 ImportFromComponent(com::sun::star::uno::Reference<com::sun::star::lang::XMultiServiceFactory>& xServiceFactory,
diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx
index 49b65ffb7158..fc33c75306cc 100644
--- a/sc/source/core/data/attarray.cxx
+++ b/sc/source/core/data/attarray.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attarray.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1799,39 +1799,39 @@ BOOL ScAttrArray::IsEmpty() const
}
-SCROW ScAttrArray::GetFirstEntryPos() const
-{
- DBG_ASSERT( nCount, "nCount = 0" );
-
- if ( pData[0].pPattern != pDocument->GetDefPattern() )
- return 0;
- else
- {
- if (nCount==1)
- return 0; // leer
- else
- return pData[0].nRow + 1;
- }
-}
-
-
-SCROW ScAttrArray::GetLastEntryPos( BOOL bIncludeBottom ) const
-{
- DBG_ASSERT( nCount, "nCount == 0" );
-
- if (bIncludeBottom)
- bIncludeBottom = ( pData[nCount-1].pPattern != pDocument->GetDefPattern() );
-
- if (bIncludeBottom)
- return MAXROW;
- else
- {
- if (nCount<=1)
- return 0; // leer
- else
- return pData[nCount-2].nRow;
- }
-}
+//UNUSED2008-05 SCROW ScAttrArray::GetFirstEntryPos() const
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( nCount, "nCount = 0" );
+//UNUSED2008-05
+//UNUSED2008-05 if ( pData[0].pPattern != pDocument->GetDefPattern() )
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 if (nCount==1)
+//UNUSED2008-05 return 0; // leer
+//UNUSED2008-05 else
+//UNUSED2008-05 return pData[0].nRow + 1;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 SCROW ScAttrArray::GetLastEntryPos( BOOL bIncludeBottom ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( nCount, "nCount == 0" );
+//UNUSED2008-05
+//UNUSED2008-05 if (bIncludeBottom)
+//UNUSED2008-05 bIncludeBottom = ( pData[nCount-1].pPattern != pDocument->GetDefPattern() );
+//UNUSED2008-05
+//UNUSED2008-05 if (bIncludeBottom)
+//UNUSED2008-05 return MAXROW;
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 if (nCount<=1)
+//UNUSED2008-05 return 0; // leer
+//UNUSED2008-05 else
+//UNUSED2008-05 return pData[nCount-2].nRow;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
BOOL ScAttrArray::GetFirstVisibleAttr( SCROW& rFirstRow ) const
@@ -2463,6 +2463,7 @@ BOOL ScAttrArray::SearchStyleRange( SCsROW& rRow, SCsROW& rEndRow,
//
+#if 0
void ScAttrArray::Save( SvStream& /* rStream */ ) const
{
#if SC_ROWLIMIT_STREAM_ACCESS
@@ -2530,7 +2531,7 @@ void ScAttrArray::Load( SvStream& /* rStream */ )
USHORT nWhich = ATTR_PATTERN;
const ScPatternAttr* pNewPattern = (const ScPatternAttr*)
- pDocPool->LoadSurrogate( rStream, nWhich, ATTR_PATTERN );
+ pDocPool->LoadSurrogate( rStream, nWhich, ATTR_PATTERN );
if (!pNewPattern)
{
// da is was schiefgelaufen
@@ -2560,42 +2561,43 @@ void ScAttrArray::Load( SvStream& /* rStream */ )
}
#endif // SC_ROWLIMIT_STREAM_ACCESS
}
+#endif
-void ScAttrArray::ConvertFontsAfterLoad()
-{
- ScFontToSubsFontConverter_AutoPtr xFontConverter;
- const ULONG nFlags = FONTTOSUBSFONT_IMPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
- SCSIZE nIndex = 0;
- SCROW nThisRow = 0;
-
- while ( nThisRow <= MAXROW )
- {
- const ScPatternAttr* pOldPattern = pData[nIndex].pPattern;
- const SfxPoolItem* pItem;
- if( pOldPattern->GetItemSet().GetItemState( ATTR_FONT, FALSE, &pItem ) == SFX_ITEM_SET )
- {
- const SvxFontItem* pFontItem = (const SvxFontItem*) pItem;
- const String& rOldName = pFontItem->GetFamilyName();
- xFontConverter = CreateFontToSubsFontConverter( rOldName, nFlags );
- if ( xFontConverter )
- {
- String aNewName( GetFontToSubsFontName( xFontConverter ) );
- if ( aNewName != rOldName )
- {
- SCROW nAttrRow = pData[nIndex].nRow;
- SvxFontItem aNewItem( pFontItem->GetFamily(), aNewName,
- pFontItem->GetStyleName(), pFontItem->GetPitch(),
- RTL_TEXTENCODING_DONTKNOW, ATTR_FONT );
- ScPatternAttr aNewPattern( *pOldPattern );
- aNewPattern.GetItemSet().Put( aNewItem );
- SetPatternArea( nThisRow, nAttrRow, &aNewPattern, TRUE );
- Search( nThisRow, nIndex ); //! data changed
- }
- }
- }
- ++nIndex;
- nThisRow = pData[nIndex-1].nRow+1;
- }
-}
+//UNUSED2008-05 void ScAttrArray::ConvertFontsAfterLoad()
+//UNUSED2008-05 {
+//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr xFontConverter;
+//UNUSED2008-05 const ULONG nFlags = FONTTOSUBSFONT_IMPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
+//UNUSED2008-05 SCSIZE nIndex = 0;
+//UNUSED2008-05 SCROW nThisRow = 0;
+//UNUSED2008-05
+//UNUSED2008-05 while ( nThisRow <= MAXROW )
+//UNUSED2008-05 {
+//UNUSED2008-05 const ScPatternAttr* pOldPattern = pData[nIndex].pPattern;
+//UNUSED2008-05 const SfxPoolItem* pItem;
+//UNUSED2008-05 if( pOldPattern->GetItemSet().GetItemState( ATTR_FONT, FALSE, &pItem ) == SFX_ITEM_SET )
+//UNUSED2008-05 {
+//UNUSED2008-05 const SvxFontItem* pFontItem = (const SvxFontItem*) pItem;
+//UNUSED2008-05 const String& rOldName = pFontItem->GetFamilyName();
+//UNUSED2008-05 xFontConverter = CreateFontToSubsFontConverter( rOldName, nFlags );
+//UNUSED2008-05 if ( xFontConverter )
+//UNUSED2008-05 {
+//UNUSED2008-05 String aNewName( GetFontToSubsFontName( xFontConverter ) );
+//UNUSED2008-05 if ( aNewName != rOldName )
+//UNUSED2008-05 {
+//UNUSED2008-05 SCROW nAttrRow = pData[nIndex].nRow;
+//UNUSED2008-05 SvxFontItem aNewItem( pFontItem->GetFamily(), aNewName,
+//UNUSED2008-05 pFontItem->GetStyleName(), pFontItem->GetPitch(),
+//UNUSED2008-05 RTL_TEXTENCODING_DONTKNOW, ATTR_FONT );
+//UNUSED2008-05 ScPatternAttr aNewPattern( *pOldPattern );
+//UNUSED2008-05 aNewPattern.GetItemSet().Put( aNewItem );
+//UNUSED2008-05 SetPatternArea( nThisRow, nAttrRow, &aNewPattern, TRUE );
+//UNUSED2008-05 Search( nThisRow, nIndex ); //! data changed
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 ++nIndex;
+//UNUSED2008-05 nThisRow = pData[nIndex-1].nRow+1;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
diff --git a/sc/source/core/data/attrib.cxx b/sc/source/core/data/attrib.cxx
index 7fb073cec716..683787966ce1 100644
--- a/sc/source/core/data/attrib.cxx
+++ b/sc/source/core/data/attrib.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: attrib.cxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.19.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -183,18 +183,6 @@ SfxPoolItem* ScMergeAttr::Create( SvStream& rStream, USHORT /* nVer */ ) const
}
//------------------------------------------------------------------------
-
-SvStream& ScMergeAttr::Store( SvStream& rStream, USHORT /* nVer */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nColMerge;
- rStream << nRowMerge;
-#endif
- return rStream;
-}
-
-//------------------------------------------------------------------------
// MergeFlag
//------------------------------------------------------------------------
@@ -427,18 +415,6 @@ SfxPoolItem* ScProtectionAttr::Create( SvStream& rStream, USHORT /* n */ ) const
//------------------------------------------------------------------------
-SvStream& ScProtectionAttr::Store( SvStream& rStream, USHORT /* nVer */ ) const
-{
- rStream << bProtection;
- rStream << bHideFormula;
- rStream << bHideCell;
- rStream << bHidePrint;
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
BOOL ScProtectionAttr::SetProtection( BOOL bProtect)
{
bProtection = bProtect;
@@ -525,83 +501,6 @@ SfxItemPresentation ScRangeItem::GetPresentation
return ePres;
}
-//-----------------------------------------------------------------------
-
-USHORT ScRangeItem::GetVersion( USHORT /* nFileVersion */ ) const
-{
- return 2;
-}
-
-//-----------------------------------------------------------------------
-
-SvStream& ScRangeItem::Store( SvStream& rStrm, USHORT /* nVer */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStrm << aRange;
- rStrm << nFlags;
-
-#endif // SC_ROWLIMIT_STREAM_ACCESS
- return rStrm;
-}
-
-//-----------------------------------------------------------------------
-
-SfxPoolItem* ScRangeItem::Create( SvStream& /* rStream */, USHORT /* nVersion */ ) const
-{
- ScRange aNewRange;
- BOOL nNewFlags = FALSE;
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- switch ( nVersion )
- {
- case 2:
- rStream >> aNewRange;
- rStream >> nNewFlags;
- break;
-
- case 1:
- rStream >> aNewRange;
- nNewFlags = 0;
- break;
-
- case 0:
- {
- // alte Version mit ScArea -> 5 USHORTs lesen
- ScAddress& rStart = aNewRange.aStart;
- ScAddress& rEnd = aNewRange.aEnd;
- USHORT n;
-
- rStream >> n;
-
- if ( n > static_cast<sal_uInt16>(MAXTAB) )
- {
- nNewFlags = SCR_ALLTABS;
- rStart.SetTab( 0 ); rEnd.SetTab( 0 );
- }
- else
- {
- nNewFlags = 0;
- rStart.SetTab( static_cast<SCTAB>(n) ); rEnd.SetTab( static_cast<SCTAB>(n) );
- }
-
- rStream >> n; rStart.SetCol( static_cast<SCCOL>(n) );
- rStream >> n; rStart.SetRow( static_cast<SCROW>(n) );
- rStream >> n; rEnd .SetCol( static_cast<SCCOL>(n) );
- rStream >> n; rEnd .SetRow( static_cast<SCROW>(n) );
- }
- break;
-
- default:
- DBG_ERROR( "ScRangeItem::Create: Unknown Version!" );
- }
-
-#endif // SC_ROWLIMIT_STREAM_ACCESS
- return ( new ScRangeItem( Which(), aNewRange, nNewFlags ) );
-}
-
-
// -----------------------------------------------------------------------
// ScTableListItem - Liste von Tabellen(-nummern)
// -----------------------------------------------------------------------
@@ -623,13 +522,13 @@ ScTableListItem::ScTableListItem( const ScTableListItem& rCpy )
// -----------------------------------------------------------------------
-ScTableListItem::ScTableListItem( const USHORT nWhichP, const List& rList )
- : SfxPoolItem ( nWhichP ),
- nCount ( 0 ),
- pTabArr ( NULL )
-{
- SetTableList( rList );
-}
+//UNUSED2008-05 ScTableListItem::ScTableListItem( const USHORT nWhichP, const List& rList )
+//UNUSED2008-05 : SfxPoolItem ( nWhichP ),
+//UNUSED2008-05 nCount ( 0 ),
+//UNUSED2008-05 pTabArr ( NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 SetTableList( rList );
+//UNUSED2008-05 }
// -----------------------------------------------------------------------
@@ -640,45 +539,6 @@ ScTableListItem::~ScTableListItem()
// -----------------------------------------------------------------------
-#if 0 /* OBSOLETE */
-void ScTableListItem::Record( SfxArguments& rArgs ) const
-{
- rArgs.AppendInteger( nCount );
-
- if ( nCount>0 && pTabArr )
- for ( USHORT i=0; i<nCount; i++ )
- rArgs.AppendInteger( pTabArr[i] );
-}
-
-// -----------------------------------------------------------------------
-
-SfxArgumentError ScTableListItem::Construct( USHORT nId, const SfxArguments& rArgs )
-{
- USHORT nCount = rArgs.Get( 0 ).GetInteger();
-
- if ( pTabArr )
- delete [] pTabArr, pTabArr = NULL;
-
- if ( nCount > 0 )
- {
- if ( rArgs.Count()-1 < nCount )
- return SFX_ARGUMENT_ERROR( rArgs.Count(), SFX_ERR_ARGUMENT_EXPECTED );
- if ( rArgs.Count()-1 > nCount )
- return SFX_ARGUMENT_ERROR( rArgs.Count()-1, SFX_ERR_TOO_MANY_ARGUMENTS );
-
- SetWhich( nId );
- pTabArr = new SCTAB [nCount];
-
- for ( USHORT i=0; i<nCount; i++ )
- pTabArr[i] = rArgs.Get( i+1 ).GetInteger();
- }
-
- return 0;
-}
-#endif /* OBSOLETE */
-
-// -----------------------------------------------------------------------
-
ScTableListItem& ScTableListItem::operator=( const ScTableListItem& rCpy )
{
delete [] pTabArr;
@@ -774,55 +634,6 @@ SfxItemPresentation ScTableListItem::GetPresentation
return SFX_ITEM_PRESENTATION_NONE;
}
-//-----------------------------------------------------------------------
-
-SvStream& ScTableListItem::Store( SvStream& rStrm, USHORT /* nVer */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStrm << nCount;
-
- if ( nCount>0 && pTabArr )
- for ( USHORT i=0; i<nCount; i++ )
- rStrm << (USHORT) pTabArr[i];
-
-#endif // SC_ROWLIMIT_STREAM_ACCESS
- return rStrm;
-}
-
-//-----------------------------------------------------------------------
-
-SfxPoolItem* ScTableListItem::Create( SvStream& /* rStrm */, USHORT ) const
-{
- ScTableListItem* pNewItem;
- List aList;
- SCTAB* p;
-// USHORT nTabCount;
-// USHORT nTabNo;
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStrm >> nTabCount;
-
- if ( nTabCount > 0 )
- {
- for ( USHORT i=0; i<nTabCount; i++ )
- {
- rStrm >> nTabNo;
- aList.Insert( new SCTAB(nTabNo) );
- }
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-
- pNewItem = new ScTableListItem( Which(), aList );
-
- aList.First();
- while ( ( p = (SCTAB*)aList.Remove() ) != NULL )
- delete p;
-
- return pNewItem;
-}
-
// -----------------------------------------------------------------------
BOOL ScTableListItem::GetTableList( List& aList ) const
@@ -979,16 +790,6 @@ SfxPoolItem* ScPageHFItem::Clone( SfxItemPool* ) const
//------------------------------------------------------------------------
-USHORT ScPageHFItem::GetVersion( USHORT /* nFileVersion */ ) const
-{
- // 0 = ohne Feldbefehle
- // 1 = Titel bzw. Dateiname mit SvxFileField
- // 2 = Pfad und/oder Dateiname mit SvxExtFileField, Titel mit SvxFileField
- return 2;
-}
-
-//------------------------------------------------------------------------
-
void lcl_SetSpace( String& rStr, const ESelection& rSel )
{
// Text durch ein Leerzeichen ersetzen, damit Positionen stimmen:
@@ -1141,25 +942,25 @@ class ScFieldChangerEditEngine : public ScEditEngineDefaulter
BOOL bConvert;
public:
- ScFieldChangerEditEngine( SfxItemPool* pEnginePool, BOOL bDeleteEnginePool );
+//UNUSED2008-05 ScFieldChangerEditEngine( SfxItemPool* pEnginePool, BOOL bDeleteEnginePool );
virtual ~ScFieldChangerEditEngine() {}
virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara,
USHORT nPos, Color*& rTxtColor,
Color*& rFldColor );
- BOOL ConvertFields();
+//UNUSED2008-05 BOOL ConvertFields();
};
-ScFieldChangerEditEngine::ScFieldChangerEditEngine( SfxItemPool* pEnginePoolP,
- BOOL bDeleteEnginePoolP ) :
- ScEditEngineDefaulter( pEnginePoolP, bDeleteEnginePoolP ),
- aExtFileId( TYPE( SvxExtFileField ) ),
- nConvPara( 0 ),
- nConvPos( 0 ),
- bConvert( FALSE )
-{
-}
+//UNUSED2008-05 ScFieldChangerEditEngine::ScFieldChangerEditEngine( SfxItemPool* pEnginePoolP,
+//UNUSED2008-05 BOOL bDeleteEnginePoolP ) :
+//UNUSED2008-05 ScEditEngineDefaulter( pEnginePoolP, bDeleteEnginePoolP ),
+//UNUSED2008-05 aExtFileId( TYPE( SvxExtFileField ) ),
+//UNUSED2008-05 nConvPara( 0 ),
+//UNUSED2008-05 nConvPos( 0 ),
+//UNUSED2008-05 bConvert( FALSE )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
String ScFieldChangerEditEngine::CalcFieldValue( const SvxFieldItem& rField,
USHORT nPara, USHORT nPos, Color*& /* rTxtColor */, Color*& /* rFldColor */ )
@@ -1174,96 +975,22 @@ String ScFieldChangerEditEngine::CalcFieldValue( const SvxFieldItem& rField,
return EMPTY_STRING;
}
-BOOL ScFieldChangerEditEngine::ConvertFields()
-{
- BOOL bConverted = FALSE;
- do
- {
- bConvert = FALSE;
- UpdateFields();
- if ( bConvert )
- {
- ESelection aSel( nConvPara, nConvPos, nConvPara, nConvPos+1 );
- QuickInsertField( SvxFieldItem( SvxFileField(), EE_FEATURE_FIELD), aSel );
- bConverted = TRUE;
- }
- } while ( bConvert );
- return bConverted;
-}
-
-void lcl_StoreOldFields( ScFieldChangerEditEngine& rEngine,
- const EditTextObject* pArea, SvStream& rStream )
-{
- rEngine.SetText( *pArea );
- if ( rEngine.ConvertFields() )
- {
- EditTextObject* pObj = rEngine.CreateTextObject();
- pObj->Store( rStream );
- delete pObj;
- }
- else
- pArea->Store( rStream );
-}
-
-SvStream& ScPageHFItem::Store( SvStream& rStream, USHORT /* nVer */ ) const
-{
- if ( pLeftArea && pCenterArea && pRightArea )
- {
- if ( rStream.GetVersion() < SOFFICE_FILEFORMAT_50 )
- {
- ScFieldChangerEditEngine aEngine( EditEngine::CreatePool(), TRUE );
- lcl_StoreOldFields( aEngine, pLeftArea, rStream );
- lcl_StoreOldFields( aEngine, pCenterArea, rStream );
- lcl_StoreOldFields( aEngine, pRightArea, rStream );
- }
- else
- {
- pLeftArea->Store(rStream);
- pCenterArea->Store(rStream);
- pRightArea->Store(rStream);
- }
- }
- else
- {
- // soll eigentlich nicht sein, kommt aber vor, wenn das Default-Item
- // fuer ein ItemSet kopiert wird (#61826#) ...
-
- ScFieldChangerEditEngine aEngine( EditEngine::CreatePool(), TRUE );
- EditTextObject* pEmpytObj = aEngine.CreateTextObject();
-
- DBG_ASSERT( pEmpytObj, "Error creating empty EditTextObject :-(" );
-
- if ( rStream.GetVersion() < SOFFICE_FILEFORMAT_50 )
- {
- if ( pLeftArea )
- lcl_StoreOldFields( aEngine, pLeftArea, rStream );
- else
- pEmpytObj->Store( rStream );
-
- if ( pCenterArea )
- lcl_StoreOldFields( aEngine, pCenterArea, rStream );
- else
- pEmpytObj->Store( rStream );
-
- if ( pRightArea )
- lcl_StoreOldFields( aEngine, pRightArea, rStream );
- else
- pEmpytObj->Store( rStream );
- }
- else
- {
- (pLeftArea ? pLeftArea : pEmpytObj )->Store(rStream);
- (pCenterArea ? pCenterArea : pEmpytObj )->Store(rStream);
- (pRightArea ? pRightArea : pEmpytObj )->Store(rStream);
- }
-
- delete pEmpytObj;
- }
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
+//UNUSED2008-05 BOOL ScFieldChangerEditEngine::ConvertFields()
+//UNUSED2008-05 {
+//UNUSED2008-05 BOOL bConverted = FALSE;
+//UNUSED2008-05 do
+//UNUSED2008-05 {
+//UNUSED2008-05 bConvert = FALSE;
+//UNUSED2008-05 UpdateFields();
+//UNUSED2008-05 if ( bConvert )
+//UNUSED2008-05 {
+//UNUSED2008-05 ESelection aSel( nConvPara, nConvPos, nConvPara, nConvPos+1 );
+//UNUSED2008-05 QuickInsertField( SvxFieldItem( SvxFileField(), EE_FEATURE_FIELD), aSel );
+//UNUSED2008-05 bConverted = TRUE;
+//UNUSED2008-05 }
+//UNUSED2008-05 } while ( bConvert );
+//UNUSED2008-05 return bConverted;
+//UNUSED2008-05 }
void ScPageHFItem::SetLeftArea( const EditTextObject& rNew )
{
@@ -1483,15 +1210,6 @@ SfxPoolItem* ScDoubleItem::Create( SvStream& rStream, USHORT /* nVer */ ) const
//------------------------------------------------------------------------
-SvStream& ScDoubleItem::Store( SvStream& rStream, USHORT /* nVer */ ) const
-{
- rStream << nValue;
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
ScDoubleItem::~ScDoubleItem()
{
}
diff --git a/sc/source/core/data/cell.cxx b/sc/source/core/data/cell.cxx
index e4b942368a84..92115b6191be 100644
--- a/sc/source/core/data/cell.cxx
+++ b/sc/source/core/data/cell.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cell.cxx,v $
- * $Revision: 1.44 $
+ * $Revision: 1.42.30.4 $
*
* This file is part of OpenOffice.org.
*
@@ -200,12 +200,6 @@ ScBaseCell* ScBaseCell::CreateTextCell( const String& rString, ScDocument* pDoc
return new ScStringCell( rString );
}
-void ScBaseCell::LoadNote( SvStream& rStream, ScDocument* pDoc )
-{
- pNote = new ScPostIt(pDoc);
- rStream >> *pNote;
-}
-
void ScBaseCell::SetBroadcaster(SvtBroadcaster* pNew)
{
delete pBroadcaster;
@@ -724,18 +718,6 @@ ScFormulaCell::ScFormulaCell( ScDocument* pDoc, const ScAddress& rNewPos,
}
}
-BOOL lcl_IsBeyond( ScTokenArray* pCode, SCROW nMaxRow )
-{
- ScToken* t;
- pCode->Reset();
- while ( ( t = pCode->GetNextReferenceRPN() ) != NULL ) // RPN -> also in names
- if ( t->GetSingleRef().nRow > nMaxRow ||
- (t->GetType() == svDoubleRef &&
- t->GetDoubleRef().Ref2.nRow > nMaxRow) )
- return TRUE;
- return FALSE;
-}
-
ScBaseCell* ScFormulaCell::Clone( ScDocument* pDoc, const ScAddress& rPos,
BOOL bNoListening ) const
{
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx
index 7a8f493f03fb..6a2166507382 100644
--- a/sc/source/core/data/cell2.cxx
+++ b/sc/source/core/data/cell2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cell2.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.33.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -60,14 +60,6 @@ IMPL_FIXEDMEMPOOL_NEWDEL( ScEditCell, nMemPoolEditCell, nMemPoolEditCell )
// -----------------------------------------------------------------------
-ScEditCell::ScEditCell( ScDocument* pDocP ) :
- ScBaseCell( CELLTYPE_EDIT ),
- pData( NULL ),
- pString( NULL ),
- pDoc( pDocP )
-{
-}
-
ScEditCell::ScEditCell( const EditTextObject* pObject, ScDocument* pDocP,
const SfxItemPool* pFromPool ) :
ScBaseCell( CELLTYPE_EDIT ),
@@ -85,28 +77,6 @@ ScEditCell::ScEditCell( const ScEditCell& rEditCell, ScDocument* pDocP ) :
SetTextObject( rEditCell.pData, rEditCell.pDoc->GetEditPool() );
}
-ScEditCell::ScEditCell( SvStream& rStream, USHORT nVer, ScDocument* pDocP ) :
- ScBaseCell( CELLTYPE_EDIT ),
- pString( NULL ),
- pDoc( pDocP )
-{
- if( nVer >= SC_DATABYTES2 )
- {
- BYTE cData;
- rStream >> cData;
- if( cData & 0x0F )
- rStream.SeekRel( cData & 0x0F );
- }
- if ( nVer < SC_VERSION_EDITPOOL )
- { // jedes hat seinen eigenen Pool, dem neuen zuordnen
- EditTextObject* pTmp = EditTextObject::Create( rStream );
- SetTextObject( pTmp, NULL );
- delete pTmp;
- }
- else
- pData = EditTextObject::Create( rStream, pDoc->GetEditPool() );
-}
-
ScEditCell::ScEditCell( const String& rString, ScDocument* pDocP ) :
ScBaseCell( CELLTYPE_EDIT ),
pString( NULL ),
@@ -171,24 +141,6 @@ void ScEditCell::GetString( String& rString ) const
rString.Erase();
}
-void ScEditCell::Save( SvStream& rStream ) const
-{
- DBG_ASSERT(pData,"StoreTextObject(NULL)");
- rStream << (BYTE) 0x00;
- if ( rStream.GetVersion() < SOFFICE_FILEFORMAT_50 )
- { // jedem seinen eigenen Pool
- ScEditEngineDefaulter aEngine( EditEngine::CreatePool(), TRUE );
- // #52396# richtige Metric schreiben
- aEngine.SetRefMapMode( MAP_100TH_MM );
- aEngine.SetText( *pData );
- EditTextObject* pTmp = aEngine.CreateTextObject();
- pTmp->Store( rStream );
- delete pTmp;
- }
- else
- pData->Store( rStream );
-}
-
void ScEditCell::SetTextObject( const EditTextObject* pObject,
const SfxItemPool* pFromPool )
{
@@ -514,12 +466,6 @@ BOOL ScFormulaCell::HasRelNameReference() const
return FALSE;
}
-BOOL ScFormulaCell::HasDBArea() const
-{
- pCode->Reset();
- return (pCode->GetNextDBArea() != NULL);
-}
-
BOOL ScFormulaCell::HasColRowName() const
{
pCode->Reset();
@@ -1390,83 +1336,3 @@ void ScFormulaCell::CompileColRowNameFormula()
}
}
-ScValueCell::ScValueCell( SvStream& rStream, USHORT nVer ) :
- ScBaseCell( CELLTYPE_VALUE )
-{
- if( nVer >= SC_DATABYTES2 )
- {
- BYTE cData;
- rStream >> cData;
- if( cData & 0x0F )
- rStream.SeekRel( cData & 0x0F );
- }
- rStream >> aValue;
-}
-
-void ScValueCell::Save( SvStream& rStream ) const
-{
- rStream << (BYTE) 0x00 << aValue;
-}
-
-ScStringCell::ScStringCell( SvStream& rStream, USHORT nVer ) :
- ScBaseCell( CELLTYPE_STRING )
-{
- if( nVer >= SC_DATABYTES2 )
- {
- BYTE cData;
- rStream >> cData;
- if( cData & 0x0F )
- rStream.SeekRel( cData & 0x0F );
- }
- rStream.ReadByteString( aString, rStream.GetStreamCharSet() );
-}
-
-void ScStringCell::Save( SvStream& rStream, FontToSubsFontConverter hConv ) const
-{
- rStream << (BYTE) 0x00;
- if ( !hConv )
- rStream.WriteByteString( aString, rStream.GetStreamCharSet() );
- else
- {
- String aTmp( aString );
- sal_Unicode* p = aTmp.GetBufferAccess();
- sal_Unicode const * const pStop = p + aTmp.Len();
- for ( ; p < pStop; ++p )
- {
- *p = ConvertFontToSubsFontChar( hConv, *p );
- }
- aTmp.ReleaseBufferAccess();
- rStream.WriteByteString( aTmp, rStream.GetStreamCharSet() );
- }
-}
-
-void ScStringCell::ConvertFont( FontToSubsFontConverter hConv )
-{
- if ( hConv )
- {
- sal_Unicode* p = aString.GetBufferAccess();
- sal_Unicode const * const pStop = p + aString.Len();
- for ( ; p < pStop; ++p )
- {
- *p = ConvertFontToSubsFontChar( hConv, *p );
- }
- aString.ReleaseBufferAccess();
- }
-}
-
-ScNoteCell::ScNoteCell( SvStream& rStream, USHORT nVer ) :
- ScBaseCell( CELLTYPE_NOTE )
-{
- if( nVer >= SC_DATABYTES2 )
- {
- BYTE cData;
- rStream >> cData;
- if( cData & 0x0F )
- rStream.SeekRel( cData & 0x0F );
- }
-}
-
-void ScNoteCell::Save( SvStream& rStream ) const
-{
- rStream << (BYTE) 0x00;
-}
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index d5d08fc772d5..737a4af008e3 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: column.cxx,v $
- * $Revision: 1.31 $
+ * $Revision: 1.31.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -824,41 +824,6 @@ void ScColumn::Resize( SCSIZE nSize )
pItems = pNewItems;
}
-// SetNewRow gehoert zu SwapRow
-
-void ScColumn::SetNewRow( SCROW nOldRow, SCROW nNewRow ) // nNewRow muss leer sein
-{
- SCSIZE nIndex;
- if (Search(nOldRow, nIndex))
- {
- ScBaseCell* pCell = pItems[nIndex].pCell;
- --nCount;
- memmove( &pItems[nIndex], &pItems[nIndex + 1], (nCount - nIndex) * sizeof(ColEntry) );
-
- SvtBroadcaster* pBC = pCell->GetBroadcaster();
- if (pBC)
- {
- MoveListeners( *pBC, nOldRow ); // Broadcaster bleibt an alter Stelle
- pCell->SetBroadcaster(NULL);
- }
-
- if (pCell->GetCellType() != CELLTYPE_NOTE) // sonst geloescht
- {
- Insert(nNewRow, pCell);
-
- long dy = (long)nNewRow - (long)nOldRow;
- if (pCell->GetCellType() == CELLTYPE_FORMULA)
- {
- ScFormulaCell* pFormula = (ScFormulaCell*)pCell;
- ScRange aRange( ScAddress( 0, nNewRow, nTab ),
- ScAddress( MAXCOL, nNewRow, nTab ) );
- pFormula->aPos.SetRow( nNewRow );
- pFormula->UpdateReference(URM_MOVE, aRange, 0, -dy, 0);
- }
- }
- }
-}
-
// SwapRow zum Sortieren
void ScColumn::SwapRow(SCROW nRow1, SCROW nRow2)
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index f9e0d54edef7..f4be351ee9ef 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -101,561 +101,92 @@ inline BOOL IsAmbiguousScript( BYTE nScript )
// -----------------------------------------------------------------------------------------
-// special handling for non-convertable characters is no longer needed
-#if 0
-
-// read string from a string cell in original CharSet
-
-String lcl_ReadOriginalStringCell( SvStream& rStream, USHORT nVer, CharSet eSystemCharSet )
-{
- if( nVer >= SC_DATABYTES2 )
- {
- BYTE cData;
- rStream >> cData;
- if( cData & 0x0F )
- rStream.SeekRel( cData & 0x0F );
- }
-
- CharSet eOld = rStream.GetStreamCharSet();
- rStream.SetStreamCharSet( eSystemCharSet ); // no conversion
-
- String aString;
- rStream >> aString;
-
- rStream.SetStreamCharSet( eOld );
-
- return aString;
-}
-
-#endif
-
-// -----------------------------------------------------------------------------------------
-
-void ScColumn::LoadData( SvStream& rStream )
-{
- SCSIZE nNewCount = 0;
- SCROW nNewRow = 0;
- BYTE nByte;
- USHORT nVer = (USHORT) pDocument->GetSrcVersion();
-
- ScMultipleReadHeader aHdr( rStream );
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> nNewCount;
-#endif
- if ( nNewCount > static_cast<SCSIZE>(MAXROW+1) ) // wuerde das Array zu gross?
- {
- pDocument->SetLostData();
- rStream.SetError( SVSTREAM_FILEFORMAT_ERROR );
- return;
- }
-
- Resize( nNewCount ); // veraendert nCount nicht
- for (SCSIZE i=0; i<nNewCount; i++)
- {
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> nNewRow;
-#endif
- rStream >> nByte;
-
- if ( nNewRow > MAXROW ) // Zeilennummer zu gross?
- {
- pDocument->SetLostData();
- rStream.SetError( SVSTREAM_FILEFORMAT_ERROR );
- return;
- }
-
- switch ((CellType) nByte)
- {
- case CELLTYPE_VALUE:
- {
- ScValueCell* pCell = new ScValueCell( rStream, nVer );
- Append( nNewRow, pCell );
- }
- break;
- case CELLTYPE_STRING:
- {
- ScStringCell* pCell = new ScStringCell( rStream, nVer );
- Append( nNewRow, pCell );
- }
- break;
- case CELLTYPE_SYMBOLS:
- {
- CharSet eOld = rStream.GetStreamCharSet();
- // convert into true symbol characters
- rStream.SetStreamCharSet( RTL_TEXTENCODING_SYMBOL );
- ScStringCell* pCell = new ScStringCell( rStream, nVer );
- Append( nNewRow, pCell );
- rStream.SetStreamCharSet( eOld );
- ScSymbolStringCellEntry * pEntry = new ScSymbolStringCellEntry;
- pEntry->pCell = pCell;
- pEntry->nRow = nNewRow;
- pDocument->GetLoadedSymbolStringCellsList().Insert(
- pEntry, LIST_APPEND );
- }
- break;
- case CELLTYPE_EDIT:
- {
- ScEditCell* pCell = new ScEditCell( rStream, nVer, pDocument );
- Append( nNewRow, pCell );
- }
- break;
- case CELLTYPE_FORMULA:
- {
- DBG_ERRORFILE( "REMOVED_BINFILTER");
- }
- break;
- case CELLTYPE_NOTE:
- {
- ScNoteCell *pCell = new ScNoteCell( rStream, nVer );
- Append( nNewRow, pCell);
- }
- break;
- default:
- DBG_ERROR( "Falscher Zellentyp" );
- rStream.SetError( SVSTREAM_FILEFORMAT_ERROR );
- return;
- }
- }
-}
-
-BOOL lcl_RemoveAny( ScDocument* pDocument, SCCOL nCol, SCTAB nTab )
-{
- ScDBCollection* pDBColl = pDocument->GetDBCollection();
- if ( pDBColl )
- {
- USHORT nCount = pDBColl->GetCount();
- for (USHORT i=0; i<nCount; i++)
- {
- ScDBData* pData = (*pDBColl)[i];
- if ( pData->IsStripData() &&
- pData->HasImportParam() && !pData->HasImportSelection() )
- {
- ScRange aDBRange;
- pData->GetArea(aDBRange);
- if ( nTab == aDBRange.aStart.Tab() &&
- nCol >= aDBRange.aStart.Col() && nCol <= aDBRange.aEnd.Col() )
- return TRUE;
- }
- }
- }
-
- return FALSE;
-}
-
-BOOL lcl_RemoveThis( ScDocument* pDocument, SCCOL nCol, SCROW nRow, SCTAB nTab )
-{
- ScDBCollection* pDBColl = pDocument->GetDBCollection();
- if ( pDBColl )
- {
- USHORT nCount = pDBColl->GetCount();
- for (USHORT i=0; i<nCount; i++)
- {
- ScDBData* pData = (*pDBColl)[i];
- if ( pData->IsStripData() &&
- pData->HasImportParam() && !pData->HasImportSelection() )
- {
- ScRange aDBRange;
- pData->GetArea(aDBRange);
- if ( nTab == aDBRange.aStart.Tab() &&
- nCol >= aDBRange.aStart.Col() && nCol <= aDBRange.aEnd.Col() &&
- nRow >= aDBRange.aStart.Row() && nRow <= aDBRange.aEnd.Row() )
- return TRUE;
- }
- }
- }
-
- return FALSE;
-}
-
-void ScColumn::SaveData( SvStream& rStream ) const
-{
- CellType eCellType;
- ScBaseCell* pCell;
- SCSIZE i;
- ScFontToSubsFontConverter_AutoPtr xFontConverter;
- const ULONG nFontConverterFlags = FONTTOSUBSFONT_EXPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
-
- ScMultipleWriteHeader aHdr( rStream );
-
- SCSIZE nSaveCount = nCount;
-
- // Zeilen hinter MAXROW abziehen
- SCROW nSaveMaxRow = pDocument->GetSrcMaxRow();
- if ( nSaveMaxRow != MAXROW )
- {
- if ( nSaveCount && pItems[nSaveCount-1].nRow > nSaveMaxRow )
- {
- pDocument->SetLostData(); // Warnung ausgeben
- do
- --nSaveCount;
- while ( nSaveCount && pItems[nSaveCount-1].nRow > nSaveMaxRow );
- }
- }
-
- // Zellen abziehen, die wegen Import nicht gespeichert werden
- BOOL bRemoveAny = lcl_RemoveAny( pDocument, nCol, nTab );
- SCSIZE nEffCount = nSaveCount;
- if ( bRemoveAny )
- {
- for (i=0; i<nSaveCount; i++)
- if ( lcl_RemoveThis( pDocument, nCol, pItems[i].nRow, nTab ) )
- --nEffCount;
-
-// String aDbg("Tab ");aDbg+=nTab;aDbg+=" Col ";aDbg+=nCol;
-// aDbg+=" Remove ";aDbg+=nSaveCount-nEffCount; DBG_ERROR(aDbg);
- }
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nEffCount; // nEffCount: Zellen, die wirklich gespeichert werden
-#endif
-
- ScAttrIterator aIter( pAttrArray, 0, MAXROW );
- SCROW nStt = 0, nEnd = 0;
- const ScPatternAttr* pAttr;
- do
- {
- pAttr = aIter.Next( nStt, nEnd );
- }
- while( pAttr && !(
- (xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags ))
- || pAttr->IsSymbolFont()) );
-
- for (i=0; i<nSaveCount; i++) // nSaveCount: Ende auf MAXROW angepasst
- {
- SCROW nRow = pItems[i].nRow;
-
- if ( !bRemoveAny || !lcl_RemoveThis( pDocument, nCol, nRow, nTab ) )
- {
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nRow;
-#endif
-
- pCell = pItems[i].pCell;
- eCellType = pCell->GetCellType();
-
- switch( eCellType )
- {
- case CELLTYPE_VALUE:
- rStream << (BYTE) eCellType;
- ((ScValueCell*)pCell)->Save( rStream );
- break;
- case CELLTYPE_STRING:
- if( pAttr )
- {
- if( nRow > nEnd )
- {
- do
- {
- do
- {
- pAttr = aIter.Next( nStt, nEnd );
- }
- while ( pAttr && nRow > nEnd ); // #99139# skip all formats before this cell
- }
- while( pAttr && !(
- (xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags ))
- || pAttr->IsSymbolFont()) );
- }
- if( pAttr && nRow >= nStt && nRow <= nEnd )
- eCellType = CELLTYPE_SYMBOLS;
- }
- rStream << (BYTE) eCellType;
- if ( eCellType == CELLTYPE_SYMBOLS )
- {
- // cell string contains true symbol characters
- CharSet eOld = rStream.GetStreamCharSet();
- rStream.SetStreamCharSet( RTL_TEXTENCODING_SYMBOL );
- ((ScStringCell*)pCell)->Save( rStream, xFontConverter );
- rStream.SetStreamCharSet( eOld );
- }
- else
- ((ScStringCell*)pCell)->Save( rStream );
- break;
- case CELLTYPE_EDIT:
- rStream << (BYTE) eCellType;
- ((ScEditCell*)pCell)->Save( rStream );
- break;
- case CELLTYPE_FORMULA:
- DBG_ERRORFILE( "REMOVED_BINFILTER");
- break;
- case CELLTYPE_NOTE:
- rStream << (BYTE) eCellType;
- ((ScNoteCell*)pCell)->Save( rStream );
- break;
- default:
- {
- // #53846# soll zwar nicht vorkommen, aber falls doch,
- // eine leere NoteCell speichern, damit das Dokument
- // ueberhaupt wieder geladen werden kann.
- rStream << (BYTE) CELLTYPE_NOTE;
- ScNoteCell aDummyCell;
- aDummyCell.Save( rStream );
- DBG_ERROR( "Falscher Zellentyp" );
- }
- break;
- }
- }
- }
-}
+//UNUSED2008-05 SCROW ScColumn::NoteCount( SCROW nMaxRow ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 SCROW nNoteCount = 0;
+//UNUSED2008-05 SCSIZE i;
+//UNUSED2008-05
+//UNUSED2008-05 for (i=0; i<nCount; i++)
+//UNUSED2008-05 if ( pItems[i].pCell->GetNotePtr() && pItems[i].nRow<=nMaxRow )
+//UNUSED2008-05 ++nNoteCount;
+//UNUSED2008-05
+//UNUSED2008-05 return nNoteCount;
+//UNUSED2008-05 }
// -----------------------------------------------------------------------------------------
-void ScColumn::LoadNotes( SvStream& rStream )
-{
- ScReadHeader aHdr(rStream);
-
- SCSIZE nNoteCount = 0;
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> nNoteCount;
-#endif
- for (SCSIZE i=0; i<nNoteCount && rStream.GetError() == SVSTREAM_OK; i++)
- {
- SCSIZE nPos = 0;
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> nPos;
-#endif
- if (nPos < nCount)
- pItems[nPos].pCell->LoadNote(rStream, pDocument);
- else
- {
- DBG_ERROR("falsche Pos in ScColumn::LoadNotes");
- rStream.SetError( SVSTREAM_FILEFORMAT_ERROR );
- }
- }
-}
-
-SCROW ScColumn::NoteCount( SCROW nMaxRow ) const
-{
- SCROW nNoteCount = 0;
- SCSIZE i;
-
- for (i=0; i<nCount; i++)
- if ( pItems[i].pCell->GetNotePtr() && pItems[i].nRow<=nMaxRow )
- ++nNoteCount;
-
- return nNoteCount;
-}
-
-void ScColumn::SaveNotes( SvStream& rStream ) const
-{
- SCROW nSaveMaxRow = pDocument->GetSrcMaxRow();
- SCSIZE i;
-
- BOOL bRemoveAny = lcl_RemoveAny( pDocument, nCol, nTab );
- SCROW nNoteCount;
- if ( bRemoveAny )
- {
- // vorher zaehlen, wieviele Notizen es werden
-
- nNoteCount = 0;
- for (i=0; i<nCount; i++)
- if ( pItems[i].pCell->GetNotePtr() && pItems[i].nRow<=nSaveMaxRow &&
- !lcl_RemoveThis( pDocument, nCol, pItems[i].nRow, nTab ) )
- ++nNoteCount;
- }
- else
- nNoteCount = NoteCount(nSaveMaxRow);
-
- // Speichern
- // Als Positionen muessen die Indizes gespeichert werden, die beim Laden entstehen,
- // also ohne die weggelassenen Zellen mitzuzaehlen.
-
- ScWriteHeader aHdr(rStream);
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nNoteCount;
-#endif
-
- USHORT nDestPos = 0;
- for (i=0; i<nCount && rStream.GetError() == SVSTREAM_OK; i++)
- {
- SCROW nRow = pItems[i].nRow;
- if ( !bRemoveAny || !lcl_RemoveThis( pDocument, nCol, nRow, nTab ) )
- {
- const ScPostIt* pNote = pItems[i].pCell->GetNotePtr();
- if ( pNote && nRow <= nSaveMaxRow )
- {
- rStream << nDestPos;
- rStream << *pNote;
- }
- ++nDestPos; // nDestPos zaehlt die in SaveData gespeicherten Zellen
- }
- }
-
- // SetLostData ist schon in SaveData passiert, wenn noetig
-}
-
-// -----------------------------------------------------------------------------------------
-
-void ScColumn::CorrectSymbolCells( CharSet eStreamCharSet )
-{
- // #99139# find and correct string cells that are formatted with a symbol font,
- // but are not in the LoadedSymbolStringCellsList
- // (because CELLTYPE_SYMBOLS wasn't written in the file)
-
- ScFontToSubsFontConverter_AutoPtr xFontConverter;
- const ULONG nFontConverterFlags = FONTTOSUBSFONT_EXPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
-
- BOOL bListInitialized = FALSE;
- ScSymbolStringCellEntry* pCurrentEntry = NULL;
-
- ScAttrIterator aAttrIter( pAttrArray, 0, MAXROW );
- SCROW nStt, nEnd;
- const ScPatternAttr* pAttr = aAttrIter.Next( nStt, nEnd );
- while ( pAttr )
- {
- if ( (xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags )) ||
- pAttr->IsSymbolFont() )
- {
- ScColumnIterator aCellIter( this, nStt, nEnd );
- SCROW nRow;
- ScBaseCell* pCell;
- while ( aCellIter.Next( nRow, pCell ) )
- {
- if ( pCell->GetCellType() == CELLTYPE_STRING )
- {
- List& rList = pDocument->GetLoadedSymbolStringCellsList();
- if (!bListInitialized)
- {
- pCurrentEntry = (ScSymbolStringCellEntry*)rList.First();
- bListInitialized = TRUE;
- }
-
- while ( pCurrentEntry && pCurrentEntry->nRow < nRow )
- pCurrentEntry = (ScSymbolStringCellEntry*)rList.Next();
-
- if ( pCurrentEntry && pCurrentEntry->nRow == nRow )
- {
- // found
- }
- else
- {
- // not in list -> convert and put into list
-
- ScStringCell* pStrCell = (ScStringCell*)pCell;
- String aOldStr;
- pStrCell->GetString( aOldStr );
-
- // convert back to stream character set (get original data)
- ByteString aByteStr( aOldStr, eStreamCharSet );
-
- // convert using symbol encoding, as for CELLTYPE_SYMBOLS cells
- String aNewStr( aByteStr, RTL_TEXTENCODING_SYMBOL );
- pStrCell->SetString( aNewStr );
-
- ScSymbolStringCellEntry * pEntry = new ScSymbolStringCellEntry;
- pEntry->pCell = pStrCell;
- pEntry->nRow = nRow;
-
- if ( pCurrentEntry )
- rList.Insert( pEntry ); // before current entry - pCurrentEntry stays valid
- else
- rList.Insert( pEntry, LIST_APPEND ); // append if already behind last entry
- }
- }
- }
- }
-
- pAttr = aAttrIter.Next( nStt, nEnd );
- }
-}
-
-BOOL ScColumn::Load( SvStream& rStream, ScMultipleReadHeader& rHdr )
-{
- rHdr.StartEntry();
- while (rHdr.BytesLeft() && rStream.GetError() == SVSTREAM_OK)
- {
- USHORT nID;
- rStream >> nID;
- switch (nID)
- {
- case SCID_COLDATA:
- LoadData( rStream );
- break;
- case SCID_COLNOTES:
- LoadNotes( rStream );
- break;
- case SCID_COLATTRIB:
- pAttrArray->Load( rStream );
- break;
- default:
- {
- DBG_ERROR("unbekannter Sub-Record in ScColumn::Load");
- ScReadHeader aDummyHeader( rStream );
- }
- }
- }
- rHdr.EndEntry();
-
- // #99139# old versions didn't always write CELLTYPE_SYMBOLS for symbol string cells,
- // so we have to look for remaining string cells in areas that are formatted with
- // symbol font:
- CorrectSymbolCells( rStream.GetStreamCharSet() );
-
- if ( pDocument->SymbolStringCellsPending() )
- {
- ScFontToSubsFontConverter_AutoPtr xFontConverter;
- const ULONG nFontConverterFlags = FONTTOSUBSFONT_IMPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
- ScSymbolStringCellEntry* pE;
- SCROW nStt, nEnd = 0;
-
- ScAttrIterator aIter( pAttrArray, 0, MAXROW );
- const ScPatternAttr* pAttr = aIter.Next( nStt, nEnd );
- xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags );
-
- List& rList = pDocument->GetLoadedSymbolStringCellsList();
- for ( pE = (ScSymbolStringCellEntry*) rList.First(); pE;
- pE = (ScSymbolStringCellEntry*) rList.Next() )
- {
- const ScPatternAttr* pLastAttr = pAttr;
- while ( nEnd < pE->nRow )
- {
- pAttr = aIter.Next( nStt, nEnd );
- }
- if ( pAttr != pLastAttr )
- xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags );
- pE->pCell->ConvertFont( xFontConverter );
- delete pE;
- }
- rList.Clear();
- }
- pAttrArray->ConvertFontsAfterLoad();
-
- return TRUE;
-}
-
-BOOL ScColumn::Save( SvStream& rStream, ScMultipleWriteHeader& rHdr ) const
-{
- rHdr.StartEntry();
-
- if (!IsEmptyData()) //! Test, ob alles weggelassen wird?
- {
- rStream << (USHORT) SCID_COLDATA;
- SaveData( rStream );
- }
- SCROW nNotes = NoteCount(); //! Test, ob alles weggelassen wird?
- if (nNotes > 0)
- {
- rStream << (USHORT) SCID_COLNOTES;
- SaveNotes( rStream );
- }
- if (!IsEmptyAttr())
- {
- rStream << (USHORT) SCID_COLATTRIB;
- pAttrArray->Save( rStream );
- }
-
- rHdr.EndEntry();
-
- return TRUE;
-}
+//UNUSED2008-05 void ScColumn::CorrectSymbolCells( CharSet eStreamCharSet )
+//UNUSED2008-05 {
+//UNUSED2008-05 // #99139# find and correct string cells that are formatted with a symbol font,
+//UNUSED2008-05 // but are not in the LoadedSymbolStringCellsList
+//UNUSED2008-05 // (because CELLTYPE_SYMBOLS wasn't written in the file)
+//UNUSED2008-05
+//UNUSED2008-05 ScFontToSubsFontConverter_AutoPtr xFontConverter;
+//UNUSED2008-05 const ULONG nFontConverterFlags = FONTTOSUBSFONT_EXPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
+//UNUSED2008-05
+//UNUSED2008-05 BOOL bListInitialized = FALSE;
+//UNUSED2008-05 ScSymbolStringCellEntry* pCurrentEntry = NULL;
+//UNUSED2008-05
+//UNUSED2008-05 ScAttrIterator aAttrIter( pAttrArray, 0, MAXROW );
+//UNUSED2008-05 SCROW nStt, nEnd;
+//UNUSED2008-05 const ScPatternAttr* pAttr = aAttrIter.Next( nStt, nEnd );
+//UNUSED2008-05 while ( pAttr )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( (xFontConverter = pAttr->GetSubsFontConverter( nFontConverterFlags )) ||
+//UNUSED2008-05 pAttr->IsSymbolFont() )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScColumnIterator aCellIter( this, nStt, nEnd );
+//UNUSED2008-05 SCROW nRow;
+//UNUSED2008-05 ScBaseCell* pCell;
+//UNUSED2008-05 while ( aCellIter.Next( nRow, pCell ) )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pCell->GetCellType() == CELLTYPE_STRING )
+//UNUSED2008-05 {
+//UNUSED2008-05 List& rList = pDocument->GetLoadedSymbolStringCellsList();
+//UNUSED2008-05 if (!bListInitialized)
+//UNUSED2008-05 {
+//UNUSED2008-05 pCurrentEntry = (ScSymbolStringCellEntry*)rList.First();
+//UNUSED2008-05 bListInitialized = TRUE;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 while ( pCurrentEntry && pCurrentEntry->nRow < nRow )
+//UNUSED2008-05 pCurrentEntry = (ScSymbolStringCellEntry*)rList.Next();
+//UNUSED2008-05
+//UNUSED2008-05 if ( pCurrentEntry && pCurrentEntry->nRow == nRow )
+//UNUSED2008-05 {
+//UNUSED2008-05 // found
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 // not in list -> convert and put into list
+//UNUSED2008-05
+//UNUSED2008-05 ScStringCell* pStrCell = (ScStringCell*)pCell;
+//UNUSED2008-05 String aOldStr;
+//UNUSED2008-05 pStrCell->GetString( aOldStr );
+//UNUSED2008-05
+//UNUSED2008-05 // convert back to stream character set (get original data)
+//UNUSED2008-05 ByteString aByteStr( aOldStr, eStreamCharSet );
+//UNUSED2008-05
+//UNUSED2008-05 // convert using symbol encoding, as for CELLTYPE_SYMBOLS cells
+//UNUSED2008-05 String aNewStr( aByteStr, RTL_TEXTENCODING_SYMBOL );
+//UNUSED2008-05 pStrCell->SetString( aNewStr );
+//UNUSED2008-05
+//UNUSED2008-05 ScSymbolStringCellEntry * pEntry = new ScSymbolStringCellEntry;
+//UNUSED2008-05 pEntry->pCell = pStrCell;
+//UNUSED2008-05 pEntry->nRow = nRow;
+//UNUSED2008-05
+//UNUSED2008-05 if ( pCurrentEntry )
+//UNUSED2008-05 rList.Insert( pEntry ); // before current entry - pCurrentEntry stays valid
+//UNUSED2008-05 else
+//UNUSED2008-05 rList.Insert( pEntry, LIST_APPEND ); // append if already behind last entry
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 pAttr = aAttrIter.Next( nStt, nEnd );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
// -----------------------------------------------------------------------------------------
@@ -1991,30 +1522,6 @@ BOOL ScColumn::HasDataAt(SCROW nRow) const
}
-SCROW ScColumn::GetFirstEntryPos() const
-{
- if (pAttrArray)
- return Min( GetFirstDataPos(), pAttrArray->GetFirstEntryPos() );
- else
- return GetFirstDataPos();
-}
-
-SCROW ScColumn::GetLastEntryPos() const
-{
- if (pAttrArray)
- return Max( GetLastDataPos(), pAttrArray->GetLastEntryPos(TRUE) );
- else
- return GetLastDataPos();
-}
-
-SCROW ScColumn::GetLastAttrPos() const
-{
- if (pAttrArray)
- return pAttrArray->GetLastEntryPos(FALSE);
- else
- return 0;
-}
-
BOOL ScColumn::IsAllAttrEqual( const ScColumn& rCol, SCROW nStartRow, SCROW nEndRow ) const
{
if (pAttrArray && rCol.pAttrArray)
diff --git a/sc/source/core/data/compressedarray.cxx b/sc/source/core/data/compressedarray.cxx
index 36d92ac90392..71edac0cd0c8 100644
--- a/sc/source/core/data/compressedarray.cxx
+++ b/sc/source/core/data/compressedarray.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: compressedarray.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -365,27 +365,6 @@ A ScCompressedArray<A,D>::GetLastUnequalAccess( A nStart, const D& rCompare )
}
-template< typename A, typename D >
-void ScCompressedArray<A,D>::FillDataArray( A nStart, A nEnd, D * pArray ) const
-{
- size_t nUsed = 0;
- size_t nIndex = Search( nStart);
- A nS = ::std::max( (nIndex>0 ? pData[nIndex-1].nEnd+1 : 0), nStart);
- do
- {
- A nE = ::std::min( pData[nIndex].nEnd, nEnd);
- while (nS <= nE)
- {
- pArray[nUsed++] = pData[nIndex].aValue;
- ++nS;
- }
- if (pData[nIndex].nEnd >= nEnd)
- break; // while
- ++nIndex;
- } while (nIndex < nCount);
-}
-
-
// === ScSummableCompressedArray =============================================
template< typename A, typename D >
diff --git a/sc/source/core/data/conditio.cxx b/sc/source/core/data/conditio.cxx
index cc5d1aab34f9..bf241128356b 100644
--- a/sc/source/core/data/conditio.cxx
+++ b/sc/source/core/data/conditio.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: conditio.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.25.30.5 $
*
* This file is part of OpenOffice.org.
*
@@ -292,128 +292,6 @@ ScConditionEntry::~ScConditionEntry()
delete pFormula2;
}
-ScConditionEntry::ScConditionEntry( SvStream& /* rStream */, ScMultipleReadHeader& /* rHdr */,
- ScDocument* pDocument ) :
- nVal1(0.0),
- nVal2(0.0),
- bIsStr1(FALSE),
- bIsStr2(FALSE),
- pFormula1(NULL),
- pFormula2(NULL),
- pFCell1(NULL),
- pFCell2(NULL),
- pDoc(pDocument),
- bRelRef1(FALSE),
- bRelRef2(FALSE),
- bFirstRun(TRUE)
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- USHORT nVer = (USHORT) pDoc->GetSrcVersion();
-
- rHdr.StartEntry();
-
- BYTE nOpByte;
- rStream >> nOpByte;
- eOp = (ScConditionMode) nOpByte;
-
- rStream >> nOptions;
-
- ScAddress aPos;
- BYTE nTypeByte;
- rStream >> nTypeByte;
- ScConditionValType eType = (ScConditionValType) nTypeByte;
- if ( eType == SC_VAL_FORMULA )
- {
- rStream >> aPos;
- pFormula1 = new ScTokenArray;
- pFormula1->Load( rStream, nVer, aPos );
- bRelRef1 = lcl_HasRelRef( pDoc, pFormula1 );
- }
- else if ( eType == SC_VAL_VALUE )
- rStream >> nVal1;
- else
- {
- bIsStr1 = TRUE;
- rStream.ReadByteString( aStrVal1, rStream.GetStreamCharSet() );
- }
-
- if ( eOp == SC_COND_BETWEEN || eOp == SC_COND_NOTBETWEEN )
- {
- rStream >> nTypeByte;
- eType = (ScConditionValType) nTypeByte;
- if ( eType == SC_VAL_FORMULA )
- {
- rStream >> aPos;
- pFormula2 = new ScTokenArray;
- pFormula2->Load( rStream, nVer, aPos );
- bRelRef2 = lcl_HasRelRef( pDoc, pFormula2 );
- }
- else if ( eType == SC_VAL_VALUE )
- rStream >> nVal2;
- else
- {
- bIsStr2 = TRUE;
- rStream.ReadByteString( aStrVal2, rStream.GetStreamCharSet() );
- }
- }
-
- rHdr.EndEntry();
-
- aSrcPos = aPos;
-
- // Formelzellen werden erst bei IsValid angelegt
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-void ScConditionEntry::StoreCondition(SvStream& /* rStream */, ScMultipleWriteHeader& /* rHdr */) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rHdr.StartEntry();
-
- // 1) Byte fuer die Operation
- // 2) USHORT fuer Optionen
- // 3) Byte, ob Wert, String oder Formel folgt
- // 4) double, String oder TokenArray
- // 5) je nach Operation 3 und 4 nochmal
- // vor jedem TokenArray noch die Position als ScAddress
-
- rStream << (BYTE) eOp;
- rStream << nOptions;
-
- ScConditionValType eType =
- pFormula1 ? SC_VAL_FORMULA : ( bIsStr1 ? SC_VAL_STRING : SC_VAL_VALUE );
- rStream << (BYTE) eType;
- if ( eType == SC_VAL_FORMULA )
- {
- rStream << aSrcPos;
- pFormula1->Store( rStream, aSrcPos );
- }
- else if ( eType == SC_VAL_VALUE )
- rStream << nVal1;
- else
- rStream.WriteByteString( aStrVal1, rStream.GetStreamCharSet() );
-
- if ( eOp == SC_COND_BETWEEN || eOp == SC_COND_NOTBETWEEN )
- {
- eType = pFormula2 ? SC_VAL_FORMULA : ( bIsStr2 ? SC_VAL_STRING : SC_VAL_VALUE );
- rStream << (BYTE) eType;
- if ( eType == SC_VAL_FORMULA )
- {
- rStream << aSrcPos;
- pFormula2->Store( rStream, aSrcPos );
- }
- else if ( eType == SC_VAL_VALUE )
- rStream << nVal2;
- else
- rStream.WriteByteString( aStrVal2, rStream.GetStreamCharSet() );
- }
-
- rHdr.EndEntry();
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
void ScConditionEntry::Compile( const String& rExpr1, const String& rExpr2,
const ScGrammar::Grammar eGrammar, BOOL bTextToReal )
{
@@ -1262,30 +1140,6 @@ ScCondFormatEntry::ScCondFormatEntry( ScDocument* pDocument, const ScCondFormatE
{
}
-ScCondFormatEntry::ScCondFormatEntry( SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument ) :
- ScConditionEntry( rStream, rHdr, pDocument ),
- pParent( NULL )
-{
- // im Datei-Header sind getrennte Eintraege fuer ScConditionEntry und ScCondFormatEntry
-
- rHdr.StartEntry();
- rStream.ReadByteString( aStyleName, rStream.GetStreamCharSet() );
- rHdr.EndEntry();
-}
-
-void ScCondFormatEntry::Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const
-{
- // im Datei-Header sind getrennte Eintraege fuer ScConditionEntry und ScCondFormatEntry
-
- StoreCondition( rStream, rHdr );
-
- rHdr.StartEntry();
- rStream.WriteByteString( aStyleName, rStream.GetStreamCharSet() );
- rHdr.EndEntry();
-}
-
-
int ScCondFormatEntry::operator== ( const ScCondFormatEntry& r ) const
{
return ScConditionEntry::operator==( r ) &&
@@ -1357,54 +1211,6 @@ ScConditionalFormat* ScConditionalFormat::Clone(ScDocument* pNewDoc) const
return pNew;
}
-ScConditionalFormat::ScConditionalFormat(SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument) :
- pDoc( pDocument ),
- pAreas( NULL ),
- ppEntries( NULL ),
- nEntryCount( 0 )
-{
- // ein Eintrag im Header fuer die ScConditionalFormat-Daten,
- // je zwei Eintraege fuer jede Bedingung (ScConditionEntry und ScCondFormatEntry)
-
- rHdr.StartEntry();
-
- rStream >> nKey;
- rStream >> nEntryCount;
-
- rHdr.EndEntry();
-
- // Eintraege laden
-
- if (nEntryCount)
- {
- ppEntries = new ScCondFormatEntry*[nEntryCount];
- for (USHORT i=0; i<nEntryCount; i++)
- {
- ppEntries[i] = new ScCondFormatEntry(rStream, rHdr, pDocument);
- ppEntries[i]->SetParent(this);
- }
- }
-}
-
-void ScConditionalFormat::Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const
-{
- // ein Eintrag im Header fuer die ScConditionalFormat-Daten,
- // je zwei Eintraege fuer jede Bedingung (ScConditionEntry und ScCondFormatEntry)
-
- rHdr.StartEntry();
-
- rStream << nKey;
- rStream << nEntryCount;
-
- rHdr.EndEntry();
-
- // Eintraege speichern
-
- for (USHORT i=0; i<nEntryCount; i++)
- ppEntries[i]->Store(rStream, rHdr);
-}
-
BOOL ScConditionalFormat::EqualEntries( const ScConditionalFormat& r ) const
{
if ( nEntryCount != r.nEntryCount )
@@ -1685,41 +1491,6 @@ BOOL ScConditionalFormatList::operator==( const ScConditionalFormatList& r ) con
return bEqual;
}
-void ScConditionalFormatList::Load( SvStream& rStream, ScDocument* pDocument )
-{
- ScMultipleReadHeader aHdr( rStream );
-
- USHORT nNewCount;
- rStream >> nNewCount;
-
- for (USHORT i=0; i<nNewCount; i++)
- {
- ScConditionalFormat* pNew = new ScConditionalFormat( rStream, aHdr, pDocument );
- InsertNew( pNew );
- }
-}
-
-void ScConditionalFormatList::Store( SvStream& rStream ) const
-{
- USHORT i;
- ScMultipleWriteHeader aHdr( rStream );
-
- USHORT nCount = Count();
- USHORT nUsed = 0;
- for (i=0; i<nCount; i++)
- if ((*this)[i]->IsUsed())
- ++nUsed;
-
- rStream << nUsed; // Anzahl der gespeicherten
-
- for (i=0; i<nCount; i++)
- {
- const ScConditionalFormat* pForm = (*this)[i];
- if (pForm->IsUsed())
- pForm->Store( rStream, aHdr );
- }
-}
-
ScConditionalFormat* ScConditionalFormatList::GetFormat( sal_uInt32 nKey )
{
//! binaer suchen
@@ -1733,12 +1504,12 @@ ScConditionalFormat* ScConditionalFormatList::GetFormat( sal_uInt32 nKey )
return NULL;
}
-void ScConditionalFormatList::ResetUsed()
-{
- USHORT nCount = Count();
- for (USHORT i=0; i<nCount; i++)
- (*this)[i]->SetUsed(FALSE);
-}
+//UNUSED2008-05 void ScConditionalFormatList::ResetUsed()
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT nCount = Count();
+//UNUSED2008-05 for (USHORT i=0; i<nCount; i++)
+//UNUSED2008-05 (*this)[i]->SetUsed(FALSE);
+//UNUSED2008-05 }
void ScConditionalFormatList::CompileAll()
{
diff --git a/sc/source/core/data/dociter.cxx b/sc/source/core/data/dociter.cxx
index af9f4e0eff76..ce1f5ef49f9e 100644
--- a/sc/source/core/data/dociter.cxx
+++ b/sc/source/core/data/dociter.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dociter.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.21.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -221,46 +221,46 @@ void lcl_IterGetNumberFormat( ULONG& nFormat, const ScAttrArray*& rpArr,
}
}
-ScValueIterator::ScValueIterator( ScDocument* pDocument,
- SCCOL nSCol, SCROW nSRow, SCTAB nSTab,
- SCCOL nECol, SCROW nERow, SCTAB nETab,
- BOOL bSTotal, BOOL bTextZero ) :
- pDoc( pDocument ),
- nNumFmtIndex(0),
- nStartCol( nSCol),
- nStartRow( nSRow),
- nStartTab( nSTab ),
- nEndCol( nECol ),
- nEndRow( nERow),
- nEndTab( nETab ),
- nNumFmtType( NUMBERFORMAT_UNDEFINED ),
- bNumValid( FALSE ),
- bSubTotal(bSTotal),
- bNextValid( FALSE ),
- bCalcAsShown( pDocument->GetDocOptions().IsCalcAsShown() ),
- bTextAsZero( bTextZero )
-{
- PutInOrder( nStartCol, nEndCol);
- PutInOrder( nStartRow, nEndRow);
- PutInOrder( nStartTab, nEndTab );
-
- if (!ValidCol(nStartCol)) nStartCol = MAXCOL;
- if (!ValidCol(nEndCol)) nEndCol = MAXCOL;
- if (!ValidRow(nStartRow)) nStartRow = MAXROW;
- if (!ValidRow(nEndRow)) nEndRow = MAXROW;
- if (!ValidTab(nStartTab)) nStartTab = MAXTAB;
- if (!ValidTab(nEndTab)) nEndTab = MAXTAB;
-
- nCol = nStartCol;
- nRow = nStartRow;
- nTab = nStartTab;
-
- nColRow = 0; // wird bei GetFirst initialisiert
-
- nNumFormat = 0; // werden bei GetNumberFormat initialisiert
- pAttrArray = 0;
- nAttrEndRow = 0;
-}
+//UNUSED2008-05 ScValueIterator::ScValueIterator( ScDocument* pDocument,
+//UNUSED2008-05 SCCOL nSCol, SCROW nSRow, SCTAB nSTab,
+//UNUSED2008-05 SCCOL nECol, SCROW nERow, SCTAB nETab,
+//UNUSED2008-05 BOOL bSTotal, BOOL bTextZero ) :
+//UNUSED2008-05 pDoc( pDocument ),
+//UNUSED2008-05 nNumFmtIndex(0),
+//UNUSED2008-05 nStartCol( nSCol),
+//UNUSED2008-05 nStartRow( nSRow),
+//UNUSED2008-05 nStartTab( nSTab ),
+//UNUSED2008-05 nEndCol( nECol ),
+//UNUSED2008-05 nEndRow( nERow),
+//UNUSED2008-05 nEndTab( nETab ),
+//UNUSED2008-05 nNumFmtType( NUMBERFORMAT_UNDEFINED ),
+//UNUSED2008-05 bNumValid( FALSE ),
+//UNUSED2008-05 bSubTotal(bSTotal),
+//UNUSED2008-05 bNextValid( FALSE ),
+//UNUSED2008-05 bCalcAsShown( pDocument->GetDocOptions().IsCalcAsShown() ),
+//UNUSED2008-05 bTextAsZero( bTextZero )
+//UNUSED2008-05 {
+//UNUSED2008-05 PutInOrder( nStartCol, nEndCol);
+//UNUSED2008-05 PutInOrder( nStartRow, nEndRow);
+//UNUSED2008-05 PutInOrder( nStartTab, nEndTab );
+//UNUSED2008-05
+//UNUSED2008-05 if (!ValidCol(nStartCol)) nStartCol = MAXCOL;
+//UNUSED2008-05 if (!ValidCol(nEndCol)) nEndCol = MAXCOL;
+//UNUSED2008-05 if (!ValidRow(nStartRow)) nStartRow = MAXROW;
+//UNUSED2008-05 if (!ValidRow(nEndRow)) nEndRow = MAXROW;
+//UNUSED2008-05 if (!ValidTab(nStartTab)) nStartTab = MAXTAB;
+//UNUSED2008-05 if (!ValidTab(nEndTab)) nEndTab = MAXTAB;
+//UNUSED2008-05
+//UNUSED2008-05 nCol = nStartCol;
+//UNUSED2008-05 nRow = nStartRow;
+//UNUSED2008-05 nTab = nStartTab;
+//UNUSED2008-05
+//UNUSED2008-05 nColRow = 0; // wird bei GetFirst initialisiert
+//UNUSED2008-05
+//UNUSED2008-05 nNumFormat = 0; // werden bei GetNumberFormat initialisiert
+//UNUSED2008-05 pAttrArray = 0;
+//UNUSED2008-05 nAttrEndRow = 0;
+//UNUSED2008-05 }
ScValueIterator::ScValueIterator( ScDocument* pDocument, const ScRange& rRange,
BOOL bSTotal, BOOL bTextZero ) :
diff --git a/sc/source/core/data/docpool.cxx b/sc/source/core/data/docpool.cxx
index cbb16159f6d7..5ada25f0d041 100644
--- a/sc/source/core/data/docpool.cxx
+++ b/sc/source/core/data/docpool.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docpool.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -613,19 +613,6 @@ void ScDocumentPool::CheckRef( const SfxPoolItem& rItem ) // static
}
}
-void ScDocumentPool::MyLoadCompleted()
-{
- LoadCompleted();
-
- USHORT nCount = GetItemCount(ATTR_PATTERN);
- for (USHORT i=0; i<nCount; i++)
- {
- const SfxPoolItem* pItem = GetItem(ATTR_PATTERN, i);
- if (pItem)
- CheckRef(*pItem);
- }
-}
-
// ----------------------------------------------------------------------------------------
void ScDocumentPool::StyleDeleted( ScStyleSheet* pStyle )
diff --git a/sc/source/core/data/documen2.cxx b/sc/source/core/data/documen2.cxx
index d65e6ba381fe..818748c4a43b 100644
--- a/sc/source/core/data/documen2.cxx
+++ b/sc/source/core/data/documen2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documen2.cxx,v $
- * $Revision: 1.75 $
+ * $Revision: 1.72.28.6 $
*
* This file is part of OpenOffice.org.
*
@@ -154,7 +154,6 @@ ScDocument::ScDocument( ScDocumentMode eMode,
pDocOptions( NULL ),
pExtDocOptions( NULL ),
pConsolidateDlgData( NULL ),
- pLoadedSymbolStringCellList( NULL ),
pRecursionHelper( NULL ),
pAutoNameCache( NULL ),
pLookupCacheMapImpl( NULL ),
@@ -195,7 +194,6 @@ ScDocument::ScDocument( ScDocumentMode eMode,
bInLinkUpdate( FALSE ),
bChartListenerCollectionNeedsUpdate( FALSE ),
bHasForcedFormulas( FALSE ),
- bLostData(FALSE),
bInDtorClear( FALSE ),
bExpandRefs( FALSE ),
bDetectiveDirty( FALSE ),
@@ -246,7 +244,9 @@ ScDocument::ScDocument( ScDocumentMode eMode,
pRangeName = new ScRangeName( 4, 4, FALSE, this );
pDBCollection = new ScDBCollection( 4, 4, FALSE, this );
+#if OLD_PIVOT_IMPLEMENTATION
pPivotCollection = new ScPivotCollection(4, 4, this );
+#endif
pSelectionAttr = NULL;
pChartCollection = new ScChartCollection;
apTemporaryChartLock = std::auto_ptr< ScTemporaryChartLock >( new ScTemporaryChartLock(this) );
@@ -413,7 +413,9 @@ ScDocument::~ScDocument()
}
delete pRangeName;
delete pDBCollection;
+#if OLD_PIVOT_IMPLEMENTATION
delete pPivotCollection;
+#endif
delete pSelectionAttr;
apTemporaryChartLock.reset();
delete pChartCollection;
@@ -586,632 +588,6 @@ void ScDocument::ResetClip( ScDocument* pSourceDoc, SCTAB nTab )
}
}
-void lcl_RefreshPivotData( ScPivotCollection* pColl )
-{
- USHORT nCount = pColl->GetCount();
- for (USHORT i=0; i<nCount; i++)
- {
- ScPivot* pPivot = (*pColl)[i];
- if (pPivot->CreateData(TRUE))
- pPivot->ReleaseData();
- }
-}
-
-
-BOOL ScDocument::SymbolStringCellsPending() const
-{
- return pLoadedSymbolStringCellList && pLoadedSymbolStringCellList->Count();
-}
-
-
-List& ScDocument::GetLoadedSymbolStringCellsList()
-{
- if ( !pLoadedSymbolStringCellList )
- pLoadedSymbolStringCellList = new List;
- return *pLoadedSymbolStringCellList;
-}
-
-
-BOOL ScDocument::Load( SvStream& rStream, ScProgress* pProgress )
-{
- bLoadingDone = FALSE;
-
- //----------------------------------------------------
-
- Clear();
- USHORT nOldBufSize = rStream.GetBufferSize();
- rStream.SetBufferSize( 32768 );
-
- // Progress-Bar
-
-// ULONG nCurPos = rStream.Tell();
-// ULONG nEndPos = rStream.Seek( STREAM_SEEK_TO_END );
-// rStream.Seek( nCurPos );
-// ScProgress aProgress( NULL, ScGlobal::GetRscString(STR_LOAD_DOC), nEndPos - nCurPos );
-
- BOOL bError = FALSE;
- USHORT nVersion = 0;
- SCROW nVerMaxRow = MAXROW_30; // 8191, wenn in der Datei nichts steht
- SCTAB nTab = 0;
- USHORT nEnumDummy;
- String aEmptyName;
- String aPageStyle;
- CharSet eOldSet = rStream.GetStreamCharSet();
-
- USHORT nID;
- rStream >> nID;
- if (nID == SCID_DOCUMENT || nID == SCID_NEWDOCUMENT )
- {
- ScReadHeader aHdr( rStream );
- while (aHdr.BytesLeft() && !bError )
- {
- USHORT nSubID;
- rStream >> nSubID;
- switch (nSubID)
- {
- case SCID_DOCFLAGS:
- {
- ScReadHeader aFlagsHdr( rStream );
-
- rStream >> nVersion; // 312 abwaerts
- rStream.ReadByteString( aPageStyle, rStream.GetStreamCharSet() );
- rStream >> bProtected; // Dokument geschuetzt
- String aPass;
- rStream.ReadByteString( aPass, rStream.GetStreamCharSet() );
- if (aPass.Len())
- SvPasswordHelper::GetHashPassword(aProtectPass, aPass);
- if ( aFlagsHdr.BytesLeft() )
- {
- rStream >> nEnumDummy;
- eLanguage = LanguageType( nEnumDummy );
- }
- if ( aFlagsHdr.BytesLeft() )
- rStream >> bAutoCalc;
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- if ( aFlagsHdr.BytesLeft() )
- rStream >> nVisibleTab;
-#endif
- if ( aFlagsHdr.BytesLeft() )
- rStream >> nVersion; // echte Version
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- if ( aFlagsHdr.BytesLeft() )
- rStream >> nVerMaxRow; // sonst auf 8191 lassen
-#endif
-
- nSrcVer = nVersion; // Member
- nSrcMaxRow = nVerMaxRow; // Member
-
- // Fuer Debugging bis hin zur SC 3.0a:
- if( nVersion > 0x0002 && nVersion < SC_NUMFMT )
- {
- bError = TRUE;
- rStream.SetError( SVSTREAM_WRONGVERSION );
- }
-
- // Das obere Byte muss kleiner oder gleich sein
- // (3.1 Dateien mit 8192 Zeilen koennen noch gelesen werden)
-
- if( ( nSrcVer & 0xFF00 ) > ( SC_CURRENT_VERSION & 0xFF00 ) )
- {
- bError = TRUE;
- rStream.SetError( SVSTREAM_WRONGVERSION );
- }
- }
- break;
- case SCID_CHARSET:
- {
- ScReadHeader aSetHdr( rStream );
- BYTE cSet, cGUI; // cGUI is dummy, old GUIType
- rStream >> cGUI >> cSet;
- eSrcSet = (CharSet) cSet;
- rStream.SetStreamCharSet( ::GetSOLoadTextEncoding(
- eSrcSet, (USHORT)rStream.GetVersion() ) );
- }
- break;
- case SCID_LINKUPMODE: // Link Update Mode
- {
- ScReadHeader aSetHdr( rStream );
- BYTE cSet;
- rStream >> cSet;
- eLinkMode=(ScLkUpdMode) cSet;
- }
- break;
- case SCID_TABLE:
- pTab[nTab] = new ScTable(this, nTab, aEmptyName);
- pTab[nTab]->SetPageStyle( aPageStyle );
- pTab[nTab]->Load(rStream,nVersion,pProgress);
- ++nTab;
- break;
- case SCID_DRAWING:
- DBG_ERROR("ScDocument::LoadDrawLayer() no longer supported, binary loading removed (!)");
- break;
- case SCID_DDELINKS:
- LoadDdeLinks(rStream);
- break;
- case SCID_AREALINKS:
- LoadAreaLinks(rStream);
- break;
- case SCID_RANGENAME:
- DBG_ERRORFILE( "REMOVED_BINFILTER SCID_RANGENAME");
- break;
- case SCID_DBAREAS:
- pDBCollection->Load( rStream );
- break;
- case SCID_DATAPILOT:
- GetDPCollection()->LoadNew( rStream );
- break;
- case SCID_PIVOT:
- pPivotCollection->Load( rStream );
- break;
- case SCID_CHARTS:
- pChartCollection->Load( this, rStream );
- break;
- case SCID_COLNAMERANGES:
- xColNameRanges->Load( rStream, nVersion );
- break;
- case SCID_ROWNAMERANGES:
- xRowNameRanges->Load( rStream, nVersion );
- break;
- case SCID_CONDFORMATS:
- if (!pCondFormList)
- pCondFormList = new ScConditionalFormatList;
- pCondFormList->Load( rStream, this );
- break;
- case SCID_VALIDATION:
- if (!pValidationList)
- pValidationList = new ScValidationDataList;
- pValidationList->Load( rStream, this );
- break;
- case SCID_DETOPLIST:
- if (!pDetOpList)
- pDetOpList = new ScDetOpList;
- pDetOpList->Load( rStream );
- break;
- case SCID_NUMFORMAT:
- {
- ScReadHeader aNumHeader(rStream);
- xPoolHelper->GetFormTable()->Load(rStream);
- }
- break;
- case SCID_DOCOPTIONS:
- ImplLoadDocOptions(rStream);
- break;
- case SCID_VIEWOPTIONS:
- ImplLoadViewOptions(rStream);
- break;
- case SCID_PRINTSETUP:
- {
- ScReadHeader aJobHeader(rStream);
- SfxItemSet* pSet = new SfxItemSet( *xPoolHelper->GetDocPool(),
- SID_PRINTER_NOTFOUND_WARN, SID_PRINTER_NOTFOUND_WARN,
- SID_PRINTER_CHANGESTODOC, SID_PRINTER_CHANGESTODOC,
- SID_SCPRINTOPTIONS, SID_SCPRINTOPTIONS,
- NULL );
- SetPrinter( SfxPrinter::Create( rStream, pSet ) );
- }
- break;
- case SCID_CONSOLIDATA:
- if (!pConsolidateDlgData)
- pConsolidateDlgData = new ScConsolidateParam;
- pConsolidateDlgData->Load( rStream );
- break;
- case SCID_CHANGETRACK:
- if ( pChangeTrack )
- pChangeTrack->Clear(); // es kann nur einen geben
- else
- StartChangeTracking();
- pChangeTrack->Load( rStream, nVersion );
- break;
- case SCID_CHGVIEWSET:
- if (!pChangeViewSettings)
- pChangeViewSettings = new ScChangeViewSettings;
- pChangeViewSettings->Load( rStream, nVersion );
- break;
- default:
- {
- DBG_ERROR("unbekannter Sub-Record in ScDocument::Load");
- ScReadHeader aDummyHdr( rStream );
- }
- }
-
- if (rStream.GetError() != SVSTREAM_OK)
- bError = TRUE;
- }
- }
- else
- {
- // Assertion nur, wenn kein Passwort gesetzt ist
- DBG_ASSERT( rStream.GetKey().Len(), "Load: SCID_DOCUMENT nicht gefunden" );
- bError = TRUE;
- }
-
- rStream.SetStreamCharSet( eOldSet );
- rStream.SetBufferSize( nOldBufSize );
-
- if (!bError) // Neuberechnungen
- {
- xPoolHelper->GetStylePool()->UpdateStdNames(); // falls mit Version in anderer Sprache gespeichert
-
- // Zahlformat-Sprache
- // (kann nicht in LoadPool passieren, weil der Numberformatter geladen sein muss)
-
- ScDocumentPool* pPool = xPoolHelper->GetDocPool();
- if ( pPool->GetLoadingVersion() == 0 ) // 0 = Pool-Version bis 3.1
- {
- // in 3.1-Dokumenten gibt es ATTR_LANGUAGE_FORMAT noch nicht
- // darum bei Bedarf zu ATTR_VALUE_FORMAT noch die Sprache dazutun
- // (Bug #37441#)
-
- // harte Attribute:
-
- SvNumberFormatter* pFormatter = xPoolHelper->GetFormTable();
- USHORT nCount = pPool->GetItemCount(ATTR_PATTERN);
- ScPatternAttr* pPattern;
- for (USHORT i=0; i<nCount; i++)
- {
- pPattern = (ScPatternAttr*)pPool->GetItem(ATTR_PATTERN, i);
- if (pPattern)
- ScGlobal::AddLanguage( pPattern->GetItemSet(), *pFormatter );
- }
-
- // Vorlagen:
-
- SfxStyleSheetIterator aIter( xPoolHelper->GetStylePool(), SFX_STYLE_FAMILY_PARA );
- for ( SfxStyleSheetBase* pStyle = aIter.First(); pStyle; pStyle = aIter.Next() )
- ScGlobal::AddLanguage( pStyle->GetItemSet(), *pFormatter );
- }
-
- // change FontItems in styles
- xPoolHelper->GetStylePool()->ConvertFontsAfterLoad();
-
- // Druckbereiche etc.
-
- SfxStyleSheetIterator aIter( xPoolHelper->GetStylePool(), SFX_STYLE_FAMILY_PAGE );
- ScStyleSheet* pStyleSheet = NULL;
-
- nMaxTableNumber = 0;
- for (SCTAB i=0; i<=MAXTAB; i++)
- if (pTab[i])
- {
- // MaxTableNumber ermitteln
-
- nMaxTableNumber = i+1;
-
- // Druckbereiche aus <= 3.00.2 Dokumenten
- // aus den PageStyles holen und jetzt an
- // der Tabelle speichern.
-
- pStyleSheet = (ScStyleSheet*)aIter.Find( pTab[i]->GetPageStyle() );
-
- if ( pStyleSheet )
- {
- SfxItemSet& rSet = pStyleSheet->GetItemSet();
- const ScRangeItem* pPrintAreaItem = NULL;
- const ScRangeItem* pRepeatColItem = NULL;
- const ScRangeItem* pRepeatRowItem = NULL;
-
- rSet.GetItemState( ATTR_PAGE_PRINTAREA, TRUE,
- (const SfxPoolItem**)&pPrintAreaItem );
- rSet.GetItemState( ATTR_PAGE_REPEATCOL, TRUE,
- (const SfxPoolItem**)&pRepeatColItem );
- rSet.GetItemState( ATTR_PAGE_REPEATROW, TRUE,
- (const SfxPoolItem**)&pRepeatRowItem );
-
- if ( pPrintAreaItem ) // Druckbereiche
- {
- if ( !pPrintAreaItem->GetFlags() )
- SetPrintRange( i, pPrintAreaItem->GetRange() );
- rSet.ClearItem( ATTR_PAGE_PRINTAREA );
- }
-
- if ( pRepeatColItem ) // Wiederholungsspalte
- {
- SetRepeatColRange( i, !pRepeatColItem->GetFlags()
- ? &pRepeatColItem->GetRange()
- : (const ScRange *)NULL );
- rSet.ClearItem( ATTR_PAGE_REPEATCOL );
- }
-
- if ( pRepeatRowItem ) // Wiederholungszeile
- {
- SetRepeatRowRange( i, !pRepeatRowItem->GetFlags()
- ? &pRepeatRowItem->GetRange()
- : (const ScRange *)NULL );
- rSet.ClearItem( ATTR_PAGE_REPEATROW );
- }
- }
- }
-
-
- if ( pDPCollection && pDPCollection->GetCount() )
- pPivotCollection->FreeAll();
- else
- {
- lcl_RefreshPivotData( pPivotCollection );
- GetDPCollection()->ConvertOldTables( *pPivotCollection );
- }
- if ( pDPCollection )
- pDPCollection->EnsureNames(); // make sure every table has a name
-
- SetAutoFilterFlags();
- if (pDrawLayer)
- UpdateAllCharts();
-#ifndef PRODUCT
-//2do: wg. #62107
-// ChartListenerCollection speichern/laden, damit nach dem Laden das Update
-// hier einmal eingespart werden kann und somit nicht mehr alle Charts
-// angefasst werden muessen. Die ChartListenerCollection muss dann zum Master
-// der Referenzen werden.
-// static BOOL bShown = 0;
-// if ( !bShown && SOFFICE_FILEFORMAT_NOW > SOFFICE_FILEFORMAT_50 )
-// {
-// bShown = 1;
-// DBG_ERRORFILE( "bei inkompatiblem FileFormat ChartListenerCollection speichern!" );
-// }
-#endif
- UpdateChartListenerCollection();
- if (pDrawLayer)
- RefreshNoteFlags();
- CalcAfterLoad();
- }
-
- if ( pLoadedSymbolStringCellList )
- { // we had symbol string cells, list was cleared by columns, delete it
- delete pLoadedSymbolStringCellList;
- pLoadedSymbolStringCellList = NULL;
- }
-
- //----------------------------------------------------
-
- bLoadingDone = TRUE;
-
- return !bError;
-}
-
-BOOL ScDocument::Save( SvStream& rStream, ScProgress* pProgress ) const
-{
- ((ScDocument*)this)->bLoadingDone = FALSE; // nicht zwischendrin reinpfuschen lassen
-
- ((ScDocument*)this)->bLostData = FALSE; // wird beim Speichern gesetzt
-
- ((ScDocument*)this)->nSrcVer = SC_CURRENT_VERSION;
- ((ScDocument*)this)->nSrcMaxRow = MAXROW;
- if ( rStream.GetVersion() <= SOFFICE_FILEFORMAT_31 )
- {
- // 3.1 Export -> nur 8192 Zeilen schreiben, und kompatible Versionsnummer
-
- ((ScDocument*)this)->nSrcVer = SC_31_EXPORT_VER;
- ((ScDocument*)this)->nSrcMaxRow = MAXROW_30;
- }
- else if ( rStream.GetVersion() <= SOFFICE_FILEFORMAT_40 )
- { // 4.0 Export -> kompatible Versionsnummer
- ((ScDocument*)this)->nSrcVer = SC_40_EXPORT_VER;
- }
-
- USHORT nOldBufSize = rStream.GetBufferSize();
- rStream.SetBufferSize( 32768 );
-
- CharSet eOldSet = rStream.GetStreamCharSet();
- CharSet eStoreCharSet = ::GetSOStoreTextEncoding(
- gsl_getSystemTextEncoding(), (USHORT)rStream.GetVersion() );
- rStream.SetStreamCharSet( eStoreCharSet );
-
-
- // Progress-Bar
-
- long nSavedDocCells = 0;
-// ScProgress aProgress( NULL, ScGlobal::GetRscString( STR_SAVE_DOC ), GetWeightedCount() + 1 );
-
- {
- rStream << (USHORT) SCID_NEWDOCUMENT;
- ScWriteHeader aHdr( rStream );
-
- // Flags
-
- {
- rStream << (USHORT) SCID_DOCFLAGS;
- ScWriteHeader aFlagsHdr( rStream, 18 ); //! ausprobieren
-
- // wg. Bug in 312 ScToken::RelToRelAbs mit DoubleRefs bekommt
- // die 312er immer vorgegaukelt, dass es keine RelRefs gaebe,
- // was auch ok ist, da immer absolut gespeichert wird und
- // SR_RELATIVE nie zur Verwendung kam und nicht kommen darf.
- if ( nSrcVer & 0xFF00 )
- rStream << (USHORT) nSrcVer;
- // hoehere Major-Version darf von 312 nicht geladen werden
- else
- rStream << (USHORT) (SC_RELATIVE_REFS - 1);
-
- // dummy page style (for compatibility)
- rStream.WriteByteString(
- String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(STRING_STANDARD)),
- rStream.GetStreamCharSet() );
- rStream << bProtected; // Dokument geschuetzt
- String aPass;
- //rStream.WriteByteString( aProtectPass, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aPass, rStream.GetStreamCharSet() );
- rStream << (USHORT) eLanguage;
- rStream << bAutoCalc;
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nVisibleTab;
-#endif
-
- // und hier jetzt die echte Versionsnummer
- rStream << (USHORT) nSrcVer;
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nSrcMaxRow; // Zeilenanzahl
-#endif
- }
-
- // Zeichensatz
-
- {
- rStream << (USHORT) SCID_CHARSET;
- ScWriteHeader aSetHdr( rStream, 2 );
- rStream << (BYTE) 0 // dummy, old System::GetGUIType()
- << (BYTE) eStoreCharSet;
- }
-
- // Link Update Mode
-
- if(eLinkMode!=LM_UNKNOWN)
- {
- rStream << (USHORT) SCID_LINKUPMODE;
- ScWriteHeader aSetHdr( rStream, 1 );
- rStream << (BYTE) eLinkMode;
- }
-
- DBG_ERRORFILE( "REMOVED_BINFILTER SCID_RANGENAME");
-
- rStream << (USHORT) SCID_DBAREAS;
- pDBCollection->Store( rStream );
-
- rStream << (USHORT) SCID_DDELINKS;
- SaveDdeLinks( rStream );
-
- rStream << (USHORT) SCID_AREALINKS;
- SaveAreaLinks( rStream );
-
- {
- rStream << (USHORT) SCID_NUMFORMAT;
- ScWriteHeader aNumHeader(rStream);
- xPoolHelper->GetFormTable()->Save(rStream);
- }
-
- if ( xColNameRanges->Count() )
- {
- rStream << (USHORT) SCID_COLNAMERANGES;
- xColNameRanges->Store( rStream );
- }
- if ( xRowNameRanges->Count() )
- {
- rStream << (USHORT) SCID_ROWNAMERANGES;
- xRowNameRanges->Store( rStream );
- }
-
- if (pCondFormList)
- pCondFormList->ResetUsed(); // wird beim Speichern der Tabellen gesetzt
- if (pValidationList)
- pValidationList->ResetUsed(); // wird beim Speichern der Tabellen gesetzt
-
- // Tabellen (Daten)
-
- for (SCTAB i=0; i<=MAXTAB; i++)
- {
- if (pTab[i])
- {
- rStream << (USHORT) SCID_TABLE;
- pTab[i]->Save(rStream, nSavedDocCells, pProgress);
- }
- }
-
- // bedingte Formate / Gueltigkeit
- // beim Speichern der Tabellen ist eingetragen worden,
- // welche Eintraege benutzt werden
-
- if (pCondFormList)
- {
- rStream << (USHORT) SCID_CONDFORMATS;
- pCondFormList->Store(rStream);
- }
- if (pValidationList)
- {
- rStream << (USHORT) SCID_VALIDATION;
- pValidationList->Store(rStream);
- }
-
- // Liste der Detektiv-Operationen (zum Aktualisieren)
- if (pDetOpList)
- {
- rStream << (USHORT) SCID_DETOPLIST;
- pDetOpList->Store(rStream);
- }
-
- // Drawing
- if (pDrawLayer)
- {
- DBG_ERROR("ScDocument::StoreDrawLayer() no longer supported, binary saving removed (!)");
- }
-
- // Collections
-
- // (new) DataPilot collection must be saved before old Pivot collection
- // so old data can be skipped by new office
- // not in 3.0 or 4.0 export to avoid warning messages
-
- if ( nSrcVer > SC_40_EXPORT_VER && pDPCollection && pDPCollection->GetCount() )
- {
- rStream << (USHORT) SCID_DATAPILOT; // new data
- pDPCollection->StoreNew( rStream );
- }
-
- rStream << (USHORT) SCID_PIVOT; // old data
- if ( pDPCollection && pDPCollection->GetCount() )
- pDPCollection->StoreOld( rStream );
- else
- pPivotCollection->Store( rStream ); // not converted or all empty
-
- // Charts werden hier nicht mehr gespeichert, weil
- // jedes Chart seine Daten selber speichert
-
- DBG_ASSERT(!pChartCollection || !pChartCollection->GetCount(),
- "wer hat da ein Chart eingetragen?");
-
- rStream << (USHORT) SCID_DOCOPTIONS;
- ImplSaveDocOptions(rStream);
-
- rStream << (USHORT) SCID_VIEWOPTIONS;
- ImplSaveViewOptions(rStream);
-
- // Job-Setup vom Printer
-
- if (pPrinter)
- {
- rStream << (USHORT) SCID_PRINTSETUP;
- ScWriteHeader aJobHeader(rStream);
-
- ((ScDocument*)this)->GetPrinter()->Store( rStream );
- }
-
- if ( nSrcVer > SC_40_EXPORT_VER ) // Das folgende nicht bei 3.0 oder 4.0 Export...
- {
- if (pConsolidateDlgData) // Einstellungen fuer den Konsolidieren-Dialog
- {
- rStream << (USHORT) SCID_CONSOLIDATA;
- pConsolidateDlgData->Store( rStream );
- }
- if ( pChangeTrack )
- {
- rStream << (USHORT) SCID_CHANGETRACK;
- pChangeTrack->Store( rStream );
- }
- if ( pChangeViewSettings )
- {
- rStream << (USHORT) SCID_CHGVIEWSET;
- pChangeViewSettings->Store( rStream );
- }
- }
- }
-
- rStream.SetStreamCharSet( eOldSet );
- rStream.SetBufferSize( nOldBufSize );
-
- ((ScDocument*)this)->bLoadingDone = TRUE;
-
- return ( rStream.GetError() == SVSTREAM_OK );
-}
-
-void ScDocument::SetLostData()
-{
- bLostData = TRUE;
-}
-
void ScDocument::DeleteNumberFormat( const sal_uInt32* /* pDelKeys */, sal_uInt32 /* nCount */ )
{
/*
@@ -1375,9 +751,11 @@ BOOL ScDocument::MoveTab( SCTAB nOldPos, SCTAB nNewPos )
pDBCollection->UpdateMoveTab( nOldPos, nNewPos );
xColNameRanges->UpdateReference( URM_REORDER, this, aSourceRange, 0,0,nDz );
xRowNameRanges->UpdateReference( URM_REORDER, this, aSourceRange, 0,0,nDz );
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pPivotCollection->UpdateReference( URM_REORDER,
0,0,nOldPos, MAXCOL,MAXROW,nOldPos, 0,0,nDz );
+#endif
if (pDPCollection)
pDPCollection->UpdateReference( URM_REORDER, aSourceRange, 0,0,nDz );
if (pDetOpList)
@@ -1468,9 +846,11 @@ BOOL ScDocument::CopyTab( SCTAB nOldPos, SCTAB nNewPos, const ScMarkData* pOnlyM
pRangeName->UpdateTabRef(nNewPos, 1);
pDBCollection->UpdateReference(
URM_INSDEL, 0,0,nNewPos, MAXCOL,MAXROW,MAXTAB, 0,0,1 );
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pPivotCollection->UpdateReference(
URM_INSDEL, 0,0,nNewPos, MAXCOL,MAXROW,MAXTAB, 0,0,1 );
+#endif
if (pDPCollection)
pDPCollection->UpdateReference( URM_INSDEL, aRange, 0,0,1 );
if (pDetOpList)
@@ -1565,7 +945,6 @@ ULONG ScDocument::TransferTab( ScDocument* pSrcDoc, SCTAB nSrcPos,
if (VALIDTAB(nDestPos) && pTab[nDestPos])
{
pTab[nDestPos]->DeleteArea( 0,0, MAXCOL,MAXROW, IDF_ALL );
-// ClearDrawPage(nDestPos);
}
else
bValid = FALSE;
diff --git a/sc/source/core/data/documen3.cxx b/sc/source/core/data/documen3.cxx
index ecc63f2c18e0..03c8a848de9e 100644
--- a/sc/source/core/data/documen3.cxx
+++ b/sc/source/core/data/documen3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documen3.cxx,v $
- * $Revision: 1.42 $
+ * $Revision: 1.41.28.4 $
*
* This file is part of OpenOffice.org.
*
@@ -95,14 +95,14 @@ void ScDocument::SetRangeName( ScRangeName* pNewRangeName )
pRangeName = pNewRangeName;
}
-ScRangeData* ScDocument::GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab,
- BOOL bStartOnly) const
-{
- if ( pRangeName )
- return pRangeName->GetRangeAtCursor( ScAddress( nCol, nRow, nTab ), bStartOnly );
- else
- return NULL;
-}
+//UNUSED2008-05 ScRangeData* ScDocument::GetRangeAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab,
+//UNUSED2008-05 BOOL bStartOnly) const
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pRangeName )
+//UNUSED2008-05 return pRangeName->GetRangeAtCursor( ScAddress( nCol, nRow, nTab ), bStartOnly );
+//UNUSED2008-05 else
+//UNUSED2008-05 return NULL;
+//UNUSED2008-05 }
ScRangeData* ScDocument::GetRangeAtBlock( const ScRange& rBlock, String* pName ) const
{
@@ -225,6 +225,7 @@ ScDPObject* ScDocument::GetDPAtBlock( const ScRange & rBlock ) const
return NULL;
}
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* ScDocument::GetPivotCollection() const
{
return pPivotCollection;
@@ -262,19 +263,13 @@ ScPivot* ScDocument::GetPivotAtCursor(SCCOL nCol, SCROW nRow, SCTAB nTab) const
else
return NULL;
}
+#endif
ScChartCollection* ScDocument::GetChartCollection() const
{
return pChartCollection;
}
-void ScDocument::SetChartCollection(ScChartCollection* pNewChartCollection)
-{
- if (pChartCollection)
- delete pChartCollection;
- pChartCollection = pNewChartCollection;
-}
-
void ScDocument::StopTemporaryChartLock()
{
if( apTemporaryChartLock.get() )
@@ -831,8 +826,10 @@ void ScDocument::UpdateReference( UpdateRefMode eUpdateRefMode,
xRowNameRanges->UpdateReference( eUpdateRefMode, this, aRange, nDx, nDy, nDz );
pDBCollection->UpdateReference( eUpdateRefMode, nCol1, nRow1, nTab1, nCol2, nRow2, nTab2, nDx, nDy, nDz );
pRangeName->UpdateReference( eUpdateRefMode, aRange, nDx, nDy, nDz );
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pPivotCollection->UpdateReference( eUpdateRefMode, nCol1, nRow1, nTab1, nCol2, nRow2, nTab2, nDx, nDy, nDz );
+#endif
if ( pDPCollection )
pDPCollection->UpdateReference( eUpdateRefMode, aRange, nDx, nDy, nDz );
UpdateChartRef( eUpdateRefMode, nCol1, nRow1, nTab1, nCol2, nRow2, nTab2, nDx, nDy, nDz );
@@ -922,7 +919,9 @@ void ScDocument::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY )
//! UpdateChartRef
pRangeName->UpdateGrow( rArea, nGrowX, nGrowY );
+#if OLD_PIVOT_IMPLEMENTATION
pPivotCollection->UpdateGrow( rArea, nGrowX, nGrowY );
+#endif
for (SCTAB i=0; i<=MAXTAB && pTab[i]; i++)
pTab[i]->UpdateGrow( rArea, nGrowX, nGrowY );
diff --git a/sc/source/core/data/documen4.cxx b/sc/source/core/data/documen4.cxx
index 8cb6aeefcf28..466c2044c798 100644
--- a/sc/source/core/data/documen4.cxx
+++ b/sc/source/core/data/documen4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documen4.cxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.22.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -288,14 +288,6 @@ void ScDocument::InsertTableOp(const ScTabOpParam& rParam, // Mehrfachopera
pTab[i]->PutCell( j, k, aRefCell.Clone( this, ScAddress( j, k, i ) ) );
}
-USHORT ScDocument::GetErrorData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
-{
- if (ValidTab(nTab) && pTab[nTab])
- return pTab[nTab]->GetErrorData( nCol, nRow );
- else
- return 0;
-}
-
BOOL ScDocument::GetNextSpellingCell(SCCOL& nCol, SCROW& nRow, SCTAB nTab,
BOOL bInSel, const ScMarkData& rMark) const
{
@@ -656,26 +648,6 @@ void ScDocument::ConditionalChanged( ULONG nKey )
}
}
-void ScDocument::SetConditionalUsed( ULONG nKey ) // aus dem Speichern der Tabellen
-{
- if ( nKey && pCondFormList ) // nKey==0 -> noop
- {
- ScConditionalFormat* pForm = pCondFormList->GetFormat( nKey );
- if (pForm)
- pForm->SetUsed(TRUE);
- }
-}
-
-void ScDocument::SetValidationUsed( ULONG nKey ) // aus dem Speichern der Tabellen
-{
- if ( nKey && pValidationList ) // nKey==0 -> noop
- {
- ScValidationData* pData = pValidationList->GetData( nKey );
- if (pData)
- pData->SetUsed(TRUE);
- }
-}
-
void ScDocument::SetCondFormList(ScConditionalFormatList* pNew)
{
if (pCondFormList)
diff --git a/sc/source/core/data/documen8.cxx b/sc/source/core/data/documen8.cxx
index 3d19ef20ec73..24b862abfe28 100644
--- a/sc/source/core/data/documen8.cxx
+++ b/sc/source/core/data/documen8.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documen8.cxx,v $
- * $Revision: 1.52 $
+ * $Revision: 1.52.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -103,55 +103,6 @@
// STATIC DATA -----------------------------------------------------------
-
-
-//------------------------------------------------------------------------
-
-void ScDocument::ImplLoadDocOptions( SvStream& rStream )
-{
- USHORT d,m,y;
-
- DBG_ASSERT( pDocOptions, "No DocOptions to load! :-(" );
-
- pDocOptions->Load( rStream );
-
- if ( pDocOptions->GetStdPrecision() > 20 ) //!!! ist 20 als Maximum konstant ???
- {
- DBG_ERROR( "Document options corrupted. Setting to defaults." );
- pDocOptions->ResetDocOptions();
- }
-
- pDocOptions->GetDate( d,m,y );
- SvNumberFormatter* pFormatter = xPoolHelper->GetFormTable();
- pFormatter->ChangeNullDate( d,m,y );
- pFormatter->ChangeStandardPrec( pDocOptions->GetStdPrecision() );
- pFormatter->SetYear2000( pDocOptions->GetYear2000() );
-}
-
-//------------------------------------------------------------------------
-
-void ScDocument::ImplLoadViewOptions( SvStream& rStream )
-{
- DBG_ASSERT( pViewOptions, "No ViewOptions to load! :-(" );
- rStream >> *pViewOptions;
-}
-
-//------------------------------------------------------------------------
-
-void ScDocument::ImplSaveDocOptions( SvStream& rStream ) const
-{
- DBG_ASSERT( pDocOptions, "No DocOptions to save! :-(" );
- pDocOptions->Save( rStream );
-}
-
-//------------------------------------------------------------------------
-
-void ScDocument::ImplSaveViewOptions( SvStream& rStream ) const
-{
- DBG_ASSERT( pViewOptions, "No ViewOptions to save! :-(" );
- rStream << *pViewOptions;
-}
-
//------------------------------------------------------------------------
void ScDocument::ImplCreateOptions()
@@ -1442,93 +1393,6 @@ void ScDocument::UpdateRefAreaLinks( UpdateRefMode eUpdateRefMode,
}
}
-void ScDocument::SaveAreaLinks(SvStream& /* rStream */) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- const ::sfx2::SvBaseLinks& rLinks = pLinkManager->GetLinks();
- USHORT nCount = rLinks.Count();
-
- // erstmal zaehlen...
-
- USHORT nAreaCount = 0;
- USHORT i;
- for (i=0; i<nCount; i++)
- if ((*rLinks[i])->ISA(ScAreaLink)) // rLinks[i] = Pointer auf Ref
- ++nAreaCount;
-
- // Header
-
- ScMultipleWriteHeader aHdr( rStream );
- rStream << nAreaCount;
-
- // Links speichern
-
- for (i=0; i<nCount; i++)
- {
- ::sfx2::SvBaseLink* pBase = *rLinks[i];
- if (pBase->ISA(ScAreaLink))
- {
- ScAreaLink* pLink = (ScAreaLink*)pBase;
-
- aHdr.StartEntry();
-
- rStream.WriteByteString( pLink->GetFile(), rStream.GetStreamCharSet() );
- rStream.WriteByteString( pLink->GetFilter(), rStream.GetStreamCharSet() );
- rStream.WriteByteString( pLink->GetSource(), rStream.GetStreamCharSet() );
- rStream << pLink->GetDestArea(); // ScRange
- rStream.WriteByteString( pLink->GetOptions(), rStream.GetStreamCharSet() );
- // filter options starting from 336
-
- aHdr.EndEntry();
- }
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-void ScDocument::LoadAreaLinks(SvStream& rStream)
-{
- ScMultipleReadHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- if (!pShell)
- {
- DBG_ERROR("AreaLinks koennen nicht ohne Shell geladen werden");
- return;
- }
-
- String aFile, aFilter, aOptions, aSource;
- ScRange aDestArea;
-
- USHORT nCount;
- rStream >> nCount;
- for (USHORT i=0; i<nCount; i++)
- {
- aHdr.StartEntry();
-
- rStream.ReadByteString( aFile, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aFilter, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aSource, rStream.GetStreamCharSet() );
- rStream >> aDestArea;
- if ( aHdr.BytesLeft() ) // Filter-Optionen ab 336
- rStream.ReadByteString( aOptions, rStream.GetStreamCharSet() );
- else
- aOptions.Erase();
- aHdr.EndEntry();
-
- ScAreaLink* pLink = new ScAreaLink( pShell, aFile, aFilter, aOptions,
- aSource, aDestArea.aStart, 0 );
- pLink->SetInCreate( TRUE );
- pLink->SetDestArea( aDestArea );
- pLinkManager->InsertFileLink( *pLink, OBJECT_CLIENT_FILE, aFile, &aFilter, &aSource );
- pLink->Update();
- pLink->SetInCreate( FALSE );
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
//------------------------------------------------------------------------
// TimerDelays etc.
@@ -1550,14 +1414,6 @@ BOOL ScDocument::CheckMacroWarn()
return TRUE;
}
-BOOL ScDocument::HasMacroCallsAfterLoad()
-{
- // not used any longer
-
- DBG_ERROR("obsolete method HasMacroCallsAfterLoad called");
- return FALSE;
-}
-
//------------------------------------------------------------------------
SfxBindings* ScDocument::GetViewBindings()
diff --git a/sc/source/core/data/documen9.cxx b/sc/source/core/data/documen9.cxx
index d1bd1fc7a629..ac6917e1c994 100644
--- a/sc/source/core/data/documen9.cxx
+++ b/sc/source/core/data/documen9.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: documen9.cxx,v $
- * $Revision: 1.43 $
+ * $Revision: 1.42.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -79,13 +79,6 @@ using namespace ::com::sun::star;
// -----------------------------------------------------------------------
-void ScDocument::SetLinkManager( SvxLinkManager* pNew )
-{
- pLinkManager = pNew;
- if (pDrawLayer)
- pDrawLayer->SetLinkManager( pNew );
-}
-
SfxBroadcaster* ScDocument::GetDrawBroadcaster()
{
return pDrawLayer;
@@ -218,20 +211,6 @@ void ScDocument::TransferDrawPage(ScDocument* pSrcDoc, SCTAB nSrcPos, SCTAB nDes
}
}
-void ScDocument::ClearDrawPage(SCTAB nTab)
-{
- if (pDrawLayer)
- {
- SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
- if (pPage)
- pPage->Clear();
- else
- {
- DBG_ERROR("ScDocument::DeleteDrawObjects: pPage ???");
- }
- }
-}
-
void ScDocument::InitDrawLayer( SfxObjectShell* pDocShell )
{
if (pDocShell && !pShell)
@@ -381,19 +360,6 @@ void ScDocument::DeleteObjectsInArea( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCR
pDrawLayer->DeleteObjectsInArea( nTab, nCol1, nRow1, nCol2, nRow2 );
}
-void ScDocument::DeleteObjects( SCTAB nTab )
-{
- if (!pDrawLayer)
- return;
-
- if ( ValidTab(nTab) && pTab[nTab] )
- pDrawLayer->DeleteObjects( nTab );
- else
- {
- DBG_ERROR("DeleteObjects: falsche Tabelle");
- }
-}
-
void ScDocument::DeleteObjectsInSelection( const ScMarkData& rMark )
{
if (!pDrawLayer)
@@ -446,30 +412,6 @@ BOOL ScDocument::HasOLEObjectsInArea( const ScRange& rRange, const ScMarkData* p
}
-void ScDocument::StopAnimations( SCTAB nTab, Window* /* pWin */ )
-{
- if (!pDrawLayer)
- return;
- SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
- DBG_ASSERT(pPage,"Page ?");
- if (!pPage)
- return;
-
- SdrObjListIter aIter( *pPage, IM_FLAT );
- SdrObject* pObject = aIter.Next();
- while (pObject)
- {
- if (pObject->ISA(SdrGrafObj))
- {
- SdrGrafObj* pGrafObj = (SdrGrafObj*)pObject;
- if ( pGrafObj->IsAnimated() )
-//! pGrafObj->StopAnimation( pWin );
- pGrafObj->StopAnimation();
- }
- pObject = aIter.Next();
- }
-}
-
void ScDocument::StartAnimations( SCTAB nTab, Window* pWin )
{
if (!pDrawLayer)
@@ -523,57 +465,57 @@ BOOL ScDocument::HasNoteObject( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
return bFound;
}
-void ScDocument::RefreshNoteFlags()
-{
- if (!pDrawLayer)
- return;
-
- BOOL bAnyIntObj = FALSE;
- SCTAB nTab;
- ScPostIt aNote(this);
- for (nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++)
- {
- SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
- DBG_ASSERT(pPage,"Page ?");
- if (pPage)
- {
- SdrObjListIter aIter( *pPage, IM_FLAT );
- SdrObject* pObject = aIter.Next();
- while (pObject)
- {
- if ( pObject->GetLayer() == SC_LAYER_INTERN )
- {
- bAnyIntObj = TRUE; // for all internal objects, including detective
-
- if ( pObject->ISA( SdrCaptionObj ) )
- {
- ScDrawObjData* pData = ScDrawLayer::GetObjData( pObject );
- if ( pData )
- {
- if ( GetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote))
- if ( !aNote.IsShown() )
- {
- aNote.SetShown(TRUE);
- SetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote);
- }
- }
- }
- }
- pObject = aIter.Next();
- }
- }
- }
-
- if (bAnyIntObj)
- {
- // update attributes for all note objects and the colors of detective objects
- // (we don't know with which settings the file was created)
-
- ScDetectiveFunc aFunc( this, 0 );
- aFunc.UpdateAllComments();
- aFunc.UpdateAllArrowColors();
- }
-}
+//UNUSED2008-05 void ScDocument::RefreshNoteFlags()
+//UNUSED2008-05 {
+//UNUSED2008-05 if (!pDrawLayer)
+//UNUSED2008-05 return;
+//UNUSED2008-05
+//UNUSED2008-05 BOOL bAnyIntObj = FALSE;
+//UNUSED2008-05 SCTAB nTab;
+//UNUSED2008-05 ScPostIt aNote(this);
+//UNUSED2008-05 for (nTab=0; nTab<=MAXTAB && pTab[nTab]; nTab++)
+//UNUSED2008-05 {
+//UNUSED2008-05 SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
+//UNUSED2008-05 DBG_ASSERT(pPage,"Page ?");
+//UNUSED2008-05 if (pPage)
+//UNUSED2008-05 {
+//UNUSED2008-05 SdrObjListIter aIter( *pPage, IM_FLAT );
+//UNUSED2008-05 SdrObject* pObject = aIter.Next();
+//UNUSED2008-05 while (pObject)
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pObject->GetLayer() == SC_LAYER_INTERN )
+//UNUSED2008-05 {
+//UNUSED2008-05 bAnyIntObj = TRUE; // for all internal objects, including detective
+//UNUSED2008-05
+//UNUSED2008-05 if ( pObject->ISA( SdrCaptionObj ) )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScDrawObjData* pData = ScDrawLayer::GetObjData( pObject );
+//UNUSED2008-05 if ( pData )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( GetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote))
+//UNUSED2008-05 if ( !aNote.IsShown() )
+//UNUSED2008-05 {
+//UNUSED2008-05 aNote.SetShown(TRUE);
+//UNUSED2008-05 SetNote( pData->aStt.Col(), pData->aStt.Row(), nTab, aNote);
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 pObject = aIter.Next();
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 if (bAnyIntObj)
+//UNUSED2008-05 {
+//UNUSED2008-05 // update attributes for all note objects and the colors of detective objects
+//UNUSED2008-05 // (we don't know with which settings the file was created)
+//UNUSED2008-05
+//UNUSED2008-05 ScDetectiveFunc aFunc( this, 0 );
+//UNUSED2008-05 aFunc.UpdateAllComments();
+//UNUSED2008-05 aFunc.UpdateAllArrowColors();
+//UNUSED2008-05 }
+//UNUSED2008-05 }
BOOL ScDocument::HasBackgroundDraw( SCTAB nTab, const Rectangle& rMMRect )
{
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index 5a9f7f717da9..65d4ea9e5a5e 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: document.cxx,v $
- * $Revision: 1.90 $
+ * $Revision: 1.88.22.5 $
*
* This file is part of OpenOffice.org.
*
@@ -298,9 +298,11 @@ BOOL ScDocument::InsertTab( SCTAB nPos, const String& rName,
pRangeName->UpdateTabRef( nPos, 1 );
pDBCollection->UpdateReference(
URM_INSDEL, 0,0,nPos, MAXCOL,MAXROW,MAXTAB, 0,0,1 );
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pPivotCollection->UpdateReference(
URM_INSDEL, 0,0,nPos, MAXCOL,MAXROW,MAXTAB, 0,0,1 );
+#endif
if (pDPCollection)
pDPCollection->UpdateReference( URM_INSDEL, aRange, 0,0,1 );
if (pDetOpList)
@@ -380,9 +382,11 @@ BOOL ScDocument::DeleteTab( SCTAB nTab, ScDocument* pRefUndoDoc )
pRangeName->UpdateTabRef( nTab, 2 );
pDBCollection->UpdateReference(
URM_INSDEL, 0,0,nTab, MAXCOL,MAXROW,MAXTAB, 0,0,-1 );
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pPivotCollection->UpdateReference(
URM_INSDEL, 0,0,nTab, MAXCOL,MAXROW,MAXTAB, 0,0,-1 );
+#endif
if (pDPCollection)
pDPCollection->UpdateReference( URM_INSDEL, aRange, 0,0,-1 );
if (pDetOpList)
@@ -2393,13 +2397,6 @@ BOOL ScDocument::HasSelectionData( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
}
-void ScDocument::SetDirtyVar()
-{
- for (SCTAB i=0; i<=MAXTAB; i++)
- if (pTab[i]) pTab[i]->SetDirtyVar();
-}
-
-
void ScDocument::SetDirty()
{
BOOL bOldAutoCalc = GetAutoCalc();
@@ -2533,15 +2530,6 @@ void ScDocument::CalcAfterLoad()
}
-void ScDocument::GetErrCode( SCCOL nCol, SCROW nRow, SCTAB nTab, USHORT& rErrCode )
-{
- if ( VALIDTAB(nTab) && pTab[nTab] )
- rErrCode = pTab[nTab]->GetErrCode( nCol, nRow );
- else
- rErrCode = 0;
-}
-
-
USHORT ScDocument::GetErrCode( const ScAddress& rPos ) const
{
SCTAB nTab = rPos.Tab();
@@ -2874,13 +2862,6 @@ const ScBitMaskCompressedArray< SCROW, BYTE> & ScDocument::GetRowFlagsArray(
}
-SCCOL ScDocument::GetLastFlaggedCol( SCTAB nTab ) const
-{
- if ( ValidTab(nTab) && pTab[nTab] )
- return pTab[nTab]->GetLastFlaggedCol();
- return 0;
-}
-
SCROW ScDocument::GetLastFlaggedRow( SCTAB nTab ) const
{
if ( ValidTab(nTab) && pTab[nTab] )
@@ -3274,21 +3255,6 @@ BOOL ScDocument::IsStyleSheetUsed( const ScStyleSheet& rStyle, BOOL bGatherAllSt
}
-
-BOOL ScDocument::ApplyFlags( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark,
- INT16 nFlags )
-{
- BOOL bChanged = FALSE;
- for (SCTAB i=0; i <= MAXTAB; i++)
- if (pTab[i])
- if (rMark.GetTableSelect(i))
- bChanged |= pTab[i]->ApplyFlags( nStartCol, nStartRow, nEndCol, nEndRow, nFlags );
- return bChanged;
-}
-
-
BOOL ScDocument::ApplyFlagsTab( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, INT16 nFlags )
{
@@ -3301,20 +3267,6 @@ BOOL ScDocument::ApplyFlagsTab( SCCOL nStartCol, SCROW nStartRow,
}
-BOOL ScDocument::RemoveFlags( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark,
- INT16 nFlags )
-{
- BOOL bChanged = FALSE;
- for (SCTAB i=0; i <= MAXTAB; i++)
- if (pTab[i])
- if (rMark.GetTableSelect(i))
- bChanged |= pTab[i]->RemoveFlags( nStartCol, nStartRow, nEndCol, nEndRow, nFlags );
- return bChanged;
-}
-
-
BOOL ScDocument::RemoveFlagsTab( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow, SCTAB nTab, INT16 nFlags )
{
@@ -3524,22 +3476,6 @@ void ScDocument::FindMaxRotCol( SCTAB nTab, RowInfo* pRowInfo, SCSIZE nArrCount,
}
}
-BOOL ScDocument::HasLines( const ScRange& rRange, Rectangle& rSizes ) const
-{
- SCTAB nTab1 = rRange.aStart.Tab();
- SCTAB nTab2 = rRange.aEnd.Tab();
- PutInOrder( nTab1, nTab2 );
- BOOL bFound = FALSE;
- rSizes = Rectangle(0,0,0,0);
-
- for (SCTAB i=nTab1; i<=nTab2; i++)
- if (pTab[i])
- if (pTab[i]->HasLines( rRange, rSizes ))
- bFound = TRUE;
-
- return bFound;
-}
-
void ScDocument::GetBorderLines( SCCOL nCol, SCROW nRow, SCTAB nTab,
const SvxBorderLine** ppLeft, const SvxBorderLine** ppTop,
const SvxBorderLine** ppRight, const SvxBorderLine** ppBottom ) const
@@ -3651,25 +3587,6 @@ BOOL ScDocument::IsBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
}
-BOOL ScDocument::IsSelectedBlockEditable( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const
-{
- // import into read-only document is possible
- if ( !bImportingXML && !mbChangeReadOnlyEnabled && pShell && pShell->IsReadOnly() )
- return FALSE;
-
- BOOL bOk = TRUE;
- for (SCTAB i=0; i<=MAXTAB && bOk; i++)
- if (pTab[i])
- if (rMark.GetTableSelect(i))
- if (!pTab[i]->IsBlockEditable( nStartCol, nStartRow, nEndCol, nEndRow ))
- bOk = FALSE;
-
- return bOk;
-}
-
-
BOOL ScDocument::IsSelectionEditable( const ScMarkData& rMark,
BOOL* pOnlyNotBecauseOfMatrix /* = NULL */ ) const
{
@@ -3720,67 +3637,6 @@ BOOL ScDocument::IsSelectionEditable( const ScMarkData& rMark,
}
-BOOL ScDocument::IsSelectionOrBlockEditable( SCTAB nTab, SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const
-{
- // import into read-only document is possible
- if ( !bImportingXML && !mbChangeReadOnlyEnabled && pShell && pShell->IsReadOnly() )
- return FALSE;
-
- BOOL bOk = TRUE;
- if (VALIDTAB(nTab))
- {
- if (pTab[nTab])
- {
- if (rMark.IsMarked())
- {
- ScRange aRange;
- rMark.GetMarkArea(aRange);
- bOk = pTab[nTab]->IsBlockEditable( aRange.aStart.Col(), aRange.aStart.Row(),
- aRange.aEnd.Col(), aRange.aEnd.Row() );
- }
-
- if (bOk && rMark.IsMultiMarked())
- bOk = pTab[nTab]->IsSelectionEditable( rMark );
- if ( bOk && !rMark.IsMarked() && !rMark.IsMultiMarked() )
- bOk = pTab[nTab]->IsBlockEditable( nStartCol, nStartRow, nEndCol, nEndRow );
- return bOk;
- }
- }
- DBG_ERROR("Falsche Tabellennummer");
- return FALSE;
-}
-
-
-BOOL ScDocument::IsSelectedOrBlockEditable( SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const ScMarkData& rMark ) const
-{
- // import into read-only document is possible
- if ( !bImportingXML && !mbChangeReadOnlyEnabled && pShell && pShell->IsReadOnly() )
- return FALSE;
-
- BOOL bOk = TRUE;
- for (SCTAB i=0; i<=MAXTAB && bOk; i++)
- if (pTab[i])
- if (rMark.GetTableSelect(i))
- {
- if (rMark.IsMarked())
- {
- ScRange aRange;
- rMark.GetMarkArea(aRange);
- bOk = pTab[i]->IsBlockEditable( aRange.aStart.Col(), aRange.aStart.Row(),
- aRange.aEnd.Col(), aRange.aEnd.Row() );
- }
- if ( bOk && !rMark.IsMarked() )
- bOk = pTab[i]->IsBlockEditable( nStartCol, nStartRow, nEndCol, nEndRow );
- }
-
- return bOk;
-}
-
-
BOOL ScDocument::HasSelectedBlockMatrixFragment( SCCOL nStartCol, SCROW nStartRow,
SCCOL nEndCol, SCROW nEndRow,
const ScMarkData& rMark ) const
@@ -4074,36 +3930,22 @@ BOOL ScDocument::RefreshAutoFilter( SCCOL nStartCol, SCROW nStartRow,
}
-void ScDocument::SetAutoFilterFlags()
-{
- USHORT nCount = pDBCollection->GetCount();
- for (USHORT i=0; i<nCount; i++)
- {
- ScDBData* pData = (*pDBCollection)[i];
- SCTAB nDBTab;
- SCCOL nDBStartCol;
- SCROW nDBStartRow;
- SCCOL nDBEndCol;
- SCROW nDBEndRow;
- pData->GetArea( nDBTab, nDBStartCol,nDBStartRow, nDBEndCol,nDBEndRow );
- pData->SetAutoFilter( HasAttrib( nDBStartCol,nDBStartRow,nDBTab,
- nDBEndCol,nDBStartRow,nDBTab, HASATTR_AUTOFILTER ) );
- }
-}
-
-
-BOOL ScDocument::IsOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
-{
- const ScMergeFlagAttr* pAttr = (const ScMergeFlagAttr*)
- GetAttr( nCol, nRow, nTab, ATTR_MERGE_FLAG );
- if (pAttr)
- return pAttr->IsOverlapped();
- else
- {
- DBG_ERROR("Overlapped: Attr==0");
- return FALSE;
- }
-}
+//UNUSED2008-05 void ScDocument::SetAutoFilterFlags()
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT nCount = pDBCollection->GetCount();
+//UNUSED2008-05 for (USHORT i=0; i<nCount; i++)
+//UNUSED2008-05 {
+//UNUSED2008-05 ScDBData* pData = (*pDBCollection)[i];
+//UNUSED2008-05 SCTAB nDBTab;
+//UNUSED2008-05 SCCOL nDBStartCol;
+//UNUSED2008-05 SCROW nDBStartRow;
+//UNUSED2008-05 SCCOL nDBEndCol;
+//UNUSED2008-05 SCROW nDBEndRow;
+//UNUSED2008-05 pData->GetArea( nDBTab, nDBStartCol,nDBStartRow, nDBEndCol,nDBEndRow );
+//UNUSED2008-05 pData->SetAutoFilter( HasAttrib( nDBStartCol,nDBStartRow,nDBTab,
+//UNUSED2008-05 nDBEndCol,nDBStartRow,nDBTab, HASATTR_AUTOFILTER ) );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
BOOL ScDocument::IsHorOverlapped( SCCOL nCol, SCROW nRow, SCTAB nTab ) const
@@ -4330,234 +4172,6 @@ void ScDocument::StylesToNames()
}
-void lcl_RemoveMergeFromStyles( ScStyleSheetPool* pStylePool )
-{
- pStylePool->SetSearchMask( SFX_STYLE_FAMILY_ALL );
-
- USHORT nCount = pStylePool->Count();
- for (USHORT i=0; i<nCount; i++)
- {
- // in alten Versionen wurden statt SFXSTYLEBIT_USERDEF alle Bits gesetzt
- SfxStyleSheetBase* pStyle = (*pStylePool)[i];
- if ( pStyle->GetMask() & SFXSTYLEBIT_READONLY )
- pStyle->SetMask( pStyle->GetMask() & ~SFXSTYLEBIT_READONLY );
-
- SfxItemSet& rSet = pStyle->GetItemSet();
- rSet.ClearItem( ATTR_MERGE );
- rSet.ClearItem( ATTR_MERGE_FLAG );
-
- // Das SvxBoxInfoItem wurde bis zur 358 falsch geladen, so dass
- // Seitenvorlagen falsche Items mit bDist = FALSE enthalten koennen
- if ( pStyle->GetFamily() == SFX_STYLE_FAMILY_PAGE )
- {
- const SvxBoxInfoItem& rPageInfo = (const SvxBoxInfoItem&)rSet.Get(ATTR_BORDER_INNER);
- if ( !rPageInfo.IsDist() )
- {
- DBG_WARNING("altes SvxBoxInfoItem muss korrigiert werden");
- SvxBoxInfoItem aNew( rPageInfo );
- aNew.SetDist( TRUE );
- rSet.Put( aNew );
- }
- // Das gilt fuer alle Hdr/Ftr-SetItems, darum kann das SetItem auch
- // direkt im Pool geaendert werden (const weggecastet):
- SfxItemSet& rHdrSet = ((SvxSetItem&)rSet.Get(ATTR_PAGE_HEADERSET)).GetItemSet();
- const SvxBoxInfoItem& rHdrInfo = (const SvxBoxInfoItem&)rHdrSet.Get(ATTR_BORDER_INNER);
- if ( !rHdrInfo.IsDist() )
- {
- DBG_WARNING("altes SvxBoxInfoItem muss korrigiert werden");
- SvxBoxInfoItem aNew( rHdrInfo );
- aNew.SetDist( TRUE );
- rHdrSet.Put( aNew );
- }
- SfxItemSet& rFtrSet = ((SvxSetItem&)rSet.Get(ATTR_PAGE_FOOTERSET)).GetItemSet();
- const SvxBoxInfoItem& rFtrInfo = (const SvxBoxInfoItem&)rFtrSet.Get(ATTR_BORDER_INNER);
- if ( !rFtrInfo.IsDist() )
- {
- DBG_WARNING("altes SvxBoxInfoItem muss korrigiert werden");
- SvxBoxInfoItem aNew( rFtrInfo );
- aNew.SetDist( TRUE );
- rFtrSet.Put( aNew );
- }
- const SfxUInt16Item& rScaleItem = (const SfxUInt16Item&)rSet.Get(ATTR_PAGE_SCALE);
- USHORT nScale = rScaleItem.GetValue();
- //! Extra-Konstanten fuer Seitenformat?
- // 0 ist erlaubt (wird gesetzt bei Scale To Pages)
- if ( nScale != 0 && ( nScale < MINZOOM || nScale > MAXZOOM ) )
- {
- // konnte anscheinend mal irgendwie kaputtgehen (#34508#)
- DBG_WARNING("kaputter Zoom im Seitenformat muss korrigiert werden");
- rSet.Put( SfxUInt16Item( ATTR_PAGE_SCALE, 100 ) );
- }
- }
- }
-}
-
-
-BOOL ScDocument::LoadPool( SvStream& rStream, BOOL /* bLoadRefCounts */ )
-{
- // bLoadingDone wird beim Laden des StylePools (ScStyleSheet::GetItemSet) gebraucht
- bLoadingDone = FALSE;
-
- USHORT nOldBufSize = rStream.GetBufferSize();
- rStream.SetBufferSize( 32768 );
- CharSet eOldSet = rStream.GetStreamCharSet();
-
- SetPrinter( NULL );
-
- ScPatternAttr::pDoc = this;
-
- if ( xPoolHelper.isValid() && !bIsClip )
- xPoolHelper->SourceDocumentGone();
-
- xPoolHelper = new ScPoolHelper( this );
-
- xPoolHelper->GetDocPool()->SetFileFormatVersion( (USHORT)rStream.GetVersion() );
- BOOL bStylesFound = FALSE;
-
- BOOL bRet = FALSE;
- USHORT nID;
- rStream >> nID;
- if (nID == SCID_POOLS || nID == SCID_NEWPOOLS)
- {
- ScReadHeader aHdr( rStream );
- while (aHdr.BytesLeft())
- {
- USHORT nSubID;
- rStream >> nSubID;
- ScReadHeader aSubHdr( rStream );
- switch (nSubID)
- {
- case SCID_CHARSET:
- {
- BYTE cSet, cGUI; // cGUI is dummy, old GUIType
- rStream >> cGUI >> cSet;
- eSrcSet = (CharSet) cSet;
- rStream.SetStreamCharSet( ::GetSOLoadTextEncoding(
- eSrcSet, (USHORT)rStream.GetVersion() ) );
- }
- break;
- case SCID_DOCPOOL:
- xPoolHelper->GetDocPool()->Load( rStream );
- break;
- case SCID_STYLEPOOL:
- {
- // StylePool konvertiert beim Laden selber
- CharSet eOld = rStream.GetStreamCharSet();
- rStream.SetStreamCharSet( gsl_getSystemTextEncoding() ); //! ???
- xPoolHelper->GetStylePool()->Load( rStream );
- rStream.SetStreamCharSet( eOld );
- lcl_RemoveMergeFromStyles( xPoolHelper->GetStylePool() ); // setzt auch ReadOnly zurueck
- bStylesFound = TRUE;
- }
- break;
- case SCID_EDITPOOL :
- xPoolHelper->GetEditPool()->Load( rStream );
- break;
- default:
- DBG_ERROR("unbekannter Sub-Record in ScDocument::LoadPool");
- }
- }
-
- UpdStlShtPtrsFrmNms();
- bRet = TRUE;
- }
- else
- {
- DBG_ERROR("LoadPool: SCID_POOLS nicht gefunden");
- }
-
- if (!bStylesFound)
- xPoolHelper->GetStylePool()->CreateStandardStyles();
-
- rStream.SetStreamCharSet( eOldSet );
- rStream.SetBufferSize( nOldBufSize );
-
- bLoadingDone = TRUE;
-
- // Das Uno-Objekt merkt sich einen Pointer auf den NumberFormatter
- // -> mitteilen, dass der alte Pointer ungueltig geworden ist
- BroadcastUno( ScPointerChangedHint(SC_POINTERCHANGED_NUMFMT) );
-
- return bRet;
-}
-
-
-BOOL ScDocument::SavePool( SvStream& rStream ) const
-{
- xPoolHelper->GetDocPool()->SetFileFormatVersion( (USHORT)rStream.GetVersion() );
-
- USHORT nOldBufSize = rStream.GetBufferSize();
- rStream.SetBufferSize( 32768 );
- CharSet eOldSet = rStream.GetStreamCharSet();
- CharSet eStoreCharSet = ::GetSOStoreTextEncoding(
- gsl_getSystemTextEncoding(), (USHORT)rStream.GetVersion() );
- rStream.SetStreamCharSet( eStoreCharSet );
-
- // Compress-Mode fuer Grafiken in Brush-Items (Hintergrund im Seitenformat)
-
- USHORT nComprMode = rStream.GetCompressMode() & ~(COMPRESSMODE_ZBITMAP | COMPRESSMODE_NATIVE);
- BOOL bNative = FALSE;
- BOOL bCompr = FALSE;
-
- if ( rStream.GetVersion() >= SOFFICE_FILEFORMAT_40 && bCompr )
- nComprMode |= COMPRESSMODE_ZBITMAP; // komprimiert ab 4.0
- if ( rStream.GetVersion() > SOFFICE_FILEFORMAT_40 && bNative )
- nComprMode |= COMPRESSMODE_NATIVE; // Originalformat ab 5.0
- rStream.SetCompressMode( nComprMode );
-
- {
- rStream << (USHORT) SCID_NEWPOOLS;
- ScWriteHeader aHdr( rStream );
-
- {
- rStream << (USHORT) SCID_CHARSET;
- ScWriteHeader aSetHdr( rStream, 2 );
- rStream << (BYTE) 0 // dummy, old System::GetGUIType()
- << (BYTE) eStoreCharSet;
- }
-
- // Force the default style's name to be "Standard" for all languages in the file.
- // This is needed for versions up to 5.1, to find the default pattern's style in
- // the UpdateStyleSheet call.
- // #89078# this has to be set for the DocPool save, too, so the default style name
- // is adjusted for the patterns, or a wrong style would be used if other styles
- // match the default style's name after CharacterSet conversion.
-
- String aFileStdName = String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM(STRING_STANDARD));
- if ( aFileStdName != ScGlobal::GetRscString(STR_STYLENAME_STANDARD) )
- xPoolHelper->GetStylePool()->SetForceStdName( &aFileStdName );
-
- {
- rStream << (USHORT) SCID_DOCPOOL;
- ScWriteHeader aDocPoolHdr( rStream );
- xPoolHelper->GetDocPool()->Store( rStream );
- }
-
- {
- rStream << (USHORT) SCID_STYLEPOOL;
- ScWriteHeader aStylePoolHdr( rStream );
- xPoolHelper->GetStylePool()->SetSearchMask( SFX_STYLE_FAMILY_ALL );
-
- xPoolHelper->GetStylePool()->Store( rStream, FALSE );
- }
-
- xPoolHelper->GetStylePool()->SetForceStdName( NULL );
-
- if ( rStream.GetVersion() >= SOFFICE_FILEFORMAT_50 )
- {
- rStream << (USHORT) SCID_EDITPOOL;
- ScWriteHeader aEditPoolHdr( rStream );
- xPoolHelper->GetEditPool()->SetFileFormatVersion( (USHORT)rStream.GetVersion() );
- xPoolHelper->GetEditPool()->Store( rStream );
- }
- }
-
- rStream.SetStreamCharSet( eOldSet );
- rStream.SetBufferSize( nOldBufSize );
- return TRUE;
-}
-
-
ULONG ScDocument::GetCellCount() const
{
ULONG nCellCount = 0L;
@@ -4640,14 +4254,6 @@ void ScDocument::SetRepeatArea( SCTAB nTab, SCCOL nStartCol, SCCOL nEndCol, SCRO
}
-void ScDocument::UpdatePageBreaks()
-{
- for (SCTAB i=0; i<=MAXTAB; i++)
- if (pTab[i])
- pTab[i]->UpdatePageBreaks( NULL );
-}
-
-
void ScDocument::UpdatePageBreaks( SCTAB nTab, const ScRange* pUserArea )
{
if ( ValidTab(nTab) && pTab[nTab] )
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 4c96621ef61e..a2d6365a0336 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dpobject.cxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.23.30.5 $
*
* This file is part of OpenOffice.org.
*
@@ -1675,226 +1675,6 @@ SCSIZE lcl_FillOldFields( PivotField* pFields,
return nOutCount;
}
-void lcl_SaveOldFieldArr( SvStream& /* rStream */,
- const uno::Reference<sheet::XDimensionsSupplier>& /* xSource */,
- USHORT /* nOrient */, SCCOL /* nColAdd */, BOOL /* bAddData */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- // PIVOT_MAXFIELD = max. number in old files
- DBG_ASSERT( nOrient != sheet::DataPilotFieldOrientation_PAGE, "lcl_SaveOldFieldArr - do not try to save page fields" );
- PivotField aFields[PIVOT_MAXFIELD];
- SCSIZE nOutCount = lcl_FillOldFields( aFields, xSource, nOrient, nColAdd, bAddData );
-
- rStream << nOutCount;
- for (USHORT i=0; i<nOutCount; i++)
- {
- rStream << (BYTE) 0x00
- << aFields[i].nCol
- << aFields[i].nFuncMask
- << aFields[i].nFuncCount;
- }
-#endif
-}
-
-BOOL ScDPObject::StoreNew( SvStream& /* rStream */, ScMultipleWriteHeader& /* rHdr */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- // save all data
-
- rHdr.StartEntry();
-
- if ( pImpDesc )
- {
- rStream << (BYTE) SC_DP_SOURCE_DATABASE;
- rStream.WriteByteString( pImpDesc->aDBName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( pImpDesc->aObject, rStream.GetStreamCharSet() );
- rStream << pImpDesc->nType; // USHORT
- rStream << pImpDesc->bNative;
- }
- else if ( pServDesc )
- {
- rStream << (BYTE) SC_DP_SOURCE_SERVICE;
- rStream.WriteByteString( pServDesc->aServiceName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( pServDesc->aParSource, rStream.GetStreamCharSet() );
- rStream.WriteByteString( pServDesc->aParName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( pServDesc->aParUser, rStream.GetStreamCharSet() );
- rStream.WriteByteString( pServDesc->aParPass, rStream.GetStreamCharSet() );
- }
- else
- {
- if (!pSheetDesc)
- {
- DBG_ERROR("no source descriptor");
- ((ScDPObject*)this)->pSheetDesc = new ScSheetSourceDesc; // dummy defaults
- }
-
- rStream << (BYTE) SC_DP_SOURCE_SHEET;
- rStream << pSheetDesc->aSourceRange;
- pSheetDesc->aQueryParam.Store( rStream );
- }
-
- rStream << aOutRange;
-
- DBG_ASSERT(pSaveData, "ScDPObject::StoreNew no SaveData");
- pSaveData->Store( rStream );
-
- // additional data starting from 561b
- rStream.WriteByteString( aTableName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aTableTag, rStream.GetStreamCharSet() );
-
- rHdr.EndEntry();
- return TRUE;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-BOOL ScDPObject::LoadNew(SvStream& /* rStream */, ScMultipleReadHeader& /* rHdr */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rHdr.StartEntry();
-
- DELETEZ( pImpDesc );
- DELETEZ( pSheetDesc );
- DELETEZ( pServDesc );
-
- BYTE nType;
- rStream >> nType;
- switch (nType)
- {
- case SC_DP_SOURCE_DATABASE:
- pImpDesc = new ScImportSourceDesc;
- rStream.ReadByteString( pImpDesc->aDBName, rStream.GetStreamCharSet() );
- rStream.ReadByteString( pImpDesc->aObject, rStream.GetStreamCharSet() );
- rStream >> pImpDesc->nType; // USHORT
- rStream >> pImpDesc->bNative;
- break;
-
- case SC_DP_SOURCE_SHEET:
- pSheetDesc = new ScSheetSourceDesc;
- rStream >> pSheetDesc->aSourceRange;
- pSheetDesc->aQueryParam.Load( rStream );
- break;
-
- case SC_DP_SOURCE_SERVICE:
- {
- String aServiceName, aParSource, aParName, aParUser, aParPass;
- rStream.ReadByteString( aServiceName, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aParSource, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aParName, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aParUser, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aParPass, rStream.GetStreamCharSet() );
- pServDesc = new ScDPServiceDesc( aServiceName,
- aParSource, aParName, aParUser, aParPass );
- }
- break;
-
- default:
- DBG_ERROR("unknown source type");
- }
-
- rStream >> aOutRange;
-
- SetSaveData(ScDPSaveData());
- pSaveData->Load( rStream );
-
- if (rHdr.BytesLeft()) // additional data starting from 561b
- {
- rStream.ReadByteString( aTableName, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aTableTag, rStream.GetStreamCharSet() );
- }
-
- rHdr.EndEntry();
- return TRUE;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-BOOL ScDPObject::StoreOld( SvStream& rStream, ScMultipleWriteHeader& rHdr ) const
-{
- // write compatible data for office 5.1 and below
-
- DBG_ASSERT( pSheetDesc, "StoreOld: !pSheetDesc" );
- ScRange aStoreRange;
- ScQueryParam aStoreQuery;
- if (pSheetDesc)
- {
- aStoreRange = pSheetDesc->aSourceRange;
- aStoreQuery = pSheetDesc->aQueryParam;
- }
-
- ((ScDPObject*)this)->CreateObjects(); // xSource is needed for field numbers
-
- rHdr.StartEntry();
-
- rStream << (BOOL) TRUE; // bHasHeader
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << aStoreRange.aStart.Col();
- rStream << aStoreRange.aStart.Row();
- rStream << aStoreRange.aEnd.Col();
- rStream << aStoreRange.aEnd.Row();
- rStream << aStoreRange.aStart.Tab();
-
- //! make sure aOutRange is initialized
-
- rStream << aOutRange.aStart.Col();
- rStream << aOutRange.aStart.Row();
- rStream << aOutRange.aEnd.Col();
- rStream << aOutRange.aEnd.Row();
- rStream << aOutRange.aStart.Tab();
-#endif
-
- BOOL bAddData = ( lcl_GetDataGetOrientation( xSource ) == sheet::DataPilotFieldOrientation_HIDDEN );
-
- lcl_SaveOldFieldArr( rStream, xSource, sheet::DataPilotFieldOrientation_ROW, aStoreRange.aStart.Col(), bAddData );
- lcl_SaveOldFieldArr( rStream, xSource, sheet::DataPilotFieldOrientation_COLUMN, aStoreRange.aStart.Col(), FALSE );
- lcl_SaveOldFieldArr( rStream, xSource, sheet::DataPilotFieldOrientation_DATA, aStoreRange.aStart.Col(), FALSE );
-
- aStoreQuery.Store( rStream );
-
- BOOL bColumnGrand = TRUE;
- BOOL bRowGrand = TRUE;
- BOOL bIgnoreEmpty = FALSE;
- BOOL bRepeatIfEmpty = FALSE;
-
- uno::Reference<beans::XPropertySet> xProp( xSource, uno::UNO_QUERY );
- if (xProp.is())
- {
- bColumnGrand = ScUnoHelpFunctions::GetBoolProperty( xProp,
- rtl::OUString::createFromAscii(DP_PROP_COLUMNGRAND), TRUE );
- bRowGrand = ScUnoHelpFunctions::GetBoolProperty( xProp,
- rtl::OUString::createFromAscii(DP_PROP_ROWGRAND), TRUE );
-
- // following properties may be missing for external sources
- bIgnoreEmpty = ScUnoHelpFunctions::GetBoolProperty( xProp,
- rtl::OUString::createFromAscii(DP_PROP_IGNOREEMPTY) );
- bRepeatIfEmpty = ScUnoHelpFunctions::GetBoolProperty( xProp,
- rtl::OUString::createFromAscii(DP_PROP_REPEATIFEMPTY) );
- }
-
- rStream << bIgnoreEmpty; // bIgnoreEmpty
- rStream << bRepeatIfEmpty; // bDetectCat
-
- rStream << bColumnGrand; // bMakeTotalCol
- rStream << bRowGrand; // bMakeTotalRow
-
- if( rStream.GetVersion() > SOFFICE_FILEFORMAT_40 )
- {
- rStream.WriteByteString( aTableName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aTableTag, rStream.GetStreamCharSet() );
- rStream << (USHORT)0; // nColNameCount
- }
-
- rHdr.EndEntry();
- return TRUE;
-}
-
BOOL ScDPObject::FillOldParam(ScPivotParam& rParam, BOOL bForFile) const
{
((ScDPObject*)this)->CreateObjects(); // xSource is needed for field numbers
@@ -2337,6 +2117,7 @@ void ScDPObject::ConvertOrientation( ScDPSaveData& rSaveData,
}
}
+#if OLD_PIVOT_IMPLEMENTATION
void ScDPObject::InitFromOldPivot( const ScPivot& rOld, ScDocument* pDocP, BOOL bSetSource )
{
ScDPSaveData aSaveData;
@@ -2378,6 +2159,7 @@ void ScDPObject::InitFromOldPivot( const ScPivot& rOld, ScDocument* pDocP, BOOL
aTableName = rOld.GetName();
aTableTag = rOld.GetTag();
}
+#endif
// -----------------------------------------------------------------------
@@ -2521,82 +2303,6 @@ DataObject* ScDPCollection::Clone() const
return new ScDPCollection(*this);
}
-BOOL ScDPCollection::StoreOld( SvStream& rStream ) const
-{
- BOOL bSuccess = TRUE;
-
- USHORT nSheetCount = 0;
- USHORT i;
- for (i=0; i<nCount; i++)
- if ( ((const ScDPObject*)At(i))->IsSheetData() )
- ++nSheetCount;
-
- ScMultipleWriteHeader aHdr( rStream );
-
- rStream << nSheetCount; // only tables from sheet data
-
- for (i=0; i<nCount && bSuccess; i++)
- {
- const ScDPObject* pObj = (const ScDPObject*)At(i);
- if ( pObj->IsSheetData() )
- bSuccess = pObj->StoreOld( rStream, aHdr );
- }
-
- return bSuccess;
-}
-
-BOOL ScDPCollection::StoreNew( SvStream& rStream ) const
-{
- BOOL bSuccess = TRUE;
-
- ScMultipleWriteHeader aHdr( rStream );
-
- rStream << (long)SC_DP_VERSION_CURRENT;
- rStream << (long)nCount;
-
- for (USHORT i=0; i<nCount && bSuccess; i++)
- bSuccess = ((const ScDPObject*)At(i))->StoreNew( rStream, aHdr );
-
- return bSuccess;
-}
-
-BOOL ScDPCollection::LoadNew( SvStream& rStream )
-{
- BOOL bSuccess = TRUE;
-
- FreeAll();
- ScMultipleReadHeader aHdr( rStream );
-
- long nVer;
- rStream >> nVer;
-
- // check for all supported versions here..
-
- if ( nVer != SC_DP_VERSION_CURRENT )
- {
- DBG_ERROR("skipping unknown version of data pilot obejct");
- if ( rStream.GetError() == SVSTREAM_OK )
- rStream.SetError( SCWARN_IMPORT_INFOLOST );
- return FALSE;
- }
-
- long nNewCount;
- rStream >> nNewCount;
- for (long i=0; i<nNewCount; i++)
- {
- ScDPObject* pObj = new ScDPObject( pDoc );
- if ( pObj->LoadNew(rStream, aHdr) )
- {
- pObj->SetAlive( TRUE );
- Insert( pObj );
- }
- else
- delete pObj;
- }
-
- return bSuccess;
-}
-
void ScDPCollection::DeleteOnTab( SCTAB nTab )
{
USHORT nPos = 0;
@@ -2694,16 +2400,17 @@ String ScDPCollection::CreateNewName( USHORT nMin ) const
return String(); // should not happen
}
-void ScDPCollection::EnsureNames()
-{
- for (USHORT i=0; i<nCount; i++)
- if (!((const ScDPObject*)At(i))->GetName().Len())
- ((ScDPObject*)At(i))->SetName( CreateNewName() );
-}
+//UNUSED2008-05 void ScDPCollection::EnsureNames()
+//UNUSED2008-05 {
+//UNUSED2008-05 for (USHORT i=0; i<nCount; i++)
+//UNUSED2008-05 if (!((const ScDPObject*)At(i))->GetName().Len())
+//UNUSED2008-05 ((ScDPObject*)At(i))->SetName( CreateNewName() );
+//UNUSED2008-05 }
//------------------------------------------------------------------------
// convert old pivot tables into new datapilot tables
+#if OLD_PIVOT_IMPLEMENTATION
void ScDPCollection::ConvertOldTables( ScPivotCollection& rOldColl )
{
// convert old pivot tables into new datapilot tables
@@ -2718,6 +2425,7 @@ void ScDPCollection::ConvertOldTables( ScPivotCollection& rOldColl )
}
rOldColl.FreeAll();
}
+#endif
diff --git a/sc/source/core/data/dpoutput.cxx b/sc/source/core/data/dpoutput.cxx
index c330c382fc98..8b6cf6292ed5 100644
--- a/sc/source/core/data/dpoutput.cxx
+++ b/sc/source/core/data/dpoutput.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dpoutput.cxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.17.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -185,15 +185,6 @@ void lcl_SetFrame( ScDocument* pDoc, SCTAB nTab,
pDoc->ApplyFrameAreaTab( ScRange( nCol1, nRow1, nTab, nCol2, nRow2, nTab ), &aBox, &aBoxInfo );
}
-void lcl_AttrArea( ScDocument* pDoc, SCTAB nTab,
- SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2,
- const SfxPoolItem& rItem )
-{
- ScPatternAttr aPattern( pDoc->GetPool() );
- aPattern.GetItemSet().Put( rItem );
- pDoc->ApplyPatternAreaTab( nCol1,nRow1, nCol2,nRow2, nTab, aPattern );
-}
-
// -----------------------------------------------------------------------
void lcl_FillNumberFormats( UINT32*& rFormats, long& rCount,
@@ -630,7 +621,6 @@ void ScDPOutput::HeaderCell( SCCOL nCol, SCROW nRow, SCTAB nTab,
//! limit frames to horizontal or vertical?
if (bColHeader)
{
-// lcl_AttrArea( pDoc,nTab, nCol,nMemberStartRow+(SCROW)nLevel, nCol,nTabEndRow, aItem );
lcl_SetFrame( pDoc,nTab, nCol,nMemberStartRow+(SCROW)nLevel, nCol,nTabEndRow, 20 );
lcl_SetStyleById( pDoc,nTab, nCol,nMemberStartRow+(SCROW)nLevel, nCol,nDataStartRow-1,
STR_PIVOT_STYLE_TITLE );
@@ -639,7 +629,6 @@ void ScDPOutput::HeaderCell( SCCOL nCol, SCROW nRow, SCTAB nTab,
}
else
{
-// lcl_AttrArea( pDoc,nTab, nMemberStartCol+(SCCOL)nLevel,nRow, nTabEndCol,nRow, aItem );
lcl_SetFrame( pDoc,nTab, nMemberStartCol+(SCCOL)nLevel,nRow, nTabEndCol,nRow, 20 );
lcl_SetStyleById( pDoc,nTab, nMemberStartCol+(SCCOL)nLevel,nRow, nDataStartCol-1,nRow,
STR_PIVOT_STYLE_TITLE );
diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx
index 0591b78fabb4..56db9b094d2a 100644
--- a/sc/source/core/data/dpsave.cxx
+++ b/sc/source/core/data/dpsave.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dpsave.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -493,12 +493,6 @@ BOOL ScDPSaveDimension::HasLayoutName() const
return ( pLayoutName != NULL );
}
-void ScDPSaveDimension::ResetLayoutName()
-{
- delete pLayoutName;
- pLayoutName = NULL;
-}
-
void ScDPSaveDimension::SetLayoutName(const String* pName)
{
delete pLayoutName;
@@ -1196,48 +1190,6 @@ void ScDPSaveData::WriteToSource( const uno::Reference<sheet::XDimensionsSupplie
}
}
-void ScDPSaveData::Store( SvStream& rStream ) const
-{
- //! multi-header for individual entries
-
- long nCount = aDimList.Count();
- rStream << nCount;
- for (long i=0; i<nCount; i++)
- {
- const ScDPSaveDimension* pDim = (const ScDPSaveDimension*)aDimList.GetObject(i);
- pDim->Store( rStream );
- }
-
- rStream << nColumnGrandMode;
- rStream << nRowGrandMode;
- rStream << nIgnoreEmptyMode;
- rStream << nRepeatEmptyMode;
-
- rStream << (USHORT) 0; // nExtra
-}
-
-void ScDPSaveData::Load( SvStream& rStream )
-{
- //! multi-header for individual entries
-
- DBG_ASSERT( aDimList.Count()==0, "ScDPSaveData::Load not empty" );
-
- long nNewCount;
- rStream >> nNewCount;
- for (long i=0; i<nNewCount; i++)
- {
- ScDPSaveDimension* pNew = new ScDPSaveDimension( rStream );
- aDimList.Insert( pNew, LIST_APPEND );
- }
-
- rStream >> nColumnGrandMode;
- rStream >> nRowGrandMode;
- rStream >> nIgnoreEmptyMode;
- rStream >> nRepeatEmptyMode;
-
- lcl_SkipExtra( rStream ); // reads at least 1 USHORT
-}
-
BOOL ScDPSaveData::IsEmpty() const
{
long nCount = aDimList.Count();
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index 7f9ffd15d256..d1c5e6ac6361 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drwlayer.cxx,v $
- * $Revision: 1.55 $
+ * $Revision: 1.55.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1830,11 +1830,6 @@ void ScDrawLayer::EnsureGraphicNames()
}
}
-ULONG ScDrawLayer::GetDefTextHeight() const
-{
- return nDefTextHgt; // protected in SdrModel
-}
-
void ScDrawLayer::SetAnchor( SdrObject* pObj, ScAnchorType eType )
{
// Ein an der Seite verankertes Objekt zeichnet sich durch eine Anker-Pos
diff --git a/sc/source/core/data/global.cxx b/sc/source/core/data/global.cxx
index 168ffef15ccd..ab86890a6363 100644
--- a/sc/source/core/data/global.cxx
+++ b/sc/source/core/data/global.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: global.cxx,v $
- * $Revision: 1.56 $
+ * $Revision: 1.55.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1067,11 +1067,6 @@ void ScGlobal::AddLanguage( SfxItemSet& rSet, SvNumberFormatter& rFormatter )
ScFuncDesc aDefaultFuncDesc;
-const ScFuncDesc* ScFormulaUtil::GetDefaultFuncDesc()
-{
- return &aDefaultFuncDesc;
-}
-
BOOL ScFormulaUtil::GetNextFunc( const String& rFormula,
BOOL bBack,
xub_StrLen& rFStart, // Ein- und Ausgabe
diff --git a/sc/source/core/data/global2.cxx b/sc/source/core/data/global2.cxx
index 75939c227690..f05a72d863f5 100644
--- a/sc/source/core/data/global2.cxx
+++ b/sc/source/core/data/global2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: global2.cxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.23.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -230,37 +230,6 @@ BOOL ScQueryEntry::operator==( const ScQueryEntry& r ) const
//! pSearchParam und pSearchText nicht vergleichen
}
-void ScQueryEntry::Load( SvStream& /* rStream */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- BYTE cOp, cConnect;
- rStream >> bDoQuery
- >> bQueryByString
- >> cOp
- >> cConnect
- >> nField
- >> nVal;
- rStream.ReadByteString( *pStr, rStream.GetStreamCharSet() );
- eOp = (ScQueryOp) cOp;
- eConnect = (ScQueryConnect) cConnect;
-#endif
-}
-
-void ScQueryEntry::Store( SvStream& /* rStream */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << bDoQuery
- << bQueryByString
- << (BYTE) eOp
- << (BYTE) eConnect
- << nField
- << nVal;
- rStream.WriteByteString( *pStr, rStream.GetStreamCharSet() );
-#endif
-}
-
utl::TextSearch* ScQueryEntry::GetSearchTextPtr( BOOL bCaseSens )
{
if ( !pSearchParam )
@@ -505,76 +474,6 @@ void ScQueryParam::FillInExcelSyntax(String& aCellStr, SCSIZE nIndex)
}
//------------------------------------------------------------------------
-
-void ScQueryParam::Load( SvStream& rStream ) // z.B. fuer Pivot-Tabelle
-{
- // bDestPers wird nicht geladen/gespeichert
-
- ScReadHeader aHdr( rStream );
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> nCol1
- >> nRow1
- >> nCol2
- >> nRow2
- >> nDestTab
- >> nDestCol
- >> nDestRow
- >> bHasHeader
- >> bInplace
- >> bCaseSens
- >> bRegExp
- >> bDuplicate
- >> bByRow;
-#endif
-
- Resize( MAXQUERY );
-
- for (USHORT i=0; i<MAXQUERY; i++)
- pEntries[i].Load(rStream);
-}
-
-//------------------------------------------------------------------------
-
-void ScQueryParam::Store( SvStream& rStream ) const // z.B. fuer Pivot-Tabelle
-{
- // bDestPers wird nicht geladen/gespeichert
-
- ScWriteHeader aHdr( rStream );
-
- DBG_ASSERT( nEntryCount <= MAXQUERY || !pEntries[MAXQUERY].bDoQuery,
- "zuviele Eintraege bei ScQueryParam::Store" );
-
-
- if ( nEntryCount < MAXQUERY )
- {
- DBG_ERROR("ScQueryParam::Store - zuwenig Eintraege");
- ((ScQueryParam*)this)->Resize( MAXQUERY );
- }
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nCol1
- << nRow1
- << nCol2
- << nRow2
- << nDestTab
- << nDestCol
- << nDestRow
- << bHasHeader
- << bInplace
- << bCaseSens
- << bRegExp
- << bDuplicate
- << bByRow;
-#endif
-
- for (USHORT i=0; i<MAXQUERY; i++)
- pEntries[i].Store(rStream);
-}
-
-//------------------------------------------------------------------------
// struct ScSubTotalParam:
ScSubTotalParam::ScSubTotalParam()
@@ -893,47 +792,6 @@ void __EXPORT ScConsolidateParam::SetAreas( ScArea* const* ppAreas, USHORT nCoun
}
}
-void ScConsolidateParam::Load( SvStream& rStream )
-{
- ClearDataAreas();
-
- ScReadHeader aHdr( rStream );
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- BYTE nByte;
- rStream >> nCol >> nRow >> nTab
- >> bByCol >> bByRow >> bReferenceData >> nByte;
- eFunction = (ScSubTotalFunc) nByte;
-
- rStream >> nDataAreaCount;
- if ( nDataAreaCount )
- {
- ppDataAreas = new ScArea*[nDataAreaCount];
- for ( USHORT i=0; i<nDataAreaCount; i++ )
- {
- ppDataAreas[i] = new ScArea();
- rStream >> *ppDataAreas[i];
- }
- }
-#endif
-}
-
-void ScConsolidateParam::Store( SvStream& rStream ) const
-{
- ScWriteHeader aHdr( rStream, 12+10*nDataAreaCount );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- rStream << nCol << nRow << nTab
- << bByCol << bByRow << bReferenceData << (BYTE) eFunction;
-
- rStream << nDataAreaCount;
- for (USHORT i=0; i<nDataAreaCount; i++)
- rStream << *ppDataAreas[i];
-#endif
-}
-
// -----------------------------------------------------------------------
PivotField::PivotField( SCsCOL nNewCol, USHORT nNewFuncMask ) :
diff --git a/sc/source/core/data/markarr.cxx b/sc/source/core/data/markarr.cxx
index ac5bca6bdf77..f5855cb4424b 100644
--- a/sc/source/core/data/markarr.cxx
+++ b/sc/source/core/data/markarr.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: markarr.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -126,11 +126,6 @@ BOOL ScMarkArray::GetMark( SCROW nRow ) const
//------------------------------------------------------------------------
-void ScMarkArray::SetMark( SCROW nRow, BOOL bMarked )
-{
- SetMarkArea( nRow, nRow, bMarked );
-}
-
void ScMarkArray::SetMarkArea( SCROW nStartRow, SCROW nEndRow, BOOL bMarked )
{
if (ValidRow(nStartRow) && ValidRow(nEndRow))
@@ -316,35 +311,6 @@ BOOL ScMarkArray::HasOneMark( SCROW& rStartRow, SCROW& rEndRow ) const
return bRet;
}
-void ScMarkArray::SwapCol(ScMarkArray& rMarkArray)
-{
- SCSIZE nTemp = rMarkArray.nCount;
- rMarkArray.nCount = nCount;
- nCount = nTemp;
-
- nTemp = rMarkArray.nLimit;
- rMarkArray.nLimit = nLimit;
- nLimit = nTemp;
-
- ScMarkEntry* pTemp = rMarkArray.pData;
- rMarkArray.pData = pData;
- pData = pTemp;
-}
-
-void ScMarkArray::MoveTo(SCROW nStartRow, SCROW nEndRow, ScMarkArray& rMarkArray)
-{
- SCROW nStart = nStartRow;
- for (SCSIZE i = 0; i < nCount; i++)
- {
- if ((pData[i].nRow >= nStartRow) && ((i==0) ? TRUE : pData[i-1].nRow < nEndRow))
- {
- rMarkArray.SetMarkArea(nStart, Min(pData[i].nRow,nEndRow), pData[i].bMarked);
- }
- nStart = Max((SCROW)nStart, (SCROW)(pData[i].nRow + 1) );
- }
- DeleteArea(nStartRow, nEndRow);
-}
-
void ScMarkArray::CopyMarksTo( ScMarkArray& rDestMarkArray ) const
{
delete[] rDestMarkArray.pData;
diff --git a/sc/source/core/data/olinetab.cxx b/sc/source/core/data/olinetab.cxx
index 4f88407398e4..d4a083bb8cad 100644
--- a/sc/source/core/data/olinetab.cxx
+++ b/sc/source/core/data/olinetab.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: olinetab.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -64,36 +64,6 @@ ScOutlineEntry::ScOutlineEntry( const ScOutlineEntry& rEntry ) :
{
}
-ScOutlineEntry::ScOutlineEntry( SvStream& /* rStream */, ScMultipleReadHeader& rHdr )
-{
- rHdr.StartEntry();
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- rStream >> nStart;
- rStream >> nSize;
- rStream >> bHidden;
- rStream >> bVisible;
-
-#endif
- rHdr.EndEntry();
-}
-
-void ScOutlineEntry::Store( SvStream& /* rStream */, ScMultipleWriteHeader& rHdr )
-{
- rHdr.StartEntry();
-
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << nStart;
- rStream << nSize;
- rStream << bHidden;
- rStream << bVisible;
-
-#endif
- rHdr.EndEntry();
-}
-
DataObject* ScOutlineEntry::Clone() const
{
return new ScOutlineEntry( *this );
@@ -714,37 +684,6 @@ void ScOutlineArray::RemoveAll()
nDepth = 0;
}
-void ScOutlineArray::Load( SvStream& rStream )
-{
- ScMultipleReadHeader aHdr( rStream );
-
- rStream >> nDepth;
- for (USHORT nLevel=0; nLevel<nDepth; nLevel++)
- {
- USHORT nCount;
- rStream >> nCount;
- for (USHORT nIndex=0; nIndex<nCount; nIndex++)
- {
- ScOutlineEntry* pEntry = new ScOutlineEntry( rStream, aHdr );
- aCollections[nLevel].Insert( pEntry );
- }
- }
-}
-
-void ScOutlineArray::Store( SvStream& rStream )
-{
- ScMultipleWriteHeader aHdr( rStream );
-
- rStream << nDepth;
- for (USHORT nLevel=0; nLevel<nDepth; nLevel++)
- {
- USHORT nCount = aCollections[nLevel].GetCount();
- rStream << nCount;
- for (USHORT nIndex=0; nIndex<nCount; nIndex++)
- ((ScOutlineEntry*) aCollections[nLevel].At(nIndex))->Store( rStream, aHdr );
- }
-}
-
//------------------------------------------------------------------------
ScOutlineTable::ScOutlineTable()
@@ -787,20 +726,6 @@ BOOL ScOutlineTable::DeleteRow( SCROW nStartRow, SCSIZE nSize )
return aRowOutline.DeleteSpace( nStartRow, nSize );
}
-void ScOutlineTable::Load( SvStream& rStream )
-{
- DBG_ASSERT( aColOutline.GetDepth()==0 && aRowOutline.GetDepth()==0,
- "Load auf nicht leere ScOutlineTable" );
- aColOutline.Load( rStream );
- aRowOutline.Load( rStream );
-}
-
-void ScOutlineTable::Store( SvStream& rStream )
-{
- aColOutline.Store( rStream );
- aRowOutline.Store( rStream );
-}
-
//------------------------------------------------------------------------
ScSubOutlineIterator::ScSubOutlineIterator( ScOutlineArray* pOutlineArray ) :
diff --git a/sc/source/core/data/patattr.cxx b/sc/source/core/data/patattr.cxx
index 15a61972c726..aa75938777b2 100644
--- a/sc/source/core/data/patattr.cxx
+++ b/sc/source/core/data/patattr.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: patattr.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.34.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1212,15 +1212,15 @@ BOOL ScPatternAttr::IsSymbolFont() const
return FALSE;
}
-FontToSubsFontConverter ScPatternAttr::GetSubsFontConverter( ULONG nFlags ) const
-{
- const SfxPoolItem* pItem;
- if( GetItemSet().GetItemState( ATTR_FONT, TRUE, &pItem ) == SFX_ITEM_SET )
- return CreateFontToSubsFontConverter(
- ((const SvxFontItem*) pItem)->GetFamilyName(), nFlags );
- else
- return 0;
-}
+//UNUSED2008-05 FontToSubsFontConverter ScPatternAttr::GetSubsFontConverter( ULONG nFlags ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 const SfxPoolItem* pItem;
+//UNUSED2008-05 if( GetItemSet().GetItemState( ATTR_FONT, TRUE, &pItem ) == SFX_ITEM_SET )
+//UNUSED2008-05 return CreateFontToSubsFontConverter(
+//UNUSED2008-05 ((const SvxFontItem*) pItem)->GetFamilyName(), nFlags );
+//UNUSED2008-05 else
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
ULONG ScPatternAttr::GetNumberFormat( SvNumberFormatter* pFormatter ) const
diff --git a/sc/source/core/data/pivot.cxx b/sc/source/core/data/pivot.cxx
index 68eb923f06f6..3c645de3d223 100644
--- a/sc/source/core/data/pivot.cxx
+++ b/sc/source/core/data/pivot.cxx
@@ -34,7 +34,7 @@
// -----------------------------------------------------------------------
-
+#if OLD_PIVOT_IMPLEMENTATION
#ifdef _MSC_VER
#pragma optimize("",off)
#endif
@@ -2024,5 +2024,5 @@ SCROW ScPivot::GetCategoryRow( SCCOL nCol, SCROW nRow )
return nRow;
}
-
+#endif
diff --git a/sc/source/core/data/pivot2.cxx b/sc/source/core/data/pivot2.cxx
index 863c3fbe1791..483a2d0f8aeb 100644
--- a/sc/source/core/data/pivot2.cxx
+++ b/sc/source/core/data/pivot2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pivot2.cxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -64,6 +64,7 @@ using ::com::sun::star::sheet::DataPilotFieldReference;
// STATIC DATA -----------------------------------------------------------
+#if OLD_PIVOT_IMPLEMENTATION
//--------------------------------------------------------------------------------------------------
// Hilfsmethoden von ScPivot
//--------------------------------------------------------------------------------------------------
@@ -487,6 +488,8 @@ DataObject* ScPivotCollection::Clone() const
return new ScPivotCollection(*this);
}
+#endif
+
// ============================================================================
LabelData::LabelData( const String& rName, short nCol, bool bIsValue ) :
diff --git a/sc/source/core/data/scimpexpmsg.cxx b/sc/source/core/data/scimpexpmsg.cxx
index e11849e66ae1..00dde7d9fa2a 100644
--- a/sc/source/core/data/scimpexpmsg.cxx
+++ b/sc/source/core/data/scimpexpmsg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scimpexpmsg.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -40,91 +40,77 @@
#include <tools/string.hxx>
-
-void ScDocument::AddToImpExpLog( const ScImpExpLogMsg& /* r */ )
-{
-}
-
-
-void ScDocument::AddToImpExpLog( ScImpExpLogMsg* p )
-{
- delete p;
-}
-
-
-
-
-ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e ) : eId( e ), pPos( NULL ), pHint( NULL )
-{
-}
-
-
-ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& r ) : eId( e ), pHint( NULL )
-{
- pPos = new String( r );
-}
-
-
-ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& rP, const String& rH ) : eId( e )
-{
- pPos = new String( rP );
- pHint = new String( rH );
-}
-
-ScImpExpLogMsg::ScImpExpLogMsg( const ScImpExpLogMsg& r ) : eId( r.eId )
-{
- if( r.pPos )
- pPos = new String( *r.pPos );
- else
- pPos = NULL;
-
- if( r.pHint )
- pHint = new String( *r.pHint );
- else
- pHint = NULL;
-}
-
-
-ScImpExpLogMsg::~ScImpExpLogMsg()
-{
- if( pPos )
- delete pPos;
-
- if( pHint )
- delete pHint;
-}
-
-
-void ScImpExpLogMsg::Set( ScImpExpMsg e, const String* pP, const String* pH )
-{
- eId = e;
- if( pPos )
- delete pPos;
-
- if( pHint )
- delete pHint;
-
- if( pP )
- pPos = new String( *pP );
- else
- pPos = NULL;
-
- if( pH )
- pHint = new String( *pH );
-}
-
-
-String ScImpExpLogMsg::GetMsg( ScImpExpMsg e )
-{
- const sal_Char* p;
- switch( e )
- {
- case SC_IMPEXPMSG_UNKNOWN: p = "unknown log message"; break;
- default: p = "Not specified type of log message";
- }
-
- String aRet;
- aRet.AssignAscii( p );
- return aRet;
-}
+//UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e ) : eId( e ), pPos( NULL ), pHint( NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& r ) : eId( e ), pHint( NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 pPos = new String( r );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( ScImpExpMsg e, const String& rP, const String& rH ) : eId( e )
+//UNUSED2008-05 {
+//UNUSED2008-05 pPos = new String( rP );
+//UNUSED2008-05 pHint = new String( rH );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ScImpExpLogMsg::ScImpExpLogMsg( const ScImpExpLogMsg& r ) : eId( r.eId )
+//UNUSED2008-05 {
+//UNUSED2008-05 if( r.pPos )
+//UNUSED2008-05 pPos = new String( *r.pPos );
+//UNUSED2008-05 else
+//UNUSED2008-05 pPos = NULL;
+//UNUSED2008-05
+//UNUSED2008-05 if( r.pHint )
+//UNUSED2008-05 pHint = new String( *r.pHint );
+//UNUSED2008-05 else
+//UNUSED2008-05 pHint = NULL;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 ScImpExpLogMsg::~ScImpExpLogMsg()
+//UNUSED2008-05 {
+//UNUSED2008-05 if( pPos )
+//UNUSED2008-05 delete pPos;
+//UNUSED2008-05
+//UNUSED2008-05 if( pHint )
+//UNUSED2008-05 delete pHint;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 void ScImpExpLogMsg::Set( ScImpExpMsg e, const String* pP, const String* pH )
+//UNUSED2008-05 {
+//UNUSED2008-05 eId = e;
+//UNUSED2008-05 if( pPos )
+//UNUSED2008-05 delete pPos;
+//UNUSED2008-05
+//UNUSED2008-05 if( pHint )
+//UNUSED2008-05 delete pHint;
+//UNUSED2008-05
+//UNUSED2008-05 if( pP )
+//UNUSED2008-05 pPos = new String( *pP );
+//UNUSED2008-05 else
+//UNUSED2008-05 pPos = NULL;
+//UNUSED2008-05
+//UNUSED2008-05 if( pH )
+//UNUSED2008-05 pHint = new String( *pH );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 String ScImpExpLogMsg::GetMsg( ScImpExpMsg e )
+//UNUSED2008-05 {
+//UNUSED2008-05 const sal_Char* p;
+//UNUSED2008-05 switch( e )
+//UNUSED2008-05 {
+//UNUSED2008-05 case SC_IMPEXPMSG_UNKNOWN: p = "unknown log message"; break;
+//UNUSED2008-05 default: p = "Not specified type of log message";
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 String aRet;
+//UNUSED2008-05 aRet.AssignAscii( p );
+//UNUSED2008-05 return aRet;
+//UNUSED2008-05 }
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index c17d79c8a16d..22926f31d003 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: stlpool.cxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.18.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -511,112 +511,112 @@ void ScStyleSheetPool::CreateStandardStyles()
//------------------------------------------------------------------------
-void ScStyleSheetPool::UpdateStdNames()
-{
- // Standard-Styles den richtigen Namen in der Programm-Sprache geben
-
- String aHelpFile;
- sal_uInt32 nCount = aStyles.size();
- for (sal_uInt32 n=0; n<nCount; n++)
- {
- SfxStyleSheetBase* pStyle = aStyles[n].get();
- if (!pStyle->IsUserDefined())
- {
- String aOldName = pStyle->GetName();
- ULONG nHelpId = pStyle->GetHelpId( aHelpFile );
- SfxStyleFamily eFam = pStyle->GetFamily();
-
- BOOL bHelpKnown = TRUE;
- String aNewName;
- USHORT nNameId = 0;
- switch( nHelpId )
- {
- case HID_SC_SHEET_CELL_STD:
- case HID_SC_SHEET_PAGE_STD: nNameId = STR_STYLENAME_STANDARD; break;
- case HID_SC_SHEET_CELL_ERG: nNameId = STR_STYLENAME_RESULT; break;
- case HID_SC_SHEET_CELL_ERG1: nNameId = STR_STYLENAME_RESULT1; break;
- case HID_SC_SHEET_CELL_UEB: nNameId = STR_STYLENAME_HEADLINE; break;
- case HID_SC_SHEET_CELL_UEB1: nNameId = STR_STYLENAME_HEADLINE1; break;
- case HID_SC_SHEET_PAGE_REP: nNameId = STR_STYLENAME_REPORT; break;
- default:
- // 0 oder falsche (alte) HelpId
- bHelpKnown = FALSE;
- }
- if (bHelpKnown)
- {
- if ( nNameId )
- aNewName = SCSTR( nNameId );
-
- if ( aNewName.Len() && aNewName != aOldName && !Find( aNewName, eFam ) )
- {
- DBG_TRACE( "Renaming style..." );
-
- pStyle->SetName( aNewName ); // setzt auch Parents um
-
- // Styles in Patterns sind schon auf Pointer umgesetzt
- if (eFam == SFX_STYLE_FAMILY_PAGE)
- {
- // Page-Styles umsetzen
- // TableCount am Doc ist noch nicht initialisiert
- for (SCTAB nTab=0; nTab<=MAXTAB && pDoc->HasTable(nTab); nTab++)
- if (pDoc->GetPageStyle(nTab) == aOldName)
- pDoc->SetPageStyle(nTab, aNewName);
- }
- }
- }
- else
- {
- // wrong or no HelpId -> set new HelpId
-
- // no assertion for wrong HelpIds because this happens
- // with old files (#67218#) or with old files that were
- // saved again with a new version in a different language
- // (so SrcVersion doesn't help)
-
- USHORT nNewId = 0;
- if ( eFam == SFX_STYLE_FAMILY_PARA )
- {
- if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) )
- nNewId = HID_SC_SHEET_CELL_STD;
- else if ( aOldName == SCSTR( STR_STYLENAME_RESULT ) )
- nNewId = HID_SC_SHEET_CELL_ERG;
- else if ( aOldName == SCSTR( STR_STYLENAME_RESULT1 ) )
- nNewId = HID_SC_SHEET_CELL_ERG1;
- else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE ) )
- nNewId = HID_SC_SHEET_CELL_UEB;
- else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE1 ) )
- nNewId = HID_SC_SHEET_CELL_UEB1;
- }
- else // PAGE
- {
- if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) )
- nNewId = HID_SC_SHEET_PAGE_STD;
- else if ( aOldName == SCSTR( STR_STYLENAME_REPORT ) )
- nNewId = HID_SC_SHEET_PAGE_REP;
- }
-
- if ( nNewId ) // new ID found from name -> set ID
- {
- pStyle->SetHelpId( aHelpFile, nNewId );
- }
- else if ( nHelpId == 0 ) // no old and no new ID
- {
- // #71471# probably user defined style without SFXSTYLEBIT_USERDEF set
- // (from StarCalc 1.0 import), fixed in src563 and above
- //! may also be default style from a different language
- //! test if name was generated from StarCalc 1.0 import?
- DBG_ASSERT(pDoc->GetSrcVersion() <= SC_SUBTOTAL_BUGFIX,
- "user defined style without SFXSTYLEBIT_USERDEF");
- pStyle->SetMask( pStyle->GetMask() | SFXSTYLEBIT_USERDEF );
- }
- // else: wrong old ID and no new ID found:
- // probably default style from a different language
- // -> leave unchanged (HelpId will be set if loaded with matching
- // language version later)
- }
- }
- }
-}
+//UNUSED2008-05 void ScStyleSheetPool::UpdateStdNames()
+//UNUSED2008-05 {
+//UNUSED2008-05 // Standard-Styles den richtigen Namen in der Programm-Sprache geben
+//UNUSED2008-05
+//UNUSED2008-05 String aHelpFile;
+//UNUSED2008-05 sal_uInt32 nCount = aStyles.size();
+//UNUSED2008-05 for (sal_uInt32 n=0; n<nCount; n++)
+//UNUSED2008-05 {
+//UNUSED2008-05 SfxStyleSheetBase* pStyle = aStyles[n].get();
+//UNUSED2008-05 if (!pStyle->IsUserDefined())
+//UNUSED2008-05 {
+//UNUSED2008-05 String aOldName = pStyle->GetName();
+//UNUSED2008-05 ULONG nHelpId = pStyle->GetHelpId( aHelpFile );
+//UNUSED2008-05 SfxStyleFamily eFam = pStyle->GetFamily();
+//UNUSED2008-05
+//UNUSED2008-05 BOOL bHelpKnown = TRUE;
+//UNUSED2008-05 String aNewName;
+//UNUSED2008-05 USHORT nNameId = 0;
+//UNUSED2008-05 switch( nHelpId )
+//UNUSED2008-05 {
+//UNUSED2008-05 case HID_SC_SHEET_CELL_STD:
+//UNUSED2008-05 case HID_SC_SHEET_PAGE_STD: nNameId = STR_STYLENAME_STANDARD; break;
+//UNUSED2008-05 case HID_SC_SHEET_CELL_ERG: nNameId = STR_STYLENAME_RESULT; break;
+//UNUSED2008-05 case HID_SC_SHEET_CELL_ERG1: nNameId = STR_STYLENAME_RESULT1; break;
+//UNUSED2008-05 case HID_SC_SHEET_CELL_UEB: nNameId = STR_STYLENAME_HEADLINE; break;
+//UNUSED2008-05 case HID_SC_SHEET_CELL_UEB1: nNameId = STR_STYLENAME_HEADLINE1; break;
+//UNUSED2008-05 case HID_SC_SHEET_PAGE_REP: nNameId = STR_STYLENAME_REPORT; break;
+//UNUSED2008-05 default:
+//UNUSED2008-05 // 0 oder falsche (alte) HelpId
+//UNUSED2008-05 bHelpKnown = FALSE;
+//UNUSED2008-05 }
+//UNUSED2008-05 if (bHelpKnown)
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( nNameId )
+//UNUSED2008-05 aNewName = SCSTR( nNameId );
+//UNUSED2008-05
+//UNUSED2008-05 if ( aNewName.Len() && aNewName != aOldName && !Find( aNewName, eFam ) )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_TRACE( "Renaming style..." );
+//UNUSED2008-05
+//UNUSED2008-05 pStyle->SetName( aNewName ); // setzt auch Parents um
+//UNUSED2008-05
+//UNUSED2008-05 // Styles in Patterns sind schon auf Pointer umgesetzt
+//UNUSED2008-05 if (eFam == SFX_STYLE_FAMILY_PAGE)
+//UNUSED2008-05 {
+//UNUSED2008-05 // Page-Styles umsetzen
+//UNUSED2008-05 // TableCount am Doc ist noch nicht initialisiert
+//UNUSED2008-05 for (SCTAB nTab=0; nTab<=MAXTAB && pDoc->HasTable(nTab); nTab++)
+//UNUSED2008-05 if (pDoc->GetPageStyle(nTab) == aOldName)
+//UNUSED2008-05 pDoc->SetPageStyle(nTab, aNewName);
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 // wrong or no HelpId -> set new HelpId
+//UNUSED2008-05
+//UNUSED2008-05 // no assertion for wrong HelpIds because this happens
+//UNUSED2008-05 // with old files (#67218#) or with old files that were
+//UNUSED2008-05 // saved again with a new version in a different language
+//UNUSED2008-05 // (so SrcVersion doesn't help)
+//UNUSED2008-05
+//UNUSED2008-05 USHORT nNewId = 0;
+//UNUSED2008-05 if ( eFam == SFX_STYLE_FAMILY_PARA )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_STD;
+//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_RESULT ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_ERG;
+//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_RESULT1 ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_ERG1;
+//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_UEB;
+//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_HEADLINE1 ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_CELL_UEB1;
+//UNUSED2008-05 }
+//UNUSED2008-05 else // PAGE
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( aOldName == SCSTR( STR_STYLENAME_STANDARD ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_PAGE_STD;
+//UNUSED2008-05 else if ( aOldName == SCSTR( STR_STYLENAME_REPORT ) )
+//UNUSED2008-05 nNewId = HID_SC_SHEET_PAGE_REP;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 if ( nNewId ) // new ID found from name -> set ID
+//UNUSED2008-05 {
+//UNUSED2008-05 pStyle->SetHelpId( aHelpFile, nNewId );
+//UNUSED2008-05 }
+//UNUSED2008-05 else if ( nHelpId == 0 ) // no old and no new ID
+//UNUSED2008-05 {
+//UNUSED2008-05 // #71471# probably user defined style without SFXSTYLEBIT_USERDEF set
+//UNUSED2008-05 // (from StarCalc 1.0 import), fixed in src563 and above
+//UNUSED2008-05 //! may also be default style from a different language
+//UNUSED2008-05 //! test if name was generated from StarCalc 1.0 import?
+//UNUSED2008-05 DBG_ASSERT(pDoc->GetSrcVersion() <= SC_SUBTOTAL_BUGFIX,
+//UNUSED2008-05 "user defined style without SFXSTYLEBIT_USERDEF");
+//UNUSED2008-05 pStyle->SetMask( pStyle->GetMask() | SFXSTYLEBIT_USERDEF );
+//UNUSED2008-05 }
+//UNUSED2008-05 // else: wrong old ID and no new ID found:
+//UNUSED2008-05 // probably default style from a different language
+//UNUSED2008-05 // -> leave unchanged (HelpId will be set if loaded with matching
+//UNUSED2008-05 // language version later)
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
//------------------------------------------------------------------------
@@ -641,32 +641,3 @@ ScStyleSheet* ScStyleSheetPool::FindCaseIns( const String& rName, SfxStyleFamily
return NULL;
}
-
-void ScStyleSheetPool::ConvertFontsAfterLoad()
-{
- ScFontToSubsFontConverter_AutoPtr xFontConverter;
- const ULONG nFlags = FONTTOSUBSFONT_IMPORT | FONTTOSUBSFONT_ONLYOLDSOSYMBOLFONTS;
- SfxStyleSheetIterator aIter( this, SFX_STYLE_FAMILY_PARA );
- for ( SfxStyleSheetBase* pStyle = aIter.First(); pStyle; pStyle = aIter.Next() )
- {
- const SfxPoolItem* pItem;
- if( pStyle->GetItemSet().GetItemState( ATTR_FONT, FALSE, &pItem ) == SFX_ITEM_SET )
- {
- const SvxFontItem* pFontItem = (const SvxFontItem*) pItem;
- const String& rOldName = pFontItem->GetFamilyName();
- xFontConverter = CreateFontToSubsFontConverter( rOldName, nFlags );
- if ( xFontConverter )
- {
- String aNewName( GetFontToSubsFontName( xFontConverter ) );
- if ( aNewName != rOldName )
- {
- SvxFontItem aNewItem( pFontItem->GetFamily(), aNewName,
- pFontItem->GetStyleName(), pFontItem->GetPitch(),
- RTL_TEXTENCODING_DONTKNOW, ATTR_FONT );
- pStyle->GetItemSet().Put( aNewItem );
- }
- }
- }
- }
-}
-
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 77dc46b9bf15..03b9fc9d90be 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: table1.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1235,10 +1235,10 @@ void ScTable::UpdateInsertTab(SCTAB nTable)
for (SCCOL i=0; i <= MAXCOL; i++) aCol[i].UpdateInsertTab(nTable);
}
-void ScTable::UpdateInsertTabOnlyCells(SCTAB nTable)
-{
- for (SCCOL i=0; i <= MAXCOL; i++) aCol[i].UpdateInsertTabOnlyCells(nTable);
-}
+//UNUSED2008-05 void ScTable::UpdateInsertTabOnlyCells(SCTAB nTable)
+//UNUSED2008-05 {
+//UNUSED2008-05 for (SCCOL i=0; i <= MAXCOL; i++) aCol[i].UpdateInsertTabOnlyCells(nTable);
+//UNUSED2008-05 }
void ScTable::UpdateDeleteTab( SCTAB nTable, BOOL bIsMove, ScTable* pRefUndo )
{
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index a0a7155935ef..b2544800673c 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -65,10 +65,6 @@
// STATIC DATA -----------------------------------------------------------
-void lcl_LoadRange( SvStream& rStream, ScRange** ppRange );
-void lcl_SaveRange( SvStream& rStream, const ScRange* pRange );
-
-
BOOL ScTable::SetOutlineTable( const ScOutlineTable* pNewOutline )
{
@@ -984,12 +980,12 @@ BOOL ScTable::HasStringCells( SCCOL nStartCol, SCROW nStartRow,
}
-USHORT ScTable::GetErrCode( SCCOL nCol, SCROW nRow ) const
-{
- if (ValidColRow( nCol, nRow ))
- return aCol[nCol].GetErrCode( nRow );
- return 0;
-}
+//UNUSED2008-05 USHORT ScTable::GetErrCode( SCCOL nCol, SCROW nRow ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 if (ValidColRow( nCol, nRow ))
+//UNUSED2008-05 return aCol[nCol].GetErrCode( nRow );
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
void ScTable::SetDirtyVar()
@@ -2469,20 +2465,6 @@ BYTE ScTable::GetRowFlags( SCROW nRow ) const
}
-SCCOL ScTable::GetLastFlaggedCol() const
-{
- if ( !pColFlags )
- return 0;
-
- SCCOL nLastFound = 0;
- for (SCCOL nCol = 1; nCol <= MAXCOL; nCol++)
- if (pColFlags[nCol] & ~CR_PAGEBREAK)
- nLastFound = nCol;
-
- return nLastFound;
-}
-
-
SCROW ScTable::GetLastFlaggedRow() const
{
if ( !pRowFlags )
@@ -2702,459 +2684,8 @@ void ScTable::DoAutoOutline( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SC
// Datei-Operationen
//
-// Laden
-
-BOOL ScTable::Load( SvStream& rStream, USHORT /* nVersion */, ScProgress* /* pProgress */ )
-{
- ScReadHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- USHORT i;
-
- while (aHdr.BytesLeft() && rStream.GetError() == SVSTREAM_OK)
- {
- USHORT nID;
- rStream >> nID;
- switch (nID)
- {
- case SCID_COLUMNS: // Spalten (Daten)
- {
- ScMultipleReadHeader aColHdr( rStream );
- if( nVersion >= SC_DATABYTES )
- while( aColHdr.BytesLeft() )
- {
- BYTE nCol;
- rStream >> nCol;
- aCol[ nCol ].Load(rStream, aColHdr);
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
- }
- else
- for (i=0; i<=MAXCOL; i++)
- {
- aCol[i].Load(rStream, aColHdr);
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
- }
- }
- break;
- case SCID_COLROWFLAGS: // Spalten-/Zeilenflags
- {
- ScReadHeader aFlagsHdr( rStream );
-
- BYTE nFlags;
- USHORT nVal;
- short nRep;
-
- i=0;
- while (i<=MAXCOL)
- {
- rStream >> nRep;
- rStream >> nVal;
- while (nRep-- && i<=MAXCOL)
- pColWidth[i++] = nVal;
- }
- DBG_ASSERT(nRep==-1, "Fehler bei Spaltenbreiten");
- i=0;
- while (i<=MAXCOL)
- {
- rStream >> nRep;
- rStream >> nFlags;
- while (nRep-- && i<=MAXCOL)
- pColFlags[i++] = nFlags;
- }
- DBG_ASSERT(nRep==-1, "Fehler bei Spaltenflags");
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
-
- // aus der Datei immer soviele Zeilen laden, wie gespeichert wurden
- SCROW nSrcMaxRow = pDocument->GetSrcMaxRow();
-
- i=0;
- while (i<=nSrcMaxRow) // nSrcMaxRow und MAXROW evtl. unterschiedlich
- {
- rStream >> nRep;
- rStream >> nVal;
- while (nRep--)
- {
- if (i<=MAXROW)
- pRowHeight->SetValue( i, nVal);
- ++i;
- }
- }
- DBG_ASSERT(i==nSrcMaxRow+1, "Fehler bei Zeilenhoehen");
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
- i=0;
- while (i<=nSrcMaxRow) // nSrcMaxRow und MAXROW evtl. unterschiedlich
- {
- rStream >> nRep;
- rStream >> nFlags;
- while (nRep--)
- {
- if (i<=MAXROW)
- pRowFlags->SetValue( i, nFlags);
- ++i;
- }
- }
- DBG_ASSERT(i==nSrcMaxRow+1, "Fehler bei Zeilenflags");
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
- }
- break;
- case SCID_TABOPTIONS: // einzelne Einstellungen
- {
- ScReadHeader aFlagsHdr( rStream );
-
- rStream.ReadByteString( aName, rStream.GetStreamCharSet() );
-
- rStream >> bScenario;
- rStream.ReadByteString( aComment, rStream.GetStreamCharSet() );
-
- rStream >> bProtected;
- String aPass;
- rStream.ReadByteString( aPass, rStream.GetStreamCharSet() );
- if (aPass.Len())
- SvPasswordHelper::GetHashPassword(aProtectPass, aPass);
-
- BOOL bOutline;
- rStream >> bOutline;
- if (bOutline)
- {
- StartOutlineTable();
- pOutlineTable->Load( rStream );
- }
-
- if ( aFlagsHdr.BytesLeft() )
- {
- SfxStyleSheetBasePool* pStylePool =
- pDocument->GetStyleSheetPool();
-
- rStream.ReadByteString( aPageStyle, rStream.GetStreamCharSet() );
-
- if ( !pStylePool->Find( aPageStyle, SFX_STYLE_FAMILY_PAGE ) )
- {
- DBG_TRACE( "PageStyle not found. Using Standard." );
- aPageStyle = ScGlobal::GetRscString(STR_STYLENAME_STANDARD);
- }
- }
-
- if ( aFlagsHdr.BytesLeft() )
- {
- BOOL bOneRange; // einzelner Druckbereich ?
- rStream >> bOneRange;
- if ( bOneRange )
- {
- ScRange aRange;
- rStream >> aRange;
- SetPrintRange( aRange );
- }
-
- lcl_LoadRange( rStream, &pRepeatColRange );
- lcl_LoadRange( rStream, &pRepeatRowRange );
- }
-
- if ( aFlagsHdr.BytesLeft() )
- rStream >> bVisible;
-
- if ( aFlagsHdr.BytesLeft() ) // Druckbereiche ab Version 314c
- {
- USHORT nNewCount;
- rStream >> nNewCount;
- if ( nNewCount )
- {
- ScRange aTmp;
- ClearPrintRanges();
- for (i=0; i<nNewCount; i++)
- {
- rStream >> aTmp;
- AddPrintRange( aTmp );
- }
- }
- }
-
- if ( aFlagsHdr.BytesLeft() ) // erweiterte Szenario-Flags ab 5.0
- {
- rStream >> aScenarioColor;
- rStream >> nScenarioFlags;
- rStream >> bActiveScenario;
- }
- else if ( bScenario )
- {
- // Default fuer Szenarien aus alten Dateien??
- // Wenn die alten Szenarien wirklich benutzt wurden,
- // wuerde der Rahmen wahrscheinlich stoeren.
-
- nScenarioFlags = SC_SCENARIO_COPYALL;
- }
-
- if (pProgress)
- pProgress->SetState( rStream.Tell() );
- }
- break;
- case SCID_TABLINK: // Verknuepfung
- {
- ScReadHeader aLinkHdr( rStream );
-
- rStream >> nLinkMode;
- rStream.ReadByteString( aLinkDoc, rStream.GetStreamCharSet() );
- aLinkDoc = INetURLObject::RelToAbs( aLinkDoc );
- rStream.ReadByteString( aLinkFlt, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aLinkTab, rStream.GetStreamCharSet() );
-
- BOOL bRelURL;
- if ( aLinkHdr.BytesLeft() )
- rStream >> bRelURL;
- else
- bRelURL = FALSE;
- // externer Tabellenname relativ zu absolut
- if ( nLinkMode == SC_LINK_VALUE && bRelURL )
- aName = ScGlobal::GetDocTabName( aLinkDoc, aLinkTab );
-
- if ( aLinkHdr.BytesLeft() ) // ab 336 auch Filter-Optionen
- rStream.ReadByteString( aLinkOpt, rStream.GetStreamCharSet() );
- }
- break;
- default:
- {
- DBG_ERROR("unbekannter Sub-Record in ScTable::Load");
- ScReadHeader aDummyHeader( rStream );
- }
- }
- }
-
- // Neuberechnungen
-
- ScDrawLayer* pDrawLayer = pDocument->GetDrawLayer();
- if (pDrawLayer)
- pDrawLayer->ScRenamePage( nTab, aName );
-
- return TRUE;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
// Speichern
-
-void lcl_SaveValue( SvStream& rStream, USHORT* pValue, USHORT nEnd )
-{
- USHORT nPos = 0;
- while (nPos<=nEnd)
- {
- USHORT nVal = pValue[nPos];
- USHORT nNextPos = nPos+1;
- while (nNextPos<=nEnd && pValue[nNextPos]==nVal)
- ++nNextPos;
- rStream << (USHORT)( nNextPos - nPos );
- rStream << nVal;
- nPos = nNextPos;
- }
-}
-
-
-void lcl_SaveFlags( SvStream& rStream, BYTE* pValue, USHORT nEnd )
-{
- USHORT nPos = 0;
- while (nPos<=nEnd)
- {
- BYTE nVal = pValue[nPos] & CR_SAVEMASK;
- USHORT nNextPos = nPos+1;
- while (nNextPos<=nEnd && (pValue[nNextPos] & CR_SAVEMASK)==nVal)
- ++nNextPos;
- rStream << (USHORT)( nNextPos - nPos );
- rStream << nVal;
- nPos = nNextPos;
- }
-}
-
-
-void lcl_LoadRange( SvStream& /* rStream */, ScRange** ppRange )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- BOOL bIsSet = FALSE;
-
- rStream >> bIsSet;
-
- if ( bIsSet )
- {
- *ppRange = new ScRange;
- rStream >> **ppRange;
- }
- else
- *ppRange = NULL;
-#else
- *ppRange = NULL;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
-void lcl_SaveRange( SvStream& /* rStream */, const ScRange* /* pRange */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- if ( pRange )
- {
- rStream << (BOOL)TRUE;
- rStream << *pRange;
- }
- else
- rStream << (BOOL)FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
-BOOL ScTable::Save( SvStream& rStream, long& /* rSavedDocCells */, ScProgress* /* pProgress */ ) const
-{
- ScWriteHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- USHORT i;
-
- // Spalten (Daten)
-
- {
- rStream << (USHORT) SCID_COLUMNS;
- ScMultipleWriteHeader aColHdr( rStream );
-
- for (i=0; i<=MAXCOL; i++)
- {
- const ScColumn* pCol = &aCol[ i ];
- if( !pCol->IsEmptyData() || pCol->NoteCount() || !pCol->IsEmptyAttr())
- {
- rStream << (BYTE) i;
- aCol[i].Save(rStream, aColHdr);
- rSavedDocCells += aCol[i].GetWeightedCount();
- if (pProgress)
- pProgress->SetState( rSavedDocCells );
- }
- }
- }
-
- // Spalten-/Zeilenflags
-
- {
- rStream << (USHORT) SCID_COLROWFLAGS;
- ScWriteHeader aFlagsHdr( rStream );
-
- SCROW nSaveMaxRow = pDocument->GetSrcMaxRow();
-
- lcl_SaveValue( rStream, pColWidth, MAXCOL );
- lcl_SaveFlags( rStream, pColFlags, MAXCOL );
- lcl_SaveValue( rStream, pRowHeight,nSaveMaxRow );
- lcl_SaveFlags( rStream, pRowFlags, nSaveMaxRow );
-
- // wenn dabei weniger Zeilenhoehen als vorhanden gespeichert wurden,
- // gibt das noch keine Warnung wegen Datenverlust.
- }
-
- BOOL bRelURL = FALSE;
- String aLinkDocSaveName( aLinkDoc );
- String aSaveName( aName );
- if ( nLinkMode )
- {
- aLinkDocSaveName = INetURLObject::AbsToRel( aLinkDocSaveName );
- aLinkDocSaveName = INetURLObject::decode( aLinkDocSaveName,
- INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS );
- if ( ScGlobal::pTransliteration->isEqual( aLinkDocSaveName,
- INetURLObject::decode( aLinkDoc, INET_HEX_ESCAPE,
- INetURLObject::DECODE_UNAMBIGUOUS ) ) )
- {
- aSaveName = INetURLObject::decode( aSaveName,
- INET_HEX_ESCAPE, INetURLObject::DECODE_UNAMBIGUOUS );
- }
- else
- {
- bRelURL = TRUE;
- // Reference to external sheet, only the sheet name is stored
- // instead of the absolute DocTabName, will be reconcatenated upon
- // load time.
- if ( nLinkMode == SC_LINK_VALUE )
- aSaveName = aLinkTab;
- }
- }
-
- // einzelne Einstellungen
-
- {
- rStream << (USHORT) SCID_TABOPTIONS;
- ScWriteHeader aFlagsHdr( rStream );
-
- rStream.WriteByteString( aSaveName, rStream.GetStreamCharSet() );
-
- rStream << bScenario;
- rStream.WriteByteString( aComment, rStream.GetStreamCharSet() );
-
- rStream << bProtected;
- String aPass;
- //rStream.WriteByteString( aProtectPass, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aPass, rStream.GetStreamCharSet() );
-
- BOOL bOutline = ( pOutlineTable != NULL );
- rStream << bOutline;
- if (bOutline)
- pOutlineTable->Store( rStream );
-
- rStream.WriteByteString( aPageStyle, rStream.GetStreamCharSet() );
-
- if ( GetPrintRangeCount() == 1 ) // kompatibel zu alten Versionen
- lcl_SaveRange( rStream, &aPrintRanges[0] ); // (nur wenn genau ein Bereich)
- else
- lcl_SaveRange( rStream, NULL );
- lcl_SaveRange( rStream, pRepeatColRange );
- lcl_SaveRange( rStream, pRepeatRowRange );
-
- rStream << bVisible;
-
- if ( GetPrintRangeCount() > 1 ) // einzelner Bereich schon oben
- {
- rStream << GetPrintRangeCount(); // ab Version 314c
- if ( GetPrintRangeCount() > 1 )
- for ( i=0; i<GetPrintRangeCount(); i++)
- rStream << aPrintRanges[i];
- }
- else
- rStream << (USHORT) 0;
-
- if( rStream.GetVersion() > SOFFICE_FILEFORMAT_40 ) // erweiterte Szenario-Flags ab 5.0
- {
- rStream << aScenarioColor;
- rStream << nScenarioFlags;
- rStream << bActiveScenario;
- }
- }
-
- // Verknuepfung
-
- if (nLinkMode)
- {
- rStream << (USHORT) SCID_TABLINK;
- ScWriteHeader aLinkHdr( rStream );
-
- // Hack, um verknuepfte Tabellen mit der 3.1 laden zu koennen (#35242#)
- // bei 3.1 Export Filter von "StarCalc 4.0" auf "StarCalc 3.0" umsetzen
- // (4.0 Dateien koennen vom Calc 3.1 gelesen werden)
- String aSaveFlt = aLinkFlt;
- if ( rStream.GetVersion() == SOFFICE_FILEFORMAT_31 && aSaveFlt.EqualsAscii("StarCalc 4.0") )
- aSaveFlt.AssignAscii(RTL_CONSTASCII_STRINGPARAM("StarCalc 3.0"));
-
- rStream << nLinkMode;
- rStream.WriteByteString( aLinkDocSaveName, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aSaveFlt, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aLinkTab, rStream.GetStreamCharSet() );
- rStream << bRelURL;
- rStream.WriteByteString( aLinkOpt, rStream.GetStreamCharSet() );
- }
-
- return TRUE;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
// CopyData - fuer Query in anderen Bereich
void ScTable::CopyData( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
diff --git a/sc/source/core/data/table4.cxx b/sc/source/core/data/table4.cxx
index f3346c5dff0c..7ad11dc99d26 100644
--- a/sc/source/core/data/table4.cxx
+++ b/sc/source/core/data/table4.cxx
@@ -1898,13 +1898,13 @@ void ScTable::UpdateInsertTabAbs(SCTAB nTable)
aCol[i].UpdateInsertTabAbs(nTable);
}
-USHORT ScTable::GetErrorData( SCCOL nCol, SCROW nRow ) const
-{
- if (ValidColRow(nCol,nRow))
- return aCol[nCol].GetErrorData( nRow );
- else
- return 0;
-}
+//UNUSED2008-05 USHORT ScTable::GetErrorData( SCCOL nCol, SCROW nRow ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 if (ValidColRow(nCol,nRow))
+//UNUSED2008-05 return aCol[nCol].GetErrorData( nRow );
+//UNUSED2008-05 else
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
BOOL ScTable::GetNextSpellingCell(SCCOL& rCol, SCROW& rRow, BOOL bInSel,
const ScMarkData& rMark) const
diff --git a/sc/source/core/data/validat.cxx b/sc/source/core/data/validat.cxx
index e964c7aa61de..5c6c687adc8e 100644
--- a/sc/source/core/data/validat.cxx
+++ b/sc/source/core/data/validat.cxx
@@ -129,76 +129,10 @@ ScValidationData::ScValidationData( ScDocument* pDocument, const ScValidationDat
// Formeln wirklich kopiert
}
-ScValidationData::ScValidationData( SvStream& rStream, ScMultipleReadHeader& rHdr,
- ScDocument* pDocument ) :
- ScConditionEntry( rStream, rHdr, pDocument ),
- mnListType( ValidListType::UNSORTED ) // not imported/exported
-{
- // im Datei-Header sind getrennte Eintraege fuer ScConditionEntry und ScValidationData
-
- rHdr.StartEntry();
-
- // 1) Key
- // 2) eDataMode
- // 3) bShowInput
- // 4) aInputTitle
- // 5) aInputMessage
- // 6) bShowError
- // 7) aErrorTitle
- // 8) aErrorMessage
- // 9) eErrorStyle
-
- USHORT nDummy;
- rStream >> nKey;
- rStream >> nDummy;
- eDataMode = (ScValidationMode) nDummy;
- rStream >> bShowInput;
- rStream.ReadByteString( aInputTitle, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aInputMessage, rStream.GetStreamCharSet() );
- rStream >> bShowError;
- rStream.ReadByteString( aErrorTitle, rStream.GetStreamCharSet() );
- rStream.ReadByteString( aErrorMessage, rStream.GetStreamCharSet() );
- rStream >> nDummy;
- eErrorStyle = (ScValidErrorStyle) nDummy;
-
- rHdr.EndEntry();
-}
-
ScValidationData::~ScValidationData()
{
}
-void ScValidationData::Store(SvStream& rStream, ScMultipleWriteHeader& rHdr) const
-{
- // im Datei-Header sind getrennte Eintraege fuer ScConditionEntry und ScValidationData
-
- StoreCondition( rStream, rHdr );
-
- rHdr.StartEntry();
-
- // 1) Key
- // 2) eDataMode
- // 3) bShowInput
- // 4) aInputTitle
- // 5) aInputMessage
- // 6) bShowError
- // 7) aErrorTitle
- // 8) aErrorMessage
- // 9) eErrorStyle
-
- rStream << nKey;
- rStream << (USHORT) eDataMode;
- rStream << bShowInput;
- rStream.WriteByteString( aInputTitle, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aInputMessage, rStream.GetStreamCharSet() );
- rStream << bShowError;
- rStream.WriteByteString( aErrorTitle, rStream.GetStreamCharSet() );
- rStream.WriteByteString( aErrorMessage, rStream.GetStreamCharSet() );
- rStream << (USHORT) eErrorStyle;
-
- rHdr.EndEntry();
-}
-
BOOL ScValidationData::IsEmpty() const
{
String aEmpty;
@@ -975,41 +909,6 @@ ScValidationData* ScValidationDataList::GetData( sal_uInt32 nKey )
return NULL;
}
-void ScValidationDataList::Load( SvStream& rStream, ScDocument* pDocument )
-{
- ScMultipleReadHeader aHdr( rStream );
-
- USHORT nNewCount;
- rStream >> nNewCount;
-
- for (USHORT i=0; i<nNewCount; i++)
- {
- ScValidationData* pNew = new ScValidationData( rStream, aHdr, pDocument );
- InsertNew( pNew );
- }
-}
-
-void ScValidationDataList::Store( SvStream& rStream ) const
-{
- USHORT i;
- ScMultipleWriteHeader aHdr( rStream );
-
- USHORT nCount = Count();
- USHORT nUsed = 0;
- for (i=0; i<nCount; i++)
- if ((*this)[i]->IsUsed())
- ++nUsed;
-
- rStream << nUsed; // Anzahl der gespeicherten
-
- for (i=0; i<nCount; i++)
- {
- const ScValidationData* pForm = (*this)[i];
- if (pForm->IsUsed())
- pForm->Store( rStream, aHdr );
- }
-}
-
void ScValidationDataList::ResetUsed()
{
USHORT nCount = Count();
diff --git a/sc/source/core/inc/addinhelpid.hxx b/sc/source/core/inc/addinhelpid.hxx
index 760957a76c8d..9f6efb6299d2 100644
--- a/sc/source/core/inc/addinhelpid.hxx
+++ b/sc/source/core/inc/addinhelpid.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: addinhelpid.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -45,8 +45,8 @@ private:
const ScUnoAddInHelpId* pCurrHelpIds; /// Array of function names and help IDs.
sal_uInt32 nArrayCount; /// Count of array entries.
+ ScUnoAddInHelpIdGenerator(); // disabled
public:
- ScUnoAddInHelpIdGenerator();
ScUnoAddInHelpIdGenerator( const ::rtl::OUString& rServiceName );
/** Sets service name of the AddIn. Has to be done before requesting help IDs. */
diff --git a/sc/source/core/inc/ddelink.hxx b/sc/source/core/inc/ddelink.hxx
index 1f6cf67cd64f..b8b44a568110 100644
--- a/sc/source/core/inc/ddelink.hxx
+++ b/sc/source/core/inc/ddelink.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ddelink.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -72,7 +72,6 @@ public:
// von SvBaseLink ueberladen:
virtual void DataChanged( const String& rMimeType,
const ::com::sun::star::uno::Any & rValue );
- void NewData(SCSIZE nCols, SCSIZE nRows);
// von SvtBroadcaster ueberladen:
virtual void ListenersGone();
diff --git a/sc/source/core/inc/interpre.hxx b/sc/source/core/inc/interpre.hxx
index 96faa67df447..41cb25db5edb 100644
--- a/sc/source/core/inc/interpre.hxx
+++ b/sc/source/core/inc/interpre.hxx
@@ -330,7 +330,6 @@ ScMatrixRef GetMatrix();
void ScTableOp(); // Mehrfachoperationen
void ScErrCell(); // Sonderbehandlung
// Fehlerzelle
-void ScDefPar(); // DefaultParameter
//-----------------------------allgemeine Hilfsfunktionen
void SetMaxIterationCount(USHORT n);
inline void CurFmtToFuncFmt()
@@ -611,8 +610,6 @@ ScMatrixRef GetNewMat(SCSIZE nC, SCSIZE nR);
void ScMatValue();
void MEMat(ScMatrix* mM, SCSIZE n);
void MFastMult(ScMatrix* pA, ScMatrix* pB, ScMatrix* pR, SCSIZE n, SCSIZE m, SCSIZE l);
-void MFastSub(ScMatrix* pA, ScMatrix* pB, ScMatrix* pR, SCSIZE n, SCSIZE m);
-void MFastTrans(ScMatrix* pA, ScMatrix* pR, SCSIZE n, SCSIZE m);
void ScMatDet();
void ScMatInv();
void ScMatMult();
diff --git a/sc/source/core/inc/refupdat.hxx b/sc/source/core/inc/refupdat.hxx
index a4de08d71929..d3cc221f8163 100644
--- a/sc/source/core/inc/refupdat.hxx
+++ b/sc/source/core/inc/refupdat.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refupdat.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -97,8 +97,10 @@ public:
const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY,
ComplRefData& rRef );
+#if OLD_PIVOT_IMPLEMENTATION
static ScRefUpdateRes DoGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY,
ScRange& rRef );
+#endif
};
diff --git a/sc/source/core/tool/addinhelpid.cxx b/sc/source/core/tool/addinhelpid.cxx
index 734302760405..e22ef4ec0bf5 100644
--- a/sc/source/core/tool/addinhelpid.cxx
+++ b/sc/source/core/tool/addinhelpid.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: addinhelpid.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.5.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -162,11 +162,11 @@ const ScUnoAddInHelpId pDateFuncHelpIds[] =
// ============================================================================
-ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator() :
- pCurrHelpIds( NULL ),
- nArrayCount( 0 )
-{
-}
+//UNUSED2008-05 ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator() :
+//UNUSED2008-05 pCurrHelpIds( NULL ),
+//UNUSED2008-05 nArrayCount( 0 )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScUnoAddInHelpIdGenerator::ScUnoAddInHelpIdGenerator( const ::rtl::OUString& rServiceName )
{
diff --git a/sc/source/core/tool/address.cxx b/sc/source/core/tool/address.cxx
index baf11bc3781d..49e63ce78f34 100644
--- a/sc/source/core/tool/address.cxx
+++ b/sc/source/core/tool/address.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: address.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.11.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -1018,25 +1018,6 @@ void ScRange::Justify()
}
}
-
-void ScRange::ExtendOne()
-{
- // Range fuer Rahmen etc. in X und Y Richtung um 1 erweitern
-
- SCCOLROW nVal;
-
- if ((nVal = aStart.Col()) > 0)
- aStart.SetCol(static_cast<SCCOL>(nVal-1));
- if ((nVal = aStart.Row()) > 0)
- aStart.SetRow(nVal-1);
-
- if ((nVal = aEnd.Col()) < MAXCOL)
- aEnd.SetCol(static_cast<SCCOL>(nVal+1));
- if ((nVal = aEnd.Row()) < MAXROW)
- aEnd.SetRow(nVal+1);
-}
-
-
void ScRange::ExtendTo( const ScRange& rRange )
{
DBG_ASSERT( rRange.IsValid(), "ScRange::ExtendTo - cannot extend to invalid range" );
@@ -1657,21 +1638,6 @@ bool ScRange::Move( SCsCOL dx, SCsROW dy, SCsTAB dz, ScDocument* pDoc )
}
-// --- moved from ScTripel -----------------------------------------------
-
-String ScAddress::GetText() const
-{
- String aString('(');
- aString += String::CreateFromInt32( nCol );
- aString += ',';
- aString += String::CreateFromInt32( nRow );
- aString += ',';
- aString += String::CreateFromInt32( nTab );
- aString += ')';
- return aString;
-}
-
-
String ScAddress::GetColRowString( bool bAbsolute,
const Details& rDetails ) const
{
diff --git a/sc/source/core/tool/appoptio.cxx b/sc/source/core/tool/appoptio.cxx
index 990a28d9132c..5af4eb0b9ce2 100644
--- a/sc/source/core/tool/appoptio.cxx
+++ b/sc/source/core/tool/appoptio.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: appoptio.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -143,117 +143,6 @@ const ScAppOptions& ScAppOptions::operator=( const ScAppOptions& rCpy )
//------------------------------------------------------------------------
-SvStream& operator>>( SvStream& rStream, ScAppOptions& rOpt )
-{
- rOpt.SetDefaults();
-
- ScReadHeader aHdr( rStream );
-
- BYTE n;
- rStream >> n; rOpt.eMetric = (FieldUnit)n;
-
- if ( aHdr.BytesLeft() )
- {
- rStream >> n; rOpt.nLRUFuncCount = (USHORT)n;
-
- delete [] rOpt.pLRUList;
- rOpt.pLRUList = new USHORT[rOpt.nLRUFuncCount];
-
- for ( USHORT i=0; i<rOpt.nLRUFuncCount; i++ )
- rStream >> rOpt.pLRUList[i];
- }
-
- // ab 31.10.95: globale benutzerdefinierte Listen einlesen :-/
- // (kleiner Hack :-/)
- if ( aHdr.BytesLeft() )
- {
- ScUserList* pUserList = ScGlobal::GetUserList();
- pUserList->Load( rStream );
- }
-
- // ab 11.12.95 (304)
- // Zoom-Faktor
- if ( aHdr.BytesLeft() )
- {
- USHORT e;
- rStream >> e; rOpt.eZoomType = (SvxZoomType)e;
- rStream >> rOpt.nZoom;
- }
-
- // ab 23.5.96: Funktion fuer Statusbar-Controller, Flag fuer Auto-Eingabe
- if ( aHdr.BytesLeft() )
- {
- rStream >> rOpt.nStatusFunc;
- rStream >> rOpt.bAutoComplete;
- }
-
- // ab 15.3.98: Farben fuer Change-Tracking
- if ( aHdr.BytesLeft() )
- {
- rStream >> rOpt.nTrackContentColor;
- rStream >> rOpt.nTrackInsertColor;
- rStream >> rOpt.nTrackDeleteColor;
- rStream >> rOpt.nTrackMoveColor;
- }
-
- // ab 22.6.98: Automatisches Detektiv-Update
- if ( aHdr.BytesLeft() )
- rStream >> rOpt.bDetectiveAuto;
-
- if ( aHdr.BytesLeft() )
- {
- BYTE nLinkMode;
- rStream >> nLinkMode;
- rOpt.eLinkMode=(ScLkUpdMode) nLinkMode;
- }
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-SvStream& operator<<( SvStream& rStream, const ScAppOptions& rOpt )
-{
- ScWriteHeader aHdr( rStream, 25 );
-
- rStream << (BYTE)rOpt.eMetric;
- rStream << (BYTE)rOpt.nLRUFuncCount;
-
- if ( rOpt.nLRUFuncCount > 0 )
- {
- for ( USHORT i=0; i<rOpt.nLRUFuncCount; i++ )
- rStream << rOpt.pLRUList[i];
- }
-
- // ab 31.10.95: globale benutzerdefinierte Listen speichern
- // (kleiner Hack :-/)
- ScUserList* pUserList = ScGlobal::GetUserList();
- pUserList->Store( rStream );
-
- // ab 11.12.95 (304)
- // Zoom-Faktor
- rStream << (USHORT)rOpt.eZoomType;
- rStream << rOpt.nZoom;
-
- // ab 23.5.96: Funktion fuer Statusbar-Controller, Flag fuer Auto-Eingabe
- rStream << rOpt.nStatusFunc;
- rStream << rOpt.bAutoComplete;
-
- // ab 15.3.98: Farben fuer Change-Tracking
- rStream << rOpt.nTrackContentColor;
- rStream << rOpt.nTrackInsertColor;
- rStream << rOpt.nTrackDeleteColor;
- rStream << rOpt.nTrackMoveColor;
-
- // ab 22.6.98: Automatisches Detektiv-Update
- rStream << rOpt.bDetectiveAuto;
- rStream << (BYTE) rOpt.eLinkMode;
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
void ScAppOptions::SetLRUFuncList( const USHORT* pList, const USHORT nCount )
{
delete [] pLRUList;
diff --git a/sc/source/core/tool/autoform.cxx b/sc/source/core/tool/autoform.cxx
index 56e9d3efda9e..58b4e80bf5b7 100644
--- a/sc/source/core/tool/autoform.cxx
+++ b/sc/source/core/tool/autoform.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: autoform.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.22.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -606,11 +606,6 @@ const ScNumFormatAbbrev& ScAutoFormatData::GetNumFormat( USHORT nIndex ) const
return GetField( nIndex ).GetNumFormat();
}
-void ScAutoFormatData::SetNumFormat( USHORT nIndex, const ScNumFormatAbbrev& rNumFormat )
-{
- GetField( nIndex ).SetNumFormat( rNumFormat );
-}
-
BOOL ScAutoFormatData::IsEqualData( USHORT nIndex1, USHORT nIndex2 ) const
{
BOOL bEqual = TRUE;
diff --git a/sc/source/core/tool/callform.cxx b/sc/source/core/tool/callform.cxx
index ce09f25582f5..b09a7b788ea7 100644
--- a/sc/source/core/tool/callform.cxx
+++ b/sc/source/core/tool/callform.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: callform.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -419,21 +419,6 @@ BOOL FuncData::Call(void** ppParam)
//------------------------------------------------------------------------
-BOOL FuncData::Advice( AdvData pfCallback )
-{
- BOOL bRet = FALSE;
- osl::Module* pLib = pModuleData->GetInstance();
- FARPROC fProc = (FARPROC)pLib->getFunctionSymbol(LIBFUNCNAME(ADVICE));
- if (fProc != NULL)
- {
- ((::Advice)fProc)(nNumber, pfCallback);
- bRet = TRUE;
- }
- return bRet;
-}
-
-//------------------------------------------------------------------------
-
BOOL FuncData::Unadvice( double nHandle )
{
BOOL bRet = FALSE;
diff --git a/sc/source/core/tool/chartarr.cxx b/sc/source/core/tool/chartarr.cxx
index 638f8dd25a90..3230597e5213 100644
--- a/sc/source/core/tool/chartarr.cxx
+++ b/sc/source/core/tool/chartarr.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chartarr.cxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.24.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -106,14 +106,6 @@ ScChartArray::ScChartArray( const ScChartArray& rArr ) :
{
}
-ScChartArray::ScChartArray( ScDocument* pDoc, SvStream& rStream, ScMultipleReadHeader& rHdr ) :
- pDocument( pDoc ),
- aPositioner(pDoc),
- bValid( TRUE )
-{
- aName = aPositioner.ReadStream(rStream, rHdr);
-}
-
ScChartArray::~ScChartArray()
{
}
@@ -604,21 +596,3 @@ BOOL ScChartCollection::operator==(const ScChartCollection& rCmp) const
return TRUE;
}
-BOOL ScChartCollection::Load( ScDocument* pDoc, SvStream& rStream )
-{
- BOOL bSuccess = TRUE;
- USHORT nNewCount;
- FreeAll();
-
- ScMultipleReadHeader aHdr( rStream );
-
- rStream >> nNewCount;
-
- for (USHORT i=0; i<nNewCount && bSuccess; i++)
- {
- ScChartArray* pObject = new ScChartArray( pDoc, rStream, aHdr );
- bSuccess = Insert( pObject );
- }
- return bSuccess;
-}
-
diff --git a/sc/source/core/tool/chartpos.cxx b/sc/source/core/tool/chartpos.cxx
index f47d065e0b7c..dbc5298fc0dc 100644
--- a/sc/source/core/tool/chartpos.cxx
+++ b/sc/source/core/tool/chartpos.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chartpos.cxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -40,20 +40,6 @@
#include "rechead.hxx"
-ScChartPositioner::ScChartPositioner( ScDocument* pDoc) :
- pDocument( pDoc ),
- pPositionMap( NULL ),
- eGlue( SC_CHARTGLUE_NA ),
- nStartCol(0),
- nStartRow(0),
- bColHeaders( FALSE ),
- bRowHeaders( FALSE ),
- bDummyUpperLeft( FALSE )
-{
- SetRangeList( ScRange( 0, 0, 0, 0, 0, 0 ) );
- CheckColRowHeaders();
-}
-
ScChartPositioner::ScChartPositioner( ScDocument* pDoc, SCTAB nTab,
SCCOL nStartColP, SCROW nStartRowP, SCCOL nEndColP, SCROW nEndRowP) :
pDocument( pDoc ),
@@ -102,31 +88,6 @@ ScChartPositioner::~ScChartPositioner()
delete pPositionMap;
}
-String ScChartPositioner::ReadStream( SvStream& rStream, ScMultipleReadHeader& rHdr )
-{
- String aName;
- SCCOL nCol2;
- SCROW nRow2;
- SCTAB nTable;
-
- rHdr.StartEntry();
-
- rStream >> nTable;
- rStream >> nStartCol;
- rStream >> nStartRow;
- rStream >> nCol2;
- rStream >> nRow2;
- rStream.ReadByteString( aName, rStream.GetStreamCharSet() );
- rStream >> bColHeaders;
- rStream >> bRowHeaders;
-
- rHdr.EndEntry();
-
- SetRangeList( ScRange( nStartCol, nStartRow, nTable, nCol2, nRow2, nTable ) );
-
- return aName;
-}
-
BOOL ScChartPositioner::operator==(const ScChartPositioner& rCmp) const
{
return bColHeaders == rCmp.bColHeaders
@@ -134,17 +95,6 @@ BOOL ScChartPositioner::operator==(const ScChartPositioner& rCmp) const
&& *aRangeListRef == *rCmp.aRangeListRef;
}
-BOOL ScChartPositioner::IsAtCursor(const ScAddress& rPos) const
-{
- for ( ScRangePtr pR = aRangeListRef->First(); pR;
- pR = aRangeListRef->Next() )
- {
- if ( pR->In( rPos ) )
- return TRUE;
- }
- return FALSE;
-}
-
void ScChartPositioner::SetRangeList( const ScRange& rRange )
{
aRangeListRef = new ScRangeList;
@@ -152,28 +102,6 @@ void ScChartPositioner::SetRangeList( const ScRange& rRange )
InvalidateGlue();
}
-void ScChartPositioner::AddToRangeList( const ScRange& rRange )
-{
- if ( aRangeListRef.Is() )
- aRangeListRef->Append( rRange );
- else
- SetRangeList( rRange );
- InvalidateGlue();
-}
-
-void ScChartPositioner::AddToRangeList( const ScRangeListRef& rAdd )
-{
- if ( aRangeListRef.Is() )
- {
- ULONG nCount = rAdd->Count();
- for (ULONG i=0; i<nCount; i++)
- aRangeListRef->Join( *rAdd->GetObject(i) );
- }
- else
- SetRangeList( rAdd );
- InvalidateGlue();
-}
-
void ScChartPositioner::GlueState()
{
if ( eGlue != SC_CHARTGLUE_NA )
diff --git a/sc/source/core/tool/chgtrack.cxx b/sc/source/core/tool/chgtrack.cxx
index ccaf8d385b68..da52a579b4aa 100644
--- a/sc/source/core/tool/chgtrack.cxx
+++ b/sc/source/core/tool/chgtrack.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chgtrack.cxx,v $
- * $Revision: 1.32 $
+ * $Revision: 1.31.28.5 $
*
* This file is part of OpenOffice.org.
*
@@ -377,19 +377,6 @@ void ScChangeAction::RemoveAllLinks()
}
-void ScChangeAction::RemoveLink( ScChangeAction* p )
-{
- ScChangeActionLinkEntry* pL = pLinkAny;
- while ( pL )
- {
- ScChangeActionLinkEntry* pNextLink = pL->GetNext();
- if ( pL->GetAction() == p )
- delete pL;
- pL = pNextLink;
- }
-}
-
-
void ScChangeAction::RemoveAllAnyLinks()
{
while ( pLinkAny )
@@ -397,19 +384,6 @@ void ScChangeAction::RemoveAllAnyLinks()
}
-BOOL ScChangeAction::DependsOn( ScChangeAction* p ) const
-{
- ScChangeActionLinkEntry* pL = pLinkAny;
- while ( pL )
- {
- if ( pL->GetAction() == p )
- return TRUE;
- pL = pL->GetNext();
- }
- return FALSE;
-}
-
-
BOOL ScChangeAction::RemoveDeletedIn( const ScChangeAction* p )
{
BOOL bRemoved = FALSE;
@@ -495,24 +469,6 @@ void ScChangeAction::SetDeletedIn( ScChangeAction* p )
}
-BOOL ScChangeAction::RemoveDeleted( const ScChangeAction* p )
-{
- BOOL bRemoved = FALSE;
- ScChangeActionLinkEntry* pL = pLinkDeleted;
- while ( pL )
- {
- ScChangeActionLinkEntry* pNextLink = pL->GetNext();
- if ( pL->GetAction() == p )
- {
- delete pL;
- bRemoved = TRUE;
- }
- pL = pNextLink;
- }
- return bRemoved;
-}
-
-
void ScChangeAction::RemoveAllDeleted()
{
while ( pLinkDeleted )
@@ -520,19 +476,6 @@ void ScChangeAction::RemoveAllDeleted()
}
-void ScChangeAction::RemoveDependent( ScChangeAction* p )
-{
- ScChangeActionLinkEntry* pL = pLinkDependent;
- while ( pL )
- {
- ScChangeActionLinkEntry* pNextLink = pL->GetNext();
- if ( pL->GetAction() == p )
- delete pL;
- pL = pNextLink;
- }
-}
-
-
void ScChangeAction::RemoveAllDependent()
{
while ( pLinkDependent )
@@ -1312,23 +1255,6 @@ ScChangeActionDel::~ScChangeActionDel()
delete pLinkMove;
}
-
-BOOL ScChangeActionDel::Store( SvStream& /* rStrm */, ScMultipleWriteHeader& /* rHdr */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- BOOL bOk = ScChangeAction::Store( rStrm, rHdr );
- rStrm << (UINT32) ( pCutOff ? pCutOff->GetActionNumber() : 0 );
- rStrm << (INT16) nCutOff;
- rStrm << (INT16) nDx;
- rStrm << (INT16) nDy;
- return bOk;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
BOOL ScChangeActionDel::StoreLinks( SvStream& rStrm ) const
{
BOOL bOk = ScChangeAction::StoreLinks( rStrm );
@@ -3884,21 +3810,6 @@ void ScChangeTrack::DeleteGeneratedDelContent( ScChangeActionContent* pContent )
}
-ScChangeActionContent* ScChangeTrack::SearchGeneratedDelContentAt(
- const ScBigAddress& rPos, ScChangeActionType eNotInDelType ) const
-{
- for ( ScChangeAction* p = pFirstGeneratedDelContent; p; p = p->GetNext() )
- {
- if ( p->GetType() == SC_CAT_CONTENT && p->GetBigRange().aStart == rPos
- && !p->IsDeletedInDelType( eNotInDelType ) )
- {
- return (ScChangeActionContent*) p;
- }
- }
- return NULL;
-}
-
-
ScChangeActionContent* ScChangeTrack::SearchContentAt(
const ScBigAddress& rPos, ScChangeAction* pButNotThis ) const
{
diff --git a/sc/source/core/tool/chgviset.cxx b/sc/source/core/tool/chgviset.cxx
index 36c47b3236ba..8e5ad0f09ca0 100644
--- a/sc/source/core/tool/chgviset.cxx
+++ b/sc/source/core/tool/chgviset.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: chgviset.cxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -125,77 +125,6 @@ void ScChangeViewSettings::SetTheComment(const String& rString)
}
}
-void ScChangeViewSettings::Load( SvStream& rStream, USHORT nVer )
-{
- ScReadHeader aHdr( rStream );
-
- BYTE nByte;
- UINT32 nDT;
- rStream >> bShowIt;
- rStream >> bIsDate;
- rStream >> nByte; eDateMode = (ScChgsDateMode)nByte;
- rStream >> nDT; aFirstDateTime.SetDate( nDT );
- rStream >> nDT; aFirstDateTime.SetTime( nDT );
- rStream >> nDT; aLastDateTime.SetDate( nDT );
- rStream >> nDT; aLastDateTime.SetTime( nDT );
- rStream >> bIsAuthor;
- rStream >> bEveryoneButMe;
- rStream.ReadByteString( aAuthorToShow, rStream.GetStreamCharSet() );
- rStream >> bIsRange;
- aRangeList.Load( rStream, nVer );
- if ( aHdr.BytesLeft() )
- {
- rStream >> bShowAccepted;
- rStream >> bShowRejected;
- }
- else
- {
- bShowAccepted = FALSE;
- bShowRejected = FALSE;
- }
-
- // Zusaetzlich Kommentar-Informationen lesen (src509)
- if ( aHdr.BytesLeft() ) //#59103#
- {
- rStream >> bIsComment;
- rStream.ReadByteString( aComment, rStream.GetStreamCharSet() );
- }
- else
- {
- bIsComment = FALSE;
- aComment.Erase();
- }
- SetTheComment(aComment);
-}
-
-void ScChangeViewSettings::Store( SvStream& rStream ) const
-{
- ScWriteHeader aHdr( rStream, 42 ); // Groesse, wenn String und RangeList leer sind
-
- rStream << bShowIt;
- rStream << bIsDate;
- rStream << (BYTE) eDateMode;
- rStream << (UINT32) aFirstDateTime.GetDate();
- rStream << (UINT32) aFirstDateTime.GetTime();
- rStream << (UINT32) aLastDateTime.GetDate();
- rStream << (UINT32) aLastDateTime.GetTime();
- rStream << bIsAuthor;
- rStream << bEveryoneButMe;
- rStream.WriteByteString( aAuthorToShow, rStream.GetStreamCharSet() );
- rStream << bIsRange;
- aRangeList.Store( rStream );
- rStream << bShowAccepted;
- rStream << bShowRejected;
-
- // Zusaetzlich Kommentar-Informationen schreiben (src509)
- if(bIsComment || aComment.Len()>0) //#59103#
- {
- rStream << bIsComment;
- rStream.WriteByteString( aComment, rStream.GetStreamCharSet() );
- }
-}
-
-
void ScChangeViewSettings::AdjustDateMode( const ScDocument& rDoc )
{
switch ( eDateMode )
diff --git a/sc/source/core/tool/collect.cxx b/sc/source/core/tool/collect.cxx
index 380e5c457498..7a10eb1ec48d 100644
--- a/sc/source/core/tool/collect.cxx
+++ b/sc/source/core/tool/collect.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: collect.cxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -369,23 +369,23 @@ void StrCollection::Store( SvStream& rStream ) const
// TypedStrCollection
//------------------------------------------------------------------------
-TypedStrData::TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab,
- BOOL bAllStrings )
-{
- if ( pDoc->HasValueData( nCol, nRow, nTab ) )
- {
- pDoc->GetValue( nCol, nRow, nTab, nValue );
- if (bAllStrings)
- pDoc->GetString( nCol, nRow, nTab, aStrValue );
- nStrType = 0;
- }
- else
- {
- pDoc->GetString( nCol, nRow, nTab, aStrValue );
- nValue = 0.0;
- nStrType = 1; //! Typ uebergeben ?
- }
-}
+//UNUSED2008-05 TypedStrData::TypedStrData( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab,
+//UNUSED2008-05 BOOL bAllStrings )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pDoc->HasValueData( nCol, nRow, nTab ) )
+//UNUSED2008-05 {
+//UNUSED2008-05 pDoc->GetValue( nCol, nRow, nTab, nValue );
+//UNUSED2008-05 if (bAllStrings)
+//UNUSED2008-05 pDoc->GetString( nCol, nRow, nTab, aStrValue );
+//UNUSED2008-05 nStrType = 0;
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 pDoc->GetString( nCol, nRow, nTab, aStrValue );
+//UNUSED2008-05 nValue = 0.0;
+//UNUSED2008-05 nStrType = 1; //! Typ uebergeben ?
+//UNUSED2008-05 }
+//UNUSED2008-05 }
DataObject* TypedStrData::Clone() const
{
diff --git a/sc/source/core/tool/compiler.cxx b/sc/source/core/tool/compiler.cxx
index 5e960892a62b..b3123a6d0228 100644
--- a/sc/source/core/tool/compiler.cxx
+++ b/sc/source/core/tool/compiler.cxx
@@ -1162,9 +1162,7 @@ static bool lcl_isValidQuotedText( const String& rFormula, xub_StrLen nSrcPos, P
struct Convention_A1 : public ScCompiler::Convention
{
Convention_A1( ScAddress::Convention eConv ) : ScCompiler::Convention( eConv ) { }
- static String MakeColStr( SCCOL nCol );
static void MakeColStr( rtl::OUStringBuffer& rBuffer, SCCOL nCol );
- static String MakeRowStr( SCROW nRow );
static void MakeRowStr( rtl::OUStringBuffer& rBuffer, SCROW nRow );
ParseResult parseAnyToken( const String& rFormula,
@@ -1185,14 +1183,6 @@ struct Convention_A1 : public ScCompiler::Convention
}
};
-String Convention_A1::MakeColStr( SCCOL nCol )
-{
- if ( !ValidCol( nCol) )
- return ScGlobal::GetRscString(STR_NO_REF_TABLE);
- else
- return ::ColToAlpha( nCol);
-}
-
void Convention_A1::MakeColStr( rtl::OUStringBuffer& rBuffer, SCCOL nCol )
{
if ( !ValidCol( nCol) )
@@ -1201,14 +1191,6 @@ void Convention_A1::MakeColStr( rtl::OUStringBuffer& rBuffer, SCCOL nCol )
::ColToAlpha( rBuffer, nCol);
}
-String Convention_A1::MakeRowStr( SCROW nRow )
-{
- if ( !ValidRow(nRow) )
- return ScGlobal::GetRscString(STR_NO_REF_TABLE);
- else
- return String::CreateFromInt32( nRow + 1 );
-}
-
void Convention_A1::MakeRowStr( rtl::OUStringBuffer& rBuffer, SCROW nRow )
{
if ( !ValidRow(nRow) )
@@ -4592,16 +4574,6 @@ S lcl_adjval( S& n, T pos, T max, BOOL bRel )
return n;
}
-void ScCompiler::AdjustReference( SingleRefData& r )
-{
- if( r.IsColRel() )
- r.nCol = lcl_adjval( r.nCol, aPos.Col(), MAXCOL, r.IsColRel() );
- if( r.IsRowRel() )
- r.nRow = lcl_adjval( r.nRow, aPos.Row(), MAXROW, r.IsRowRel() );
- if( r.IsTabRel() )
- r.nTab = lcl_adjval( r.nTab, aPos.Tab(), static_cast<SCTAB>(nMaxTab), r.IsTabRel() );
-}
-
// reference of named range with relative references
void ScCompiler::SetRelNameReference()
diff --git a/sc/source/core/tool/dbcolect.cxx b/sc/source/core/tool/dbcolect.cxx
index f52f31029e20..c9e521aebaed 100644
--- a/sc/source/core/tool/dbcolect.cxx
+++ b/sc/source/core/tool/dbcolect.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbcolect.cxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.17.32.5 $
*
* This file is part of OpenOffice.org.
*
@@ -89,294 +89,6 @@ ScDBData::ScDBData( const String& rName,
SetImportParam( aImportParam );
}
-ScDBData::ScDBData( SvStream& /* rStream */, ScMultipleReadHeader& /* rHdr */ ) :
- bDoSize (FALSE),
- bKeepFmt (FALSE),
- bStripData (FALSE),
- bSortUserDef (FALSE),
- nSortUserIndex (0),
- bIsAdvanced (FALSE),
- nSubUserIndex (0),
- bDBSelection (FALSE),
- bDBSql (TRUE),
- nDBType (ScDbTable),
- nIndex (0),
- bAutoFilter (FALSE),
- bModified (FALSE)
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rHdr.StartEntry();
-
- USHORT i;
- USHORT j;
- BYTE nDummy;
- rtl_TextEncoding eCharSet = rStream.GetStreamCharSet();
-
- rStream.ReadByteString( aName, eCharSet );
- rStream >> nTable;
- rStream >> nStartCol;
- rStream >> nStartRow;
- rStream >> nEndCol;
- rStream >> nEndRow;
- rStream >> bByRow;
- rStream >> bHasHeader;
- rStream >> bSortCaseSens;
- rStream >> bIncludePattern;
- rStream >> bSortInplace;
- rStream >> nSortDestTab;
- rStream >> nSortDestCol;
- rStream >> nSortDestRow;
- rStream >> bQueryInplace;
- rStream >> bQueryCaseSens;
- rStream >> bQueryRegExp;
- rStream >> bQueryDuplicate;
- rStream >> nQueryDestTab;
- rStream >> nQueryDestCol;
- rStream >> nQueryDestRow;
- rStream >> bSubRemoveOnly;
- rStream >> bSubReplace;
- rStream >> bSubPagebreak;
- rStream >> bSubCaseSens;
- rStream >> bSubDoSort;
- rStream >> bSubAscending;
- rStream >> bSubIncludePattern;
- rStream >> bSubUserDef;
- rStream >> bDBImport;
-
- rStream.ReadByteString( aDBName, eCharSet );
- rStream.ReadByteString( aDBStatement, eCharSet );
- rStream >> bDBNative;
-
- for (i=0; i<MAXSORT; i++)
- {
- rStream >> bDoSort[i];
- USHORT n16;
- rStream >> n16; nSortField[i] = n16;
- rStream >> bAscending[i];
- }
- for (i=0; i<MAXQUERY; i++)
- {
- rStream >> bDoQuery[i];
- rStream >> nQueryField[i];
- rStream >> nDummy; eQueryOp[i] = (ScQueryOp) nDummy;
- rStream >> bQueryByString[i];
- pQueryStr[i] = new String;
- rStream.ReadByteString( *pQueryStr[i], eCharSet );
- rStream >> nQueryVal[i];
- rStream >> nDummy; eQueryConnect[i] = (ScQueryConnect) nDummy;
- }
- for (i=0; i<MAXSUBTOTAL; i++)
- {
- rStream >> bDoSubTotal[i];
- rStream >> nSubField[i];
-
- USHORT nCount;
- rStream >> nCount;
- nSubTotals[i] = nCount;
-
- pSubTotals[i] = nCount ? new USHORT [nCount] : NULL;
- pFunctions[i] = nCount ? new ScSubTotalFunc [nCount] : NULL;
-
- for (j=0; j<nCount; j++)
- {
- rStream >> pSubTotals[i][j];
- rStream >> nDummy; pFunctions[i][j] = (ScSubTotalFunc)nDummy;
- }
- }
-
- if (rHdr.BytesLeft())
- rStream >> nIndex;
-
- if (rHdr.BytesLeft())
- rStream >> bDBSelection;
-
- if (rHdr.BytesLeft())
- rStream >> bDBSql; // Default = TRUE
-
- if (rHdr.BytesLeft())
- {
- rStream >> nSubUserIndex;
- rStream >> bSortUserDef;
- rStream >> nSortUserIndex;
- }
-
- if (rHdr.BytesLeft())
- {
- rStream >> bDoSize;
- rStream >> bKeepFmt;
- }
-
- if (rHdr.BytesLeft())
- rStream >> bStripData;
-
- if (rHdr.BytesLeft())
- rStream >> nDBType; // Default = ScDbTable
-
- if (rHdr.BytesLeft())
- {
- rStream >> bIsAdvanced; // Default = FALSE
- if (bIsAdvanced)
- rStream >> aAdvSource;
- }
-
- // aSortLocale / aSortAlgorithm are not in binary file format
-
- rHdr.EndEntry();
-
- // #43070# rottes Dokument?!?
- // nEndCol war 258
- // und auch die CellInfo pPattern in ScOutputData FindRotated waren NULL
- if ( nStartCol > MAXCOL )
- {
- DBG_ERRORFILE( "nStartCol > MAXCOL" );
- nStartCol = MAXCOL;
- }
- if ( nStartRow > MAXROW )
- {
- DBG_ERRORFILE( "nStartRow > MAXROW" );
- nStartRow = MAXROW;
- }
- if ( nEndCol > MAXCOL )
- {
- DBG_ERRORFILE( "nEndCol > MAXCOL" );
- nEndCol = MAXCOL;
- }
- if ( nEndRow > MAXROW )
- {
- DBG_ERRORFILE( "nEndRow > MAXROW" );
- nEndRow = MAXROW;
- }
- if ( nQueryDestCol > MAXCOL )
- {
- DBG_ERRORFILE( "nQueryDestCol > MAXCOL" );
- nQueryDestCol = MAXCOL;
- }
- if ( nQueryDestRow > MAXROW )
- {
- DBG_ERRORFILE( "nQueryDestRow > MAXROW" );
- nQueryDestRow = MAXROW;
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-BOOL ScDBData::Store( SvStream& /* rStream */, ScMultipleWriteHeader& /* rHdr */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rHdr.StartEntry();
-
- USHORT i;
- USHORT j;
- rtl_TextEncoding eCharSet = rStream.GetStreamCharSet();
-
- rStream.WriteByteString( aName, eCharSet );
- rStream << nTable;
- rStream << nStartCol;
- rStream << nStartRow;
- rStream << nEndCol;
- rStream << nEndRow;
- rStream << bByRow;
- rStream << bHasHeader;
- rStream << bSortCaseSens;
- rStream << bIncludePattern;
- rStream << bSortInplace;
- rStream << nSortDestTab;
- rStream << nSortDestCol;
- rStream << nSortDestRow;
- rStream << bQueryInplace;
- rStream << bQueryCaseSens;
- rStream << bQueryRegExp;
- rStream << bQueryDuplicate;
- rStream << nQueryDestTab;
- rStream << nQueryDestCol;
- rStream << nQueryDestRow;
- rStream << bSubRemoveOnly;
- rStream << bSubReplace;
- rStream << bSubPagebreak;
- rStream << bSubCaseSens;
- rStream << bSubDoSort;
- rStream << bSubAscending;
- rStream << bSubIncludePattern;
- rStream << bSubUserDef;
- rStream << bDBImport;
-
- rStream.WriteByteString( aDBName, eCharSet );
- rStream.WriteByteString( aDBStatement, eCharSet );
- rStream << bDBNative;
-
- for (i=0; i<MAXSORT; i++)
- {
- rStream << bDoSort[i];
- DBG_ASSERT( !SC_ROWLIMIT_MORE_THAN_32K ||
- (0 <= nSortField[i] && nSortField[i] < SCROWS32K),
- "rowlimit increased, bad file data");
- rStream << (USHORT) nSortField[i];
- rStream << bAscending[i];
- }
- for (i=0; i<MAXQUERY; i++)
- {
- rStream << bDoQuery[i];
- rStream << nQueryField[i];
- rStream << (BYTE) eQueryOp[i];
- rStream << bQueryByString[i];
- rStream.WriteByteString( *pQueryStr[i], eCharSet );
- rStream << nQueryVal[i];
- rStream << (BYTE) eQueryConnect[i];
- }
- for (i=0; i<MAXSUBTOTAL; i++)
- {
- rStream << bDoSubTotal[i];
- rStream << nSubField[i];
-
- USHORT nCount = nSubTotals[i];
- rStream << nCount;
- for (j=0; j<nCount; j++)
- {
- rStream << pSubTotals[i][j];
- rStream << (BYTE)pFunctions[i][j];
- }
- }
- rStream << nIndex; // seit 24.10.95
-
- rStream << bDBSelection;
-
- rStream << bDBSql; // seit 4.2.97
-
- rStream << nSubUserIndex; // seit 5.2.97
- rStream << bSortUserDef;
- rStream << nSortUserIndex;
-
- rStream << bDoSize; // seit 13.2.97
- rStream << bKeepFmt;
-
- rStream << bStripData; // seit 23.2.97
-
- if( rStream.GetVersion() > SOFFICE_FILEFORMAT_40 )
- {
- // folgendes gab's in der 4.0 noch nicht
-
- // alte Versionen suchen immer nach Tables und Queries
- rStream << nDBType; // seit 20.11.97
-
- // starting from 591, store advanced filter source range
- // only if set, to avoid unneccessary warnings
- if (bIsAdvanced)
- {
- rStream << (BOOL) TRUE;
- rStream << aAdvSource;
- }
- }
-
- // aSortLocale / aSortAlgorithm are not in binary file format
-
- rHdr.EndEntry();
- return TRUE;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
ScDBData::ScDBData( const ScDBData& rData ) :
DataObject(),
ScRefreshTimer ( rData ),
@@ -619,12 +331,12 @@ ScDBData::~ScDBData()
}
}
-BOOL ScDBData::IsBeyond(SCROW nMaxRow) const
-{
- return ( nStartRow > nMaxRow ||
- nEndRow > nMaxRow ||
- nQueryDestRow > nMaxRow );
-}
+//UNUSED2008-05 BOOL ScDBData::IsBeyond(SCROW nMaxRow) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return ( nStartRow > nMaxRow ||
+//UNUSED2008-05 nEndRow > nMaxRow ||
+//UNUSED2008-05 nQueryDestRow > nMaxRow );
+//UNUSED2008-05 }
String ScDBData::GetSourceString() const
{
@@ -976,14 +688,6 @@ BOOL ScDBData::IsDBAtArea(SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCR
&& (nCol2 == nEndCol) && (nRow2 == nEndRow));
}
-String ScDBData::GetTargetName(const String& rDocName) const
-{
- String aTargetName(rDocName);
- aTargetName += '.';
- aTargetName += aName;
- return aTargetName;
-}
-
DataObject* ScDBData::Clone() const
{
return new ScDBData(*this);
@@ -1053,60 +757,6 @@ BOOL ScDBCollection::SearchName( const String& rName, USHORT& rIndex ) const
return Search( &aDataObj, rIndex );
}
-BOOL ScDBCollection::Load( SvStream& rStream )
-{
- BOOL bSuccess = TRUE;
- USHORT nNewCount;
-
- while( nCount > 0 )
- AtFree(0); // alles loeschen
-
- ScMultipleReadHeader aHdr( rStream );
-
- rStream >> nNewCount;
- for (USHORT i=0; i<nNewCount && bSuccess; i++)
- {
- ScDBData* pData = new ScDBData( rStream, aHdr );
- Insert( pData );
- }
- if (aHdr.BytesLeft()) // ... Erweiterungen
- rStream >> nEntryIndex;
- return bSuccess;
-}
-
-BOOL ScDBCollection::Store( SvStream& rStream ) const
-{
- ScMultipleWriteHeader aHdr( rStream );
-
- USHORT i;
- USHORT nSaveCount = nCount;
- SCROW nSaveMaxRow = pDoc->GetSrcMaxRow();
- if ( nSaveMaxRow < MAXROW )
- {
- nSaveCount = 0;
- for (i=0; i<nCount; i++)
- if ( !((const ScDBData*)At(i))->IsBeyond(nSaveMaxRow) )
- ++nSaveCount;
-
- if ( nSaveCount < nCount )
- pDoc->SetLostData(); // Warnung ausgeben
- }
-
- rStream << nSaveCount;
-
- BOOL bSuccess = TRUE;
- for (i=0; i<nCount && bSuccess; i++)
- {
- const ScDBData* pDBData = (const ScDBData*)At(i);
- if ( nSaveMaxRow == MAXROW || !pDBData->IsBeyond(nSaveMaxRow) )
- bSuccess = pDBData->Store( rStream, aHdr );
- }
-
- rStream << nEntryIndex; // seit 24.10.95
-
- return bSuccess;
-}
-
void ScDBCollection::DeleteOnTab( SCTAB nTab )
{
USHORT nPos = 0;
diff --git a/sc/source/core/tool/ddelink.cxx b/sc/source/core/tool/ddelink.cxx
index c36404218187..7a8850fb2c76 100644
--- a/sc/source/core/tool/ddelink.cxx
+++ b/sc/source/core/tool/ddelink.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ddelink.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -236,11 +236,6 @@ void __EXPORT ScDdeLink::DataChanged( const String& rMimeType,
}
}
-void ScDdeLink::NewData(SCSIZE nCols, SCSIZE nRows)
-{
- pResult = new ScMatrix( nCols, nRows );
-}
-
void ScDdeLink::ResetValue()
{
pResult.Clear();
diff --git a/sc/source/core/tool/detdata.cxx b/sc/source/core/tool/detdata.cxx
index 29feb4e07aff..6f0d0239f02c 100644
--- a/sc/source/core/tool/detdata.cxx
+++ b/sc/source/core/tool/detdata.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: detdata.cxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -117,58 +117,5 @@ BOOL ScDetOpList::operator==( const ScDetOpList& r ) const
return bEqual;
}
-void ScDetOpList::Load( SvStream& rStream )
-{
- ScMultipleReadHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- USHORT nNewCount;
- rStream >> nNewCount;
-
- ScAddress aPos;
- USHORT nOper;
-
- for (USHORT i=0; i<nNewCount; i++)
- {
- // 1) Position (ScAddress)
- // 2) Operation (USHORT)
-
- aHdr.StartEntry();
-
- rStream >> aPos;
- rStream >> nOper;
- Append( new ScDetOpData( aPos, (ScDetOpType) nOper ) );
-
- aHdr.EndEntry();
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-void ScDetOpList::Store( SvStream& rStream ) const
-{
- ScMultipleWriteHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
-
- USHORT nCount = Count();
- rStream << nCount;
-
- for (USHORT i=0; i<nCount; i++)
- {
- // 1) Position (ScAddress)
- // 2) Operation (USHORT)
-
- aHdr.StartEntry();
-
- ScDetOpData* pData = (*this)[i];
- rStream << pData->GetPos();
- rStream << (USHORT) pData->GetOperation();
-
- aHdr.EndEntry();
- }
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
diff --git a/sc/source/core/tool/docoptio.cxx b/sc/source/core/tool/docoptio.cxx
index 316a1dab172f..ae6ac34a6193 100644
--- a/sc/source/core/tool/docoptio.cxx
+++ b/sc/source/core/tool/docoptio.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docoptio.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -112,84 +112,6 @@ ScDocOptions::~ScDocOptions()
//------------------------------------------------------------------------
-void ScDocOptions::Save(SvStream& rStream, BOOL bConfig) const
-{
- ScWriteHeader aHdr( rStream, 28 );
-
- rStream << bIsIgnoreCase;
- rStream << bIsIter;
- rStream << nIterCount;
- rStream << fIterEps;
- rStream << nPrecStandardFormat;
- rStream << nDay;
- rStream << nMonth;
- rStream << nYear;
- rStream << nTabDistance;
- rStream << bCalcAsShown;
- rStream << bMatchWholeCell;
- rStream << bDoAutoSpell;
- rStream << bLookUpColRowNames;
-
- if ( bConfig || rStream.GetVersion() > SOFFICE_FILEFORMAT_40 ) // nicht bei 4.0 Export
- {
- if ( !bConfig && 1901 <= nYear2000 && nYear2000 <= 1999 )
- { // fuer SO5 auf altes Format zweistellig abbilden
- rStream << (USHORT) (nYear2000 - 1901);
- }
- else
- { // neues Format vierstellig, beliebiges Jahrhundert
- // erzeugt in SO5 vor src513e ein Warning beim Laden
- rStream << (USHORT) 29; // Dummy, alter SO5 Default
- rStream << nYear2000; // echter Wert
- }
- }
-}
-
-void ScDocOptions::Load(SvStream& rStream)
-{
- ScReadHeader aHdr( rStream );
-
- rStream >> bIsIgnoreCase;
- rStream >> bIsIter;
- rStream >> nIterCount;
- rStream >> fIterEps;
- rStream >> nPrecStandardFormat;
- rStream >> nDay;
- rStream >> nMonth;
- rStream >> nYear;
- if ( aHdr.BytesLeft() )
- rStream >> nTabDistance;
- else
- nTabDistance = lcl_GetDefaultTabDist();
- if ( aHdr.BytesLeft() )
- rStream >> bCalcAsShown;
- else
- bCalcAsShown = FALSE;
- if ( aHdr.BytesLeft() )
- rStream >> bMatchWholeCell;
- else
- bMatchWholeCell = FALSE;
- if ( aHdr.BytesLeft() )
- rStream >> bDoAutoSpell;
- else
- bDoAutoSpell = FALSE;
- if ( aHdr.BytesLeft() )
- rStream >> bLookUpColRowNames;
- else
- bLookUpColRowNames = TRUE;
- if ( aHdr.BytesLeft() )
- {
- rStream >> nYear2000; // SO5 ab 24.06.98
- // SO51 ab src513e
- if ( aHdr.BytesLeft() )
- rStream >> nYear2000; // der echte Wert
- else
- nYear2000 += 1901; // altes zweistelliges auf neues vierstelliges
- }
- else
- nYear2000 = 18 + 1901; // alter Wert vor SO5
-}
-
void ScDocOptions::ResetDocOptions()
{
bIsIgnoreCase = FALSE;
@@ -213,9 +135,9 @@ void ScDocOptions::ResetDocOptions()
// ScTpCalcItem - Daten fuer die CalcOptions-TabPage
//========================================================================
-ScTpCalcItem::ScTpCalcItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
-{
-}
+//UNUSED2008-05 ScTpCalcItem::ScTpCalcItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
//------------------------------------------------------------------------
diff --git a/sc/source/core/tool/hints.cxx b/sc/source/core/tool/hints.cxx
index b93ab6d455f2..531eddff57d8 100644
--- a/sc/source/core/tool/hints.cxx
+++ b/sc/source/core/tool/hints.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: hints.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -48,13 +48,6 @@ TYPEINIT1(ScDBRangeRefreshedHint, SfxHint);
// ScPaintHint - Angabe, was neu gezeichnet werden muss
// -----------------------------------------------------------------------
-ScPaintHint::ScPaintHint() :
- aRange( 0,0,0, MAXCOL,MAXROW,MAXTAB ),
- nParts( PAINT_ALL ),
- bPrint( TRUE )
-{
-}
-
ScPaintHint::ScPaintHint( const ScRange& rRng, USHORT nPaint ) :
aRange( rRng ),
nParts( nPaint ),
@@ -88,10 +81,10 @@ ScUpdateRefHint::~ScUpdateRefHint()
// ScPointerChangedHint - Pointer ist ungueltig geworden
// -----------------------------------------------------------------------
-ScPointerChangedHint::ScPointerChangedHint( USHORT nF ) :
- nFlags( nF )
-{
-}
+//UNUSED2008-05 ScPointerChangedHint::ScPointerChangedHint( USHORT nF ) :
+//UNUSED2008-05 nFlags( nF )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScPointerChangedHint::~ScPointerChangedHint()
{
diff --git a/sc/source/core/tool/inputopt.cxx b/sc/source/core/tool/inputopt.cxx
index a13df7414439..5c5baddb2a2b 100644
--- a/sc/source/core/tool/inputopt.cxx
+++ b/sc/source/core/tool/inputopt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputopt.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -114,55 +114,6 @@ const ScInputOptions& ScInputOptions::operator=( const ScInputOptions& rCpy )
return *this;
}
-//------------------------------------------------------------------------
-
-SvStream& operator>>( SvStream& rStream, ScInputOptions& rOpt )
-{
- rOpt.SetDefaults();
-
- ScReadHeader aHdr( rStream );
-
- rStream >> rOpt.nMoveDir;
- rStream >> rOpt.bMoveSelection;
- rStream >> rOpt.bEnterEdit;
- rStream >> rOpt.bExtendFormat;
-
- if (aHdr.BytesLeft())
- rStream >> rOpt.bRangeFinder; // ab 363
-
- if (aHdr.BytesLeft())
- rStream >> rOpt.bExpandRefs; // ab 364v
-
- if (aHdr.BytesLeft())
- rStream >> rOpt.bMarkHeader; // ab 364irgendwas
-
- if (aHdr.BytesLeft())
- rStream >> rOpt.bUseTabCol; // ab 373d
-
- // newer additions are not in old file format
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-SvStream& operator<<( SvStream& rStream, const ScInputOptions& rOpt )
-{
- ScWriteHeader aHdr( rStream, 6 );
-
- rStream << rOpt.nMoveDir;
- rStream << rOpt.bMoveSelection;
- rStream << rOpt.bEnterEdit;
- rStream << rOpt.bExtendFormat;
- rStream << rOpt.bRangeFinder;
- rStream << rOpt.bExpandRefs;
- rStream << rOpt.bMarkHeader;
- rStream << rOpt.bUseTabCol;
-
- // newer additions are not in old file format
-
- return rStream;
-}
//==================================================================
// Config Item containing input options
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx
index 8f51f88cef5d..6d54408d8eaa 100644
--- a/sc/source/core/tool/interpr4.cxx
+++ b/sc/source/core/tool/interpr4.cxx
@@ -2809,13 +2809,6 @@ void ScInterpreter::ScErrCell()
}
*/
-
-void ScInterpreter::ScDefPar()
-{
- PushInt(0);
-}
-
-
void ScInterpreter::ScDBArea()
{
ScDBData* pDBData = pDok->GetDBCollection()->FindIndex( pCur->GetIndex());
diff --git a/sc/source/core/tool/interpr5.cxx b/sc/source/core/tool/interpr5.cxx
index 8b4eeacdd753..72f1b070d02f 100644
--- a/sc/source/core/tool/interpr5.cxx
+++ b/sc/source/core/tool/interpr5.cxx
@@ -644,26 +644,6 @@ void ScInterpreter::MFastMult(ScMatrix* pA, ScMatrix* pB, ScMatrix* pR,
}
}
-void ScInterpreter::MFastSub(ScMatrix* pA, ScMatrix* pB, ScMatrix* pR,
- SCSIZE n, SCSIZE m)
- // Subtrahiert n x m Mat a - m x l Mat b nach Mat r
-{
- for (SCSIZE i = 0; i < n; i++)
- {
- for (SCSIZE j = 0; j < m; j++)
- pR->PutDouble(pA->GetDouble(i,j) - pB->GetDouble(i,j), i, j);
- }
-}
-
-void ScInterpreter::MFastTrans(ScMatrix* pA, ScMatrix* pR,
- SCSIZE n, SCSIZE m)
- // Transponiert n x m Mat a nach Mat r
-{
- for (SCSIZE i = 0; i < n; i++)
- for (SCSIZE j = 0; j < m; j++)
- pR->PutDouble(pA->GetDouble(i, j), j, i);
-}
-
/* Matrix LUP decomposition according to the pseudocode of "Introduction to
* Algorithms" by Cormen, Leiserson, Rivest, Stein.
diff --git a/sc/source/core/tool/printopt.cxx b/sc/source/core/tool/printopt.cxx
index 2bc6fcf1904f..be4c9467540b 100644
--- a/sc/source/core/tool/printopt.cxx
+++ b/sc/source/core/tool/printopt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: printopt.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -90,9 +90,9 @@ inline int ScPrintOptions::operator!=( const ScPrintOptions& rOpt ) const
// -----------------------------------------------------------------------
-ScTpPrintItem::ScTpPrintItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
-{
-}
+//UNUSED2008-05 ScTpPrintItem::ScTpPrintItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScTpPrintItem::ScTpPrintItem( USHORT nWhichP, const ScPrintOptions& rOpt ) :
SfxPoolItem ( nWhichP ),
@@ -210,9 +210,4 @@ void ScPrintCfg::SetOptions( const ScPrintOptions& rNew )
SetModified();
}
-void ScPrintCfg::OptionsChanged()
-{
- SetModified();
-}
-
diff --git a/sc/source/core/tool/progress.cxx b/sc/source/core/tool/progress.cxx
index 7b359658d414..fc7a7088d2a9 100644
--- a/sc/source/core/tool/progress.cxx
+++ b/sc/source/core/tool/progress.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: progress.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -143,26 +143,6 @@ ScProgress::~ScProgress()
}
}
-
-// static
-
-void ScProgress::SetAllowInterpret( BOOL bAllow )
-{ // Grundzustand: Allow, Dummy gesetzt, pOld==NULL
- if ( !bAllow && bAllowInterpretProgress )
- { // vorherigen/Dummy merken und Dummy setzen
- pOldInterpretProgress = pInterpretProgress;
- pInterpretProgress = &theDummyInterpretProgress;
- bAllowInterpretProgress = FALSE;
- }
- else if ( bAllow && !bAllowInterpretProgress )
- { // Dummy weg und vorherigen/Dummy setzen
- pInterpretProgress = pOldInterpretProgress;
- pOldInterpretProgress = NULL;
- bAllowInterpretProgress = TRUE;
- }
-}
-
-
// static
void ScProgress::CreateInterpretProgress( ScDocument* pDoc, BOOL bWait )
diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx
index 80a3f9fc49d8..e18a2aab06e1 100644
--- a/sc/source/core/tool/rangelst.cxx
+++ b/sc/source/core/tool/rangelst.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangelst.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -249,53 +249,6 @@ BOOL ScRangeList::operator==( const ScRangeList& r ) const
return TRUE;
}
-
-BOOL ScRangeList::Store( SvStream& rStream ) const
-{
-// BOOL bOk = TRUE;
- ULONG nListCount = Count();
- ULONG nBytes = sizeof(UINT32) + nListCount * sizeof(ScRange);
- ScWriteHeader aHdr( rStream, nBytes );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << (UINT32) nCount;
- for ( ULONG j = 0; j < nCount && bOk; j++ )
- {
- rStream << *GetObject( j );
- if( rStream.GetError() != SVSTREAM_OK )
- bOk = FALSE;
- }
- return bOk;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
-BOOL ScRangeList::Load( SvStream& rStream, USHORT /* nVer */ )
-{
-// BOOL bOk = TRUE;
- ScReadHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- ScRange aRange;
- UINT32 n;
- rStream >> n;
- ULONG nCount = n;
- for ( ULONG j = 0; j < nCount && bOk; j++ )
- {
- rStream >> aRange;
- Append( aRange );
- if( rStream.GetError() != SVSTREAM_OK )
- bOk = FALSE;
- }
- return bOk;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
BOOL ScRangeList::UpdateReference( UpdateRefMode eUpdateRefMode,
ScDocument* pDoc, const ScRange& rWhere,
SCsCOL nDx, SCsROW nDy, SCsTAB nDz )
@@ -348,19 +301,6 @@ ScRange* ScRangeList::Find( const ScAddress& rAdr ) const
}
-ScRange* ScRangeList::Find( const ScRange& rRange ) const
-{
- ULONG nListCount = Count();
- for ( ULONG j = 0; j < nListCount; j++ )
- {
- ScRange* pR = GetObject( j );
- if ( *pR == rRange )
- return pR;
- }
- return NULL;
-}
-
-
ScRangeList::ScRangeList( const ScRangeList& rList ) :
ScRangeListBase(),
SvRefBase()
@@ -371,12 +311,6 @@ ScRangeList::ScRangeList( const ScRangeList& rList ) :
}
-ScRangeList* ScRangeList::Clone() const
-{
- return new ScRangeList( *this );
-}
-
-
ScRangeList& ScRangeList::operator=(const ScRangeList& rList)
{
RemoveAll();
@@ -562,74 +496,6 @@ BOOL ScRangePairList::operator==( const ScRangePairList& r ) const
}
-BOOL ScRangePairList::Store( SvStream& /* rStream */ ) const
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- BOOL bOk = TRUE;
- ULONG nCount = Count();
- ULONG nBytes = sizeof(UINT32) + nCount * sizeof(ScRangePair);
- ScWriteHeader aHdr( rStream, nBytes );
- rStream << (UINT32) nCount;
- for ( ULONG j = 0; j < nCount && bOk; j++ )
- {
- rStream << *GetObject( j );
- if( rStream.GetError() != SVSTREAM_OK )
- bOk = FALSE;
- }
- return bOk;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
-BOOL ScRangePairList::Load( SvStream& rStream, USHORT /* nVer */ )
-{
-// BOOL bOk = TRUE;
- ScReadHeader aHdr( rStream );
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- ScRangePair aRangePair;
- ScRange aRange;
- UINT32 n;
- rStream >> n;
- ULONG nCount = n;
- for ( ULONG j = 0; j < nCount && bOk; j++ )
- {
- if ( nVer < SC_COLROWNAME_RANGEPAIR )
- { // aus technical Beta 4.0 versuchen mit altem Verhalten zu uebernehmen
- rStream >> aRange;
- aRangePair.GetRange(0) = aRange;
- ScRange& r = aRangePair.GetRange(1);
- r = aRange;
- SCCOL nCol2 = aRange.aEnd.Col();
- SCROW nRow2 = aRange.aEnd.Row();
- if ( static_cast<SCCOLROW>(nCol2 - aRange.aStart.Col()) >=
- (nRow2 - aRange.aStart.Row()) )
- { // ColNames
- r.aStart.SetRow( Min( static_cast<SCROW>(nRow2 + 1), MAXROW ) );
- r.aEnd.SetRow( MAXROW );
- }
- else
- { // RowNames
- r.aStart.SetCol( Min( static_cast<SCCOL>(nCol2 + 1), MAXCOL ) );
- r.aEnd.SetCol( MAXCOL );
- }
- }
- else
- rStream >> aRangePair;
- Append( aRangePair );
- if( rStream.GetError() != SVSTREAM_OK )
- bOk = FALSE;
- }
- return bOk;
-#else
- return FALSE;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
-}
-
-
BOOL ScRangePairList::UpdateReference( UpdateRefMode eUpdateRefMode,
ScDocument* pDoc, const ScRange& rWhere,
SCsCOL nDx, SCsROW nDy, SCsTAB nDz )
diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx
index 23deb97add98..cabb19c82802 100644
--- a/sc/source/core/tool/rangenam.cxx
+++ b/sc/source/core/tool/rangenam.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangenam.cxx,v $
- * $Revision: 1.29 $
+ * $Revision: 1.28.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -187,22 +187,6 @@ DataObject* ScRangeData::Clone() const
return new ScRangeData(*this);
}
-BOOL ScRangeData::IsBeyond( SCROW nMaxRow ) const
-{
- if ( aPos.Row() > nMaxRow )
- return TRUE;
-
- ScToken* t;
- pCode->Reset();
- while ( ( t = pCode->GetNextReference() ) != NULL )
- if ( t->GetSingleRef().nRow > nMaxRow ||
- (t->GetType() == svDoubleRef &&
- t->GetDoubleRef().Ref2.nRow > nMaxRow) )
- return TRUE;
-
- return FALSE;
-}
-
void ScRangeData::GuessPosition()
{
// setzt eine Position, mit der alle relative Referenzen bei CalcAbsIfRel
diff --git a/sc/source/core/tool/rangeutl.cxx b/sc/source/core/tool/rangeutl.cxx
index 66f2315ec1bd..ea94d0ea9f23 100644
--- a/sc/source/core/tool/rangeutl.cxx
+++ b/sc/source/core/tool/rangeutl.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rangeutl.cxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.12.30.4 $
*
* This file is part of OpenOffice.org.
*
@@ -450,11 +450,6 @@ sal_Int32 ScRangeStringConverter::GetTokenCount( const OUString& rString, sal_Un
return nCount;
}
-void ScRangeStringConverter::AppendString( OUString& rString, const OUString& rNewStr, sal_Unicode cSeperator )
-{
- AssignString( rString, rNewStr, sal_True, cSeperator );
-}
-
//___________________________________________________________________
sal_Bool ScRangeStringConverter::GetAddressFromString(
@@ -776,15 +771,6 @@ ScArea::ScArea( const ScArea& r ) :
//------------------------------------------------------------------------
-void ScArea::Clear()
-{
- nTab = 0;
- nColStart = nColEnd = 0;
- nRowStart = nRowEnd = 0;
-}
-
-//------------------------------------------------------------------------
-
ScArea& ScArea::operator=( const ScArea& r )
{
nTab = r.nTab;
@@ -808,48 +794,6 @@ BOOL ScArea::operator==( const ScArea& r ) const
//------------------------------------------------------------------------
-SvStream& operator>> ( SvStream& rStream, ScArea& /* rArea */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream >> rArea.nTab;
- rStream >> rArea.nColStart;
- rStream >> rArea.nRowStart;
- rStream >> rArea.nColEnd;
- rStream >> rArea.nRowEnd;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-SvStream& operator<< ( SvStream& rStream, const ScArea& /* rArea */ )
-{
-#if SC_ROWLIMIT_STREAM_ACCESS
-#error address types changed!
- rStream << rArea.nTab;
- rStream << rArea.nColStart;
- rStream << rArea.nRowStart;
- rStream << rArea.nColEnd;
- rStream << rArea.nRowEnd;
-#endif // SC_ROWLIMIT_STREAM_ACCESS
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-void ScArea::GetString( String& rStr, BOOL bAbsolute, ScDocument* pDoc,
- ScAddress::Details const & rDetails ) const
-{
- ScRange aRange( ScAddress( nColStart, nRowStart, nTab ),
- ScAddress( nColEnd, nRowEnd, nTab ) );
- USHORT nFlags = bAbsolute ? SCA_COL_ABSOLUTE | SCA_ROW_ABSOLUTE : 0;
-
- aRange.Format( rStr, nFlags, pDoc, rDetails );
-}
-
-//------------------------------------------------------------------------
-
ScAreaNameIterator::ScAreaNameIterator( ScDocument* pDoc ) :
aStrNoName( ScGlobal::GetRscString(STR_DB_NONAME) )
{
diff --git a/sc/source/core/tool/rechead.cxx b/sc/source/core/tool/rechead.cxx
index efd7792738e4..7e8a271470e4 100644
--- a/sc/source/core/tool/rechead.cxx
+++ b/sc/source/core/tool/rechead.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rechead.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/source/core/tool/refdata.cxx b/sc/source/core/tool/refdata.cxx
index de052a35c96a..1a68bfa6bbac 100644
--- a/sc/source/core/tool/refdata.cxx
+++ b/sc/source/core/tool/refdata.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refdata.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -85,111 +85,110 @@ void SingleRefData::CalcAbsIfRel( const ScAddress& rPos )
}
}
-
-void SingleRefData::OldBoolsToNewFlags( const OldSingleRefBools& rBools )
-{
- switch ( rBools.bRelCol )
- {
- case SR_DELETED :
- Flags.bColRel = TRUE; // der war verlorengegangen
- Flags.bColDeleted = TRUE;
- break;
- case SR_ABSOLUTE :
- Flags.bColRel = FALSE;
- Flags.bColDeleted = FALSE;
- break;
- case SR_RELABS :
- case SR_RELATIVE :
- default:
- Flags.bColRel = TRUE;
- Flags.bColDeleted = FALSE;
- }
- switch ( rBools.bRelRow )
- {
- case SR_DELETED :
- Flags.bRowRel = TRUE; // der war verlorengegangen
- Flags.bRowDeleted = TRUE;
- break;
- case SR_ABSOLUTE :
- Flags.bRowRel = FALSE;
- Flags.bRowDeleted = FALSE;
- break;
- case SR_RELABS :
- case SR_RELATIVE :
- default:
- Flags.bRowRel = TRUE;
- Flags.bRowDeleted = FALSE;
- }
- switch ( rBools.bRelTab )
- {
- case SR_DELETED :
- Flags.bTabRel = TRUE; // der war verlorengegangen
- Flags.bTabDeleted = TRUE;
- break;
- case SR_ABSOLUTE :
- Flags.bTabRel = FALSE;
- Flags.bTabDeleted = FALSE;
- break;
- case SR_RELABS :
- case SR_RELATIVE :
- default:
- Flags.bTabRel = TRUE;
- Flags.bTabDeleted = FALSE;
- }
- Flags.bFlag3D = (rBools.bOldFlag3D & SRF_3D ? TRUE : FALSE);
- Flags.bRelName = (rBools.bOldFlag3D & SRF_RELNAME ? TRUE : FALSE);
- if ( !Flags.bFlag3D )
- Flags.bTabRel = TRUE; // ist bei einigen aelteren Dokumenten nicht gesetzt
-}
-
-
-/*
- bis Release 3.1 sah Store so aus
-
- BYTE n = ( ( r.bOldFlag3D & 0x03 ) << 6 ) // RelName, 3D
- | ( ( r.bRelTab & 0x03 ) << 4 ) // Relative, RelAbs
- | ( ( r.bRelRow & 0x03 ) << 2 )
- | ( r.bRelCol & 0x03 );
-
- bis Release 3.1 sah Load so aus
-
- r.bRelCol = ( n & 0x03 );
- r.bRelRow = ( ( n >> 2 ) & 0x03 );
- r.bRelTab = ( ( n >> 4 ) & 0x03 );
- r.bOldFlag3D = ( ( n >> 6 ) & 0x03 );
-
- bRelCol == SR_DELETED war identisch mit bRelCol == (SR_RELATIVE | SR_RELABS)
- leider..
- 3.1 liest Zukunft: Deleted wird nicht unbedingt erkannt, nur wenn auch Relativ.
- Aber immer noch nCol > MAXCOL und gut sollte sein..
- */
-
-BYTE SingleRefData::CreateStoreByteFromFlags() const
-{
- return (BYTE)(
- ( (Flags.bRelName & 0x01) << 7 )
- | ( (Flags.bFlag3D & 0x01) << 6 )
- | ( (Flags.bTabDeleted & 0x01) << 5 )
- | ( (Flags.bTabRel & 0x01) << 4 )
- | ( (Flags.bRowDeleted & 0x01) << 3 )
- | ( (Flags.bRowRel & 0x01) << 2 )
- | ( (Flags.bColDeleted & 0x01) << 1 )
- | (Flags.bColRel & 0x01)
- );
-}
-
-
-void SingleRefData::CreateFlagsFromLoadByte( BYTE n )
-{
- Flags.bColRel = (n & 0x01 );
- Flags.bColDeleted = ( (n >> 1) & 0x01 );
- Flags.bRowRel = ( (n >> 2) & 0x01 );
- Flags.bRowDeleted = ( (n >> 3) & 0x01 );
- Flags.bTabRel = ( (n >> 4) & 0x01 );
- Flags.bTabDeleted = ( (n >> 5) & 0x01 );
- Flags.bFlag3D = ( (n >> 6) & 0x01 );
- Flags.bRelName = ( (n >> 7) & 0x01 );
-}
+//UNUSED2008-05 void SingleRefData::OldBoolsToNewFlags( const OldSingleRefBools& rBools )
+//UNUSED2008-05 {
+//UNUSED2008-05 switch ( rBools.bRelCol )
+//UNUSED2008-05 {
+//UNUSED2008-05 case SR_DELETED :
+//UNUSED2008-05 Flags.bColRel = TRUE; // der war verlorengegangen
+//UNUSED2008-05 Flags.bColDeleted = TRUE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_ABSOLUTE :
+//UNUSED2008-05 Flags.bColRel = FALSE;
+//UNUSED2008-05 Flags.bColDeleted = FALSE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_RELABS :
+//UNUSED2008-05 case SR_RELATIVE :
+//UNUSED2008-05 default:
+//UNUSED2008-05 Flags.bColRel = TRUE;
+//UNUSED2008-05 Flags.bColDeleted = FALSE;
+//UNUSED2008-05 }
+//UNUSED2008-05 switch ( rBools.bRelRow )
+//UNUSED2008-05 {
+//UNUSED2008-05 case SR_DELETED :
+//UNUSED2008-05 Flags.bRowRel = TRUE; // der war verlorengegangen
+//UNUSED2008-05 Flags.bRowDeleted = TRUE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_ABSOLUTE :
+//UNUSED2008-05 Flags.bRowRel = FALSE;
+//UNUSED2008-05 Flags.bRowDeleted = FALSE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_RELABS :
+//UNUSED2008-05 case SR_RELATIVE :
+//UNUSED2008-05 default:
+//UNUSED2008-05 Flags.bRowRel = TRUE;
+//UNUSED2008-05 Flags.bRowDeleted = FALSE;
+//UNUSED2008-05 }
+//UNUSED2008-05 switch ( rBools.bRelTab )
+//UNUSED2008-05 {
+//UNUSED2008-05 case SR_DELETED :
+//UNUSED2008-05 Flags.bTabRel = TRUE; // der war verlorengegangen
+//UNUSED2008-05 Flags.bTabDeleted = TRUE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_ABSOLUTE :
+//UNUSED2008-05 Flags.bTabRel = FALSE;
+//UNUSED2008-05 Flags.bTabDeleted = FALSE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 case SR_RELABS :
+//UNUSED2008-05 case SR_RELATIVE :
+//UNUSED2008-05 default:
+//UNUSED2008-05 Flags.bTabRel = TRUE;
+//UNUSED2008-05 Flags.bTabDeleted = FALSE;
+//UNUSED2008-05 }
+//UNUSED2008-05 Flags.bFlag3D = (rBools.bOldFlag3D & SRF_3D ? TRUE : FALSE);
+//UNUSED2008-05 Flags.bRelName = (rBools.bOldFlag3D & SRF_RELNAME ? TRUE : FALSE);
+//UNUSED2008-05 if ( !Flags.bFlag3D )
+//UNUSED2008-05 Flags.bTabRel = TRUE; // ist bei einigen aelteren Dokumenten nicht gesetzt
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 /*
+//UNUSED2008-05 bis Release 3.1 sah Store so aus
+//UNUSED2008-05
+//UNUSED2008-05 BYTE n = ( ( r.bOldFlag3D & 0x03 ) << 6 ) // RelName, 3D
+//UNUSED2008-05 | ( ( r.bRelTab & 0x03 ) << 4 ) // Relative, RelAbs
+//UNUSED2008-05 | ( ( r.bRelRow & 0x03 ) << 2 )
+//UNUSED2008-05 | ( r.bRelCol & 0x03 );
+//UNUSED2008-05
+//UNUSED2008-05 bis Release 3.1 sah Load so aus
+//UNUSED2008-05
+//UNUSED2008-05 r.bRelCol = ( n & 0x03 );
+//UNUSED2008-05 r.bRelRow = ( ( n >> 2 ) & 0x03 );
+//UNUSED2008-05 r.bRelTab = ( ( n >> 4 ) & 0x03 );
+//UNUSED2008-05 r.bOldFlag3D = ( ( n >> 6 ) & 0x03 );
+//UNUSED2008-05
+//UNUSED2008-05 bRelCol == SR_DELETED war identisch mit bRelCol == (SR_RELATIVE | SR_RELABS)
+//UNUSED2008-05 leider..
+//UNUSED2008-05 3.1 liest Zukunft: Deleted wird nicht unbedingt erkannt, nur wenn auch Relativ.
+//UNUSED2008-05 Aber immer noch nCol > MAXCOL und gut sollte sein..
+//UNUSED2008-05 */
+//UNUSED2008-05
+//UNUSED2008-05 BYTE SingleRefData::CreateStoreByteFromFlags() const
+//UNUSED2008-05 {
+//UNUSED2008-05 return (BYTE)(
+//UNUSED2008-05 ( (Flags.bRelName & 0x01) << 7 )
+//UNUSED2008-05 | ( (Flags.bFlag3D & 0x01) << 6 )
+//UNUSED2008-05 | ( (Flags.bTabDeleted & 0x01) << 5 )
+//UNUSED2008-05 | ( (Flags.bTabRel & 0x01) << 4 )
+//UNUSED2008-05 | ( (Flags.bRowDeleted & 0x01) << 3 )
+//UNUSED2008-05 | ( (Flags.bRowRel & 0x01) << 2 )
+//UNUSED2008-05 | ( (Flags.bColDeleted & 0x01) << 1 )
+//UNUSED2008-05 | (Flags.bColRel & 0x01)
+//UNUSED2008-05 );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05
+//UNUSED2008-05 void SingleRefData::CreateFlagsFromLoadByte( BYTE n )
+//UNUSED2008-05 {
+//UNUSED2008-05 Flags.bColRel = (n & 0x01 );
+//UNUSED2008-05 Flags.bColDeleted = ( (n >> 1) & 0x01 );
+//UNUSED2008-05 Flags.bRowRel = ( (n >> 2) & 0x01 );
+//UNUSED2008-05 Flags.bRowDeleted = ( (n >> 3) & 0x01 );
+//UNUSED2008-05 Flags.bTabRel = ( (n >> 4) & 0x01 );
+//UNUSED2008-05 Flags.bTabDeleted = ( (n >> 5) & 0x01 );
+//UNUSED2008-05 Flags.bFlag3D = ( (n >> 6) & 0x01 );
+//UNUSED2008-05 Flags.bRelName = ( (n >> 7) & 0x01 );
+//UNUSED2008-05 }
BOOL SingleRefData::operator==( const SingleRefData& r ) const
diff --git a/sc/source/core/tool/refupdat.cxx b/sc/source/core/tool/refupdat.cxx
index f60b0c260d5f..4303e77b438a 100644
--- a/sc/source/core/tool/refupdat.cxx
+++ b/sc/source/core/tool/refupdat.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refupdat.cxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -939,6 +939,7 @@ ScRefUpdateRes ScRefUpdate::UpdateGrow( const ScRange& rArea, SCCOL nGrowX, SCRO
return eRet;
}
+#if OLD_PIVOT_IMPLEMENTATION
ScRefUpdateRes ScRefUpdate::DoGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nGrowY,
ScRange& rRef )
{
@@ -969,6 +970,6 @@ ScRefUpdateRes ScRefUpdate::DoGrow( const ScRange& rArea, SCCOL nGrowX, SCROW nG
return eRet;
}
-
+#endif
diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx
index ff825f5ee645..014cbbb5c491 100644
--- a/sc/source/core/tool/scmatrix.cxx
+++ b/sc/source/core/tool/scmatrix.cxx
@@ -244,27 +244,6 @@ void ScMatrix::PutDouble(double fVal, SCSIZE nC, SCSIZE nR)
}
}
-void ScMatrix::PutDoubleAndResetString( double fVal, SCSIZE nC, SCSIZE nR )
-{
- if (ValidColRow( nC, nR))
- PutDoubleAndResetString( fVal, CalcOffset( nC, nR) );
- else
- {
- DBG_ERRORFILE("ScMatrix::PutDoubleAndResetString: dimension error");
- }
-}
-
-void ScMatrix::PutDoubleAndResetString( double fVal, SCSIZE nIndex )
-{
- if ( IsString( nIndex ) )
- {
- delete pMat[nIndex].pS;
- mnValType[nIndex] = 0;
- mnNonValue--;
- }
- PutDouble( fVal, nIndex );
-}
-
void ScMatrix::PutString(const String& rStr, SCSIZE nC, SCSIZE nR)
{
if (ValidColRow( nC, nR))
@@ -586,49 +565,6 @@ void ScMatrix::MatTrans(ScMatrix& mRes) const
}
}
-void ScMatrix::MatCopyUpperLeft(ScMatrix& mRes) const
-{
- if (nColCount < mRes.nColCount || nRowCount < mRes.nRowCount)
- {
- DBG_ERRORFILE("ScMatrix::MatCopyUpperLeft: dimension error");
- }
- else
- {
- if (mnValType)
- {
- ScMatValType nType;
- mRes.ResetIsString();
- for ( SCSIZE i = 0; i < mRes.nColCount; i++ )
- {
- SCSIZE nStart = i * nRowCount;
- for ( SCSIZE j = 0; j < mRes.nRowCount; j++ )
- {
- if ( IsStringType( (nType = mnValType[nStart+j]) ))
- mRes.PutStringEntry( pMat[nStart+j].pS, nType,
- i*mRes.nRowCount+j );
- else
- {
- mRes.pMat[i*mRes.nRowCount+j].fVal = pMat[nStart+j].fVal;
- mRes.mnValType[i*mRes.nRowCount+j] = nType;
- }
- }
- }
- }
- else
- {
- mRes.DeleteIsString();
- for ( SCSIZE i = 0; i < mRes.nColCount; i++ )
- {
- SCSIZE nStart = i * nRowCount;
- for ( SCSIZE j = 0; j < mRes.nRowCount; j++ )
- {
- mRes.pMat[i*mRes.nRowCount+j].fVal = pMat[nStart+j].fVal;
- }
- }
- }
- }
-}
-
void ScMatrix::FillDouble( double fVal, SCSIZE nC1, SCSIZE nR1, SCSIZE nC2, SCSIZE nR2 )
{
if (ValidColRow( nC1, nR1) && ValidColRow( nC2, nR2))
@@ -656,24 +592,6 @@ void ScMatrix::FillDouble( double fVal, SCSIZE nC1, SCSIZE nR1, SCSIZE nC2, SCSI
}
}
-void ScMatrix::FillDoubleLowerLeft( double fVal, SCSIZE nC2 )
-{
- if (ValidColRow( nC2, nC2))
- {
- for ( SCSIZE i=1; i<=nC2; i++ )
- {
- SCSIZE nOff1 = i * nRowCount;
- SCSIZE nOff2 = nOff1 + i;
- for ( SCSIZE j=nOff1; j<nOff2; j++ )
- pMat[j].fVal = fVal;
- }
- }
- else
- {
- DBG_ERRORFILE("ScMatrix::FillDoubleLowerLeft: dimension error");
- }
-}
-
void ScMatrix::CompareEqual()
{
SCSIZE n = nColCount * nRowCount;
diff --git a/sc/source/core/tool/subtotal.cxx b/sc/source/core/tool/subtotal.cxx
index c2e5ca1e3d65..828a65654242 100644
--- a/sc/source/core/tool/subtotal.cxx
+++ b/sc/source/core/tool/subtotal.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: subtotal.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -39,6 +39,7 @@
// -----------------------------------------------------------------------
+#if OLD_PIVOT_IMPLEMENTATION
SubTotal::SubTotal()
{
nIndex = 0; //! test fuer Pivot
@@ -218,7 +219,7 @@ double SubTotal::Result( USHORT nFunction ) const
}
return nRet;
}
-
+#endif
BOOL SubTotal::SafePlus(double& fVal1, double fVal2)
{
diff --git a/sc/source/core/tool/token.cxx b/sc/source/core/tool/token.cxx
index 9463a173197c..48e6e244d494 100644
--- a/sc/source/core/tool/token.cxx
+++ b/sc/source/core/tool/token.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: token.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.33.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -177,14 +177,6 @@ void ScRawToken::SetDoubleReference( const ComplRefData& rRef )
nRefCnt = 0;
}
-void ScRawToken::SetReference( ComplRefData& rRef )
-{
- DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "SetReference: no Ref" );
- aRef = rRef;
- if( GetType() == svSingleRef )
- aRef.Ref2 = aRef.Ref1;
-}
-
void ScRawToken::SetDouble(double rVal)
{
eOp = ocPush;
@@ -193,14 +185,6 @@ void ScRawToken::SetDouble(double rVal)
nRefCnt = 0;
}
-void ScRawToken::SetInt(int rVal)
-{
- eOp = ocPush;
- eType = svDouble;
- nValue = (double)rVal;
- nRefCnt = 0;
-}
-
void ScRawToken::SetName( USHORT n )
{
eOp = ocName;
@@ -209,11 +193,35 @@ void ScRawToken::SetName( USHORT n )
nRefCnt = 0;
}
-ComplRefData& ScRawToken::GetReference()
-{
- DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "GetReference: no Ref" );
- return aRef;
-}
+//UNUSED2008-05 void ScRawToken::SetInt(int rVal)
+//UNUSED2008-05 {
+//UNUSED2008-05 eOp = ocPush;
+//UNUSED2008-05 eType = svDouble;
+//UNUSED2008-05 nValue = (double)rVal;
+//UNUSED2008-05 nRefCnt = 0;
+//UNUSED2008-05
+//UNUSED2008-05 }
+//UNUSED2008-05 void ScRawToken::SetMatrix( ScMatrix* p )
+//UNUSED2008-05 {
+//UNUSED2008-05 eOp = ocPush;
+//UNUSED2008-05 eType = svMatrix;
+//UNUSED2008-05 pMat = p;
+//UNUSED2008-05 nRefCnt = 0;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ComplRefData& ScRawToken::GetReference()
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "GetReference: no Ref" );
+//UNUSED2008-05 return aRef;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void ScRawToken::SetReference( ComplRefData& rRef )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( lcl_IsReference( eOp, GetType() ), "SetReference: no Ref" );
+//UNUSED2008-05 aRef = rRef;
+//UNUSED2008-05 if( GetType() == svSingleRef )
+//UNUSED2008-05 aRef.Ref2 = aRef.Ref1;
+//UNUSED2008-05 }
void ScRawToken::SetExternal( const sal_Unicode* pStr )
{
@@ -228,14 +236,6 @@ void ScRawToken::SetExternal( const sal_Unicode* pStr )
nRefCnt = 0;
}
-void ScRawToken::SetMatrix( ScMatrix* p )
-{
- eOp = ocPush;
- eType = svMatrix;
- pMat = p;
- nRefCnt = 0;
-}
-
USHORT lcl_ScRawTokenOffset()
{
// offset of sbyte in ScRawToken
@@ -622,28 +622,28 @@ BOOL ScToken::Is3DRef() const
}
-BOOL ScToken::IsRPNReferenceAbsName() const
-{
- if ( GetRef() == 1 && GetOpCode() == ocPush )
- { // only in RPN and not ocColRowNameAuto or similar
- switch ( GetType() )
- {
- case svDoubleRef :
- if ( !GetSingleRef2().IsRelName() )
- return TRUE;
- //! fallthru
- case svSingleRef :
- if ( !GetSingleRef().IsRelName() )
- return TRUE;
- break;
- default:
- {
- // added to avoid warnings
- }
- }
- }
- return FALSE;
-}
+//UNUSED2008-05 BOOL ScToken::IsRPNReferenceAbsName() const
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( GetRef() == 1 && GetOpCode() == ocPush )
+//UNUSED2008-05 { // only in RPN and not ocColRowNameAuto or similar
+//UNUSED2008-05 switch ( GetType() )
+//UNUSED2008-05 {
+//UNUSED2008-05 case svDoubleRef :
+//UNUSED2008-05 if ( !GetSingleRef2().IsRelName() )
+//UNUSED2008-05 return TRUE;
+//UNUSED2008-05 //! fallthru
+//UNUSED2008-05 case svSingleRef :
+//UNUSED2008-05 if ( !GetSingleRef().IsRelName() )
+//UNUSED2008-05 return TRUE;
+//UNUSED2008-05 break;
+//UNUSED2008-05 default:
+//UNUSED2008-05 {
+//UNUSED2008-05 // added to avoid warnings
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 return FALSE;
+//UNUSED2008-05 }
// static
@@ -1401,15 +1401,15 @@ BOOL ScTokenArray::HasOpCodeRPN( OpCode eOp ) const
return FALSE;
}
-BOOL ScTokenArray::HasName() const
-{
- for ( USHORT j=0; j < nLen; j++ )
- {
- if( pCode[j]->GetType() == svIndex )
- return TRUE;
- }
- return FALSE;
-}
+//UNUSED2008-05 BOOL ScTokenArray::HasName() const
+//UNUSED2008-05 {
+//UNUSED2008-05 for ( USHORT j=0; j < nLen; j++ )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pCode[j]->GetType() == svIndex )
+//UNUSED2008-05 return TRUE;
+//UNUSED2008-05 }
+//UNUSED2008-05 return FALSE;
+//UNUSED2008-05 }
BOOL ScTokenArray::HasNameOrColRowName() const
{
diff --git a/sc/source/core/tool/userlist.cxx b/sc/source/core/tool/userlist.cxx
index cf060f4de187..3d89efc91a97 100644
--- a/sc/source/core/tool/userlist.cxx
+++ b/sc/source/core/tool/userlist.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: userlist.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -86,18 +86,6 @@ __EXPORT ScUserListData::~ScUserListData()
delete[] pUpperSub;
}
-ScUserListData::ScUserListData( SvStream& rStream )
-{
- rStream.ReadByteString( aStr, rStream.GetStreamCharSet() );
- InitTokens();
-}
-
-BOOL ScUserListData::Store( SvStream& rStream ) const
-{
- rStream.WriteByteString( aStr, rStream.GetStreamCharSet() );
- return TRUE;
-}
-
void ScUserListData::SetString( const String& rStr )
{
delete[] pSubStrings;
@@ -261,34 +249,6 @@ ScUserList::ScUserList(USHORT nLim, USHORT nDel) :
}
}
-BOOL ScUserList::Load( SvStream& rStream )
-{
- BOOL bSuccess = TRUE;
- USHORT nNewCount;
-
- while( nCount > 0 )
- AtFree(0); // alles loeschen
-
- rStream >> nNewCount;
-
- for ( USHORT i=0; i<nNewCount && bSuccess; i++ )
- Insert( new ScUserListData( rStream ) );
-
- return bSuccess;
-}
-
-BOOL ScUserList::Store( SvStream& rStream ) const
-{
- BOOL bSuccess = TRUE;
-
- rStream << nCount;
-
- for ( USHORT i=0; i<nCount && bSuccess; i++ )
- bSuccess = ((const ScUserListData*)At(i))->Store( rStream );
-
- return bSuccess;
-}
-
DataObject* ScUserList::Clone() const
{
return ( new ScUserList( *this ) );
diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx
index 9803949aa729..8c75cf0efad5 100644
--- a/sc/source/core/tool/viewopti.cxx
+++ b/sc/source/core/tool/viewopti.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewopti.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -125,43 +125,6 @@ int ScGridOptions::operator==( const ScGridOptions& rCpy ) const
}
-//------------------------------------------------------------------------
-
-SvStream& operator>>( SvStream& rStream, ScGridOptions& rOpt )
-{
- BYTE nDummy;
- rStream >> rOpt.nFldDrawX;
- rStream >> rOpt.nFldDrawY;
- rStream >> rOpt.nFldDivisionX;
- rStream >> rOpt.nFldDivisionY;
- rStream >> rOpt.nFldSnapX;
- rStream >> rOpt.nFldSnapY;
- rStream >> nDummy; rOpt.bUseGridsnap = (BOOL)nDummy;
- rStream >> nDummy; rOpt.bSynchronize = (BOOL)nDummy;
- rStream >> nDummy; rOpt.bGridVisible = (BOOL)nDummy;
- rStream >> nDummy; rOpt.bEqualGrid = (BOOL)nDummy;
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-SvStream& operator<<( SvStream& rStream, const ScGridOptions& rOpt )
-{
- rStream << rOpt.nFldDrawX;
- rStream << rOpt.nFldDrawY;
- rStream << rOpt.nFldDivisionX;
- rStream << rOpt.nFldDivisionY;
- rStream << rOpt.nFldSnapX;
- rStream << rOpt.nFldSnapY;
- rStream << (BOOL)rOpt.bUseGridsnap;
- rStream << (BOOL)rOpt.bSynchronize;
- rStream << (BOOL)rOpt.bGridVisible;
- rStream << (BOOL)rOpt.bEqualGrid;
-
- return rStream;
-}
-
//========================================================================
// class ScViewOptions
//========================================================================
@@ -264,93 +227,6 @@ int ScViewOptions::operator==( const ScViewOptions& rOpt ) const
//------------------------------------------------------------------------
-SvStream& operator>>( SvStream& rStream, ScViewOptions& rOpt )
-{
- USHORT i;
- BYTE n;
-
- ScReadHeader aHdr( rStream );
-
- for ( i=0; i<=VOPT_GRID; i++ ) // kompatibel bleiben -> nur bis VOPT_GRID
- rStream >> rOpt.aOptArr[i];
-
- for ( i=0; i<MAX_TYPE; i++ )
- {
- rStream >> n;
-
- //#i80528# adapt to new range eventually
- if((BYTE)VOBJ_MODE_HIDE < n) n = (BYTE)VOBJ_MODE_SHOW;
-
- rOpt.aModeArr[i] = (ScVObjMode)n;
- }
-
- rStream >> rOpt.aGridCol;
- rStream.ReadByteString( rOpt.aGridColName, rStream.GetStreamCharSet() );
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_HELPLINES];
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aGridOpt;
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.bHideAutoSpell;
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_ANCHOR];
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_PAGEBREAKS];
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_SOLIDHANDLES];
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_CLIPMARKS];
-
- if( aHdr.BytesLeft() )
- rStream >> rOpt.aOptArr[VOPT_BIGHANDLES];
-
- return rStream;
-}
-
-//------------------------------------------------------------------------
-
-void ScViewOptions::Save(SvStream& rStream, BOOL bConfig) const
-{
- USHORT i;
-
- ScWriteHeader aHdr( rStream, 68 );
-
- for ( i=0; i<=VOPT_GRID; i++ ) // kompatibel bleiben -> nur bis VOPT_GRID
- rStream << aOptArr[i];
-
- for ( i=0; i<MAX_TYPE; i++ )
- rStream << (BYTE)aModeArr[i];
-
- rStream << aGridCol;
- rStream.WriteByteString( aGridColName, rStream.GetStreamCharSet() );
- rStream << aOptArr[VOPT_HELPLINES];
- rStream << aGridOpt;
- rStream << bHideAutoSpell;
- rStream << aOptArr[VOPT_ANCHOR];
- rStream << aOptArr[VOPT_PAGEBREAKS];
- rStream << aOptArr[VOPT_SOLIDHANDLES];
-
- if ( bConfig || rStream.GetVersion() > SOFFICE_FILEFORMAT_40 ) // nicht bei 4.0 Export
- {
- rStream << aOptArr[VOPT_CLIPMARKS];
-
- // big handles are not saved in 5.0-documents to avoid warning messages
- //! save to files after 5.0 !!!
-
- if ( bConfig )
- rStream << aOptArr[VOPT_BIGHANDLES];
- }
-}
-
-//------------------------------------------------------------------------
-
SvxGridItem* ScViewOptions::CreateGridItem( USHORT nId /* = SID_ATTR_GRID_OPTIONS */ ) const
{
SvxGridItem* pItem = new SvxGridItem( nId );
@@ -373,9 +249,9 @@ SvxGridItem* ScViewOptions::CreateGridItem( USHORT nId /* = SID_ATTR_GRID_OPTION
// ScTpViewItem - Daten fuer die ViewOptions-TabPage
//========================================================================
-ScTpViewItem::ScTpViewItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
-{
-}
+//UNUSED2008-05 ScTpViewItem::ScTpViewItem( USHORT nWhichP ) : SfxPoolItem( nWhichP )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
//------------------------------------------------------------------------
diff --git a/sc/source/filter/excel/colrowst.cxx b/sc/source/filter/excel/colrowst.cxx
index 27b1e8c55746..f7d4b3e50e5c 100644
--- a/sc/source/filter/excel/colrowst.cxx
+++ b/sc/source/filter/excel/colrowst.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: colrowst.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.34.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -145,16 +145,6 @@ void XclImpColRowSettings::SetHeight( SCROW nScRow, sal_uInt16 nHeight )
}
}
-void XclImpColRowSettings::HideRow( SCROW nScRow )
-{
- if( ValidRow( nScRow ) )
- {
- ::set_flag( maRowFlags[ nScRow ], static_cast< sal_uInt8 >( EXC_COLROW_USED | EXC_COLROW_HIDDEN ) );
- if( nScRow > mnLastScRow )
- mnLastScRow = nScRow;
- }
-}
-
void XclImpColRowSettings::SetRowSettings( SCROW nScRow, sal_uInt16 nHeight, sal_uInt16 nFlags )
{
if( ValidRow( nScRow ) )
diff --git a/sc/source/filter/excel/excel.cxx b/sc/source/filter/excel/excel.cxx
index 8722ebdc982d..8fb15fb9c5c7 100644
--- a/sc/source/filter/excel/excel.cxx
+++ b/sc/source/filter/excel/excel.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: excel.cxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.26.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -50,12 +50,6 @@
#include "exp_op.hxx"
-FltError ScImportExcel( SfxMedium& r, ScDocument* p )
-{
- return ScImportExcel( r, p, EIF_AUTO );
-}
-
-
FltError ScImportExcel( SfxMedium& rMedium, ScDocument* pDocument, const EXCIMPFORMAT eFormat )
{
// check the passed Calc document
@@ -164,16 +158,6 @@ FltError ScImportExcel( SfxMedium& rMedium, ScDocument* pDocument, const EXCIMPF
}
-
-
-FltError ScExportExcel234( SvStream& /*aStream*/, ScDocument* /*pDoc*/,
- ExportFormatExcel /*eFormat*/, CharSet /*eNach*/ )
-{
- FltError eRet = eERR_NI;
- return eRet;
-}
-
-
FltError ScExportExcel5( SfxMedium& rMedium, ScDocument *pDocument,
const BOOL bBiff8, CharSet eNach )
{
diff --git a/sc/source/filter/excel/exctools.cxx b/sc/source/filter/excel/exctools.cxx
index 74f0fa9e11fe..be145e52a9a2 100644
--- a/sc/source/filter/excel/exctools.cxx
+++ b/sc/source/filter/excel/exctools.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: exctools.cxx,v $
- * $Revision: 1.62 $
+ * $Revision: 1.61.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -285,19 +285,6 @@ void XclImpOutlineBuffer::Reset( void )
}
-void XclImpOutlineBuffer::Reset( ScOutlineArray *pOArray )
-{
- for( SCSIZE nC = 0 ; nC < nSize ; nC++ )
- {
- pLevel[ nC ] = 0;
- pOuted[ nC ] = pHidden[ nC ] = FALSE;
- }
- pOutlineArray = pOArray;
-}
-
-
-
-
//___________________________________________________________________
diff --git a/sc/source/filter/excel/frmbase.cxx b/sc/source/filter/excel/frmbase.cxx
index d5fb7d5c9f6e..d4899bf29fac 100644
--- a/sc/source/filter/excel/frmbase.cxx
+++ b/sc/source/filter/excel/frmbase.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: frmbase.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -262,19 +262,19 @@ LotusConverterBase::~LotusConverterBase()
{
}
-void LotusConverterBase::Reset( INT32 nLen, const ScAddress& rEingPos )
-{
- ConverterBase::Reset();
- nBytesLeft = nLen;
- aEingPos = rEingPos;
-}
-
-void LotusConverterBase::Reset( INT32 nLen )
-{
- ConverterBase::Reset();
- nBytesLeft = nLen;
- aEingPos.Set( 0, 0, 0 );
-}
+//UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen, const ScAddress& rEingPos )
+//UNUSED2008-05 {
+//UNUSED2008-05 ConverterBase::Reset();
+//UNUSED2008-05 nBytesLeft = nLen;
+//UNUSED2008-05 aEingPos = rEingPos;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void LotusConverterBase::Reset( INT32 nLen )
+//UNUSED2008-05 {
+//UNUSED2008-05 ConverterBase::Reset();
+//UNUSED2008-05 nBytesLeft = nLen;
+//UNUSED2008-05 aEingPos.Set( 0, 0, 0 );
+//UNUSED2008-05 }
void LotusConverterBase::Reset( const ScAddress& rEingPos )
{
diff --git a/sc/source/filter/excel/namebuff.cxx b/sc/source/filter/excel/namebuff.cxx
index b8b57111e8c3..e243f9bf9504 100644
--- a/sc/source/filter/excel/namebuff.cxx
+++ b/sc/source/filter/excel/namebuff.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: namebuff.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.26.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -88,41 +88,6 @@ void NameBuffer::operator <<( const String &rNewString )
}
-void NameBuffer::Reset()
-{
- register StringHashEntry* pDel = ( StringHashEntry* ) List::First();
- while( pDel )
- {
- delete pDel;
- pDel = ( StringHashEntry* ) List::Next();
- }
- Clear();
-}
-
-
-BOOL NameBuffer::Find( const sal_Char* pRefName, UINT16& rIndex )
-{
- StringHashEntry aRefEntry( String::CreateFromAscii( pRefName ) );
-
- register StringHashEntry* pFind = ( StringHashEntry* ) List::First();
- register UINT16 nCnt = nBase;
- while( pFind )
- {
- if( *pFind == aRefEntry )
- {
- rIndex = nCnt;
- return TRUE;
- }
- pFind = ( StringHashEntry* ) List::Next();
- nCnt++;
- }
-
- return FALSE;
-}
-
-
-
-
#ifdef DBG_UTIL
UINT16 nShrCnt;
#endif
@@ -306,18 +271,6 @@ BOOL ExtSheetBuffer::GetLink( const UINT16 nExcIndex, String& rAppl, String& rDo
}
-BOOL ExtSheetBuffer::IsExternal( UINT16 nExcIndex ) const
-{
- DBG_ASSERT( nExcIndex > 0, "*ExtSheetBuffer::IsExternal(): Index muss >0 sein!" );
- Cont* pRet = ( Cont * ) List::GetObject( nExcIndex - 1 );
-
- if( pRet )
- return !pRet->bSWB;
- else
- return FALSE;
-}
-
-
void ExtSheetBuffer::Reset( void )
{
Cont *pAkt = ( Cont * ) List::First();
@@ -339,20 +292,6 @@ BOOL ExtName::IsDDE( void ) const
}
-BOOL ExtName::IsOLE( void ) const
-{
- return ( nFlags & 0x0002 ) != 0;
-}
-
-
-BOOL ExtName::IsName( void ) const
-{
- return ( nFlags & 0x0004 ) != 0;
-}
-
-
-
-
const sal_Char* ExtNameBuff::pJoostTest = "Joost ist immer noch doof!";
diff --git a/sc/source/filter/excel/tokstack.cxx b/sc/source/filter/excel/tokstack.cxx
index b692db246df6..c8a2b41b8b34 100644
--- a/sc/source/filter/excel/tokstack.cxx
+++ b/sc/source/filter/excel/tokstack.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tokstack.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.14.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -531,26 +531,26 @@ const TokenId TokenPool::Store( const double& rDouble )
}
-const TokenId TokenPool::StoreError( USHORT nError )
-{
- if( nElementAkt >= nElement )
- GrowElement();
-
- if( nP_ErrAkt >= nP_Err )
- GrowError();
-
- pElement[ nElementAkt ] = nP_ErrAkt; // Index in Error-Array
- pType[ nElementAkt ] = T_Err; // Typinfo Error eintragen
-
- pP_Err[ nP_ErrAkt ] = nError;
-
- pSize[ nElementAkt ] = 1; // eigentlich Banane
-
- nElementAkt++;
- nP_ErrAkt++;
-
- return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
-}
+//UNUSED2008-05 const TokenId TokenPool::StoreError( USHORT nError )
+//UNUSED2008-05 {
+//UNUSED2008-05 if( nElementAkt >= nElement )
+//UNUSED2008-05 GrowElement();
+//UNUSED2008-05
+//UNUSED2008-05 if( nP_ErrAkt >= nP_Err )
+//UNUSED2008-05 GrowError();
+//UNUSED2008-05
+//UNUSED2008-05 pElement[ nElementAkt ] = nP_ErrAkt; // Index in Error-Array
+//UNUSED2008-05 pType[ nElementAkt ] = T_Err; // Typinfo Error eintragen
+//UNUSED2008-05
+//UNUSED2008-05 pP_Err[ nP_ErrAkt ] = nError;
+//UNUSED2008-05
+//UNUSED2008-05 pSize[ nElementAkt ] = 1; // eigentlich Banane
+//UNUSED2008-05
+//UNUSED2008-05 nElementAkt++;
+//UNUSED2008-05 nP_ErrAkt++;
+//UNUSED2008-05
+//UNUSED2008-05 return ( const TokenId ) nElementAkt; // Ausgabe von altem Wert + 1!
+//UNUSED2008-05 }
const TokenId TokenPool::Store( const UINT16 nIndex )
@@ -768,19 +768,19 @@ const String* TokenPool::GetExternal( const TokenId& rId ) const
}
-const String* TokenPool::GetString( const TokenId& r ) const
-{
- const String* p = NULL;
- UINT16 n = (UINT16) r;
- if( n && n <= nElementAkt )
- {
- n--;
- if( pType[ n ] == T_Str )
- p = ppP_Str[ pElement[ n ] ];
- }
-
- return p;
-}
+//UNUSED2008-05 const String* TokenPool::GetString( const TokenId& r ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 const String* p = NULL;
+//UNUSED2008-05 UINT16 n = (UINT16) r;
+//UNUSED2008-05 if( n && n <= nElementAkt )
+//UNUSED2008-05 {
+//UNUSED2008-05 n--;
+//UNUSED2008-05 if( pType[ n ] == T_Str )
+//UNUSED2008-05 p = ppP_Str[ pElement[ n ] ];
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return p;
+//UNUSED2008-05 }
ScMatrix* TokenPool::GetMatrix( unsigned int n ) const
{
diff --git a/sc/source/filter/excel/xeformula.cxx b/sc/source/filter/excel/xeformula.cxx
index 931beae3efdf..751bd607663c 100644
--- a/sc/source/filter/excel/xeformula.cxx
+++ b/sc/source/filter/excel/xeformula.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xeformula.cxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.25.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -341,7 +341,7 @@ private:
void AdjustLastTokenClassForEastereggOp();
void AppendOpTokenId( sal_uInt8 nTokenId, sal_uInt8 nExpClass, sal_uInt8 nSpaces = 0 );
- void AppendFuncTokenId( sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass, sal_uInt8 nSpaces = 0 );
+//UNUSED2008-05 void AppendFuncTokenId( sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass, sal_uInt8 nSpaces = 0 );
void AppendVarFuncTokenId( sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass, sal_uInt8 nParamCount, sal_uInt8 nSpaces = 0 );
// token vector -----------------------------------------------------------
@@ -2015,12 +2015,12 @@ void XclExpFmlaCompImpl::AppendOpTokenId( sal_uInt8 nTokenId, sal_uInt8 nExpClas
AdjustLastTokenClass( nExpClass );
}
-void XclExpFmlaCompImpl::AppendFuncTokenId(
- sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass, sal_uInt8 nSpaces )
-{
- AppendOpTokenId( GetTokenId( EXC_TOKID_FUNC, nRetClass ), nExpRetClass, nSpaces );
- Append( nXclFuncIdx );
-}
+//UNUSED2008-05 void XclExpFmlaCompImpl::AppendFuncTokenId(
+//UNUSED2008-05 sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass, sal_uInt8 nSpaces )
+//UNUSED2008-05 {
+//UNUSED2008-05 AppendOpTokenId( GetTokenId( EXC_TOKID_FUNC, nRetClass ), nExpRetClass, nSpaces );
+//UNUSED2008-05 Append( nXclFuncIdx );
+//UNUSED2008-05 }
void XclExpFmlaCompImpl::AppendVarFuncTokenId(
sal_uInt16 nXclFuncIdx, sal_uInt8 nRetClass, sal_uInt8 nExpRetClass,
diff --git a/sc/source/filter/excel/xehelper.cxx b/sc/source/filter/excel/xehelper.cxx
index 37edde3dbd2d..032e0d576f43 100644
--- a/sc/source/filter/excel/xehelper.cxx
+++ b/sc/source/filter/excel/xehelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xehelper.cxx,v $
- * $Revision: 1.31 $
+ * $Revision: 1.31.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -258,23 +258,23 @@ bool XclExpAddressConverter::ConvertRange( XclRange& rXclRange,
return bValidStart;
}
-XclRange XclExpAddressConverter::CreateValidRange( const ScRange& rScRange, bool bWarn )
-{
- return XclRange(
- CreateValidAddress( rScRange.aStart, bWarn ),
- CreateValidAddress( rScRange.aEnd, bWarn ) );
-}
+//UNUSED2008-05 XclRange XclExpAddressConverter::CreateValidRange( const ScRange& rScRange, bool bWarn )
+//UNUSED2008-05 {
+//UNUSED2008-05 return XclRange(
+//UNUSED2008-05 CreateValidAddress( rScRange.aStart, bWarn ),
+//UNUSED2008-05 CreateValidAddress( rScRange.aEnd, bWarn ) );
+//UNUSED2008-05 }
// cell range list ------------------------------------------------------------
-bool XclExpAddressConverter::CheckRangeList( const ScRangeList& rScRanges, bool bWarn )
-{
- for( ULONG nIdx = 0, nSize = rScRanges.Count(); nIdx < nSize; ++nIdx )
- if( const ScRange* pScRange = rScRanges.GetObject( nIdx ) )
- if( !CheckRange( *pScRange, bWarn ) )
- return false;
- return true;
-}
+//UNUSED2008-05 bool XclExpAddressConverter::CheckRangeList( const ScRangeList& rScRanges, bool bWarn )
+//UNUSED2008-05 {
+//UNUSED2008-05 for( ULONG nIdx = 0, nSize = rScRanges.Count(); nIdx < nSize; ++nIdx )
+//UNUSED2008-05 if( const ScRange* pScRange = rScRanges.GetObject( nIdx ) )
+//UNUSED2008-05 if( !CheckRange( *pScRange, bWarn ) )
+//UNUSED2008-05 return false;
+//UNUSED2008-05 return true;
+//UNUSED2008-05 }
void XclExpAddressConverter::ValidateRangeList( ScRangeList& rScRanges, bool bWarn )
{
diff --git a/sc/source/filter/excel/xerecord.cxx b/sc/source/filter/excel/xerecord.cxx
index 6bb638614f22..03746882171b 100644
--- a/sc/source/filter/excel/xerecord.cxx
+++ b/sc/source/filter/excel/xerecord.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xerecord.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -43,11 +43,11 @@ void XclExpRecordBase::Save( XclExpStream& /*rStrm*/ )
{
}
-void XclExpRecordBase::SaveRepeated( XclExpStream& rStrm, size_t nCount )
-{
- for( size_t nIndex = 0; nIndex < nCount; ++nIndex )
- Save( rStrm );
-}
+//UNUSED2008-05 void XclExpRecordBase::SaveRepeated( XclExpStream& rStrm, size_t nCount )
+//UNUSED2008-05 {
+//UNUSED2008-05 for( size_t nIndex = 0; nIndex < nCount; ++nIndex )
+//UNUSED2008-05 Save( rStrm );
+//UNUSED2008-05 }
// ----------------------------------------------------------------------------
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index ea06477bd66b..03554efd68eb 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestream.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -159,27 +159,27 @@ sal_Size XclExpStream::CopyFromStream( SvStream& rInStrm, sal_Size nBytes )
return nRet;
}
-void XclExpStream::WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags )
-{
- SetSliceSize( 0 );
- if( pBuffer && (nChars > 0) )
- {
- sal_uInt16 nCharLen = (nFlags & EXC_STRF_16BIT) ? 2 : 1;
- for( sal_Size nIndex = 0; nIndex < nChars; ++nIndex )
- {
- if( mbInRec && (mnCurrSize + nCharLen > mnCurrMaxSize) )
- {
- StartContinue();
- // repeat only 16bit flag
- operator<<( static_cast< sal_uInt8 >( nFlags & EXC_STRF_16BIT ) );
- }
- if( nCharLen == 2 )
- operator<<( pBuffer[ nIndex ] );
- else
- operator<<( static_cast< sal_uInt8 >( pBuffer[ nIndex ] ) );
- }
- }
-}
+//UNUSED2008-05 void XclExpStream::WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags )
+//UNUSED2008-05 {
+//UNUSED2008-05 SetSliceSize( 0 );
+//UNUSED2008-05 if( pBuffer && (nChars > 0) )
+//UNUSED2008-05 {
+//UNUSED2008-05 sal_uInt16 nCharLen = (nFlags & EXC_STRF_16BIT) ? 2 : 1;
+//UNUSED2008-05 for( sal_Size nIndex = 0; nIndex < nChars; ++nIndex )
+//UNUSED2008-05 {
+//UNUSED2008-05 if( mbInRec && (mnCurrSize + nCharLen > mnCurrMaxSize) )
+//UNUSED2008-05 {
+//UNUSED2008-05 StartContinue();
+//UNUSED2008-05 // repeat only 16bit flag
+//UNUSED2008-05 operator<<( static_cast< sal_uInt8 >( nFlags & EXC_STRF_16BIT ) );
+//UNUSED2008-05 }
+//UNUSED2008-05 if( nCharLen == 2 )
+//UNUSED2008-05 operator<<( pBuffer[ nIndex ] );
+//UNUSED2008-05 else
+//UNUSED2008-05 operator<<( static_cast< sal_uInt8 >( pBuffer[ nIndex ] ) );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
void XclExpStream::WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nFlags )
{
@@ -202,11 +202,11 @@ void XclExpStream::WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nF
}
}
-void XclExpStream::WriteByteStringBuffer( const ByteString& rString, sal_uInt16 nMaxLen )
-{
- SetSliceSize( 0 );
- Write( rString.GetBuffer(), ::std::min< sal_Size >( rString.Len(), nMaxLen ) );
-}
+//UNUSED2008-05 void XclExpStream::WriteByteStringBuffer( const ByteString& rString, sal_uInt16 nMaxLen )
+//UNUSED2008-05 {
+//UNUSED2008-05 SetSliceSize( 0 );
+//UNUSED2008-05 Write( rString.GetBuffer(), ::std::min< sal_Size >( rString.Len(), nMaxLen ) );
+//UNUSED2008-05 }
// ER: #71367# Xcl has an obscure sense of whether starting a new record or not,
// and crashes if it encounters the string header at the very end of a record.
diff --git a/sc/source/filter/excel/xestring.cxx b/sc/source/filter/excel/xestring.cxx
index f2ef9aa64074..74647717a390 100644
--- a/sc/source/filter/excel/xestring.cxx
+++ b/sc/source/filter/excel/xestring.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestring.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -118,24 +118,24 @@ XclExpString::XclExpString( const String& rString, XclStrFlags nFlags, sal_uInt1
Assign( rString, nFlags, nMaxLen );
}
-XclExpString::XclExpString(
- const String& rString, const XclFormatRunVec& rFormats,
- XclStrFlags nFlags, sal_uInt16 nMaxLen )
-{
- Assign( rString, rFormats, nFlags, nMaxLen );
-}
-
XclExpString::XclExpString( const OUString& rString, XclStrFlags nFlags, sal_uInt16 nMaxLen )
{
Assign( rString, nFlags, nMaxLen );
}
-XclExpString::XclExpString(
- const OUString& rString, const XclFormatRunVec& rFormats,
- XclStrFlags nFlags, sal_uInt16 nMaxLen )
-{
- Assign( rString, rFormats, nFlags, nMaxLen );
-}
+//UNUSED2008-05 XclExpString::XclExpString(
+//UNUSED2008-05 const String& rString, const XclFormatRunVec& rFormats,
+//UNUSED2008-05 XclStrFlags nFlags, sal_uInt16 nMaxLen )
+//UNUSED2008-05 {
+//UNUSED2008-05 Assign( rString, rFormats, nFlags, nMaxLen );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 XclExpString::XclExpString(
+//UNUSED2008-05 const OUString& rString, const XclFormatRunVec& rFormats,
+//UNUSED2008-05 XclStrFlags nFlags, sal_uInt16 nMaxLen )
+//UNUSED2008-05 {
+//UNUSED2008-05 Assign( rString, rFormats, nFlags, nMaxLen );
+//UNUSED2008-05 }
// assign ---------------------------------------------------------------------
@@ -177,19 +177,19 @@ void XclExpString::AssignByte(
Build( aByteStr.GetBuffer(), aByteStr.Len(), nFlags, nMaxLen );
}
-void XclExpString::AssignByte( sal_Unicode cChar, rtl_TextEncoding eTextEnc, XclStrFlags nFlags, sal_uInt16 nMaxLen )
-{
- if( !cChar )
- {
- sal_Char cByteChar = 0;
- Build( &cByteChar, 1, nFlags, nMaxLen );
- }
- else
- {
- ByteString aByteStr( &cChar, 1, eTextEnc ); // length may be >1
- Build( aByteStr.GetBuffer(), aByteStr.Len(), nFlags, nMaxLen );
- }
-}
+//UNUSED2008-05 void XclExpString::AssignByte( sal_Unicode cChar, rtl_TextEncoding eTextEnc, XclStrFlags nFlags, sal_uInt16 nMaxLen )
+//UNUSED2008-05 {
+//UNUSED2008-05 if( !cChar )
+//UNUSED2008-05 {
+//UNUSED2008-05 sal_Char cByteChar = 0;
+//UNUSED2008-05 Build( &cByteChar, 1, nFlags, nMaxLen );
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 ByteString aByteStr( &cChar, 1, eTextEnc ); // length may be >1
+//UNUSED2008-05 Build( aByteStr.GetBuffer(), aByteStr.Len(), nFlags, nMaxLen );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
// append ---------------------------------------------------------------------
@@ -198,15 +198,15 @@ void XclExpString::Append( const String& rString )
BuildAppend( rString.GetBuffer(), rString.Len() );
}
-void XclExpString::Append( const ::rtl::OUString& rString )
-{
- BuildAppend( rString.getStr(), rString.getLength() );
-}
-
-void XclExpString::Append( sal_Unicode cChar )
-{
- BuildAppend( &cChar, 1 );
-}
+//UNUSED2008-05 void XclExpString::Append( const ::rtl::OUString& rString )
+//UNUSED2008-05 {
+//UNUSED2008-05 BuildAppend( rString.getStr(), rString.getLength() );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpString::Append( sal_Unicode cChar )
+//UNUSED2008-05 {
+//UNUSED2008-05 BuildAppend( &cChar, 1 );
+//UNUSED2008-05 }
void XclExpString::AppendByte( const String& rString, rtl_TextEncoding eTextEnc )
{
diff --git a/sc/source/filter/excel/xestyle.cxx b/sc/source/filter/excel/xestyle.cxx
index 55edbf13da47..7d90b3f870cf 100644
--- a/sc/source/filter/excel/xestyle.cxx
+++ b/sc/source/filter/excel/xestyle.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestyle.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.33.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -1811,30 +1811,48 @@ XclExpDefaultXF::XclExpDefaultXF( const XclExpRoot& rRoot, bool bCellXF ) :
{
}
-void XclExpDefaultXF::SetParent( sal_uInt32 nParentXFId )
-{
- DBG_ASSERT( IsCellXF(), "XclExpDefaultXF::SetParent - not allowed in style XFs" );
- if( IsCellXF() )
- mnParentXFId = nParentXFId;
-}
-
-void XclExpDefaultXF::SetUsedFlags(
- bool bProtUsed, bool bFontUsed, bool bFmtUsed,
- bool bAlignUsed, bool bBorderUsed, bool bAreaUsed )
-{
- mbProtUsed = bProtUsed;
- mbFontUsed = bFontUsed;
- mbFmtUsed = bFmtUsed;
- mbAlignUsed = bAlignUsed;
- mbBorderUsed = bBorderUsed;
- mbAreaUsed = bAreaUsed;
-}
-
-void XclExpDefaultXF::SetProtection( const XclExpCellProt& rProtection )
-{
- maProtection = rProtection;
- mbProtUsed = true;
-}
+//UNUSED2008-05 void XclExpDefaultXF::SetParent( sal_uInt32 nParentXFId )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( IsCellXF(), "XclExpDefaultXF::SetParent - not allowed in style XFs" );
+//UNUSED2008-05 if( IsCellXF() )
+//UNUSED2008-05 mnParentXFId = nParentXFId;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpDefaultXF::SetUsedFlags(
+//UNUSED2008-05 bool bProtUsed, bool bFontUsed, bool bFmtUsed,
+//UNUSED2008-05 bool bAlignUsed, bool bBorderUsed, bool bAreaUsed )
+//UNUSED2008-05 {
+//UNUSED2008-05 mbProtUsed = bProtUsed;
+//UNUSED2008-05 mbFontUsed = bFontUsed;
+//UNUSED2008-05 mbFmtUsed = bFmtUsed;
+//UNUSED2008-05 mbAlignUsed = bAlignUsed;
+//UNUSED2008-05 mbBorderUsed = bBorderUsed;
+//UNUSED2008-05 mbAreaUsed = bAreaUsed;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpDefaultXF::SetProtection( const XclExpCellProt& rProtection )
+//UNUSED2008-05 {
+//UNUSED2008-05 maProtection = rProtection;
+//UNUSED2008-05 mbProtUsed = true;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpDefaultXF::SetAlignment( const XclExpCellAlign& rAlignment )
+//UNUSED2008-05 {
+//UNUSED2008-05 maAlignment = rAlignment;
+//UNUSED2008-05 mbAlignUsed = true;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpDefaultXF::SetBorder( const XclExpCellBorder& rBorder )
+//UNUSED2008-05 {
+//UNUSED2008-05 maBorder = rBorder;
+//UNUSED2008-05 mbBorderUsed = true;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void XclExpDefaultXF::SetArea( const XclExpCellArea& rArea )
+//UNUSED2008-05 {
+//UNUSED2008-05 maArea = rArea;
+//UNUSED2008-05 mbAreaUsed = true;
+//UNUSED2008-05 }
void XclExpDefaultXF::SetFont( sal_uInt16 nXclFont )
{
@@ -1848,24 +1866,6 @@ void XclExpDefaultXF::SetNumFmt( sal_uInt16 nXclNumFmt )
mbFmtUsed = true;
}
-void XclExpDefaultXF::SetAlignment( const XclExpCellAlign& rAlignment )
-{
- maAlignment = rAlignment;
- mbAlignUsed = true;
-}
-
-void XclExpDefaultXF::SetBorder( const XclExpCellBorder& rBorder )
-{
- maBorder = rBorder;
- mbBorderUsed = true;
-}
-
-void XclExpDefaultXF::SetArea( const XclExpCellArea& rArea )
-{
- maArea = rArea;
- mbAreaUsed = true;
-}
-
// ----------------------------------------------------------------------------
XclExpStyle::XclExpStyle( sal_uInt32 nXFId, const String& rStyleName ) :
diff --git a/sc/source/filter/excel/xistream.cxx b/sc/source/filter/excel/xistream.cxx
index 438735c04ee5..44d4040a1e53 100644
--- a/sc/source/filter/excel/xistream.cxx
+++ b/sc/source/filter/excel/xistream.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xistream.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.22.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -468,12 +468,12 @@ void XclImpStream::PopPosition()
}
}
-void XclImpStream::RejectPosition()
-{
- DBG_ASSERT( !maPosStack.empty(), "XclImpStream::RejectPosition - stack empty" );
- if( !maPosStack.empty() )
- maPosStack.pop_back();
-}
+//UNUSED2008-05 void XclImpStream::RejectPosition()
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ASSERT( !maPosStack.empty(), "XclImpStream::RejectPosition - stack empty" );
+//UNUSED2008-05 if( !maPosStack.empty() )
+//UNUSED2008-05 maPosStack.pop_back();
+//UNUSED2008-05 }
void XclImpStream::StoreGlobalPosition()
{
@@ -770,18 +770,18 @@ sal_Size XclImpStream::CopyToStream( SvStream& rOutStrm, sal_Size nBytes )
return nRet;
}
-sal_Size XclImpStream::CopyRecordToStream( SvStream& rOutStrm )
-{
- sal_Size nRet = 0;
- if( mbValidRec )
- {
- PushPosition();
- RestorePosition( maFirstRec );
- nRet = CopyToStream( rOutStrm, GetRecSize() );
- PopPosition();
- }
- return nRet;
-}
+//UNUSED2008-05 sal_Size XclImpStream::CopyRecordToStream( SvStream& rOutStrm )
+//UNUSED2008-05 {
+//UNUSED2008-05 sal_Size nRet = 0;
+//UNUSED2008-05 if( mbValidRec )
+//UNUSED2008-05 {
+//UNUSED2008-05 PushPosition();
+//UNUSED2008-05 RestorePosition( maFirstRec );
+//UNUSED2008-05 nRet = CopyToStream( rOutStrm, GetRecSize() );
+//UNUSED2008-05 PopPosition();
+//UNUSED2008-05 }
+//UNUSED2008-05 return nRet;
+//UNUSED2008-05 }
void XclImpStream::Seek( sal_Size nPos )
{
@@ -974,11 +974,6 @@ String XclImpStream::ReadByteString( bool b16BitLen )
return ReadRawByteString( ReadByteStrLen( b16BitLen ) );
}
-void XclImpStream::IgnoreByteString( bool b16BitLen )
-{
- Ignore( ReadByteStrLen( b16BitLen ) );
-}
-
// private --------------------------------------------------------------------
void XclImpStream::StorePosition( XclImpStreamPos& rPos )
diff --git a/sc/source/filter/excel/xlpivot.cxx b/sc/source/filter/excel/xlpivot.cxx
index e156a7fc7279..54ab98f569bb 100644
--- a/sc/source/filter/excel/xlpivot.cxx
+++ b/sc/source/filter/excel/xlpivot.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xlpivot.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -214,11 +214,6 @@ XclPCNumGroupInfo::XclPCNumGroupInfo() :
SetNumType();
}
-bool XclPCNumGroupInfo::IsNumType() const
-{
- return GetXclDataType() == EXC_SXNUMGROUP_TYPE_NUM;
-}
-
void XclPCNumGroupInfo::SetNumType()
{
SetXclDataType( EXC_SXNUMGROUP_TYPE_NUM );
@@ -302,10 +297,10 @@ bool XclPCField::IsStandardField() const
return meFieldType == EXC_PCFIELD_STANDARD;
}
-bool XclPCField::IsCalculatedField() const
-{
- return meFieldType == EXC_PCFIELD_CALCED;
-}
+//UNUSED2008-05 bool XclPCField::IsCalculatedField() const
+//UNUSED2008-05 {
+//UNUSED2008-05 return meFieldType == EXC_PCFIELD_CALCED;
+//UNUSED2008-05 }
bool XclPCField::IsStdGroupField() const
{
diff --git a/sc/source/filter/excel/xlstyle.cxx b/sc/source/filter/excel/xlstyle.cxx
index 9255ba58a941..a3ae0cc5458d 100644
--- a/sc/source/filter/excel/xlstyle.cxx
+++ b/sc/source/filter/excel/xlstyle.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xlstyle.cxx,v $
- * $Revision: 1.28 $
+ * $Revision: 1.27.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -1469,11 +1469,11 @@ XclNumFmtBuffer::XclNumFmtBuffer( const XclRoot& rRoot ) :
InsertBuiltinFormats();
}
-const XclNumFmt* XclNumFmtBuffer::GetFormat( sal_uInt16 nXclNumFmt ) const
-{
- XclNumFmtMap::const_iterator aIt = maFmtMap.find( nXclNumFmt );
- return (aIt != maFmtMap.end()) ? &aIt->second : 0;
-}
+//UNUSED2008-05 const XclNumFmt* XclNumFmtBuffer::GetFormat( sal_uInt16 nXclNumFmt ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 XclNumFmtMap::const_iterator aIt = maFmtMap.find( nXclNumFmt );
+//UNUSED2008-05 return (aIt != maFmtMap.end()) ? &aIt->second : 0;
+//UNUSED2008-05 }
void XclNumFmtBuffer::InsertFormat( sal_uInt16 nXclNumFmt, const String& rFormat )
{
diff --git a/sc/source/filter/excel/xltools.cxx b/sc/source/filter/excel/xltools.cxx
index 06f61ad21252..2ac6fc3f6f8a 100644
--- a/sc/source/filter/excel/xltools.cxx
+++ b/sc/source/filter/excel/xltools.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xltools.cxx,v $
- * $Revision: 1.32 $
+ * $Revision: 1.31.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -426,16 +426,16 @@ rtl_TextEncoding XclTools::GetTextEncoding( sal_uInt16 nCodePage )
return pEntry->meTextEnc;
}
-sal_uInt16 XclTools::GetXclCodePage( rtl_TextEncoding eTextEnc )
-{
- const XclCodePageEntry* pEntry = ::std::find_if( pCodePageTable, pCodePageTableEnd, XclCodePageEntry_TEPred( eTextEnc ) );
- if( pEntry == pCodePageTableEnd )
- {
- DBG_ERROR1( "XclTools::GetXclCodePage - unsupported text encoding: %d", eTextEnc );
- return 1252;
- }
- return pEntry->mnCodePage;
-}
+//UNUSED2008-05 sal_uInt16 XclTools::GetXclCodePage( rtl_TextEncoding eTextEnc )
+//UNUSED2008-05 {
+//UNUSED2008-05 const XclCodePageEntry* pEntry = ::std::find_if( pCodePageTable, pCodePageTableEnd, XclCodePageEntry_TEPred( eTextEnc ) );
+//UNUSED2008-05 if( pEntry == pCodePageTableEnd )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERROR1( "XclTools::GetXclCodePage - unsupported text encoding: %d", eTextEnc );
+//UNUSED2008-05 return 1252;
+//UNUSED2008-05 }
+//UNUSED2008-05 return pEntry->mnCodePage;
+//UNUSED2008-05 }
// font names -----------------------------------------------------------------
diff --git a/sc/source/filter/excel/xltracer.cxx b/sc/source/filter/excel/xltracer.cxx
index b495810d8ac3..f4dcc65b940d 100644
--- a/sc/source/filter/excel/xltracer.cxx
+++ b/sc/source/filter/excel/xltracer.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xltracer.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -103,12 +103,6 @@ void XclTracer::AddAttribute( const OUString& rName, const OUString& rValue )
mpTracer->AddAttribute( rName, rValue );
}
-void XclTracer::AddAttribute( const OUString& rName, sal_Int32 nValue )
-{
- if( mbEnabled )
- mpTracer->AddAttribute( rName, OUString::valueOf( nValue ) );
-}
-
void XclTracer::Trace( const OUString& rElementID, const OUString& rMessage )
{
if( mbEnabled )
@@ -118,15 +112,6 @@ void XclTracer::Trace( const OUString& rElementID, const OUString& rMessage )
}
}
-void XclTracer::Trace( const OUString& rElementID, sal_Int32 nMessage )
-{
- if( mbEnabled )
- {
- mpTracer->Trace( rElementID, OUString::valueOf( nMessage ) );
- mpTracer->ClearAttributes();
- }
-}
-
void XclTracer::TraceLog( XclTracerId eProblem, sal_Int32 nValue )
{
if( mbEnabled )
@@ -219,17 +204,6 @@ void XclTracer::TraceFillPattern( bool bFillPattern)
ProcessTraceOnce(eFillPattern);
}
-void XclTracer::TraceInvisibleGrid( bool bVisibleGrid)
-{
- // Excel supports Grid lines on a per sheet basis while
- // Calc displays grid lines on a per doc basis based on the
- // first visible sheet. If the first visible sheet has the
- // grid turned off then potentially we may have a problem.
-
- if(!bVisibleGrid)
- ProcessTraceOnce(eInvisibleGrid);
-}
-
void XclTracer::TraceFormulaExtName( )
{
// import cannot access Excel External name ranges in
@@ -260,37 +234,11 @@ void XclTracer::TraceChartUnKnownType()
ProcessTraceOnce(eChartUnKnownType);
}
-void XclTracer::TraceChartTrendLines()
-{
- ProcessTraceOnce(eChartTrendLines);
-}
-
-void XclTracer::TraceChartErrorBars()
-{
- ProcessTraceOnce( eChartErrorBars );
-}
-
void XclTracer::TraceChartOnlySheet()
{
ProcessTraceOnce(eChartOnlySheet);
}
-void XclTracer::TraceChartRange()
-{
- // Chart range symmetry is essential to display a chart. If the count
- // of category values is not equal to the count of values or the start row/column
- // depending on type, is not the same, then the chart range is said to be not
- // symmetrical and will not display correctly.
- ProcessTraceOnce(eChartRange);
-}
-
-void XclTracer::TraceChartDSName()
-{
- // Data series names must be linked to a cell to appear. Hard
- // coded strings contained in the ChartSeriestext() do not appear.
- ProcessTraceOnce(eChartDSName);
-}
-
void XclTracer::TraceChartDataTable()
{
// Data table is not supported.
@@ -304,37 +252,12 @@ void XclTracer::TraceChartLegendPosition()
ProcessTraceOnce(eChartLegendPosition);
}
-void XclTracer::TraceChartTextFormatting()
-{
- // text formatting in titles or data labels not supported.
- ProcessTraceOnce(eChartTextFormatting);
-}
-
void XclTracer::TraceChartEmbeddedObj()
{
// drawing objects e.g. text boxes etc not supported inside charts
ProcessTraceOnce(eChartEmbeddedObj);
}
-void XclTracer::TraceChartAxisAutoCross()
-{
- // Axis intervals generated automatically may not be the same.
- ProcessTraceOnce(eChartAxisAuto);
-}
-
-void XclTracer::TraceChartAxisManualCross()
-{
- // Manual axis crossing point changed
- ProcessTraceOnce(eChartAxisManual);
-}
-
-void XclTracer::TraceChartInvalidXY()
-{
- // Scatter charts will ony appear if the category(X) data range is
- // located in the left most column in relation to the value range.
- ProcessTraceOnce(eChartInvalidXY);
-}
-
void XclTracer::TraceUnsupportedObjects()
{
// Called from Excel 5.0 - limited Graphical object support.
diff --git a/sc/source/filter/ftools/fapihelper.cxx b/sc/source/filter/ftools/fapihelper.cxx
index 05b9ddb773fe..5053734451fc 100644
--- a/sc/source/filter/ftools/fapihelper.cxx
+++ b/sc/source/filter/ftools/fapihelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fapihelper.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -109,35 +109,35 @@ Reference< XInterface > ScfApiHelper::CreateInstance( const OUString& rServiceNa
return CreateInstance( ::comphelper::getProcessServiceFactory(), rServiceName );
}
-Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
- Reference< XMultiServiceFactory > xFactory, const OUString& rServiceName, const Sequence< Any >& rArgs )
-{
- Reference< XInterface > xInt;
- if( xFactory.is() )
- {
- try
- {
- xInt = xFactory->createInstanceWithArguments( rServiceName, rArgs );
- }
- catch( Exception& )
- {
- DBG_ERRORFILE( "ScfApiHelper::CreateInstanceWithArgs - cannot create instance" );
- }
- }
- return xInt;
-}
-
-Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
- SfxObjectShell* pShell, const OUString& rServiceName, const Sequence< Any >& rArgs )
-{
- return CreateInstanceWithArgs( GetServiceFactory( pShell ), rServiceName, rArgs );
-}
-
-Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
- const OUString& rServiceName, const Sequence< Any >& rArgs )
-{
- return CreateInstanceWithArgs( ::comphelper::getProcessServiceFactory(), rServiceName, rArgs );
-}
+//UNUSED2008-05 Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
+//UNUSED2008-05 Reference< XMultiServiceFactory > xFactory, const OUString& rServiceName, const Sequence< Any >& rArgs )
+//UNUSED2008-05 {
+//UNUSED2008-05 Reference< XInterface > xInt;
+//UNUSED2008-05 if( xFactory.is() )
+//UNUSED2008-05 {
+//UNUSED2008-05 try
+//UNUSED2008-05 {
+//UNUSED2008-05 xInt = xFactory->createInstanceWithArguments( rServiceName, rArgs );
+//UNUSED2008-05 }
+//UNUSED2008-05 catch( Exception& )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERRORFILE( "ScfApiHelper::CreateInstanceWithArgs - cannot create instance" );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 return xInt;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
+//UNUSED2008-05 SfxObjectShell* pShell, const OUString& rServiceName, const Sequence< Any >& rArgs )
+//UNUSED2008-05 {
+//UNUSED2008-05 return CreateInstanceWithArgs( GetServiceFactory( pShell ), rServiceName, rArgs );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 Reference< XInterface > ScfApiHelper::CreateInstanceWithArgs(
+//UNUSED2008-05 const OUString& rServiceName, const Sequence< Any >& rArgs )
+//UNUSED2008-05 {
+//UNUSED2008-05 return CreateInstanceWithArgs( ::comphelper::getProcessServiceFactory(), rServiceName, rArgs );
+//UNUSED2008-05 }
String ScfApiHelper::QueryPasswordForMedium( SfxMedium& rMedium )
{
diff --git a/sc/source/filter/ftools/fprogressbar.cxx b/sc/source/filter/ftools/fprogressbar.cxx
index c03cde4adfd9..9471a1d1a2bf 100644
--- a/sc/source/filter/ftools/fprogressbar.cxx
+++ b/sc/source/filter/ftools/fprogressbar.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fprogressbar.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.10.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -231,11 +231,11 @@ void ScfSimpleProgressBar::Init( sal_Size nSize )
// ============================================================================
-ScfStreamProgressBar::ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText ) :
- mrStrm( rStrm )
-{
- Init( pDocShell, rText );
-}
+//UNUSED2008-05 ScfStreamProgressBar::ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText ) :
+//UNUSED2008-05 mrStrm( rStrm )
+//UNUSED2008-05 {
+//UNUSED2008-05 Init( pDocShell, rText );
+//UNUSED2008-05 }
ScfStreamProgressBar::ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, USHORT nResId ) :
mrStrm( rStrm )
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx
index 3882f005e809..38bd3e2dde65 100644
--- a/sc/source/filter/html/htmlpars.cxx
+++ b/sc/source/filter/html/htmlpars.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: htmlpars.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.34.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -2829,20 +2829,6 @@ const ScHTMLTable* ScHTMLQueryParser::GetGlobalTable() const
return mpGlobTable.get();
}
-
-// ----------------------------------------------------------------------------
-
-ScHTMLTable* ScHTMLQueryParser::GetTable( ScHTMLTableId nTableId ) const
-{
- if( nTableId == SC_HTML_GLOBAL_TABLE )
- return mpGlobTable.get();
- ScHTMLTable* pTable = mpGlobTable->FindNestedTable( nTableId );
- DBG_ASSERT( pTable, "ScHTMLQueryParser::GetTable - table not found" );
- if( !pTable )
- return mpGlobTable.get();
- return pTable;
-}
-
void ScHTMLQueryParser::ProcessToken( const ImportInfo& rInfo )
{
switch( rInfo.nToken )
diff --git a/sc/source/filter/inc/colrowst.hxx b/sc/source/filter/inc/colrowst.hxx
index 5a485de77af5..0e1e70fc3b78 100644
--- a/sc/source/filter/inc/colrowst.hxx
+++ b/sc/source/filter/inc/colrowst.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: colrowst.hxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.23.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -50,7 +50,6 @@ public:
void SetDefHeight( sal_uInt16 nDefHeight, sal_uInt16 nFlags );
void SetHeight( SCROW nRow, sal_uInt16 nHeight );
- void HideRow( SCROW nRow );
void SetRowSettings( SCROW nRow, sal_uInt16 nHeight, sal_uInt16 nFlags );
void SetDefaultXF( SCCOL nScCol1, SCCOL nScCol2, sal_uInt16 nXFIndex );
diff --git a/sc/source/filter/inc/exp_op.hxx b/sc/source/filter/inc/exp_op.hxx
index 655e0a17d723..4936e07cc36e 100644
--- a/sc/source/filter/inc/exp_op.hxx
+++ b/sc/source/filter/inc/exp_op.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: exp_op.hxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.13.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -62,7 +62,7 @@ public:
-
+#if ENABLE_LOTUS123_EXPORT
class ExportWK1 : public ExportTyp
{
private:
@@ -101,7 +101,7 @@ public:
FltError Write();
};
-
+#endif
diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx
index 8771d1653452..9e91cd13b891 100644
--- a/sc/source/filter/inc/fapihelper.hxx
+++ b/sc/source/filter/inc/fapihelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fapihelper.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -89,22 +89,22 @@ public:
/** Creates an instance from the passed service name, using the process service factory. */
static XInterfaceRef CreateInstance( const ::rtl::OUString& rServiceName );
- /** Creates an instance from the passed service name, using the passed service factory. */
- static XInterfaceRef CreateInstanceWithArgs(
- XServiceFactoryRef xFactory,
- const ::rtl::OUString& rServiceName,
- const UnoAnySequence& rArgs );
-
- /** Creates an instance from the passed service name, using the service factory of the passed object. */
- static XInterfaceRef CreateInstanceWithArgs(
- SfxObjectShell* pShell,
- const ::rtl::OUString& rServiceName,
- const UnoAnySequence& rArgs );
-
- /** Creates an instance from the passed service name, using the process service factory. */
- static XInterfaceRef CreateInstanceWithArgs(
- const ::rtl::OUString& rServiceName,
- const UnoAnySequence& rArgs );
+//UNUSED2008-05 /** Creates an instance from the passed service name, using the passed service factory. */
+//UNUSED2008-05 static XInterfaceRef CreateInstanceWithArgs(
+//UNUSED2008-05 XServiceFactoryRef xFactory,
+//UNUSED2008-05 const ::rtl::OUString& rServiceName,
+//UNUSED2008-05 const UnoAnySequence& rArgs );
+//UNUSED2008-05
+//UNUSED2008-05 /** Creates an instance from the passed service name, using the service factory of the passed object. */
+//UNUSED2008-05 static XInterfaceRef CreateInstanceWithArgs(
+//UNUSED2008-05 SfxObjectShell* pShell,
+//UNUSED2008-05 const ::rtl::OUString& rServiceName,
+//UNUSED2008-05 const UnoAnySequence& rArgs );
+//UNUSED2008-05
+//UNUSED2008-05 /** Creates an instance from the passed service name, using the process service factory. */
+//UNUSED2008-05 static XInterfaceRef CreateInstanceWithArgs(
+//UNUSED2008-05 const ::rtl::OUString& rServiceName,
+//UNUSED2008-05 const UnoAnySequence& rArgs );
/** Opens a password dialog and returns the entered password.
@return The entered password or an empty string on 'Cancel' or any error. */
diff --git a/sc/source/filter/inc/fdumper.hxx b/sc/source/filter/inc/fdumper.hxx
index aea8de6ae96c..997e4092e53f 100644
--- a/sc/source/filter/inc/fdumper.hxx
+++ b/sc/source/filter/inc/fdumper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fdumper.hxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.8.28.2 $
*
* This file is part of OpenOffice.org.
*
@@ -31,7 +31,7 @@
#ifndef SC_FDUMPER_HXX
#define SC_FDUMPER_HXX
-#define SCF_INCL_DUMPER (OSL_DEBUG_LEVEL > 0)
+#define SCF_INCL_DUMPER (OSL_DEBUG_LEVEL > 0) && 0
#include <map>
#include <math.h>
diff --git a/sc/source/filter/inc/formel.hxx b/sc/source/filter/inc/formel.hxx
index 7e0e18885871..ebef6bd83810 100644
--- a/sc/source/filter/inc/formel.hxx
+++ b/sc/source/filter/inc/formel.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formel.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.11.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -240,8 +240,8 @@ protected:
virtual ~LotusConverterBase();
public:
- void Reset( INT32 nLen );
- void Reset( INT32 nLen, const ScAddress& rEingPos );
+//UNUSED2008-05 void Reset( INT32 nLen );
+//UNUSED2008-05 void Reset( INT32 nLen, const ScAddress& rEingPos );
void Reset( const ScAddress& rEingPos );
virtual ConvErr Convert( const ScTokenArray*& rpErg, INT32& nRest,
diff --git a/sc/source/filter/inc/fprogressbar.hxx b/sc/source/filter/inc/fprogressbar.hxx
index 140a7e3147aa..77349615faac 100644
--- a/sc/source/filter/inc/fprogressbar.hxx
+++ b/sc/source/filter/inc/fprogressbar.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fprogressbar.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -222,7 +222,7 @@ private:
class ScfStreamProgressBar
{
public:
- explicit ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText );
+//UNUSED2008-05 explicit ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, const String& rText );
explicit ScfStreamProgressBar( SvStream& rStrm, SfxObjectShell* pDocShell, USHORT nResId = STR_LOAD_DOC );
/** Sets the progress bar to the current stream position. */
diff --git a/sc/source/filter/inc/htmlpars.hxx b/sc/source/filter/inc/htmlpars.hxx
index 0b8ffe4390a8..b75a44c618db 100644
--- a/sc/source/filter/inc/htmlpars.hxx
+++ b/sc/source/filter/inc/htmlpars.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: htmlpars.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -597,9 +597,6 @@ public:
virtual const ScHTMLTable* GetGlobalTable() const;
private:
- /** Returns the specified table (may be maGlobTable, if no real table can be found). */
- ScHTMLTable* GetTable( ScHTMLTableId nTableId ) const;
-
/** Handles all possible tags in the HTML document. */
void ProcessToken( const ImportInfo& rInfo );
/** Inserts a text portion into current entry. */
diff --git a/sc/source/filter/inc/namebuff.hxx b/sc/source/filter/inc/namebuff.hxx
index 0ee10c9eb09e..060422fe6b52 100644
--- a/sc/source/filter/inc/namebuff.hxx
+++ b/sc/source/filter/inc/namebuff.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: namebuff.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.15.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -118,8 +118,6 @@ public:
inline UINT16 GetLastIndex( void );
inline void SetBase( UINT16 nNewBase = 0 );
void operator <<( const String& rNewString );
- void Reset( void );
- BOOL Find( const sal_Char* pRefName, UINT16& rIndex );
};
//#94039# prevent empty rootdata
@@ -307,7 +305,6 @@ public:
BOOL GetScTabIndex( UINT16 nExcSheetIndex, UINT16& rIn_LastTab_Out_ScIndex );
BOOL IsLink( const UINT16 nExcSheetIndex ) const;
BOOL GetLink( const UINT16 nExcSheetIndex, String &rAppl, String &rDoc ) const;
- BOOL IsExternal( UINT16 nExcSheetIndex ) const;
void Reset( void );
};
@@ -329,8 +326,6 @@ struct ExtName
inline ExtName( const String& r ) : aName( r ), nStorageId( 0 ) {}
BOOL IsDDE( void ) const;
- BOOL IsOLE( void ) const;
- BOOL IsName( void ) const;
};
diff --git a/sc/source/filter/inc/otlnbuff.hxx b/sc/source/filter/inc/otlnbuff.hxx
index 886c2c713dbf..883705afc6d7 100644
--- a/sc/source/filter/inc/otlnbuff.hxx
+++ b/sc/source/filter/inc/otlnbuff.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: otlnbuff.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -53,7 +53,6 @@ class XclImpOutlineBuffer
void SetLevel( SCSIZE nIndex, BYTE nVal, BOOL bOuted, BOOL bHidden );
void SetOutlineArray( ScOutlineArray* pOArray );
void Reset( void );
- void Reset( ScOutlineArray* pOArray );
void MakeScOutline( void );
void SetLevelRange( SCSIZE nF, SCSIZE nL, BYTE nVal,
BOOL bOuted, BOOL bHidden );
diff --git a/sc/source/filter/inc/qproform.hxx b/sc/source/filter/inc/qproform.hxx
index 153d819d612a..82a5dd72d9fb 100644
--- a/sc/source/filter/inc/qproform.hxx
+++ b/sc/source/filter/inc/qproform.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: qproform.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -81,8 +81,6 @@ class QProToSc : public ConverterBase
void DoFunc( DefTokenId eOc, sal_uInt16 nArgs, const sal_Char* pExtString );
void ReadSRD( SingleRefData& rR, sal_Int8 nPage, sal_Int8 nCol, sal_uInt16 rRel );
void IncToken( TokenId &aParam );
- void DecToken( TokenId& aParam );
- void NegToken( TokenId& aParam );
DefTokenId IndexToToken( sal_uInt16 nToken );
FUNC_TYPE IndexToType( sal_uInt8 nToken );
DefTokenId IndexToDLLId( sal_uInt16 nIndex );
diff --git a/sc/source/filter/inc/tokstack.hxx b/sc/source/filter/inc/tokstack.hxx
index 7378c4302be5..42e5718ecda4 100644
--- a/sc/source/filter/inc/tokstack.hxx
+++ b/sc/source/filter/inc/tokstack.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tokstack.hxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.14.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -167,7 +167,7 @@ class TokenPool
inline void operator >>( TokenStack& rStack );
inline const TokenId Store( void );
const TokenId Store( const double& rDouble );
- const TokenId StoreError( USHORT nError );
+//UNUSED2008-05 const TokenId StoreError( USHORT nError );
// nur fuer Range-Names
const TokenId Store( const UINT16 nIndex );
@@ -188,7 +188,7 @@ class TokenPool
inline const SingleRefData* GetSRD( const TokenId& nId ) const;
BOOL IsSingleOp( const TokenId& nId, const DefTokenId eId ) const;
const String* GetExternal( const TokenId& nId ) const;
- const String* GetString( const TokenId& nId ) const;
+//UNUSED2008-05 const String* GetString( const TokenId& nId ) const;
ScMatrix* GetMatrix( unsigned int n ) const;
};
diff --git a/sc/source/filter/inc/tool.h b/sc/source/filter/inc/tool.h
index 2cc2a8c20f9f..24de125426b8 100644
--- a/sc/source/filter/inc/tool.h
+++ b/sc/source/filter/inc/tool.h
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tool.h,v $
- * $Revision: 1.6 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -42,8 +42,6 @@ void PutFormString( SCCOL nCol, SCROW nRow, SCTAB nTab, sal_Char *pString
void SetFormat( SCCOL nCol, SCROW nRow, SCTAB nTab, BYTE nFormat, BYTE nSt );
-sal_Char* ReplaceWith( sal_Char* pString, sal_Char cVon, sal_Char cNach );
-
void InitPage( void );
String DosToSystem( sal_Char *pSource );
diff --git a/sc/source/filter/inc/xcl97rec.hxx b/sc/source/filter/inc/xcl97rec.hxx
index 9afc12be25ad..8740af2c70e5 100644
--- a/sc/source/filter/inc/xcl97rec.hxx
+++ b/sc/source/filter/inc/xcl97rec.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xcl97rec.hxx,v $
- * $Revision: 1.49 $
+ * $Revision: 1.48.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -338,15 +338,6 @@ public:
};
-// --- class ExcBofC8 ------------------------------------------------
-// Header Record fuer CHARTs
-
-class ExcBofC8 : public ExcBof8_Base
-{
-public:
- ExcBofC8();
-};
-
// --- class ExcBundlesheet8 -----------------------------------------
class ExcBundlesheet8 : public ExcBundlesheetBase
@@ -374,25 +365,6 @@ public:
};
-// --- class XclDConRef ----------------------------------------------
-
-class XclDConRef : public ExcRecord
-{
-private:
- ScRange aSourceRange;
- XclExpString* pWorkbook;
-
- virtual void SaveCont( XclExpStream& rStrm );
-
-public:
- XclDConRef( const ScRange& rSrcR, const String& rWB );
- virtual ~XclDConRef();
-
- virtual UINT16 GetNum() const;
- virtual sal_Size GetLen() const;
-};
-
-
// ---- class XclCodename --------------------------------------------
class XclCodename : public ExcRecord
diff --git a/sc/source/filter/inc/xehelper.hxx b/sc/source/filter/inc/xehelper.hxx
index e58d443af39c..cb9170396ead 100644
--- a/sc/source/filter/inc/xehelper.hxx
+++ b/sc/source/filter/inc/xehelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xehelper.hxx,v $
- * $Revision: 1.20 $
+ * $Revision: 1.20.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -142,23 +142,23 @@ public:
@return true = Cell range returned in rXclRange is valid (original or cropped). */
bool ConvertRange( XclRange& rXclRange, const ScRange& rScRange, bool bWarn );
- /** Returns a valid cell range by moving it into allowed dimensions.
- @descr The start and/or end position of the range may be modified.
- @param rScRange The Calc cell range to convert.
- @param bWarn true = Sets the internal flag that produces a warning box
- after loading/saving the file, if the cell range contains invalid cells.
- @return The converted Excel cell range. */
- XclRange CreateValidRange( const ScRange& rScRange, bool bWarn );
+//UNUSED2008-05 /** Returns a valid cell range by moving it into allowed dimensions.
+//UNUSED2008-05 @descr The start and/or end position of the range may be modified.
+//UNUSED2008-05 @param rScRange The Calc cell range to convert.
+//UNUSED2008-05 @param bWarn true = Sets the internal flag that produces a warning box
+//UNUSED2008-05 after loading/saving the file, if the cell range contains invalid cells.
+//UNUSED2008-05 @return The converted Excel cell range. */
+//UNUSED2008-05 XclRange CreateValidRange( const ScRange& rScRange, bool bWarn );
// cell range list --------------------------------------------------------
- /** Checks if the passed cell range list is valid.
- @param rScRanges The Calc cell range list to check.
- @param bWarn true = Sets the internal flag that produces a warning box
- after loading/saving the file, if the cell range list contains at
- least one invalid range.
- @return true = Cell range list in rScRanges is completly valid. */
- bool CheckRangeList( const ScRangeList& rScRanges, bool bWarn );
+//UNUSED2008-05 /** Checks if the passed cell range list is valid.
+//UNUSED2008-05 @param rScRanges The Calc cell range list to check.
+//UNUSED2008-05 @param bWarn true = Sets the internal flag that produces a warning box
+//UNUSED2008-05 after loading/saving the file, if the cell range list contains at
+//UNUSED2008-05 least one invalid range.
+//UNUSED2008-05 @return true = Cell range list in rScRanges is completly valid. */
+//UNUSED2008-05 bool CheckRangeList( const ScRangeList& rScRanges, bool bWarn );
/** Checks and eventually crops the cell ranges to valid dimensions.
@descr The start position of the ranges will not be modified. Cell
diff --git a/sc/source/filter/inc/xerecord.hxx b/sc/source/filter/inc/xerecord.hxx
index 21f161f7f6ee..1a7cf2143736 100644
--- a/sc/source/filter/inc/xerecord.hxx
+++ b/sc/source/filter/inc/xerecord.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xerecord.hxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -51,8 +51,8 @@ public:
/** Overwrite this method to do any operation while saving the record. */
virtual void Save( XclExpStream& rStrm );
- /** Calls Save(XclExpStream&) nCount times. */
- void SaveRepeated( XclExpStream& rStrm, size_t nCount );
+//UNUSED2008-05 /** Calls Save(XclExpStream&) nCount times. */
+//UNUSED2008-05 void SaveRepeated( XclExpStream& rStrm, size_t nCount );
};
// ----------------------------------------------------------------------------
diff --git a/sc/source/filter/inc/xestream.hxx b/sc/source/filter/inc/xestream.hxx
index 1094dddc0dc0..8408fef68acf 100644
--- a/sc/source/filter/inc/xestream.hxx
+++ b/sc/source/filter/inc/xestream.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestream.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -120,18 +120,20 @@ public:
// *** unicode string export is realized with helper class XclExpString ***
// (slice length setting has no effect here -> disabled automatically)
- /** Writes Unicode buffer as 8/16 bit, repeats nFlags at start of a CONTINUE record. */
- void WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags );
+//UNUSED2008-05 /** Writes Unicode buffer as 8/16 bit, repeats nFlags at start of a CONTINUE record. */
+//UNUSED2008-05 void WriteUnicodeBuffer( const sal_uInt16* pBuffer, sal_Size nChars, sal_uInt8 nFlags );
+
/** Writes Unicode buffer as 8/16 bit, repeats nFlags at start of a CONTINUE record. */
void WriteUnicodeBuffer( const ScfUInt16Vec& rBuffer, sal_uInt8 nFlags );
// *** write 8-bit-strings ***
// (slice length setting has no effect here -> disabled automatically)
- /** Writes ByteString buffer (without string length field). */
- void WriteByteStringBuffer(
- const ByteString& rString,
- sal_uInt16 nMaxLen = 0x00FF );
+//UNUSED2008-05 /** Writes ByteString buffer (without string length field). */
+//UNUSED2008-05 void WriteByteStringBuffer(
+//UNUSED2008-05 const ByteString& rString,
+//UNUSED2008-05 sal_uInt16 nMaxLen = 0x00FF );
+
/** Writes string length field and ByteString buffer. */
void WriteByteString(
const ByteString& rString,
diff --git a/sc/source/filter/inc/xestring.hxx b/sc/source/filter/inc/xestring.hxx
index 757f6e9506e8..d26d69976171 100644
--- a/sc/source/filter/inc/xestring.hxx
+++ b/sc/source/filter/inc/xestring.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestring.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -74,15 +74,6 @@ public:
const String& rString,
XclStrFlags nFlags = EXC_STR_DEFAULT,
sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
- /** Constructs a formatted BIFF8 Unicode string.
- @param rFormats The formatting runs.
- @param nFlags Modifiers for string export.
- @param nMaxLen The maximum number of characters to store in this string. */
- explicit XclExpString(
- const String& rString,
- const XclFormatRunVec& rFormats,
- XclStrFlags nFlags = EXC_STR_DEFAULT,
- sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
/** Constructs an unformatted BIFF8 Unicode string.
@param nFlags Modifiers for string export.
@param nMaxLen The maximum number of characters to store in this string. */
@@ -90,15 +81,25 @@ public:
const ::rtl::OUString& rString,
XclStrFlags nFlags = EXC_STR_DEFAULT,
sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
- /** Constructs a formatted BIFF8 Unicode string.
- @param rFormats The formatting runs.
- @param nFlags Modifiers for string export.
- @param nMaxLen The maximum number of characters to store in this string. */
- explicit XclExpString(
- const ::rtl::OUString& rString,
- const XclFormatRunVec& rFormats,
- XclStrFlags nFlags = EXC_STR_DEFAULT,
- sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
+//UNUSED2008-05 /** Constructs a formatted BIFF8 Unicode string.
+//UNUSED2008-05 @param rFormats The formatting runs.
+//UNUSED2008-05 @param nFlags Modifiers for string export.
+//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string. */
+//UNUSED2008-05 explicit XclExpString(
+//UNUSED2008-05 const String& rString,
+//UNUSED2008-05 const XclFormatRunVec& rFormats,
+//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT,
+//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
+//UNUSED2008-05
+//UNUSED2008-05 /** Constructs a formatted BIFF8 Unicode string.
+//UNUSED2008-05 @param rFormats The formatting runs.
+//UNUSED2008-05 @param nFlags Modifiers for string export.
+//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string. */
+//UNUSED2008-05 explicit XclExpString(
+//UNUSED2008-05 const ::rtl::OUString& rString,
+//UNUSED2008-05 const XclFormatRunVec& rFormats,
+//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT,
+//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
// assign -----------------------------------------------------------------
@@ -150,26 +151,28 @@ public:
rtl_TextEncoding eTextEnc,
XclStrFlags nFlags = EXC_STR_DEFAULT,
sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
- /** Assigns a character, converts this object to a BIFF2-BIFF7 byte string.
- @param nFlags Modifiers for string export.
- @param nMaxLen The maximum number of characters to store in this string (for appending). */
- void AssignByte(
- sal_Unicode cChar,
- rtl_TextEncoding eTextEnc,
- XclStrFlags nFlags = EXC_STR_DEFAULT,
- sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
+
+//UNUSED2008-05 /** Assigns a character, converts this object to a BIFF2-BIFF7 byte string.
+//UNUSED2008-05 @param nFlags Modifiers for string export.
+//UNUSED2008-05 @param nMaxLen The maximum number of characters to store in this string (for appending). */
+//UNUSED2008-05 void AssignByte(
+//UNUSED2008-05 sal_Unicode cChar,
+//UNUSED2008-05 rtl_TextEncoding eTextEnc,
+//UNUSED2008-05 XclStrFlags nFlags = EXC_STR_DEFAULT,
+//UNUSED2008-05 sal_uInt16 nMaxLen = EXC_STR_MAXLEN );
// append -----------------------------------------------------------------
/** Appends a string. Uses the string flags used in constructor or last Assign().
@descr This object must be a BIFF8 Unicode string. */
void Append( const String& rString );
- /** Appends a string. Uses the string flags used in constructor or last Assign().
- @descr This object must be a BIFF8 Unicode string. */
- void Append( const ::rtl::OUString& rString );
- /** Appends a character. Uses the string flags used in constructor or last Assign().
- @descr This object must be a BIFF8 Unicode string. */
- void Append( sal_Unicode cChar );
+
+//UNUSED2008-05 /** Appends a string. Uses the string flags used in constructor or last Assign().
+//UNUSED2008-05 @descr This object must be a BIFF8 Unicode string. */
+//UNUSED2008-05 void Append( const ::rtl::OUString& rString );
+//UNUSED2008-05 /** Appends a character. Uses the string flags used in constructor or last Assign().
+//UNUSED2008-05 @descr This object must be a BIFF8 Unicode string. */
+//UNUSED2008-05 void Append( sal_Unicode cChar );
/** Appends a string. Uses the string flags used in constructor or last Assign().
@descr This object must be a BIFF2-BIFF7 byte string. */
diff --git a/sc/source/filter/inc/xestyle.hxx b/sc/source/filter/inc/xestyle.hxx
index c0e500992fe4..0c5523a510da 100644
--- a/sc/source/filter/inc/xestyle.hxx
+++ b/sc/source/filter/inc/xestyle.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xestyle.hxx,v $
- * $Revision: 1.20 $
+ * $Revision: 1.20.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -529,26 +529,27 @@ class XclExpDefaultXF : public XclExpXF
public:
explicit XclExpDefaultXF( const XclExpRoot& rRoot, bool bCellXF );
- /** Sets the parent XF ID. Only allowed for cell XFs. */
- void SetParent( sal_uInt32 nParentXFId );
+//UNUSED2008-05 /** Sets the parent XF ID. Only allowed for cell XFs. */
+//UNUSED2008-05 void SetParent( sal_uInt32 nParentXFId );
+//UNUSED2008-05
+//UNUSED2008-05 /** Sets all "attribute used" flags explicitely.
+//UNUSED2008-05 @descr The following Set***() functions set the appropriate flag too. */
+//UNUSED2008-05 void SetUsedFlags(
+//UNUSED2008-05 bool bProtUsed, bool bFontUsed, bool bFmtUsed,
+//UNUSED2008-05 bool bAlignUsed, bool bBorderUsed, bool bAreaUsed );
+//UNUSED2008-05 /** Sets the cell protection flags. */
+//UNUSED2008-05 void SetProtection( const XclExpCellProt& rProtection );
+//UNUSED2008-05 /** Sets cell alignment attributes. */
+//UNUSED2008-05 void SetAlignment( const XclExpCellAlign& rAlignment );
+//UNUSED2008-05 /** Sets a cell border style. */
+//UNUSED2008-05 void SetBorder( const XclExpCellBorder& rBorder );
+//UNUSED2008-05 /** Sets a cell area style. */
+//UNUSED2008-05 void SetArea( const XclExpCellArea& rArea );
- /** Sets all "attribute used" flags explicitely.
- @descr The following Set***() functions set the appropriate flag too. */
- void SetUsedFlags(
- bool bProtUsed, bool bFontUsed, bool bFmtUsed,
- bool bAlignUsed, bool bBorderUsed, bool bAreaUsed );
- /** Sets the cell protection flags. */
- void SetProtection( const XclExpCellProt& rProtection );
/** Sets the Excel font index. */
void SetFont( sal_uInt16 nXclFont );
/** Sets the Excel number format index. */
void SetNumFmt( sal_uInt16 nXclNumFmt );
- /** Sets cell alignment attributes. */
- void SetAlignment( const XclExpCellAlign& rAlignment );
- /** Sets a cell border style. */
- void SetBorder( const XclExpCellBorder& rBorder );
- /** Sets a cell area style. */
- void SetArea( const XclExpCellArea& rArea );
};
// ----------------------------------------------------------------------------
diff --git a/sc/source/filter/inc/xistream.hxx b/sc/source/filter/inc/xistream.hxx
index f35dbe17a518..bad06af69ac2 100644
--- a/sc/source/filter/inc/xistream.hxx
+++ b/sc/source/filter/inc/xistream.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xistream.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -310,8 +310,8 @@ public:
/** Seeks to last position from user position stack.
@descr This position will be removed from the stack. */
void PopPosition();
- /** Removes last position from user position stack, but does not seek to it. */
- void RejectPosition();
+//UNUSED2008-05 /** Removes last position from user position stack, but does not seek to it. */
+//UNUSED2008-05 void RejectPosition();
/** Stores current position. This position keeps valid in all records. */
void StoreGlobalPosition();
@@ -357,9 +357,10 @@ public:
/** Copies nBytes bytes to rOutStrm.
@return Count of bytes really written. */
sal_Size CopyToStream( SvStream& rOutStrm, sal_Size nBytes );
- /** Copies the entire record to rOutStrm. The current record position keeps unchanged.
- @return Count of bytes really written. */
- sal_Size CopyRecordToStream( SvStream& rOutStrm );
+
+//UNUSED2008-05 /** Copies the entire record to rOutStrm. The current record position keeps unchanged.
+//UNUSED2008-05 @return Count of bytes really written. */
+//UNUSED2008-05 sal_Size CopyRecordToStream( SvStream& rOutStrm );
/** Seeks absolute in record content to the specified position.
@descr The value 0 means start of record, independent from physical stream position. */
@@ -430,8 +431,6 @@ public:
String ReadRawByteString( sal_uInt16 nChars );
/** Reads 8/16 bit string length, character array and returns the string. */
String ReadByteString( bool b16BitLen );
- /** Ignores 8/16 bit string length, character array. */
- void IgnoreByteString( bool b16BitLen );
// *** SvStream functions *** ---------------------------------------------
diff --git a/sc/source/filter/inc/xlpivot.hxx b/sc/source/filter/inc/xlpivot.hxx
index bd26ac1540a3..9604c7b1d17d 100644
--- a/sc/source/filter/inc/xlpivot.hxx
+++ b/sc/source/filter/inc/xlpivot.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xlpivot.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -490,7 +490,6 @@ struct XclPCNumGroupInfo
explicit XclPCNumGroupInfo();
- bool IsNumType() const;
void SetNumType();
sal_Int32 GetScDateType() const;
@@ -520,8 +519,9 @@ public:
/** Returns true, if this is a standard field build directly from source data. */
bool IsStandardField() const;
- /** Returns true, if the items of the field are calculated from a formula. */
- bool IsCalculatedField() const;
+
+//UNUSED2008-05 /** Returns true, if the items of the field are calculated from a formula. */
+//UNUSED2008-05 bool IsCalculatedField() const;
/** Returns true, if this field is a grouping field. */
bool IsStdGroupField() const;
diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx
index 28ab38a1cfe0..ac56f254492c 100644
--- a/sc/source/filter/inc/xlstyle.hxx
+++ b/sc/source/filter/inc/xlstyle.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xlstyle.hxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.23.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -465,8 +465,9 @@ protected:
/** Returns the current number format map. */
inline const XclNumFmtMap& GetFormatMap() const { return maFmtMap; }
- /** Returns the number format with the specified Excel format index. */
- const XclNumFmt* GetFormat( sal_uInt16 nXclNumFmt ) const;
+
+//UNUSED2008-05 /** Returns the number format with the specified Excel format index. */
+//UNUSED2008-05 const XclNumFmt* GetFormat( sal_uInt16 nXclNumFmt ) const;
/** Inserts a new number format for the specified Excel format index. */
void InsertFormat( sal_uInt16 nXclNumFmt, const String& rFormat );
diff --git a/sc/source/filter/inc/xltools.hxx b/sc/source/filter/inc/xltools.hxx
index f76190f1464f..459a5c9b3a78 100644
--- a/sc/source/filter/inc/xltools.hxx
+++ b/sc/source/filter/inc/xltools.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xltools.hxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.27.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -166,8 +166,9 @@ public:
/** Returns a text encoding from an Excel code page.
@return The corresponding text encoding or RTL_TEXTENCODING_DONTKNOW. */
static rtl_TextEncoding GetTextEncoding( sal_uInt16 nCodePage );
- /** Returns an Excel code page from a text encoding. */
- static sal_uInt16 GetXclCodePage( rtl_TextEncoding eTextEnc );
+
+//UNUSED2008-05 /** Returns an Excel code page from a text encoding. */
+//UNUSED2008-05 static sal_uInt16 GetXclCodePage( rtl_TextEncoding eTextEnc );
// font names -------------------------------------------------------------
diff --git a/sc/source/filter/inc/xltracer.hxx b/sc/source/filter/inc/xltracer.hxx
index eec0c294bb0e..2d3009260140 100644
--- a/sc/source/filter/inc/xltracer.hxx
+++ b/sc/source/filter/inc/xltracer.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xltracer.hxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -99,15 +99,10 @@ public:
/** Adds an attribute to be traced with the next Trace() call. */
void AddAttribute( const ::rtl::OUString& rName, const ::rtl::OUString& rValue );
- /** Adds an attribute to be traced with the next Trace() call. */
- void AddAttribute( const ::rtl::OUString& rName, sal_Int32 nValue );
/** Creates an element including all attributes set up to this call.
@descr Removes all attributes after the element is traced. */
void Trace( const ::rtl::OUString& rElementID, const ::rtl::OUString& rMessage );
- /** Creates an element including all attributes set up to this call.
- @descr Removes all attributes after the element is traced. */
- void Trace( const ::rtl::OUString& rElementID, sal_Int32 nMessage );
/** Calls Trace() with a known document properties problem. */
void TraceLog( XclTracerId eProblem, sal_Int32 nValue = 0 );
@@ -125,24 +120,15 @@ public:
void TraceDates(sal_uInt16 nNumFmt);
void TraceBorderLineStyle(bool bBorderLineStyle);
void TraceFillPattern(bool bFillPattern);
- void TraceInvisibleGrid(bool bVisibleGrid);
void TraceFormulaExtName();
void TraceFormulaMissingArg();
void TracePivotDataSource(bool bExternal);
void TracePivotChartExists();
void TraceChartUnKnownType();
- void TraceChartTrendLines();
- void TraceChartErrorBars();
void TraceChartOnlySheet();
- void TraceChartRange();
- void TraceChartDSName();
void TraceChartDataTable();
void TraceChartLegendPosition();
- void TraceChartTextFormatting();
void TraceChartEmbeddedObj();
- void TraceChartAxisAutoCross();
- void TraceChartAxisManualCross();
- void TraceChartInvalidXY();
void TraceUnsupportedObjects();
void TraceObjectNotPrintable();
void TraceDVType(bool bType);
diff --git a/sc/source/filter/lotus/expop.cxx b/sc/source/filter/lotus/expop.cxx
index 6e0a40446258..137659451bb3 100644
--- a/sc/source/filter/lotus/expop.cxx
+++ b/sc/source/filter/lotus/expop.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: expop.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -43,7 +43,7 @@
#include "exp_op.hxx"
-
+#if ENABLE_LOTUS123_EXPORT
const USHORT ExportWK1::WK1MAXCOL = 255;
const USHORT ExportWK1::WK1MAXROW = 8191;
@@ -411,6 +411,6 @@ FltError ExportWK1::Write()
return eERR_OK;
}
-
+#endif
diff --git a/sc/source/filter/lotus/export.cxx b/sc/source/filter/lotus/export.cxx
index d8dc9d0e3025..9c1e43c44635 100644
--- a/sc/source/filter/lotus/export.cxx
+++ b/sc/source/filter/lotus/export.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: export.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -37,7 +37,7 @@
#include "scerrors.hxx"
#include "exp_op.hxx"
-
+#if ENABLE_LOTUS123_EXPORT
FltError ScExportLotus123( SvStream& aStream, ScDocument* pDoc, ExportFormatLotus eFormat, CharSet eDest )
{
switch( eFormat )
@@ -56,6 +56,6 @@ FltError ScExportLotus123( SvStream& aStream, ScDocument* pDoc, ExportFormatLotu
return eERR_OK;
}
-
+#endif
diff --git a/sc/source/filter/lotus/tool.cxx b/sc/source/filter/lotus/tool.cxx
index 310cffff059e..aaeee31d6faa 100644
--- a/sc/source/filter/lotus/tool.cxx
+++ b/sc/source/filter/lotus/tool.cxx
@@ -143,45 +143,6 @@ void SetFormat( SCCOL nCol, SCROW nRow, SCTAB nTab, BYTE nFormat, BYTE nSt )
pDoc->ApplyAttr( nCol, nRow, nTab, aAttr );
}
-
-
-
-sal_Char* ReplaceWith( sal_Char* pString, sal_Char cVon, sal_Char cNach )
-{ // Ersetzt alle Vorkommen von cVon durch cNach
- // cNach = 0 -> cVon wird aus String herausgeloescht!
- // PREC: pString: Nullterminierter String
- // POST: cNach = 0: aus String werden alle Vorkommen von cVon
- // herausgeloescht (String wird kuerzer)
- // cNach !=0: alle Vorkommen von cVon im String werden durch
- // cNach ersetzt
- DBG_ASSERT( pString != NULL, "ReplaceWith(): pString == NULL" );
-
- sal_Char *pAkt, *pCpy;
- if( cNach != 0 )
- { // Zeichen erstzen
- for( pAkt = pString ; *pAkt != 0 ; pAkt++ )
- {
- if( *pAkt == cVon )
- *pAkt = cNach;
- }
- }
- else
- { // Zeichen loeschen
- for( pAkt = pCpy =pString ; *pAkt != 0 ; pAkt++ )
- if( *pAkt != cVon )
- {
- *pCpy = *pAkt;
- pCpy++;
- }
- *pCpy = 0; // Nullterminator anhaengen
- }
-
- return pString;
-}
-
-
-
-
void InitPage( void )
{ // Seitenformat initialisieren, d.h. Default-Werte von SC holen
//scGetPageFormat( 0, &aPage );
diff --git a/sc/source/filter/qpro/qproform.cxx b/sc/source/filter/qpro/qproform.cxx
index 7ed74d357828..dfeac931b50f 100644
--- a/sc/source/filter/qpro/qproform.cxx
+++ b/sc/source/filter/qpro/qproform.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: qproform.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -192,18 +192,6 @@ void QProToSc::IncToken( TokenId &rParam )
rParam = aPool.Store();
}
-void QProToSc::DecToken( TokenId &rParam )
-{
- aPool << ocOpen << rParam << mnSubToken;
- rParam = aPool.Store();
-}
-
-void QProToSc::NegToken( TokenId &rParam )
-{
- aPool << ocNegSub << ocOpen << rParam << ocClose;
- rParam = aPool.Store();
-}
-
#define SAFEDEC_OR_RET(nRef, amt, ret) \
do { \
if (nRef < amt)\
diff --git a/sc/source/filter/starcalc/scflt.cxx b/sc/source/filter/starcalc/scflt.cxx
index 65c80de0bdc9..8f072435871d 100644
--- a/sc/source/filter/starcalc/scflt.cxx
+++ b/sc/source/filter/starcalc/scflt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scflt.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -92,16 +92,6 @@ using namespace com::sun::star;
const SCCOL SC10MAXCOL = 255; // #i85906# don't try to load more columns than there are in the file
-void lcl_ReadDateTime(SvStream& rStream, Sc10DateTime& rDateTime)
-{
- rStream >> rDateTime.Year;
- rStream >> rDateTime.Month;
- rStream >> rDateTime.Day;
- rStream >> rDateTime.Hour;
- rStream >> rDateTime.Min;
- rStream >> rDateTime.Sec;
-}
-
void lcl_ReadFileHeader(SvStream& rStream, Sc10FileHeader& rFileHeader)
{
@@ -111,55 +101,6 @@ void lcl_ReadFileHeader(SvStream& rStream, Sc10FileHeader& rFileHeader)
}
-void lcl_ReadFileInfo(SvStream& rStream, Sc10FileInfo& rFileInfo)
-{
- rStream.Read(&rFileInfo.Title, sizeof(rFileInfo.Title));
- rStream.Read(&rFileInfo.Thema, sizeof(rFileInfo.Thema));
- rStream.Read(&rFileInfo.Keys, sizeof(rFileInfo.Keys));
- rStream.Read(&rFileInfo.Note, sizeof(rFileInfo.Note));
- rStream.Read(&rFileInfo.InfoLabel0, sizeof(rFileInfo.InfoLabel0));
- rStream.Read(&rFileInfo.InfoLabel1, sizeof(rFileInfo.InfoLabel1));
- rStream.Read(&rFileInfo.InfoLabel2, sizeof(rFileInfo.InfoLabel2));
- rStream.Read(&rFileInfo.InfoLabel3, sizeof(rFileInfo.InfoLabel3));
- rStream.Read(&rFileInfo.Info0, sizeof(rFileInfo.Info0));
- rStream.Read(&rFileInfo.Info1, sizeof(rFileInfo.Info1));
- rStream.Read(&rFileInfo.Info2, sizeof(rFileInfo.Info2));
- rStream.Read(&rFileInfo.Info3, sizeof(rFileInfo.Info3));
- rStream.Read(&rFileInfo.CreateAuthor, sizeof(rFileInfo.CreateAuthor));
- rStream.Read(&rFileInfo.ChangeAuthor, sizeof(rFileInfo.ChangeAuthor));
- rStream.Read(&rFileInfo.PrintAuthor, sizeof(rFileInfo.PrintAuthor));
- lcl_ReadDateTime(rStream, rFileInfo.CreateDate);
- lcl_ReadDateTime(rStream, rFileInfo.ChangeDate);
- lcl_ReadDateTime(rStream, rFileInfo.PrintDate);
- rStream >> rFileInfo.PageCount;
- rStream >> rFileInfo.ChartCount;
- rStream >> rFileInfo.PictureCount;
- rStream >> rFileInfo.GraphCount;
- rStream >> rFileInfo.OleCount;
- rStream >> rFileInfo.NoteCount;
- rStream >> rFileInfo.TextCellCount;
- rStream >> rFileInfo.ValueCellCount;
- rStream >> rFileInfo.FormulaCellCount;
- rStream >> rFileInfo.CellCount;
- rStream.Read(rFileInfo.Reserved, sizeof(rFileInfo.Reserved));
-}
-
-
-void lcl_ReadEditStateInfo(SvStream& rStream, Sc10EditStateInfo& rInfo)
-{
- rStream >> rInfo.CarretX;
- rStream >> rInfo.CarretY;
- rStream >> rInfo.CarretZ;
-
- rStream >> rInfo.DeltaX;
- rStream >> rInfo.DeltaY;
- rStream >> rInfo.DeltaZ;
-
- rStream >> rInfo.DataBaseMode;
- rStream.Read(rInfo.Reserved, sizeof(rInfo.Reserved));
-}
-
-
void lcl_ReadTabProtect(SvStream& rStream, Sc10TableProtect& rProtect)
{
rStream.Read(&rProtect.PassWord, sizeof(rProtect.PassWord));
@@ -1123,7 +1064,6 @@ void Sc10Import::LoadFileInfo()
{
Sc10FileInfo FileInfo;
rStream.Read(&FileInfo, sizeof(FileInfo));
- //lcl_ReadFileInfo(rStream, FileInfo);
nError = rStream.GetError();
// Achtung Info Uebertragen
@@ -1135,7 +1075,6 @@ void Sc10Import::LoadEditStateInfo()
{
Sc10EditStateInfo EditStateInfo;
rStream.Read(&EditStateInfo, sizeof(EditStateInfo));
- //lcl_ReadEditStateInfo(rStream, EditStateInfo);
nError = rStream.GetError();
nShowTab = static_cast<SCTAB>(EditStateInfo.DeltaZ);
diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx
index 7d8b4cd38fdd..bf58888d47ab 100644
--- a/sc/source/filter/xcl97/xcl97rec.cxx
+++ b/sc/source/filter/xcl97/xcl97rec.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xcl97rec.cxx,v $
- * $Revision: 1.88 $
+ * $Revision: 1.87.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -916,13 +916,6 @@ ExcBofW8::ExcBofW8()
}
-// --- class ExcBofC8 ------------------------------------------------
-
-ExcBofC8::ExcBofC8()
-{
- nDocType = 0x0020;
-}
-
// --- class ExcBundlesheet8 -----------------------------------------
ExcBundlesheet8::ExcBundlesheet8( RootData& rRootData, SCTAB nTab ) :
@@ -968,45 +961,6 @@ sal_Size XclObproj::GetLen() const
}
-
-// --- class XclDConRef ----------------------------------------------
-
-XclDConRef::XclDConRef( const ScRange& rSrcR, const String& rWB ) :
- aSourceRange( rSrcR )
-{
- String sTemp( ( sal_Unicode ) 0x02 );
-
- sTemp += rWB;
- pWorkbook = new XclExpString( sTemp );
-}
-
-XclDConRef::~XclDConRef()
-{
- delete pWorkbook;
-}
-
-void XclDConRef::SaveCont( XclExpStream& rStrm )
-{
- rStrm << (UINT16) aSourceRange.aStart.Row()
- << (UINT16) aSourceRange.aEnd.Row()
- << (UINT8) aSourceRange.aStart.Col()
- << (UINT8) aSourceRange.aEnd.Col()
- << *pWorkbook
- << (UINT8) 0x00;
-}
-
-UINT16 XclDConRef::GetNum() const
-{
- return 0x0051;
-}
-
-sal_Size XclDConRef::GetLen() const
-{
- return 7 + pWorkbook->GetSize();
-}
-
-
-
// ---- class XclCodename --------------------------------------------
XclCodename::XclCodename( const String& r ) : aName( r )
diff --git a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
index 7140508ff1c8..8abb1573aaa7 100644
--- a/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingExportHelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLChangeTrackingExportHelper.cxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.33.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -791,113 +791,6 @@ void ScChangeTrackingExportHelper::CollectAutoStyles()
}
}
-void ScChangeTrackingExportHelper::WriteChangeViewSettings()
-{
- ScChangeViewSettings* pViewSettings = rExport.GetDocument() ? rExport.GetDocument()->GetChangeViewSettings() : NULL;
- if (pViewSettings && pChangeTrack)
- {
- if (!pViewSettings->ShowChanges())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SHOW_CHANGES, XML_FALSE);
- if (pViewSettings->IsShowAccepted())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SHOW_ACCEPTED_CHANGES, XML_TRUE);
- if (pViewSettings->IsShowRejected())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SHOW_REJECTED_CHANGES, XML_TRUE);
- SvXMLElementExport aChangeViewSettingsElem(rExport, XML_NAMESPACE_TABLE, XML_CHANGE_VIEW_SETTINGS, sal_True, sal_True);
- {
- SvXMLElementExport aChangeViewConditionsElem(rExport, XML_NAMESPACE_TABLE, XML_CHANGE_VIEW_CONDITIONS, sal_True, sal_True);
- {
- {
- if (pViewSettings->HasDate())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_USE_CONDITION, XML_TRUE);
- switch (pViewSettings->GetTheDateMode())
- {
- case SCDM_DATE_BEFORE:
- {
- rtl::OUStringBuffer sDate;
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_DATE_TIME, sDate.makeStringAndClear());
- SvXMLElementExport aDateBeforeElem(rExport, XML_NAMESPACE_TABLE, XML_BEFORE_DATE_TIME, sal_True, sal_True);
- }
- break;
- case SCDM_DATE_SINCE:
- {
- rtl::OUStringBuffer sDate;
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_DATE_TIME, sDate.makeStringAndClear());
- SvXMLElementExport aDateSinceElem(rExport, XML_NAMESPACE_TABLE, XML_SINCE_DATE_TIME, sal_True, sal_True);
- }
- break;
- case SCDM_DATE_EQUAL:
- {
- rtl::OUStringBuffer sDate;
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_DATE, sDate.makeStringAndClear());
- SvXMLElementExport aDateEqualElem(rExport, XML_NAMESPACE_TABLE, XML_EQUAL_DATE, sal_True, sal_True);
- }
- break;
- case SCDM_DATE_NOTEQUAL:
- {
- rtl::OUStringBuffer sDate;
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_DATE, sDate.makeStringAndClear());
- SvXMLElementExport aDateNotEqualElem(rExport, XML_NAMESPACE_TABLE, XML_NOT_EQUAL_DATE, sal_True, sal_True);
- }
- break;
- case SCDM_DATE_BETWEEN:
- {
- rtl::OUStringBuffer sDate;
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_FIRST_DATE_TIME, sDate.makeStringAndClear());
- ScXMLConverter::ConvertDateTimeToString(pViewSettings->GetTheFirstDateTime(), sDate);
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_SECOND_DATE_TIME, sDate.makeStringAndClear());
- SvXMLElementExport aDateBetweenElem(rExport, XML_NAMESPACE_TABLE, XML_BETWEEN_DATE_TIMES, sal_True, sal_True);
- }
- break;
- case SCDM_DATE_SAVE:
- {
- SvXMLElementExport aDateSaveElem(rExport, XML_NAMESPACE_TABLE, XML_SINCE_SAVE, sal_True, sal_True);
- }
- break;
- case SCDM_NO_DATEMODE:
- {
- DBG_ERROR("wrong date mode");
- }
- break;
- }
- }
- rtl::OUString sAuthor (pViewSettings->GetTheAuthorToShow());
- if (sAuthor.getLength() && !pViewSettings->HasAuthor())
- {
- if (pViewSettings->HasAuthor())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_USE_CONDITION, XML_TRUE);
- if (sAuthor.getLength())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_AUTHOR, sAuthor);
- SvXMLElementExport aEqualAuthorElem(rExport, XML_NAMESPACE_TABLE, XML_EQUAL_AUTHOR, sal_True, sal_True);
- }
- rtl::OUString sComment (pViewSettings->GetTheComment());
- if (sComment.getLength() && !pViewSettings->HasComment())
- {
- if (pViewSettings->HasComment())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_USE_CONDITION, XML_TRUE);
- if (sComment.getLength())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_COMMENT, sComment);
- SvXMLElementExport aEqualCommentElem(rExport, XML_NAMESPACE_TABLE, XML_EQUAL_COMMENT, sal_True, sal_True);
- }
- rtl::OUString sRangeList;
- ScRangeStringConverter::GetStringFromRangeList(sRangeList, &(pViewSettings->GetTheRangeList()), rExport.GetDocument());
- if (sRangeList.getLength() && !pViewSettings->HasRange())
- {
- if (pViewSettings->HasRange())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_USE_CONDITION, XML_TRUE);
- if (sRangeList.getLength())
- rExport.AddAttribute(XML_NAMESPACE_TABLE, XML_CELL_RANGE_ADDRESS_LIST, sRangeList);
- SvXMLElementExport aInRangeElem(rExport, XML_NAMESPACE_TABLE, XML_IN_RANGE, sal_True, sal_True);
- }
- }
- }
- }
-}
-
void ScChangeTrackingExportHelper::CollectAndWriteChanges()
{
if (pChangeTrack)
diff --git a/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx b/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx
index 20a2f91f0d8b..e7775eb58a4f 100644
--- a/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx
+++ b/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLChangeTrackingExportHelper.hxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.17.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -94,7 +94,6 @@ public:
ScChangeTrackingExportHelper(ScXMLExport& rExport);
~ScChangeTrackingExportHelper();
- void WriteChangeViewSettings();
void CollectAutoStyles();
void CollectAndWriteChanges();
};
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
index 6af29e7b583f..302bd51f5038 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLChangeTrackingImportHelper.cxx,v $
- * $Revision: 1.30 $
+ * $Revision: 1.29.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -43,20 +43,6 @@
#define SC_CHANGE_ID_PREFIX "ct"
-ScMyCellInfo::ScMyCellInfo()
- : pCell(NULL),
- sFormulaAddress(),
- sFormula(),
- sInputString(),
- fValue(0.0),
- nMatrixCols(0),
- nMatrixRows(0),
- eGrammar( ScGrammar::GRAM_STORAGE_DEFAULT),
- nType(NUMBERFORMAT_ALL),
- nMatrixFlag(MM_NONE)
-{
-}
-
ScMyCellInfo::ScMyCellInfo(ScBaseCell* pTempCell, const rtl::OUString& rFormulaAddress, const rtl::OUString& rFormula,
const ScGrammar::Grammar eTempGrammar, const rtl::OUString& rInputString,
const double& rValue, const sal_uInt16 nTempType, const sal_uInt8 nTempMatrixFlag, const sal_Int32 nTempMatrixCols,
diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
index 30b17d1239c9..2730a3f8e896 100644
--- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
+++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLChangeTrackingImportHelper.hxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.18.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -59,7 +59,6 @@ struct ScMyCellInfo
sal_uInt16 nType;
sal_uInt8 nMatrixFlag;
- ScMyCellInfo();
ScMyCellInfo(ScBaseCell* pCell, const rtl::OUString& sFormulaAddress, const rtl::OUString& sFormula,
const ScGrammar::Grammar eGrammar, const rtl::OUString& sInputString,
const double& fValue, const sal_uInt16 nType, const sal_uInt8 nMatrixFlag, const sal_Int32 nMatrixCols,
@@ -67,6 +66,9 @@ struct ScMyCellInfo
~ScMyCellInfo();
ScBaseCell* CreateCell(ScDocument* pDoc);
+
+private:
+ ScMyCellInfo(); // disabled
};
struct ScMyDeleted
diff --git a/sc/source/filter/xml/XMLConverter.cxx b/sc/source/filter/xml/XMLConverter.cxx
index 9673e6938dfc..e0a20ad4353e 100644
--- a/sc/source/filter/xml/XMLConverter.cxx
+++ b/sc/source/filter/xml/XMLConverter.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLConverter.cxx,v $
- * $Revision: 1.29 $
+ * $Revision: 1.29.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -359,12 +359,12 @@ void ScXMLConverter::ConvertDateTimeToString(const DateTime& aDateTime, rtl::OUS
SvXMLUnitConverter::convertDateTime(sDate, aAPIDateTime);
}
-void ScXMLConverter::ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* /* pUnitConverter */)
-{
- com::sun::star::util::DateTime aAPIDateTime;
- SvXMLUnitConverter::convertDateTime(aAPIDateTime, sDate);
- ConvertAPIToCoreDateTime(aAPIDateTime, aDateTime);
-}
+//UNUSED2008-05 void ScXMLConverter::ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* /* pUnitConverter */)
+//UNUSED2008-05 {
+//UNUSED2008-05 com::sun::star::util::DateTime aAPIDateTime;
+//UNUSED2008-05 SvXMLUnitConverter::convertDateTime(aAPIDateTime, sDate);
+//UNUSED2008-05 ConvertAPIToCoreDateTime(aAPIDateTime, aDateTime);
+//UNUSED2008-05 }
void ScXMLConverter::ConvertCoreToAPIDateTime(const DateTime& aDateTime, util::DateTime& rDateTime)
{
diff --git a/sc/source/filter/xml/XMLConverter.hxx b/sc/source/filter/xml/XMLConverter.hxx
index b56709dbb18c..75254a7b3300 100644
--- a/sc/source/filter/xml/XMLConverter.hxx
+++ b/sc/source/filter/xml/XMLConverter.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLConverter.hxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.15.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -109,8 +109,8 @@ public:
const sal_Bool bIsFormula = sal_True);
// EXPORT: Core Date Time
static void ConvertDateTimeToString(const DateTime& aDateTime, rtl::OUStringBuffer& sDate);
-// IMPORT: Core Date Time
- static void ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* pUnitConverter);
+//UNUSED2008-05 // IMPORT: Core Date Time
+//UNUSED2008-05 static void ConvertStringToDateTime(const rtl::OUString& sDate, DateTime& aDateTime, SvXMLUnitConverter* pUnitConverter);
static void ConvertCoreToAPIDateTime(const DateTime& aDateTime, com::sun::star::util::DateTime& rDateTime);
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.cxx b/sc/source/filter/xml/XMLStylesImportHelper.cxx
index 6d4e16d5cb8d..12c31a4d5acc 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.cxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLStylesImportHelper.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.22.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -531,19 +531,6 @@ void ScMyStylesImportHelper::AddRange(const ScRange& rRange)
}
}
-void ScMyStylesImportHelper::AddRange(const com::sun::star::table::CellRangeAddress& rRange)
-{
- ScRange aScRange( static_cast<SCCOL>(rRange.StartColumn), static_cast<SCROW>(rRange.StartRow), rRange.Sheet,
- static_cast<SCCOL>(rRange.EndColumn), static_cast<SCROW>(rRange.EndRow), rRange.Sheet );
- AddRange(aScRange);
-}
-
-void ScMyStylesImportHelper::AddCell(const ScAddress& rAddress)
-{
- ScRange aScRange( rAddress, rAddress );
- AddRange(aScRange);
-}
-
void ScMyStylesImportHelper::AddCell(const com::sun::star::table::CellAddress& rAddress)
{
ScAddress aScAddress( static_cast<SCCOL>(rAddress.Column), static_cast<SCROW>(rAddress.Row), rAddress.Sheet );
diff --git a/sc/source/filter/xml/XMLStylesImportHelper.hxx b/sc/source/filter/xml/XMLStylesImportHelper.hxx
index 56473e93acab..17f23f9dbfd1 100644
--- a/sc/source/filter/xml/XMLStylesImportHelper.hxx
+++ b/sc/source/filter/xml/XMLStylesImportHelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLStylesImportHelper.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.10.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -187,8 +187,6 @@ public:
void SetAttributes(rtl::OUString* pStyleName,
rtl::OUString* pCurrency, const sal_Int16 nCellType);
void AddRange(const ScRange& rRange);
- void AddRange(const com::sun::star::table::CellRangeAddress& rRange);
- void AddCell(const ScAddress& rAddress);
void AddCell(const com::sun::star::table::CellAddress& rAddress);
void InsertRow(const sal_Int32 nRow, const sal_Int32 nTab, ScDocument* pDoc); // a row is inserted before nRow
void InsertCol(const sal_Int32 nCol, const sal_Int32 nTab, ScDocument* pDoc); // a col is inserted before nCol
diff --git a/sc/source/filter/xml/xmlexprt.cxx b/sc/source/filter/xml/xmlexprt.cxx
index bea3415f81df..af28486efb97 100644
--- a/sc/source/filter/xml/xmlexprt.cxx
+++ b/sc/source/filter/xml/xmlexprt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlexprt.cxx,v $
- * $Revision: 1.213 $
+ * $Revision: 1.212.28.3 $
*
* This file is part of OpenOffice.org.
*
@@ -2049,24 +2049,24 @@ void ScXMLExport::CollectInternalShape( uno::Reference< drawing::XShape > xShape
}
}
-sal_Bool ScXMLExport::GetMerge (const uno::Reference <sheet::XSpreadsheet>& xTable,
- const sal_Int32 nCol, const sal_Int32 nRow,
- table::CellRangeAddress& aCellAddress)
-{
- uno::Reference<sheet::XSheetCellRange> xSheetCellRange(xTable->getCellRangeByPosition(nCol, nRow, nCol, nRow), uno::UNO_QUERY);
- if (xSheetCellRange.is())
- {
- uno::Reference<sheet::XSheetCellCursor> xCursor(xTable->createCursorByRange(xSheetCellRange));
- if(xCursor.is())
- {
- uno::Reference<sheet::XCellRangeAddressable> xCellAddress (xCursor, uno::UNO_QUERY);
- xCursor->collapseToMergedArea();
- aCellAddress = xCellAddress->getRangeAddress();
- return sal_True;
- }
- }
- return sal_False;
-}
+//UNUSED2008-05 sal_Bool ScXMLExport::GetMerge (const uno::Reference <sheet::XSpreadsheet>& xTable,
+//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow,
+//UNUSED2008-05 table::CellRangeAddress& aCellAddress)
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XSheetCellRange> xSheetCellRange(xTable->getCellRangeByPosition(nCol, nRow, nCol, nRow), uno::UNO_QUERY);
+//UNUSED2008-05 if (xSheetCellRange.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XSheetCellCursor> xCursor(xTable->createCursorByRange(xSheetCellRange));
+//UNUSED2008-05 if (xCursor.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XCellRangeAddressable> xCellAddress (xCursor, uno::UNO_QUERY);
+//UNUSED2008-05 xCursor->collapseToMergedArea();
+//UNUSED2008-05 aCellAddress = xCellAddress->getRangeAddress();
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 }
sal_Bool ScXMLExport::GetMerged (const table::CellRangeAddress* pCellAddress,
const uno::Reference <sheet::XSpreadsheet>& xTable)
@@ -2113,50 +2113,50 @@ sal_Bool ScXMLExport::GetMerged (const table::CellRangeAddress* pCellAddress,
return !bReady;
}
-sal_Bool ScXMLExport::IsMatrix (const uno::Reference <table::XCellRange>& xCellRange,
- const uno::Reference <sheet::XSpreadsheet>& xTable,
- const sal_Int32 nCol, const sal_Int32 nRow,
- table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const
-{
- bIsFirst = sal_False;
- uno::Reference <sheet::XArrayFormulaRange> xArrayFormulaRange (xCellRange->getCellRangeByPosition(nCol,nRow,nCol,nRow), uno::UNO_QUERY);
- if (xArrayFormulaRange.is())
- {
- rtl::OUString sArrayFormula(xArrayFormulaRange->getArrayFormula());
- if (sArrayFormula.getLength())
- {
- uno::Reference<sheet::XSheetCellRange> xMatrixSheetCellRange (xArrayFormulaRange, uno::UNO_QUERY);
- if (xMatrixSheetCellRange.is())
- {
- uno::Reference<sheet::XSheetCellCursor> xMatrixSheetCursor(xTable->createCursorByRange(xMatrixSheetCellRange));
- if (xMatrixSheetCursor.is())
- {
- xMatrixSheetCursor->collapseToCurrentArray();
- uno::Reference<sheet::XCellRangeAddressable> xMatrixCellAddress (xMatrixSheetCursor, uno::UNO_QUERY);
- if (xMatrixCellAddress.is())
- {
- aCellAddress = xMatrixCellAddress->getRangeAddress();
- if ((aCellAddress.StartColumn == nCol && aCellAddress.StartRow == nRow) &&
- (aCellAddress.EndColumn > nCol || aCellAddress.EndRow > nRow))
- {
- bIsFirst = sal_True;
- return sal_True;
- }
- else if (aCellAddress.StartColumn != nCol || aCellAddress.StartRow != nRow ||
- aCellAddress.EndColumn != nCol || aCellAddress.EndRow != nRow)
- return sal_True;
- else
- {
- bIsFirst = sal_True;
- return sal_True;
- }
- }
- }
- }
- }
- }
- return sal_False;
-}
+//UNUSED2008-05 sal_Bool ScXMLExport::IsMatrix (const uno::Reference <table::XCellRange>& xCellRange,
+//UNUSED2008-05 const uno::Reference <sheet::XSpreadsheet>& xTable,
+//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow,
+//UNUSED2008-05 table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const
+//UNUSED2008-05 {
+//UNUSED2008-05 bIsFirst = sal_False;
+//UNUSED2008-05 uno::Reference <sheet::XArrayFormulaRange> xArrayFormulaRange (xCellRange->getCellRangeByPosition(nCol,nRow,nCol,nRow), uno::UNO_QUERY);
+//UNUSED2008-05 if (xArrayFormulaRange.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 rtl::OUString sArrayFormula(xArrayFormulaRange->getArrayFormula());
+//UNUSED2008-05 if (sArrayFormula.getLength())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XSheetCellRange> xMatrixSheetCellRange (xArrayFormulaRange, uno::UNO_QUERY);
+//UNUSED2008-05 if (xMatrixSheetCellRange.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XSheetCellCursor> xMatrixSheetCursor(xTable->createCursorByRange(xMatrixSheetCellRange));
+//UNUSED2008-05 if (xMatrixSheetCursor.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 xMatrixSheetCursor->collapseToCurrentArray();
+//UNUSED2008-05 uno::Reference<sheet::XCellRangeAddressable> xMatrixCellAddress (xMatrixSheetCursor, uno::UNO_QUERY);
+//UNUSED2008-05 if (xMatrixCellAddress.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 aCellAddress = xMatrixCellAddress->getRangeAddress();
+//UNUSED2008-05 if ((aCellAddress.StartColumn == nCol && aCellAddress.StartRow == nRow) &&
+//UNUSED2008-05 (aCellAddress.EndColumn > nCol || aCellAddress.EndRow > nRow))
+//UNUSED2008-05 {
+//UNUSED2008-05 bIsFirst = sal_True;
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 }
+//UNUSED2008-05 else if (aCellAddress.StartColumn != nCol || aCellAddress.StartRow != nRow ||
+//UNUSED2008-05 aCellAddress.EndColumn != nCol || aCellAddress.EndRow != nRow)
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 bIsFirst = sal_True;
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 }
sal_Bool ScXMLExport::IsMatrix (const ScAddress& aCell,
table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const
@@ -2831,13 +2831,13 @@ sal_Bool ScXMLExport::IsEditCell(const com::sun::star::table::CellAddress& aAddr
return sal_False;
}
-sal_Bool ScXMLExport::IsEditCell(const com::sun::star::uno::Reference <com::sun::star::table::XCell>& xCell) const
-{
- uno::Reference<sheet::XCellAddressable> xAddressable (xCell, uno::UNO_QUERY);
- if ( xAddressable.is() )
- return IsEditCell(xAddressable->getCellAddress());
- return sal_False;
-}
+//UNUSED2008-05 sal_Bool ScXMLExport::IsEditCell(const com::sun::star::uno::Reference <com::sun::star::table::XCell>& xCell) const
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<sheet::XCellAddressable> xAddressable (xCell, uno::UNO_QUERY);
+//UNUSED2008-05 if ( xAddressable.is() )
+//UNUSED2008-05 return IsEditCell(xAddressable->getCellAddress());
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 }
sal_Bool ScXMLExport::IsEditCell(ScMyCell& rCell) const
{
@@ -2851,43 +2851,43 @@ sal_Bool ScXMLExport::IsEditCell(ScMyCell& rCell) const
}
}
-sal_Bool ScXMLExport::IsAnnotationEqual(const uno::Reference<table::XCell>& /* xCell1 */,
- const uno::Reference<table::XCell>& /* xCell2 */)
-{
- // no longer compareable, because the position and size and other attributes can also differ
-
-/* uno::Reference<sheet::XSheetAnnotationAnchor> xSheetAnnotationAnchor1(xCell1, uno::UNO_QUERY);
- uno::Reference<sheet::XSheetAnnotationAnchor> xSheetAnnotationAnchor2(xCell2, uno::UNO_QUERY);
- if (xSheetAnnotationAnchor1.is() && xSheetAnnotationAnchor2.is())
- {
- uno::Reference <sheet::XSheetAnnotation> xSheetAnnotation1(xSheetAnnotationAnchor1->getAnnotation());
- uno::Reference <sheet::XSheetAnnotation> xSheetAnnotation2(xSheetAnnotationAnchor2->getAnnotation());
- uno::Reference<text::XSimpleText> xSimpleText1(xSheetAnnotation1, uno::UNO_QUERY);
- uno::Reference<text::XSimpleText> xSimpleText2(xSheetAnnotation2, uno::UNO_QUERY);
- if (xSheetAnnotation1.is() && xSimpleText1.is() &&
- xSheetAnnotation2.is() && xSimpleText2.is())
- {
- rtl::OUString sText1(xSimpleText1->getString());
- rtl::OUString sText2(xSimpleText2->getString());
- sal_Int32 nLength1(sText1.getLength());
- sal_Int32 nLength2(sText2.getLength());
- if (nLength1 && nLength2)
- if (sText1 == sText2 &&
- xSheetAnnotation1->getAuthor() == xSheetAnnotation2->getAuthor() &&
- xSheetAnnotation1->getDate() == xSheetAnnotation2->getDate() &&
- xSheetAnnotation1->getIsVisible() == xSheetAnnotation2->getIsVisible())
- return sal_True;
- else
- return sal_False;
- else
- if (nLength1 || nLength2)
- return sal_False;
- else
- return sal_True;
- }
- }*/
- return sal_False;
-}
+//UNUSED2008-05 sal_Bool ScXMLExport::IsAnnotationEqual(const uno::Reference<table::XCell>& /* xCell1 */,
+//UNUSED2008-05 const uno::Reference<table::XCell>& /* xCell2 */)
+//UNUSED2008-05 {
+//UNUSED2008-05 // no longer compareable, because the position and size and other attributes can also differ
+//UNUSED2008-05
+//UNUSED2008-05 /* uno::Reference<sheet::XSheetAnnotationAnchor> xSheetAnnotationAnchor1(xCell1, uno::UNO_QUERY);
+//UNUSED2008-05 uno::Reference<sheet::XSheetAnnotationAnchor> xSheetAnnotationAnchor2(xCell2, uno::UNO_QUERY);
+//UNUSED2008-05 if (xSheetAnnotationAnchor1.is() && xSheetAnnotationAnchor2.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference <sheet::XSheetAnnotation> xSheetAnnotation1(xSheetAnnotationAnchor1->getAnnotation());
+//UNUSED2008-05 uno::Reference <sheet::XSheetAnnotation> xSheetAnnotation2(xSheetAnnotationAnchor2->getAnnotation());
+//UNUSED2008-05 uno::Reference<text::XSimpleText> xSimpleText1(xSheetAnnotation1, uno::UNO_QUERY);
+//UNUSED2008-05 uno::Reference<text::XSimpleText> xSimpleText2(xSheetAnnotation2, uno::UNO_QUERY);
+//UNUSED2008-05 if (xSheetAnnotation1.is() && xSimpleText1.is() &&
+//UNUSED2008-05 xSheetAnnotation2.is() && xSimpleText2.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 rtl::OUString sText1(xSimpleText1->getString());
+//UNUSED2008-05 rtl::OUString sText2(xSimpleText2->getString());
+//UNUSED2008-05 sal_Int32 nLength1(sText1.getLength());
+//UNUSED2008-05 sal_Int32 nLength2(sText2.getLength());
+//UNUSED2008-05 if (nLength1 && nLength2)
+//UNUSED2008-05 if (sText1 == sText2 &&
+//UNUSED2008-05 xSheetAnnotation1->getAuthor() == xSheetAnnotation2->getAuthor() &&
+//UNUSED2008-05 xSheetAnnotation1->getDate() == xSheetAnnotation2->getDate() &&
+//UNUSED2008-05 xSheetAnnotation1->getIsVisible() == xSheetAnnotation2->getIsVisible())
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 else
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 else
+//UNUSED2008-05 if (nLength1 || nLength2)
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 else
+//UNUSED2008-05 return sal_True;
+//UNUSED2008-05 }
+//UNUSED2008-05 }*/
+//UNUSED2008-05 return sal_False;
+//UNUSED2008-05 }
sal_Bool ScXMLExport::IsCellEqual (ScMyCell& aCell1, ScMyCell& aCell2)
{
diff --git a/sc/source/filter/xml/xmlexprt.hxx b/sc/source/filter/xml/xmlexprt.hxx
index 0b2767dbfa76..4d452c3f1c0e 100644
--- a/sc/source/filter/xml/xmlexprt.hxx
+++ b/sc/source/filter/xml/xmlexprt.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlexprt.hxx,v $
- * $Revision: 1.84 $
+ * $Revision: 1.83.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -162,9 +162,10 @@ class ScXMLExport : public SvXMLExport
void FillFieldGroup(ScOutlineArray* pFields, ScMyOpenCloseColumnRowGroup* pGroups);
void FillColumnRowGroups();
- sal_Bool GetMerge (const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheet>& xTable,
- sal_Int32 nCol, sal_Int32 nRow,
- com::sun::star::table::CellRangeAddress& aCellAddress);
+//UNUSED2008-05 sal_Bool GetMerge (const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheet>& xTable,
+//UNUSED2008-05 sal_Int32 nCol, sal_Int32 nRow,
+//UNUSED2008-05 com::sun::star::table::CellRangeAddress& aCellAddress);
+
sal_Bool GetMerged (const com::sun::star::table::CellRangeAddress* pCellRange,
const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheet>& xTable);
@@ -182,10 +183,10 @@ class ScXMLExport : public SvXMLExport
sal_Bool IsCellTypeEqual (const ScMyCell& aCell1, const ScMyCell& aCell2) const;
sal_Bool IsEditCell(const com::sun::star::table::CellAddress& aAddress) const;
- sal_Bool IsEditCell(const com::sun::star::uno::Reference <com::sun::star::table::XCell>& xCell) const;
+//UNUSED2008-05 sal_Bool IsEditCell(const com::sun::star::uno::Reference <com::sun::star::table::XCell>& xCell) const;
sal_Bool IsEditCell(ScMyCell& rCell) const;
- sal_Bool IsAnnotationEqual(const com::sun::star::uno::Reference<com::sun::star::table::XCell>& xCell1,
- const com::sun::star::uno::Reference<com::sun::star::table::XCell>& xCell2);
+//UNUSED2008-05 sal_Bool IsAnnotationEqual(const com::sun::star::uno::Reference<com::sun::star::table::XCell>& xCell1,
+//UNUSED2008-05 const com::sun::star::uno::Reference<com::sun::star::table::XCell>& xCell2);
sal_Bool IsCellEqual (ScMyCell& aCell1, ScMyCell& aCell2);
void WriteCalculationSettings(const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheetDocument>& xSpreadDoc);
@@ -215,10 +216,10 @@ public:
static sal_Int16 GetFieldUnit();
inline ScDocument* GetDocument() { return pDoc; }
inline const ScDocument* GetDocument() const { return pDoc; }
- sal_Bool IsMatrix (const com::sun::star::uno::Reference <com::sun::star::table::XCellRange>& xCellRange,
- const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheet>& xTable,
- const sal_Int32 nCol, const sal_Int32 nRow,
- com::sun::star::table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const;
+//UNUSED2008-05 sal_Bool IsMatrix (const com::sun::star::uno::Reference <com::sun::star::table::XCellRange>& xCellRange,
+//UNUSED2008-05 const com::sun::star::uno::Reference <com::sun::star::sheet::XSpreadsheet>& xTable,
+//UNUSED2008-05 const sal_Int32 nCol, const sal_Int32 nRow,
+//UNUSED2008-05 com::sun::star::table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const;
sal_Bool IsMatrix (const ScAddress& aCell,
com::sun::star::table::CellRangeAddress& aCellAddress, sal_Bool& bIsFirst) const;
diff --git a/sc/source/filter/xml/xmlimprt.cxx b/sc/source/filter/xml/xmlimprt.cxx
index ed9da641879b..6649e48e17b3 100644
--- a/sc/source/filter/xml/xmlimprt.cxx
+++ b/sc/source/filter/xml/xmlimprt.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlimprt.cxx,v $
- * $Revision: 1.133 $
+ * $Revision: 1.132.30.4 $
*
* This file is part of OpenOffice.org.
*
@@ -215,6 +215,7 @@ static __FAR_DATA SvXMLTokenMapEntry aDocTokenMap[] =
XML_TOKEN_MAP_END
};
+#if 0 // apparently not used - 2008-08-15 (Friday)
static __FAR_DATA SvXMLTokenMapEntry aStylesTokenMap[] =
{
{ XML_NAMESPACE_STYLE, XML_STYLE, XML_TOK_STYLES_STYLE },
@@ -234,6 +235,7 @@ static __FAR_DATA SvXMLTokenMapEntry aStyleTokenMap[] =
{ XML_NAMESPACE_STYLE, XML_PROPERTIES, XML_TOK_STYLE_PROPERTIES },
XML_TOKEN_MAP_END
};
+#endif
static __FAR_DATA SvXMLTokenMapEntry aBodyTokenMap[] =
{
@@ -415,6 +417,7 @@ static __FAR_DATA SvXMLTokenMapEntry aTableRowCellTokenMap[] =
XML_TOKEN_MAP_END
};
+#if 0 // apparently not used - 2008-08-15 (Friday)
static __FAR_DATA SvXMLTokenMapEntry aTableRowCellAttrTokenMap[] =
{
{ XML_NAMESPACE_TABLE, XML_STYLE_NAME, XML_TOK_TABLE_ROW_CELL_ATTR_STYLE_NAME },
@@ -434,6 +437,7 @@ static __FAR_DATA SvXMLTokenMapEntry aTableRowCellAttrTokenMap[] =
{ XML_NAMESPACE_TABLE, XML_CURRENCY, XML_TOK_TABLE_ROW_CELL_ATTR_CURRENCY },
XML_TOKEN_MAP_END
};
+#endif
static __FAR_DATA SvXMLTokenMapEntry aTableAnnotationAttrTokenMap[] =
{
@@ -959,29 +963,29 @@ const SvXMLTokenMap& ScXMLImport::GetDocElemTokenMap()
return *pDocElemTokenMap;
}
-const SvXMLTokenMap& ScXMLImport::GetStylesElemTokenMap()
-{
- if( !pStylesElemTokenMap )
- pStylesElemTokenMap = new SvXMLTokenMap( aStylesTokenMap );
-
- return *pStylesElemTokenMap;
-}
-
-const SvXMLTokenMap& ScXMLImport::GetStylesAttrTokenMap()
-{
- if( !pStylesAttrTokenMap )
- pStylesAttrTokenMap = new SvXMLTokenMap( aStylesAttrTokenMap );
-
- return *pStylesAttrTokenMap;
-}
-
-const SvXMLTokenMap& ScXMLImport::GetStyleElemTokenMap()
-{
- if( !pStyleElemTokenMap )
- pStyleElemTokenMap = new SvXMLTokenMap( aStyleTokenMap );
-
- return *pStyleElemTokenMap;
-}
+//UNUSED2008-05 const SvXMLTokenMap& ScXMLImport::GetStylesElemTokenMap()
+//UNUSED2008-05 {
+//UNUSED2008-05 if( !pStylesElemTokenMap )
+//UNUSED2008-05 pStylesElemTokenMap = new SvXMLTokenMap( aStylesTokenMap );
+//UNUSED2008-05
+//UNUSED2008-05 return *pStylesElemTokenMap;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 const SvXMLTokenMap& ScXMLImport::GetStylesAttrTokenMap()
+//UNUSED2008-05 {
+//UNUSED2008-05 if( !pStylesAttrTokenMap )
+//UNUSED2008-05 pStylesAttrTokenMap = new SvXMLTokenMap( aStylesAttrTokenMap );
+//UNUSED2008-05
+//UNUSED2008-05 return *pStylesAttrTokenMap;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 const SvXMLTokenMap& ScXMLImport::GetStyleElemTokenMap()
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( !pStyleElemTokenMap )
+//UNUSED2008-05 pStyleElemTokenMap = new SvXMLTokenMap( aStyleTokenMap );
+//UNUSED2008-05
+//UNUSED2008-05 return *pStyleElemTokenMap;
+//UNUSED2008-05 }
const SvXMLTokenMap& ScXMLImport::GetBodyElemTokenMap()
{
@@ -1116,12 +1120,12 @@ const SvXMLTokenMap& ScXMLImport::GetTableRowCellElemTokenMap()
return *pTableRowCellElemTokenMap;
}
-const SvXMLTokenMap& ScXMLImport::GetTableRowCellAttrTokenMap()
-{
- if( !pTableRowCellAttrTokenMap )
- pTableRowCellAttrTokenMap = new SvXMLTokenMap( aTableRowCellAttrTokenMap );
- return *pTableRowCellAttrTokenMap;
-}
+//UNUSED2008-05 const SvXMLTokenMap& ScXMLImport::GetTableRowCellAttrTokenMap()
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( !pTableRowCellAttrTokenMap )
+//UNUSED2008-05 pTableRowCellAttrTokenMap = new SvXMLTokenMap( aTableRowCellAttrTokenMap );
+//UNUSED2008-05 return *pTableRowCellAttrTokenMap;
+//UNUSED2008-05 }
const SvXMLTokenMap& ScXMLImport::GetTableAnnotationAttrTokenMap()
{
diff --git a/sc/source/filter/xml/xmlimprt.hxx b/sc/source/filter/xml/xmlimprt.hxx
index a056640228e3..12a737320b4e 100644
--- a/sc/source/filter/xml/xmlimprt.hxx
+++ b/sc/source/filter/xml/xmlimprt.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlimprt.hxx,v $
- * $Revision: 1.97 $
+ * $Revision: 1.96.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -826,9 +826,9 @@ public:
// SvXMLImportContextRef GetStyles() const { return xStyles; }
const SvXMLTokenMap& GetDocElemTokenMap();
- const SvXMLTokenMap& GetStylesElemTokenMap();
- const SvXMLTokenMap& GetStylesAttrTokenMap();
- const SvXMLTokenMap& GetStyleElemTokenMap();
+//UNUSED2008-05 const SvXMLTokenMap& GetStylesElemTokenMap();
+//UNUSED2008-05 const SvXMLTokenMap& GetStylesAttrTokenMap();
+//UNUSED2008-05 const SvXMLTokenMap& GetStyleElemTokenMap();
const SvXMLTokenMap& GetBodyElemTokenMap();
const SvXMLTokenMap& GetContentValidationsElemTokenMap();
const SvXMLTokenMap& GetContentValidationElemTokenMap();
@@ -848,7 +848,7 @@ public:
const SvXMLTokenMap& GetTableRowElemTokenMap();
const SvXMLTokenMap& GetTableRowAttrTokenMap();
const SvXMLTokenMap& GetTableRowCellElemTokenMap();
- const SvXMLTokenMap& GetTableRowCellAttrTokenMap();
+//UNUSED2008-05 const SvXMLTokenMap& GetTableRowCellAttrTokenMap();
const SvXMLTokenMap& GetTableAnnotationAttrTokenMap();
const SvXMLTokenMap& GetDetectiveElemTokenMap();
const SvXMLTokenMap& GetDetectiveHighlightedAttrTokenMap();
diff --git a/sc/source/filter/xml/xmlsubti.cxx b/sc/source/filter/xml/xmlsubti.cxx
index 517423b35283..647067f9fe85 100644
--- a/sc/source/filter/xml/xmlsubti.cxx
+++ b/sc/source/filter/xml/xmlsubti.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlsubti.cxx,v $
- * $Revision: 1.50 $
+ * $Revision: 1.50.30.1 $
*
* This file is part of OpenOffice.org.
*
@@ -109,14 +109,6 @@ void ScMyTableData::AddColumn()
nRealCols[aTableCellPos.Column + 1] = nRealCols[aTableCellPos.Column] + nColsPerCol[aTableCellPos.Column];
}
-sal_Int32 ScMyTableData::FindNextCol(const sal_Int32 nIndex) const
-{
- sal_Int32 i = nIndex;
- while(nRealCols[i] < 0)
- ++i;
- return nRealCols[i];
-}
-
sal_Int32 ScMyTableData::GetRealCols(const sal_Int32 nIndex, const sal_Bool /* bIsNormal */) const
{
return (nIndex < 0) ? 0 : nRealCols[nIndex];
@@ -425,22 +417,6 @@ void ScMyTables::SetRowStyle(const rtl::OUString& rCellStyleName)
rImport.GetStylesImportHelper()->SetRowStyle(rCellStyleName);
}
-void ScMyTables::CloseRow()
-{
- sal_Int32 nToMerge;
- sal_Int32 nSpannedCols(aTableVec[nTableCount - 1]->GetSpannedCols());
- sal_Int32 nColCount(aTableVec[nTableCount - 1]->GetColCount());
- sal_Int32 nCol(aTableVec[nTableCount - 1]->GetColumn());
- sal_Int32 nColsPerCol(aTableVec[nTableCount - 1]->GetColsPerCol(nCol));
- if (nSpannedCols > nColCount)
- nToMerge = aTableVec[nTableCount - 1]->GetChangedCols(nCol, nCol + nColsPerCol + nSpannedCols - nColCount);
- else
- nToMerge = aTableVec[nTableCount - 1]->GetChangedCols(nCol, nCol + nColsPerCol);
- if ((nToMerge > nCol) && (aTableVec[nTableCount - 1]->GetSubTableSpanned() == 1))
- DoMerge(nColsPerCol + aTableVec[nTableCount - 1]->GetColsPerCol(nToMerge) - 1);
-}
-
-
void ScMyTables::InsertColumn()
{
if ( xCurrentCellRange.is() )
diff --git a/sc/source/filter/xml/xmlsubti.hxx b/sc/source/filter/xml/xmlsubti.hxx
index 027f54876ed7..fae1d22922d1 100644
--- a/sc/source/filter/xml/xmlsubti.hxx
+++ b/sc/source/filter/xml/xmlsubti.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlsubti.hxx,v $
- * $Revision: 1.32 $
+ * $Revision: 1.32.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -74,7 +74,6 @@ public:
void AddRow();
void AddColumn();
void SetFirstColumn() { aTableCellPos.Column = -1; }
- sal_Int32 FindNextCol(const sal_Int32 nIndex) const;
sal_Int32 GetColsPerCol(const sal_Int32 nIndex) const { return nColsPerCol[nIndex]; }
void SetColsPerCol(const sal_Int32 nIndex, sal_Int32 nValue = 1) { nColsPerCol[nIndex] = nValue; }
sal_Int32 GetRealCols(const sal_Int32 nIndex, const sal_Bool bIsNormal = sal_True) const;
@@ -149,7 +148,6 @@ public:
const sal_Bool bProtection, const rtl::OUString& sPassword);
void AddRow();
void SetRowStyle(const rtl::OUString& rCellStyleName);
- void CloseRow();
void AddColumn(sal_Bool bIsCovered);
void NewTable(sal_Int32 nTempSpannedCols);
void UpdateRowHeights();
diff --git a/sc/source/filter/xml/xmlwrap.cxx b/sc/source/filter/xml/xmlwrap.cxx
index 854846ba583a..88f2bf2ba0a1 100644
--- a/sc/source/filter/xml/xmlwrap.cxx
+++ b/sc/source/filter/xml/xmlwrap.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlwrap.cxx,v $
- * $Revision: 1.70 $
+ * $Revision: 1.69.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -96,34 +96,34 @@ ScXMLImportWrapper::ScXMLImportWrapper(ScDocument& rD, SfxMedium* pM, const uno:
DBG_ASSERT( pMedium || xStorage.is(), "ScXMLImportWrapper: Medium or Storage must be set" );
}
-uno::Reference <task::XStatusIndicator> ScXMLImportWrapper::GetStatusIndicator(
- uno::Reference < frame::XModel> & rModel)
-{
- DBG_ERROR( "The status indicator from medium must be used!" );
-
- uno::Reference<task::XStatusIndicator> xStatusIndicator;
-
- if (rModel.is())
- {
- uno::Reference<frame::XController> xController( rModel->getCurrentController());
- if( xController.is())
- {
- uno::Reference<task::XStatusIndicatorFactory> xFactory( xController->getFrame(), uno::UNO_QUERY );
- if( xFactory.is())
- {
- try
- {
- xStatusIndicator.set(xFactory->createStatusIndicator());
- }
- catch( lang::DisposedException e )
- {
- DBG_ERROR("Exception while trying to get a Status Indicator");
- }
- }
- }
- }
- return xStatusIndicator;
-}
+//UNUSED2008-05 uno::Reference <task::XStatusIndicator> ScXMLImportWrapper::GetStatusIndicator(
+//UNUSED2008-05 uno::Reference < frame::XModel> & rModel)
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERROR( "The status indicator from medium must be used!" );
+//UNUSED2008-05
+//UNUSED2008-05 uno::Reference<task::XStatusIndicator> xStatusIndicator;
+//UNUSED2008-05
+//UNUSED2008-05 if (rModel.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<frame::XController> xController( rModel->getCurrentController());
+//UNUSED2008-05 if ( xController.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 uno::Reference<task::XStatusIndicatorFactory> xFactory( xController->getFrame(), uno::UNO_QUERY );
+//UNUSED2008-05 if ( xFactory.is())
+//UNUSED2008-05 {
+//UNUSED2008-05 try
+//UNUSED2008-05 {
+//UNUSED2008-05 xStatusIndicator.set(xFactory->createStatusIndicator());
+//UNUSED2008-05 }
+//UNUSED2008-05 catch ( lang::DisposedException e )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERROR("Exception while trying to get a Status Indicator");
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05 return xStatusIndicator;
+//UNUSED2008-05 }
uno::Reference <task::XStatusIndicator> ScXMLImportWrapper::GetStatusIndicator()
{
diff --git a/sc/source/ui/Accessibility/AccessibleContextBase.cxx b/sc/source/ui/Accessibility/AccessibleContextBase.cxx
index 313675fa43f0..8774ef74f86d 100644
--- a/sc/source/ui/Accessibility/AccessibleContextBase.cxx
+++ b/sc/source/ui/Accessibility/AccessibleContextBase.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleContextBase.cxx,v $
- * $Revision: 1.33 $
+ * $Revision: 1.33.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -584,16 +584,6 @@ void ScAccessibleContextBase::ChangeName()
CommitChange(aEvent);
}
-void ScAccessibleContextBase::CommitDefunc() const
-{
- AccessibleEventObject aEvent;
- aEvent.EventId = AccessibleEventId::STATE_CHANGED;
- aEvent.Source = uno::Reference< XAccessibleContext >(const_cast<ScAccessibleContextBase*>(this));
- aEvent.NewValue <<= AccessibleStateType::DEFUNC;
-
- CommitChange(aEvent);
-}
-
void ScAccessibleContextBase::CommitFocusGained() const
{
AccessibleEventObject aEvent;
diff --git a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
index df3aca81117d..8d141f0fe753 100644
--- a/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
+++ b/sc/source/ui/Accessibility/AccessibleCsvControl.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleCsvControl.cxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.22.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -300,11 +300,6 @@ void ScAccessibleCsvControl::implDispose()
}
}
-Point ScAccessibleCsvControl::implGetRelPos( const Point& rPos ) const
-{
- return rPos - implGetControl().GetWindowExtentsRelative( NULL ).TopLeft();
-}
-
Point ScAccessibleCsvControl::implGetAbsPos( const Point& rPos ) const
{
return rPos + implGetControl().GetWindowExtentsRelative( NULL ).TopLeft();
diff --git a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
index db566a1aadb5..5df7f4eeeeca 100644
--- a/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
+++ b/sc/source/ui/Accessibility/AccessibleDocumentPagePreview.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleDocumentPagePreview.cxx,v $
- * $Revision: 1.38 $
+ * $Revision: 1.38.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -740,7 +740,8 @@ private:
::accessibility::AccessibleShape* GetAccShape(const ScShapeChild& rShape) const;
::accessibility::AccessibleShape* GetAccShape(const ScShapeChildVec& rShapes, sal_Int32 nIndex) const;
void FillShapes(const Rectangle& aPixelPaintRect, const MapMode& aMapMode, sal_uInt8 nRangeId);
- sal_Bool FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const;
+//UNUSED2008-05 sal_Bool FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const;
+
// void AddShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID);
// void RemoveShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID);
SdrPage* GetDrawPage() const;
@@ -1205,21 +1206,21 @@ void ScShapeChilds::FillShapes(const Rectangle& aPixelPaintRect, const MapMode&
}
}
-sal_Bool ScShapeChilds::FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const
-{
- sal_Bool bResult(sal_False);
- ScShapeChild aShape;
- aShape.mxShape = xShape;
- rItr = std::lower_bound(rShapes.begin(), rShapes.end(), aShape, ScShapeChildLess());
- if (rItr->mxShape.get() == xShape.get())
- bResult = sal_True; // if the shape is found
-
-/*#ifndef PRODUCT // test whether it finds truly the correct shape (perhaps it is not really sorted)
- ScShapeChildVec::iterator aDebugItr = std::find(rShapes.begin(), rShapes.end(), aShape);
- DBG_ASSERT(rItr == aDebugItr, "wrong Shape found");
-#endif*/
- return bResult;
-}
+//UNUSED2008-05 sal_Bool ScShapeChilds::FindShape(ScShapeChildVec& rShapes, const uno::Reference <drawing::XShape>& xShape, ScShapeChildVec::iterator& rItr) const
+//UNUSED2008-05 {
+//UNUSED2008-05 sal_Bool bResult(sal_False);
+//UNUSED2008-05 ScShapeChild aShape;
+//UNUSED2008-05 aShape.mxShape = xShape;
+//UNUSED2008-05 rItr = std::lower_bound(rShapes.begin(), rShapes.end(), aShape, ScShapeChildLess());
+//UNUSED2008-05 if (rItr->mxShape.get() == xShape.get())
+//UNUSED2008-05 bResult = sal_True; // if the shape is found
+//UNUSED2008-05
+//UNUSED2008-05 /*#ifndef PRODUCT // test whether it finds truly the correct shape (perhaps it is not really sorted)
+//UNUSED2008-05 ScShapeChildVec::iterator aDebugItr = std::find(rShapes.begin(), rShapes.end(), aShape);
+//UNUSED2008-05 DBG_ASSERT(rItr == aDebugItr, "wrong Shape found");
+//UNUSED2008-05 #endif*/
+//UNUSED2008-05 return bResult;
+//UNUSED2008-05 }
/*void ScShapeChilds::AddShape(const uno::Reference<drawing::XShape>& xShape, SdrLayerID aLayerID)
{
diff --git a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
index 13b09ae4d956..692472fe635a 100644
--- a/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
+++ b/sc/source/ui/Accessibility/AccessiblePreviewCell.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessiblePreviewCell.cxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.21.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -299,11 +299,6 @@ sal_Bool ScAccessiblePreviewCell::IsOpaque(
return bOpaque;
}
-sal_Bool ScAccessiblePreviewCell::IsSelected(const uno::Reference<XAccessibleStateSet>& /* rxParentStates */)
-{
- return sal_False;
-}
-
void ScAccessiblePreviewCell::CreateTextHelper()
{
if (!mpTextHelper)
diff --git a/sc/source/ui/Accessibility/AccessibleText.cxx b/sc/source/ui/Accessibility/AccessibleText.cxx
index 3109462f5626..18470475cebf 100644
--- a/sc/source/ui/Accessibility/AccessibleText.cxx
+++ b/sc/source/ui/Accessibility/AccessibleText.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleText.cxx,v $
- * $Revision: 1.44 $
+ * $Revision: 1.42.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -284,7 +284,6 @@ public:
void SetInvalid();
Rectangle GetVisRect() const;
- void FillTableInfo() const;
// clips the VisArea and calculates with the negativ coordinates
Rectangle CorrectVisArea(const Rectangle& rVisArea) const;
@@ -376,15 +375,6 @@ Rectangle ScPreviewViewForwarder::GetVisRect() const
return Rectangle();
}
-void ScPreviewViewForwarder::FillTableInfo() const
-{
- if ( mpViewShell && !mpTableInfo )
- {
- mpTableInfo = new ScPreviewTableInfo;
- mpViewShell->GetLocationData().GetTableInfo( GetVisRect(), *mpTableInfo );
- }
-}
-
Rectangle ScPreviewViewForwarder::CorrectVisArea(const Rectangle& rVisArea) const
{
Rectangle aVisArea(rVisArea);
@@ -1312,18 +1302,18 @@ SvxViewForwarder* ScAccessiblePreviewCellTextData::GetViewForwarder()
return mpViewForwarder;
}
-IMPL_LINK(ScAccessiblePreviewCellTextData, NotifyHdl, EENotify*, aNotify)
-{
- if( aNotify )
- {
- ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
-
- if( aHint.get() )
- GetBroadcaster().Broadcast( *aHint.get() );
- }
-
- return 0;
-}
+//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewCellTextData, NotifyHdl, EENotify*, aNotify)
+//UNUSED2008-05 {
+//UNUSED2008-05 if( aNotify )
+//UNUSED2008-05 {
+//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
+//UNUSED2008-05
+//UNUSED2008-05 if( aHint.get() )
+//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
ScDocShell* ScAccessiblePreviewCellTextData::GetDocShell(ScPreviewShell* pViewShell)
{
@@ -1440,18 +1430,18 @@ SvxViewForwarder* ScAccessiblePreviewHeaderCellTextData::GetViewForwarder()
return mpViewForwarder;
}
-IMPL_LINK(ScAccessiblePreviewHeaderCellTextData, NotifyHdl, EENotify*, aNotify)
-{
- if( aNotify )
- {
- ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
-
- if( aHint.get() )
- GetBroadcaster().Broadcast( *aHint.get() );
- }
-
- return 0;
-}
+//UNUSED2008-05 IMPL_LINK(ScAccessiblePreviewHeaderCellTextData, NotifyHdl, EENotify*, aNotify)
+//UNUSED2008-05 {
+//UNUSED2008-05 if( aNotify )
+//UNUSED2008-05 {
+//UNUSED2008-05 ::std::auto_ptr< SfxHint > aHint = SvxEditSourceHelper::EENotification2Hint( aNotify);
+//UNUSED2008-05
+//UNUSED2008-05 if( aHint.get() )
+//UNUSED2008-05 GetBroadcaster().Broadcast( *aHint.get() );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
ScDocShell* ScAccessiblePreviewHeaderCellTextData::GetDocShell(ScPreviewShell* pViewShell)
{
diff --git a/sc/source/ui/app/inputhdl.cxx b/sc/source/ui/app/inputhdl.cxx
index 6215cd702cee..2a870f5227b5 100644
--- a/sc/source/ui/app/inputhdl.cxx
+++ b/sc/source/ui/app/inputhdl.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputhdl.cxx,v $
- * $Revision: 1.77 $
+ * $Revision: 1.77.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1333,14 +1333,6 @@ void ScInputHandler::StopInputWinEngine( BOOL bAll )
pTopView = NULL; // invalid now
}
-void ScInputHandler::ActivateInputWindow( const String& rText,
- const ESelection& rSel )
-{
- if ( pInputWin )
- if ( !pInputWin->IsInputActive() )
- pTopView = pInputWin->ActivateEdit( rText, rSel );
-}
-
EditView* ScInputHandler::GetActiveView()
{
UpdateActiveView();
@@ -1676,12 +1668,6 @@ void ScInputHandler::SyncViews( EditView* pSourceView )
}
}
-void ScInputHandler::SetAllUpdateMode( BOOL bUpdate )
-{
- ImplCreateEditEngine();
- pEngine->SetUpdateMode( bUpdate );
-}
-
IMPL_LINK( ScInputHandler, ModifyHdl, void *, EMPTYARG )
{
if ( !bInOwnChange && ( eMode==SC_INPUT_TYPE || eMode==SC_INPUT_TABLE ) &&
diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx
index 0fa656a199d8..e1ec599e8fbe 100644
--- a/sc/source/ui/app/inputwin.cxx
+++ b/sc/source/ui/app/inputwin.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputwin.cxx,v $
- * $Revision: 1.58 $
+ * $Revision: 1.57.22.3 $
*
* This file is part of OpenOffice.org.
*
@@ -548,11 +548,6 @@ void ScInputWindow::SetTextString( const String& rString )
}
}
-const String& ScInputWindow::GetTextString()
-{
- return aTextWindow.GetTextString();
-}
-
void ScInputWindow::SetOkCancelMode()
{
//! new method at ScModule to query if function autopilot is open
@@ -621,19 +616,19 @@ String __EXPORT ScInputWindow::GetText() const
}
-EditView* ScInputWindow::ActivateEdit( const String& rText,
- const ESelection& rSel )
-{
- if ( !aTextWindow.IsInputActive() )
- {
- aTextWindow.StartEditEngine();
- aTextWindow.GrabFocus();
- aTextWindow.SetTextString( rText );
- aTextWindow.GetEditView()->SetSelection( rSel );
- }
-
- return aTextWindow.GetEditView();
-}
+//UNUSED2008-05 EditView* ScInputWindow::ActivateEdit( const String& rText,
+//UNUSED2008-05 const ESelection& rSel )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( !aTextWindow.IsInputActive() )
+//UNUSED2008-05 {
+//UNUSED2008-05 aTextWindow.StartEditEngine();
+//UNUSED2008-05 aTextWindow.GrabFocus();
+//UNUSED2008-05 aTextWindow.SetTextString( rText );
+//UNUSED2008-05 aTextWindow.GetEditView()->SetSelection( rSel );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return aTextWindow.GetEditView();
+//UNUSED2008-05 }
BOOL ScInputWindow::IsInputActive()
{
diff --git a/sc/source/ui/app/scdll.cxx b/sc/source/ui/app/scdll.cxx
index 5d149e7076b7..e817f2345551 100644
--- a/sc/source/ui/app/scdll.cxx
+++ b/sc/source/ui/app/scdll.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scdll.cxx,v $
- * $Revision: 1.44 $
+ * $Revision: 1.44.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -130,32 +130,31 @@
//------------------------------------------------------------------
-// filter detection can't use ScFilterOptions (in sc-dll),
-// so access to wk3 flag must be implemented here again
-
-class ScLibOptions : public utl::ConfigItem
-{
- BOOL bWK3Flag;
-
-public:
- ScLibOptions();
- BOOL GetWK3Flag() const { return bWK3Flag; }
-};
-
-#define CFGPATH_LIBFILTER "Office.Calc/Filter/Import/Lotus123"
-#define ENTRYSTR_WK3 "WK3"
-
-ScLibOptions::ScLibOptions() :
- ConfigItem( rtl::OUString::createFromAscii( CFGPATH_LIBFILTER ) ),
- bWK3Flag( FALSE )
-{
- com::sun::star::uno::Sequence<rtl::OUString> aNames(1);
- aNames[0] = rtl::OUString::createFromAscii( ENTRYSTR_WK3 );
- com::sun::star::uno::Sequence<com::sun::star::uno::Any> aValues = GetProperties(aNames);
- if ( aValues.getLength() == 1 && aValues[0].hasValue() )
- bWK3Flag = comphelper::getBOOL( aValues[0] );
-}
-
+//UNUSED2008-05 // filter detection can't use ScFilterOptions (in sc-dll),
+//UNUSED2008-05 // so access to wk3 flag must be implemented here again
+//UNUSED2008-05
+//UNUSED2008-05 class ScLibOptions : public utl::ConfigItem
+//UNUSED2008-05 {
+//UNUSED2008-05 BOOL bWK3Flag;
+//UNUSED2008-05
+//UNUSED2008-05 public:
+//UNUSED2008-05 ScLibOptions();
+//UNUSED2008-05 BOOL GetWK3Flag() const { return bWK3Flag; }
+//UNUSED2008-05 };
+//UNUSED2008-05
+//UNUSED2008-05 #define CFGPATH_LIBFILTER "Office.Calc/Filter/Import/Lotus123"
+//UNUSED2008-05 #define ENTRYSTR_WK3 "WK3"
+//UNUSED2008-05
+//UNUSED2008-05 ScLibOptions::ScLibOptions() :
+//UNUSED2008-05 ConfigItem( rtl::OUString::createFromAscii( CFGPATH_LIBFILTER ) ),
+//UNUSED2008-05 bWK3Flag( FALSE )
+//UNUSED2008-05 {
+//UNUSED2008-05 com::sun::star::uno::Sequence<rtl::OUString> aNames(1);
+//UNUSED2008-05 aNames[0] = rtl::OUString::createFromAscii( ENTRYSTR_WK3 );
+//UNUSED2008-05 com::sun::star::uno::Sequence<com::sun::star::uno::Any> aValues = GetProperties(aNames);
+//UNUSED2008-05 if ( aValues.getLength() == 1 && aValues[0].hasValue() )
+//UNUSED2008-05 bWK3Flag = comphelper::getBOOL( aValues[0] );
+//UNUSED2008-05 }
//------------------------------------------------------------------
@@ -366,51 +365,51 @@ void ScDLL::Exit()
#define TEXT_WIDTH(s) rStatusBar.GetTextWidth((s))
-void ScDLL::FillStatusBar(StatusBar &rStatusBar)
-{
- // Dokumentposition (Tabelle x / y)
- rStatusBar.InsertItem( SID_STATUS_DOCPOS,
- TEXT_WIDTH( String().Fill( 10, 'X' ) ),
- SIB_LEFT|SIB_AUTOSIZE );
-
- // Seitenvorlage
- rStatusBar.InsertItem( SID_STATUS_PAGESTYLE,
- TEXT_WIDTH( String().Fill( 15, 'X' ) ),
- SIB_LEFT|SIB_AUTOSIZE );
-
- // Ma"sstab
- rStatusBar.InsertItem( SID_ATTR_ZOOM,
- SvxZoomStatusBarControl::GetDefItemWidth(rStatusBar),
- SIB_CENTER );
-
- // Einfuege-/Ueberschreibmodus
- rStatusBar.InsertItem( SID_ATTR_INSERT,
- SvxInsertStatusBarControl::GetDefItemWidth(rStatusBar),
- SIB_CENTER );
-
- // Selektionsmodus
- rStatusBar.InsertItem( SID_STATUS_SELMODE,
- SvxSelectionModeControl::GetDefItemWidth(rStatusBar),
- SIB_CENTER );
-
- // Dokument geaendert
- rStatusBar.InsertItem( SID_DOC_MODIFIED,
- SvxModifyControl::GetDefItemWidth(rStatusBar));
-
- // signatures
- rStatusBar.InsertItem( SID_SIGNATURE, XmlSecStatusBarControl::GetDefItemWidth( rStatusBar ), SIB_USERDRAW );
- rStatusBar.SetHelpId(SID_SIGNATURE, SID_SIGNATURE);
-
- // Mail
- rStatusBar.InsertItem( SID_MAIL_NOTIFY,
- TEXT_WIDTH( String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("Mail")) ),
- SIB_CENTER );
-
- // den aktuellen Kontext anzeigen Uhrzeit / FramePos / TabellenInfo / Errors
- rStatusBar.InsertItem( SID_ATTR_SIZE,
- SvxPosSizeStatusBarControl::GetDefItemWidth(rStatusBar),
- SIB_AUTOSIZE|SIB_LEFT|SIB_USERDRAW);
-}
+//UNUSED2008-05 void ScDLL::FillStatusBar(StatusBar &rStatusBar)
+//UNUSED2008-05 {
+//UNUSED2008-05 // Dokumentposition (Tabelle x / y)
+//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_DOCPOS,
+//UNUSED2008-05 TEXT_WIDTH( String().Fill( 10, 'X' ) ),
+//UNUSED2008-05 SIB_LEFT|SIB_AUTOSIZE );
+//UNUSED2008-05
+//UNUSED2008-05 // Seitenvorlage
+//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_PAGESTYLE,
+//UNUSED2008-05 TEXT_WIDTH( String().Fill( 15, 'X' ) ),
+//UNUSED2008-05 SIB_LEFT|SIB_AUTOSIZE );
+//UNUSED2008-05
+//UNUSED2008-05 // Ma"sstab
+//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_ZOOM,
+//UNUSED2008-05 SvxZoomStatusBarControl::GetDefItemWidth(rStatusBar),
+//UNUSED2008-05 SIB_CENTER );
+//UNUSED2008-05
+//UNUSED2008-05 // Einfuege-/Ueberschreibmodus
+//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_INSERT,
+//UNUSED2008-05 SvxInsertStatusBarControl::GetDefItemWidth(rStatusBar),
+//UNUSED2008-05 SIB_CENTER );
+//UNUSED2008-05
+//UNUSED2008-05 // Selektionsmodus
+//UNUSED2008-05 rStatusBar.InsertItem( SID_STATUS_SELMODE,
+//UNUSED2008-05 SvxSelectionModeControl::GetDefItemWidth(rStatusBar),
+//UNUSED2008-05 SIB_CENTER );
+//UNUSED2008-05
+//UNUSED2008-05 // Dokument geaendert
+//UNUSED2008-05 rStatusBar.InsertItem( SID_DOC_MODIFIED,
+//UNUSED2008-05 SvxModifyControl::GetDefItemWidth(rStatusBar));
+//UNUSED2008-05
+//UNUSED2008-05 // signatures
+//UNUSED2008-05 rStatusBar.InsertItem( SID_SIGNATURE, XmlSecStatusBarControl::GetDefItemWidth( rStatusBar ), SIB_USERDRAW );
+//UNUSED2008-05 rStatusBar.SetHelpId(SID_SIGNATURE, SID_SIGNATURE);
+//UNUSED2008-05
+//UNUSED2008-05 // Mail
+//UNUSED2008-05 rStatusBar.InsertItem( SID_MAIL_NOTIFY,
+//UNUSED2008-05 TEXT_WIDTH( String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("Mail")) ),
+//UNUSED2008-05 SIB_CENTER );
+//UNUSED2008-05
+//UNUSED2008-05 // den aktuellen Kontext anzeigen Uhrzeit / FramePos / TabellenInfo / Errors
+//UNUSED2008-05 rStatusBar.InsertItem( SID_ATTR_SIZE,
+//UNUSED2008-05 SvxPosSizeStatusBarControl::GetDefItemWidth(rStatusBar),
+//UNUSED2008-05 SIB_AUTOSIZE|SIB_LEFT|SIB_USERDRAW);
+//UNUSED2008-05 }
#undef TEXT_WIDTH
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index d4abd47f92b7..09477881f9a9 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: scmod.cxx,v $
- * $Revision: 1.58 $
+ * $Revision: 1.58.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1576,13 +1576,6 @@ void ScModule::InputChanged( EditView* pView )
pHdl->InputChanged( pView );
}
-void ScModule::SetInputWindow( ScInputWindow* pWin )
-{
- ScInputHandler* pHdl = GetInputHdl();
- if ( pHdl )
- pHdl->SetInputWindow( pWin );
-}
-
void ScModule::ViewShellGone( ScTabViewShell* pViewSh )
{
ScInputHandler* pHdl = GetInputHdl();
@@ -1678,12 +1671,6 @@ void ScModule::ActivateInputWindow( const String* pStrFormula, BOOL bMatrix )
//
//------------------------------------------------------------------
-void ScModule::CloseDialogs()
-{
- if( nCurRefDlgId )
- SetRefDialog( nCurRefDlgId, FALSE );
-}
-
void ScModule::SetRefDialog( USHORT nId, BOOL bVis, SfxViewFrame* pViewFrm )
{
//! move reference dialog handling to view
diff --git a/sc/source/ui/app/uiitems.cxx b/sc/source/ui/app/uiitems.cxx
index cf5aa34c75a3..4ae240edb222 100644
--- a/sc/source/ui/app/uiitems.cxx
+++ b/sc/source/ui/app/uiitems.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: uiitems.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -60,21 +60,21 @@ TYPEINIT1(ScIndexHint, SfxHint);
// ScInputStatusItem - Status-Update fuer Eingabezeile
// -----------------------------------------------------------------------
-ScInputStatusItem::ScInputStatusItem( USHORT nWhichP,
- SCTAB nTab,
- SCCOL nCol, SCROW nRow,
- SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nEndRow,
- const String& rString, const EditTextObject* pData )
-
- : SfxPoolItem ( nWhichP ),
- aCursorPos ( nCol, nRow, nTab ),
- aStartPos ( nStartCol, nStartRow, nTab ),
- aEndPos ( nEndCol, nEndRow, nTab ),
- aString ( rString ),
- pEditData ( pData ? pData->Clone() : NULL )
-{
-}
+//UNUSED2008-05 ScInputStatusItem::ScInputStatusItem( USHORT nWhichP,
+//UNUSED2008-05 SCTAB nTab,
+//UNUSED2008-05 SCCOL nCol, SCROW nRow,
+//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow,
+//UNUSED2008-05 SCCOL nEndCol, SCROW nEndRow,
+//UNUSED2008-05 const String& rString, const EditTextObject* pData )
+//UNUSED2008-05
+//UNUSED2008-05 : SfxPoolItem ( nWhichP ),
+//UNUSED2008-05 aCursorPos ( nCol, nRow, nTab ),
+//UNUSED2008-05 aStartPos ( nStartCol, nStartRow, nTab ),
+//UNUSED2008-05 aEndPos ( nEndCol, nEndRow, nTab ),
+//UNUSED2008-05 aString ( rString ),
+//UNUSED2008-05 pEditData ( pData ? pData->Clone() : NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScInputStatusItem::ScInputStatusItem( USHORT nWhichP,
const ScAddress& rCurPos,
@@ -166,12 +166,6 @@ ScIndexHint::~ScIndexHint()
// ScEditViewHint - neue EditView fuer Cursorposition anlegen
// -----------------------------------------------------------------------
-ScEditViewHint::ScEditViewHint() :
- pEditEngine( NULL ),
- aCursorPos( 0,0,0 )
-{
-}
-
ScEditViewHint::ScEditViewHint( ScEditEngineDefaulter* pEngine, const ScAddress& rCurPos ) :
pEditEngine( pEngine ),
aCursorPos( rCurPos )
diff --git a/sc/source/ui/cctrl/editfield.cxx b/sc/source/ui/cctrl/editfield.cxx
index 9d6ce5eff5d1..0bc6478fe89b 100644
--- a/sc/source/ui/cctrl/editfield.cxx
+++ b/sc/source/ui/cctrl/editfield.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editfield.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -57,11 +57,6 @@ sal_Unicode lclGetGroupSep()
// ============================================================================
-ScDoubleField::ScDoubleField( Window* pParent, WinBits nStyle ) :
- Edit( pParent, nStyle )
-{
-}
-
ScDoubleField::ScDoubleField( Window* pParent, const ResId& rResId ) :
Edit( pParent, rResId )
{
diff --git a/sc/source/ui/dbgui/dapitype.cxx b/sc/source/ui/dbgui/dapitype.cxx
index dda1272ce54a..9a5076f4b3ce 100644
--- a/sc/source/ui/dbgui/dapitype.cxx
+++ b/sc/source/ui/dbgui/dapitype.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dapitype.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -69,11 +69,6 @@ ScDataPilotSourceTypeDlg::~ScDataPilotSourceTypeDlg()
{
}
-BOOL ScDataPilotSourceTypeDlg::IsSelection() const
-{
- return aBtnSelection.IsChecked();
-}
-
BOOL ScDataPilotSourceTypeDlg::IsDatabase() const
{
return aBtnDatabase.IsChecked();
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx
index 45bf3b5259c6..d5a8c8aaade6 100644
--- a/sc/source/ui/dbgui/dbnamdlg.cxx
+++ b/sc/source/ui/dbgui/dbnamdlg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbnamdlg.cxx,v $
- * $Revision: 1.10 $
+ * $Revision: 1.9.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -81,7 +81,6 @@ public:
rBtnHeader(rHdr), rBtnSize(rSize), rBtnFormat(rFmt), rBtnStrip(rStrip),
rCurArea(rArea),
bHeader(FALSE), bSize(FALSE), bFormat(FALSE), bDirty(FALSE) {}
- void Clear();
void Save();
void Restore();
@@ -105,16 +104,6 @@ private:
//----------------------------------------------------------------------------
-void DBSaveData::Clear()
-{
- aStr.Erase();
- aArea = ScRange();
- bHeader = bSize = bFormat = bStrip = bDirty = FALSE;
-}
-
-
-//----------------------------------------------------------------------------
-
void DBSaveData::Save()
{
aArea = rCurArea;
diff --git a/sc/source/ui/dbgui/expftext.cxx b/sc/source/ui/dbgui/expftext.cxx
index 28bb2fcd3a51..053433743185 100644
--- a/sc/source/ui/dbgui/expftext.cxx
+++ b/sc/source/ui/dbgui/expftext.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: expftext.cxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -40,28 +40,6 @@
#* Member: ScExpandedFixedText Datum:18.09.97
#*------------------------------------------------------------------------
#*
-#* Klasse: ScExpandedFixedText
-#*
-#* Funktion: Konstruktor der Klasse ScExpandedFixedText
-#*
-#* Input: Parent- Window, Fenster-Attribute
-#*
-#* Output: ---
-#*
-#************************************************************************/
-
-ScExpandedFixedText::ScExpandedFixedText( Window* pParent,
- WinBits nWinStyle) :
-
- FixedText( pParent, nWinStyle )
-{
-
-}
-
-/*************************************************************************
-#* Member: ScExpandedFixedText Datum:18.09.97
-#*------------------------------------------------------------------------
-#*
#* Klasse: MD_Test
#*
#* Funktion: Konstruktor der Klasse SvxCtrDial
diff --git a/sc/source/ui/dbgui/pvfundlg.cxx b/sc/source/ui/dbgui/pvfundlg.cxx
index 62cc29504f7f..aec1892c9930 100644
--- a/sc/source/ui/dbgui/pvfundlg.cxx
+++ b/sc/source/ui/dbgui/pvfundlg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pvfundlg.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -162,12 +162,6 @@ ScDPFunctionListBox::ScDPFunctionListBox( Window* pParent, const ResId& rResId )
FillFunctionNames();
}
-ScDPFunctionListBox::ScDPFunctionListBox( Window* pParent, WinBits nStyle ) :
- MultiListBox( pParent, nStyle )
-{
- FillFunctionNames();
-}
-
void ScDPFunctionListBox::SetSelection( USHORT nFuncMask )
{
if( (nFuncMask == PIVOT_FUNC_NONE) || (nFuncMask == PIVOT_FUNC_AUTO) )
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index e030f21a2734..79a09424bd8a 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docfunc.cxx,v $
- * $Revision: 1.70 $
+ * $Revision: 1.69.28.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx
index bf520a506017..c3a9605995cb 100644
--- a/sc/source/ui/docshell/docsh.cxx
+++ b/sc/source/ui/docshell/docsh.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh.cxx,v $
- * $Revision: 1.103 $
+ * $Revision: 1.100.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -241,242 +241,6 @@ SCTAB ScDocShell::GetSaveTab()
return nTab;
}
-//------------------------------------------------------------------
-/*
-BOOL ScDocShell::LoadCalc( SotStorage* pStor ) // StarCalc 3, 4 or 5 file
-{
- // MacroCallMode is no longer needed, state is kept in SfxObjectShell now
-
- BOOL bRet = TRUE;
-
- SotStorageStreamRef aPoolStm = pStor->OpenStream( String::CreateFromAscii(pStyleName), STREAM_STD_READ );
- SotStorageStreamRef aDocStm = pStor->OpenStream( String::CreateFromAscii(pStarCalcDoc), STREAM_STD_READ );
- ULONG nPoolErr = aPoolStm->GetError();
- ULONG nDocErr = aDocStm->GetError();
-
- ScProgress* pProgress = NULL;
- SfxObjectCreateMode eShellMode = GetCreateMode();
- if ( eShellMode == SFX_CREATE_MODE_STANDARD && !nDocErr )
- {
- ULONG nCurPos = aDocStm->Tell();
- ULONG nEndPos = aDocStm->Seek( STREAM_SEEK_TO_END );
- aDocStm->Seek( nCurPos );
- ULONG nRange = nEndPos - nCurPos;
- pProgress = new ScProgress( this, ScGlobal::GetRscString(STR_LOAD_DOC), nRange );
- }
-
- if ( nPoolErr == ERRCODE_IO_NOTEXISTS && nDocErr == ERRCODE_IO_NOTEXISTS )
- {
- // leerer Storage = leeres Dokument -> wie InitNew
-
- aDocument.MakeTable(0);
- Size aSize( (long) ( STD_COL_WIDTH * HMM_PER_TWIPS * OLE_STD_CELLS_X ),
- (long) ( ScGlobal::nStdRowHeight * HMM_PER_TWIPS * OLE_STD_CELLS_Y ) );
- // hier muss auch der Start angepasst werden
- SetVisAreaOrSize( Rectangle( Point(), aSize ), TRUE );
- aDocument.GetStyleSheetPool()->CreateStandardStyles();
- aDocument.UpdStlShtPtrsFrmNms();
- }
- else if ( !nPoolErr && !nDocErr )
- {
- aPoolStm->SetVersion(pStor->GetVersion());
- aDocStm->SetVersion(pStor->GetVersion());
-
- aDocument.Clear(); // keine Referenzen auf Pool behalten!
-
- RemoveItem( SID_ATTR_CHAR_FONTLIST );
- RemoveItem( ITEMID_COLOR_TABLE );
- RemoveItem( ITEMID_GRADIENT_LIST );
- RemoveItem( ITEMID_HATCH_LIST );
- RemoveItem( ITEMID_BITMAP_LIST );
- RemoveItem( ITEMID_DASH_LIST );
- RemoveItem( ITEMID_LINEEND_LIST );
-
- aDocument.LoadPool( *aPoolStm, FALSE ); // FALSE: RefCounts nicht laden
- bRet = (aPoolStm->GetError() == 0);
-
- if ( !bRet )
- {
- pStor->SetError( aPoolStm->GetError() );
- DBG_ERROR( "Fehler im Pool-Stream" );
- }
- else if (eShellMode != SFX_CREATE_MODE_ORGANIZER)
- {
- // ViewOptions are not completely stored (to avoid warnings),
- // so must be initialized from global settings.
- //! This can be removed if a new file format loads all ViewOptions !!!
-
- aDocument.SetViewOptions( SC_MOD()->GetViewOptions() );
-
- ULONG nErrCode = aPoolStm->GetErrorCode();
- const ByteString aStrKey = pStor->GetKey();
- const BOOL bKeySet = (aStrKey.Len() > 0);
-
- if ( bKeySet )
- aDocStm->SetKey( aStrKey ); // Passwort setzen
-
- bRet = aDocument.Load( *aDocStm, pProgress );
-
- if ( !bRet && bKeySet ) // Passwort falsch
- {
- SetError( ERRCODE_SFX_WRONGPASSWORD );
- pStor->SetError( ERRCODE_SFX_WRONGPASSWORD );
- }
-
- if ( aDocStm->GetError() )
- {
- // Zeile-8192-Meldung braucht nur zu kommen, wenn die Zeilen
- // beschraenkt sind, sonst ist "falsches Format" besser
-#ifdef SC_LIMIT_ROWS
- if ( aDocument.HasLostData() ) // zuviele Zeilen?
- pStor->SetError( SCERR_IMPORT_8K_LIMIT );
- else
-#endif
- pStor->SetError( aDocStm->GetError() );
- bRet = FALSE;
- DBG_ERROR( "Fehler im Document-Stream" );
- }
- else
- {
- if ( !(nErrCode & ERRCODE_WARNING_MASK) )
- nErrCode = aDocStm->GetErrorCode();
- if ( nErrCode & ERRCODE_WARNING_MASK )
- SetError( nErrCode );
- }
-
- if (bRet)
- {
- aDocument.UpdateFontCharSet();
-
- UpdateLinks(); // verknuepfte Tabellen in Link-Manager
- RemoveUnknownObjects(); // unbekannte Ole-Objekte loeschen
- }
- }
- else // SFX_CREATE_MODE_ORGANIZER
- {
- // UpdateStdNames is called from ScDocument::Load, but is also needed
- // if only the styles are loaded!
- ScStyleSheetPool* pStylePool = aDocument.GetStyleSheetPool();
- if (pStylePool)
- pStylePool->UpdateStdNames(); // correct style names for different languages
- }
-
- if (bRet)
- aDocument.GetPool()->MyLoadCompleted();
- }
- else
- {
- DBG_ERROR( "Stream-Fehler");
- bRet = FALSE;
- }
-
- if (!aDocument.HasTable(0))
- aDocument.MakeTable(0);
-
- if (eShellMode == SFX_CREATE_MODE_EMBEDDED)
- {
- SCTAB nVisTab = aDocument.GetVisibleTab();
- BOOL bHasVis = aDocument.HasTable(nVisTab);
- if ( SfxInPlaceObject::GetVisArea().IsEmpty() || !bHasVis )
- {
- if (!bHasVis)
- {
- nVisTab = 0;
- aDocument.SetVisibleTab(nVisTab);
- }
- SCCOL nStartCol;
- SCROW nStartRow;
- aDocument.GetDataStart( nVisTab, nStartCol, nStartRow );
- SCCOL nEndCol;
- SCROW nEndRow;
- aDocument.GetPrintArea( nVisTab, nEndCol, nEndRow );
- if (nStartCol>nEndCol)
- nStartCol = nEndCol;
- if (nStartRow>nEndRow)
- nStartRow = nEndRow;
- // hier muss auch der Start angepasst werden
- SetVisAreaOrSize( aDocument.GetMMRect( nStartCol,nStartRow, nEndCol,nEndRow, nVisTab ),
- TRUE );
- }
- }
-
- delete pProgress;
-
- return bRet;
-}
-
-
-BOOL ScDocShell::SaveCalc( SotStorage* pStor ) // Calc 3, 4 or 5 file
-{
- BOOL bRet = TRUE;
-
- ScProgress* pProgress = NULL;
- SfxObjectCreateMode eShellMode = GetCreateMode();
- if ( eShellMode == SFX_CREATE_MODE_STANDARD )
- {
- ULONG nRange = aDocument.GetWeightedCount() + 1;
- pProgress = new ScProgress( this, ScGlobal::GetRscString(STR_SAVE_DOC), nRange );
- }
-
- SotStorageStreamRef aPoolStm = pStor->OpenStream( String::CreateFromAscii(pStyleName) );
- if( !aPoolStm->GetError() )
- {
- aPoolStm->SetVersion(pStor->GetVersion());
- aPoolStm->SetSize(0);
- bRet = aDocument.SavePool( *aPoolStm );
- if ( aPoolStm->GetErrorCode() && !pStor->GetErrorCode() )
- pStor->SetError(aPoolStm->GetErrorCode());
- }
- else
- {
- DBG_ERROR( "Stream Error" );
- bRet = FALSE;
- }
-
- if ( bRet && eShellMode != SFX_CREATE_MODE_ORGANIZER )
- {
- SotStorageStreamRef aDocStm = pStor->OpenStream( String::CreateFromAscii(pStarCalcDoc) );
- if( !aDocStm->GetError() )
- {
- aDocStm->SetVersion(pStor->GetVersion());
- aDocStm->SetKey(pStor->GetKey()); // Passwort setzen
- aDocStm->SetSize(0);
- bRet = aDocument.Save( *aDocStm, pProgress );
- DBG_ASSERT( bRet, "Error while saving" );
-
- if ( aDocument.HasLostData() )
- {
- // Warnung, dass nicht alles gespeichert wurde
-
- if (!pStor->GetError())
- pStor->SetError(SCWARN_EXPORT_MAXROW);
- }
- else if ( aDocStm->GetErrorCode() && !pStor->GetErrorCode() )
- pStor->SetError(aDocStm->GetErrorCode());
- else if ( SvtFilterOptions::Get()->IsLoadExcelBasicStorage() )
- {
- // #75497# warning if MS VBA macros are lost
- // GetSaveWarningOfMSVBAStorage checks if sub-storage with VBA macros is present
- // (only possible when editing Excel documents -- storage is not copied to
- // StarCalc files)
- ULONG nVBAWarn = SvxImportMSVBasic::GetSaveWarningOfMSVBAStorage( *this );
- if ( nVBAWarn && !pStor->GetErrorCode() )
- pStor->SetError( nVBAWarn );
- }
- }
- else
- {
- DBG_ERROR( "Stream Error" );
- bRet = FALSE;
- }
- }
-
- delete pProgress;
-
- return bRet;
-}
-*/
-
sal_uInt16 ScDocShell::GetHiddenInformationState( sal_uInt16 nStates )
{
// get global state like HIDDENINFORMATION_DOCUMENTVERSIONS
diff --git a/sc/source/ui/docshell/docsh2.cxx b/sc/source/ui/docshell/docsh2.cxx
index 4de30ea045a9..7f213175a075 100644
--- a/sc/source/ui/docshell/docsh2.cxx
+++ b/sc/source/ui/docshell/docsh2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh2.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -240,54 +240,3 @@ ScDrawLayer* ScDocShell::MakeDrawLayer()
}
return pDrawLayer;
}
-
-//------------------------------------------------------------------
-
-
-void ScDocShell::RemoveUnknownObjects()
-{
- // OLE-Objekte loeschen, wenn kein Drawing-Objekt dazu existiert
- // Loeschen wie in SvPersist::CleanUp
-
- ScDrawLayer* pDrawLayer = aDocument.GetDrawLayer();
- uno::Sequence < rtl::OUString > aNames = GetEmbeddedObjectContainer().GetObjectNames();
-
- for( sal_Int32 i=0; i<aNames.getLength(); i++ )
- {
- String aObjName = aNames[i];
- BOOL bFound = FALSE;
- if ( pDrawLayer )
- {
- SCTAB nTabCount = static_cast<sal_Int16>(pDrawLayer->GetPageCount());
- for (SCTAB nTab=0; nTab<nTabCount && !bFound; nTab++)
- {
- SdrPage* pPage = pDrawLayer->GetPage(static_cast<sal_uInt16>(nTab));
- DBG_ASSERT(pPage,"Page ?");
- if (pPage)
- {
- SdrObjListIter aIter( *pPage, IM_DEEPNOGROUPS );
- SdrObject* pObject = aIter.Next();
- while (pObject && !bFound)
- {
- // name from InfoObject is PersistName
- if ( pObject->ISA(SdrOle2Obj) &&
- static_cast<SdrOle2Obj*>(pObject)->GetPersistName() == aObjName )
- bFound = TRUE;
- pObject = aIter.Next();
- }
- }
- }
- }
-
- if (!bFound)
- {
- //TODO/LATER: hacks not supported anymore
- //DBG_ASSERT(pEle->GetRefCount()==2, "Loeschen von referenziertem Storage");
- GetEmbeddedObjectContainer().RemoveEmbeddedObject( aObjName );
- }
- else
- i++;
- }
-}
-
-
diff --git a/sc/source/ui/docshell/docsh3.cxx b/sc/source/ui/docshell/docsh3.cxx
index aea08c2c929c..b0094688903d 100644
--- a/sc/source/ui/docshell/docsh3.cxx
+++ b/sc/source/ui/docshell/docsh3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh3.cxx,v $
- * $Revision: 1.38 $
+ * $Revision: 1.37.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1172,19 +1172,6 @@ void ScDocShell::MergeDocument( ScDocument& rOtherDoc, bool bShared, bool bCheck
UnlockPaint();
}
-void lcl_MergeActionStates( ScChangeTrack* pOwnTrack, ScChangeTrack* pSharedTrack )
-{
- BOOL bIgnore100Sec = !pOwnTrack->IsTime100thSeconds() || !pSharedTrack->IsTime100thSeconds();
- ScChangeAction* pOwnAction = pOwnTrack->GetFirst();
- ScChangeAction* pSharedAction = pSharedTrack->GetFirst();
- while ( lcl_Equal( pOwnAction, pSharedAction, bIgnore100Sec ) )
- {
- pOwnTrack->MergeActionState( pOwnAction, pSharedAction );
- pOwnAction = pOwnAction->GetNext();
- pSharedAction = pSharedAction->GetNext();
- }
-}
-
bool ScDocShell::MergeSharedDocument( ScDocShell* pSharedDocShell )
{
if ( !pSharedDocShell )
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 92af987920bc..a2e69c411225 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh4.cxx,v $
- * $Revision: 1.64 $
+ * $Revision: 1.61.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -147,36 +147,6 @@ using namespace ::com::sun::star;
//------------------------------------------------------------------
-BOOL ScDocShell::GetTabParam( const SfxItemSet* pArgs, USHORT nId, SCTAB& rTab )
-{
- BOOL bOk = TRUE;
- rTab = 0; // zur Sicherheit...
-
- const SfxPoolItem* pTabItem;
- if ( pArgs && pArgs->GetItemState( nId, TRUE, &pTabItem ) == SFX_ITEM_SET )
- {
- // Parameter sind 1-based !!!
- SCTAB nItemTab = ((const SfxUInt16Item*)pTabItem)->GetValue();
- SCTAB nTabCount = aDocument.GetTableCount();
- if (nItemTab>0 && nItemTab<=nTabCount)
- rTab = nItemTab-1;
- else
- bOk = FALSE;
- }
- else // nichts angegeben -> sichtbare
- {
- ScTabViewShell* pVisibleSh = GetBestViewShell();
- if ( pVisibleSh )
- rTab = pVisibleSh->GetViewData()->GetTabNo();
- else
- bOk = FALSE;
- }
-
- return bOk;
-}
-
-//------------------------------------------------------------------
-
void ScDocShell::Execute( SfxRequest& rReq )
{
// SID_SC_RANGE (Range),
diff --git a/sc/source/ui/docshell/docsh5.cxx b/sc/source/ui/docshell/docsh5.cxx
index 809d87df1c81..8d3113b73385 100644
--- a/sc/source/ui/docshell/docsh5.cxx
+++ b/sc/source/ui/docshell/docsh5.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh5.cxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.20.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -402,10 +402,12 @@ void ScDocShell::UpdateAllRowHeights()
aDocument.UpdateAllRowHeights( aProv.GetDevice(), aProv.GetPPTX(), aProv.GetPPTY(), aZoom, aZoom );
}
+#if OLD_PIVOT_IMPLEMENTATION
void ScDocShell::PivotUpdate( ScPivot*, ScPivot*, BOOL, BOOL )
{
DBG_ERRORFILE("PivotUpdate is obsolete!");
}
+#endif
void ScDocShell::RefreshPivotTables( const ScRange& rSource )
{
diff --git a/sc/source/ui/docshell/docsh8.cxx b/sc/source/ui/docshell/docsh8.cxx
index e7deaf70e15d..9dfe22fa02d3 100644
--- a/sc/source/ui/docshell/docsh8.cxx
+++ b/sc/source/ui/docshell/docsh8.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh8.cxx,v $
- * $Revision: 1.28 $
+ * $Revision: 1.27.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -192,44 +192,6 @@ BOOL ScDocShell::IsDocument( const INetURLObject& rURL )
// -----------------------------------------------------------------------
-long lcl_GetRowCount( const uno::Reference<sdbc::XConnection>& xConnection,
- const String& rTabName )
-{
- try
- {
- uno::Reference<sdbc::XStatement> xStatement = xConnection->createStatement();
- DBG_ASSERT( xStatement.is(), "can't get Statement" );
- if (!xStatement.is()) return SC_ROWCOUNT_ERROR;
-
- String aQuoteStr;
- uno::Reference<sdbc::XDatabaseMetaData> xDBMeta = xConnection->getMetaData();
- if (xDBMeta.is())
- aQuoteStr = xDBMeta->getIdentifierQuoteString();
-
- String aSql = String::CreateFromAscii("SELECT COUNT ( * ) FROM ");
- aSql += aQuoteStr;
- aSql += rTabName;
- aSql += aQuoteStr;
-
- uno::Reference<sdbc::XResultSet> xResSet = xStatement->executeQuery( aSql );
- uno::Reference<sdbc::XRow> xRow( xResSet, uno::UNO_QUERY );
- DBG_ASSERT( xRow.is(), "can't get Row" );
- if (!xRow.is()) return SC_ROWCOUNT_ERROR;
-
- if ( xResSet->next() )
- return xRow->getInt( 1 );
- }
- catch ( sdbc::SQLException& )
- {
- }
- catch ( uno::Exception& )
- {
- DBG_ERROR("Unexpected exception in database");
- }
-
- return SC_ROWCOUNT_ERROR;
-}
-
ULONG ScDocShell::DBaseImport( const String& rFullFileName, CharSet eCharSet,
BOOL bSimpleColWidth[MAXCOLCOUNT] )
{
@@ -281,7 +243,6 @@ ULONG ScDocShell::DBaseImport( const String& rFullFileName, CharSet eCharSet,
DBG_ASSERT( xConnection.is(), "can't get Connection" );
if (!xConnection.is()) return SCERR_IMPORT_CONNECT;
-//! long nRowCount = lcl_GetRowCount( xConnection, aTabName );
long nRowCount = 0;
if ( nRowCount < 0 )
{
diff --git a/sc/source/ui/docshell/editable.cxx b/sc/source/ui/docshell/editable.cxx
index 1e4269872d78..c25df4dd0035 100644
--- a/sc/source/ui/docshell/editable.cxx
+++ b/sc/source/ui/docshell/editable.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editable.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -46,11 +46,6 @@ ScEditableTester::ScEditableTester() :
{
}
-void ScEditableTester::Reset()
-{
- bIsEditable = bOnlyMatrix = TRUE;
-}
-
ScEditableTester::ScEditableTester( ScDocument* pDoc, SCTAB nTab,
SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow ) :
bIsEditable( TRUE ),
diff --git a/sc/source/ui/docshell/tablink.cxx b/sc/source/ui/docshell/tablink.cxx
index 0c165fa1e472..9a06e945dbd6 100644
--- a/sc/source/ui/docshell/tablink.cxx
+++ b/sc/source/ui/docshell/tablink.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tablink.cxx,v $
- * $Revision: 1.31 $
+ * $Revision: 1.31.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -311,7 +311,6 @@ BOOL ScTableLink::Refresh(const String& rNewFile, const String& rNewFilter,
else
{
pDoc->DeleteAreaTab( 0,0,MAXCOL,MAXROW, nTab, IDF_ALL );
-// pDoc->ClearDrawPage(nTab);
bool bShowError = true;
if ( nMode == SC_LINK_VALUE )
diff --git a/sc/source/ui/formdlg/formdata.cxx b/sc/source/ui/formdlg/formdata.cxx
index 3cac9d84112b..1a7338986538 100644
--- a/sc/source/ui/formdlg/formdata.cxx
+++ b/sc/source/ui/formdlg/formdata.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formdata.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -93,17 +93,5 @@ void ScFormEditData::SaveValues()
pParent = pTemp;
}
-void ScFormEditData::RestoreValues()
-{
- ScFormEditData* pTemp = pParent;
- DBG_ASSERT(pTemp,"RestoreValues ohne Parent");
- if (pTemp)
- {
- *this = *pTemp;
- pTemp->pParent = NULL; // sonst wird der auch geloescht!
- delete pTemp;
- }
-}
-
diff --git a/sc/source/ui/formdlg/formula.cxx b/sc/source/ui/formdlg/formula.cxx
index 6b2f3f282e79..8b13021c7262 100644
--- a/sc/source/ui/formdlg/formula.cxx
+++ b/sc/source/ui/formdlg/formula.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formula.cxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.18.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -763,72 +763,26 @@ IMPL_LINK( ScFormulaDlg, BtnHdl, PushButton*, pBtn )
// Funktionen fuer 1. Seite
// --------------------------------------------------------------------------
-void ScFormulaDlg::ResizeArgArr( const ScFuncDesc* pNewFunc )
-{
- if ( pFuncDesc != pNewFunc )
- {
- DeleteArgs();
-
- if ( pNewFunc )
- {
- nArgs = pNewFunc->GetSuppressedArgCount();
- if ( nArgs > 0 )
- {
- pArgArr = new String*[nArgs];
- for ( USHORT i=0; i<nArgs; i++ )
- pArgArr[i] = new String;
- }
- }
-
- pFuncDesc = pNewFunc;
- }
-}
-
-void ScFormulaDlg::UpdateFunctionDesc()
-{
- ScModule* pScMod = SC_MOD();
-
- ScFormEditData* pData = pScMod->GetFormEditData();
- if (!pData) return;
- USHORT nCat = pScFuncPage->GetCategory();
- if ( nCat == LISTBOX_ENTRY_NOTFOUND ) nCat = 0;
- pData->SetCatSel( nCat );
- USHORT nFunc = pScFuncPage->GetFunction();
- if ( nFunc == LISTBOX_ENTRY_NOTFOUND ) nFunc = 0;
- pData->SetFuncSel( nFunc );
-
- if ( (pScFuncPage->GetFunctionEntryCount() > 0)
- && (pScFuncPage->GetFunction() != LISTBOX_ENTRY_NOTFOUND) )
- {
- const ScFuncDesc* pDesc =pScFuncPage->GetFuncDesc(
- pScFuncPage->GetFunction() );
- if (pDesc)
- {
- pDesc->InitArgumentInfo(); // full argument info is needed
-
- String aSig = pDesc->GetSignature();
-
- aFtFuncName.SetText( aSig );
- if(pDesc->pFuncDesc)
- aFtFuncDesc.SetText( *(pDesc->pFuncDesc) );
- else
- aFtFuncDesc.SetText(EMPTY_STRING );
- ResizeArgArr( pDesc );
-
- if ( pArgArr && pArgArr[0] && pArgArr[0]->Len() ) // noch Argumente da?
- aSig = pDesc->GetFormulaString( pArgArr ); // fuer Eingabezeile
- //@ pScMod->InputReplaceSelection( aSig );
- }
- }
- else
- {
- aFtFuncName.SetText( EMPTY_STRING );
- aFtFuncDesc.SetText( EMPTY_STRING );
-
- //ResizeArgArr( NULL );
- pScMod->InputReplaceSelection( EMPTY_STRING );
- }
-}
+//UNUSED2008-05 void ScFormulaDlg::ResizeArgArr( const ScFuncDesc* pNewFunc )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pFuncDesc != pNewFunc )
+//UNUSED2008-05 {
+//UNUSED2008-05 DeleteArgs();
+//UNUSED2008-05
+//UNUSED2008-05 if ( pNewFunc )
+//UNUSED2008-05 {
+//UNUSED2008-05 nArgs = pNewFunc->GetSuppressedArgCount();
+//UNUSED2008-05 if ( nArgs > 0 )
+//UNUSED2008-05 {
+//UNUSED2008-05 pArgArr = new String*[nArgs];
+//UNUSED2008-05 for ( USHORT i=0; i<nArgs; i++ )
+//UNUSED2008-05 pArgArr[i] = new String;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 pFuncDesc = pNewFunc;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
// Handler fuer Listboxen
@@ -993,65 +947,20 @@ void ScFormulaDlg::EditNextFunc( BOOL bForward, xub_StrLen nFStart )
}
}
-void ScFormulaDlg::EditFuncParas(xub_StrLen nEditPos)
-{
- if(pFuncDesc!=NULL)
- {
- ScModule* pScMod = SC_MOD();
- ScFormEditData* pData = pScMod->GetFormEditData();
- if (!pData) return;
-
- String aFormula = pScMod->InputGetFormulaStr();
- aFormula +=')';
- xub_StrLen nFStart = pData->GetFStart();
-
- DeleteArgs();
-
- nArgs = pFuncDesc->GetSuppressedArgCount();
-
- xub_StrLen nArgPos=ScFormulaUtil::GetArgStart( aFormula, nFStart, 0 );
- pArgArr = ScFormulaUtil::GetArgStrings( aFormula, nFStart, nArgs );
-
- USHORT nActiv=aScParaWin.GetSliderPos();
- BOOL bFlag=FALSE;
- for(USHORT i=0;i<nArgs;i++)
- {
- xub_StrLen nLength=(pArgArr[i])->Len();
- aScParaWin.SetArgument(i,*(pArgArr[i]));
- if(nArgPos<=nEditPos && nEditPos<nArgPos+nLength)
- {
- nActiv=i;
- bFlag=TRUE;
- }
- nArgPos+=nLength+1;
- }
-
- if(bFlag)
- {
- aScParaWin.SetSliderPos(nActiv);
- }
-
- aScParaWin.UpdateParas();
- UpdateValues();
- }
-
-}
-
-
-IMPL_LINK( ScFormulaDlg, ScrollHdl, ScParaWin*, EMPTYARG )
-{
- ScModule* pScMod = SC_MOD();
- ScFormEditData* pData = pScMod->GetFormEditData();
- if (!pData) return 0;
- USHORT nOffset = aScParaWin.GetSliderPos();
- pData->SetOffset( nOffset );
-
- aScParaWin.UpdateParas();
-
- UpdateValues();
-
- return 0;
-}
+//UNUSED2008-05 IMPL_LINK( ScFormulaDlg, ScrollHdl, ScParaWin*, EMPTYARG )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScModule* pScMod = SC_MOD();
+//UNUSED2008-05 ScFormEditData* pData = pScMod->GetFormEditData();
+//UNUSED2008-05 if (!pData) return 0;
+//UNUSED2008-05 USHORT nOffset = aScParaWin.GetSliderPos();
+//UNUSED2008-05 pData->SetOffset( nOffset );
+//UNUSED2008-05
+//UNUSED2008-05 aScParaWin.UpdateParas();
+//UNUSED2008-05
+//UNUSED2008-05 UpdateValues();
+//UNUSED2008-05
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
BOOL ScFormulaDlg::CalcValue( const String& rStrExp, String& rStrResult )
{
diff --git a/sc/source/ui/formdlg/funcpage.cxx b/sc/source/ui/formdlg/funcpage.cxx
index 2dd62ef44a51..4d2570d5f4d1 100644
--- a/sc/source/ui/formdlg/funcpage.cxx
+++ b/sc/source/ui/formdlg/funcpage.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: funcpage.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -58,10 +58,6 @@
//============================================================================
-ScListBox::ScListBox( Window* pParent, WinBits nWinStyle):
- ListBox(pParent,nWinStyle)
-{}
-
ScListBox::ScListBox( Window* pParent, const ResId& rResId ):
ListBox(pParent,rResId)
{}
diff --git a/sc/source/ui/formdlg/funcutl.cxx b/sc/source/ui/formdlg/funcutl.cxx
index cff70fc6e43a..de498880aab6 100644
--- a/sc/source/ui/formdlg/funcutl.cxx
+++ b/sc/source/ui/formdlg/funcutl.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: funcutl.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.9.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -345,46 +345,6 @@ void ArgInput::SetArgSelection (const Selection& rSel )
}
/*************************************************************************
-#* Member: SetArgSelection Datum:13.01.97
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ArgInput
-#*
-#* Funktion: Liefert die Selection fuer die EditBox zurueck.
-#*
-#* Input: String
-#*
-#* Output: ---
-#*
-#************************************************************************/
-Selection ArgInput::GetArgSelection ()
-{
- Selection aSel;
- if(pEdArg !=NULL) aSel=pEdArg ->GetSelection();
- return aSel;
-}
-
-/*************************************************************************
-#* Member: SetArgSelection Datum:13.01.97
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ArgInput
-#*
-#* Funktion: Ersetzt die Selection in der EditBox.
-#*
-#* Input: String
-#*
-#* Output: ---
-#*
-#************************************************************************/
-void ArgInput::ReplaceSelOfArg(const String& rStr )
-{
- if(pEdArg !=NULL) pEdArg ->ReplaceSelected(rStr );
-}
-
-
-
-/*************************************************************************
#* Member: SetArgVal Datum:13.01.97
#*------------------------------------------------------------------------
#*
@@ -712,29 +672,6 @@ IMPL_LINK( ArgInput, EdModifyHdl,ArgEdit*, pEd )
#*
#* Funktion: Konstruktor der Klasse ArgInput
#*
-#* Input: Parent, Window-Style
-#*
-#* Output: ---
-#*
-#************************************************************************/
-ScEditBox::ScEditBox( Window* pParent,WinBits nWinStyle)
- :Control(pParent,nWinStyle|WB_DIALOGCONTROL)
-{
- pMEdit=new MultiLineEdit(this,WB_LEFT | WB_VSCROLL | nWinStyle & WB_TABSTOP|
- WB_NOBORDER | WB_NOHIDESELECTION |WB_IGNORETAB);
-
- pMEdit->Show();
- aOldSel=pMEdit->GetSelection();
-}
-
-/*************************************************************************
-#* Member: ScEditBox Datum:20.01.97
-#*------------------------------------------------------------------------
-#*
-#* Klasse: ScEditBox
-#*
-#* Funktion: Konstruktor der Klasse ArgInput
-#*
#* Input: Parent, Resource
#*
#* Output: ---
diff --git a/sc/source/ui/inc/AccessibleContextBase.hxx b/sc/source/ui/inc/AccessibleContextBase.hxx
index 8d1c788fb5ee..9460ade94421 100644
--- a/sc/source/ui/inc/AccessibleContextBase.hxx
+++ b/sc/source/ui/inc/AccessibleContextBase.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleContextBase.hxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.23.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -303,9 +303,6 @@ public:
ChangeName();
protected:
- /// Calls all Listener to tell they that the object is now DEFUNC
- void CommitDefunc() const;
-
/// Calls all FocusListener to tell they that the focus is gained.
void CommitFocusGained() const;
diff --git a/sc/source/ui/inc/AccessibleCsvControl.hxx b/sc/source/ui/inc/AccessibleCsvControl.hxx
index 42da32680492..d7fc64c75562 100644
--- a/sc/source/ui/inc/AccessibleCsvControl.hxx
+++ b/sc/source/ui/inc/AccessibleCsvControl.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleCsvControl.hxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.15.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -136,8 +136,6 @@ protected:
/** Disposes the object. This is a helper called from destructors only. */
void implDispose();
- /** Converts the screen position rPos to a position relative to this control. */
- Point implGetRelPos( const Point& rPos ) const;
/** Converts the control-relative position to an absolute screen position. */
Point implGetAbsPos( const Point& rPos ) const;
};
diff --git a/sc/source/ui/inc/AccessiblePreviewCell.hxx b/sc/source/ui/inc/AccessiblePreviewCell.hxx
index 0a04af6eff43..1920d75f3671 100644
--- a/sc/source/ui/inc/AccessiblePreviewCell.hxx
+++ b/sc/source/ui/inc/AccessiblePreviewCell.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessiblePreviewCell.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -115,9 +115,6 @@ private:
sal_Bool IsOpaque(
const com::sun::star::uno::Reference<
::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
- sal_Bool IsSelected(
- const com::sun::star::uno::Reference<
- ::com::sun::star::accessibility::XAccessibleStateSet>& rxParentStates);
void CreateTextHelper();
diff --git a/sc/source/ui/inc/AccessibleText.hxx b/sc/source/ui/inc/AccessibleText.hxx
index 6369e18b48e8..63e263a12f8a 100644
--- a/sc/source/ui/inc/AccessibleText.hxx
+++ b/sc/source/ui/inc/AccessibleText.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: AccessibleText.hxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.19.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -204,7 +204,7 @@ public:
virtual SvxViewForwarder* GetViewForwarder();
virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; }
- DECL_LINK( NotifyHdl, EENotify* );
+//UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* );
private:
ScPreviewViewForwarder* mpViewForwarder;
ScPreviewShell* mpViewShell;
@@ -234,7 +234,7 @@ public:
virtual SvxViewForwarder* GetViewForwarder();
virtual SvxEditViewForwarder* GetEditViewForwarder( sal_Bool /* bCreate */ ) { return NULL; }
- DECL_LINK( NotifyHdl, EENotify* );
+//UNUSED2008-05 DECL_LINK( NotifyHdl, EENotify* );
private:
ScPreviewViewForwarder* mpViewForwarder;
ScPreviewShell* mpViewShell;
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index 3ebb37c99e59..7986935ae9c3 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: acredlin.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -176,7 +176,7 @@ private:
void Init();
void InitFilter();
- void SetMyStaticData();
+//UNUSED2008-05 void SetMyStaticData();
DECL_LINK( FilterHandle, SvxTPFilter* );
DECL_LINK( RefHandle, SvxTPFilter* );
diff --git a/sc/source/ui/inc/anyrefdg.hxx b/sc/source/ui/inc/anyrefdg.hxx
index 8dcd932894b1..c95a75a6ec8f 100644
--- a/sc/source/ui/inc/anyrefdg.hxx
+++ b/sc/source/ui/inc/anyrefdg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: anyrefdg.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -81,7 +81,7 @@ public:
void StartUpdateData();
- void SilentGrabFocus(); // does not update any references
+//UNUSED2008-05 void SilentGrabFocus(); // does not update any references
void SetRefDialog( ScAnyRefDlg* pDlg );
inline ScAnyRefDlg* GetRefDialog() { return pAnyRefDlg; }
diff --git a/sc/source/ui/inc/conflictsdlg.hxx b/sc/source/ui/inc/conflictsdlg.hxx
index 9c26e94486c6..98a622097781 100644
--- a/sc/source/ui/inc/conflictsdlg.hxx
+++ b/sc/source/ui/inc/conflictsdlg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: conflictsdlg.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -85,7 +85,7 @@ private:
static void Transform_Impl( ScChangeActionList& rActionList, ScChangeActionMergeMap* pMergeMap );
public:
- static bool HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction );
+//UNUSED2008-05 static bool HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction );
static bool HasOwnAction( ScConflictsList& rConflictsList, ULONG nOwnAction );
static ScConflictsListEntry* GetSharedActionEntry( ScConflictsList& rConflictsList, ULONG nSharedAction );
@@ -151,11 +151,11 @@ class ScConflictsListBox: public SvxRedlinTable
private:
public:
- ScConflictsListBox( Window* pParent, WinBits nBits = WB_BORDER );
+//UNUSED2008-05 ScConflictsListBox( Window* pParent, WinBits nBits = WB_BORDER );
ScConflictsListBox( Window* pParent, const ResId& rResId );
~ScConflictsListBox();
- ULONG GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const;
+//UNUSED2008-05 ULONG GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const;
};
//=============================================================================
diff --git a/sc/source/ui/inc/content.hxx b/sc/source/ui/inc/content.hxx
index 0441299c1503..0553cee15d29 100644
--- a/sc/source/ui/inc/content.hxx
+++ b/sc/source/ui/inc/content.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: content.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -113,7 +113,7 @@ class ScContentTree : public SvTreeListBox
ULONG GetChildIndex( SvLBoxEntry* pEntry ) const;
void DoDrag();
- void AdjustTitle();
+//UNUSED2008-05 void AdjustTitle();
ScDocument* GetSourceDocument();
diff --git a/sc/source/ui/inc/dapitype.hxx b/sc/source/ui/inc/dapitype.hxx
index 29263935ca6e..577a78158a60 100644
--- a/sc/source/ui/inc/dapitype.hxx
+++ b/sc/source/ui/inc/dapitype.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dapitype.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -57,7 +57,6 @@ public:
ScDataPilotSourceTypeDlg( Window* pParent, BOOL bEnableExternal );
~ScDataPilotSourceTypeDlg();
- BOOL IsSelection() const;
BOOL IsDatabase() const;
BOOL IsExternal() const;
};
diff --git a/sc/source/ui/inc/dbfunc.hxx b/sc/source/ui/inc/dbfunc.hxx
index cebcb797e50b..237aec789b4d 100644
--- a/sc/source/ui/inc/dbfunc.hxx
+++ b/sc/source/ui/inc/dbfunc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbfunc.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.11.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -55,7 +55,7 @@ private:
public:
ScDBFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell );
- ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell );
+//UNUSED2008-05 ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell );
~ScDBFunc();
// nur UISort wiederholt bei Bedarf die Teilergebnisse
diff --git a/sc/source/ui/inc/docfunc.hxx b/sc/source/ui/inc/docfunc.hxx
index 0dbfb41677f1..3550fa157b24 100644
--- a/sc/source/ui/inc/docfunc.hxx
+++ b/sc/source/ui/inc/docfunc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docfunc.hxx,v $
- * $Revision: 1.19 $
+ * $Revision: 1.18.30.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/source/ui/inc/docsh.hxx b/sc/source/ui/inc/docsh.hxx
index 98f9d0c6b856..f18bf55b705c 100644
--- a/sc/source/ui/inc/docsh.hxx
+++ b/sc/source/ui/inc/docsh.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docsh.hxx,v $
- * $Revision: 1.50 $
+ * $Revision: 1.50.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -59,7 +59,9 @@ class INetURLObject;
class ScPaintItem;
class ScViewData;
class ScDocFunc;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivot;
+#endif
class ScDrawLayer;
class ScTabViewShell;
class ScSbxDocHelper;
@@ -133,15 +135,10 @@ class SC_DLLPUBLIC ScDocShell: public SfxObjectShell, public SfxListener
SC_DLLPRIVATE void InitOptions();
SC_DLLPRIVATE void ResetDrawObjectShell();
- SC_DLLPRIVATE BOOL GetTabParam( const SfxItemSet* pArgs, USHORT nId, SCTAB& rTab );
- //BOOL LoadCalc( SotStorage* pStor );
- //BOOL SaveCalc( SotStorage* pStor );
SC_DLLPRIVATE BOOL LoadXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
SC_DLLPRIVATE BOOL SaveXML( SfxMedium* pMedium, const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& );
SC_DLLPRIVATE SCTAB GetSaveTab();
- SC_DLLPRIVATE void RemoveUnknownObjects();
-
SC_DLLPRIVATE ULONG DBaseImport( const String& rFullFileName, CharSet eCharSet,
BOOL bSimpleColWidth[MAXCOLCOUNT] );
SC_DLLPRIVATE ULONG DBaseExport( const String& rFullFileName, CharSet eCharSet,
@@ -281,8 +278,10 @@ public:
BOOL AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab );
void UpdateAllRowHeights();
+#if OLD_PIVOT_IMPLEMENTATION
void PivotUpdate( ScPivot* pOldPivot, ScPivot* pNewPivot,
BOOL bRecord = TRUE, BOOL bApi = FALSE );
+#endif
void RefreshPivotTables( const ScRange& rSource );
void DoConsolidate( const ScConsolidateParam& rParam, BOOL bRecord = TRUE );
void UseScenario( SCTAB nTab, const String& rName, BOOL bRecord = TRUE );
diff --git a/sc/source/ui/inc/drawview.hxx b/sc/source/ui/inc/drawview.hxx
index d3e755270b89..dab0396e464f 100644
--- a/sc/source/ui/inc/drawview.hxx
+++ b/sc/source/ui/inc/drawview.hxx
@@ -67,7 +67,6 @@ protected:
public:
ScDrawView( OutputDevice* pOut, ScViewData* pData );
- ScDrawView( OutputDevice* pOut, ScDocument* pDocument, SCTAB nTable );
virtual ~ScDrawView();
virtual void MarkListHasChanged();
@@ -112,7 +111,7 @@ public:
void SetMarkedOriginalSize();
BOOL SelectObject( const String& rName );
- String GetSelectedChartName() const;
+//UNUSED2008-05 String GetSelectedChartName() const;
BOOL HasMarkedControl() const;
FASTBOOL InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions=0);
diff --git a/sc/source/ui/inc/editable.hxx b/sc/source/ui/inc/editable.hxx
index 737cb0a0ac68..d1bb36b786bf 100644
--- a/sc/source/ui/inc/editable.hxx
+++ b/sc/source/ui/inc/editable.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editable.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -80,8 +80,6 @@ public:
void TestSelection( ScDocument* pDoc, const ScMarkData& rMark );
void TestView( ScViewFunc* pView );
- void Reset();
-
BOOL IsEditable() const { return bIsEditable; }
BOOL IsFormatEditable() const { return bIsEditable || bOnlyMatrix; }
USHORT GetMessageId() const;
diff --git a/sc/source/ui/inc/editfield.hxx b/sc/source/ui/inc/editfield.hxx
index bf738d3142f4..2dbbdec9b012 100644
--- a/sc/source/ui/inc/editfield.hxx
+++ b/sc/source/ui/inc/editfield.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editfield.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -39,7 +39,6 @@
class ScDoubleField : public Edit
{
public:
- explicit ScDoubleField( Window* pParent, WinBits nStyle = WB_BORDER );
explicit ScDoubleField( Window* pParent, const ResId& rResId );
bool GetValue( double& rfValue ) const;
diff --git a/sc/source/ui/inc/expftext.hxx b/sc/source/ui/inc/expftext.hxx
index 871a9aed8881..e8456ff4ed60 100644
--- a/sc/source/ui/inc/expftext.hxx
+++ b/sc/source/ui/inc/expftext.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: expftext.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -41,8 +41,6 @@ class SC_DLLPUBLIC ScExpandedFixedText: public FixedText
void RequestHelp( const HelpEvent& rHEvt );
public:
-
- ScExpandedFixedText( Window* pParent,WinBits nWinStyle = 0);
ScExpandedFixedText( Window* pWindow, const ResId& rResId);
};
diff --git a/sc/source/ui/inc/formatsh.hxx b/sc/source/ui/inc/formatsh.hxx
index 76664f2ac674..85ea4b71d88d 100644
--- a/sc/source/ui/inc/formatsh.hxx
+++ b/sc/source/ui/inc/formatsh.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formatsh.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -71,9 +71,6 @@ public:
void ExecuteStyle( SfxRequest& rReq );
void GetStyleState( SfxItemSet& rSet );
- void ExecBckCol( SfxRequest& rReq );
- void GetBckColState( SfxItemSet& rSet );
-
void ExecuteTextDirection( SfxRequest& rReq );
void GetTextDirectionState( SfxItemSet& rSet );
diff --git a/sc/source/ui/inc/formdata.hxx b/sc/source/ui/inc/formdata.hxx
index 9267e5ce1fc6..d47b7d7fb69a 100644
--- a/sc/source/ui/inc/formdata.hxx
+++ b/sc/source/ui/inc/formdata.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formdata.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -46,7 +46,6 @@ public:
~ScFormEditData();
void SaveValues();
- void RestoreValues();
BOOL HasParent() const { return pParent != NULL; }
USHORT GetMode() const { return nMode; }
diff --git a/sc/source/ui/inc/formula.hxx b/sc/source/ui/inc/formula.hxx
index 18c86a4452c2..3078ee1453f2 100644
--- a/sc/source/ui/inc/formula.hxx
+++ b/sc/source/ui/inc/formula.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formula.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -181,8 +181,6 @@ private:
void FillDialog(BOOL nFlag=TRUE);
void EditNextFunc( BOOL bForward, xub_StrLen nFStart=NOT_FOUND );
void EditThisFunc(xub_StrLen nFStart);
- void EditFuncParas(xub_StrLen nEditPos);
-
void UpdateArgInput( USHORT nOffset, USHORT nInput );
BOOL CalcValue( const String& rStrExp, String& rStrResult );
@@ -192,8 +190,7 @@ private:
void SaveArg( USHORT nEd );
void UpdateSelection();
void DoEnter( BOOL bOk );
- void UpdateFunctionDesc();
- void ResizeArgArr( const ScFuncDesc* pNewFunc );
+//UNUSED2008-05 void ResizeArgArr( const ScFuncDesc* pNewFunc );
void FillListboxes();
void FillControls();
@@ -202,7 +199,7 @@ private:
ScRefEdit* GetCurrRefEdit();
- DECL_LINK( ScrollHdl, ScParaWin* );
+//UNUSED2008-05 DECL_LINK( ScrollHdl, ScParaWin* );
DECL_LINK( ModifyHdl, ScParaWin* );
DECL_LINK( FxHdl, ScParaWin* );
diff --git a/sc/source/ui/inc/funcpage.hxx b/sc/source/ui/inc/funcpage.hxx
index f64342998713..753000e290ab 100644
--- a/sc/source/ui/inc/funcpage.hxx
+++ b/sc/source/ui/inc/funcpage.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: funcpage.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -72,10 +72,7 @@ protected:
virtual long PreNotify( NotifyEvent& rNEvt );
public:
- ScListBox( Window* pParent, WinBits nWinStyle = WB_BORDER );
-
ScListBox( Window* pParent, const ResId& rResId );
-
};
diff --git a/sc/source/ui/inc/funcutl.hxx b/sc/source/ui/inc/funcutl.hxx
index 013820da77b9..892f2cb60be8 100644
--- a/sc/source/ui/inc/funcutl.hxx
+++ b/sc/source/ui/inc/funcutl.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: funcutl.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -82,8 +82,6 @@ protected:
public:
- ScEditBox( Window* pParent,
- WinBits nWinStyle = WB_LEFT | WB_BORDER );
ScEditBox( Window* pParent, const ResId& rResId );
~ScEditBox();
@@ -172,10 +170,6 @@ public:
String GetArgVal();
void SetArgSelection (const Selection& rSel );
- void ReplaceSelOfArg (const String& rStr );
-
- Selection GetArgSelection();
-
ArgEdit* GetArgEdPtr() {return pEdArg;}
diff --git a/sc/source/ui/inc/gridwin.hxx b/sc/source/ui/inc/gridwin.hxx
index c151110b9563..c111ee23a7e1 100644
--- a/sc/source/ui/inc/gridwin.hxx
+++ b/sc/source/ui/inc/gridwin.hxx
@@ -44,7 +44,9 @@
struct ScTableInfo;
class ScViewSelectionEngine;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivot;
+#endif
class ScDPObject;
class ScOutputData;
class ScFilterListBox;
@@ -168,11 +170,13 @@ private:
BYTE nMouseStatus;
BYTE nNestedButtonState; // track nested button up/down calls
+#if OLD_PIVOT_IMPLEMENTATION
BOOL bPivotMouse; // Pivot-D&D (alte Pivottabellen)
ScPivot* pDragPivot;
BOOL bPivotColField;
SCCOL nPivotCol;
SCCOL nPivotField;
+#endif
BOOL bDPMouse; // DataPilot-D&D (neue Pivottabellen)
long nDPField;
@@ -231,10 +235,12 @@ private:
BOOL DoPageFieldSelection( SCCOL nCol, SCROW nRow );
void DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt );
+#if OLD_PIVOT_IMPLEMENTATION
void PivotMouseMove( const MouseEvent& rMEvt );
void PivotMouseButtonUp( const MouseEvent& rMEvt );
BOOL PivotTestMouse( const MouseEvent& rMEvt, BOOL bMove );
void DoPivotDrop( BOOL bDelete, BOOL bToCols, SCSIZE nDestPos );
+#endif
void DPMouseMove( const MouseEvent& rMEvt );
void DPMouseButtonUp( const MouseEvent& rMEvt );
@@ -282,7 +288,6 @@ private:
void DrawSdrGrid( const Rectangle& rDrawingRect, OutputDevice* pContentDev );
//BOOL DrawBeforeScroll();
void DrawAfterScroll(/*BOOL bVal*/);
- void OutlinerViewPaint( const Rectangle& rRect );
//void DrawMarks();
//BOOL NeedDrawMarks();
void DrawComboButton( const Point& rCellPos,
@@ -377,11 +382,7 @@ public:
void InvertSimple( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
BOOL bTestMerge = FALSE, BOOL bRepeat = FALSE );
- void DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
-
- void DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
- SCCOL nRefEndX, SCROW nRefEndY,
- const Color& rColor, BOOL bHandle );
+//UNUSED2008-05 void DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 );
void CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddress);
diff --git a/sc/source/ui/inc/groupdlg.hxx b/sc/source/ui/inc/groupdlg.hxx
index a4baaa0f3434..ec721bb117c4 100644
--- a/sc/source/ui/inc/groupdlg.hxx
+++ b/sc/source/ui/inc/groupdlg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: groupdlg.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -47,7 +47,6 @@ public:
BOOL bRows = TRUE );
~ScGroupDlg();
- BOOL GetRowsChecked() const;
BOOL GetColsChecked() const;
private:
diff --git a/sc/source/ui/inc/inputhdl.hxx b/sc/source/ui/inc/inputhdl.hxx
index 9a4a8391ac5a..f02d8be298e1 100644
--- a/sc/source/ui/inc/inputhdl.hxx
+++ b/sc/source/ui/inc/inputhdl.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputhdl.hxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -122,7 +122,6 @@ private:
#ifdef _INPUTHDL_CXX
private:
void UpdateActiveView();
- void SetAllUpdateMode( BOOL bUpdate );
void SyncViews( EditView* pSourceView = NULL );
BOOL StartTable( sal_Unicode cTyped, BOOL bFromCommand );
void RemoveSelection();
@@ -233,9 +232,6 @@ public:
BOOL IsModalMode( SfxObjectShell* pDocSh );
- void ActivateInputWindow( const String& rText,
- const ESelection& rSel );
-
void ForgetLastPattern();
void UpdateSpellSettings( BOOL bFromStartTab = FALSE );
diff --git a/sc/source/ui/inc/inputwin.hxx b/sc/source/ui/inc/inputwin.hxx
index 7b06d19d479b..3b448f30f67f 100644
--- a/sc/source/ui/inc/inputwin.hxx
+++ b/sc/source/ui/inc/inputwin.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputwin.hxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.17.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -166,7 +166,6 @@ public:
void SetFuncString( const String& rString, BOOL bDoEdit = TRUE );
void SetPosString( const String& rStr );
void SetTextString( const String& rString );
- const String& GetTextString();
void SetOkCancelMode();
void SetSumAssignMode();
@@ -176,8 +175,8 @@ public:
BOOL IsInputActive();
EditView* GetEditView();
- EditView* ActivateEdit( const String& rText,
- const ESelection& rSel );
+//UNUSED2008-05 EditView* ActivateEdit( const String& rText,
+//UNUSED2008-05 const ESelection& rSel );
void TextGrabFocus();
void TextInvalidate();
diff --git a/sc/source/ui/inc/lbseldlg.hxx b/sc/source/ui/inc/lbseldlg.hxx
index 48544c4f90d1..786d51a6e720 100644
--- a/sc/source/ui/inc/lbseldlg.hxx
+++ b/sc/source/ui/inc/lbseldlg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lbseldlg.hxx,v $
- * $Revision: 1.4 $
+ * $Revision: 1.4.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -64,7 +64,7 @@ public:
~ScSelEntryDlg();
String GetSelectEntry() const;
- USHORT GetSelectEntryPos() const;
+//UNUSED2008-05 USHORT GetSelectEntryPos() const;
};
diff --git a/sc/source/ui/inc/navipi.hxx b/sc/source/ui/inc/navipi.hxx
index cea58870bbfd..c59c3163e252 100644
--- a/sc/source/ui/inc/navipi.hxx
+++ b/sc/source/ui/inc/navipi.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: navipi.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -281,8 +281,6 @@ private:
SfxBindings& GetBindings()
{ return rBindings; }
- BOOL GetDBAtCursor( String& rStrName );
- BOOL GetAreaAtCursor( String& rStrName );
void SetCurrentCell( SCCOL nCol, SCROW Row );
void SetCurrentCellStr( const String rName );
diff --git a/sc/source/ui/inc/olinewin.hxx b/sc/source/ui/inc/olinewin.hxx
index 7fea000fbeb7..d69d945b12e5 100644
--- a/sc/source/ui/inc/olinewin.hxx
+++ b/sc/source/ui/inc/olinewin.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: olinewin.hxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -220,8 +220,6 @@ private:
/** Erases the focus rectangle from the focused button. */
void HideFocus();
- /** Scrolls the window in entry-relative direction. */
- void ScrollRel( long nEntryDiff );
/** Scrolls the specified range of the window in entry-relative direction. */
void ScrollRel( long nEntryDiff, long nEntryStart, long nEntryEnd );
diff --git a/sc/source/ui/inc/output.hxx b/sc/source/ui/inc/output.hxx
index 18e0eb7c5694..da70a3465dc6 100644
--- a/sc/source/ui/inc/output.hxx
+++ b/sc/source/ui/inc/output.hxx
@@ -155,7 +155,6 @@ private:
void GetVisibleCell( SCCOL nCol, SCROW nRow, SCTAB nTab, ScBaseCell*& rpCell );
BOOL IsAvailable( SCCOL nX, SCROW nY );
- long GetAvailableWidth( SCCOL nX, SCROW nY, long nNeeded );
void GetOutputArea( SCCOL nX, SCSIZE nArrY, long nPosX, long nPosY,
SCCOL nCellX, SCROW nCellY, long nNeeded,
const ScPatternAttr& rPattern,
@@ -173,8 +172,6 @@ private:
void SetSyntaxColor( Font* pFont, ScBaseCell* pCell );
void SetEditSyntaxColor( EditEngine& rEngine, ScBaseCell* pCell );
- void ConnectObject( const com::sun::star::uno::Reference < com::sun::star::embed::XEmbeddedObject >& rRef, SdrOle2Obj* pOleObj );
-
double GetStretch();
void DrawRotatedFrame( const Color* pForceColor ); // pixel
@@ -232,7 +229,6 @@ public:
void DrawRotated(BOOL bPixelToLogic); // logisch
void DrawClear();
- void DrawPageBorder( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY );
// #i72502# printer only command set
Point PrePrintDrawingLayer(long nLogStX, long nLogStY );
@@ -260,7 +256,6 @@ public:
void DrawNoteMarks();
void AddPDFNotes();
- void PrintNoteMarks( const List& rPosList ); // List of ScAddress
};
diff --git a/sc/source/ui/inc/prevloc.hxx b/sc/source/ui/inc/prevloc.hxx
index d2041a39f630..0d2e4411c9b4 100644
--- a/sc/source/ui/inc/prevloc.hxx
+++ b/sc/source/ui/inc/prevloc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prevloc.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -104,7 +104,7 @@ class ScPreviewLocationData
SCTAB nPrintTab;
List aEntries;
- ScAddress GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const;
+//UNUSED2008-05 ScAddress GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const;
Rectangle GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const;
public:
@@ -144,7 +144,6 @@ public:
// Check if any cells (including column/row headers) are in the visible area
BOOL HasCellsInRange( const Rectangle& rVisiblePixel ) const;
- BOOL GetCell( const Point& rPos, ScAddress& rCellPos, Rectangle& rCellRect ) const;
BOOL GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const;
// returns the rectangle where the EditEngine draws the text of a Header Cell
diff --git a/sc/source/ui/inc/prevwsh.hxx b/sc/source/ui/inc/prevwsh.hxx
index e06dd263d464..4f5da2bafe59 100644
--- a/sc/source/ui/inc/prevwsh.hxx
+++ b/sc/source/ui/inc/prevwsh.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prevwsh.hxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -96,10 +96,6 @@ public:
SFX_DECL_VIEWFACTORY(ScPreviewShell);
ScPreviewShell( SfxViewFrame* pViewFrame,
- const ScPreviewShell& rWin );
- ScPreviewShell( SfxViewFrame* pViewFrame,
- Window* pParent);
- ScPreviewShell( SfxViewFrame* pViewFrame,
SfxViewShell* pOldSh );
virtual ~ScPreviewShell();
diff --git a/sc/source/ui/inc/pvfundlg.hxx b/sc/source/ui/inc/pvfundlg.hxx
index c8588fc17a67..eeeb9c4094c4 100644
--- a/sc/source/ui/inc/pvfundlg.hxx
+++ b/sc/source/ui/inc/pvfundlg.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: pvfundlg.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -67,7 +67,6 @@ class ScDPFunctionListBox : public MultiListBox
{
public:
explicit ScDPFunctionListBox( Window* pParent, const ResId& rResId );
- explicit ScDPFunctionListBox( Window* pParent, WinBits nStyle = 0 );
void SetSelection( USHORT nFuncMask );
USHORT GetSelection() const;
diff --git a/sc/source/ui/inc/refundo.hxx b/sc/source/ui/inc/refundo.hxx
index 6db17cac457d..a796fcd611de 100644
--- a/sc/source/ui/inc/refundo.hxx
+++ b/sc/source/ui/inc/refundo.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refundo.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -37,7 +37,9 @@ class ScDocument;
class ScDBCollection;
class ScRangeName;
class ScPrintRangeSaver;
+#if OLD_PIVOT_IMPLEMENTATION
class ScPivotCollection;
+#endif
class ScDPCollection;
class ScChartCollection;
class ScConditionalFormatList;
@@ -52,7 +54,9 @@ private:
ScDBCollection* pDBCollection;
ScRangeName* pRangeName;
ScPrintRangeSaver* pPrintRanges;
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* pPivotCollection;
+#endif
ScDPCollection* pDPCollection;
ScConditionalFormatList* pCondFormList;
ScDetOpList* pDetOpList;
diff --git a/sc/source/ui/inc/simpref.hxx b/sc/source/ui/inc/simpref.hxx
index a85f61690516..7443dad543c8 100644
--- a/sc/source/ui/inc/simpref.hxx
+++ b/sc/source/ui/inc/simpref.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: simpref.hxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -117,8 +117,6 @@ public:
void SetFlags( BOOL bSetCloseOnButtonUp, BOOL bSetSingleCell, BOOL bSetMultiSelection );
void SetAutoReOpen(BOOL bFlag) {bAutoReOpen=bFlag;}
-
- static String GetLastRefString();
};
diff --git a/sc/source/ui/inc/tabview.hxx b/sc/source/ui/inc/tabview.hxx
index 17b3186b96e7..d6b7583808d8 100644
--- a/sc/source/ui/inc/tabview.hxx
+++ b/sc/source/ui/inc/tabview.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabview.hxx,v $
- * $Revision: 1.28 $
+ * $Revision: 1.28.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -271,7 +271,7 @@ public:
void DrawDeselectAll();
void DrawMarkListHasChanged();
void UpdateAnchorHandles();
- String GetSelectedChartName() const;
+//UNUSED2008-05 String GetSelectedChartName() const;
ScPageBreakData* GetPageBreakData() { return pPageBreakData; }
ScHighlightRanges* GetHighlightRanges() { return pHighlightRanges; }
@@ -311,7 +311,7 @@ public:
void UpdateRef( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ );
void StopRefMode();
- void EndSelection();
+//UNUSED2008-05 void EndSelection();
void StopMarking();
void FakeButtonUp( ScSplitPos eWhich );
@@ -321,12 +321,12 @@ public:
ScSplitPos FindWindow( Window* pWindow ) const;
void SetActivePointer( const Pointer& rPointer );
- void SetActivePointer( const ResId& rId );
+//UNUSED2008-05 void SetActivePointer( const ResId& rId );
void ActiveGrabFocus();
- void ActiveCaptureMouse();
- void ActiveReleaseMouse();
- Point ActivePixelToLogic( const Point& rDevicePoint );
+//UNUSED2008-05 void ActiveCaptureMouse();
+//UNUSED2008-05 void ActiveReleaseMouse();
+//UNUSED2008-05 Point ActivePixelToLogic( const Point& rDevicePoint );
void ClickCursor( SCCOL nPosX, SCROW nPosY, BOOL bControl );
@@ -417,20 +417,20 @@ public:
void InvertBlockMark(SCCOL nBlockStartX, SCROW nBlockStartY,
SCCOL nBlockEndX, SCROW nBlockEndY);
- void DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
- ScSplitPos ePos );
+//UNUSED2008-05 void DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
+//UNUSED2008-05 ScSplitPos ePos );
+//UNUSED2008-05 void PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab );
+//UNUSED2008-05 void PaintLeftRow( SCROW nRow );
+//UNUSED2008-05 void PaintTopCol( SCCOL nCol );
- void PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab );
void PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
ScUpdateMode eMode = SC_UPDATE_ALL );
void PaintGrid();
- void PaintTopCol( SCCOL nCol );
void PaintTopArea( SCCOL nStartCol, SCCOL nEndCol );
void PaintTop();
- void PaintLeftRow( SCROW nRow );
void PaintLeftArea( SCROW nStartRow, SCROW nEndRow );
void PaintLeft();
diff --git a/sc/source/ui/inc/tabvwsh.hxx b/sc/source/ui/inc/tabvwsh.hxx
index 2e67f8b568dc..e56675fc59b1 100644
--- a/sc/source/ui/inc/tabvwsh.hxx
+++ b/sc/source/ui/inc/tabvwsh.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwsh.hxx,v $
- * $Revision: 1.31 $
+ * $Revision: 1.30.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -168,7 +168,7 @@ private:
SbxObject* pScSbxObject;
- BOOL bChartDlgIsEdit; // Datenbereich aendern
+//UNUSED2008-05 BOOL bChartDlgIsEdit; // Datenbereich aendern
BOOL bChartAreaValid; // wenn Chart aufgezogen wird
String aEditChartName;
ScRangeListRef aChartSource;
@@ -184,7 +184,7 @@ private:
private:
SC_DLLPRIVATE void Construct( BYTE nForceDesignMode = SC_FORCEMODE_NONE );
- SC_DLLPRIVATE void SetMySubShell( SfxShell* pShell );
+//UNUSED2008-05 SC_DLLPRIVATE void SetMySubShell( SfxShell* pShell );
SC_DLLPRIVATE SfxShell* GetMySubShell() const;
SC_DLLPRIVATE void DoReadUserData( const String& rData );
@@ -239,8 +239,8 @@ public:
// -> Clone-Methode fuer Factory
- ScTabViewShell( SfxViewFrame* pViewFrame,
- const ScTabViewShell& rWin );
+//UNUSED2008-05 ScTabViewShell( SfxViewFrame* pViewFrame,
+//UNUSED2008-05 const ScTabViewShell& rWin );
// aus einer allgemeinen Shell konstruieren und
// soviel wie moeglich uebernehmen (SliderPos etc.):
@@ -265,8 +265,8 @@ public:
SvxBorderLine* GetDefaultFrameLine() const { return pCurFrameLine; }
void SetDefaultFrameLine(const SvxBorderLine* pLine );
- void ExecuteShowNIY( SfxRequest& rReq );
- void StateDisabled( SfxItemSet& rSet );
+//UNUSED2008-05 void ExecuteShowNIY( SfxRequest& rReq );
+//UNUSED2008-05 void StateDisabled( SfxItemSet& rSet );
void Execute( SfxRequest& rReq );
void GetState( SfxItemSet& rSet );
@@ -348,15 +348,15 @@ public:
void FillFieldData( ScHeaderFieldData& rData );
- void ResetChartArea();
+//UNUSED2008-05 void ResetChartArea();
void SetChartArea( const ScRangeListRef& rSource, const Rectangle& rDest );
BOOL GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const;
- BOOL IsChartDlgEdit() const;
- void SetChartDlgEdit(BOOL bFlag){bChartDlgIsEdit=bFlag;}
+//UNUSED2008-05 BOOL IsChartDlgEdit() const;
+//UNUSED2008-05 void SetChartDlgEdit(BOOL bFlag){bChartDlgIsEdit=bFlag;}
void SetEditChartName(const String& aStr){aEditChartName=aStr;}
- const String& GetEditChartName() const;
+//UNUSED2008-05 const String& GetEditChartName() const;
virtual void SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBCType,
const SfxHint& rHint, const TypeId& rHintType );
@@ -376,8 +376,6 @@ public:
BOOL bSilent, BOOL bIsAPI );
virtual USHORT Print( SfxProgress& rProgress, BOOL bIsAPI, PrintDialog* pPrintDialog = NULL );
- void TestFunction( USHORT nPar );
-
void ConnectObject( SdrOle2Obj* pObj );
BOOL ActivateObject( SdrOle2Obj* pObj, long nVerb );
diff --git a/sc/source/ui/inc/uiitems.hxx b/sc/source/ui/inc/uiitems.hxx
index 467a7a3c593b..868e772a2e68 100644
--- a/sc/source/ui/inc/uiitems.hxx
+++ b/sc/source/ui/inc/uiitems.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: uiitems.hxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -56,13 +56,14 @@ class ScInputStatusItem : public SfxPoolItem
public:
TYPEINFO();
- ScInputStatusItem( USHORT nWhich,
- SCTAB nTab,
- SCCOL nCol, SCROW nRow,
- SCCOL nStartCol, SCROW nStartRow,
- SCCOL nEndCol, SCROW nSEndRow,
- const String& rString,
- const EditTextObject* pData );
+//UNUSED2008-05 ScInputStatusItem( USHORT nWhich,
+//UNUSED2008-05 SCTAB nTab,
+//UNUSED2008-05 SCCOL nCol, SCROW nRow,
+//UNUSED2008-05 SCCOL nStartCol, SCROW nStartRow,
+//UNUSED2008-05 SCCOL nEndCol, SCROW nSEndRow,
+//UNUSED2008-05 const String& rString,
+//UNUSED2008-05 const EditTextObject* pData );
+
ScInputStatusItem( USHORT nWhich,
const ScAddress& rCurPos,
const ScAddress& rStartPos,
@@ -122,7 +123,6 @@ class ScEditViewHint : public SfxHint
public:
TYPEINFO();
- ScEditViewHint();
ScEditViewHint( ScEditEngineDefaulter* pEngine, const ScAddress& rCurPos );
~ScEditViewHint();
@@ -130,6 +130,9 @@ public:
SCROW GetRow() const { return aCursorPos.Row(); }
SCTAB GetTab() const { return aCursorPos.Tab(); }
ScEditEngineDefaulter* GetEngine() const { return pEditEngine; }
+
+private:
+ ScEditViewHint(); // disabled
};
class ScIndexHint : public SfxHint
diff --git a/sc/source/ui/inc/undodat.hxx b/sc/source/ui/inc/undodat.hxx
index d7fc3fbdf1ed..3e92fc5fd5fa 100644
--- a/sc/source/ui/inc/undodat.hxx
+++ b/sc/source/ui/inc/undodat.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undodat.hxx,v $
- * $Revision: 1.8 $
+ * $Revision: 1.8.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -408,41 +408,39 @@ private:
BOOL bQuerySize;
};
-
-class ScUndoPivot: public ScSimpleUndo
-{
-public:
- TYPEINFO();
- ScUndoPivot( ScDocShell* pNewDocShell,
- const ScArea& rOld, const ScArea& rNew,
- ScDocument* pOldDoc, ScDocument* pNewDoc,
- const ScPivot* pOldPivot, const ScPivot* pNewPivot );
- virtual ~ScUndoPivot();
-
- virtual void Undo();
- virtual void Redo();
- virtual void Repeat(SfxRepeatTarget& rTarget);
- virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
-
- virtual String GetComment() const;
-
-private:
- ScArea aOldArea;
- ScArea aNewArea;
- ScDocument* pOldUndoDoc;
- ScDocument* pNewUndoDoc;
- ScPivotParam aOldParam; // fuer Redo
- ScQueryParam aOldQuery;
- ScArea aOldSrc;
- ScPivotParam aNewParam; // fuer Undo in Collection
- ScQueryParam aNewQuery;
- ScArea aNewSrc;
- String aOldName;
- String aOldTag;
- String aNewName;
- String aNewTag;
-};
-
+//UNUSED2008-05 class ScUndoPivot: public ScSimpleUndo
+//UNUSED2008-05 {
+//UNUSED2008-05 public:
+//UNUSED2008-05 TYPEINFO();
+//UNUSED2008-05 ScUndoPivot( ScDocShell* pNewDocShell,
+//UNUSED2008-05 const ScArea& rOld, const ScArea& rNew,
+//UNUSED2008-05 ScDocument* pOldDoc, ScDocument* pNewDoc,
+//UNUSED2008-05 const ScPivot* pOldPivot, const ScPivot* pNewPivot );
+//UNUSED2008-05 virtual ~ScUndoPivot();
+//UNUSED2008-05
+//UNUSED2008-05 virtual void Undo();
+//UNUSED2008-05 virtual void Redo();
+//UNUSED2008-05 virtual void Repeat(SfxRepeatTarget& rTarget);
+//UNUSED2008-05 virtual BOOL CanRepeat(SfxRepeatTarget& rTarget) const;
+//UNUSED2008-05
+//UNUSED2008-05 virtual String GetComment() const;
+//UNUSED2008-05
+//UNUSED2008-05 private:
+//UNUSED2008-05 ScArea aOldArea;
+//UNUSED2008-05 ScArea aNewArea;
+//UNUSED2008-05 ScDocument* pOldUndoDoc;
+//UNUSED2008-05 ScDocument* pNewUndoDoc;
+//UNUSED2008-05 ScPivotParam aOldParam; // fuer Redo
+//UNUSED2008-05 ScQueryParam aOldQuery;
+//UNUSED2008-05 ScArea aOldSrc;
+//UNUSED2008-05 ScPivotParam aNewParam; // fuer Undo in Collection
+//UNUSED2008-05 ScQueryParam aNewQuery;
+//UNUSED2008-05 ScArea aNewSrc;
+//UNUSED2008-05 String aOldName;
+//UNUSED2008-05 String aOldTag;
+//UNUSED2008-05 String aNewName;
+//UNUSED2008-05 String aNewTag;
+//UNUSED2008-05 };
class ScUndoDataPilot: public ScSimpleUndo
{
diff --git a/sc/source/ui/inc/undotab.hxx b/sc/source/ui/inc/undotab.hxx
index fa0bac777588..ea2951eede5e 100644
--- a/sc/source/ui/inc/undotab.hxx
+++ b/sc/source/ui/inc/undotab.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undotab.hxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.10.28.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx
index b9e46aa658ec..709bd7898e22 100644
--- a/sc/source/ui/inc/viewdata.hxx
+++ b/sc/source/ui/inc/viewdata.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewdata.hxx,v $
- * $Revision: 1.24 $
+ * $Revision: 1.24.24.2 $
*
* This file is part of OpenOffice.org.
*
@@ -233,9 +233,9 @@ public:
~ScViewData();
void InitData( ScDocument* pDocument );
- void InitFrom( const ScViewData* pRef );
+//UNUSED2008-05 void InitFrom( const ScViewData* pRef );
+//UNUSED2008-05 void SetDocShell( ScDocShell* pShell );
- void SetDocShell( ScDocShell* pShell );
ScDocShell* GetDocShell() const { return pDocShell; }
ScDBFunc* GetView() const { return pView; }
@@ -444,11 +444,11 @@ public:
SCROW VisibleCellsY( ScVSplitPos eWhichY ) const;
SCCOL PrevCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der vorgehenden Seite
SCROW PrevCellsY( ScVSplitPos eWhichY ) const;
- SCCOL LastCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der letzten Seite
- SCROW LastCellsY( ScVSplitPos eWhichY ) const;
+//UNUSED2008-05 SCCOL LastCellsX( ScHSplitPos eWhichX ) const; // Zellen auf der letzten Seite
+//UNUSED2008-05 SCROW LastCellsY( ScVSplitPos eWhichY ) const;
BOOL IsOle();
- void UpdateOle( ScSplitPos eWhich );
+//UNUSED2008-05 void UpdateOle( ScSplitPos eWhich );
void SetScreen( SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2 );
void SetScreen( const Rectangle& rVisArea );
void SetScreenPos( const Point& rVisAreaStart );
diff --git a/sc/source/ui/inc/viewfunc.hxx b/sc/source/ui/inc/viewfunc.hxx
index 109464f47f6c..a0064570f6a0 100644
--- a/sc/source/ui/inc/viewfunc.hxx
+++ b/sc/source/ui/inc/viewfunc.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewfunc.hxx,v $
- * $Revision: 1.34 $
+ * $Revision: 1.34.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -83,7 +83,7 @@ private:
public:
ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewShell );
- ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell );
+//UNUSED2008-05 ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell );
~ScViewFunc();
const ScPatternAttr* GetSelectionPattern ();
@@ -299,10 +299,10 @@ public:
BOOL bColorOnly );
void SetNote( SCCOL nCol, SCROW nRow, SCTAB nTab, const ScPostIt& rNote );
- void DoSpellingChecker( BOOL bRecord = TRUE );
+//UNUSED2008-05 void DoSpellingChecker( BOOL bRecord = TRUE );
void DoHangulHanjaConversion( BOOL bRecord = TRUE );
void DoThesaurus( BOOL bRecord = TRUE );
- DECL_LINK( SpellError, void * );
+//UNUSED2008-05 DECL_LINK( SpellError, void * );
/** Generic implementation of sheet conversion functions. */
void DoSheetConversion( const ScConversionParam& rParam, BOOL bRecord = TRUE );
@@ -335,7 +335,7 @@ protected:
const SvxBorderLine* pSrcLine,
BOOL bColor );
- void PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd );
+//UNUSED2008-05 void PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd );
private:
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index 1da963c58005..65665ccf22be 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: acredlin.cxx,v $
- * $Revision: 1.25 $
+ * $Revision: 1.25.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -2040,9 +2040,9 @@ void ScAcceptChgDlg::InitFilter()
}
}
-void ScAcceptChgDlg::SetMyStaticData()
-{
-}
+//UNUSED2008-05 void ScAcceptChgDlg::SetMyStaticData()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
IMPL_LINK( ScAcceptChgDlg, FilterModified, SvxTPFilter*, EMPTYARG )
{
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index a2cffe56fb34..ea1e1a5b2066 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: anyrefdg.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.21.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -179,12 +179,12 @@ void ScRefEdit::StartUpdateData()
aTimer.Start();
}
-void ScRefEdit::SilentGrabFocus()
-{
- bSilentFocus = TRUE;
- GrabFocus();
- bSilentFocus = FALSE;
-}
+//UNUSED2008-05 void ScRefEdit::SilentGrabFocus()
+//UNUSED2008-05 {
+//UNUSED2008-05 bSilentFocus = TRUE;
+//UNUSED2008-05 GrabFocus();
+//UNUSED2008-05 bSilentFocus = FALSE;
+//UNUSED2008-05 }
void ScRefEdit::SetRefDialog( ScAnyRefDlg* pDlg )
{
diff --git a/sc/source/ui/miscdlgs/conflictsdlg.cxx b/sc/source/ui/miscdlgs/conflictsdlg.cxx
index 209829cad890..c0576c44e78b 100644
--- a/sc/source/ui/miscdlgs/conflictsdlg.cxx
+++ b/sc/source/ui/miscdlgs/conflictsdlg.cxx
@@ -79,19 +79,19 @@ bool ScConflictsListEntry::HasOwnAction( ULONG nOwnAction ) const
// class ScConflictsListHelper
//=============================================================================
-bool ScConflictsListHelper::HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction )
-{
- ScConflictsList::const_iterator aEnd = rConflictsList.end();
- for ( ScConflictsList::const_iterator aItr = rConflictsList.begin(); aItr != aEnd; ++aItr )
- {
- if ( aItr->HasSharedAction( nSharedAction ) )
- {
- return true;
- }
- }
-
- return false;
-}
+//UNUSED2008-05 bool ScConflictsListHelper::HasSharedAction( ScConflictsList& rConflictsList, ULONG nSharedAction )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScConflictsList::const_iterator aEnd = rConflictsList.end();
+//UNUSED2008-05 for ( ScConflictsList::const_iterator aItr = rConflictsList.begin(); aItr != aEnd; ++aItr )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( aItr->HasSharedAction( nSharedAction ) )
+//UNUSED2008-05 {
+//UNUSED2008-05 return true;
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return false;
+//UNUSED2008-05 }
bool ScConflictsListHelper::HasOwnAction( ScConflictsList& rConflictsList, ULONG nOwnAction )
{
@@ -433,10 +433,10 @@ void ScConflictsResolver::HandleAction( ScChangeAction* pAction, bool bIsSharedA
// class ScConflictsListBox
//=============================================================================
-ScConflictsListBox::ScConflictsListBox( Window* pParent, WinBits nBits )
- :SvxRedlinTable( pParent, nBits )
-{
-}
+//UNUSED2008-05 ScConflictsListBox::ScConflictsListBox( Window* pParent, WinBits nBits )
+//UNUSED2008-05 :SvxRedlinTable( pParent, nBits )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScConflictsListBox::ScConflictsListBox( Window* pParent, const ResId& rResId )
:SvxRedlinTable( pParent, rResId )
@@ -447,21 +447,21 @@ ScConflictsListBox::~ScConflictsListBox()
{
}
-ULONG ScConflictsListBox::GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const
-{
- ULONG nPos = 0;
- SvLBoxEntry* pEntry = GetRootLevelParent( First() );
- while ( pEntry )
- {
- if ( pEntry == pRootEntry )
- {
- return nPos;
- }
- pEntry = NextSibling( pEntry );
- ++nPos;
- }
- return 0xffffffff;
-}
+//UNUSED2008-05 ULONG ScConflictsListBox::GetRootEntryPos( const SvLBoxEntry* pRootEntry ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 ULONG nPos = 0;
+//UNUSED2008-05 SvLBoxEntry* pEntry = GetRootLevelParent( First() );
+//UNUSED2008-05 while ( pEntry )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( pEntry == pRootEntry )
+//UNUSED2008-05 {
+//UNUSED2008-05 return nPos;
+//UNUSED2008-05 }
+//UNUSED2008-05 pEntry = NextSibling( pEntry );
+//UNUSED2008-05 ++nPos;
+//UNUSED2008-05 }
+//UNUSED2008-05 return 0xffffffff;
+//UNUSED2008-05 }
//=============================================================================
diff --git a/sc/source/ui/miscdlgs/groupdlg.cxx b/sc/source/ui/miscdlgs/groupdlg.cxx
index 9f43fd50fa09..42f9cbec71ae 100644
--- a/sc/source/ui/miscdlgs/groupdlg.cxx
+++ b/sc/source/ui/miscdlgs/groupdlg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: groupdlg.cxx,v $
- * $Revision: 1.7 $
+ * $Revision: 1.7.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -71,13 +71,6 @@ ScGroupDlg::ScGroupDlg( Window* pParent,
//------------------------------------------------------------------------
-BOOL ScGroupDlg::GetRowsChecked() const
-{
- return aBtnRows.IsChecked();
-}
-
-//------------------------------------------------------------------------
-
BOOL ScGroupDlg::GetColsChecked() const
{
return aBtnCols.IsChecked();
diff --git a/sc/source/ui/miscdlgs/lbseldlg.cxx b/sc/source/ui/miscdlgs/lbseldlg.cxx
index 1af135c64a83..20827680fba2 100644
--- a/sc/source/ui/miscdlgs/lbseldlg.cxx
+++ b/sc/source/ui/miscdlgs/lbseldlg.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: lbseldlg.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -87,10 +87,10 @@ String ScSelEntryDlg::GetSelectEntry() const
//------------------------------------------------------------------------
-USHORT ScSelEntryDlg::GetSelectEntryPos() const
-{
- return aLb.GetSelectEntryPos();
-}
+//UNUSED2008-05 USHORT ScSelEntryDlg::GetSelectEntryPos() const
+//UNUSED2008-05 {
+//UNUSED2008-05 return aLb.GetSelectEntryPos();
+//UNUSED2008-05 }
//------------------------------------------------------------------------
diff --git a/sc/source/ui/miscdlgs/simpref.cxx b/sc/source/ui/miscdlgs/simpref.cxx
index 1a4853e3a293..05134f9bb114 100644
--- a/sc/source/ui/miscdlgs/simpref.cxx
+++ b/sc/source/ui/miscdlgs/simpref.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: simpref.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.11.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -63,8 +63,6 @@
#define ERRORBOX(s) ErrorBox(this,WinBits(WB_OK|WB_DEF_OK),s).Execute()
#define QUERYBOX(m) QueryBox(this,WinBits(WB_YES_NO|WB_DEF_YES),m).Execute()
-static String aPrivLastRefString;
-
//============================================================================
// class ScSimpleRefDlg
@@ -95,15 +93,11 @@ ScSimpleRefDlg::ScSimpleRefDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pP
Init();
FreeResource();
SetDispatcherLock( TRUE ); // Modal-Modus einschalten
-
- aPrivLastRefString=String();
}
//----------------------------------------------------------------------------
__EXPORT ScSimpleRefDlg::~ScSimpleRefDlg()
{
- aPrivLastRefString=aEdAssign.GetText();
-
SetDispatcherLock( FALSE ); // Modal-Modus einschalten
}
@@ -196,11 +190,6 @@ String ScSimpleRefDlg::GetRefString() const
return aEdAssign.GetText();
}
-String ScSimpleRefDlg::GetLastRefString()
-{
- return aPrivLastRefString;
-}
-
void ScSimpleRefDlg::SetCloseHdl( const Link& rLink )
{
aCloseHdl=rLink;
diff --git a/sc/source/ui/navipi/content.cxx b/sc/source/ui/navipi/content.cxx
index 0de4a2d74f26..42d4ff8ca494 100644
--- a/sc/source/ui/navipi/content.cxx
+++ b/sc/source/ui/navipi/content.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: content.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.25.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1294,16 +1294,16 @@ IMPL_STATIC_LINK(ScContentTree, ExecDragHdl, void*, EMPTYARG)
return 0;
}
-void ScContentTree::AdjustTitle()
-{
- String aTitle = pParentWindow->aTitleBase;
- if (bHiddenDoc)
- {
- aTitle.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " - " ));
- aTitle += aHiddenTitle;
- }
- pParentWindow->SetText(aTitle);
-}
+//UNUSED2008-05 void ScContentTree::AdjustTitle()
+//UNUSED2008-05 {
+//UNUSED2008-05 String aTitle = pParentWindow->aTitleBase;
+//UNUSED2008-05 if (bHiddenDoc)
+//UNUSED2008-05 {
+//UNUSED2008-05 aTitle.AppendAscii(RTL_CONSTASCII_STRINGPARAM( " - " ));
+//UNUSED2008-05 aTitle += aHiddenTitle;
+//UNUSED2008-05 }
+//UNUSED2008-05 pParentWindow->SetText(aTitle);
+//UNUSED2008-05 }
BOOL ScContentTree::LoadFile( const String& rUrl )
{
diff --git a/sc/source/ui/navipi/navipi.cxx b/sc/source/ui/navipi/navipi.cxx
index 49626161ceb3..257382c1c6f0 100644
--- a/sc/source/ui/navipi/navipi.cxx
+++ b/sc/source/ui/navipi/navipi.cxx
@@ -1008,56 +1008,6 @@ void ScNavigatorDlg::CursorPosChanged()
//------------------------------------------------------------------------
-BOOL ScNavigatorDlg::GetDBAtCursor( String& rStrName )
-{
- BOOL bFound = FALSE;
-
- if ( GetViewData() )
- {
- SCCOL nCol = aEdCol.GetCol();
- SCROW nRow = aEdRow.GetRow();
-
- if ( nCol > 0 && nRow > 0 )
- {
- ScDocument* pDoc = pViewData->GetDocument();
- ScDBData* pData = pDoc->GetDBAtCursor( nCol-1, nRow-1, pViewData->GetTabNo() );
-
- bFound = ( pData != NULL );
- if ( bFound )
- pData->GetName( rStrName );
- }
- }
-
- return bFound;
-}
-
-//------------------------------------------------------------------------
-
-BOOL ScNavigatorDlg::GetAreaAtCursor( String& rStrName )
-{
- BOOL bFound = FALSE;
-
- if ( GetViewData() )
- {
- SCCOL nCol = aEdCol.GetCol();
- SCROW nRow = aEdRow.GetRow();
-
- if ( nCol > 0 && nRow > 0 )
- {
- ScDocument* pDoc = pViewData->GetDocument();
- ScRangeData* pData = pDoc->GetRangeAtCursor( nCol-1, nRow-1, pViewData->GetTabNo() );
-
- bFound = ( pData != NULL );
- if ( bFound )
- pData->GetName( rStrName );
- }
- }
-
- return bFound;
-}
-
-//------------------------------------------------------------------------
-
void ScNavigatorDlg::SetCurrentCell( SCCOL nColNo, SCROW nRowNo )
{
if ( (nColNo+1 != nCurCol) || (nRowNo+1 != nCurRow) )
diff --git a/sc/source/ui/undo/refundo.cxx b/sc/source/ui/undo/refundo.cxx
index 9e7cfe572489..85bf65179bd8 100644
--- a/sc/source/ui/undo/refundo.cxx
+++ b/sc/source/ui/undo/refundo.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: refundo.cxx,v $
- * $Revision: 1.6 $
+ * $Revision: 1.6.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -66,8 +66,10 @@ ScRefUndoData::ScRefUndoData( const ScDocument* pDoc ) :
pPrintRanges = pDoc->CreatePrintRangeSaver(); // neu erzeugt
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* pOldPivot = pDoc->GetPivotCollection();
pPivotCollection = pOldPivot ? new ScPivotCollection(*pOldPivot) : NULL;
+#endif
//! bei Pivot nur Bereiche merken ???
ScDPCollection* pOldDP = ((ScDocument*)pDoc)->GetDPCollection(); //! const
@@ -94,7 +96,9 @@ ScRefUndoData::~ScRefUndoData()
delete pDBCollection;
delete pRangeName;
delete pPrintRanges;
+#if OLD_PIVOT_IMPLEMENTATION
delete pPivotCollection;
+#endif
delete pDPCollection;
delete pCondFormList;
delete pDetOpList;
@@ -126,12 +130,14 @@ void ScRefUndoData::DeleteUnchanged( const ScDocument* pDoc )
delete pNewRanges;
}
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
{
ScPivotCollection* pNewPivot = pDoc->GetPivotCollection();
if ( pNewPivot && *pPivotCollection == *pNewPivot )
DELETEZ(pPivotCollection);
}
+#endif
if (pDPCollection)
{
@@ -189,8 +195,10 @@ void ScRefUndoData::DoUndo( ScDocument* pDoc, BOOL bUndoRefFirst )
if (pPrintRanges)
pDoc->RestorePrintRanges(*pPrintRanges);
+#if OLD_PIVOT_IMPLEMENTATION
if (pPivotCollection)
pDoc->SetPivotCollection( new ScPivotCollection(*pPivotCollection) );
+#endif
if (pDPCollection)
{
diff --git a/sc/source/ui/undo/undoblk3.cxx b/sc/source/ui/undo/undoblk3.cxx
index 4d82dac2d51b..780b9c9f5247 100644
--- a/sc/source/ui/undo/undoblk3.cxx
+++ b/sc/source/ui/undo/undoblk3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undoblk3.cxx,v $
- * $Revision: 1.22 $
+ * $Revision: 1.22.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1580,7 +1580,6 @@ void __EXPORT ScUndoRefreshLink::Undo()
}
pDoc->DeleteAreaTab( aRange,IDF_ALL );
-// pDoc->ClearDrawPage(nTab);
pUndoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc );
// pDoc->TransferDrawPage( pUndoDoc, nTab, nTab );
pDoc->SetLink( nTab, pUndoDoc->GetLinkMode(nTab), pUndoDoc->GetLinkDoc(nTab),
@@ -1611,7 +1610,6 @@ void __EXPORT ScUndoRefreshLink::Redo()
ScRange aRange(0,0,nTab,MAXCOL,MAXROW,nTab);
pDoc->DeleteAreaTab( aRange, IDF_ALL );
-// pDoc->ClearDrawPage(nTab);
pRedoDoc->CopyToDocument( aRange, IDF_ALL, FALSE, pDoc );
// pDoc->TransferDrawPage( pRedoDoc, nTab, nTab );
pDoc->SetLink( nTab,
diff --git a/sc/source/ui/undo/undodat.cxx b/sc/source/ui/undo/undodat.cxx
index 3055726b7649..ab7350984a86 100644
--- a/sc/source/ui/undo/undodat.cxx
+++ b/sc/source/ui/undo/undodat.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undodat.cxx,v $
- * $Revision: 1.12 $
+ * $Revision: 1.12.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -74,7 +74,7 @@ TYPEINIT1(ScUndoAutoFilter, SfxUndoAction);
TYPEINIT1(ScUndoDBData, SfxUndoAction);
TYPEINIT1(ScUndoImportData, SfxUndoAction);
TYPEINIT1(ScUndoRepeatDB, SfxUndoAction);
-TYPEINIT1(ScUndoPivot, SfxUndoAction);
+//UNUSED2008-05 TYPEINIT1(ScUndoPivot, SfxUndoAction);
TYPEINIT1(ScUndoDataPilot, SfxUndoAction);
TYPEINIT1(ScUndoConsolidate, SfxUndoAction);
TYPEINIT1(ScUndoChartData, SfxUndoAction);
@@ -1629,164 +1629,163 @@ BOOL __EXPORT ScUndoRepeatDB::CanRepeat(SfxRepeatTarget& rTarget) const
return (rTarget.ISA(ScTabViewTarget));
}
-//
-// Pivot-Tabellen
-//
-
-ScUndoPivot::ScUndoPivot( ScDocShell* pNewDocShell,
- const ScArea& rOld, const ScArea& rNew,
- ScDocument* pOldDoc, ScDocument* pNewDoc,
- const ScPivot* pOldPivot, const ScPivot* pNewPivot ) :
- ScSimpleUndo( pNewDocShell ),
- aOldArea( rOld ),
- aNewArea( rNew ),
- pOldUndoDoc( pOldDoc ),
- pNewUndoDoc( pNewDoc )
-{
- if (pNewPivot)
- {
- pNewPivot->GetParam( aNewParam, aNewQuery, aNewSrc );
- aNewName = pNewPivot->GetName();
- aNewTag = pNewPivot->GetTag();
- }
- if (pOldPivot)
- {
- pOldPivot->GetParam( aOldParam, aOldQuery, aOldSrc );
- aOldName = pOldPivot->GetName();
- aOldTag = pOldPivot->GetTag();
- }
-}
-
-__EXPORT ScUndoPivot::~ScUndoPivot()
-{
- delete pOldUndoDoc;
- delete pNewUndoDoc;
-}
-
-String __EXPORT ScUndoPivot::GetComment() const
-{
- USHORT nIndex;
- if ( pOldUndoDoc && pNewUndoDoc )
- nIndex = STR_UNDO_PIVOT_MODIFY;
- else if ( pNewUndoDoc )
- nIndex = STR_UNDO_PIVOT_NEW;
- else
- nIndex = STR_UNDO_PIVOT_DELETE;
-
- return ScGlobal::GetRscString( nIndex );
-}
-
-void __EXPORT ScUndoPivot::Undo()
-{
- BeginUndo();
-
- ScDocument* pDoc = pDocShell->GetDocument();
-
- if (pNewUndoDoc)
- {
- pDoc->DeleteAreaTab( aNewArea.nColStart,aNewArea.nRowStart,
- aNewArea.nColEnd,aNewArea.nRowEnd, aNewArea.nTab, IDF_ALL );
- pNewUndoDoc->CopyToDocument( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab,
- aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab,
- IDF_ALL, FALSE, pDoc );
- }
- if (pOldUndoDoc)
- {
- pDoc->DeleteAreaTab( aOldArea.nColStart,aOldArea.nRowStart,
- aOldArea.nColEnd,aOldArea.nRowEnd, aOldArea.nTab, IDF_ALL );
- pOldUndoDoc->CopyToDocument( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab,
- aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab,
- IDF_ALL, FALSE, pDoc );
- }
-
- ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection();
- if ( pNewUndoDoc )
- {
- ScPivot* pNewPivot = pPivotCollection->GetPivotAtCursor(
- aNewParam.nCol, aNewParam.nRow, aNewParam.nTab );
- if (pNewPivot)
- pPivotCollection->Free( pNewPivot );
- }
- if ( pOldUndoDoc )
- {
- ScPivot* pOldPivot = new ScPivot( pDoc );
- pOldPivot->SetParam( aOldParam, aOldQuery, aOldSrc );
- pOldPivot->SetName( aOldName );
- pOldPivot->SetTag( aOldTag );
- if (pOldPivot->CreateData()) // Felder berechnen
- pOldPivot->ReleaseData();
- pPivotCollection->Insert( pOldPivot );
- }
-
-// erack! it's broadcasted
-// pDoc->SetDirty();
- if (pNewUndoDoc)
- pDocShell->PostPaint( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab,
- aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab,
- PAINT_GRID, SC_PF_LINES );
- if (pOldUndoDoc)
- pDocShell->PostPaint( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab,
- aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab,
- PAINT_GRID, SC_PF_LINES );
- pDocShell->PostDataChanged();
-
- ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
- if (pViewShell)
- {
- SCTAB nTab = pViewShell->GetViewData()->GetTabNo();
- if ( pOldUndoDoc )
- {
- if ( nTab != aOldArea.nTab )
- pViewShell->SetTabNo( aOldArea.nTab );
- }
- else if ( pNewUndoDoc )
- {
- if ( nTab != aNewArea.nTab )
- pViewShell->SetTabNo( aNewArea.nTab );
- }
- }
-
- EndUndo();
-}
-
-void __EXPORT ScUndoPivot::Redo()
-{
- BeginRedo();
-
- ScDocument* pDoc = pDocShell->GetDocument();
- ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection();
- ScPivot* pOldPivot = pPivotCollection->GetPivotAtCursor(
- aOldParam.nCol, aOldParam.nRow, aOldParam.nTab );
-
- ScPivot* pNewPivot = NULL;
- if (pNewUndoDoc)
- {
- pNewPivot = new ScPivot( pDoc );
- pNewPivot->SetParam( aNewParam, aNewQuery, aNewSrc );
- pNewPivot->SetName( aNewName );
- pNewPivot->SetTag( aNewTag );
- }
-
- pDocShell->PivotUpdate( pOldPivot, pNewPivot, FALSE );
-
- EndRedo();
-}
-
-void __EXPORT ScUndoPivot::Repeat(SfxRepeatTarget& rTarget)
-{
- // Wiederholen: nur loeschen
-
- if ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) )
- ((ScTabViewTarget&)rTarget).GetViewShell()->DeletePivotTable();
-}
-
-BOOL __EXPORT ScUndoPivot::CanRepeat(SfxRepeatTarget& rTarget) const
-{
- // Wiederholen: nur loeschen
-
- return ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) );
-}
-
+//UNUSED2008-05 //
+//UNUSED2008-05 // Pivot-Tabellen
+//UNUSED2008-05 //
+//UNUSED2008-05
+//UNUSED2008-05 ScUndoPivot::ScUndoPivot( ScDocShell* pNewDocShell,
+//UNUSED2008-05 const ScArea& rOld, const ScArea& rNew,
+//UNUSED2008-05 ScDocument* pOldDoc, ScDocument* pNewDoc,
+//UNUSED2008-05 const ScPivot* pOldPivot, const ScPivot* pNewPivot ) :
+//UNUSED2008-05 ScSimpleUndo( pNewDocShell ),
+//UNUSED2008-05 aOldArea( rOld ),
+//UNUSED2008-05 aNewArea( rNew ),
+//UNUSED2008-05 pOldUndoDoc( pOldDoc ),
+//UNUSED2008-05 pNewUndoDoc( pNewDoc )
+//UNUSED2008-05 {
+//UNUSED2008-05 if (pNewPivot)
+//UNUSED2008-05 {
+//UNUSED2008-05 pNewPivot->GetParam( aNewParam, aNewQuery, aNewSrc );
+//UNUSED2008-05 aNewName = pNewPivot->GetName();
+//UNUSED2008-05 aNewTag = pNewPivot->GetTag();
+//UNUSED2008-05 }
+//UNUSED2008-05 if (pOldPivot)
+//UNUSED2008-05 {
+//UNUSED2008-05 pOldPivot->GetParam( aOldParam, aOldQuery, aOldSrc );
+//UNUSED2008-05 aOldName = pOldPivot->GetName();
+//UNUSED2008-05 aOldTag = pOldPivot->GetTag();
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 __EXPORT ScUndoPivot::~ScUndoPivot()
+//UNUSED2008-05 {
+//UNUSED2008-05 delete pOldUndoDoc;
+//UNUSED2008-05 delete pNewUndoDoc;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 String __EXPORT ScUndoPivot::GetComment() const
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT nIndex;
+//UNUSED2008-05 if ( pOldUndoDoc && pNewUndoDoc )
+//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_MODIFY;
+//UNUSED2008-05 else if ( pNewUndoDoc )
+//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_NEW;
+//UNUSED2008-05 else
+//UNUSED2008-05 nIndex = STR_UNDO_PIVOT_DELETE;
+//UNUSED2008-05
+//UNUSED2008-05 return ScGlobal::GetRscString( nIndex );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void __EXPORT ScUndoPivot::Undo()
+//UNUSED2008-05 {
+//UNUSED2008-05 BeginUndo();
+//UNUSED2008-05
+//UNUSED2008-05 ScDocument* pDoc = pDocShell->GetDocument();
+//UNUSED2008-05
+//UNUSED2008-05 if (pNewUndoDoc)
+//UNUSED2008-05 {
+//UNUSED2008-05 pDoc->DeleteAreaTab( aNewArea.nColStart,aNewArea.nRowStart,
+//UNUSED2008-05 aNewArea.nColEnd,aNewArea.nRowEnd, aNewArea.nTab, IDF_ALL );
+//UNUSED2008-05 pNewUndoDoc->CopyToDocument( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab,
+//UNUSED2008-05 aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab,
+//UNUSED2008-05 IDF_ALL, FALSE, pDoc );
+//UNUSED2008-05 }
+//UNUSED2008-05 if (pOldUndoDoc)
+//UNUSED2008-05 {
+//UNUSED2008-05 pDoc->DeleteAreaTab( aOldArea.nColStart,aOldArea.nRowStart,
+//UNUSED2008-05 aOldArea.nColEnd,aOldArea.nRowEnd, aOldArea.nTab, IDF_ALL );
+//UNUSED2008-05 pOldUndoDoc->CopyToDocument( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab,
+//UNUSED2008-05 aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab,
+//UNUSED2008-05 IDF_ALL, FALSE, pDoc );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection();
+//UNUSED2008-05 if ( pNewUndoDoc )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScPivot* pNewPivot = pPivotCollection->GetPivotAtCursor(
+//UNUSED2008-05 aNewParam.nCol, aNewParam.nRow, aNewParam.nTab );
+//UNUSED2008-05 if (pNewPivot)
+//UNUSED2008-05 pPivotCollection->Free( pNewPivot );
+//UNUSED2008-05 }
+//UNUSED2008-05 if ( pOldUndoDoc )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScPivot* pOldPivot = new ScPivot( pDoc );
+//UNUSED2008-05 pOldPivot->SetParam( aOldParam, aOldQuery, aOldSrc );
+//UNUSED2008-05 pOldPivot->SetName( aOldName );
+//UNUSED2008-05 pOldPivot->SetTag( aOldTag );
+//UNUSED2008-05 if (pOldPivot->CreateData()) // Felder berechnen
+//UNUSED2008-05 pOldPivot->ReleaseData();
+//UNUSED2008-05 pPivotCollection->Insert( pOldPivot );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 // erack! it's broadcasted
+//UNUSED2008-05 // pDoc->SetDirty();
+//UNUSED2008-05 if (pNewUndoDoc)
+//UNUSED2008-05 pDocShell->PostPaint( aNewArea.nColStart, aNewArea.nRowStart, aNewArea.nTab,
+//UNUSED2008-05 aNewArea.nColEnd, aNewArea.nRowEnd, aNewArea.nTab,
+//UNUSED2008-05 PAINT_GRID, SC_PF_LINES );
+//UNUSED2008-05 if (pOldUndoDoc)
+//UNUSED2008-05 pDocShell->PostPaint( aOldArea.nColStart, aOldArea.nRowStart, aOldArea.nTab,
+//UNUSED2008-05 aOldArea.nColEnd, aOldArea.nRowEnd, aOldArea.nTab,
+//UNUSED2008-05 PAINT_GRID, SC_PF_LINES );
+//UNUSED2008-05 pDocShell->PostDataChanged();
+//UNUSED2008-05
+//UNUSED2008-05 ScTabViewShell* pViewShell = ScTabViewShell::GetActiveViewShell();
+//UNUSED2008-05 if (pViewShell)
+//UNUSED2008-05 {
+//UNUSED2008-05 SCTAB nTab = pViewShell->GetViewData()->GetTabNo();
+//UNUSED2008-05 if ( pOldUndoDoc )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( nTab != aOldArea.nTab )
+//UNUSED2008-05 pViewShell->SetTabNo( aOldArea.nTab );
+//UNUSED2008-05 }
+//UNUSED2008-05 else if ( pNewUndoDoc )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( nTab != aNewArea.nTab )
+//UNUSED2008-05 pViewShell->SetTabNo( aNewArea.nTab );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 EndUndo();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void __EXPORT ScUndoPivot::Redo()
+//UNUSED2008-05 {
+//UNUSED2008-05 BeginRedo();
+//UNUSED2008-05
+//UNUSED2008-05 ScDocument* pDoc = pDocShell->GetDocument();
+//UNUSED2008-05 ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection();
+//UNUSED2008-05 ScPivot* pOldPivot = pPivotCollection->GetPivotAtCursor(
+//UNUSED2008-05 aOldParam.nCol, aOldParam.nRow, aOldParam.nTab );
+//UNUSED2008-05
+//UNUSED2008-05 ScPivot* pNewPivot = NULL;
+//UNUSED2008-05 if (pNewUndoDoc)
+//UNUSED2008-05 {
+//UNUSED2008-05 pNewPivot = new ScPivot( pDoc );
+//UNUSED2008-05 pNewPivot->SetParam( aNewParam, aNewQuery, aNewSrc );
+//UNUSED2008-05 pNewPivot->SetName( aNewName );
+//UNUSED2008-05 pNewPivot->SetTag( aNewTag );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 pDocShell->PivotUpdate( pOldPivot, pNewPivot, FALSE );
+//UNUSED2008-05
+//UNUSED2008-05 EndRedo();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void __EXPORT ScUndoPivot::Repeat(SfxRepeatTarget& rTarget)
+//UNUSED2008-05 {
+//UNUSED2008-05 // Wiederholen: nur loeschen
+//UNUSED2008-05
+//UNUSED2008-05 if ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) )
+//UNUSED2008-05 ((ScTabViewTarget&)rTarget).GetViewShell()->DeletePivotTable();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 BOOL __EXPORT ScUndoPivot::CanRepeat(SfxRepeatTarget& rTarget) const
+//UNUSED2008-05 {
+//UNUSED2008-05 // Wiederholen: nur loeschen
+//UNUSED2008-05
+//UNUSED2008-05 return ( pOldUndoDoc && !pNewUndoDoc && rTarget.ISA(ScTabViewTarget) );
+//UNUSED2008-05 }
//
// data pilot
diff --git a/sc/source/ui/undo/undotab.cxx b/sc/source/ui/undo/undotab.cxx
index 702c902aaacc..502554bc6a9f 100644
--- a/sc/source/ui/undo/undotab.cxx
+++ b/sc/source/ui/undo/undotab.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: undotab.cxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.19.28.2 $
*
* This file is part of OpenOffice.org.
*
diff --git a/sc/source/ui/unoobj/dapiuno.cxx b/sc/source/ui/unoobj/dapiuno.cxx
index ed0651fe58f7..33250725536e 100644
--- a/sc/source/ui/unoobj/dapiuno.cxx
+++ b/sc/source/ui/unoobj/dapiuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dapiuno.cxx,v $
- * $Revision: 1.23 $
+ * $Revision: 1.21.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -224,16 +224,6 @@ ScDPObject* lcl_GetDPObject( ScDocShell* pDocShell, SCTAB nTab, const String& rN
return NULL; // nicht gefunden
}
-String lcl_ColumnTitle( ScDocument* pDoc, USHORT nCol, USHORT nRow, USHORT nTab )
-{
- // Spaltennamen, wie sie in der Pivottabelle angezeigt werden
- String aStr;
- pDoc->GetString(nCol, nRow, nTab, aStr);
- if (aStr.Len() == 0)
- aStr = ColToAlpha( nCol );
- return aStr;
-}
-
String lcl_CreatePivotName( ScDocShell* pDocShell )
{
if (pDocShell)
@@ -390,38 +380,6 @@ rtl::OUString lcl_GetOriginalName( const uno::Reference<container::XNamed> xDim
return xOriginal->getName();
}
-void lcl_SetSaveData(const uno::Reference<container::XIndexAccess>& xFields, ScDPSaveData* pSaveData)
-{
- if (xFields.is() && pSaveData)
- {
- sal_Int32 nFieldsCount(xFields->getCount());
- for (sal_Int32 i = 0; i < nFieldsCount; ++i)
- {
- uno::Any aDim = xFields->getByIndex(i);
- uno::Reference<container::XNamed> xDim;
- uno::Reference<beans::XPropertySet> xDimProps;
- if ((aDim >>= xDim) && (aDim >>= xDimProps))
- {
- //rtl::OUString sName(xDim->getName());
- rtl::OUString sName( lcl_GetOriginalName(xDim) );
- ScDPSaveDimension* pDim = sName.getLength() ? pSaveData->GetDimensionByName(sName) : 0;
- if (pDim)
- {
- uno::Any aAny = xDimProps->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_ORIENT)));
- sheet::DataPilotFieldOrientation eOrient;
- if (aAny >>= eOrient)
- pDim->SetOrientation( sal::static_int_cast<USHORT>( eOrient ) );
-
- aAny = xDimProps->getPropertyValue(rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(SC_UNONAME_FUNCTION)));
- sheet::GeneralFunction eFunc;
- if (aAny >>= eFunc)
- pDim->SetFunction( sal::static_int_cast<USHORT>( eFunc ) );
- }
- }
- }
- }
-}
-
void SAL_CALL ScDataPilotTablesObj::insertNewByName( const rtl::OUString& aNewName,
const table::CellAddress& aOutputAddress,
const uno::Reference<sheet::XDataPilotDescriptor>& xDescriptor )
diff --git a/sc/source/ui/unoobj/datauno.cxx b/sc/source/ui/unoobj/datauno.cxx
index 7be0135d695a..5183ea104721 100644
--- a/sc/source/ui/unoobj/datauno.cxx
+++ b/sc/source/ui/unoobj/datauno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: datauno.cxx,v $
- * $Revision: 1.30 $
+ * $Revision: 1.30.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1567,45 +1567,6 @@ void SAL_CALL ScDatabaseRangeObj::setDataArea( const table::CellRangeAddress& aD
}
}
-void ScDatabaseRangeObj::GetSortParam(ScSortParam& rSortParam) const
-{
- const ScDBData* pData = GetDBData_Impl();
- if (pData)
- {
- pData->GetSortParam(rSortParam);
-
- // im SortDescriptor sind die Fields innerhalb des Bereichs gezaehlt
- ScRange aDBRange;
- pData->GetArea(aDBRange);
- SCCOLROW nFieldStart = rSortParam.bByRow ? static_cast<SCCOLROW>(aDBRange.aStart.Col()) : static_cast<SCCOLROW>(aDBRange.aStart.Row());
- for (USHORT i=0; i<MAXSORT; i++)
- if (rSortParam.bDoSort[i] && rSortParam.nField[i] >= nFieldStart)
- rSortParam.nField[i] -= nFieldStart;
- }
-}
-
-void ScDatabaseRangeObj::SetSortParam(const ScSortParam& rSortParam)
-{
- const ScDBData* pData = GetDBData_Impl();
- if (pData)
- {
- // im SortDescriptor sind die Fields innerhalb des Bereichs gezaehlt
- ScSortParam aParam(rSortParam);
- ScRange aDBRange;
- pData->GetArea(aDBRange);
- SCCOLROW nFieldStart = aParam.bByRow ? static_cast<SCCOLROW>(aDBRange.aStart.Col()) : static_cast<SCCOLROW>(aDBRange.aStart.Row());
- for (USHORT i=0; i<MAXSORT; i++)
- if (aParam.bDoSort[i])
- aParam.nField[i] += nFieldStart;
-
- ScDBData aNewData( *pData );
- aNewData.SetSortParam(aParam);
- aNewData.SetHeader(aParam.bHasHeader); // not in ScDBData::SetSortParam
- ScDBDocFunc aFunc(*pDocShell);
- aFunc.ModifyDBData(aNewData, TRUE);
- }
-}
-
uno::Sequence<beans::PropertyValue> SAL_CALL ScDatabaseRangeObj::getSortDescriptor()
throw(uno::RuntimeException)
{
@@ -1745,30 +1706,6 @@ uno::Reference<sheet::XSubTotalDescriptor> SAL_CALL ScDatabaseRangeObj::getSubTo
return new ScRangeSubTotalDescriptor(this);
}
-void ScDatabaseRangeObj::GetImportParam(ScImportParam& rImportParam) const
-{
- const ScDBData* pData = GetDBData_Impl();
- if (pData)
- {
- pData->GetImportParam(rImportParam);
- // Fields gibt's hier nicht anzupassen
- }
-}
-
-void ScDatabaseRangeObj::SetImportParam(const ScImportParam& rImportParam)
-{
- const ScDBData* pData = GetDBData_Impl();
- if (pData)
- {
- // Fields gibt's hier nicht anzupassen
-
- ScDBData aNewData( *pData );
- aNewData.SetImportParam(rImportParam);
- ScDBDocFunc aFunc(*pDocShell);
- aFunc.ModifyDBData(aNewData, TRUE);
- }
-}
-
uno::Sequence<beans::PropertyValue> SAL_CALL ScDatabaseRangeObj::getImportDescriptor()
throw(uno::RuntimeException)
{
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 085b3a4344a5..86bc8e07ee32 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: docuno.cxx,v $
- * $Revision: 1.68 $
+ * $Revision: 1.67.30.3 $
*
* This file is part of OpenOffice.org.
*
@@ -268,29 +268,6 @@ SfxObjectShell* ScModelObj::GetEmbeddedObject() const
return pDocShell;
}
-BOOL ScModelObj::IsEmbedded() const
-{
- if (pDocShell)
- {
- return pDocShell->IsOle();
- }
- return FALSE;
-}
-
-double ScModelObj::GetOutputFactor() const
-{
- if (pDocShell)
- return pDocShell->GetOutputFactor();
- return 1.0;
-}
-
-BOOL ScModelObj::AdjustRowHeight( SCROW nStartRow, SCROW nEndRow, SCTAB nTab )
-{
- if (pDocShell)
- return pDocShell->AdjustRowHeight( nStartRow, nEndRow, nTab );
- return FALSE;
-}
-
void ScModelObj::UpdateAllRowHeights()
{
if (pDocShell)
@@ -2847,11 +2824,11 @@ SC_IMPL_DUMMY_PROPERTY_LISTENER( ScTableRowsObj )
//------------------------------------------------------------------------
-ScSpreadsheetSettingsObj::ScSpreadsheetSettingsObj(ScDocShell* pDocSh) :
- pDocShell( pDocSh )
-{
- pDocShell->GetDocument()->AddUnoObject(*this);
-}
+//UNUSED2008-05 ScSpreadsheetSettingsObj::ScSpreadsheetSettingsObj(ScDocShell* pDocSh) :
+//UNUSED2008-05 pDocShell( pDocSh )
+//UNUSED2008-05 {
+//UNUSED2008-05 pDocShell->GetDocument()->AddUnoObject(*this);
+//UNUSED2008-05 }
ScSpreadsheetSettingsObj::~ScSpreadsheetSettingsObj()
{
diff --git a/sc/source/ui/unoobj/editsrc.cxx b/sc/source/ui/unoobj/editsrc.cxx
index 9bb170b2ba9e..3f5ebe50b82d 100644
--- a/sc/source/ui/unoobj/editsrc.cxx
+++ b/sc/source/ui/unoobj/editsrc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: editsrc.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.26.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -416,13 +416,3 @@ SfxBroadcaster& ScAccessibilityEditSource::GetBroadcaster() const
return mpAccessibleTextData->GetBroadcaster();
}
-void ScAccessibilityEditSource::SetDoUpdateData(sal_Bool bValue)
-{
- mpAccessibleTextData->SetDoUpdate(bValue);
-}
-
-sal_Bool ScAccessibilityEditSource::IsDirty() const
-{
- return mpAccessibleTextData->IsDirty();
-}
-
diff --git a/sc/source/ui/unoobj/fielduno.cxx b/sc/source/ui/unoobj/fielduno.cxx
index e1201e879a9b..9127de05316e 100644
--- a/sc/source/ui/unoobj/fielduno.cxx
+++ b/sc/source/ui/unoobj/fielduno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fielduno.cxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.18.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -431,13 +431,14 @@ void SAL_CALL ScCellFieldsObj::removeRefreshListener( const uno::Reference<util:
// Default-ctor wird fuer SMART_REFLECTION_IMPLEMENTATION gebraucht
-ScCellFieldObj::ScCellFieldObj() :
- OComponentHelper( getMutex() ),
- aPropSet( lcl_GetURLPropertyMap() ),
- pDocShell( NULL )
-{
- pEditSource = NULL;
-}
+
+//UNUSED2008-05 ScCellFieldObj::ScCellFieldObj() :
+//UNUSED2008-05 OComponentHelper( getMutex() ),
+//UNUSED2008-05 aPropSet( lcl_GetURLPropertyMap() ),
+//UNUSED2008-05 pDocShell( NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 pEditSource = NULL;
+//UNUSED2008-05 }
ScCellFieldObj::ScCellFieldObj(ScDocShell* pDocSh, const ScAddress& rPos,
const ESelection& rSel) :
@@ -1114,17 +1115,16 @@ sal_Int16 lcl_SvxToUnoFileFormat( SvxFileFormat nSvxValue )
// Default-ctor wird fuer SMART_REFLECTION_IMPLEMENTATION gebraucht
-
-ScHeaderFieldObj::ScHeaderFieldObj() :
- OComponentHelper( getMutex() ),
- aPropSet( lcl_GetHeaderFieldPropertyMap() ),
- pContentObj( NULL ),
- nPart( 0 ),
- nType( 0 ),
- nFileFormat( SVXFILEFORMAT_NAME_EXT )
-{
- pEditSource = NULL;
-}
+//UNUSED2008-05 ScHeaderFieldObj::ScHeaderFieldObj() :
+//UNUSED2008-05 OComponentHelper( getMutex() ),
+//UNUSED2008-05 aPropSet( lcl_GetHeaderFieldPropertyMap() ),
+//UNUSED2008-05 pContentObj( NULL ),
+//UNUSED2008-05 nPart( 0 ),
+//UNUSED2008-05 nType( 0 ),
+//UNUSED2008-05 nFileFormat( SVXFILEFORMAT_NAME_EXT )
+//UNUSED2008-05 {
+//UNUSED2008-05 pEditSource = NULL;
+//UNUSED2008-05 }
ScHeaderFieldObj::ScHeaderFieldObj(ScHeaderFooterContentObj* pContent, USHORT nP,
USHORT nT, const ESelection& rSel) :
diff --git a/sc/source/ui/unoobj/fmtuno.cxx b/sc/source/ui/unoobj/fmtuno.cxx
index 8fb9487c4162..7e4d26b03840 100644
--- a/sc/source/ui/unoobj/fmtuno.cxx
+++ b/sc/source/ui/unoobj/fmtuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fmtuno.cxx,v $
- * $Revision: 1.18 $
+ * $Revision: 1.18.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -130,9 +130,9 @@ ScConditionMode lcl_ConditionOperatorToMode( sheet::ConditionOperator eOper )
//------------------------------------------------------------------------
-ScTableConditionalFormat::ScTableConditionalFormat()
-{
-}
+//UNUSED2008-05 ScTableConditionalFormat::ScTableConditionalFormat()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScTableConditionalFormat::ScTableConditionalFormat(ScDocument* pDoc, ULONG nKey,
const ScGrammar::Grammar eGrammar)
@@ -488,10 +488,10 @@ ScTableConditionalFormat* ScTableConditionalFormat::getImplementation(
//------------------------------------------------------------------------
-ScTableConditionalEntry::ScTableConditionalEntry() :
- pParent( NULL )
-{
-}
+//UNUSED2008-05 ScTableConditionalEntry::ScTableConditionalEntry() :
+//UNUSED2008-05 pParent( NULL )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScTableConditionalEntry::ScTableConditionalEntry(ScTableConditionalFormat* pPar,
const ScCondFormatEntryItem& aItem) :
@@ -599,11 +599,11 @@ void SAL_CALL ScTableConditionalEntry::setStyleName( const rtl::OUString& aStyle
//------------------------------------------------------------------------
-ScTableValidationObj::ScTableValidationObj() :
- aPropSet( lcl_GetValidatePropertyMap() ),
- meGrammar( ScGrammar::GRAM_UNSPECIFIED )
-{
-}
+//UNUSED2008-05 ScTableValidationObj::ScTableValidationObj() :
+//UNUSED2008-05 aPropSet( lcl_GetValidatePropertyMap() ),
+//UNUSED2008-05 meGrammar( ScGrammar::GRAM_UNSPECIFIED )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScTableValidationObj::ScTableValidationObj(ScDocument* pDoc, ULONG nKey,
const ScGrammar::Grammar eGrammar) :
diff --git a/sc/source/ui/unoobj/miscuno.cxx b/sc/source/ui/unoobj/miscuno.cxx
index 58df9524e8b5..3d41da907016 100644
--- a/sc/source/ui/unoobj/miscuno.cxx
+++ b/sc/source/ui/unoobj/miscuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: miscuno.cxx,v $
- * $Revision: 1.14 $
+ * $Revision: 1.14.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -42,10 +42,10 @@ using namespace com::sun::star;
//------------------------------------------------------------------------
-SC_SIMPLE_SERVICE_INFO( ScEmptyEnumeration, "ScEmptyEnumeration", "stardiv.unknown" )
-SC_SIMPLE_SERVICE_INFO( ScEmptyEnumerationAccess, "ScEmptyEnumerationAccess", "stardiv.unknown" )
-//SC_SIMPLE_SERVICE_INFO( ScIndexEnumeration, "ScIndexEnumeration", "stardiv.unknown" )
-SC_SIMPLE_SERVICE_INFO( ScPrintSettingsObj, "ScPrintSettingsObj", "stardiv.unknown" )
+//UNUSED2008-05 SC_SIMPLE_SERVICE_INFO( ScEmptyEnumeration, "ScEmptyEnumeration", "stardiv.unknown" )
+//UNUSED2008-05 SC_SIMPLE_SERVICE_INFO( ScEmptyEnumerationAccess, "ScEmptyEnumerationAccess", "stardiv.unknown" )
+//UNUSED2008-05 SC_SIMPLE_SERVICE_INFO( ScIndexEnumeration, "ScIndexEnumeration", "stardiv.unknown" )
+//UNUSED2008-05 SC_SIMPLE_SERVICE_INFO( ScPrintSettingsObj, "ScPrintSettingsObj", "stardiv.unknown" )
SC_SIMPLE_SERVICE_INFO( ScNameToIndexAccess, "ScNameToIndexAccess", "stardiv.unknown" )
@@ -242,58 +242,58 @@ sal_Bool SAL_CALL ScIndexEnumeration::supportsService( const ::rtl::OUString& Se
//------------------------------------------------------------------------
-ScEmptyEnumerationAccess::ScEmptyEnumerationAccess()
-{
-}
-
-ScEmptyEnumerationAccess::~ScEmptyEnumerationAccess()
-{
-}
-
-// XEnumerationAccess
-
-uno::Reference<container::XEnumeration> SAL_CALL ScEmptyEnumerationAccess::createEnumeration()
- throw(uno::RuntimeException)
-{
- ScUnoGuard aGuard;
- return new ScEmptyEnumeration;
-}
-
-uno::Type SAL_CALL ScEmptyEnumerationAccess::getElementType() throw(uno::RuntimeException)
-{
- ScUnoGuard aGuard;
- return getCppuType((uno::Reference<uno::XInterface>*)0); // or what?
-}
-
-sal_Bool SAL_CALL ScEmptyEnumerationAccess::hasElements() throw(uno::RuntimeException)
-{
- return FALSE;
-}
+//UNUSED2008-05 ScEmptyEnumerationAccess::ScEmptyEnumerationAccess()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ScEmptyEnumerationAccess::~ScEmptyEnumerationAccess()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 // XEnumerationAccess
+//UNUSED2008-05
+//UNUSED2008-05 uno::Reference<container::XEnumeration> SAL_CALL ScEmptyEnumerationAccess::createEnumeration()
+//UNUSED2008-05 throw(uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 ScUnoGuard aGuard;
+//UNUSED2008-05 return new ScEmptyEnumeration;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 uno::Type SAL_CALL ScEmptyEnumerationAccess::getElementType() throw(uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 ScUnoGuard aGuard;
+//UNUSED2008-05 return getCppuType((uno::Reference<uno::XInterface>*)0); // or what?
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 sal_Bool SAL_CALL ScEmptyEnumerationAccess::hasElements() throw(uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 return FALSE;
+//UNUSED2008-05 }
//------------------------------------------------------------------------
-ScEmptyEnumeration::ScEmptyEnumeration()
-{
-}
-
-ScEmptyEnumeration::~ScEmptyEnumeration()
-{
-}
-
-// XEnumeration
-
-sal_Bool SAL_CALL ScEmptyEnumeration::hasMoreElements() throw(uno::RuntimeException)
-{
- ScUnoGuard aGuard;
- return FALSE;
-}
-
-uno::Any SAL_CALL ScEmptyEnumeration::nextElement() throw(container::NoSuchElementException,
- lang::WrappedTargetException, uno::RuntimeException)
-{
- ScUnoGuard aGuard;
- return uno::Any();
-}
+//UNUSED2008-05 ScEmptyEnumeration::ScEmptyEnumeration()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ScEmptyEnumeration::~ScEmptyEnumeration()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 // XEnumeration
+//UNUSED2008-05
+//UNUSED2008-05 sal_Bool SAL_CALL ScEmptyEnumeration::hasMoreElements() throw(uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 ScUnoGuard aGuard;
+//UNUSED2008-05 return FALSE;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 uno::Any SAL_CALL ScEmptyEnumeration::nextElement() throw(container::NoSuchElementException,
+//UNUSED2008-05 lang::WrappedTargetException, uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 ScUnoGuard aGuard;
+//UNUSED2008-05 return uno::Any();
+//UNUSED2008-05 }
//------------------------------------------------------------------------
@@ -348,40 +348,40 @@ sal_Bool SAL_CALL ScNameToIndexAccess::hasElements( ) throw(::com::sun::star::u
//------------------------------------------------------------------------
-ScPrintSettingsObj::ScPrintSettingsObj()
-{
-}
-
-ScPrintSettingsObj::~ScPrintSettingsObj()
-{
-}
-
-// XPropertySet
-
-uno::Reference<beans::XPropertySetInfo> SAL_CALL ScPrintSettingsObj::getPropertySetInfo()
- throw(uno::RuntimeException)
-{
- return NULL;
-}
-
-void SAL_CALL ScPrintSettingsObj::setPropertyValue(
- const rtl::OUString& /* aPropertyName */, const uno::Any& /* aValue */ )
- throw(beans::UnknownPropertyException, beans::PropertyVetoException,
- lang::IllegalArgumentException, lang::WrappedTargetException,
- uno::RuntimeException)
-{
- //! later...
-}
-
-uno::Any SAL_CALL ScPrintSettingsObj::getPropertyValue( const rtl::OUString& /* aPropertyName */ )
- throw(beans::UnknownPropertyException, lang::WrappedTargetException,
- uno::RuntimeException)
-{
- //! later...
- return uno::Any();
-}
-
-SC_IMPL_DUMMY_PROPERTY_LISTENER( ScPrintSettingsObj )
+//UNUSED2008-05 ScPrintSettingsObj::ScPrintSettingsObj()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 ScPrintSettingsObj::~ScPrintSettingsObj()
+//UNUSED2008-05 {
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 // XPropertySet
+//UNUSED2008-05
+//UNUSED2008-05 uno::Reference<beans::XPropertySetInfo> SAL_CALL ScPrintSettingsObj::getPropertySetInfo()
+//UNUSED2008-05 throw(uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 return NULL;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void SAL_CALL ScPrintSettingsObj::setPropertyValue(
+//UNUSED2008-05 const rtl::OUString& /* aPropertyName */, const uno::Any& /* aValue */ )
+//UNUSED2008-05 throw(beans::UnknownPropertyException, beans::PropertyVetoException,
+//UNUSED2008-05 lang::IllegalArgumentException, lang::WrappedTargetException,
+//UNUSED2008-05 uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 //! later...
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 uno::Any SAL_CALL ScPrintSettingsObj::getPropertyValue( const rtl::OUString& /* aPropertyName */ )
+//UNUSED2008-05 throw(beans::UnknownPropertyException, lang::WrappedTargetException,
+//UNUSED2008-05 uno::RuntimeException)
+//UNUSED2008-05 {
+//UNUSED2008-05 //! later...
+//UNUSED2008-05 return uno::Any();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 SC_IMPL_DUMMY_PROPERTY_LISTENER( ScPrintSettingsObj )
//------------------------------------------------------------------------
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 8af5d784c73c..76ee5be86e0b 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: servuno.cxx,v $
- * $Revision: 1.17 $
+ * $Revision: 1.17.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -174,13 +174,13 @@ static const sal_Char* __FAR_DATA aOldNames[SC_SERVICE_COUNT] =
// alles static
-String ScServiceProvider::GetProviderName(sal_uInt16 nObjectType)
-{
- String sRet;
- if (nObjectType < SC_SERVICE_COUNT)
- sRet = String::CreateFromAscii( aProvNames[nObjectType] );
- return sRet;
-}
+//UNUSED2008-05 String ScServiceProvider::GetProviderName(sal_uInt16 nObjectType)
+//UNUSED2008-05 {
+//UNUSED2008-05 String sRet;
+//UNUSED2008-05 if (nObjectType < SC_SERVICE_COUNT)
+//UNUSED2008-05 sRet = String::CreateFromAscii( aProvNames[nObjectType] );
+//UNUSED2008-05 return sRet;
+//UNUSED2008-05 }
sal_uInt16 ScServiceProvider::GetProviderType(const String& rServiceName)
{
diff --git a/sc/source/ui/unoobj/shapeuno.cxx b/sc/source/ui/unoobj/shapeuno.cxx
index 6e7e2839d865..eaca5a308236 100644
--- a/sc/source/ui/unoobj/shapeuno.cxx
+++ b/sc/source/ui/unoobj/shapeuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: shapeuno.cxx,v $
- * $Revision: 1.21 $
+ * $Revision: 1.21.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -241,17 +241,6 @@ uno::Reference<beans::XPropertySetInfo> SAL_CALL ScShapeObj::getPropertySetInfo(
return mxPropSetInfo;
}
-ScDocument* lcl_GetDocument( SdrObject* pObj )
-{
- if( pObj )
- {
- ScDrawLayer* pModel = (ScDrawLayer*)pObj->GetModel();
- if ( pModel )
- return pModel->GetDocument();
- }
- return NULL;
-}
-
BOOL lcl_GetPageNum( SdrPage* pPage, SdrModel& rModel, SCTAB& rNum )
{
USHORT nCount = rModel.GetPageCount();
diff --git a/sc/source/ui/unoobj/styleuno.cxx b/sc/source/ui/unoobj/styleuno.cxx
index 2bd0bdde90a2..8942b3a103cb 100644
--- a/sc/source/ui/unoobj/styleuno.cxx
+++ b/sc/source/ui/unoobj/styleuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: styleuno.cxx,v $
- * $Revision: 1.44 $
+ * $Revision: 1.43.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -1014,12 +1014,12 @@ sal_Bool SAL_CALL ScStyleFamilyObj::hasByName( const rtl::OUString& aName )
// Default-ctor wird fuer die Reflection gebraucht
-ScStyleObj::ScStyleObj() :
- aPropSet( lcl_GetCellStyleMap() ),
- pDocShell( NULL ),
- eFamily( SFX_STYLE_FAMILY_PARA )
-{
-}
+//UNUSED2008-05 ScStyleObj::ScStyleObj() :
+//UNUSED2008-05 aPropSet( lcl_GetCellStyleMap() ),
+//UNUSED2008-05 pDocShell( NULL ),
+//UNUSED2008-05 eFamily( SFX_STYLE_FAMILY_PARA )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScStyleObj::ScStyleObj(ScDocShell* pDocSh, SfxStyleFamily eFam, const String& rName) :
aPropSet( (eFam == SFX_STYLE_FAMILY_PARA) ? lcl_GetCellStyleMap() : lcl_GetPageStyleMap() ),
diff --git a/sc/source/ui/unoobj/textuno.cxx b/sc/source/ui/unoobj/textuno.cxx
index 0367a7ee2f6c..97e10e4e973e 100644
--- a/sc/source/ui/unoobj/textuno.cxx
+++ b/sc/source/ui/unoobj/textuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: textuno.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.25.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -111,14 +111,6 @@ SC_SIMPLE_SERVICE_INFO( ScHeaderFooterTextObj, "ScHeaderFooterTextObj", "stardiv
//------------------------------------------------------------------------
-ScHeaderFooterContentObj::ScHeaderFooterContentObj() :
- pLeftText ( NULL ),
- pCenterText ( NULL ),
- pRightText ( NULL )
-{
- // fuer getReflection
-}
-
ScHeaderFooterContentObj::ScHeaderFooterContentObj( const EditTextObject* pLeft,
const EditTextObject* pCenter,
const EditTextObject* pRight ) :
@@ -936,15 +928,6 @@ ScEditEngineTextObj::~ScEditEngineTextObj() throw()
{
}
-void ScEditEngineTextObj::SetText( const String& rStr )
-{
- GetEditEngine()->SetText( rStr );
-
- ESelection aSel;
- ::GetSelection( aSel, GetEditSource()->GetTextForwarder() );
- SetSelection( aSel );
-}
-
void ScEditEngineTextObj::SetText( const EditTextObject& rTextObject )
{
GetEditEngine()->SetText( rTextObject );
diff --git a/sc/source/ui/unoobj/viewuno.cxx b/sc/source/ui/unoobj/viewuno.cxx
index 0d25b29c0bc2..969c0d0bd20f 100644
--- a/sc/source/ui/unoobj/viewuno.cxx
+++ b/sc/source/ui/unoobj/viewuno.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewuno.cxx,v $
- * $Revision: 1.38 $
+ * $Revision: 1.37.24.3 $
*
* This file is part of OpenOffice.org.
*
@@ -462,15 +462,15 @@ void SAL_CALL ScViewPaneObj::release() throw()
// Default-ctor wird fuer SMART_REFLECTION_IMPLEMENTATION gebraucht
-ScTabViewObj::ScTabViewObj() :
- ScViewPaneBase( NULL, SC_VIEWPANE_ACTIVE ),
- SfxBaseController( NULL ),
- aPropSet( lcl_GetViewOptPropertyMap() ),
- aMouseClickHandlers( 0 ),
- aActivationListeners( 0 ),
- bDrawSelModeSet(sal_False)
-{
-}
+//UNUSED2008-05 ScTabViewObj::ScTabViewObj() :
+//UNUSED2008-05 ScViewPaneBase( NULL, SC_VIEWPANE_ACTIVE ),
+//UNUSED2008-05 SfxBaseController( NULL ),
+//UNUSED2008-05 aPropSet( lcl_GetViewOptPropertyMap() ),
+//UNUSED2008-05 aMouseClickHandlers( 0 ),
+//UNUSED2008-05 aActivationListeners( 0 ),
+//UNUSED2008-05 bDrawSelModeSet(sal_False)
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScTabViewObj::ScTabViewObj( ScTabViewShell* pViewSh ) :
ScViewPaneBase( pViewSh, SC_VIEWPANE_ACTIVE ),
diff --git a/sc/source/ui/vba/vbahelper.cxx b/sc/source/ui/vba/vbahelper.cxx
index 2529c93304ce..5b5ce2645c21 100644
--- a/sc/source/ui/vba/vbahelper.cxx
+++ b/sc/source/ui/vba/vbahelper.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbahelper.cxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -278,22 +278,6 @@ void implnPasteSpecial(USHORT nFlags,USHORT nFunction,sal_Bool bSkipEmpty, sal_B
}
-bool
-isRangeShortCut( const ::rtl::OUString& sParam )
-{
- // for a ShortCutRange param, I'd expect the first letter to be
- //[A-Z] and the last letter to be a digit 0-9 e.g A10, [A1:A10] etc.
- ::rtl::OString sStr = rtl::OUStringToOString( sParam,
- RTL_TEXTENCODING_UTF8 );
- const sal_Char* pFirst = (const sal_Char*)sStr;
- const sal_Char* pLast = pFirst + ( sStr.getLength() - 1 );
- if ( (( *pFirst >= 'A' && *pFirst <= 'Z' ) || ( *pFirst >= 'a' && *pFirst <= 'Z' ) ) )
- if ( ( *pLast >= '0' ) && ( *pLast <= '9' ) )
- return true;
-
- return false;
-}
-
uno::Reference< frame::XModel >
getCurrentDocument() throw (uno::RuntimeException)
{
diff --git a/sc/source/ui/vba/vbahelper.hxx b/sc/source/ui/vba/vbahelper.hxx
index d01057f46328..ed55d490b371 100644
--- a/sc/source/ui/vba/vbahelper.hxx
+++ b/sc/source/ui/vba/vbahelper.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbahelper.hxx,v $
- * $Revision: 1.5 $
+ * $Revision: 1.5.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -64,7 +64,6 @@ namespace org
void implnPaste();
void implnCut();
void implnPasteSpecial(sal_uInt16 nFlags,sal_uInt16 nFunction,sal_Bool bSkipEmpty, sal_Bool bTranspose);
- bool isRangeShortCut( const ::rtl::OUString& sParam );
css::uno::Reference< css::frame::XModel >
getCurrentDocument() throw (css::uno::RuntimeException);
ScTabViewShell* getBestViewShell( css::uno::Reference< css::frame::XModel>& xModel ) ;
diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx
index 97f4040e381f..bd55f11a41f0 100644
--- a/sc/source/ui/vba/vbarange.cxx
+++ b/sc/source/ui/vba/vbarange.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbarange.cxx,v $
- * $Revision: 1.9 $
+ * $Revision: 1.8.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -172,7 +172,6 @@ using ::std::vector;
// * 1 inch = 72 points = 1440 twips
// * 1 cm = 567 twips
double lcl_hmmToPoints( double nVal ) { return ( (double)((nVal /1000 ) * 567 ) / 20 ); }
-double lcl_pointsToHmm( double nVal ) { return (double)( ( nVal * 20 ) / 567 ) * 1000; }
static const sal_Int16 supportedIndexTable[] = { excel::XlBordersIndex::xlEdgeLeft, excel::XlBordersIndex::xlEdgeTop, excel::XlBordersIndex::xlEdgeBottom, excel::XlBordersIndex::xlEdgeRight, excel::XlBordersIndex::xlDiagonalDown, excel::XlBordersIndex::xlDiagonalUp, excel::XlBordersIndex::xlInsideVertical, excel::XlBordersIndex::xlInsideHorizontal };
@@ -2590,19 +2589,6 @@ ScVbaRange::setHidden( const uno::Any& _hidden ) throw (uno::RuntimeException)
}
}
-rtl::OUString lcl_replaceAll( const rtl::OUString& rString, rtl::OUString sWhat, rtl::OUString sWith )
-{
- rtl::OUString sString( rString );
- sal_Int32 offset = 0;
- sal_Int32 nWithLen = sWith.getLength();
- while ((offset = sString.indexOf(sWhat )) >= 0)
- {
- sString = sString.replaceAt(offset, nWithLen, sWith);
- offset += nWithLen;
- }
- return sString;
-}
-
::sal_Bool SAL_CALL
ScVbaRange::Replace( const ::rtl::OUString& What, const ::rtl::OUString& Replacement, const uno::Any& LookAt, const uno::Any& SearchOrder, const uno::Any& MatchCase, const uno::Any& MatchByte, const uno::Any& SearchFormat, const uno::Any& ReplaceFormat ) throw (uno::RuntimeException)
{
diff --git a/sc/source/ui/vba/vbashapes.cxx b/sc/source/ui/vba/vbashapes.cxx
index 08adea1731c1..3bdb72a4ded1 100644
--- a/sc/source/ui/vba/vbashapes.cxx
+++ b/sc/source/ui/vba/vbashapes.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbashapes.cxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -382,6 +382,8 @@ ScVbaShapes::createName( rtl::OUString sName )
return sName;
}
+#if 0
+//TODO helperapi using a writer document
awt::Point
calculateTopLeftMargin( uno::Reference< vba::XHelperInterface > xDocument )
{
@@ -389,3 +391,4 @@ calculateTopLeftMargin( uno::Reference< vba::XHelperInterface > xDocument )
uno::Reference< frame::XModel > xModel( xDocument, uno::UNO_QUERY_THROW );
return awt::Point();
}
+#endif
diff --git a/sc/source/ui/vba/vbashapes.hxx b/sc/source/ui/vba/vbashapes.hxx
index c7d0a5c57a12..01c7144bf191 100644
--- a/sc/source/ui/vba/vbashapes.hxx
+++ b/sc/source/ui/vba/vbashapes.hxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbashapes.hxx,v $
- * $Revision: 1.3 $
+ * $Revision: 1.3.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -56,7 +56,8 @@ protected:
css::uno::Any AddRectangle( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, css::uno::Any aRange ) throw (css::uno::RuntimeException);
css::uno::Any AddEllipse( sal_Int32 startX, sal_Int32 startY, sal_Int32 nLineWidth, sal_Int32 nLineHeight, css::uno::Any aRange ) throw (css::uno::RuntimeException);
rtl::OUString createName( rtl::OUString sName );
- css::awt::Point calculateTopLeftMargin( css::uno::Reference< oo::vba::XHelperInterface > xDocument );
+ //TODO helperapi using a writer document
+ //css::awt::Point calculateTopLeftMargin( css::uno::Reference< oo::vba::XHelperInterface > xDocument );
public:
ScVbaShapes( const css::uno::Reference< oo::vba::XHelperInterface >& xParent, const css::uno::Reference< css::uno::XComponentContext >& xContext, const css::uno::Reference< css::container::XIndexAccess > xShapes );
diff --git a/sc/source/ui/view/cellsh2.cxx b/sc/source/ui/view/cellsh2.cxx
index a46e01f519bc..26a8e2122cba 100644
--- a/sc/source/ui/view/cellsh2.cxx
+++ b/sc/source/ui/view/cellsh2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cellsh2.cxx,v $
- * $Revision: 1.35 $
+ * $Revision: 1.34.24.2 $
*
* This file is part of OpenOffice.org.
*
@@ -1098,6 +1098,7 @@ void __EXPORT ScCellShell::GetDBState( SfxItemSet& rSet )
bOk = pDBData->HasQueryParam() ||
pDBData->HasSortParam() ||
pDBData->HasSubTotalParam();
+#if OLD_PIVOT_IMPLEMENTATION
if (!bOk)
{
// Pivottabelle mit den Daten als Quellbereich ?
@@ -1112,6 +1113,7 @@ void __EXPORT ScCellShell::GetDBState( SfxItemSet& rSet )
bOk = TRUE;
}
}
+#endif
}
}
if (!bOk)
diff --git a/sc/source/ui/view/dbfunc.cxx b/sc/source/ui/view/dbfunc.cxx
index 673c12bcbb25..4a5e54d19f31 100644
--- a/sc/source/ui/view/dbfunc.cxx
+++ b/sc/source/ui/view/dbfunc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dbfunc.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.24.1 $
*
* This file is part of OpenOffice.org.
*
@@ -60,10 +60,10 @@ ScDBFunc::ScDBFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pViewSh
{
}
-ScDBFunc::ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell ) :
- ScViewFunc( pParent, rDBFunc, pViewShell )
-{
-}
+//UNUSED2008-05 ScDBFunc::ScDBFunc( Window* pParent, const ScDBFunc& rDBFunc, ScTabViewShell* pViewShell ) :
+//UNUSED2008-05 ScViewFunc( pParent, rDBFunc, pViewShell )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScDBFunc::~ScDBFunc()
{
diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 8c3ed942b6d7..bb58738e2d9c 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: drawvie3.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -75,26 +75,6 @@ ScDrawView::ScDrawView( OutputDevice* pOut, ScViewData* pData ) :
Construct();
}
-ScDrawView::ScDrawView( OutputDevice* pOut, ScDocument* pDocument, SCTAB nTable ) :
- FmFormView( pDocument->GetDrawLayer(), pOut ),
- pViewData( NULL ),
- pDev( pOut ),
- pDoc( pDocument ),
- nTab( nTable ),
- pDropMarker( NULL ),
- pDropMarkObj( NULL ),
- bInConstruct( TRUE )
- //HMHbDisableHdl( FALSE )
-{
- // #i73602# Use default from the configuration
- SetBufferedOverlayAllowed(getOptionsDrawinglayer().IsOverlayBuffer_Calc());
-
- // #i74769#, #i75172# Use default from the configuration
- SetBufferedOutputAllowed(getOptionsDrawinglayer().IsPaintBuffer_Calc());
-
- Construct();
-}
-
// Verankerung setzen
void ScDrawView::SetAnchor( ScAnchorType eType )
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index 91ebb9f41be3..b1da55da179a 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -716,22 +716,22 @@ BOOL ScDrawView::SelectObject( const String& rName )
return ( pFound != NULL );
}
-String ScDrawView::GetSelectedChartName() const
-{
- // used for modifying a chart's data area - PersistName must always be used
- // (as in ScDocument::FindChartData and UpdateChartArea)
-
- const SdrMarkList& rMarkList = GetMarkedObjectList();
- if (rMarkList.GetMarkCount() == 1)
- {
- SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
- if (pObj->GetObjIdentifier() == OBJ_OLE2)
- if ( pDoc->IsChart(pObj) )
- return static_cast<SdrOle2Obj*>(pObj)->GetPersistName();
- }
-
- return EMPTY_STRING; // nichts gefunden
-}
+//UNUSED2008-05 String ScDrawView::GetSelectedChartName() const
+//UNUSED2008-05 {
+//UNUSED2008-05 // used for modifying a chart's data area - PersistName must always be used
+//UNUSED2008-05 // (as in ScDocument::FindChartData and UpdateChartArea)
+//UNUSED2008-05
+//UNUSED2008-05 const SdrMarkList& rMarkList = GetMarkedObjectList();
+//UNUSED2008-05 if (rMarkList.GetMarkCount() == 1)
+//UNUSED2008-05 {
+//UNUSED2008-05 SdrObject* pObj = rMarkList.GetMark(0)->GetMarkedSdrObj();
+//UNUSED2008-05 if (pObj->GetObjIdentifier() == OBJ_OLE2)
+//UNUSED2008-05 if ( pDoc->IsChart(pObj) )
+//UNUSED2008-05 return static_cast<SdrOle2Obj*>(pObj)->GetPersistName();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 return EMPTY_STRING; // nichts gefunden
+//UNUSED2008-05 }
FASTBOOL ScDrawView::InsertObjectSafe(SdrObject* pObj, SdrPageView& rPV, ULONG nOptions)
{
diff --git a/sc/source/ui/view/formatsh.cxx b/sc/source/ui/view/formatsh.cxx
index ac33d3141fbf..9af0be53a4c4 100644
--- a/sc/source/ui/view/formatsh.cxx
+++ b/sc/source/ui/view/formatsh.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: formatsh.cxx,v $
- * $Revision: 1.41 $
+ * $Revision: 1.41.24.1 $
*
* This file is part of OpenOffice.org.
*
@@ -1971,15 +1971,6 @@ void ScFormatShell::GetAlignState( SfxItemSet& rSet )
}
}
-void ScFormatShell::ExecBckCol( SfxRequest& rReq )
-{
- ExecuteAttr( rReq );
-}
-
-void ScFormatShell::GetBckColState( SfxItemSet& rSet )
-{
- GetAttrState( rSet );
-}
void ScFormatShell::GetNumFormatState( SfxItemSet& rSet )
{
ScTabViewShell* pTabViewShell = GetViewData()->GetViewShell();
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx
index f2278ba9880a..fc5de4cbca97 100644
--- a/sc/source/ui/view/gridwin.cxx
+++ b/sc/source/ui/view/gridwin.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gridwin.cxx,v $
- * $Revision: 1.96 $
+ * $Revision: 1.94.20.2 $
*
* This file is part of OpenOffice.org.
*
@@ -420,7 +420,9 @@ ScGridWindow::ScGridWindow( Window* pParent, ScViewData* pData, ScSplitPos eWhic
bEEMouse( FALSE ),
nMouseStatus( SC_GM_NONE ),
nNestedButtonState( SC_NESTEDBUTTON_NONE ),
+#if OLD_PIVOT_IMPLEMENTATION
bPivotMouse( FALSE ),
+#endif
bDPMouse( FALSE ),
bRFMouse( FALSE ),
nPagebreakMouse( SC_PD_NONE ),
@@ -1826,12 +1828,14 @@ void __EXPORT ScGridWindow::MouseButtonUp( const MouseEvent& rMEvt )
return;
}
+#if OLD_PIVOT_IMPLEMENTATION
if (bPivotMouse)
{
PivotMouseButtonUp( rMEvt );
bPivotMouse = FALSE;
return;
}
+#endif
if (bDPMouse)
{
@@ -2221,11 +2225,13 @@ void __EXPORT ScGridWindow::MouseMove( const MouseEvent& rMEvt )
return;
}
+#if OLD_PIVOT_IMPLEMENTATION
if (bPivotMouse)
{
PivotMouseMove( rMEvt );
return;
}
+#endif
if (bDPMouse)
{
@@ -2435,8 +2441,10 @@ void ScGridWindow::Tracking( const TrackingEvent& rTEvt )
{
if (!pViewData->GetView()->IsInActivatePart())
{
+#if OLD_PIVOT_IMPLEMENTATION
if (bPivotMouse)
bPivotMouse = FALSE; // gezeichnet wird per bDragRect
+#endif
if (bDPMouse)
bDPMouse = FALSE; // gezeichnet wird per bDragRect
if (bDragRect)
diff --git a/sc/source/ui/view/gridwin2.cxx b/sc/source/ui/view/gridwin2.cxx
index 3b5aa9ccb536..92743ef65524 100644
--- a/sc/source/ui/view/gridwin2.cxx
+++ b/sc/source/ui/view/gridwin2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: gridwin2.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -102,11 +102,12 @@ void ScGridWindow::DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt
ScDocument* pDoc = pViewData->GetDocument();
SCTAB nTab = pViewData->GetTabNo();
+ ScDPObject* pDPObj = pDoc->GetDPAtCursor(nCol, nRow, nTab);
+
+#if OLD_PIVOT_IMPLEMENTATION
ScPivotCollection* pPivotCollection = pDoc->GetPivotCollection();
ScPivot* pPivot = pPivotCollection->GetPivotAtCursor(nCol, nRow, nTab);
- ScDPObject* pDPObj = pDoc->GetDPAtCursor(nCol, nRow, nTab);
-
if (pPivot) // alte Pivottabellen
{
if (pPivot->IsFilterAtCursor(nCol, nRow, nTab))
@@ -186,7 +187,9 @@ void ScGridWindow::DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt
}
}
}
- else if (pDPObj)
+#endif
+
+ if (pDPObj)
{
USHORT nOrient = sheet::DataPilotFieldOrientation_HIDDEN;
ScAddress aPos( nCol, nRow, nTab );
@@ -253,6 +256,7 @@ void ScGridWindow::DoPushButton( SCCOL nCol, SCROW nRow, const MouseEvent& rMEvt
}
}
+#if OLD_PIVOT_IMPLEMENTATION
void ScGridWindow::DoPivotDrop( BOOL bDelete, BOOL bToCols, SCSIZE nDestPos )
{
if ( nPivotField == PIVOT_DATA_FIELD && bDelete )
@@ -609,6 +613,7 @@ void ScGridWindow::PivotMouseButtonUp( const MouseEvent& rMEvt )
PivotTestMouse( rMEvt, FALSE );
SetPointer( Pointer( POINTER_ARROW ) );
}
+#endif
// -----------------------------------------------------------------------
//
diff --git a/sc/source/ui/view/gridwin3.cxx b/sc/source/ui/view/gridwin3.cxx
index 4b97058a15f0..4122882468c2 100644
--- a/sc/source/ui/view/gridwin3.cxx
+++ b/sc/source/ui/view/gridwin3.cxx
@@ -353,79 +353,6 @@ void ScGridWindow::CreateAnchorHandle(SdrHdlList& rHdl, const ScAddress& rAddres
}
}
-void ScGridWindow::OutlinerViewPaint( const Rectangle& rRect )
-{
- ScDrawView* pDrView = pViewData->GetView()->GetScDrawView();
- if (pDrView && pDrView->GetTextEditOutlinerView())
- {
- Outliner* pOut = pDrView->GetTextEditOutliner();
- ULONG nViewCount = pOut ? pOut->GetViewCount() : 0;
- for (ULONG nView=0; nView<nViewCount; nView++)
- {
- OutlinerView* pOlView = pOut->GetView(nView);
-
- if (pOlView && pOlView->GetWindow() == this)
- {
- BOOL bFrame = FALSE;
- Rectangle aEditRect = pOlView->GetOutputArea();
- SdrObject* pEditObj = GetEditObject();
- if (pEditObj && pEditObj->ISA(SdrTextObj))
- {
- SdrTextObj* pTextObj = (SdrTextObj*)pEditObj;
- Rectangle aMinRect;
- pTextObj->TakeTextEditArea(NULL,NULL,NULL,&aMinRect); // PageView Offset ist 0
- aEditRect.Union(aMinRect);
- bFrame = sal::static_int_cast<BOOL>( pTextObj->IsTextFrame() );
- }
-
- if ( aEditRect.IsOver( rRect ) )
- {
- ULONG nOldDrawMode = GetDrawMode();
- if ( Application::GetSettings().GetStyleSettings().GetHighContrastMode() )
- {
- SetDrawMode( nOldDrawMode | DRAWMODE_SETTINGSLINE | DRAWMODE_SETTINGSFILL |
- DRAWMODE_SETTINGSTEXT | DRAWMODE_SETTINGSGRADIENT );
- }
-
- Rectangle aEffRect = rRect.GetIntersection( aEditRect );
- if (bFrame)
- {
- if ( pEditObj->GetLayer() ==SC_LAYER_INTERN ) // cell note?
- {
- // #78828# always draw the edit background in case notes overlap
- SetFillColor( pOlView->GetBackgroundColor() );
- SetLineColor();
- DrawRect( aEffRect );
- }
-
- // DrawLayer mit dem Text-Rechteck zeichnet nur die Outliner-View
- // und den Text-Rahmen (an den kommt man sonst von aussen nicht heran).
-
- SdrPageView* pPV = pDrView->GetSdrPageView();
- DBG_ASSERT(pPV, "keine PageView");
- if (pPV)
- {
- SdrLayerID nLayer = pEditObj ? pEditObj->GetLayer() : SC_LAYER_FRONT;
- // Region aDrawRegion(aEffRect);
- // pPV->DrawLayer( nLayer, aDrawRegion, this );
- pPV->DrawLayer( nLayer, this );
- }
- }
- else
- {
- SetFillColor( pOlView->GetBackgroundColor() );
- SetLineColor();
- DrawRect( aEffRect );
- pOlView->Paint( aEffRect );
- }
-
- SetDrawMode( nOldDrawMode );
- }
- }
- }
- }
-}
-
SdrObject* ScGridWindow::GetEditObject()
{
ScDrawView* pDrView = pViewData->GetView()->GetScDrawView();
diff --git a/sc/source/ui/view/gridwin4.cxx b/sc/source/ui/view/gridwin4.cxx
index 256a28ac7100..748d3591418e 100644
--- a/sc/source/ui/view/gridwin4.cxx
+++ b/sc/source/ui/view/gridwin4.cxx
@@ -1200,63 +1200,6 @@ void ScGridWindow::DrawPagePreview( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2,
}
}
-void ScGridWindow::DrawRefMark( SCCOL nRefStartX, SCROW nRefStartY,
- SCCOL nRefEndX, SCROW nRefEndY,
- const Color& rColor, BOOL bHandle )
-{
- PutInOrder( nRefStartX, nRefEndX );
- PutInOrder( nRefStartY, nRefEndY );
-
- SCTAB nTab = pViewData->GetTabNo();
- ScDocument* pDoc = pViewData->GetDocument();
- if ( nRefStartX == nRefEndX && nRefStartY == nRefEndY )
- pDoc->ExtendMerge( nRefStartX, nRefStartY, nRefEndX, nRefEndY, nTab );
-
- MapMode aOld = GetMapMode();
- SetMapMode(MAP_PIXEL);
-
- SCCOL nCurX = pViewData->GetCurX();
- SCROW nCurY = pViewData->GetCurY();
- BOOL bHide = ( nCurX+1 >= nRefStartX && nCurX <= nRefEndX+1 &&
- nCurY+1 >= nRefStartY && nCurY <= nRefEndY+1 );
-
- BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab );
- long nLayoutSign = bLayoutRTL ? -1 : 1;
-
- Point aStartPos = pViewData->GetScrPos( nRefStartX, nRefStartY, eWhich, TRUE );
- Point aEndPos = pViewData->GetScrPos( nRefEndX+1, nRefEndY+1, eWhich, TRUE );
- aEndPos.X() -= 2 * nLayoutSign;
- aEndPos.Y() -= 2; // don't paint over the grid
-
- // begrenzen um Ueberlaeufe mit Paint-Fehlern zu vermeiden
- long nMinY = -10;
- long nMaxY = GetOutputSizePixel().Height() + 10; // mit Abstand fuer Handle
- if (aStartPos.Y() < nMinY) aStartPos.Y() = nMinY;
- if (aStartPos.Y() > nMaxY) aStartPos.Y() = nMaxY;
- if (aEndPos.Y() > nMaxY) aEndPos.Y() = nMaxY;
- if (aEndPos.Y() < nMinY) aEndPos.Y() = nMinY;
-
- if (bHide)
- HideCursor();
-
- SetLineColor( rColor );
- SetFillColor();
- DrawRect( Rectangle( aStartPos, aEndPos ) );
-
- if ( bHandle )
- {
- SetLineColor();
- SetFillColor( rColor );
- DrawRect( Rectangle( aEndPos.X()-3*nLayoutSign, aEndPos.Y()-3,
- aEndPos.X()+nLayoutSign, aEndPos.Y()+1 ) );
- }
-
- if (bHide)
- ShowCursor();
-
- SetMapMode(aOld);
-}
-
void ScGridWindow::DrawButtons( SCCOL nX1, SCROW /*nY1*/, SCCOL nX2, SCROW /*nY2*/, ScTableInfo& rTabInfo, OutputDevice* pContentDev )
{
aComboButton.SetOutputDevice( pContentDev );
@@ -1884,72 +1827,72 @@ void ScGridWindow::GetSelectionRects( ::std::vector< Rectangle >& rPixelRects )
// -------------------------------------------------------------------------
-void ScGridWindow::DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 )
-{
- if ( nX2 < pViewData->GetPosX(eHWhich) || nY2 < pViewData->GetPosY(eVWhich) )
- return;
-
- Update(); // wegen XOR
-
- MapMode aOld = GetMapMode(); SetMapMode(MAP_PIXEL);
-
- SCTAB nTab = pViewData->GetTabNo();
-
- SCCOL nPosX = pViewData->GetPosX(WhichH(eWhich));
- SCROW nPosY = pViewData->GetPosY(WhichV(eWhich));
- if (nX1 < nPosX) nX1 = nPosX;
- if (nX2 < nPosX) nX2 = nPosX;
- if (nY1 < nPosY) nY1 = nPosY;
- if (nY2 < nPosY) nY2 = nPosY;
-
- Point aScrPos( pViewData->GetScrPos( nX1, nY1, eWhich ) );
-
- long nSizeXPix=0;
- long nSizeYPix=0;
- ScDocument* pDoc = pViewData->GetDocument();
- double nPPTX = pViewData->GetPPTX();
- double nPPTY = pViewData->GetPPTY();
- SCCOLROW i;
-
- BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab );
- long nLayoutSign = bLayoutRTL ? -1 : 1;
-
- if (ValidCol(nX2) && nX2>=nX1)
- for (i=nX1; i<=nX2; i++)
- nSizeXPix += ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(i), nTab ), nPPTX );
- else
- {
- aScrPos.X() -= nLayoutSign;
- nSizeXPix += 2;
- }
-
- if (ValidRow(nY2) && nY2>=nY1)
- for (i=nY1; i<=nY2; i++)
- nSizeYPix += ScViewData::ToPixel( pDoc->GetRowHeight( i, nTab ), nPPTY );
- else
- {
- aScrPos.Y() -= 1;
- nSizeYPix += 2;
- }
-
- aScrPos.X() -= 2 * nLayoutSign;
- aScrPos.Y() -= 2;
-// Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) );
- Rectangle aRect( aScrPos.X(), aScrPos.Y(),
- aScrPos.X() + ( nSizeXPix + 2 ) * nLayoutSign, aScrPos.Y() + nSizeYPix + 2 );
- if ( bLayoutRTL )
- {
- aRect.Left() = aRect.Right(); // end position is left
- aRect.Right() = aScrPos.X();
- }
-
- Invert(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() ));
- Invert(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() ));
- Invert(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 ));
- Invert(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() ));
-
- SetMapMode(aOld);
-}
+//UNUSED2008-05 void ScGridWindow::DrawDragRect( SCCOL nX1, SCROW nY1, SCCOL nX2, SCROW nY2 )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( nX2 < pViewData->GetPosX(eHWhich) || nY2 < pViewData->GetPosY(eVWhich) )
+//UNUSED2008-05 return;
+//UNUSED2008-05
+//UNUSED2008-05 Update(); // wegen XOR
+//UNUSED2008-05
+//UNUSED2008-05 MapMode aOld = GetMapMode(); SetMapMode(MAP_PIXEL);
+//UNUSED2008-05
+//UNUSED2008-05 SCTAB nTab = pViewData->GetTabNo();
+//UNUSED2008-05
+//UNUSED2008-05 SCCOL nPosX = pViewData->GetPosX(WhichH(eWhich));
+//UNUSED2008-05 SCROW nPosY = pViewData->GetPosY(WhichV(eWhich));
+//UNUSED2008-05 if (nX1 < nPosX) nX1 = nPosX;
+//UNUSED2008-05 if (nX2 < nPosX) nX2 = nPosX;
+//UNUSED2008-05 if (nY1 < nPosY) nY1 = nPosY;
+//UNUSED2008-05 if (nY2 < nPosY) nY2 = nPosY;
+//UNUSED2008-05
+//UNUSED2008-05 Point aScrPos( pViewData->GetScrPos( nX1, nY1, eWhich ) );
+//UNUSED2008-05
+//UNUSED2008-05 long nSizeXPix=0;
+//UNUSED2008-05 long nSizeYPix=0;
+//UNUSED2008-05 ScDocument* pDoc = pViewData->GetDocument();
+//UNUSED2008-05 double nPPTX = pViewData->GetPPTX();
+//UNUSED2008-05 double nPPTY = pViewData->GetPPTY();
+//UNUSED2008-05 SCCOLROW i;
+//UNUSED2008-05
+//UNUSED2008-05 BOOL bLayoutRTL = pDoc->IsLayoutRTL( nTab );
+//UNUSED2008-05 long nLayoutSign = bLayoutRTL ? -1 : 1;
+//UNUSED2008-05
+//UNUSED2008-05 if (ValidCol(nX2) && nX2>=nX1)
+//UNUSED2008-05 for (i=nX1; i<=nX2; i++)
+//UNUSED2008-05 nSizeXPix += ScViewData::ToPixel( pDoc->GetColWidth( static_cast<SCCOL>(i), nTab ), nPPTX );
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 aScrPos.X() -= nLayoutSign;
+//UNUSED2008-05 nSizeXPix += 2;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 if (ValidRow(nY2) && nY2>=nY1)
+//UNUSED2008-05 for (i=nY1; i<=nY2; i++)
+//UNUSED2008-05 nSizeYPix += ScViewData::ToPixel( pDoc->GetRowHeight( i, nTab ), nPPTY );
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 aScrPos.Y() -= 1;
+//UNUSED2008-05 nSizeYPix += 2;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 aScrPos.X() -= 2 * nLayoutSign;
+//UNUSED2008-05 aScrPos.Y() -= 2;
+//UNUSED2008-05 // Rectangle aRect( aScrPos, Size( nSizeXPix + 3, nSizeYPix + 3 ) );
+//UNUSED2008-05 Rectangle aRect( aScrPos.X(), aScrPos.Y(),
+//UNUSED2008-05 aScrPos.X() + ( nSizeXPix + 2 ) * nLayoutSign, aScrPos.Y() + nSizeYPix + 2 );
+//UNUSED2008-05 if ( bLayoutRTL )
+//UNUSED2008-05 {
+//UNUSED2008-05 aRect.Left() = aRect.Right(); // end position is left
+//UNUSED2008-05 aRect.Right() = aScrPos.X();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 Invert(Rectangle( aRect.Left(), aRect.Top(), aRect.Left()+2, aRect.Bottom() ));
+//UNUSED2008-05 Invert(Rectangle( aRect.Right()-2, aRect.Top(), aRect.Right(), aRect.Bottom() ));
+//UNUSED2008-05 Invert(Rectangle( aRect.Left()+3, aRect.Top(), aRect.Right()-3, aRect.Top()+2 ));
+//UNUSED2008-05 Invert(Rectangle( aRect.Left()+3, aRect.Bottom()-2, aRect.Right()-3, aRect.Bottom() ));
+//UNUSED2008-05
+//UNUSED2008-05 SetMapMode(aOld);
+//UNUSED2008-05 }
// -------------------------------------------------------------------------
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx
index 042c4cf7d461..5ac563987e65 100644
--- a/sc/source/ui/view/olinewin.cxx
+++ b/sc/source/ui/view/olinewin.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: olinewin.cxx,v $
- * $Revision: 1.15 $
+ * $Revision: 1.15.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -151,14 +151,6 @@ void ScOutlineWindow::ScrollPixel( long nDiff )
ShowFocus();
}
-void ScOutlineWindow::ScrollRel( long nEntryDiff )
-{
- if ( mbHoriz )
- Scroll( nEntryDiff, 0 );
- else
- Scroll( 0, nEntryDiff );
-}
-
void ScOutlineWindow::ScrollRel( long nEntryDiff, long nEntryStart, long nEntryEnd )
{
Rectangle aRect( GetRectangle( 0, nEntryStart, GetOutputSizeLevel() - 1, nEntryEnd ) );
diff --git a/sc/source/ui/view/output.cxx b/sc/source/ui/view/output.cxx
index 5691af60d7c4..936e083cd0af 100644
--- a/sc/source/ui/view/output.cxx
+++ b/sc/source/ui/view/output.cxx
@@ -1146,11 +1146,6 @@ size_t lclGetArrayColFromCellInfoX( USHORT nCellInfoX, USHORT nCellInfoFirstX, U
return static_cast< size_t >( bRTL ? (nCellInfoLastX + 2 - nCellInfoX) : (nCellInfoX - nCellInfoFirstX) );
}
-USHORT lclGetCellInfoXFromArrayCol( size_t nCol, USHORT nCellInfoFirstX, USHORT nCellInfoLastX, bool bRTL )
-{
- return static_cast< USHORT >( bRTL ? (nCellInfoLastX + 2 - nCol) : (nCol + nCellInfoFirstX) );
-}
-
void ScOutputData::DrawFrame()
{
ULONG nOldDrawMode = pDev->GetDrawMode();
@@ -1690,81 +1685,6 @@ void ScOutputData::DrawRotatedFrame( const Color* pForceColor )
// Drucker
-void ScOutputData::DrawPageBorder( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY )
-{
- PutInOrder( nStartX, nEndX );
- PutInOrder( nStartY, nEndY );
-
- if ( nStartX <= nX2 && nEndX >= nX1 &&
- nStartY <= nY2 && nEndY >= nY1 )
- {
- long nMinX = nScrX;
- long nMinY = nScrY;
- long nMaxX = nScrX+nScrW-1;
- long nMaxY = nScrY+nScrH-1;
- BOOL bTop = FALSE;
- BOOL bBottom = FALSE;
- BOOL bLeft = FALSE;
- BOOL bRight = FALSE;
-
- long nPosY = nScrY;
- for (SCSIZE nArrY=1; nArrY+1<nArrCount; nArrY++)
- {
- SCROW nY = pRowInfo[nArrY].nRowNo;
-
- if ( nY==nStartY )
- {
- nMinY = nPosY;
- bTop = TRUE;
- }
-
- if ( nY==nEndY )
- {
-// nMaxY = nPosY + pRowInfo[nArrY].nHeight - 2;
- nMaxY = nPosY + pRowInfo[nArrY].nHeight;
- bBottom = TRUE;
- }
-
- nPosY += pRowInfo[nArrY].nHeight;
- }
-
- long nPosX = nScrX;
- for (SCCOL nX=nX1; nX<=nX2; nX++)
- {
- if ( nX==nStartX )
- {
- nMinX = nPosX;
- bLeft = TRUE;
- }
- if ( nX==nEndX )
- {
-// nMaxX = nPosX + pRowInfo[0].pCellInfo[nX+1].nWidth - 2;
- nMaxX = nPosX + pRowInfo[0].pCellInfo[nX+1].nWidth;
- bRight = TRUE;
- }
- nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth;
- }
-
- pDev->SetLineColor( COL_BLACK );
- if (bTop && bBottom && bLeft && bRight)
- {
- pDev->SetFillColor();
- pDev->DrawRect( Rectangle( nMinX, nMinY, nMaxX, nMaxY ) );
- }
- else
- {
- if (bTop)
- pDev->DrawLine( Point( nMinX,nMinY ), Point( nMaxX,nMinY ) );
- if (bBottom)
- pDev->DrawLine( Point( nMinX,nMaxY ), Point( nMaxX,nMaxY ) );
- if (bLeft)
- pDev->DrawLine( Point( nMinX,nMinY ), Point( nMinX,nMaxY ) );
- if (bRight)
- pDev->DrawLine( Point( nMaxX,nMinY ), Point( nMaxX,nMaxY ) );
- }
- }
-}
-
PolyPolygon ScOutputData::GetChangedArea()
{
PolyPolygon aPoly;
@@ -2402,64 +2322,6 @@ void ScOutputData::AddPDFNotes()
}
}
-long lcl_FindInList( const List& rPosList, const ScAddress &rPos )
-{
- long nCount = rPosList.Count();
- for (long i=0; i<nCount; i++)
- if (*(ScAddress*)rPosList.GetObject(i) == rPos)
- return i+1;
-
- return 0;
-}
-
-void ScOutputData::PrintNoteMarks( const List& rPosList )
-{
- Font aFont;
- ScAutoFontColorMode eColorMode = bUseStyleColor ?
- ( bForceAutoColor ? SC_AUTOCOL_IGNOREFONT : SC_AUTOCOL_DISPLAY ) :
- SC_AUTOCOL_PRINT;
- ((const ScPatternAttr&)pDoc->GetPool()->GetDefaultItem(ATTR_PATTERN)).GetFont(aFont, eColorMode);
- aFont.SetSize( Size( 0, (long) ( 120 * nPPTY ) ) ); // 6 pt
- pDev->SetFont( aFont );
-
- String aStr;
-
- long nPosY = nScrY;
- for (SCSIZE nArrY=1; nArrY+1<nArrCount; nArrY++)
- {
- RowInfo* pThisRowInfo = &pRowInfo[nArrY];
- if ( pThisRowInfo->bChanged )
- {
- long nPosX = nScrX;
- for (SCCOL nX=nX1; nX<=nX2; nX++)
- {
- CellInfo* pInfo = &pThisRowInfo->pCellInfo[nX+1];
- ScBaseCell* pCell = pInfo->pCell;
- if ( pCell && pCell->GetNotePtr() ) // auch verdeckte wegen der Numerierung
- {
- aStr = String::CreateFromInt32( lcl_FindInList( rPosList,
- ScAddress( nX, pThisRowInfo->nRowNo, nTab)));
- long nMarkX = nPosX + pRowInfo[0].pCellInfo[nX+1].nWidth - 2 -
- pDev->GetTextWidth(aStr);
- pDev->DrawText( Point( nMarkX,nPosY ), aStr );
- }
-
- nPosX += pRowInfo[0].pCellInfo[nX+1].nWidth;
- }
- }
- nPosY += pThisRowInfo->nHeight;
- }
-}
-
-void ScOutputData::ConnectObject( const uno::Reference < embed::XEmbeddedObject >& rRef, SdrOle2Obj* pOleObj )
-{
- if (rRef.is())
- {
- if ( rRef->getStatus( pOleObj->GetAspect() ) & embed::EmbedMisc::MS_EMBED_ACTIVATEWHENVISIBLE )
- pViewShell->ConnectObject( pOleObj );
- }
-}
-
void ScOutputData::DrawClipMarks()
{
if (!bAnyClipped)
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 3aa452bd2229..63b2eafefce7 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -136,7 +136,6 @@ public:
void SetPatternSimple( const ScPatternAttr* pNew, const SfxItemSet* pSet );
BOOL SetText( ScBaseCell* pCell ); // TRUE -> pOldPattern vergessen
- void ResetText();
void SetHashText();
void SetAutoText( const String& rAutoText );
@@ -165,7 +164,6 @@ public:
BOOL HasCondHeight() const { return pCondSet && SFX_ITEM_SET ==
pCondSet->GetItemState( ATTR_FONT_HEIGHT, TRUE ); }
- BOOL IsRightToLeftAttr() const;
BOOL HasEditCharacters() const;
};
@@ -508,14 +506,6 @@ BOOL ScDrawStringsVars::SetText( ScBaseCell* pCell )
return bChanged;
}
-void ScDrawStringsVars::ResetText()
-{
- aString.Erase();
- pLastCell = NULL;
- aTextSize = Size(0,0);
- nOriginalWidth = 0;
-}
-
void ScDrawStringsVars::SetHashText()
{
SetAutoText( String::CreateFromAscii(RTL_CONSTASCII_STRINGPARAM("###")) );
@@ -551,14 +541,6 @@ void ScDrawStringsVars::SetAutoText( const String& rAutoText )
pLastCell = NULL; // derselbe Text kann in der naechsten Zelle wieder passen
}
-BOOL ScDrawStringsVars::IsRightToLeftAttr() const
-{
- SvxFrameDirection eCellDir = (SvxFrameDirection)((const SvxFrameDirectionItem&)
- pPattern->GetItem( ATTR_WRITINGDIR, pCondSet )).GetValue();
- return ( eCellDir == FRMDIR_HORI_RIGHT_TOP ||
- ( eCellDir == FRMDIR_ENVIRONMENT && pOutput->nTabTextDirection == EE_HTEXTDIR_R2L ) );
-}
-
BOOL ScDrawStringsVars::HasEditCharacters() const
{
static const sal_Unicode pChars[] =
@@ -847,31 +829,6 @@ inline void lcl_CreateInterpretProgress( BOOL& bProgress, ScDocument* pDoc,
}
}
-BOOL lcl_IsValueDataAtPos( BOOL& bProgress, ScDocument* pDoc,
- SCCOL nCol, SCROW nRow, SCTAB nTab )
-{
- ScBaseCell* pCell;
- pDoc->GetCell( nCol, nRow, nTab, pCell );
- if ( pCell )
- {
- if ( pCell->GetCellType() == CELLTYPE_FORMULA )
- { // kein weiteres Interpret anstossen
- ScFormulaCell* pFCell = (ScFormulaCell*) pCell;
- if ( pFCell->IsRunning() )
- return TRUE;
- else
- {
- lcl_CreateInterpretProgress( bProgress, pDoc, pFCell );
- return pFCell->HasValueData();
- }
- }
- else
- return pCell->HasValueData();
- }
- else
- return FALSE;
-}
-
inline BYTE GetScriptType( ScDocument* pDoc, ScBaseCell* pCell,
const ScPatternAttr* pPattern,
const SfxItemSet* pCondSet )
@@ -954,38 +911,6 @@ BOOL ScOutputData::IsAvailable( SCCOL nX, SCROW nY )
return TRUE;
}
-long ScOutputData::GetAvailableWidth( SCCOL nX, SCROW nY, long nNeeded )
-{
- // get the pixel width that's available for the cell's text,
- // including cells outside of the current screen area
-
- long nAvailable = (long) ( pDoc->GetColWidth( nX, nTab ) * nPPTX ); // cell itself
-
- const ScMergeAttr* pMerge = (const ScMergeAttr*)pDoc->GetAttr( nX, nY, nTab, ATTR_MERGE );
- if ( pMerge->IsMerged() )
- {
- // for merged cells, allow only the merged area
- SCCOL nCount = pMerge->GetColMerge();
- for (SCCOL nAdd=1; nAdd<nCount; nAdd++)
- nAvailable += (long) ( pDoc->GetColWidth( nX + nAdd, nTab ) * nPPTX );
- }
- else
- {
- // look for empty cells into which the text can be extended
- while ( nAvailable < nNeeded && nX < MAXCOL && IsAvailable( nX+1, nY ) )
- {
- ++nX;
- nAvailable += (long) ( pDoc->GetColWidth( nX, nTab ) * nPPTX );
- }
- }
-
- if ( bMarkClipped && nAvailable < nNeeded )
- nAvailable -= (long)( SC_CLIPMARK_SIZE * nPPTX );
-
- return nAvailable;
-}
-
-
// nX, nArrY: loop variables from DrawStrings / DrawEdit
// nPosX, nPosY: corresponding positions for nX, nArrY
// nCellX, nCellY: position of the cell that contains the text
@@ -1791,28 +1716,6 @@ void ScOutputData::DrawStrings( BOOL bPixelToLogic )
// -------------------------------------------------------------------------------
-Size lcl_GetVertPaperSize( ScDocument* pDoc, SCCOL nCol, SCROW nRow, SCTAB nTab )
-{
- const double nPPTY = HMM_PER_TWIPS;
-
- const ScPatternAttr* pPattern = pDoc->GetPattern( nCol, nRow, nTab );
- const ScMergeAttr& rMerge = (const ScMergeAttr&)pPattern->GetItem(ATTR_MERGE);
-
- long nCellY = (long) ( pDoc->GetRowHeight(nRow,nTab) * nPPTY );
- if ( rMerge.GetRowMerge() > 1 )
- {
- SCROW nCountY = rMerge.GetRowMerge();
- nCellY += (long) pDoc->GetScaledRowHeight( nRow+1, nRow+nCountY-1, nTab, nPPTY);
- }
-
- // only top/bottom margin are interesting
- const SvxMarginItem& rMargin = (const SvxMarginItem&)pPattern->GetItem(ATTR_MARGIN);
- nCellY -= (long) ( rMargin.GetTopMargin() * nPPTY );
- nCellY -= (long) ( rMargin.GetBottomMargin() * nPPTY );
-
- return Size( nCellY - 1, 1000000 ); // cell height as width for PaperSize
-}
-
void lcl_ClearEdit( EditEngine& rEngine ) // Text und Attribute
{
rEngine.SetUpdateMode( FALSE );
@@ -2381,80 +2284,6 @@ void ScOutputData::DrawEdit(BOOL bPixelToLogic)
}
pEngine->SetDefaultItem( SvxAdjustItem( eSvxAdjust, EE_PARA_JUST ) );
- // Raender
-
- //! Position und Papersize auf EditUtil umstellen !!!
-
-/* Rectangle aPixRect = ScEditUtil( pDoc,
- nX,nY,nTab, Point(nStartX,nStartY),
- pDev, nPPTX, nPPTY, nZoom )
- .GetEditArea( pPattern );
-
- pDev->SetFillInBrush(Brush(Color(COL_LIGHTRED)));
- pDev->DrawRect(pDev->PixelToLogic(aPixRect));
-*/
-
-#if 0
- Size aPaperSize = Size( 1000000, 1000000 );
- if ( eOrient==SVX_ORIENTATION_STACKED )
- aPaperSize.Width() = nOutWidth; // zum Zentrieren
- else if (bAsianVertical)
- {
- aPaperSize.Width() = nOutWidth;
- if (bBreak)
- {
- // add some extra height (default margin value) for safety
- // as long as GetEditArea isn't used below
- long nExtraHeight = (long)( 20 * nPPTY );
- aPaperSize.Height() = nOutHeight + nExtraHeight;
- }
- }
- else if (bBreak)
- {
- if (eOrient == SVX_ORIENTATION_STANDARD)
- {
- if (eType==OUTTYPE_WINDOW &&
- eOrient!=SVX_ORIENTATION_STACKED &&
- pInfo && pInfo->bAutoFilter)
- {
- long nSub = Min( pRowInfo[nArrY].nHeight,
- (USHORT) DROPDOWN_BITMAP_SIZE );
- if ( nOutWidth > nSub )
- nOutWidth -= nSub;
- }
- aPaperSize.Width() = nOutWidth;
- }
- else
- aPaperSize.Width() = nOutHeight - 1;
- }
- if (bPixelToLogic)
- {
- //! also handle bAsianVertical in GetEditArea
- if ( bBreak && pFmtDevice != pRefDevice && !bAsianVertical )
- {
- // calculate PaperSize for automatic line breaks from logic size,
- // not pixel sizes, to get the same breaks at all scales
-
- if ( eOrient == SVX_ORIENTATION_STANDARD )
- {
- Fraction aFract(1,1);
- Rectangle aUtilRect = ScEditUtil( pDoc,nX,nY,nTab,
- Point(nStartX,nStartY), pDev,
- HMM_PER_TWIPS, HMM_PER_TWIPS, aFract, aFract )
- .GetEditArea( pPattern, FALSE );
- Size aLogic = aUtilRect.GetSize();
- pEngine->SetPaperSize( aLogic );
- }
- else
- pEngine->SetPaperSize( lcl_GetVertPaperSize(pDoc,nX,nY,nTab) );
- }
- else
- pEngine->SetPaperSize(pRefDevice->PixelToLogic(aPaperSize));
- }
- else
- pEngine->SetPaperSize(aPaperSize);
-#endif
-
// Read content from cell
BOOL bWrapFields = FALSE;
diff --git a/sc/source/ui/view/prevloc.cxx b/sc/source/ui/view/prevloc.cxx
index 94824c1720ec..51f6712c70ca 100644
--- a/sc/source/ui/view/prevloc.cxx
+++ b/sc/source/ui/view/prevloc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prevloc.cxx,v $
- * $Revision: 1.16 $
+ * $Revision: 1.16.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -285,18 +285,6 @@ void ScPreviewLocationData::GetDrawRange( USHORT nPos, Rectangle& rPixelRect, Ma
}
}
-ScPreviewLocationEntry* lcl_GetEntryByPosition( const List& rEntries, const Point& rPos, ScPreviewLocationType eType )
-{
- ULONG nCount = rEntries.Count();
- for (ULONG nListPos=0; nListPos<nCount; nListPos++)
- {
- ScPreviewLocationEntry* pEntry = (ScPreviewLocationEntry*)rEntries.GetObject(nListPos);
- if ( pEntry->eType == eType && pEntry->aPixelRect.IsInside( rPos ) )
- return pEntry;
- }
- return NULL;
-}
-
ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAddress& rPos, ScPreviewLocationType eType )
{
ULONG nCount = rEntries.Count();
@@ -309,44 +297,44 @@ ScPreviewLocationEntry* lcl_GetEntryByAddress( const List& rEntries, const ScAdd
return NULL;
}
-ScAddress ScPreviewLocationData::GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const
-{
- const double nScaleX = HMM_PER_TWIPS;
- const double nScaleY = HMM_PER_TWIPS;
-
- Size aOffsetLogic = pWindow->PixelToLogic( rOffsetPixel, aCellMapMode );
- SCTAB nTab = rRange.aStart.Tab();
-
- long nPosX = 0;
- SCCOL nCol = rRange.aStart.Col();
- SCCOL nEndCol = rRange.aEnd.Col();
- while ( nCol <= nEndCol && nPosX < aOffsetLogic.Width() )
- {
- USHORT nDocW = pDoc->GetColWidth( nCol, nTab );
- if (nDocW)
- nPosX += (long) (nDocW * nScaleX);
- ++nCol;
- }
- if ( nCol > rRange.aStart.Col() )
- --nCol;
-
- long nPosY = 0;
- ScCoupledCompressedArrayIterator< SCROW, BYTE, USHORT> aIter(
- pDoc->GetRowFlagsArray( nTab), rRange.aStart.Row(),
- rRange.aEnd.Row(), CR_HIDDEN, 0, pDoc->GetRowHeightArray( nTab));
- while ( aIter && nPosY < aOffsetLogic.Height() )
- {
- USHORT nDocH = *aIter;
- if (nDocH)
- nPosY += (long) (nDocH * nScaleY);
- ++aIter;
- }
- SCROW nRow = aIter.GetPos();
- if ( nRow > rRange.aStart.Row() )
- --nRow;
-
- return ScAddress( nCol, nRow, nTab );
-}
+//UNUSED2008-05 ScAddress ScPreviewLocationData::GetCellFromRange( const Size& rOffsetPixel, const ScRange& rRange ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 const double nScaleX = HMM_PER_TWIPS;
+//UNUSED2008-05 const double nScaleY = HMM_PER_TWIPS;
+//UNUSED2008-05
+//UNUSED2008-05 Size aOffsetLogic = pWindow->PixelToLogic( rOffsetPixel, aCellMapMode );
+//UNUSED2008-05 SCTAB nTab = rRange.aStart.Tab();
+//UNUSED2008-05
+//UNUSED2008-05 long nPosX = 0;
+//UNUSED2008-05 SCCOL nCol = rRange.aStart.Col();
+//UNUSED2008-05 SCCOL nEndCol = rRange.aEnd.Col();
+//UNUSED2008-05 while ( nCol <= nEndCol && nPosX < aOffsetLogic.Width() )
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT nDocW = pDoc->GetColWidth( nCol, nTab );
+//UNUSED2008-05 if (nDocW)
+//UNUSED2008-05 nPosX += (long) (nDocW * nScaleX);
+//UNUSED2008-05 ++nCol;
+//UNUSED2008-05 }
+//UNUSED2008-05 if ( nCol > rRange.aStart.Col() )
+//UNUSED2008-05 --nCol;
+//UNUSED2008-05
+//UNUSED2008-05 long nPosY = 0;
+//UNUSED2008-05 ScCoupledCompressedArrayIterator< SCROW, BYTE, USHORT> aIter(
+//UNUSED2008-05 pDoc->GetRowFlagsArray( nTab), rRange.aStart.Row(),
+//UNUSED2008-05 rRange.aEnd.Row(), CR_HIDDEN, 0, pDoc->GetRowHeightArray( nTab));
+//UNUSED2008-05 while ( aIter && nPosY < aOffsetLogic.Height() )
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT nDocH = *aIter;
+//UNUSED2008-05 if (nDocH)
+//UNUSED2008-05 nPosY += (long) (nDocH * nScaleY);
+//UNUSED2008-05 ++aIter;
+//UNUSED2008-05 }
+//UNUSED2008-05 SCROW nRow = aIter.GetPos();
+//UNUSED2008-05 if ( nRow > rRange.aStart.Row() )
+//UNUSED2008-05 --nRow;
+//UNUSED2008-05
+//UNUSED2008-05 return ScAddress( nCol, nRow, nTab );
+//UNUSED2008-05 }
Rectangle ScPreviewLocationData::GetOffsetPixel( const ScAddress& rCellPos, const ScRange& rRange ) const
{
@@ -377,24 +365,6 @@ Rectangle ScPreviewLocationData::GetOffsetPixel( const ScAddress& rCellPos, cons
return Rectangle( Point( aOffsetPixel.Width(), aOffsetPixel.Height() ), aSizePixel );
}
-BOOL ScPreviewLocationData::GetCell( const Point& rPos, ScAddress& rCellPos, Rectangle& rCellRect ) const
-{
- ScPreviewLocationEntry* pEntry = lcl_GetEntryByPosition( aEntries, rPos, SC_PLOC_CELLRANGE );
- if ( pEntry )
- {
- Size aOffsetPixel( rPos.X() - pEntry->aPixelRect.Left(), rPos.Y() - pEntry->aPixelRect.Top() );
- rCellPos = GetCellFromRange( aOffsetPixel, pEntry->aCellRange );
-
- Rectangle aOffsetRect = GetOffsetPixel( rCellPos, pEntry->aCellRange );
- rCellRect = Rectangle( aOffsetRect.Left() + pEntry->aPixelRect.Left(),
- aOffsetRect.Top() + pEntry->aPixelRect.Top(),
- aOffsetRect.Right() + pEntry->aPixelRect.Left(),
- aOffsetRect.Bottom() + pEntry->aPixelRect.Top() );
- return TRUE;
- }
- return FALSE;
-}
-
BOOL ScPreviewLocationData::GetCellPosition( const ScAddress& rCellPos, Rectangle& rCellRect ) const
{
ScPreviewLocationEntry* pEntry = lcl_GetEntryByAddress( aEntries, rCellPos, SC_PLOC_CELLRANGE );
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx
index 7d2c30a140ea..6f733caecd66 100644
--- a/sc/source/ui/view/prevwsh.cxx
+++ b/sc/source/ui/view/prevwsh.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prevwsh.cxx,v $
- * $Revision: 1.45 $
+ * $Revision: 1.44.30.2 $
*
* This file is part of OpenOffice.org.
*
@@ -144,27 +144,6 @@ void ScPreviewShell::Construct( Window* pParent )
}
ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame,
- const ScPreviewShell& rWin ) :
- SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ),
- pDocShell( rWin.pDocShell ),
- aSourceData( rWin.aSourceData ),
- nSourceDesignMode( rWin.nSourceDesignMode ),
- pAccessibilityBroadcaster( NULL )
-{
- Construct( &pViewFrame->GetWindow() );
-}
-
-ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame,
- Window *pParent ) :
- SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ),
- pDocShell( (ScDocShell*)pViewFrame->GetObjectShell() ),
- nSourceDesignMode( SC_FORCEMODE_NONE ),
- pAccessibilityBroadcaster( NULL )
-{
- Construct( pParent );
-}
-
-ScPreviewShell::ScPreviewShell( SfxViewFrame* pViewFrame,
SfxViewShell* pOldSh ) :
SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ),
pDocShell( (ScDocShell*)pViewFrame->GetObjectShell() ),
diff --git a/sc/source/ui/view/printfun.cxx b/sc/source/ui/view/printfun.cxx
index 4d5f1f72fabe..b035fc3ad8d7 100644
--- a/sc/source/ui/view/printfun.cxx
+++ b/sc/source/ui/view/printfun.cxx
@@ -1144,7 +1144,7 @@ void ScPrintFunc::SetDateTime( const Date& rDate, const Time& rTime )
}
void lcl_DrawGraphic( const Graphic &rGraphic, OutputDevice *pOut,
- const Rectangle &rGrf, const Rectangle &rOut )
+ const Rectangle &rGrf, const Rectangle &rOut )
{
const FASTBOOL bNotInside = !rOut.IsInside( rGrf );
if ( bNotInside )
@@ -1159,22 +1159,6 @@ void lcl_DrawGraphic( const Graphic &rGraphic, OutputDevice *pOut,
pOut->Pop();
}
-void lcl_DrawGraphic( const Bitmap& rBitmap, OutputDevice *pOut,
- const Rectangle &rGrf, const Rectangle &rOut )
-{
- const FASTBOOL bNotInside = !rOut.IsInside( rGrf );
- if ( bNotInside )
- {
- pOut->Push();
- pOut->IntersectClipRegion( rOut );
- }
-
- pOut->DrawBitmap( rGrf.TopLeft(), rGrf.GetSize(), rBitmap );
-
- if ( bNotInside )
- pOut->Pop();
-}
-
void lcl_DrawGraphic( const SvxBrushItem &rBrush, OutputDevice *pOut, OutputDevice* pRefDev,
const Rectangle &rOrg, const Rectangle &rOut )
{
@@ -1770,15 +1754,6 @@ void ScPrintFunc::MakeTableString()
pDoc->GetName( nPrintTab, aFieldData.aTabName );
}
-String lcl_CmdStr( USHORT nId )
-{
- String aDel( ScGlobal::GetRscString( STR_HFCMD_DELIMITER ) );
- String aCmd = aDel;
- aCmd += ScGlobal::GetRscString( nId );
- aCmd += aDel;
- return aCmd;
-}
-
void ScPrintFunc::MakeEditEngine()
{
if (!pEditEngine)
diff --git a/sc/source/ui/view/tabview.cxx b/sc/source/ui/view/tabview.cxx
index 21e440da24df..986de54aacdf 100644
--- a/sc/source/ui/view/tabview.cxx
+++ b/sc/source/ui/view/tabview.cxx
@@ -1086,10 +1086,10 @@ void ScTabView::SetActivePointer( const Pointer& rPointer )
*/
}
-void ScTabView::SetActivePointer( const ResId& )
-{
- DBG_ERRORFILE( "keine Pointer mit ResId!" );
-}
+//UNUSED2008-05 void ScTabView::SetActivePointer( const ResId& )
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERRORFILE( "keine Pointer mit ResId!" );
+//UNUSED2008-05 }
void ScTabView::ActiveGrabFocus()
{
@@ -1098,28 +1098,28 @@ void ScTabView::ActiveGrabFocus()
pGridWin[ePos]->GrabFocus();
}
-void ScTabView::ActiveCaptureMouse()
-{
- ScSplitPos ePos = aViewData.GetActivePart();
- if (pGridWin[ePos])
- pGridWin[ePos]->CaptureMouse();
-}
-
-void ScTabView::ActiveReleaseMouse()
-{
- ScSplitPos ePos = aViewData.GetActivePart();
- if (pGridWin[ePos])
- pGridWin[ePos]->ReleaseMouse();
-}
-
-Point ScTabView::ActivePixelToLogic( const Point& rDevicePoint )
-{
- ScSplitPos ePos = aViewData.GetActivePart();
- if (pGridWin[ePos])
- return pGridWin[ePos]->PixelToLogic(rDevicePoint);
- else
- return Point();
-}
+//UNUSED2008-05 void ScTabView::ActiveCaptureMouse()
+//UNUSED2008-05 {
+//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart();
+//UNUSED2008-05 if (pGridWin[ePos])
+//UNUSED2008-05 pGridWin[ePos]->CaptureMouse();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void ScTabView::ActiveReleaseMouse()
+//UNUSED2008-05 {
+//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart();
+//UNUSED2008-05 if (pGridWin[ePos])
+//UNUSED2008-05 pGridWin[ePos]->ReleaseMouse();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 Point ScTabView::ActivePixelToLogic( const Point& rDevicePoint )
+//UNUSED2008-05 {
+//UNUSED2008-05 ScSplitPos ePos = aViewData.GetActivePart();
+//UNUSED2008-05 if (pGridWin[ePos])
+//UNUSED2008-05 return pGridWin[ePos]->PixelToLogic(rDevicePoint);
+//UNUSED2008-05 else
+//UNUSED2008-05 return Point();
+//UNUSED2008-05 }
ScSplitPos ScTabView::FindWindow( Window* pWindow ) const
{
diff --git a/sc/source/ui/view/tabview3.cxx b/sc/source/ui/view/tabview3.cxx
index 1c13effac8df..bcde44041299 100644
--- a/sc/source/ui/view/tabview3.cxx
+++ b/sc/source/ui/view/tabview3.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabview3.cxx,v $
- * $Revision: 1.69 $
+ * $Revision: 1.67.22.6 $
*
* This file is part of OpenOffice.org.
*
@@ -112,93 +112,6 @@ using namespace com::sun::star;
// -----------------------------------------------------------------------
-// helper class for DoChartSelection
-
-#define SC_BGCOLLECT_FIRST 0
-#define SC_BGCOLLECT_FOUND 1
-#define SC_BGCOLLECT_AMBIGUOUS 2
-
-class ScBackgroundCollector
-{
-private:
- ScDocument* pDoc;
- BOOL bTransparent;
- Color aBackColor;
- USHORT nMode;
-public:
- ScBackgroundCollector( ScDocument* pD );
- void AddRange( const ScRange& rRange );
- Color GetHighlightColor() const;
-};
-
-ScBackgroundCollector::ScBackgroundCollector( ScDocument* pD ) :
- pDoc( pD ),
- bTransparent( FALSE ),
- nMode( SC_BGCOLLECT_FIRST )
-{
-}
-
-void ScBackgroundCollector::AddRange( const ScRange& rRange )
-{
- if ( nMode == SC_BGCOLLECT_AMBIGUOUS )
- return; // nothing more to do
-
- ScDocAttrIterator aIter( pDoc, rRange.aStart.Tab(),
- rRange.aStart.Col(), rRange.aStart.Row(),
- rRange.aEnd.Col(), rRange.aEnd.Row() );
- SCCOL nCol;
- SCROW nRow1, nRow2;
- const ScPatternAttr* pPattern = aIter.GetNext( nCol, nRow1, nRow2 );
- while ( pPattern )
- {
- //! look at conditional formats?
- const Color& rAttrColor = ((const SvxBrushItem&)pPattern->GetItem(ATTR_BACKGROUND)).GetColor();
- BOOL bAttrTransp = ( rAttrColor.GetTransparency() != 0 );
-
- if ( nMode == SC_BGCOLLECT_FIRST )
- {
- // just copy first background
- bTransparent = bAttrTransp;
- aBackColor = rAttrColor;
- nMode = SC_BGCOLLECT_FOUND;
- }
- else if ( nMode == SC_BGCOLLECT_FOUND )
- {
- BOOL bEqual = ( bTransparent == bAttrTransp );
- if ( bEqual && !bTransparent )
- bEqual = ( aBackColor == rAttrColor );
- if ( !bEqual )
- {
- nMode = SC_BGCOLLECT_AMBIGUOUS; // different backgrounds found
- return; // dont need to continue
- }
- }
-
- pPattern = aIter.GetNext( nCol, nRow1, nRow2 );
- }
-}
-
-Color ScBackgroundCollector::GetHighlightColor() const
-{
- if ( nMode == SC_BGCOLLECT_FOUND && !bTransparent )
- {
- // everything formatted with a single background color
- // -> use contrasting color (blue or yellow)
-
- Color aBlue( COL_LIGHTBLUE );
- Color aYellow( COL_YELLOW );
-
- if ( aBackColor.GetColorError(aBlue) >= aBackColor.GetColorError(aYellow) )
- return aBlue;
- else
- return aYellow;
- }
- else
- return Color( COL_LIGHTBLUE ); // default for transparent or ambiguous background
-}
-
-// -----------------------------------------------------------------------
-
//
// --- Public-Funktionen
//
@@ -548,6 +461,7 @@ void ScTabView::CursorPosChanged()
// Broadcast, damit andere Views des Dokuments auch umschalten
ScDocument* pDoc = aViewData.GetDocument();
+#if OLD_PIVOT_IMPLEMENTATION
BOOL bPivot = ( NULL != pDoc->GetPivotAtCursor( aViewData.GetCurX(),
aViewData.GetCurY(),
aViewData.GetTabNo() ) ||
@@ -555,6 +469,11 @@ void ScTabView::CursorPosChanged()
aViewData.GetCurY(),
aViewData.GetTabNo() ) );
aViewData.GetViewShell()->SetPivotShell(bPivot);
+#else
+ bool bDP = NULL != pDoc->GetDPAtCursor(
+ aViewData.GetCurX(), aViewData.GetCurY(), aViewData.GetTabNo() );
+ aViewData.GetViewShell()->SetPivotShell(bDP);
+#endif
// UpdateInputHandler jetzt in CellContentChanged
@@ -2018,20 +1937,6 @@ void ScTabView::UpdateFormulas()
UpdateEditView();
}
-// PaintCell - einzelne Zelle neu zeichnen
-
-void ScTabView::PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
-{
- if ( aViewData.GetTabNo() == nTab )
- {
- USHORT i;
- for (i=0; i<4; i++)
- if (pGridWin[i])
- if (pGridWin[i]->IsVisible())
- pGridWin[i]->Draw( nCol, nRow, nCol, nRow );
- }
-}
-
// PaintArea -Block neu zeichnen
void ScTabView::PaintArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
@@ -2278,19 +2183,43 @@ void ScTabView::DoChartSelection(
// DrawDragRect - Drag&Drop-Rechteck zeichnen (XOR)
-void ScTabView::DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
- ScSplitPos ePos )
-{
- if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX || aViewData.GetVSplitMode() == SC_SPLIT_FIX )
- {
- for (USHORT i=0; i<4; i++)
- if (pGridWin[i])
- if (pGridWin[i]->IsVisible())
- pGridWin[i]->DrawDragRect( nStartX, nStartY, nEndX, nEndY );
- }
- else
- pGridWin[ePos]->DrawDragRect( nStartX, nStartY, nEndX, nEndY );
-}
+//UNUSED2008-05 void ScTabView::DrawDragRect( SCCOL nStartX, SCROW nStartY, SCCOL nEndX, SCROW nEndY,
+//UNUSED2008-05 ScSplitPos ePos )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( aViewData.GetHSplitMode() == SC_SPLIT_FIX || aViewData.GetVSplitMode() == SC_SPLIT_FIX )
+//UNUSED2008-05 {
+//UNUSED2008-05 for (USHORT i=0; i<4; i++)
+//UNUSED2008-05 if (pGridWin[i])
+//UNUSED2008-05 if (pGridWin[i]->IsVisible())
+//UNUSED2008-05 pGridWin[i]->DrawDragRect( nStartX, nStartY, nEndX, nEndY );
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 pGridWin[ePos]->DrawDragRect( nStartX, nStartY, nEndX, nEndY );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 // PaintCell - einzelne Zelle neu zeichnen
+//UNUSED2008-05
+//UNUSED2008-05 void ScTabView::PaintCell( SCCOL nCol, SCROW nRow, SCTAB nTab )
+//UNUSED2008-05 {
+//UNUSED2008-05 if ( aViewData.GetTabNo() == nTab )
+//UNUSED2008-05 {
+//UNUSED2008-05 USHORT i;
+//UNUSED2008-05 for (i=0; i<4; i++)
+//UNUSED2008-05 if (pGridWin[i])
+//UNUSED2008-05 if (pGridWin[i]->IsVisible())
+//UNUSED2008-05 pGridWin[i]->Draw( nCol, nRow, nCol, nRow );
+//UNUSED2008-05 }
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void ScTabView::PaintLeftRow( SCROW nRow )
+//UNUSED2008-05 {
+//UNUSED2008-05 PaintLeftArea( nRow, nRow );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void ScTabView::PaintTopCol( SCCOL nCol )
+//UNUSED2008-05 {
+//UNUSED2008-05 PaintTopArea( nCol, nCol );
+//UNUSED2008-05 }
// PaintGrid - Datenbereiche neu zeichnen
@@ -2333,11 +2262,6 @@ void ScTabView::CreateAnchorHandles(SdrHdlList& rHdl, const ScAddress& rAddress)
}
}
-void ScTabView::PaintTopCol( SCCOL nCol )
-{
- PaintTopArea( nCol, nCol );
-}
-
void ScTabView::PaintTopArea( SCCOL nStartCol, SCCOL nEndCol )
{
// Pixel-Position der linken Kante
@@ -2395,11 +2319,6 @@ void ScTabView::PaintLeft()
}
}
-void ScTabView::PaintLeftRow( SCROW nRow )
-{
- PaintLeftArea( nRow, nRow );
-}
-
void ScTabView::PaintLeftArea( SCROW nStartRow, SCROW nEndRow )
{
// Pixel-Position der oberen Kante
diff --git a/sc/source/ui/view/tabview4.cxx b/sc/source/ui/view/tabview4.cxx
index d8699f8d62c9..bd9b154f10b8 100644
--- a/sc/source/ui/view/tabview4.cxx
+++ b/sc/source/ui/view/tabview4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabview4.cxx,v $
- * $Revision: 1.11 $
+ * $Revision: 1.11.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -335,13 +335,13 @@ void ScTabView::InitRefMode( SCCOL nCurX, SCROW nCurY, SCTAB nCurZ, ScRefType eT
}
}
-void ScTabView::EndSelection()
-{
- ScModule* pScMod = SC_MOD();
- BOOL bRefMode = pScMod->IsFormulaMode();
- if ( bRefMode )
- pScMod->EndReference();
-}
+//UNUSED2008-05 void ScTabView::EndSelection()
+//UNUSED2008-05 {
+//UNUSED2008-05 ScModule* pScMod = SC_MOD();
+//UNUSED2008-05 BOOL bRefMode = pScMod->IsFormulaMode();
+//UNUSED2008-05 if ( bRefMode )
+//UNUSED2008-05 pScMod->EndReference();
+//UNUSED2008-05 }
// static
void ScTabView::SetScrollBar( ScrollBar& rScroll, long nRangeMax, long nVisible, long nPos, BOOL bLayoutRTL )
diff --git a/sc/source/ui/view/tabview5.cxx b/sc/source/ui/view/tabview5.cxx
index 571ea8c30a9f..03f5892427a5 100644
--- a/sc/source/ui/view/tabview5.cxx
+++ b/sc/source/ui/view/tabview5.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabview5.cxx,v $
- * $Revision: 1.26 $
+ * $Revision: 1.25.32.4 $
*
* This file is part of OpenOffice.org.
*
@@ -431,13 +431,13 @@ BOOL ScTabView::IsDrawTextEdit() const
return FALSE;
}
-String ScTabView::GetSelectedChartName() const
-{
- if (pDrawView)
- return pDrawView->GetSelectedChartName();
- else
- return EMPTY_STRING;
-}
+//UNUSED2008-05 String ScTabView::GetSelectedChartName() const
+//UNUSED2008-05 {
+//UNUSED2008-05 if (pDrawView)
+//UNUSED2008-05 return pDrawView->GetSelectedChartName();
+//UNUSED2008-05 else
+//UNUSED2008-05 return EMPTY_STRING;
+//UNUSED2008-05 }
SvxZoomType ScTabView::GetZoomType() const
{
@@ -587,7 +587,6 @@ void ScTabView::DrawEnableAnim(BOOL bSet)
else
{
pDrawView->SetAnimationEnabled(FALSE);
- // StopAnimations am Dokument ist nicht mehr noetig
}
}
}
diff --git a/sc/source/ui/view/tabvwsh2.cxx b/sc/source/ui/view/tabvwsh2.cxx
index 3ac6d9f4734d..f84031af23ec 100644
--- a/sc/source/ui/view/tabvwsh2.cxx
+++ b/sc/source/ui/view/tabvwsh2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwsh2.cxx,v $
- * $Revision: 1.27 $
+ * $Revision: 1.27.32.2 $
*
* This file is part of OpenOffice.org.
*
@@ -323,7 +323,7 @@ void ScTabViewShell::ExecDraw(SfxRequest& rReq)
break;
case SID_DRAW_CHART:
- bChartDlgIsEdit = FALSE;
+//UNUSED2008-05 bChartDlgIsEdit = FALSE;
pTabView->SetDrawFuncPtr(new FuMarkRect(this, pWin, pView, pDoc, aNewReq));
break;
diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx
index 3f1d83848924..c0dc1c97705d 100644
--- a/sc/source/ui/view/tabvwsh4.cxx
+++ b/sc/source/ui/view/tabvwsh4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwsh4.cxx,v $
- * $Revision: 1.76 $
+ * $Revision: 1.75.24.3 $
*
* This file is part of OpenOffice.org.
*
@@ -648,37 +648,26 @@ void ScTabViewShell::DoReadUserData( const String& rData )
//! if ViewData has more tables than document, remove tables in ViewData
}
-
//------------------------------------------------------------------
-void ScTabViewShell::TestFunction( USHORT /* nPar */ )
-{
-/* switch (nPar)
- {
- }
-*/
-}
-
-//------------------------------------------------------------------
-
-void ScTabViewShell::ExecuteShowNIY( SfxRequest& /* rReq */ )
-{
- ErrorMessage(STR_BOX_YNI);
-}
-
-//------------------------------------------------------------------
-
-void ScTabViewShell::StateDisabled( SfxItemSet& rSet )
-{
- SfxWhichIter aIter( rSet );
- USHORT nWhich = aIter.FirstWhich();
-
- while ( nWhich )
- {
- rSet.DisableItem( nWhich );
- nWhich = aIter.NextWhich();
- }
-}
+//UNUSED2008-05 void ScTabViewShell::ExecuteShowNIY( SfxRequest& /* rReq */ )
+//UNUSED2008-05 {
+//UNUSED2008-05 ErrorMessage(STR_BOX_YNI);
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 //------------------------------------------------------------------
+//UNUSED2008-05
+//UNUSED2008-05 void ScTabViewShell::StateDisabled( SfxItemSet& rSet )
+//UNUSED2008-05 {
+//UNUSED2008-05 SfxWhichIter aIter( rSet );
+//UNUSED2008-05 USHORT nWhich = aIter.FirstWhich();
+//UNUSED2008-05
+//UNUSED2008-05 while ( nWhich )
+//UNUSED2008-05 {
+//UNUSED2008-05 rSet.DisableItem( nWhich );
+//UNUSED2008-05 nWhich = aIter.NextWhich();
+//UNUSED2008-05 }
+//UNUSED2008-05 }
void ScTabViewShell::SetDrawShellOrSub()
{
@@ -1117,17 +1106,17 @@ SfxShell* ScTabViewShell::GetMySubShell() const
return NULL; // keine von meinen dabei
}
-void ScTabViewShell::SetMySubShell( SfxShell* pShell )
-{
- SfxShell* pOld = GetMySubShell();
- if ( pOld != pShell )
- {
- if (pOld)
- RemoveSubShell(pOld); // alte SubShell entfernen
- if (pShell)
- AddSubShell(*pShell); // neue setzen
- }
-}
+//UNUSED2008-05 void ScTabViewShell::SetMySubShell( SfxShell* pShell )
+//UNUSED2008-05 {
+//UNUSED2008-05 SfxShell* pOld = GetMySubShell();
+//UNUSED2008-05 if ( pOld != pShell )
+//UNUSED2008-05 {
+//UNUSED2008-05 if (pOld)
+//UNUSED2008-05 RemoveSubShell(pOld); // alte SubShell entfernen
+//UNUSED2008-05 if (pShell)
+//UNUSED2008-05 AddSubShell(*pShell); // neue setzen
+//UNUSED2008-05 }
+//UNUSED2008-05 }
BOOL ScTabViewShell::IsDrawTextShell() const
{
@@ -1701,7 +1690,7 @@ FASTBOOL __EXPORT ScTabViewShell::KeyInput( const KeyEvent &rKeyEvent )
bPrintSelected(FALSE), \
bReadOnly(FALSE), \
pScSbxObject(NULL), \
- bChartDlgIsEdit(FALSE), \
+ /*bChartDlgIsEdit(FALSE),*/ \
bChartAreaValid(FALSE), \
nCurRefDlgId(0), \
pAccessibilityBroadcaster(NULL)
@@ -1894,29 +1883,29 @@ void ScTabViewShell::Construct( BYTE nForceDesignMode )
//------------------------------------------------------------------
-ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame,
- const ScTabViewShell& rWin ) :
- SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ),
- ScDBFunc( &pViewFrame->GetWindow(), rWin, this ),
- __INIT_ScTabViewShell
-{
- RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScTabViewShell::ScTabViewShell" );
-
- Construct();
-
- UpdatePageBreakData();
-
- /*uno::Reference<frame::XFrame> xFrame = pViewFrame->GetFrame()->GetFrameInterface();
- if (xFrame.is())
- xFrame->setComponent( uno::Reference<awt::XWindow>(), new ScTabViewObj( this ) );*/
- // make Controller known to SFX
- new ScTabViewObj( this );
-
- SetCurSubShell(OST_Cell);
- SvBorder aBorder;
- GetBorderSize( aBorder, Size() );
- SetBorderPixel( aBorder );
-}
+//UNUSED2008-05 ScTabViewShell::ScTabViewShell( SfxViewFrame* pViewFrame,
+//UNUSED2008-05 const ScTabViewShell& rWin ) :
+//UNUSED2008-05 SfxViewShell( pViewFrame, SFX_VIEW_MAXIMIZE_FIRST | SFX_VIEW_CAN_PRINT | SFX_VIEW_HAS_PRINTOPTIONS ),
+//UNUSED2008-05 ScDBFunc( &pViewFrame->GetWindow(), rWin, this ),
+//UNUSED2008-05 __INIT_ScTabViewShell
+//UNUSED2008-05 {
+//UNUSED2008-05 RTL_LOGFILE_CONTEXT_AUTHOR ( aLog, "sc", "nn93723", "ScTabViewShell::ScTabViewShell" );
+//UNUSED2008-05
+//UNUSED2008-05 Construct();
+//UNUSED2008-05
+//UNUSED2008-05 UpdatePageBreakData();
+//UNUSED2008-05
+//UNUSED2008-05 /*uno::Reference<frame::XFrame> xFrame = pViewFrame->GetFrame()->GetFrameInterface();
+//UNUSED2008-05 if (xFrame.is())
+//UNUSED2008-05 xFrame->setComponent( uno::Reference<awt::XWindow>(), new ScTabViewObj( this ) );*/
+//UNUSED2008-05 // make Controller known to SFX
+//UNUSED2008-05 new ScTabViewObj( this );
+//UNUSED2008-05
+//UNUSED2008-05 SetCurSubShell(OST_Cell);
+//UNUSED2008-05 SvBorder aBorder;
+//UNUSED2008-05 GetBorderSize( aBorder, Size() );
+//UNUSED2008-05 SetBorderPixel( aBorder );
+//UNUSED2008-05 }
//------------------------------------------------------------------
@@ -2059,10 +2048,10 @@ void ScTabViewShell::SetChartArea( const ScRangeListRef& rSource, const Rectangl
nChartDestTab = GetViewData()->GetTabNo();
}
-void ScTabViewShell::ResetChartArea()
-{
- bChartAreaValid = FALSE;
-}
+//UNUSED2008-05 void ScTabViewShell::ResetChartArea()
+//UNUSED2008-05 {
+//UNUSED2008-05 bChartAreaValid = FALSE;
+//UNUSED2008-05 }
BOOL ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SCTAB& rTab ) const
{
@@ -2072,15 +2061,15 @@ BOOL ScTabViewShell::GetChartArea( ScRangeListRef& rSource, Rectangle& rDest, SC
return bChartAreaValid;
}
-BOOL ScTabViewShell::IsChartDlgEdit() const
-{
- return bChartDlgIsEdit;
-}
-
-const String& ScTabViewShell::GetEditChartName() const
-{
- return aEditChartName;
-}
+//UNUSED2008-05 BOOL ScTabViewShell::IsChartDlgEdit() const
+//UNUSED2008-05 {
+//UNUSED2008-05 return bChartDlgIsEdit;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 const String& ScTabViewShell::GetEditChartName() const
+//UNUSED2008-05 {
+//UNUSED2008-05 return aEditChartName;
+//UNUSED2008-05 }
ScNavigatorSettings* ScTabViewShell::GetNavigatorSettings()
{
diff --git a/sc/source/ui/view/tabvwsh5.cxx b/sc/source/ui/view/tabvwsh5.cxx
index 30fff7df5c62..d64ac1b21915 100644
--- a/sc/source/ui/view/tabvwsh5.cxx
+++ b/sc/source/ui/view/tabvwsh5.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwsh5.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -194,10 +194,6 @@ void __EXPORT ScTabViewShell::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBC
{
SCCOL nCol = pHint->GetCol();
SCROW nRow = pHint->GetRow();
-#if 0
-// Abfrage ist ueberfluessig, passiert bereits in ScInputHandler StartTable
-// if (pDoc->IsSelectionOrBlockEditable( nTab, nCol,nRow, nCol,nRow ))
-#endif
{
HideNoteMarker();
@@ -217,11 +213,6 @@ void __EXPORT ScTabViewShell::SFX_NOTIFY( SfxBroadcaster& rBC, const TypeId& rBC
SetEditShell(pView ,TRUE);
}
}
-#if 0
-// else
-// if (GetViewData()->IsActive())
-// ErrorMessage(STR_PROTECTIONERR);
-#endif
}
}
else if (rHint.ISA(ScTablesHint)) // Tabelle eingefuegt / geloescht
diff --git a/sc/source/ui/view/tabvwshc.cxx b/sc/source/ui/view/tabvwshc.cxx
index bdecdaeb9606..eb1cdf38ff12 100644
--- a/sc/source/ui/view/tabvwshc.cxx
+++ b/sc/source/ui/view/tabvwshc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwshc.cxx,v $
- * $Revision: 1.13 $
+ * $Revision: 1.13.32.1 $
*
* This file is part of OpenOffice.org.
*
@@ -72,19 +72,6 @@
#include "simpref.hxx"
#include "dpobject.hxx"
-// -----------------------------------------------------------------------
-
-//! nach document verschieben !!!
-
-BOOL lcl_IsValueCol( ScDocument* pDoc, SCCOL nCol, SCROW nRow1, SCROW nRow2, SCTAB nTab )
-{
- BOOL bVal = TRUE;
- for (SCROW nRow=nRow1; nRow<=nRow2 && bVal; nRow++)
- if (pDoc->HasStringData( nCol, nRow, nTab ))
- bVal = FALSE;
- return bVal;
-}
-
//------------------------------------------------------------------
void ScTabViewShell::SetCurRefDlgId( USHORT nNew )
@@ -267,109 +254,6 @@ SfxModelessDialog* ScTabViewShell::CreateRefDialog(
{
GetViewData()->SetRefTabNo( GetViewData()->GetTabNo() );
pResult = new ScDPLayoutDlg( pB, pCW, pParent, *pDialogDPObject );
-
-#if 0
- ScDocument* pDoc = GetViewData()->GetDocument();
- SCTAB nTab = 0;
- SCCOL nCol1 = 0;
- SCCOL nCol2 = 0;
- SCROW nRow1 = 0;
- SCROW nRow2 = 0;
-
- ScPivot* pPivot = pDoc->GetPivotAtCursor(
- GetViewData()->GetCurX(),
- GetViewData()->GetCurY(),
- GetViewData()->GetTabNo() );
- ScDPObject* pDPObj = pDoc->GetDPAtCursor(
- GetViewData()->GetCurX(),
- GetViewData()->GetCurY(),
- GetViewData()->GetTabNo() );
- ScPivotParam aPivotParam;
-
- if ( pPivot ) // befinden wir uns auf einer Pivot-Tabelle?
- {
- ScArea aArea;
- ScQueryParam aQuery;
- pPivot->GetParam( aPivotParam, aQuery, aArea );
- pPivot->GetSrcArea( nCol1, nRow1, nCol2, nRow2, nTab);
-
- // Quelldatenbereich markieren
- if ( nTab == GetViewData()->GetTabNo() )
- MarkRange( ScRange( nCol1,nRow1,nTab, nCol2,nRow2,nTab ) );
- }
- else if ( pDPObj && pDPObj->IsSheetData() )
- {
- // get (old) ScPivotParam
-
- pDPObj->FillOldParam( aPivotParam );
- ScRange aSource = pDPObj->GetSourceRange();
- nCol1 = aSource.aStart.Col();
- nRow1 = aSource.aStart.Row();
- nCol2 = aSource.aEnd.Col();
- nRow2 = aSource.aEnd.Row();
- nTab = aSource.aStart.Tab();
-
- if ( nTab == GetViewData()->GetTabNo() )
- MarkRange( ScRange( nCol1,nRow1,nTab, nCol2,nRow2,nTab ) );
- }
- else // neue Pivot-Tabelle erzeugen
- {
- ScDBData* pDBData = GetDBData();
- String aErrMsg;
-
- pDBData->GetArea( nTab, nCol1, nRow1, nCol2, nRow2 );
-
-
- if (nRow2+2 <= MAXROW - 4) // Default-Ausgabebereich
- { // min. Tabelle hat 5 Zeilen
- aPivotParam.nCol = nCol1;
- aPivotParam.nRow = nRow2+2;
- aPivotParam.nTab = nTab;
- }
- else
- {
- aPivotParam.nCol = 0;
- aPivotParam.nRow = 0;
- aPivotParam.nTab = MAXTAB+1;
- }
-
- }
-
- SfxItemSet aArgSet( GetPool(),
- SCITEM_PIVOTDATA,
- SCITEM_PIVOTDATA );
-
- // Ermitteln der Ueberschriften:
- String aFieldName;
- USHORT nLabelCount = nCol2-nCol1+1;
- SCsCOL nCol = nCol1;
- BOOL bIsValue = FALSE;
- LabelData** aLabelArr = new LabelData*[nLabelCount];
-
- for ( USHORT i=0; i<nLabelCount; i++ )
- {
- pDoc->GetString( nCol, nRow1, nTab, aFieldName );
- if ( !aFieldName )
- aFieldName = ColToAlpha( nCol );
- bIsValue = lcl_IsValueCol( pDoc, nCol, nRow1+1, nRow2, nTab );
- aLabelArr[i] = new LabelData( aFieldName, nCol, bIsValue );
- nCol++;
- }
-
- aPivotParam.SetLabelData( aLabelArr, nLabelCount );
- aArgSet.Put( ScPivotItem( SCITEM_PIVOTDATA, &aPivotParam ) );
-
- // aktuelle Tabelle merken (wg. RefInput im Dialog)
- GetViewData()->SetRefTabNo( GetViewData()->GetTabNo() );
-
- *pPivotSource = ScArea( nTab, nCol1,nRow1, nCol2,nRow2 );
- pResult = new ScPivotLayoutDlg( pB, pCW, pParent, aArgSet );
-
-
- for ( USHORT p=0; p<nLabelCount; p++ )
- delete aLabelArr[p];
- delete [] aLabelArr;
-#endif
}
}
break;
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 6175827f69da..051f4e5c9f78 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewdata.cxx,v $
- * $Revision: 1.66 $
+ * $Revision: 1.65.24.3 $
*
* This file is part of OpenOffice.org.
*
@@ -410,57 +410,57 @@ ScViewData::ScViewData( const ScViewData& rViewData )
CalcPPT();
}
-void ScViewData::SetDocShell( ScDocShell* pShell )
-{
- pDocShell = pShell;
- pDoc = pDocShell->GetDocument();
- *pOptions = pDoc->GetViewOptions();
- CalcPPT();
-}
-
void ScViewData::InitData( ScDocument* pDocument )
{
pDoc = pDocument;
*pOptions = pDoc->GetViewOptions();
}
-void ScViewData::InitFrom( const ScViewData* pRef )
-{
- if (pRef==NULL)
- {
- DBG_ERROR("ScViewData::InitFrom mit NULL");
- return;
- }
-
- aScrSize = pRef->aScrSize;
- nTabNo = pRef->nTabNo;
- eDefZoomType = pRef->eDefZoomType;
- aDefZoomX = pRef->aDefZoomX;
- aDefZoomY = pRef->aDefZoomY;
- aDefPageZoomX = pRef->aDefPageZoomX;
- aDefPageZoomY = pRef->aDefPageZoomY;
- bPagebreak = pRef->bPagebreak;
- aLogicMode = pRef->aLogicMode;
-
- SetGridMode ( pRef->IsGridMode() );
- SetSyntaxMode ( pRef->IsSyntaxMode() );
- SetHeaderMode ( pRef->IsHeaderMode() );
- SetTabMode ( pRef->IsTabMode() );
- SetVScrollMode ( pRef->IsVScrollMode() );
- SetHScrollMode ( pRef->IsHScrollMode() );
- SetOutlineMode ( pRef->IsOutlineMode() );
-
- for (SCTAB i=0; i<=MAXTAB; i++)
- {
- delete pTabData[i];
- if (pRef->pTabData[i])
- pTabData[i] = new ScViewDataTable( *pRef->pTabData[i] );
- else
- pTabData[i] = NULL;
- }
- pThisTab = pTabData[nTabNo];
- CalcPPT();
-}
+//UNUSED2008-05 void ScViewData::InitFrom( const ScViewData* pRef )
+//UNUSED2008-05 {
+//UNUSED2008-05 if (pRef==NULL)
+//UNUSED2008-05 {
+//UNUSED2008-05 DBG_ERROR("ScViewData::InitFrom mit NULL");
+//UNUSED2008-05 return;
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 aScrSize = pRef->aScrSize;
+//UNUSED2008-05 nTabNo = pRef->nTabNo;
+//UNUSED2008-05 eDefZoomType = pRef->eDefZoomType;
+//UNUSED2008-05 aDefZoomX = pRef->aDefZoomX;
+//UNUSED2008-05 aDefZoomY = pRef->aDefZoomY;
+//UNUSED2008-05 aDefPageZoomX = pRef->aDefPageZoomX;
+//UNUSED2008-05 aDefPageZoomY = pRef->aDefPageZoomY;
+//UNUSED2008-05 bPagebreak = pRef->bPagebreak;
+//UNUSED2008-05 aLogicMode = pRef->aLogicMode;
+//UNUSED2008-05
+//UNUSED2008-05 SetGridMode ( pRef->IsGridMode() );
+//UNUSED2008-05 SetSyntaxMode ( pRef->IsSyntaxMode() );
+//UNUSED2008-05 SetHeaderMode ( pRef->IsHeaderMode() );
+//UNUSED2008-05 SetTabMode ( pRef->IsTabMode() );
+//UNUSED2008-05 SetVScrollMode ( pRef->IsVScrollMode() );
+//UNUSED2008-05 SetHScrollMode ( pRef->IsHScrollMode() );
+//UNUSED2008-05 SetOutlineMode ( pRef->IsOutlineMode() );
+//UNUSED2008-05
+//UNUSED2008-05 for (SCTAB i=0; i<=MAXTAB; i++)
+//UNUSED2008-05 {
+//UNUSED2008-05 delete pTabData[i];
+//UNUSED2008-05 if (pRef->pTabData[i])
+//UNUSED2008-05 pTabData[i] = new ScViewDataTable( *pRef->pTabData[i] );
+//UNUSED2008-05 else
+//UNUSED2008-05 pTabData[i] = NULL;
+//UNUSED2008-05 }
+//UNUSED2008-05 pThisTab = pTabData[nTabNo];
+//UNUSED2008-05 CalcPPT();
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 void ScViewData::SetDocShell( ScDocShell* pShell )
+//UNUSED2008-05 {
+//UNUSED2008-05 pDocShell = pShell;
+//UNUSED2008-05 pDoc = pDocShell->GetDocument();
+//UNUSED2008-05 *pOptions = pDoc->GetViewOptions();
+//UNUSED2008-05 CalcPPT();
+//UNUSED2008-05 }
ScDocument* ScViewData::GetDocument() const
{
@@ -579,10 +579,10 @@ void ScViewData::MoveTab( SCTAB nSrcTab, SCTAB nDestTab )
aMarkData.InsertTab( nInsTab ); // ggf. angepasst
}
-void ScViewData::UpdateOle( ScSplitPos /* eWhich */ )
-{
- GetDocShell()->UpdateOle(this);
-}
+//UNUSED2008-05 void ScViewData::UpdateOle( ScSplitPos /* eWhich */ )
+//UNUSED2008-05 {
+//UNUSED2008-05 GetDocShell()->UpdateOle(this);
+//UNUSED2008-05 }
void ScViewData::SetViewShell( ScTabViewShell* pViewSh )
{
@@ -1681,15 +1681,15 @@ SCROW ScViewData::PrevCellsY( ScVSplitPos eWhichY ) const
return CellsAtY( GetPosY( eWhichY ), -1, eWhichY, SC_SIZE_NONE );
}
-SCCOL ScViewData::LastCellsX( ScHSplitPos eWhichX ) const
-{
- return CellsAtX( MAXCOL+1, -1, eWhichX, SC_SIZE_NONE );
-}
-
-SCROW ScViewData::LastCellsY( ScVSplitPos eWhichY ) const
-{
- return CellsAtY( MAXROW+1, -1, eWhichY, SC_SIZE_NONE );
-}
+//UNUSED2008-05 SCCOL ScViewData::LastCellsX( ScHSplitPos eWhichX ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return CellsAtX( MAXCOL+1, -1, eWhichX, SC_SIZE_NONE );
+//UNUSED2008-05 }
+//UNUSED2008-05
+//UNUSED2008-05 SCROW ScViewData::LastCellsY( ScVSplitPos eWhichY ) const
+//UNUSED2008-05 {
+//UNUSED2008-05 return CellsAtY( MAXROW+1, -1, eWhichY, SC_SIZE_NONE );
+//UNUSED2008-05 }
BOOL ScViewData::GetMergeSizePixel( SCCOL nX, SCROW nY, long& rSizeXPix, long& rSizeYPix )
{
diff --git a/sc/source/ui/view/viewfun2.cxx b/sc/source/ui/view/viewfun2.cxx
index 5c390ae9013b..36b2b43b4e81 100644
--- a/sc/source/ui/view/viewfun2.cxx
+++ b/sc/source/ui/view/viewfun2.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewfun2.cxx,v $
- * $Revision: 1.41 $
+ * $Revision: 1.40.20.3 $
*
* This file is part of OpenOffice.org.
*
@@ -829,36 +829,36 @@ void ScViewFunc::EnterBlock( const String& rString, const EditTextObject* pData
//----------------------------------------------------------------------------
-void ScViewFunc::PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd )
-{
- SCTAB nTab = GetViewData()->GetTabNo();
- ScDocument* pDoc = GetViewData()->GetDocument();
-
- USHORT nParts = PAINT_GRID;
- SCCOL nStartCol = 0;
- SCROW nStartRow = 0;
- SCCOL nEndCol = MAXCOL; // fuer Test auf Merge
- SCROW nEndRow = MAXROW;
- if ( bColumns )
- {
- nParts |= PAINT_TOP;
- nStartCol = static_cast<SCCOL>(nStart);
- nEndCol = static_cast<SCCOL>(nEnd);
- }
- else
- {
- nParts |= PAINT_LEFT;
- nStartRow = nStart;
- nEndRow = nEnd;
- }
- if (pDoc->HasAttrib( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab,
- HASATTR_MERGED | HASATTR_OVERLAPPED ))
- {
- nStartCol = 0;
- nStartRow = 0;
- }
- GetViewData()->GetDocShell()->PostPaint( nStartCol,nStartRow,nTab, MAXCOL,MAXROW,nTab, nParts );
-}
+//UNUSED2008-05 void ScViewFunc::PaintWidthHeight( BOOL bColumns, SCCOLROW nStart, SCCOLROW nEnd )
+//UNUSED2008-05 {
+//UNUSED2008-05 SCTAB nTab = GetViewData()->GetTabNo();
+//UNUSED2008-05 ScDocument* pDoc = GetViewData()->GetDocument();
+//UNUSED2008-05
+//UNUSED2008-05 USHORT nParts = PAINT_GRID;
+//UNUSED2008-05 SCCOL nStartCol = 0;
+//UNUSED2008-05 SCROW nStartRow = 0;
+//UNUSED2008-05 SCCOL nEndCol = MAXCOL; // fuer Test auf Merge
+//UNUSED2008-05 SCROW nEndRow = MAXROW;
+//UNUSED2008-05 if ( bColumns )
+//UNUSED2008-05 {
+//UNUSED2008-05 nParts |= PAINT_TOP;
+//UNUSED2008-05 nStartCol = static_cast<SCCOL>(nStart);
+//UNUSED2008-05 nEndCol = static_cast<SCCOL>(nEnd);
+//UNUSED2008-05 }
+//UNUSED2008-05 else
+//UNUSED2008-05 {
+//UNUSED2008-05 nParts |= PAINT_LEFT;
+//UNUSED2008-05 nStartRow = nStart;
+//UNUSED2008-05 nEndRow = nEnd;
+//UNUSED2008-05 }
+//UNUSED2008-05 if (pDoc->HasAttrib( nStartCol,nStartRow,nTab, nEndCol,nEndRow,nTab,
+//UNUSED2008-05 HASATTR_MERGED | HASATTR_OVERLAPPED ))
+//UNUSED2008-05 {
+//UNUSED2008-05 nStartCol = 0;
+//UNUSED2008-05 nStartRow = 0;
+//UNUSED2008-05 }
+//UNUSED2008-05 GetViewData()->GetDocShell()->PostPaint( nStartCol,nStartRow,nTab, MAXCOL,MAXROW,nTab, nParts );
+//UNUSED2008-05 }
//----------------------------------------------------------------------------
diff --git a/sc/source/ui/view/viewfun4.cxx b/sc/source/ui/view/viewfun4.cxx
index 798caabec739..57fef68c5f83 100644
--- a/sc/source/ui/view/viewfun4.cxx
+++ b/sc/source/ui/view/viewfun4.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewfun4.cxx,v $
- * $Revision: 1.39 $
+ * $Revision: 1.39.32.3 $
*
* This file is part of OpenOffice.org.
*
@@ -338,11 +338,11 @@ void ScViewFunc::DoThesaurus( BOOL bRecord )
pDocSh->PostPaintGridAll();
}
-// Spelling Checker - Undo ok
-void ScViewFunc::DoSpellingChecker( BOOL bRecord )
-{
- DoSheetConversion( ScConversionParam( SC_CONVERSION_SPELLCHECK ), bRecord );
-}
+//UNUSED2008-05 // Spelling Checker - Undo ok
+//UNUSED2008-05 void ScViewFunc::DoSpellingChecker( BOOL bRecord )
+//UNUSED2008-05 {
+//UNUSED2008-05 DoSheetConversion( ScConversionParam( SC_CONVERSION_SPELLCHECK ), bRecord );
+//UNUSED2008-05 }
void ScViewFunc::DoHangulHanjaConversion( BOOL bRecord )
{
@@ -489,16 +489,16 @@ void ScViewFunc::DoSheetConversion( const ScConversionParam& rConvParam, BOOL bR
}
-IMPL_LINK_INLINE_START( ScViewFunc, SpellError, void *, nLang )
-{
- SvtLanguageTable aLangTab;
- String aErr = aLangTab.GetString((LanguageType) (ULONG) nLang);
- ErrorHandler::HandleError(*new StringErrorInfo(
- ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS, aErr) );
-
- return 0;
-}
-IMPL_LINK_INLINE_END( ScViewFunc, SpellError, void *, nLang )
+//UNUSED2008-05 IMPL_LINK_INLINE_START( ScViewFunc, SpellError, void *, nLang )
+//UNUSED2008-05 {
+//UNUSED2008-05 SvtLanguageTable aLangTab;
+//UNUSED2008-05 String aErr = aLangTab.GetString((LanguageType) (ULONG) nLang);
+//UNUSED2008-05 ErrorHandler::HandleError(*new StringErrorInfo(
+//UNUSED2008-05 ERRCODE_SVX_LINGU_LANGUAGENOTEXISTS, aErr) );
+//UNUSED2008-05
+//UNUSED2008-05 return 0;
+//UNUSED2008-05 }
+//UNUSED2008-05 IMPL_LINK_INLINE_END( ScViewFunc, SpellError, void *, nLang )
// Pasten von FORMAT_FILE-Items
// wird nicht direkt aus Drop aufgerufen, sondern asynchron -> Dialoge sind erlaubt
diff --git a/sc/source/ui/view/viewfunc.cxx b/sc/source/ui/view/viewfunc.cxx
index 3556fb783372..7860b32a01fe 100644
--- a/sc/source/ui/view/viewfunc.cxx
+++ b/sc/source/ui/view/viewfunc.cxx
@@ -7,7 +7,7 @@
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewfunc.cxx,v $
- * $Revision: 1.46 $
+ * $Revision: 1.44.22.2 $
*
* This file is part of OpenOffice.org.
*
@@ -99,11 +99,11 @@ ScViewFunc::ScViewFunc( Window* pParent, ScDocShell& rDocSh, ScTabViewShell* pVi
{
}
-ScViewFunc::ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ) :
- ScTabView( pParent, rViewFunc, pViewShell ),
- bFormatValid( FALSE )
-{
-}
+//UNUSED2008-05 ScViewFunc::ScViewFunc( Window* pParent, const ScViewFunc& rViewFunc, ScTabViewShell* pViewShell ) :
+//UNUSED2008-05 ScTabView( pParent, rViewFunc, pViewShell ),
+//UNUSED2008-05 bFormatValid( FALSE )
+//UNUSED2008-05 {
+//UNUSED2008-05 }
ScViewFunc::~ScViewFunc()
{