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
27dda313
Kaydet (Commit)
27dda313
authored
Nis 17, 2012
tarafından
Albert Thuswaldner
Kaydeden (comit)
Michael Meeks
Nis 18, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Removed duplicate set/get methods for initial tab count
üst
f888af0c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
25 deletions
+7
-25
appoptio.hxx
sc/inc/appoptio.hxx
+0
-5
scmod.hxx
sc/inc/scmod.hxx
+1
-1
appoptio.cxx
sc/source/core/tool/appoptio.cxx
+0
-4
vbaapplication.cxx
sc/source/ui/vba/vbaapplication.cxx
+5
-5
tabvwsh4.cxx
sc/source/ui/view/tabvwsh4.cxx
+1
-10
No files found.
sc/inc/appoptio.hxx
Dosyayı görüntüle @
27dda313
...
@@ -46,10 +46,6 @@ public:
...
@@ -46,10 +46,6 @@ public:
void
SetDefaults
();
void
SetDefaults
();
// Set or get the initial tab count for new spreadsheet, it is used by VBA API currently.
void
SetTabCountInNewSpreadsheet
(
SCTAB
nCount
)
{
nTabCountInNewSpreadsheet
=
nCount
;
}
SCTAB
GetTabCountInNewSpreadsheet
()
const
{
return
nTabCountInNewSpreadsheet
;
}
void
SetAppMetric
(
FieldUnit
eUnit
)
{
eMetric
=
eUnit
;
}
void
SetAppMetric
(
FieldUnit
eUnit
)
{
eMetric
=
eUnit
;
}
FieldUnit
GetAppMetric
()
const
{
return
eMetric
;
}
FieldUnit
GetAppMetric
()
const
{
return
eMetric
;
}
void
SetZoom
(
sal_uInt16
nNew
)
{
nZoom
=
nNew
;
}
void
SetZoom
(
sal_uInt16
nNew
)
{
nZoom
=
nNew
;
}
...
@@ -94,7 +90,6 @@ public:
...
@@ -94,7 +90,6 @@ public:
const
ScAppOptions
&
operator
=
(
const
ScAppOptions
&
rOpt
);
const
ScAppOptions
&
operator
=
(
const
ScAppOptions
&
rOpt
);
private
:
private
:
SCTAB
nTabCountInNewSpreadsheet
;
FieldUnit
eMetric
;
FieldUnit
eMetric
;
sal_uInt16
nLRUFuncCount
;
sal_uInt16
nLRUFuncCount
;
sal_uInt16
*
pLRUList
;
sal_uInt16
*
pLRUList
;
...
...
sc/inc/scmod.hxx
Dosyayı görüntüle @
27dda313
...
@@ -182,7 +182,7 @@ public:
...
@@ -182,7 +182,7 @@ public:
const
ScViewOptions
&
GetViewOptions
();
const
ScViewOptions
&
GetViewOptions
();
SC_DLLPUBLIC
const
ScDocOptions
&
GetDocOptions
();
SC_DLLPUBLIC
const
ScDocOptions
&
GetDocOptions
();
SC_DLLPUBLIC
const
ScAppOptions
&
GetAppOptions
();
SC_DLLPUBLIC
const
ScAppOptions
&
GetAppOptions
();
const
ScDefaultsOptions
&
GetDefaultsOptions
();
SC_DLLPUBLIC
const
ScDefaultsOptions
&
GetDefaultsOptions
();
const
ScFormulaOptions
&
GetFormulaOptions
();
const
ScFormulaOptions
&
GetFormulaOptions
();
const
ScInputOptions
&
GetInputOptions
();
const
ScInputOptions
&
GetInputOptions
();
SC_DLLPUBLIC
const
ScPrintOptions
&
GetPrintOptions
();
SC_DLLPUBLIC
const
ScPrintOptions
&
GetPrintOptions
();
...
...
sc/source/core/tool/appoptio.cxx
Dosyayı görüntüle @
27dda313
...
@@ -78,9 +78,6 @@ ScAppOptions::~ScAppOptions()
...
@@ -78,9 +78,6 @@ ScAppOptions::~ScAppOptions()
void
ScAppOptions
::
SetDefaults
()
void
ScAppOptions
::
SetDefaults
()
{
{
// Set default tab count for new spreadsheet.
nTabCountInNewSpreadsheet
=
0
;
if
(
ScOptionsUtil
::
IsMetricSystem
()
)
if
(
ScOptionsUtil
::
IsMetricSystem
()
)
eMetric
=
FUNIT_CM
;
// default for countries with metric system
eMetric
=
FUNIT_CM
;
// default for countries with metric system
else
else
...
@@ -118,7 +115,6 @@ void ScAppOptions::SetDefaults()
...
@@ -118,7 +115,6 @@ void ScAppOptions::SetDefaults()
const
ScAppOptions
&
ScAppOptions
::
operator
=
(
const
ScAppOptions
&
rCpy
)
const
ScAppOptions
&
ScAppOptions
::
operator
=
(
const
ScAppOptions
&
rCpy
)
{
{
nTabCountInNewSpreadsheet
=
rCpy
.
nTabCountInNewSpreadsheet
;
eMetric
=
rCpy
.
eMetric
;
eMetric
=
rCpy
.
eMetric
;
eZoomType
=
rCpy
.
eZoomType
;
eZoomType
=
rCpy
.
eZoomType
;
bSynchronizeZoom
=
rCpy
.
bSynchronizeZoom
;
bSynchronizeZoom
=
rCpy
.
bSynchronizeZoom
;
...
...
sc/source/ui/vba/vbaapplication.cxx
Dosyayı görüntüle @
27dda313
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
#include "global.hxx"
#include "global.hxx"
#include "scmod.hxx"
#include "scmod.hxx"
#include "docoptio.hxx"
#include "docoptio.hxx"
#include "
appoptio
.hxx"
#include "
defaultsoptions
.hxx"
#include <osl/file.hxx>
#include <osl/file.hxx>
#include <rtl/instance.hxx>
#include <rtl/instance.hxx>
...
@@ -939,8 +939,8 @@ ScVbaApplication::setEnableCancelKey(sal_Int32 /*lEnableCancelKey*/) throw (uno:
...
@@ -939,8 +939,8 @@ ScVbaApplication::setEnableCancelKey(sal_Int32 /*lEnableCancelKey*/) throw (uno:
sal_Int32
SAL_CALL
ScVbaApplication
::
getSheetsInNewWorkbook
()
throw
(
uno
::
RuntimeException
)
sal_Int32
SAL_CALL
ScVbaApplication
::
getSheetsInNewWorkbook
()
throw
(
uno
::
RuntimeException
)
{
{
const
Sc
AppOptions
&
rAppOpt
=
SC_MOD
()
->
GetApp
Options
();
const
Sc
DefaultsOptions
&
rOpt
=
SC_MOD
()
->
GetDefaults
Options
();
return
r
AppOpt
.
GetTabCountInNewSpreadshee
t
();
return
r
Opt
.
GetInitTabCoun
t
();
}
}
void
SAL_CALL
ScVbaApplication
::
setSheetsInNewWorkbook
(
sal_Int32
SheetsInNewWorkbook
)
throw
(
script
::
BasicErrorException
,
uno
::
RuntimeException
)
void
SAL_CALL
ScVbaApplication
::
setSheetsInNewWorkbook
(
sal_Int32
SheetsInNewWorkbook
)
throw
(
script
::
BasicErrorException
,
uno
::
RuntimeException
)
...
@@ -952,8 +952,8 @@ void SAL_CALL ScVbaApplication::setSheetsInNewWorkbook( sal_Int32 SheetsInNewWor
...
@@ -952,8 +952,8 @@ void SAL_CALL ScVbaApplication::setSheetsInNewWorkbook( sal_Int32 SheetsInNewWor
}
}
else
else
{
{
Sc
AppOptions
&
rAppOpt
=
const_cast
<
ScAppOptions
&
>
(
SC_MOD
()
->
GetApp
Options
());
Sc
DefaultsOptions
&
rOpt
=
const_cast
<
ScDefaultsOptions
&
>
(
SC_MOD
()
->
GetDefaults
Options
());
r
AppOpt
.
SetTabCountInNewSpreadshee
t
(
SheetsInNewWorkbook
);
r
Opt
.
SetInitTabCoun
t
(
SheetsInNewWorkbook
);
}
}
}
}
...
...
sc/source/ui/view/tabvwsh4.cxx
Dosyayı görüntüle @
27dda313
...
@@ -1605,19 +1605,10 @@ void ScTabViewShell::Construct( sal_uInt8 nForceDesignMode )
...
@@ -1605,19 +1605,10 @@ void ScTabViewShell::Construct( sal_uInt8 nForceDesignMode )
// append additional sheets (not for OLE object)
// append additional sheets (not for OLE object)
if
(
pDocSh
->
GetCreateMode
()
!=
SFX_CREATE_MODE_EMBEDDED
)
if
(
pDocSh
->
GetCreateMode
()
!=
SFX_CREATE_MODE_EMBEDDED
)
{
{
// Get the customized initial tab count...
// Get the customized initial tab count
// ... from option dialog.
const
ScDefaultsOptions
&
rOpt
=
SC_MOD
()
->
GetDefaultsOptions
();
const
ScDefaultsOptions
&
rOpt
=
SC_MOD
()
->
GetDefaultsOptions
();
SCTAB
nInitTabCount
=
rOpt
.
GetInitTabCount
();
SCTAB
nInitTabCount
=
rOpt
.
GetInitTabCount
();
// ... by VBA API.
const
ScAppOptions
&
rAppOpt
=
SC_MOD
()
->
GetAppOptions
();
SCTAB
nNewTabCount
=
rAppOpt
.
GetTabCountInNewSpreadsheet
();
if
(
nNewTabCount
>=
1
&&
nNewTabCount
<=
MAXTAB
)
{
nInitTabCount
=
nNewTabCount
;
}
for
(
SCTAB
i
=
1
;
i
<
nInitTabCount
;
i
++
)
for
(
SCTAB
i
=
1
;
i
<
nInitTabCount
;
i
++
)
pDoc
->
MakeTable
(
i
,
false
);
pDoc
->
MakeTable
(
i
,
false
);
}
}
...
...
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