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
a12286cf
Kaydet (Commit)
a12286cf
authored
Şub 14, 2013
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
more reliable detecting of changes in the combobox lineedit
Change-Id: I3563a961c54e235fffe0c2ab1809f51882ba3831
üst
fe8bfb20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
18 deletions
+14
-18
tbcontrl.cxx
svx/source/tbxctrls/tbcontrl.cxx
+14
-18
No files found.
svx/source/tbxctrls/tbcontrl.cxx
Dosyayı görüntüle @
a12286cf
...
...
@@ -191,7 +191,7 @@ private:
void
ReleaseFocus_Impl
();
void
EnableControls_Impl
();
void
CheckAndMarkUnknownFont
(
const
OUString
&
fontname
);
DECL_DLLPRIVATE_LINK
(
CheckAndMarkUnknownFont
,
VclWindowEvent
*
);
protected
:
virtual
void
Select
();
...
...
@@ -201,6 +201,7 @@ public:
SvxFontNameBox_Impl
(
Window
*
pParent
,
const
Reference
<
XDispatchProvider
>&
rDispatchProvider
,
const
Reference
<
XFrame
>&
_xFrame
,
WinBits
nStyle
=
WB_SORT
);
virtual
~
SvxFontNameBox_Impl
();
void
FillList
();
void
Update
(
const
SvxFontItem
*
pFontItem
);
...
...
@@ -209,8 +210,6 @@ public:
void
Fill
(
const
FontList
*
pList
)
{
FontNameBox
::
Fill
(
pList
);
nFtCount
=
pList
->
GetFontNameCount
();
}
virtual
void
SetText
(
const
OUString
&
rStr
)
SAL_OVERRIDE
;
virtual
void
SetText
(
const
OUString
&
rStr
,
const
Selection
&
rNewSelection
)
SAL_OVERRIDE
;
virtual
long
PreNotify
(
NotifyEvent
&
rNEvt
);
virtual
long
Notify
(
NotifyEvent
&
rNEvt
);
virtual
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
CreateAccessible
();
...
...
@@ -771,7 +770,14 @@ SvxFontNameBox_Impl::SvxFontNameBox_Impl( Window* pParent, const Reference< XDis
{
SetSizePixel
(
LogicToPixel
(
aLogicalSize
,
MAP_APPFONT
));
EnableControls_Impl
();
GetSubEdit
()
->
AddEventListener
(
LINK
(
this
,
SvxFontNameBox_Impl
,
CheckAndMarkUnknownFont
));
}
SvxFontNameBox_Impl
::~
SvxFontNameBox_Impl
()
{
GetSubEdit
()
->
RemoveEventListener
(
LINK
(
this
,
SvxFontNameBox_Impl
,
CheckAndMarkUnknownFont
));
}
// -----------------------------------------------------------------------
void
SvxFontNameBox_Impl
::
FillList
()
...
...
@@ -784,22 +790,11 @@ void SvxFontNameBox_Impl::FillList()
SetSelection
(
aOldSel
);
}
void
SvxFontNameBox_Impl
::
SetText
(
const
OUString
&
rStr
)
{
CheckAndMarkUnknownFont
(
rStr
);
return
FontNameBox
::
SetText
(
rStr
);
}
void
SvxFontNameBox_Impl
::
SetText
(
const
OUString
&
rStr
,
const
Selection
&
rNewSelection
)
{
CheckAndMarkUnknownFont
(
rStr
);
return
FontNameBox
::
SetText
(
rStr
,
rNewSelection
);
}
void
SvxFontNameBox_Impl
::
CheckAndMarkUnknownFont
(
const
OUString
&
fontname
)
IMPL_LINK
(
SvxFontNameBox_Impl
,
CheckAndMarkUnknownFont
,
VclWindowEvent
*
,
event
)
{
if
(
fontname
==
GetText
())
return
;
if
(
event
->
GetId
()
!=
VCLEVENT_EDIT_MODIFY
)
return
0
;
OUString
fontname
=
GetSubEdit
()
->
GetText
();
GetDocFontList_Impl
(
&
pFontList
,
this
);
// If the font is unknown, show it in italic.
Font
font
=
GetControlFont
();
...
...
@@ -821,6 +816,7 @@ void SvxFontNameBox_Impl::CheckAndMarkUnknownFont( const OUString& fontname )
SetQuickHelpText
(
SVX_RESSTR
(
RID_SVXSTR_CHARFONTNAME_NOTAVAILABLE
));
}
}
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