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
9453d3d4
Kaydet (Commit)
9453d3d4
authored
Ock 09, 2013
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
always show preview in autotext dialog
Change-Id: I4fe95db707cdaafb220435f281cce88284afd26d
üst
7e2b1e92
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
33 deletions
+9
-33
glossary.hxx
sw/source/ui/inc/glossary.hxx
+1
-3
glossary.cxx
sw/source/ui/misc/glossary.cxx
+8
-30
No files found.
sw/source/ui/inc/glossary.hxx
Dosyayı görüntüle @
9453d3d4
...
...
@@ -93,8 +93,6 @@ class SwGlossaryDlg : public SvxStandardDialog
CheckBox
*
m_pFileRelCB
;
CheckBox
*
m_pNetRelCB
;
Window
*
m_pExampleWIN
;
Window
*
m_pExampleDummyWIN
;
CheckBox
*
m_pShowExampleCB
;
PushButton
*
m_pInsertBtn
;
CloseButton
*
m_pCloseBtn
;
MenuButton
*
m_pEditBtn
;
...
...
@@ -121,6 +119,7 @@ class SwGlossaryDlg : public SvxStandardDialog
SwWrtShell
*
pSh
;
void
EnableShortName
(
sal_Bool
bOn
=
sal_True
);
void
ShowPreview
();
DECL_LINK
(
NameModify
,
Edit
*
);
DECL_LINK
(
NameDoubleClick
,
SvTreeListBox
*
);
...
...
@@ -132,7 +131,6 @@ class SwGlossaryDlg : public SvxStandardDialog
DECL_LINK
(
InsertHdl
,
void
*
);
DECL_LINK
(
PathHdl
,
Button
*
);
DECL_LINK
(
CheckBoxHdl
,
CheckBox
*
);
DECL_LINK
(
ShowPreviewHdl
,
CheckBox
*
);
DECL_LINK
(
PreviewLoadedHdl
,
void
*
);
...
...
sw/source/ui/misc/glossary.cxx
Dosyayı görüntüle @
9453d3d4
...
...
@@ -206,12 +206,10 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
get
(
m_pCategoryBox
,
"category"
);
get
(
m_pFileRelCB
,
"relfile"
);
get
(
m_pNetRelCB
,
"relnet"
);
get
(
m_pShowExampleCB
,
"showpreview"
);
get
(
m_pInsertBtn
,
"insert"
);
get
(
m_pBibBtn
,
"categories"
);
get
(
m_pPathBtn
,
"path"
);
get
(
m_pExampleWIN
,
"example"
);
get
(
m_pExampleDummyWIN
,
"dummy"
);
get
(
m_pEditBtn
,
"autotext"
);
SvtLinguConfig
aLocalLinguConfig
;
...
...
@@ -233,14 +231,10 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
m_pCategoryBox
->
SetDoubleClickHdl
(
LINK
(
this
,
SwGlossaryDlg
,
NameDoubleClick
));
m_pCategoryBox
->
SetSelectHdl
(
LINK
(
this
,
SwGlossaryDlg
,
GrpSelect
));
m_pBibBtn
->
SetClickHdl
(
LINK
(
this
,
SwGlossaryDlg
,
BibHdl
));
m_pShowExampleCB
->
SetClickHdl
(
LINK
(
this
,
SwGlossaryDlg
,
ShowPreviewHdl
));
m_pInsertBtn
->
SetClickHdl
(
LINK
(
this
,
SwGlossaryDlg
,
InsertHdl
));
const
SvxAutoCorrCfg
&
rCfg
=
SvxAutoCorrCfg
::
Get
();
m_pShowExampleCB
->
Check
(
rCfg
.
IsAutoTextPreview
());
ShowPreviewHdl
(
m_pShowExampleCB
);
ShowPreview
();
bIsDocReadOnly
=
pSh
->
GetView
().
GetDocShell
()
->
IsReadOnly
()
||
pSh
->
HasReadonlySel
();
...
...
@@ -260,9 +254,6 @@ SwGlossaryDlg::SwGlossaryDlg(SfxViewFrame* pViewFrame,
SwGlossaryDlg
::~
SwGlossaryDlg
()
{
SvxAutoCorrCfg
&
rCfg
=
SvxAutoCorrCfg
::
Get
();
rCfg
.
SetAutoTextPreview
(
m_pShowExampleCB
->
IsChecked
())
;
m_pCategoryBox
->
Clear
();
delete
pExampleFrame
;
}
...
...
@@ -1125,35 +1116,22 @@ IMPL_LINK_NOARG(SwGlossaryDlg, InsertHdl)
return
0
;
}
IMPL_LINK
(
SwGlossaryDlg
,
ShowPreviewHdl
,
CheckBox
*
,
pBox
)
void
SwGlossaryDlg
::
ShowPreview
(
)
{
sal_Bool
bCreated
=
sal_False
;
if
(
pBox
->
IsChecked
()
)
//create example
if
(
!
pExampleFrame
)
{
//create example
if
(
!
pExampleFrame
)
{
Link
aLink
(
LINK
(
this
,
SwGlossaryDlg
,
PreviewLoadedHdl
));
pExampleFrame
=
new
SwOneExampleFrame
(
*
m_pExampleWIN
,
EX_SHOW_ONLINE_LAYOUT
,
&
aLink
);
bCreated
=
sal_True
;
}
Link
aLink
(
LINK
(
this
,
SwGlossaryDlg
,
PreviewLoadedHdl
));
pExampleFrame
=
new
SwOneExampleFrame
(
*
m_pExampleWIN
,
EX_SHOW_ONLINE_LAYOUT
,
&
aLink
);
}
sal_Bool
bShow
=
pBox
->
IsChecked
()
&&
!
bCreated
;
m_pExampleWIN
->
Show
(
bShow
);
m_pExampleDummyWIN
->
Show
(
!
bShow
);
if
(
::
GetCurrGlosGroup
()
)
if
(
::
GetCurrGlosGroup
())
ShowAutoText
(
*::
GetCurrGlosGroup
(),
m_pShortNameEdit
->
GetText
());
return
0
;
};
IMPL_LINK_NOARG
(
SwGlossaryDlg
,
PreviewLoadedHdl
)
{
sal_Bool
bShow
=
m_pShowExampleCB
->
IsChecked
();
m_pExampleWIN
->
Show
(
bShow
);
m_pExampleDummyWIN
->
Show
(
!
bShow
);
ResumeShowAutoText
();
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