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
3d81ec33
Kaydet (Commit)
3d81ec33
authored
Agu 18, 2017
tarafından
Pranav Kant
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
lokdialog: Add dialog APIs to lok::Document class
Change-Id: I1947dc84c91e2e01072fbff3e97aa94d514ecb5a
üst
fa02b636
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
4 deletions
+41
-4
LibreOfficeKit.h
include/LibreOfficeKit/LibreOfficeKit.h
+6
-4
LibreOfficeKit.hxx
include/LibreOfficeKit/LibreOfficeKit.hxx
+35
-0
No files found.
include/LibreOfficeKit/LibreOfficeKit.h
Dosyayı görüntüle @
3d81ec33
...
...
@@ -266,19 +266,21 @@ struct _LibreOfficeKitDocumentClass
int
*
pArray
,
size_t
nSize
);
/// WIP
/// Paints dialog with given dialog id to the buffer
/// @see lok::Document::paintDialog().
void
(
*
paintDialog
)
(
LibreOfficeKitDocument
*
pThis
,
const
char
*
pDialogId
,
unsigned
char
*
pBuffer
,
int
*
nWidth
,
int
*
nHeight
);
/// @see lok::Document::paintActiveFloatingWindow().
void
(
*
paintActiveFloatingWindow
)
(
LibreOfficeKitDocument
*
pThis
,
const
char
*
pDialogId
,
unsigned
char
*
pBuffer
,
int
*
nWidth
,
int
*
nHeight
);
///
WIP
///
@see lok::Document::postDialogKeyEvent().
void
(
*
postDialogKeyEvent
)
(
LibreOfficeKitDocument
*
pThis
,
const
char
*
pDialogId
,
int
nType
,
int
nCharCode
,
int
nKeyCode
);
///
WIP
///
@see lok::Document::postDialogMouseEvent().
void
(
*
postDialogMouseEvent
)
(
LibreOfficeKitDocument
*
pThis
,
const
char
*
pDialogId
,
int
nType
,
...
...
@@ -288,7 +290,7 @@ struct _LibreOfficeKitDocumentClass
int
nButtons
,
int
nModifier
);
/// WIP
/// @see lok::Document::postDialogChildMouseEvent().
void
(
*
postDialogChildMouseEvent
)
(
LibreOfficeKitDocument
*
pThis
,
const
char
*
pDialogId
,
int
nType
,
...
...
include/LibreOfficeKit/LibreOfficeKit.hxx
Dosyayı görüntüle @
3d81ec33
...
...
@@ -155,6 +155,25 @@ public:
nTilePosX
,
nTilePosY
,
nTileWidth
,
nTileHeight
);
}
/**
* Renders a dialog with give dialog id and writes the width and height of the rendered dialog
*
* Client must truncate pBuffer according to the nWidth and nHeight returned after the call.
*
* @param pDialogId Unique dialog id to be painted
* @param pBuffer Buffer with enough memory allocated to render any dialog
* @param nWidth output parameter returning the width of the rendered dialog.
* @param nHeight output parameter returning the height of the rendered dialog
*/
void
paintDialog
(
const
char
*
pDialogId
,
unsigned
char
*
pBuffer
,
int
&
nWidth
,
int
&
nHeight
)
{
return
mpDoc
->
pClass
->
paintDialog
(
mpDoc
,
pDialogId
,
pBuffer
,
&
nWidth
,
&
nHeight
);
}
/**
* Gets the tile mode: the pixel format used for the pBuffer of paintTile().
*
...
...
@@ -235,6 +254,22 @@ public:
mpDoc
->
pClass
->
postMouseEvent
(
mpDoc
,
nType
,
nX
,
nY
,
nCount
,
nButtons
,
nModifier
);
}
/**
* Posts a mouse event to the dialog with given id.
*
* @param aDialogId Dialog id where mouse event is to be posted
* @param nType Event type, like down, move or up.
* @param nX horizontal position in document coordinates
* @param nY vertical position in document coordinates
* @param nCount number of clicks: 1 for single click, 2 for double click
* @param nButtons: which mouse buttons: 1 for left, 2 for middle, 4 right
* @param nModifier: which keyboard modifier: (see include/vcl/vclenum.hxx for possible values)
*/
void
postDialogMouseEvent
(
const
char
*
pDialogId
,
int
nType
,
int
nX
,
int
nY
,
int
nCount
,
int
nButtons
,
int
nModifier
)
{
mpDoc
->
pClass
->
postDialogMouseEvent
(
mpDoc
,
pDialogId
,
nType
,
nX
,
nY
,
nCount
,
nButtons
,
nModifier
);
}
/**
* Posts an UNO command to the document.
*
...
...
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