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
ab7776e1
Kaydet (Commit)
ab7776e1
authored
Nis 18, 2013
tarafından
Andras Timar
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#63503 add 'Delete Last' button to Special Characters dialog
Change-Id: I7f14564f6b28e0b480b503394e0e078ed28f9150
üst
d636dcc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
cuicharmap.cxx
cui/source/dialogs/cuicharmap.cxx
+17
-0
cuicharmap.hxx
cui/source/inc/cuicharmap.hxx
+2
-0
specialcharacters.ui
cui/uiconfig/ui/specialcharacters.ui
+15
-1
No files found.
cui/source/dialogs/cuicharmap.cxx
Dosyayı görüntüle @
ab7776e1
...
@@ -54,6 +54,7 @@ SvxCharacterMap::SvxCharacterMap( Window* pParent, sal_Bool bOne_, const SfxItem
...
@@ -54,6 +54,7 @@ SvxCharacterMap::SvxCharacterMap( Window* pParent, sal_Bool bOne_, const SfxItem
get
(
m_pShowText
,
"showtext"
);
get
(
m_pShowText
,
"showtext"
);
get
(
m_pOKBtn
,
"ok"
);
get
(
m_pOKBtn
,
"ok"
);
get
(
m_pDeleteBtn
,
"delete"
);
get
(
m_pDeleteBtn
,
"delete"
);
get
(
m_pDeleteLastBtn
,
"deletelast"
);
get
(
m_pFontText
,
"fontft"
);
get
(
m_pFontText
,
"fontft"
);
get
(
m_pFontLB
,
"fontlb"
);
get
(
m_pFontLB
,
"fontlb"
);
m_pFontLB
->
SetStyle
(
m_pFontLB
->
GetStyle
()
|
WB_SORT
);
m_pFontLB
->
SetStyle
(
m_pFontLB
->
GetStyle
()
|
WB_SORT
);
...
@@ -321,6 +322,7 @@ void SvxCharacterMap::init()
...
@@ -321,6 +322,7 @@ void SvxCharacterMap::init()
m_pSymbolText
->
Hide
();
m_pSymbolText
->
Hide
();
m_pShowText
->
Hide
();
m_pShowText
->
Hide
();
m_pDeleteBtn
->
Hide
();
m_pDeleteBtn
->
Hide
();
m_pDeleteLastBtn
->
Hide
();
}
}
OUString
aDefStr
(
aFont
.
GetName
()
);
OUString
aDefStr
(
aFont
.
GetName
()
);
...
@@ -369,6 +371,7 @@ void SvxCharacterMap::init()
...
@@ -369,6 +371,7 @@ void SvxCharacterMap::init()
m_pShowSet
->
SetSelectHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharSelectHdl
)
);
m_pShowSet
->
SetSelectHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharSelectHdl
)
);
m_pShowSet
->
SetHighlightHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharHighlightHdl
)
);
m_pShowSet
->
SetHighlightHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharHighlightHdl
)
);
m_pShowSet
->
SetPreSelectHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharPreSelectHdl
)
);
m_pShowSet
->
SetPreSelectHdl
(
LINK
(
this
,
SvxCharacterMap
,
CharPreSelectHdl
)
);
m_pDeleteLastBtn
->
SetClickHdl
(
LINK
(
this
,
SvxCharacterMap
,
DeleteLastHdl
)
);
m_pDeleteBtn
->
SetClickHdl
(
LINK
(
this
,
SvxCharacterMap
,
DeleteHdl
)
);
m_pDeleteBtn
->
SetClickHdl
(
LINK
(
this
,
SvxCharacterMap
,
DeleteHdl
)
);
if
(
SvxShowCharSet
::
getSelectedChar
()
==
' '
)
if
(
SvxShowCharSet
::
getSelectedChar
()
==
' '
)
...
@@ -521,6 +524,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharSelectHdl)
...
@@ -521,6 +524,7 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharSelectHdl)
}
}
m_pOKBtn
->
Enable
();
m_pOKBtn
->
Enable
();
m_pDeleteLastBtn
->
Enable
();
return
0
;
return
0
;
}
}
...
@@ -582,10 +586,23 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharPreSelectHdl)
...
@@ -582,10 +586,23 @@ IMPL_LINK_NOARG(SvxCharacterMap, CharPreSelectHdl)
// -----------------------------------------------------------------------
// -----------------------------------------------------------------------
IMPL_LINK_NOARG
(
SvxCharacterMap
,
DeleteLastHdl
)
{
OUString
aCurrentText
=
m_pShowText
->
GetText
();
m_pShowText
->
SetText
(
aCurrentText
.
copy
(
0
,
aCurrentText
.
getLength
()
-
1
)
);
if
(
m_pShowText
->
GetText
()
==
""
)
{
m_pOKBtn
->
Disable
();
m_pDeleteLastBtn
->
Disable
();
}
return
0
;
}
IMPL_LINK_NOARG
(
SvxCharacterMap
,
DeleteHdl
)
IMPL_LINK_NOARG
(
SvxCharacterMap
,
DeleteHdl
)
{
{
m_pShowText
->
SetText
(
String
()
);
m_pShowText
->
SetText
(
String
()
);
m_pOKBtn
->
Disable
();
m_pOKBtn
->
Disable
();
m_pDeleteLastBtn
->
Disable
();
return
0
;
return
0
;
}
}
...
...
cui/source/inc/cuicharmap.hxx
Dosyayı görüntüle @
ab7776e1
...
@@ -71,6 +71,7 @@ private:
...
@@ -71,6 +71,7 @@ private:
SvxShowCharSet
*
m_pShowSet
;
SvxShowCharSet
*
m_pShowSet
;
SvxShowText
*
m_pShowText
;
SvxShowText
*
m_pShowText
;
OKButton
*
m_pOKBtn
;
OKButton
*
m_pOKBtn
;
PushButton
*
m_pDeleteLastBtn
;
PushButton
*
m_pDeleteBtn
;
PushButton
*
m_pDeleteBtn
;
FixedText
*
m_pFontText
;
FixedText
*
m_pFontText
;
ListBox
*
m_pFontLB
;
ListBox
*
m_pFontLB
;
...
@@ -90,6 +91,7 @@ private:
...
@@ -90,6 +91,7 @@ private:
DECL_LINK
(
CharSelectHdl
,
void
*
);
DECL_LINK
(
CharSelectHdl
,
void
*
);
DECL_LINK
(
CharHighlightHdl
,
void
*
);
DECL_LINK
(
CharHighlightHdl
,
void
*
);
DECL_LINK
(
CharPreSelectHdl
,
void
*
);
DECL_LINK
(
CharPreSelectHdl
,
void
*
);
DECL_LINK
(
DeleteLastHdl
,
void
*
);
DECL_LINK
(
DeleteHdl
,
void
*
);
DECL_LINK
(
DeleteHdl
,
void
*
);
void
fillAllSubsets
(
ListBox
&
rListBox
);
void
fillAllSubsets
(
ListBox
&
rListBox
);
...
...
cui/uiconfig/ui/specialcharacters.ui
Dosyayı görüntüle @
ab7776e1
...
@@ -59,6 +59,20 @@
...
@@ -59,6 +59,20 @@
<property
name=
"position"
>
2
</property>
<property
name=
"position"
>
2
</property>
</packing>
</packing>
</child>
</child>
<child>
<object
class=
"GtkButton"
id=
"deletelast"
>
<property
name=
"label"
translatable=
"yes"
>
Delete _Last
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
True
</property>
<property
name=
"receives_default"
>
True
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
</packing>
</child>
<child>
<child>
<object
class=
"GtkButton"
id=
"delete"
>
<object
class=
"GtkButton"
id=
"delete"
>
<property
name=
"label"
>
gtk-delete
</property>
<property
name=
"label"
>
gtk-delete
</property>
...
@@ -71,7 +85,7 @@
...
@@ -71,7 +85,7 @@
<packing>
<packing>
<property
name=
"expand"
>
False
</property>
<property
name=
"expand"
>
False
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"fill"
>
True
</property>
<property
name=
"position"
>
3
</property>
<property
name=
"position"
>
4
</property>
</packing>
</packing>
</child>
</child>
</object>
</object>
...
...
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