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
c1036d7a
Kaydet (Commit)
c1036d7a
authored
Nis 06, 2012
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove unused code oox::xls::PageSettings
üst
ca8a3e00
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
137 deletions
+0
-137
pagesettings.hxx
sc/source/filter/inc/pagesettings.hxx
+0
-25
pagesettings.cxx
sc/source/filter/oox/pagesettings.cxx
+0
-100
unusedcode.easy
unusedcode.easy
+0
-12
No files found.
sc/source/filter/inc/pagesettings.hxx
Dosyayı görüntüle @
c1036d7a
...
@@ -125,31 +125,6 @@ public:
...
@@ -125,31 +125,6 @@ public:
/** Imports the PICTURE record from the passed stream. */
/** Imports the PICTURE record from the passed stream. */
void
importPicture
(
const
::
oox
::
core
::
Relations
&
rRelations
,
SequenceInputStream
&
rStrm
);
void
importPicture
(
const
::
oox
::
core
::
Relations
&
rRelations
,
SequenceInputStream
&
rStrm
);
/** Imports the LEFTMARGIN record from the passed BIFF stream. */
void
importLeftMargin
(
BiffInputStream
&
rStrm
);
/** Imports the RIGHTMARGIN record from the passed BIFF stream. */
void
importRightMargin
(
BiffInputStream
&
rStrm
);
/** Imports the TOPMARGIN record from the passed BIFF stream. */
void
importTopMargin
(
BiffInputStream
&
rStrm
);
/** Imports the BOTTOMMARGIN record from the passed BIFF stream. */
void
importBottomMargin
(
BiffInputStream
&
rStrm
);
/** Imports the SETUP record from the passed BIFF stream. */
void
importPageSetup
(
BiffInputStream
&
rStrm
);
/** Imports the HCENTER record from the passed BIFF stream. */
void
importHorCenter
(
BiffInputStream
&
rStrm
);
/** Imports the VCENTER record from the passed BIFF stream. */
void
importVerCenter
(
BiffInputStream
&
rStrm
);
/** Imports the PRINTHEADERS record from the passed BIFF stream. */
void
importPrintHeaders
(
BiffInputStream
&
rStrm
);
/** Imports the PRINTGRIDLINES record from the passed BIFF stream. */
void
importPrintGridLines
(
BiffInputStream
&
rStrm
);
/** Imports the HEADER record from the passed BIFF stream. */
void
importHeader
(
BiffInputStream
&
rStrm
);
/** Imports the FOOTER record from the passed BIFF stream. */
void
importFooter
(
BiffInputStream
&
rStrm
);
/** Imports the PICTURE record from the passed BIFF stream. */
void
importPicture
(
BiffInputStream
&
rStrm
);
/** Sets whether percentual scaling or fit to width/height scaling is used. */
/** Sets whether percentual scaling or fit to width/height scaling is used. */
void
setFitToPagesMode
(
bool
bFitToPages
);
void
setFitToPagesMode
(
bool
bFitToPages
);
...
...
sc/source/filter/oox/pagesettings.cxx
Dosyayı görüntüle @
c1036d7a
...
@@ -328,106 +328,6 @@ void PageSettings::importPicture( const Relations& rRelations, SequenceInputStre
...
@@ -328,106 +328,6 @@ void PageSettings::importPicture( const Relations& rRelations, SequenceInputStre
importPictureData
(
rRelations
,
BiffHelper
::
readString
(
rStrm
)
);
importPictureData
(
rRelations
,
BiffHelper
::
readString
(
rStrm
)
);
}
}
void
PageSettings
::
importLeftMargin
(
BiffInputStream
&
rStrm
)
{
rStrm
>>
maModel
.
mfLeftMargin
;
}
void
PageSettings
::
importRightMargin
(
BiffInputStream
&
rStrm
)
{
rStrm
>>
maModel
.
mfRightMargin
;
}
void
PageSettings
::
importTopMargin
(
BiffInputStream
&
rStrm
)
{
rStrm
>>
maModel
.
mfTopMargin
;
}
void
PageSettings
::
importBottomMargin
(
BiffInputStream
&
rStrm
)
{
rStrm
>>
maModel
.
mfBottomMargin
;
}
void
PageSettings
::
importPageSetup
(
BiffInputStream
&
rStrm
)
{
sal_uInt16
nPaperSize
,
nScale
,
nFirstPage
,
nFitToWidth
,
nFitToHeight
,
nFlags
;
rStrm
>>
nPaperSize
>>
nScale
>>
nFirstPage
>>
nFitToWidth
>>
nFitToHeight
>>
nFlags
;
maModel
.
mnPaperSize
=
nPaperSize
;
// equal in BIFF and OOX
maModel
.
mnScale
=
nScale
;
maModel
.
mnFirstPage
=
nFirstPage
;
maModel
.
mnFitToWidth
=
nFitToWidth
;
maModel
.
mnFitToHeight
=
nFitToHeight
;
maModel
.
mnOrientation
=
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_PORTRAIT
,
XML_portrait
,
XML_landscape
);
maModel
.
mnPageOrder
=
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_INROWS
,
XML_overThenDown
,
XML_downThenOver
);
maModel
.
mbValidSettings
=
!
getFlag
(
nFlags
,
BIFF_PAGESETUP_INVALID
);
maModel
.
mbUseFirstPage
=
true
;
maModel
.
mbBlackWhite
=
getFlag
(
nFlags
,
BIFF_PAGESETUP_BLACKWHITE
);
if
(
getBiff
()
>=
BIFF5
)
{
sal_uInt16
nHorPrintRes
,
nVerPrintRes
,
nCopies
;
rStrm
>>
nHorPrintRes
>>
nVerPrintRes
>>
maModel
.
mfHeaderMargin
>>
maModel
.
mfFooterMargin
>>
nCopies
;
maModel
.
mnCopies
=
nCopies
;
maModel
.
mnOrientation
=
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_DEFAULTORIENT
,
XML_default
,
maModel
.
mnOrientation
);
maModel
.
mnHorPrintRes
=
nHorPrintRes
;
maModel
.
mnVerPrintRes
=
nVerPrintRes
;
maModel
.
mnCellComments
=
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_PRINTNOTES
,
XML_asDisplayed
,
XML_none
);
maModel
.
mbUseFirstPage
=
getFlag
(
nFlags
,
BIFF_PAGESETUP_USEFIRSTPAGE
);
maModel
.
mbDraftQuality
=
getFlag
(
nFlags
,
BIFF_PAGESETUP_DRAFTQUALITY
);
if
(
getBiff
()
==
BIFF8
)
{
maModel
.
setBiffPrintErrors
(
extractValue
<
sal_uInt8
>
(
nFlags
,
10
,
2
)
);
maModel
.
mnCellComments
=
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_PRINTNOTES
,
getFlagValue
(
nFlags
,
BIFF_PAGESETUP_NOTES_END
,
XML_atEnd
,
XML_asDisplayed
),
XML_none
);
}
}
}
void
PageSettings
::
importHorCenter
(
BiffInputStream
&
rStrm
)
{
maModel
.
mbHorCenter
=
rStrm
.
readuInt16
()
!=
0
;
}
void
PageSettings
::
importVerCenter
(
BiffInputStream
&
rStrm
)
{
maModel
.
mbVerCenter
=
rStrm
.
readuInt16
()
!=
0
;
}
void
PageSettings
::
importPrintHeaders
(
BiffInputStream
&
rStrm
)
{
maModel
.
mbPrintHeadings
=
rStrm
.
readuInt16
()
!=
0
;
}
void
PageSettings
::
importPrintGridLines
(
BiffInputStream
&
rStrm
)
{
maModel
.
mbPrintGrid
=
rStrm
.
readuInt16
()
!=
0
;
}
void
PageSettings
::
importHeader
(
BiffInputStream
&
rStrm
)
{
if
(
rStrm
.
getRemaining
()
>
0
)
maModel
.
maOddHeader
=
(
getBiff
()
==
BIFF8
)
?
rStrm
.
readUniString
()
:
rStrm
.
readByteStringUC
(
false
,
getTextEncoding
()
);
else
maModel
.
maOddHeader
=
OUString
();
}
void
PageSettings
::
importFooter
(
BiffInputStream
&
rStrm
)
{
if
(
rStrm
.
getRemaining
()
>
0
)
maModel
.
maOddFooter
=
(
getBiff
()
==
BIFF8
)
?
rStrm
.
readUniString
()
:
rStrm
.
readByteStringUC
(
false
,
getTextEncoding
()
);
else
maModel
.
maOddFooter
=
OUString
();
}
void
PageSettings
::
importPicture
(
BiffInputStream
&
rStrm
)
{
StreamDataSequence
aPictureData
;
BiffHelper
::
importImgData
(
aPictureData
,
rStrm
,
getBiff
()
);
maModel
.
maGraphicUrl
=
getBaseFilter
().
getGraphicHelper
().
importGraphicObject
(
aPictureData
);
}
void
PageSettings
::
setFitToPagesMode
(
bool
bFitToPages
)
void
PageSettings
::
setFitToPagesMode
(
bool
bFitToPages
)
{
{
maModel
.
mbFitToPages
=
bFitToPages
;
maModel
.
mbFitToPages
=
bFitToPages
;
...
...
unusedcode.easy
Dosyayı görüntüle @
c1036d7a
...
@@ -824,18 +824,6 @@ oox::xls::Comment::importNote(oox::xls::BiffInputStream&)
...
@@ -824,18 +824,6 @@ oox::xls::Comment::importNote(oox::xls::BiffInputStream&)
oox::xls::CondFormatBuffer::importCfHeader(oox::xls::BiffInputStream&)
oox::xls::CondFormatBuffer::importCfHeader(oox::xls::BiffInputStream&)
oox::xls::Font::importFont(oox::xls::BiffInputStream&)
oox::xls::Font::importFont(oox::xls::BiffInputStream&)
oox::xls::NumberFormatsBuffer::importFormat(oox::xls::BiffInputStream&)
oox::xls::NumberFormatsBuffer::importFormat(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importBottomMargin(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importFooter(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importHeader(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importHorCenter(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importLeftMargin(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importPageSetup(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importPicture(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importPrintGridLines(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importPrintHeaders(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importRightMargin(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importTopMargin(oox::xls::BiffInputStream&)
oox::xls::PageSettings::importVerCenter(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::importPane(oox::xls::BiffInputStream&)
...
...
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