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
ade4aac3
Kaydet (Commit)
ade4aac3
authored
Nis 08, 2012
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Clean oox::xls::SheetViewSettings
üst
1ea28ebc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
122 deletions
+0
-122
viewsettings.hxx
sc/source/filter/inc/viewsettings.hxx
+0
-9
viewsettings.cxx
sc/source/filter/oox/viewsettings.cxx
+0
-109
unusedcode.easy
unusedcode.easy
+0
-4
No files found.
sc/source/filter/inc/viewsettings.hxx
Dosyayı görüntüle @
ade4aac3
...
@@ -127,15 +127,6 @@ public:
...
@@ -127,15 +127,6 @@ public:
/** Imports the CHARTSHEETVIEW record containing view settings of a chart sheet. */
/** Imports the CHARTSHEETVIEW record containing view settings of a chart sheet. */
void
importChartSheetView
(
SequenceInputStream
&
rStrm
);
void
importChartSheetView
(
SequenceInputStream
&
rStrm
);
/** Imports the WINDOW2 record containing sheet view settings. */
void
importWindow2
(
BiffInputStream
&
rStrm
);
/** Imports the PANE record containing sheet pane settings. */
void
importPane
(
BiffInputStream
&
rStrm
);
/** Imports the SCL record containing sheet zoom settings. */
void
importScl
(
BiffInputStream
&
rStrm
);
/** Imports the SELECTION record containing selection settings for a pane. */
void
importSelection
(
BiffInputStream
&
rStrm
);
/** Converts all imported sheet view settings. */
/** Converts all imported sheet view settings. */
void
finalizeImport
();
void
finalizeImport
();
...
...
sc/source/filter/oox/viewsettings.cxx
Dosyayı görüntüle @
ade4aac3
...
@@ -364,115 +364,6 @@ void SheetViewSettings::importChartSheetView( SequenceInputStream& rStrm )
...
@@ -364,115 +364,6 @@ void SheetViewSettings::importChartSheetView( SequenceInputStream& rStrm )
rModel
.
mbZoomToFit
=
getFlag
(
nFlags
,
BIFF12_CHARTSHEETVIEW_ZOOMTOFIT
);
rModel
.
mbZoomToFit
=
getFlag
(
nFlags
,
BIFF12_CHARTSHEETVIEW_ZOOMTOFIT
);
}
}
void
SheetViewSettings
::
importWindow2
(
BiffInputStream
&
rStrm
)
{
OSL_ENSURE
(
maSheetViews
.
empty
(),
"SheetViewSettings::importWindow2 - multiple WINDOW2 records"
);
SheetViewModel
&
rModel
=
*
createSheetView
();
if
(
getBiff
()
==
BIFF2
)
{
rModel
.
mbShowFormulas
=
rStrm
.
readuInt8
()
!=
0
;
rModel
.
mbShowGrid
=
rStrm
.
readuInt8
()
!=
0
;
rModel
.
mbShowHeadings
=
rStrm
.
readuInt8
()
!=
0
;
rModel
.
mnPaneState
=
(
rStrm
.
readuInt8
()
==
0
)
?
XML_split
:
XML_frozen
;
rModel
.
mbShowZeros
=
rStrm
.
readuInt8
()
!=
0
;
BinAddress
aFirstPos
;
rStrm
>>
aFirstPos
;
rModel
.
maFirstPos
=
getAddressConverter
().
createValidCellAddress
(
aFirstPos
,
getSheetIndex
(),
false
);
rModel
.
mbDefGridColor
=
rStrm
.
readuInt8
()
!=
0
;
rModel
.
maGridColor
.
importColorRgb
(
rStrm
);
}
else
{
sal_uInt16
nFlags
;
BinAddress
aFirstPos
;
rStrm
>>
nFlags
>>
aFirstPos
;
rModel
.
maFirstPos
=
getAddressConverter
().
createValidCellAddress
(
aFirstPos
,
getSheetIndex
(),
false
);
rModel
.
mnPaneState
=
getFlagValue
(
nFlags
,
BIFF_WINDOW2_FROZEN
,
getFlagValue
(
nFlags
,
BIFF_WINDOW2_FROZENNOSPLIT
,
XML_frozen
,
XML_frozenSplit
),
XML_split
);
rModel
.
mbSelected
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SELECTED
);
rModel
.
mbRightToLeft
=
getFlag
(
nFlags
,
BIFF_WINDOW2_RIGHTTOLEFT
);
rModel
.
mbDefGridColor
=
getFlag
(
nFlags
,
BIFF_WINDOW2_DEFGRIDCOLOR
);
rModel
.
mbShowFormulas
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SHOWFORMULAS
);
rModel
.
mbShowGrid
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SHOWGRID
);
rModel
.
mbShowHeadings
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SHOWHEADINGS
);
rModel
.
mbShowZeros
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SHOWZEROS
);
rModel
.
mbShowOutline
=
getFlag
(
nFlags
,
BIFF_WINDOW2_SHOWOUTLINE
);
if
(
getBiff
()
==
BIFF8
)
{
rModel
.
mnViewType
=
getFlagValue
(
nFlags
,
BIFF_WINDOW2_PAGEBREAKMODE
,
XML_pageBreakPreview
,
XML_normal
);
rModel
.
maGridColor
.
importColorId
(
rStrm
);
// zoom data not included in chart sheets
if
(
(
getSheetType
()
!=
SHEETTYPE_CHARTSHEET
)
&&
(
rStrm
.
getRemaining
()
>=
6
)
)
{
rStrm
.
skip
(
2
);
sal_uInt16
nPageZoom
,
nNormalZoom
;
rStrm
>>
nPageZoom
>>
nNormalZoom
;
rModel
.
mnSheetLayoutZoom
=
nPageZoom
;
rModel
.
mnNormalZoom
=
nNormalZoom
;
}
}
else
{
rModel
.
maGridColor
.
importColorRgb
(
rStrm
);
}
}
}
void
SheetViewSettings
::
importPane
(
BiffInputStream
&
rStrm
)
{
OSL_ENSURE
(
!
maSheetViews
.
empty
(),
"SheetViewSettings::importPane - missing leading WINDOW2 record"
);
if
(
!
maSheetViews
.
empty
()
)
{
sal_uInt8
nActivePaneId
;
sal_uInt16
nSplitX
,
nSplitY
;
BinAddress
aSecondPos
;
rStrm
>>
nSplitX
>>
nSplitY
>>
aSecondPos
>>
nActivePaneId
;
SheetViewModel
&
rModel
=
*
maSheetViews
.
back
();
rModel
.
mfSplitX
=
nSplitX
;
rModel
.
mfSplitY
=
nSplitY
;
rModel
.
maSecondPos
=
getAddressConverter
().
createValidCellAddress
(
aSecondPos
,
getSheetIndex
(),
false
);
rModel
.
mnActivePaneId
=
lclGetOoxPaneId
(
nActivePaneId
,
XML_topLeft
);
}
}
void
SheetViewSettings
::
importScl
(
BiffInputStream
&
rStrm
)
{
OSL_ENSURE
(
!
maSheetViews
.
empty
(),
"SheetViewSettings::importScl - missing leading WINDOW2 record"
);
if
(
!
maSheetViews
.
empty
()
)
{
sal_uInt16
nNum
,
nDenom
;
rStrm
>>
nNum
>>
nDenom
;
OSL_ENSURE
(
nDenom
>
0
,
"SheetViewSettings::importScl - invalid denominator"
);
if
(
nDenom
>
0
)
maSheetViews
.
back
()
->
mnCurrentZoom
=
getLimitedValue
<
sal_Int32
,
sal_uInt16
>
(
(
nNum
*
100
)
/
nDenom
,
10
,
400
);
}
}
void
SheetViewSettings
::
importSelection
(
BiffInputStream
&
rStrm
)
{
OSL_ENSURE
(
!
maSheetViews
.
empty
(),
"SheetViewSettings::importPane - missing leading WINDOW2 record"
);
if
(
!
maSheetViews
.
empty
()
)
{
// pane this selection belongs to
sal_uInt8
nPaneId
=
rStrm
.
readuInt8
();
PaneSelectionModel
&
rPaneSel
=
maSheetViews
.
back
()
->
createPaneSelection
(
lclGetOoxPaneId
(
nPaneId
,
-
1
)
);
// cursor position
BinAddress
aActiveCell
;
sal_uInt16
nActiveCellId
;
rStrm
>>
aActiveCell
>>
nActiveCellId
;
rPaneSel
.
maActiveCell
=
getAddressConverter
().
createValidCellAddress
(
aActiveCell
,
getSheetIndex
(),
false
);
rPaneSel
.
mnActiveCellId
=
nActiveCellId
;
// selection
rPaneSel
.
maSelection
.
clear
();
BinRangeList
aSelection
;
aSelection
.
read
(
rStrm
,
false
);
getAddressConverter
().
convertToCellRangeList
(
rPaneSel
.
maSelection
,
aSelection
,
getSheetIndex
(),
false
);
}
}
void
SheetViewSettings
::
finalizeImport
()
void
SheetViewSettings
::
finalizeImport
()
{
{
// force creation of sheet view model to get the Excel defaults
// force creation of sheet view model to get the Excel defaults
...
...
unusedcode.easy
Dosyayı görüntüle @
ade4aac3
...
@@ -815,10 +815,6 @@ oox::xls::Font::importFont(oox::xls::BiffInputStream&)
...
@@ -815,10 +815,6 @@ oox::xls::Font::importFont(oox::xls::BiffInputStream&)
oox::xls::NumberFormatsBuffer::importFormat(oox::xls::BiffInputStream&)
oox::xls::NumberFormatsBuffer::importFormat(oox::xls::BiffInputStream&)
oox::xls::PivotCache::importPCDSource(oox::xls::BiffInputStream&)
oox::xls::PivotCache::importPCDSource(oox::xls::BiffInputStream&)
oox::xls::SheetScenarios::importScenarios(oox::xls::BiffInputStream&)
oox::xls::SheetScenarios::importScenarios(oox::xls::BiffInputStream&)
oox::xls::SheetViewSettings::importPane(oox::xls::BiffInputStream&)
oox::xls::SheetViewSettings::importScl(oox::xls::BiffInputStream&)
oox::xls::SheetViewSettings::importSelection(oox::xls::BiffInputStream&)
oox::xls::SheetViewSettings::importWindow2(oox::xls::BiffInputStream&)
oox::xls::WorkbookGlobals::createBuffersPerSheet(short)
oox::xls::WorkbookGlobals::createBuffersPerSheet(short)
oox::xls::WorkbookGlobals::setCodePage(unsigned short)
oox::xls::WorkbookGlobals::setCodePage(unsigned short)
oox::xls::WorkbookGlobals::setIsWorkbookFile()
oox::xls::WorkbookGlobals::setIsWorkbookFile()
...
...
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