Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
b03baea9
Kaydet (Commit)
b03baea9
authored
Ock 06, 2011
tarafından
Daniel Rentz [dr]
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
dr78: #i96587# oox - import BIFF8 cell notes
üst
1ed3654a
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
135 additions
and
39 deletions
+135
-39
biffhelper.hxx
oox/inc/oox/xls/biffhelper.hxx
+1
-0
commentsbuffer.hxx
oox/inc/oox/xls/commentsbuffer.hxx
+13
-2
drawingmanager.hxx
oox/inc/oox/xls/drawingmanager.hxx
+4
-0
biffdumper.cxx
oox/source/dump/biffdumper.cxx
+17
-0
biffdumper.ini
oox/source/dump/biffdumper.ini
+13
-1
commentsbuffer.cxx
oox/source/xls/commentsbuffer.cxx
+86
-30
drawingmanager.cxx
oox/source/xls/drawingmanager.cxx
+0
-2
worksheetfragment.cxx
oox/source/xls/worksheetfragment.cxx
+1
-4
No files found.
oox/inc/oox/xls/biffhelper.hxx
Dosyayı görüntüle @
b03baea9
...
@@ -425,6 +425,7 @@ const sal_uInt16 BIFF_ID_MTHREADSETTINGS = 0x089A;
...
@@ -425,6 +425,7 @@ const sal_uInt16 BIFF_ID_MTHREADSETTINGS = 0x089A;
const
sal_uInt16
BIFF_ID_MULTBLANK
=
0x00BE
;
const
sal_uInt16
BIFF_ID_MULTBLANK
=
0x00BE
;
const
sal_uInt16
BIFF_ID_MULTRK
=
0x00BD
;
const
sal_uInt16
BIFF_ID_MULTRK
=
0x00BD
;
const
sal_uInt16
BIFF_ID_NOTE
=
0x001C
;
const
sal_uInt16
BIFF_ID_NOTE
=
0x001C
;
const
sal_uInt16
BIFF_ID_NOTESOUND
=
0x0096
;
const
sal_uInt16
BIFF2_ID_NUMBER
=
0x0003
;
const
sal_uInt16
BIFF2_ID_NUMBER
=
0x0003
;
const
sal_uInt16
BIFF3_ID_NUMBER
=
0x0203
;
const
sal_uInt16
BIFF3_ID_NUMBER
=
0x0203
;
const
sal_uInt16
BIFF_ID_OBJ
=
0x005D
;
const
sal_uInt16
BIFF_ID_OBJ
=
0x005D
;
...
...
oox/inc/oox/xls/commentsbuffer.hxx
Dosyayı görüntüle @
b03baea9
...
@@ -40,8 +40,11 @@ struct CommentModel
...
@@ -40,8 +40,11 @@ struct CommentModel
{
{
::
com
::
sun
::
star
::
table
::
CellRangeAddress
::
com
::
sun
::
star
::
table
::
CellRangeAddress
maRange
;
/// Position of the comment in the worksheet.
maRange
;
/// Position of the comment in the worksheet.
RichStringRef
mxText
;
/// Formatted text of the comment.
RichStringRef
mxText
;
/// Formatted text of the comment (not used in BIFF8).
sal_Int32
mnAuthorId
;
/// Identifier of the comment's author.
::
rtl
::
OUString
maAuthor
;
/// Comment author (BIFF8 only).
sal_Int32
mnAuthorId
;
/// Identifier of the comment's author (OOXML and BIFF12 only).
sal_uInt16
mnObjId
;
/// Drawing object identifier (BIFF8 only).
bool
mbVisible
;
/// True = comment is always shown (BIFF2-BIFF8 only).
explicit
CommentModel
();
explicit
CommentModel
();
};
};
...
@@ -66,6 +69,14 @@ public:
...
@@ -66,6 +69,14 @@ public:
/** Finalizes the formatted string of the comment. */
/** Finalizes the formatted string of the comment. */
void
finalizeImport
();
void
finalizeImport
();
private
:
/** Reads a BIFF2-BIFF5 NOTE record. */
void
importNoteBiff2
(
BiffInputStream
&
rStrm
);
/** Reads a BIFF8 NOTE record. */
void
importNoteBiff8
(
BiffInputStream
&
rStrm
);
/** Reads a NOTESOUND record. */
void
importNoteSound
(
BiffInputStream
&
rStrm
);
private
:
private
:
CommentModel
maModel
;
CommentModel
maModel
;
};
};
...
...
oox/inc/oox/xls/drawingmanager.hxx
Dosyayı görüntüle @
b03baea9
...
@@ -39,6 +39,10 @@ namespace com { namespace sun { namespace star {
...
@@ -39,6 +39,10 @@ namespace com { namespace sun { namespace star {
namespace
oox
{
namespace
oox
{
namespace
xls
{
namespace
xls
{
// ============================================================================
const
sal_uInt16
BIFF_OBJ_INVALID_ID
=
0
;
// ============================================================================
// ============================================================================
// Model structures for BIFF OBJ record data
// Model structures for BIFF OBJ record data
// ============================================================================
// ============================================================================
...
...
oox/source/dump/biffdumper.cxx
Dosyayı görüntüle @
b03baea9
...
@@ -2520,6 +2520,8 @@ void WorkbookStreamObject::implDumpRecordBody()
...
@@ -2520,6 +2520,8 @@ void WorkbookStreamObject::implDumpRecordBody()
{
{
dumpHex
<
sal_uInt16
>
(
"flags"
,
"NOTE-FLAGS"
);
dumpHex
<
sal_uInt16
>
(
"flags"
,
"NOTE-FLAGS"
);
dumpDec
<
sal_uInt16
>
(
"obj-id"
);
dumpDec
<
sal_uInt16
>
(
"obj-id"
);
dumpUniString
(
"author"
);
dumpUnused
(
1
);
}
}
else
else
{
{
...
@@ -2529,6 +2531,21 @@ void WorkbookStreamObject::implDumpRecordBody()
...
@@ -2529,6 +2531,21 @@ void WorkbookStreamObject::implDumpRecordBody()
}
}
break
;
break
;
case
BIFF_ID_NOTESOUND
:
dumpHex
<
sal_uInt32
>
(
"identifier"
);
dumpDec
<
sal_uInt32
>
(
"total-data-size"
);
dumpDec
<
sal_uInt32
>
(
"wave-data-size"
);
if
(
dumpDec
<
sal_uInt32
>
(
"fmt-size"
)
>=
16
)
{
dumpDec
<
sal_uInt16
>
(
"format"
,
"NOTESOUND-FORMAT"
);
dumpDec
<
sal_uInt16
>
(
"channels"
);
dumpDec
<
sal_uInt32
>
(
"sampling-rate"
);
dumpDec
<
sal_uInt32
>
(
"data-rate"
);
dumpDec
<
sal_uInt16
>
(
"data-block-size"
);
dumpDec
<
sal_uInt16
>
(
"bits-per-sample"
);
}
break
;
case
BIFF2_ID_NUMBER
:
case
BIFF2_ID_NUMBER
:
case
BIFF3_ID_NUMBER
:
case
BIFF3_ID_NUMBER
:
dumpCellHeader
(
nRecId
==
BIFF2_ID_NUMBER
);
dumpCellHeader
(
nRecId
==
BIFF2_ID_NUMBER
);
...
...
oox/source/dump/biffdumper.ini
Dosyayı görüntüle @
b03baea9
...
@@ -324,7 +324,7 @@ multilist=RECORD-NAMES-BIFF4
...
@@ -324,7 +324,7 @@ multilist=RECORD-NAMES-BIFF4
exclude
=
0x0206,0x0209,0x001E,0x0243
exclude
=
0x0206,0x0209,0x001E,0x0243
0x0085
=
SHEET
0x0085
=
SHEET
0x0088
=
,,,,,,SHEETSOFFSET,SHEETHEADER
0x0088
=
,,,,,,SHEETSOFFSET,SHEETHEADER
0x0090
=
,,,,,SOUND,SYNC
0x0090
=
,,,,,
,NOTE
SOUND,SYNC
0x0098
=
LPR,STANDARDWIDTH,FNGROUPNAME,,FNGROUPCOUNT,,,
0x0098
=
LPR,STANDARDWIDTH,FNGROUPNAME,,FNGROUPCOUNT,,,
0x00A0
=
SCL,PAGESETUP,FNPROTO,PROJEXTSHEET,,,,
0x00A0
=
SCL,PAGESETUP,FNPROTO,PROJEXTSHEET,,,,
0x00A8
=
DRAGDROP,COORDLIST,,GCW,,,,
0x00A8
=
DRAGDROP,COORDLIST,,GCW,,,,
...
@@ -1441,6 +1441,18 @@ shortlist=IMGDATA-ENV,1,windows,apple
...
@@ -1441,6 +1441,18 @@ shortlist=IMGDATA-ENV,1,windows,apple
flagslist
=
NOTE-FLAGS-BIFF8
flagslist
=
NOTE-FLAGS-BIFF8
0x0002
=
visible
0x0002
=
visible
0x0080
=
row-hidden
0x0100
=
col-hidden
end
# NOTESOUND ------------------------------------------------------------------
constlist
=
NOTESOUND-FORMAT
1
=
pcm
3
=
ieee-float
6
=
a-law
7
=
mu-law
0xFFFE
=
extensible
end
end
# OBJ ------------------------------------------------------------------------
# OBJ ------------------------------------------------------------------------
...
...
oox/source/xls/commentsbuffer.cxx
Dosyayı görüntüle @
b03baea9
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
#include "oox/xls/addressconverter.hxx"
#include "oox/xls/addressconverter.hxx"
#include "oox/xls/biffinputstream.hxx"
#include "oox/xls/biffinputstream.hxx"
#include "oox/xls/drawingfragment.hxx"
#include "oox/xls/drawingfragment.hxx"
#include "oox/xls/drawingmanager.hxx"
using
::
rtl
::
OUString
;
using
::
rtl
::
OUString
;
using
::
com
::
sun
::
star
::
uno
::
Reference
;
using
::
com
::
sun
::
star
::
uno
::
Reference
;
...
@@ -56,8 +57,18 @@ namespace xls {
...
@@ -56,8 +57,18 @@ namespace xls {
// ============================================================================
// ============================================================================
namespace
{
const
sal_uInt16
BIFF_NOTE_VISIBLE
=
0x0002
;
}
// namespace
// ============================================================================
CommentModel
::
CommentModel
()
:
CommentModel
::
CommentModel
()
:
mnAuthorId
(
-
1
)
mnAuthorId
(
-
1
),
mnObjId
(
BIFF_OBJ_INVALID_ID
),
mbVisible
(
false
)
{
{
}
}
...
@@ -86,33 +97,29 @@ void Comment::importComment( RecordInputStream& rStrm )
...
@@ -86,33 +97,29 @@ void Comment::importComment( RecordInputStream& rStrm )
void
Comment
::
importNote
(
BiffInputStream
&
rStrm
)
void
Comment
::
importNote
(
BiffInputStream
&
rStrm
)
{
{
BinAddress
aBinAddr
;
BinAddress
aBinAddr
;
sal_uInt16
nTotalLen
;
rStrm
>>
aBinAddr
;
rStrm
>>
aBinAddr
>>
nTotalLen
;
// cell range will be checked while inserting the comment into the document
// cell range will be checked while inserting the comment into the document
getAddressConverter
().
convertToCellRangeUnchecked
(
maModel
.
maRange
,
BinRange
(
aBinAddr
),
getSheetIndex
()
);
getAddressConverter
().
convertToCellRangeUnchecked
(
maModel
.
maRange
,
BinRange
(
aBinAddr
),
getSheetIndex
()
);
RichStringRef
xNoteText
=
createText
();
sal_uInt16
nPartLen
=
::
std
::
min
(
nTotalLen
,
static_cast
<
sal_uInt16
>
(
rStrm
.
getRemaining
()
)
);
// remaining record data is BIFF dependent
xNoteText
->
importCharArray
(
rStrm
,
nPartLen
,
getTextEncoding
()
);
switch
(
getBiff
()
)
nTotalLen
=
nTotalLen
-
nPartLen
;
// operator-=() gives compiler warning
while
(
(
nTotalLen
>
0
)
&&
(
rStrm
.
getNextRecId
()
==
BIFF_ID_NOTE
)
&&
rStrm
.
startNextRecord
()
)
{
{
rStrm
>>
aBinAddr
>>
nPartLen
;
case
BIFF2
:
OSL_ENSURE
(
aBinAddr
.
mnRow
==
0xFFFF
,
"Comment::importNote - missing continuation NOTE record"
);
case
BIFF3
:
if
(
aBinAddr
.
mnRow
==
0xFFFF
)
importNoteBiff2
(
rStrm
);
{
break
;
OSL_ENSURE
(
nPartLen
<=
nTotalLen
,
"Comment::importNote - string too long"
);
case
BIFF4
:
// call to RichString::importCharArray() appends new text portion
case
BIFF5
:
xNoteText
->
importCharArray
(
rStrm
,
nPartLen
,
getTextEncoding
()
);
importNoteBiff2
(
rStrm
);
nTotalLen
=
nTotalLen
-
::
std
::
min
(
nTotalLen
,
nPartLen
);
// in BIFF4 and BIFF5, comments can have an associated sound
}
if
(
(
rStrm
.
getNextRecId
()
==
BIFF_ID_NOTESOUND
)
&&
rStrm
.
startNextRecord
()
)
else
importNoteSound
(
rStrm
);
{
break
;
// seems to be a new note, rewind record, so worksheet fragment loop will find it
case
BIFF8
:
rStrm
.
rewindRecord
();
importNoteBiff8
(
rStrm
);
nTotalLen
=
0
;
break
;
}
case
BIFF_UNKNOWN
:
break
;
}
}
}
}
...
@@ -135,12 +142,15 @@ void Comment::finalizeImport()
...
@@ -135,12 +142,15 @@ void Comment::finalizeImport()
Reference
<
XSheetAnnotations
>
xAnnos
(
xAnnosSupp
->
getAnnotations
(),
UNO_SET_THROW
);
Reference
<
XSheetAnnotations
>
xAnnos
(
xAnnosSupp
->
getAnnotations
(),
UNO_SET_THROW
);
// non-empty string required by note implementation (real text will be added below)
// non-empty string required by note implementation (real text will be added below)
xAnnos
->
insertNew
(
aNotePos
,
OUString
(
sal_Unicode
(
' '
)
)
);
xAnnos
->
insertNew
(
aNotePos
,
OUString
(
sal_Unicode
(
' '
)
)
);
// receive craeted note from cell (insertNew does not return the note)
// receive created note from cell (insertNew does not return the note)
Reference
<
XSheetAnnotationAnchor
>
xAnnoAnchor
(
getCell
(
aNotePos
),
UNO_QUERY_THROW
);
Reference
<
XSheetAnnotationAnchor
>
xAnnoAnchor
(
getCell
(
aNotePos
),
UNO_QUERY_THROW
);
Reference
<
XSheetAnnotation
>
xAnno
(
xAnnoAnchor
->
getAnnotation
(),
UNO_SET_THROW
);
Reference
<
XSheetAnnotation
>
xAnno
(
xAnnoAnchor
->
getAnnotation
(),
UNO_SET_THROW
);
Reference
<
XSheetAnnotationShapeSupplier
>
xAnnoShapeSupp
(
xAnno
,
UNO_QUERY_THROW
);
Reference
<
XSheetAnnotationShapeSupplier
>
xAnnoShapeSupp
(
xAnno
,
UNO_QUERY_THROW
);
Reference
<
XShape
>
xAnnoShape
(
xAnnoShapeSupp
->
getAnnotationShape
(),
UNO_SET_THROW
);
Reference
<
XShape
>
xAnnoShape
(
xAnnoShapeSupp
->
getAnnotationShape
(),
UNO_SET_THROW
);
// convert shape formatting
// convert shape formatting and visibility
sal_Bool
bVisible
=
sal_True
;
switch
(
getFilterType
()
)
switch
(
getFilterType
()
)
{
{
case
FILTER_OOX
:
case
FILTER_OOX
:
...
@@ -150,17 +160,17 @@ void Comment::finalizeImport()
...
@@ -150,17 +160,17 @@ void Comment::finalizeImport()
pNoteShape
->
convertFormatting
(
xAnnoShape
);
pNoteShape
->
convertFormatting
(
xAnnoShape
);
// visibility
// visibility
const
::
oox
::
vml
::
ShapeModel
::
ShapeClientDataPtr
&
rxClientData
=
pNoteShape
->
getShapeModel
().
mxClientData
;
const
::
oox
::
vml
::
ShapeModel
::
ShapeClientDataPtr
&
rxClientData
=
pNoteShape
->
getShapeModel
().
mxClientData
;
bool
bVisible
=
rxClientData
.
get
()
&&
rxClientData
->
mbVisible
;
bVisible
=
rxClientData
.
get
()
&&
rxClientData
->
mbVisible
;
xAnno
->
setIsVisible
(
bVisible
);
}
}
break
;
break
;
case
FILTER_BIFF
:
case
FILTER_BIFF
:
// notes are always hidden and unformatted in BIFF3-BIFF5
bVisible
=
maModel
.
mbVisible
;
xAnno
->
setIsVisible
(
sal_False
);
break
;
break
;
case
FILTER_UNKNOWN
:
case
FILTER_UNKNOWN
:
break
;
break
;
}
}
xAnno
->
setIsVisible
(
bVisible
);
// insert text and convert text formatting
// insert text and convert text formatting
maModel
.
mxText
->
finalizeImport
();
maModel
.
mxText
->
finalizeImport
();
Reference
<
XText
>
xAnnoText
(
xAnnoShape
,
UNO_QUERY_THROW
);
Reference
<
XText
>
xAnnoText
(
xAnnoShape
,
UNO_QUERY_THROW
);
...
@@ -171,6 +181,52 @@ void Comment::finalizeImport()
...
@@ -171,6 +181,52 @@ void Comment::finalizeImport()
}
}
}
}
// private --------------------------------------------------------------------
void
Comment
::
importNoteBiff2
(
BiffInputStream
&
rStrm
)
{
sal_uInt16
nTotalLen
;
rStrm
>>
nTotalLen
;
sal_uInt16
nPartLen
=
::
std
::
min
(
nTotalLen
,
static_cast
<
sal_uInt16
>
(
rStrm
.
getRemaining
()
)
);
RichStringRef
xNoteText
=
createText
();
xNoteText
->
importCharArray
(
rStrm
,
nPartLen
,
getTextEncoding
()
);
nTotalLen
=
nTotalLen
-
nPartLen
;
// operator-=() gives compiler warning
while
(
(
nTotalLen
>
0
)
&&
(
rStrm
.
getNextRecId
()
==
BIFF_ID_NOTE
)
&&
rStrm
.
startNextRecord
()
)
{
sal_uInt16
nMarker
;
rStrm
>>
nMarker
;
rStrm
.
skip
(
2
);
rStrm
>>
nPartLen
;
OSL_ENSURE
(
nMarker
==
0xFFFF
,
"Comment::importNoteBiff2 - missing continuation NOTE record"
);
if
(
nMarker
==
0xFFFF
)
{
OSL_ENSURE
(
nPartLen
<=
nTotalLen
,
"Comment::importNoteBiff2 - string too long"
);
// call to RichString::importCharArray() appends new text portion
xNoteText
->
importCharArray
(
rStrm
,
nPartLen
,
getTextEncoding
()
);
nTotalLen
=
nTotalLen
-
::
std
::
min
(
nTotalLen
,
nPartLen
);
}
else
{
// seems to be a new note, rewind record, so worksheet fragment loop will find it
rStrm
.
rewindRecord
();
nTotalLen
=
0
;
}
}
}
void
Comment
::
importNoteBiff8
(
BiffInputStream
&
rStrm
)
{
sal_uInt16
nFlags
;
rStrm
>>
nFlags
>>
maModel
.
mnObjId
;
maModel
.
maAuthor
=
rStrm
.
readUniString
();
maModel
.
mbVisible
=
getFlag
(
nFlags
,
BIFF_NOTE_VISIBLE
);
}
void
Comment
::
importNoteSound
(
BiffInputStream
&
/*rStrm*/
)
{
}
// ============================================================================
// ============================================================================
CommentsBuffer
::
CommentsBuffer
(
const
WorksheetHelper
&
rHelper
)
:
CommentsBuffer
::
CommentsBuffer
(
const
WorksheetHelper
&
rHelper
)
:
...
...
oox/source/xls/drawingmanager.cxx
Dosyayı görüntüle @
b03baea9
...
@@ -51,8 +51,6 @@ namespace {
...
@@ -51,8 +51,6 @@ namespace {
// OBJ record -----------------------------------------------------------------
// OBJ record -----------------------------------------------------------------
const
sal_uInt16
BIFF_OBJ_INVALID_ID
=
0
;
const
sal_uInt16
BIFF_OBJTYPE_GROUP
=
0
;
const
sal_uInt16
BIFF_OBJTYPE_GROUP
=
0
;
const
sal_uInt16
BIFF_OBJTYPE_LINE
=
1
;
const
sal_uInt16
BIFF_OBJTYPE_LINE
=
1
;
const
sal_uInt16
BIFF_OBJTYPE_RECTANGLE
=
2
;
const
sal_uInt16
BIFF_OBJTYPE_RECTANGLE
=
2
;
...
...
oox/source/xls/worksheetfragment.cxx
Dosyayı görüntüle @
b03baea9
...
@@ -804,6 +804,7 @@ bool BiffWorksheetFragment::importFragment()
...
@@ -804,6 +804,7 @@ bool BiffWorksheetFragment::importFragment()
case
BIFF_ID_HORPAGEBREAKS
:
importPageBreaks
(
true
);
break
;
case
BIFF_ID_HORPAGEBREAKS
:
importPageBreaks
(
true
);
break
;
case
BIFF_ID_ITERATION
:
rWorkbookSett
.
importIteration
(
mrStrm
);
break
;
case
BIFF_ID_ITERATION
:
rWorkbookSett
.
importIteration
(
mrStrm
);
break
;
case
BIFF_ID_LEFTMARGIN
:
rPageSett
.
importLeftMargin
(
mrStrm
);
break
;
case
BIFF_ID_LEFTMARGIN
:
rPageSett
.
importLeftMargin
(
mrStrm
);
break
;
case
BIFF_ID_NOTE
:
importNote
();
break
;
case
BIFF_ID_PANE
:
rSheetViewSett
.
importPane
(
mrStrm
);
break
;
case
BIFF_ID_PANE
:
rSheetViewSett
.
importPane
(
mrStrm
);
break
;
case
BIFF_ID_PASSWORD
:
rWorksheetSett
.
importPassword
(
mrStrm
);
break
;
case
BIFF_ID_PASSWORD
:
rWorksheetSett
.
importPassword
(
mrStrm
);
break
;
case
BIFF_ID_PRINTGRIDLINES
:
rPageSett
.
importPrintGridLines
(
mrStrm
);
break
;
case
BIFF_ID_PRINTGRIDLINES
:
rPageSett
.
importPrintGridLines
(
mrStrm
);
break
;
...
@@ -823,7 +824,6 @@ bool BiffWorksheetFragment::importFragment()
...
@@ -823,7 +824,6 @@ bool BiffWorksheetFragment::importFragment()
case
BIFF_ID_COLUMNDEFAULT
:
importColumnDefault
();
break
;
case
BIFF_ID_COLUMNDEFAULT
:
importColumnDefault
();
break
;
case
BIFF_ID_COLWIDTH
:
importColWidth
();
break
;
case
BIFF_ID_COLWIDTH
:
importColWidth
();
break
;
case
BIFF2_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF2_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF_ID_NOTE
:
importNote
();
break
;
case
BIFF2_ID_WINDOW2
:
rSheetViewSett
.
importWindow2
(
mrStrm
);
break
;
case
BIFF2_ID_WINDOW2
:
rSheetViewSett
.
importWindow2
(
mrStrm
);
break
;
}
}
break
;
break
;
...
@@ -834,7 +834,6 @@ bool BiffWorksheetFragment::importFragment()
...
@@ -834,7 +834,6 @@ bool BiffWorksheetFragment::importFragment()
case
BIFF_ID_DEFCOLWIDTH
:
importDefColWidth
();
break
;
case
BIFF_ID_DEFCOLWIDTH
:
importDefColWidth
();
break
;
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_NOTE
:
importNote
();
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_SAVERECALC
:
rWorkbookSett
.
importSaveRecalc
(
mrStrm
);
break
;
case
BIFF_ID_SAVERECALC
:
rWorkbookSett
.
importSaveRecalc
(
mrStrm
);
break
;
...
@@ -851,7 +850,6 @@ bool BiffWorksheetFragment::importFragment()
...
@@ -851,7 +850,6 @@ bool BiffWorksheetFragment::importFragment()
case
BIFF_ID_COLINFO
:
importColInfo
();
break
;
case
BIFF_ID_COLINFO
:
importColInfo
();
break
;
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_NOTE
:
importNote
();
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_PAGESETUP
:
rPageSett
.
importPageSetup
(
mrStrm
);
break
;
case
BIFF_ID_PAGESETUP
:
rPageSett
.
importPageSetup
(
mrStrm
);
break
;
...
@@ -870,7 +868,6 @@ bool BiffWorksheetFragment::importFragment()
...
@@ -870,7 +868,6 @@ bool BiffWorksheetFragment::importFragment()
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF3_ID_DEFROWHEIGHT
:
importDefRowHeight
();
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_HCENTER
:
rPageSett
.
importHorCenter
(
mrStrm
);
break
;
case
BIFF_ID_MERGEDCELLS
:
importMergedCells
();
break
;
// #i62300# also in BIFF5
case
BIFF_ID_MERGEDCELLS
:
importMergedCells
();
break
;
// #i62300# also in BIFF5
case
BIFF_ID_NOTE
:
importNote
();
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJ
:
rDrawing
.
importObj
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_OBJECTPROTECT
:
rWorksheetSett
.
importObjectProtect
(
mrStrm
);
break
;
case
BIFF_ID_PAGESETUP
:
rPageSett
.
importPageSetup
(
mrStrm
);
break
;
case
BIFF_ID_PAGESETUP
:
rPageSett
.
importPageSetup
(
mrStrm
);
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment