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
a22ce3e4
Kaydet (Commit)
a22ce3e4
authored
Kas 23, 2011
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
ManageNames: only update the range names if we really changed data
üst
68c59142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
namedlg.hxx
sc/source/ui/inc/namedlg.hxx
+1
-0
namedlg.cxx
sc/source/ui/namedlg/namedlg.cxx
+10
-3
No files found.
sc/source/ui/inc/namedlg.hxx
Dosyayı görüntüle @
a22ce3e4
...
@@ -96,6 +96,7 @@ private:
...
@@ -96,6 +96,7 @@ private:
Selection
maCurSel
;
Selection
maCurSel
;
bool
mbNeedUpdate
;
bool
mbNeedUpdate
;
bool
mbDataChanged
;
typedef
boost
::
ptr_map
<
rtl
::
OUString
,
ScRangeName
>
RangeNameContainer
;
typedef
boost
::
ptr_map
<
rtl
::
OUString
,
ScRangeName
>
RangeNameContainer
;
...
...
sc/source/ui/namedlg/namedlg.cxx
Dosyayı görüntüle @
a22ce3e4
...
@@ -111,7 +111,8 @@ ScNameDlg::ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
...
@@ -111,7 +111,8 @@ ScNameDlg::ScNameDlg( SfxBindings* pB, SfxChildWindow* pCW, Window* pParent,
mpViewData
(
ptrViewData
),
mpViewData
(
ptrViewData
),
mpDoc
(
ptrViewData
->
GetDocument
()
),
mpDoc
(
ptrViewData
->
GetDocument
()
),
maCursorPos
(
aCursorPos
),
maCursorPos
(
aCursorPos
),
mbNeedUpdate
(
true
)
mbNeedUpdate
(
true
),
mbDataChanged
(
false
)
{
{
Init
();
Init
();
FreeResource
();
FreeResource
();
...
@@ -213,8 +214,11 @@ void ScNameDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
...
@@ -213,8 +214,11 @@ void ScNameDlg::SetReference( const ScRange& rRef, ScDocument* pDocP )
sal_Bool
ScNameDlg
::
Close
()
sal_Bool
ScNameDlg
::
Close
()
{
{
ScDocFunc
aFunc
(
*
mpViewData
->
GetDocShell
());
if
(
mbDataChanged
)
aFunc
.
ModifyAllRangeNames
(
maRangeMap
);
{
ScDocFunc
aFunc
(
*
mpViewData
->
GetDocShell
());
aFunc
.
ModifyAllRangeNames
(
maRangeMap
);
}
return
DoClose
(
ScNameDlgWrapper
::
GetChildWindowId
()
);
return
DoClose
(
ScNameDlgWrapper
::
GetChildWindowId
()
);
}
}
...
@@ -376,6 +380,8 @@ void ScNameDlg::RemovePushed()
...
@@ -376,6 +380,8 @@ void ScNameDlg::RemovePushed()
// be safe and check for possible problems
// be safe and check for possible problems
if
(
pData
)
if
(
pData
)
pRangeName
->
erase
(
*
pData
);
pRangeName
->
erase
(
*
pData
);
mbDataChanged
=
true
;
}
}
CheckForEmptyTable
();
CheckForEmptyTable
();
}
}
...
@@ -430,6 +436,7 @@ void ScNameDlg::NameModified()
...
@@ -430,6 +436,7 @@ void ScNameDlg::NameModified()
aLine
.
aScope
=
aNewScope
;
aLine
.
aScope
=
aNewScope
;
mpRangeManagerTable
->
addEntry
(
aLine
);
mpRangeManagerTable
->
addEntry
(
aLine
);
mbNeedUpdate
=
true
;
mbNeedUpdate
=
true
;
mbDataChanged
=
true
;
}
}
}
}
...
...
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