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
6123d6a9
Kaydet (Commit)
6123d6a9
authored
Ara 29, 2014
tarafından
Tomaž Vajngerl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
android: Add initializeForRendering to LOK
Change-Id: Ibf4721bf4358ef215efde09ef688b2551604bfa2
üst
766c1243
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
36 additions
and
0 deletions
+36
-0
Document.java
android/Bootstrap/src/org/libreoffice/kit/Document.java
+3
-0
init.cxx
desktop/source/lib/init.cxx
+12
-0
lokandroid.cxx
desktop/source/lib/lokandroid.cxx
+7
-0
LibreOfficeKit.h
include/LibreOfficeKit/LibreOfficeKit.h
+4
-0
LibreOfficeKit.hxx
include/LibreOfficeKit/LibreOfficeKit.hxx
+6
-0
ITiledRenderable.hxx
include/vcl/ITiledRenderable.hxx
+4
-0
No files found.
android/Bootstrap/src/org/libreoffice/kit/Document.java
Dosyayı görüntüle @
6123d6a9
...
...
@@ -59,4 +59,7 @@ public class Document {
public
void
paintTile
(
ByteBuffer
buffer
,
int
canvasWidth
,
int
canvasHeight
,
int
tilePositionX
,
int
tilePositionY
,
int
tileWidth
,
int
tileHeight
)
{
paintTileNative
(
buffer
,
canvasWidth
,
canvasHeight
,
tilePositionX
,
tilePositionY
,
tileWidth
,
tileHeight
);
}
public
native
void
initializeForRendering
();
}
desktop/source/lib/init.cxx
Dosyayı görüntüle @
6123d6a9
...
...
@@ -197,6 +197,8 @@ void doc_paintTile(LibreOfficeKitDocument* pThis,
static
void
doc_getDocumentSize
(
LibreOfficeKitDocument
*
pThis
,
long
*
pWidth
,
long
*
pHeight
);
static
void
doc_initializeForRendering
(
LibreOfficeKitDocument
*
pThis
);
struct
LibLODocument_Impl
:
public
_LibreOfficeKitDocument
{
...
...
@@ -222,6 +224,7 @@ struct LibLODocument_Impl : public _LibreOfficeKitDocument
m_pDocumentClass
->
setPartMode
=
doc_setPartMode
;
m_pDocumentClass
->
paintTile
=
doc_paintTile
;
m_pDocumentClass
->
getDocumentSize
=
doc_getDocumentSize
;
m_pDocumentClass
->
initializeForRendering
=
doc_initializeForRendering
;
gDocumentClass
=
m_pDocumentClass
;
}
...
...
@@ -608,6 +611,15 @@ static void doc_getDocumentSize(LibreOfficeKitDocument* pThis,
}
}
static
void
doc_initializeForRendering
(
LibreOfficeKitDocument
*
pThis
)
{
ITiledRenderable
*
pDoc
=
getTiledRenderable
(
pThis
);
if
(
pDoc
)
{
pDoc
->
initializeForTiledRendering
();
}
}
static
char
*
lo_getError
(
LibreOfficeKit
*
pThis
)
{
LibLibreOffice_Impl
*
pLib
=
static_cast
<
LibLibreOffice_Impl
*>
(
pThis
);
...
...
desktop/source/lib/lokandroid.cxx
Dosyayı görüntüle @
6123d6a9
...
...
@@ -165,6 +165,13 @@ extern "C" SAL_JNI_EXPORT jlong JNICALL Java_org_libreoffice_kit_Document_getDoc
return
nWidth
;
}
extern
"C"
SAL_JNI_EXPORT
void
JNICALL
Java_org_libreoffice_kit_Document_initializeForRendering
(
JNIEnv
*
pEnv
,
jobject
aObject
)
{
LibreOfficeKitDocument
*
pDocument
=
getHandle
<
LibreOfficeKitDocument
>
(
pEnv
,
aObject
);
pDocument
->
pClass
->
initializeForRendering
(
pDocument
);
}
extern
"C"
SAL_JNI_EXPORT
jint
JNICALL
Java_org_libreoffice_kit_Office_saveAs
(
JNIEnv
*
pEnv
,
jobject
aObject
,
jstring
sUrl
,
jstring
sFormat
,
jstring
sOptions
)
{
...
...
include/LibreOfficeKit/LibreOfficeKit.h
Dosyayı görüntüle @
6123d6a9
...
...
@@ -113,6 +113,10 @@ struct _LibreOfficeKitDocumentClass
void
(
*
getDocumentSize
)
(
LibreOfficeKitDocument
*
pThis
,
long
*
pWidth
,
long
*
pHeight
);
// Initialize document for rendering.
void
(
*
initializeForRendering
)
(
LibreOfficeKitDocument
*
pThis
);
#endif // LOK_USE_UNSTABLE_API
};
...
...
include/LibreOfficeKit/LibreOfficeKit.hxx
Dosyayı görüntüle @
6123d6a9
...
...
@@ -87,6 +87,12 @@ public:
{
mpDoc
->
pClass
->
getDocumentSize
(
mpDoc
,
pWidth
,
pHeight
);
}
inline
void
initializeForRendering
()
{
mpDoc
->
pClass
->
initializeForRendering
(
mpDoc
);
}
#endif // LOK_USE_UNSTABLE_API
};
...
...
include/vcl/ITiledRenderable.hxx
Dosyayı görüntüle @
6123d6a9
...
...
@@ -83,6 +83,10 @@ public:
{
(
void
)
ePartMode
;
}
virtual
void
initializeForTiledRendering
()
{
}
};
}
// namespace vcl
...
...
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