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
8e0792e9
Kaydet (Commit)
8e0792e9
authored
Ara 16, 2011
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Automatically select an option page if a user clicks on a category
üst
04417370
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
56 additions
and
0 deletions
+56
-0
treeopt.cxx
cui/source/options/treeopt.cxx
+56
-0
No files found.
cui/source/options/treeopt.cxx
Dosyayı görüntüle @
8e0792e9
...
...
@@ -1028,6 +1028,62 @@ IMPL_LINK( OfaTreeOptionsDialog, SelectHdl_Impl, Timer*, EMPTYARG )
return
0
;
//#111938# lock the SelectHdl_Impl to prevent multiple executes
FlagSet_Impl
aFlag
(
bInSelectHdl_Impl
);
// If the user has selected a category, automatically switch to a suitable
// default sub-page instead.
if
(
!
pParent
)
{
OptionsGroupInfo
*
pGroupInfo
=
static_cast
<
OptionsGroupInfo
*>
(
pEntry
->
GetUserData
());
if
(
!
pGroupInfo
)
return
0
;
switch
(
pGroupInfo
->
m_nDialogId
)
{
case
SID_GENERAL_OPTIONS
:
ActivatePage
(
RID_SFXPAGE_GENERAL
);
break
;
case
SID_LANGUAGE_OPTIONS
:
ActivatePage
(
OFA_TP_LANGUAGES
);
break
;
case
SID_INET_DLG
:
ActivatePage
(
RID_SVXPAGE_INET_PROXY
);
break
;
case
SID_SW_EDITOPTIONS
:
ActivatePage
(
RID_SW_TP_OPTLOAD_PAGE
);
break
;
case
SID_SW_ONLINEOPTIONS
:
ActivatePage
(
RID_SW_TP_HTML_CONTENT_OPT
);
break
;
case
SID_SC_EDITOPTIONS
:
ActivatePage
(
SID_SC_TP_LAYOUT
);
break
;
case
SID_SD_EDITOPTIONS
:
ActivatePage
(
SID_SI_TP_MISC
);
break
;
case
SID_SD_GRAPHIC_OPTIONS
:
ActivatePage
(
SID_SD_TP_MISC
);
break
;
case
SID_SM_EDITOPTIONS
:
ActivatePage
(
SID_SM_TP_PRINTOPTIONS
);
break
;
case
SID_SCH_EDITOPTIONS
:
ActivatePage
(
RID_OPTPAGE_CHART_DEFCOLORS
);
break
;
case
SID_SB_STARBASEOPTIONS
:
ActivatePage
(
SID_SB_CONNECTIONPOOLING
);
break
;
case
SID_FILTER_DLG
:
ActivatePage
(
RID_SFXPAGE_SAVE
);
break
;
default
:
SAL_WARN
(
"cui"
,
"Unrecognized options category "
<<
pGroupInfo
->
m_nDialogId
);
break
;
}
return
0
;
}
TabPage
*
pOldPage
=
NULL
;
TabPage
*
pNewPage
=
NULL
;
OptionsPageInfo
*
pOptPageInfo
=
(
pCurrentPageEntry
&&
aTreeLB
.
GetParent
(
pCurrentPageEntry
)
)
...
...
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