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
63a40c45
Kaydet (Commit)
63a40c45
authored
May 27, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
LOK: change PAGE_COUNT to a more generic DOCUMENT_SIZE
Change-Id: If94af4072c321358d7bd4d678eeed181dc0f44db
üst
0f95f8ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
LibreOfficeKitEnums.h
include/LibreOfficeKit/LibreOfficeKitEnums.h
+4
-4
viewsh.cxx
sw/source/core/view/viewsh.cxx
+10
-0
view2.cxx
sw/source/uibase/uiview/view2.cxx
+0
-2
No files found.
include/LibreOfficeKit/LibreOfficeKitEnums.h
Dosyayı görüntüle @
63a40c45
...
...
@@ -143,12 +143,12 @@ typedef enum
LOK_CALLBACK_SEARCH_NOT_FOUND
,
/**
*
Number of pages changed in the document
.
*
Size of the document changed
.
*
*
Clients should assume that data returned by an earlier
*
lok::Document::getDocumentSize() call is no longer valid
.
*
Payload format is "width, height", i.e. clients get the new size without
*
having to do an explicit lok::Document::getDocumentSize() call
.
*/
LOK_CALLBACK_
PAGE_COUNT
_CHANGED
,
LOK_CALLBACK_
DOCUMENT_SIZE
_CHANGED
,
/**
* The current part number is changed.
...
...
sw/source/core/view/viewsh.cxx
Dosyayı görüntüle @
63a40c45
...
...
@@ -78,6 +78,7 @@
#include <vcl/virdev.hxx>
#include <vcl/svapp.hxx>
#include <svx/sdrpaintwindow.hxx>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
#if !HAVE_FEATURE_DESKTOP
#include <vcl/sysdata.hxx>
...
...
@@ -989,6 +990,15 @@ void SwViewShell::SizeChgNotify()
const
SvxNumberType
&
rNum
=
pPage
->
GetPageDesc
()
->
GetNumType
();
OUString
sDisplay
=
rNum
.
GetNumStr
(
nVirtNum
);
PageNumNotify
(
this
,
pCnt
->
GetPhyPageNum
(),
nVirtNum
,
sDisplay
);
if
(
isTiledRendering
())
{
Size
aDocSize
=
GetDocSize
();
std
::
stringstream
ss
;
ss
<<
aDocSize
.
Width
()
+
2L
*
DOCUMENTBORDER
<<
", "
<<
aDocSize
.
Height
()
+
2L
*
DOCUMENTBORDER
;
OString
sRect
=
ss
.
str
().
c_str
();
libreOfficeKitCallback
(
LOK_CALLBACK_DOCUMENT_SIZE_CHANGED
,
sRect
.
getStr
());
}
}
}
}
...
...
sw/source/uibase/uiview/view2.cxx
Dosyayı görüntüle @
63a40c45
...
...
@@ -147,7 +147,6 @@
#include <vcl/settings.hxx>
#include <boost/scoped_ptr.hpp>
#include <LibreOfficeKit/LibreOfficeKitEnums.h>
const
char
sStatusDelim
[]
=
" : "
;
const
char
sStatusComma
[]
=
" , "
;
...
...
@@ -1281,7 +1280,6 @@ void SwView::Execute(SfxRequest &rReq)
/// invalidate page numbering field
void
SwView
::
UpdatePageNums
(
sal_uInt16
nPhyNum
,
sal_uInt16
nVirtNum
,
const
OUString
&
rPgStr
)
{
GetWrtShell
().
libreOfficeKitCallback
(
LOK_CALLBACK_PAGE_COUNT_CHANGED
,
0
);
OUString
sTemp
(
GetPageStr
(
nPhyNum
,
nVirtNum
,
rPgStr
));
const
SfxStringItem
aTmp
(
FN_STAT_PAGE
,
sTemp
);
// Used to distinguish which tooltip to show
...
...
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