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
181e0418
Kaydet (Commit)
181e0418
authored
Agu 28, 2001
tarafından
Eike Rathke
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#79599# all settings have to be consistent for switching tab pages
üst
b74bd70b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
31 deletions
+19
-31
numfmt.cxx
svx/source/dialog/numfmt.cxx
+19
-31
No files found.
svx/source/dialog/numfmt.cxx
Dosyayı görüntüle @
181e0418
...
@@ -2,9 +2,9 @@
...
@@ -2,9 +2,9 @@
*
*
* $RCSfile: numfmt.cxx,v $
* $RCSfile: numfmt.cxx,v $
*
*
* $Revision: 1.1
2
$
* $Revision: 1.1
3
$
*
*
* last change: $Author: er $ $Date: 2001-0
5-29 12:32:24
$
* last change: $Author: er $ $Date: 2001-0
8-28 12:05:32
$
*
*
* The Contents of this file are made available subject to the terms of
* The Contents of this file are made available subject to the terms of
* either of the following licenses
* either of the following licenses
...
@@ -821,32 +821,12 @@ BOOL SvxNumberFormatTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
...
@@ -821,32 +821,12 @@ BOOL SvxNumberFormatTabPage::FillItemSet( SfxItemSet& rCoreAttrs )
String
aFormat
=
aEdFormat
.
GetText
();
String
aFormat
=
aEdFormat
.
GetText
();
ULONG
nCurKey
=
pNumFmtShell
->
GetCurNumFmtKey
();
ULONG
nCurKey
=
pNumFmtShell
->
GetCurNumFmtKey
();
if
(
aIbAdd
.
IsEnabled
()
||
pNumFmtShell
->
IsTmpCurrencyFormat
(
aFormat
)
)
if
(
aIbAdd
.
IsEnabled
()
||
pNumFmtShell
->
IsTmpCurrencyFormat
(
aFormat
)
)
{
{
// #79599# It is not sufficient to just add the format code (or
ULONG
nErrPos
;
// delete it in case of bOneAreaFlag and resulting category change).
USHORT
nCatLbSelPos
=
0
;
// Upon switching tab pages we need all settings to be consistent
short
nFmtLbSelPos
=
SELPOS_NONE
;
// in case this page will be redisplayed later.
SvxDelStrgs
aEntryList
;
bDataChanged
=
(
ClickHdl_Impl
(
&
aIbAdd
)
!=
0
);
SvxDelStrgs
a2EntryList
;
bDataChanged
=
pNumFmtShell
->
AddFormat
(
aFormat
,
nErrPos
,
nCatLbSelPos
,
nFmtLbSelPos
,
aEntryList
);
pNumFmtShell
->
SetComment4Entry
(
nFmtLbSelPos
,
aEdComment
.
GetText
());
if
(
bOneAreaFlag
&&
(
nFixedCategory
!=
nCatLbSelPos
))
{
if
(
bDataChanged
)
DeleteEntryList_Impl
(
aEntryList
);
BOOL
bDeleted
=
pNumFmtShell
->
RemoveFormat
(
aFormat
,
nCatLbSelPos
,
nFmtLbSelPos
,
a2EntryList
);
if
(
bDeleted
)
DeleteEntryList_Impl
(
a2EntryList
);
bDataChanged
=
FALSE
;
}
nCurKey
=
pNumFmtShell
->
GetCurNumFmtKey
();
nCurKey
=
pNumFmtShell
->
GetCurNumFmtKey
();
}
}
else
if
(
nCurKey
==
NUMKEY_UNDEFINED
)
else
if
(
nCurKey
==
NUMKEY_UNDEFINED
)
...
@@ -1542,9 +1522,14 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
...
@@ -1542,9 +1522,14 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
{
{
BOOL
bAdded
=
FALSE
;
BOOL
bAdded
=
FALSE
;
BOOL
bDeleted
=
FALSE
;
BOOL
bDeleted
=
FALSE
;
ULONG
nReturn
=
0
;
const
ULONG
nReturnChanged
=
0x1
;
// THE boolean return value
const
ULONG
nReturnAdded
=
0x2
;
// temp: format added
const
ULONG
nReturnOneArea
=
0x4
;
// temp: one area but category changed => ignored
if
(
pIB
==&
aIbAdd
)
if
(
pIB
==&
aIbAdd
)
{
{
// Also called from FillItemSet() if a temporary currency format has
// to be added, not only if the Add button is enabled.
String
aFormat
=
aEdFormat
.
GetText
();
String
aFormat
=
aEdFormat
.
GetText
();
SvxDelStrgs
aEntryList
;
SvxDelStrgs
aEntryList
;
SvxDelStrgs
a2EntryList
;
SvxDelStrgs
a2EntryList
;
...
@@ -1556,6 +1541,8 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
...
@@ -1556,6 +1541,8 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
bAdded
=
pNumFmtShell
->
AddFormat
(
aFormat
,
nErrPos
,
bAdded
=
pNumFmtShell
->
AddFormat
(
aFormat
,
nErrPos
,
nCatLbSelPos
,
nFmtLbSelPos
,
nCatLbSelPos
,
nFmtLbSelPos
,
aEntryList
);
aEntryList
);
if
(
bAdded
)
nReturn
|=
nReturnChanged
|
nReturnAdded
;
if
(
pLastActivWindow
==
(
Window
*
)
&
aEdComment
)
if
(
pLastActivWindow
==
(
Window
*
)
&
aEdComment
)
{
{
...
@@ -1582,6 +1569,7 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
...
@@ -1582,6 +1569,7 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
if
(
bDeleted
)
DeleteEntryList_Impl
(
a2EntryList
);
if
(
bDeleted
)
DeleteEntryList_Impl
(
a2EntryList
);
aEdFormat
.
GrabFocus
();
aEdFormat
.
GrabFocus
();
aEdFormat
.
SetSelection
(
Selection
(
(
short
)
nErrPos
,
SELECTION_MAX
)
);
aEdFormat
.
SetSelection
(
Selection
(
(
short
)
nErrPos
,
SELECTION_MAX
)
);
nReturn
|=
nReturnOneArea
;
}
}
else
else
{
{
...
@@ -1627,6 +1615,7 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
...
@@ -1627,6 +1615,7 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
aEdFormat
.
SetSelection
(
Selection
(
(
short
)
nErrPos
,
SELECTION_MAX
)
);
aEdFormat
.
SetSelection
(
Selection
(
(
short
)
nErrPos
,
SELECTION_MAX
)
);
}
}
EditHdl_Impl
(
&
aEdFormat
);
EditHdl_Impl
(
&
aEdFormat
);
nReturn
=
((
nReturn
&
nReturnOneArea
)
?
0
:
(
nReturn
&
nReturnChanged
));
}
}
else
if
(
pIB
==&
aIbRemove
)
else
if
(
pIB
==&
aIbRemove
)
{
{
...
@@ -1691,9 +1680,8 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
...
@@ -1691,9 +1680,8 @@ IMPL_LINK( SvxNumberFormatTabPage, ClickHdl_Impl, ImageButton*, pIB)
aFtComment
.
Show
();
aFtComment
.
Show
();
}
}
}
}
else
return
0
;
return
0
;
return
nReturn
;
}
}
...
...
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