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
14a9a7d5
Kaydet (Commit)
14a9a7d5
authored
Eyl 24, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
desktop: make LibLibreOffice_Impl visible to testcases
Change-Id: I345a6cab57cc594614e348700bb3c1c9a0673989
üst
9b9f2ad9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
30 deletions
+31
-30
init.hxx
desktop/inc/lib/init.hxx
+12
-0
init.cxx
desktop/source/lib/init.cxx
+19
-30
No files found.
desktop/inc/lib/init.hxx
Dosyayı görüntüle @
14a9a7d5
...
...
@@ -15,6 +15,7 @@
#include <com/sun/star/lang/XComponent.hpp>
#include <memory>
#include "../../source/inc/desktopdllapi.h"
#include <osl/thread.h>
namespace
desktop
{
struct
DESKTOP_DLLPUBLIC
LibLODocument_Impl
:
public
_LibreOfficeKitDocument
...
...
@@ -25,6 +26,17 @@ namespace desktop {
explicit
LibLODocument_Impl
(
const
css
::
uno
::
Reference
<
css
::
lang
::
XComponent
>
&
xComponent
);
~
LibLODocument_Impl
();
};
struct
DESKTOP_DLLPUBLIC
LibLibreOffice_Impl
:
public
_LibreOfficeKit
{
OUString
maLastExceptionMsg
;
std
::
shared_ptr
<
LibreOfficeKitClass
>
m_pOfficeClass
;
oslThread
maThread
;
LibreOfficeKitCallback
mpCallback
;
void
*
mpCallbackData
;
LibLibreOffice_Impl
();
};
}
#endif
...
...
desktop/source/lib/init.cxx
Dosyayı görüntüle @
14a9a7d5
...
...
@@ -85,8 +85,6 @@ using namespace vcl;
using
namespace
desktop
;
using
namespace
utl
;
struct
LibLibreOffice_Impl
;
static
LibLibreOffice_Impl
*
gImpl
=
NULL
;
static
std
::
weak_ptr
<
LibreOfficeKitClass
>
gOfficeClass
;
static
std
::
weak_ptr
<
LibreOfficeKitDocumentClass
>
gDocumentClass
;
...
...
@@ -319,36 +317,27 @@ static void lo_registerCallback (LibreOfficeKit* pThis,
void
*
pData
);
static
char
*
lo_getFilterTypes
(
LibreOfficeKit
*
pThis
);
struct
LibLibreOffice_Impl
:
public
_LibreOfficeKit
LibLibreOffice_Impl
::
LibLibreOffice_Impl
()
:
maThread
(
0
)
,
mpCallback
(
nullptr
)
,
mpCallbackData
(
nullptr
)
{
OUString
maLastExceptionMsg
;
std
::
shared_ptr
<
LibreOfficeKitClass
>
m_pOfficeClass
;
oslThread
maThread
;
LibreOfficeKitCallback
mpCallback
;
void
*
mpCallbackData
;
LibLibreOffice_Impl
()
:
maThread
(
0
)
,
mpCallback
(
nullptr
)
,
mpCallbackData
(
nullptr
)
{
if
(
!
(
m_pOfficeClass
=
gOfficeClass
.
lock
()))
{
m_pOfficeClass
.
reset
(
new
LibreOfficeKitClass
);
m_pOfficeClass
->
nSize
=
sizeof
(
LibreOfficeKitClass
);
m_pOfficeClass
->
destroy
=
lo_destroy
;
m_pOfficeClass
->
documentLoad
=
lo_documentLoad
;
m_pOfficeClass
->
getError
=
lo_getError
;
m_pOfficeClass
->
documentLoadWithOptions
=
lo_documentLoadWithOptions
;
m_pOfficeClass
->
registerCallback
=
lo_registerCallback
;
m_pOfficeClass
->
getFilterTypes
=
lo_getFilterTypes
;
gOfficeClass
=
m_pOfficeClass
;
}
pClass
=
m_pOfficeClass
.
get
();
if
(
!
(
m_pOfficeClass
=
gOfficeClass
.
lock
()))
{
m_pOfficeClass
.
reset
(
new
LibreOfficeKitClass
);
m_pOfficeClass
->
nSize
=
sizeof
(
LibreOfficeKitClass
);
m_pOfficeClass
->
destroy
=
lo_destroy
;
m_pOfficeClass
->
documentLoad
=
lo_documentLoad
;
m_pOfficeClass
->
getError
=
lo_getError
;
m_pOfficeClass
->
documentLoadWithOptions
=
lo_documentLoadWithOptions
;
m_pOfficeClass
->
registerCallback
=
lo_registerCallback
;
m_pOfficeClass
->
getFilterTypes
=
lo_getFilterTypes
;
gOfficeClass
=
m_pOfficeClass
;
}
};
pClass
=
m_pOfficeClass
.
get
();
}
namespace
{
...
...
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