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
cf92f247
Kaydet (Commit)
cf92f247
authored
Ock 04, 2011
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't reset the default sheet name when the name has evern been edited.
üst
8a3f4fb9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
9 deletions
+19
-9
scabstdlg.hxx
sc/inc/scabstdlg.hxx
+1
-1
scdlgfact.cxx
sc/source/ui/attrdlg/scdlgfact.cxx
+1
-1
scdlgfact.hxx
sc/source/ui/attrdlg/scdlgfact.hxx
+1
-1
mvtabdlg.hxx
sc/source/ui/inc/mvtabdlg.hxx
+5
-3
mvtabdlg.cxx
sc/source/ui/miscdlgs/mvtabdlg.cxx
+11
-3
No files found.
sc/inc/scabstdlg.hxx
Dosyayı görüntüle @
cf92f247
...
...
@@ -212,7 +212,7 @@ class AbstractScMoveTableDlg : public VclAbstractDialog //add for ScMoveTableDl
public
:
virtual
USHORT
GetSelectedDocument
()
const
=
0
;
virtual
USHORT
GetSelectedTable
()
const
=
0
;
virtual
BOOL
GetCopyTable
()
const
=
0
;
virtual
bool
GetCopyTable
()
const
=
0
;
virtual
bool
GetRenameTable
()
const
=
0
;
virtual
void
GetTabNameString
(
String
&
rString
)
const
=
0
;
virtual
void
SetForceCopyTable
()
=
0
;
...
...
sc/source/ui/attrdlg/scdlgfact.cxx
Dosyayı görüntüle @
cf92f247
...
...
@@ -498,7 +498,7 @@ USHORT AbstractScMoveTableDlg_Impl::GetSelectedTable() const
{
return
pDlg
->
GetSelectedTable
();
}
BOOL
AbstractScMoveTableDlg_Impl
::
GetCopyTable
()
const
bool
AbstractScMoveTableDlg_Impl
::
GetCopyTable
()
const
{
return
pDlg
->
GetCopyTable
();
}
...
...
sc/source/ui/attrdlg/scdlgfact.hxx
Dosyayı görüntüle @
cf92f247
...
...
@@ -262,7 +262,7 @@ class AbstractScMoveTableDlg_Impl : public AbstractScMoveTableDlg //add for ScM
DECL_ABSTDLG_BASE
(
AbstractScMoveTableDlg_Impl
,
ScMoveTableDlg
)
virtual
USHORT
GetSelectedDocument
()
const
;
virtual
USHORT
GetSelectedTable
()
const
;
virtual
BOOL
GetCopyTable
()
const
;
virtual
bool
GetCopyTable
()
const
;
virtual
bool
GetRenameTable
()
const
;
virtual
void
GetTabNameString
(
String
&
rString
)
const
;
virtual
void
SetForceCopyTable
();
...
...
sc/source/ui/inc/mvtabdlg.hxx
Dosyayı görüntüle @
cf92f247
...
...
@@ -50,7 +50,7 @@ public:
USHORT
GetSelectedDocument
()
const
;
SCTAB
GetSelectedTable
()
const
;
BOOL
GetCopyTable
()
const
;
bool
GetCopyTable
()
const
;
bool
GetRenameTable
()
const
;
void
GetTabNameString
(
String
&
rString
)
const
;
void
SetForceCopyTable
();
...
...
@@ -87,8 +87,10 @@ private:
USHORT
nDocument
;
SCTAB
nTable
;
BOOL
bCopyTable
;
BOOL
bRenameTable
;
bool
bCopyTable
:
1
;
bool
bRenameTable
:
1
;
bool
mbEverEdited
:
1
;
//--------------------------------------
void
Init
();
void
InitBtnRename
();
...
...
sc/source/ui/miscdlgs/mvtabdlg.cxx
Dosyayı görüntüle @
cf92f247
...
...
@@ -84,8 +84,9 @@ ScMoveTableDlg::ScMoveTableDlg( Window* pParent,
mrDefaultName
(
rDefault
),
nDocument
(
0
),
nTable
(
0
),
bCopyTable
(
FALSE
),
bRenameTable
(
FALSE
)
bCopyTable
(
false
),
bRenameTable
(
false
),
mbEverEdited
(
false
)
{
#if ENABLE_LAYOUT
#undef ScResId
...
...
@@ -107,7 +108,7 @@ USHORT ScMoveTableDlg::GetSelectedDocument () const { return nDocument; }
SCTAB
ScMoveTableDlg
::
GetSelectedTable
()
const
{
return
nTable
;
}
BOOL
ScMoveTableDlg
::
GetCopyTable
()
const
{
return
bCopyTable
;
}
bool
ScMoveTableDlg
::
GetCopyTable
()
const
{
return
bCopyTable
;
}
bool
ScMoveTableDlg
::
GetRenameTable
()
const
{
return
bRenameTable
;
}
...
...
@@ -141,6 +142,10 @@ void ScMoveTableDlg::EnableRenameTable(BOOL bFlag)
void
ScMoveTableDlg
::
ResetRenameInput
()
{
if
(
mbEverEdited
)
// Don't reset the name when the sheet name has ever been edited.
return
;
if
(
!
aEdTabName
.
IsEnabled
())
{
aEdTabName
.
SetText
(
String
());
...
...
@@ -360,7 +365,10 @@ IMPL_LINK( ScMoveTableDlg, SelHdl, ListBox *, pLb )
IMPL_LINK
(
ScMoveTableDlg
,
CheckNameHdl
,
Edit
*
,
pEdt
)
{
if
(
pEdt
==
&
aEdTabName
)
{
mbEverEdited
=
true
;
CheckNewTabName
();
}
return
0
;
}
...
...
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