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
626b1e91
Kaydet (Commit)
626b1e91
authored
May 18, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:staticmethods
Change-Id: I660d68b9b596be531d595c35666a33fb02d6fd6a
üst
7cd78fc5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
28 deletions
+31
-28
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+31
-28
No files found.
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
626b1e91
...
...
@@ -183,8 +183,6 @@ struct LOKDocView_Impl
static
gboolean
globalCallback
(
gpointer
pData
);
/// Implementation of the callback handler, invoked by callback();
gboolean
callbackImpl
(
CallbackData
*
pCallbackData
);
/// Implementation of the global callback handler, invoked by globalCallback();
gboolean
globalCallbackImpl
(
CallbackData
*
pCallbackData
);
/// Our LOK callback, runs on the LO thread.
static
void
callbackWorker
(
int
nType
,
const
char
*
pPayload
,
void
*
pData
);
/// Implementation of the callback worder handler, invoked by callbackWorker().
...
...
@@ -197,6 +195,36 @@ struct LOKDocView_Impl
void
commandChanged
(
const
std
::
string
&
rPayload
);
};
namespace
{
/// Implementation of the global callback handler, invoked by globalCallback();
gboolean
globalCallbackImpl
(
LOKDocView_Impl
::
CallbackData
*
pCallback
)
{
switch
(
pCallback
->
m_nType
)
{
case
LOK_CALLBACK_STATUS_INDICATOR_START
:
{
}
break
;
case
LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE
:
{
}
break
;
case
LOK_CALLBACK_STATUS_INDICATOR_FINISH
:
{
}
break
;
default
:
g_assert
(
false
);
break
;
}
delete
pCallback
;
return
G_SOURCE_REMOVE
;
}
}
LOKDocView_Impl
::
CallbackData
::
CallbackData
(
int
nType
,
const
std
::
string
&
rPayload
,
LOKDocView
*
pDocView
)
:
m_nType
(
nType
),
m_aPayload
(
rPayload
),
...
...
@@ -899,7 +927,7 @@ gboolean LOKDocView_Impl::callback(gpointer pData)
gboolean
LOKDocView_Impl
::
globalCallback
(
gpointer
pData
)
{
LOKDocView_Impl
::
CallbackData
*
pCallback
=
static_cast
<
LOKDocView_Impl
::
CallbackData
*>
(
pData
);
return
pCallback
->
m_pDocView
->
m_pImpl
->
globalCallbackImpl
(
pCallback
);
return
globalCallbackImpl
(
pCallback
);
}
gboolean
LOKDocView_Impl
::
callbackImpl
(
CallbackData
*
pCallback
)
...
...
@@ -987,31 +1015,6 @@ gboolean LOKDocView_Impl::callbackImpl(CallbackData* pCallback)
return
G_SOURCE_REMOVE
;
}
gboolean
LOKDocView_Impl
::
globalCallbackImpl
(
CallbackData
*
pCallback
)
{
switch
(
pCallback
->
m_nType
)
{
case
LOK_CALLBACK_STATUS_INDICATOR_START
:
{
}
break
;
case
LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE
:
{
}
break
;
case
LOK_CALLBACK_STATUS_INDICATOR_FINISH
:
{
}
break
;
default
:
g_assert
(
false
);
break
;
}
delete
pCallback
;
return
G_SOURCE_REMOVE
;
}
void
LOKDocView_Impl
::
callbackWorker
(
int
nType
,
const
char
*
pPayload
,
void
*
pData
)
{
LOKDocView
*
pDocView
=
static_cast
<
LOKDocView
*>
(
pData
);
...
...
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