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
0284352c
Kaydet (Commit)
0284352c
authored
Haz 10, 2011
tarafından
Michael Meeks
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
simple re-factor to share selection code
üst
8a6f36b6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
8 deletions
+15
-8
templdlg.cxx
sfx2/source/dialog/templdlg.cxx
+11
-6
templdgi.hxx
sfx2/source/inc/templdgi.hxx
+4
-2
No files found.
sfx2/source/dialog/templdlg.cxx
Dosyayı görüntüle @
0284352c
...
...
@@ -1053,6 +1053,15 @@ const SfxStyleFamilyItem *SfxCommonTemplateDialog_Impl::GetFamilyItem_Impl() con
return
0
;
}
SfxStyleSheetBase
*
SfxCommonTemplateDialog_Impl
::
GetSelectedStyle
()
const
{
if
(
!
IsInitialized
()
||
!
pStyleSheetPool
||
!
HasSelectedStyle
())
return
NULL
;
const
String
aTemplName
(
GetSelectedEntry
()
);
const
SfxStyleFamilyItem
*
pItem
=
GetFamilyItem_Impl
();
return
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
(),
SFXSTYLEBIT_ALL
);
}
//-------------------------------------------------------------------------
void
SfxCommonTemplateDialog_Impl
::
SelectStyle
(
const
String
&
rStr
)
...
...
@@ -2002,9 +2011,7 @@ void SfxCommonTemplateDialog_Impl::EditHdl(void *)
{
sal_uInt16
nFilter
=
nActFilter
;
String
aTemplName
(
GetSelectedEntry
());
const
SfxStyleFamilyItem
*
pItem
=
GetFamilyItem_Impl
();
const
SfxStyleFamily
eFam
=
pItem
->
GetFamily
();
pStyleSheetPool
->
Find
(
aTemplName
,
eFam
,
SFXSTYLEBIT_ALL
);
// -Wall required??
GetSelectedStyle
();
// -Wall required??
Window
*
pTmp
;
//DefModalDialogParent set for modality of the following dialogs
pTmp
=
Application
::
GetDefDialogParent
();
...
...
@@ -2028,9 +2035,7 @@ void SfxCommonTemplateDialog_Impl::DeleteHdl(void *)
if
(
IsInitialized
()
&&
HasSelectedStyle
()
)
{
const
String
aTemplName
(
GetSelectedEntry
()
);
const
SfxStyleFamilyItem
*
pItem
=
GetFamilyItem_Impl
();
SfxStyleSheetBase
*
pStyle
=
pStyleSheetPool
->
Find
(
aTemplName
,
pItem
->
GetFamily
(),
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
GetSelectedStyle
();
if
(
pStyle
)
{
String
aMsg
;
...
...
sfx2/source/inc/templdgi.hxx
Dosyayı görüntüle @
0284352c
...
...
@@ -50,6 +50,7 @@ class SfxStyleFamilies;
class
SfxStyleFamilyItem
;
class
SfxTemplateItem
;
class
SfxBindings
;
class
SfxStyleSheetBase
;
class
SfxStyleSheetBasePool
;
class
SvTreeListBox
;
class
StyleTreeListBox_Impl
;
...
...
@@ -208,7 +209,7 @@ protected:
void
UpdateStyles_Impl
(
sal_uInt16
nFlags
);
const
SfxStyleFamilyItem
*
GetFamilyItem_Impl
()
const
;
sal_Bool
IsInitialized
()
{
return
nActFamily
!=
0xffff
;
}
sal_Bool
IsInitialized
()
const
{
return
nActFamily
!=
0xffff
;
}
void
ResetFocus
();
void
EnableDelete
();
void
Initialize
();
...
...
@@ -218,7 +219,8 @@ protected:
void
SetWaterCanState
(
const
SfxBoolItem
*
pItem
);
void
SelectStyle
(
const
String
&
rStyle
);
sal_Bool
HasSelectedStyle
()
const
;
sal_Bool
HasSelectedStyle
()
const
;
SfxStyleSheetBase
*
GetSelectedStyle
()
const
;
void
FillTreeBox
();
void
Update_Impl
();
void
UpdateFamily_Impl
();
...
...
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