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
3a1a5b97
Kaydet (Commit)
3a1a5b97
authored
Haz 09, 2015
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
-Werror,-Wunused-private-field
Change-Id: I76cf487c66e048b5e9d0877a1b690cd066b73528
üst
9805ae85
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
lokdocview.cxx
libreofficekit/source/gtk/lokdocview.cxx
+3
-7
tilebuffer.hxx
libreofficekit/source/gtk/tilebuffer.hxx
+0
-4
No files found.
libreofficekit/source/gtk/lokdocview.cxx
Dosyayı görüntüle @
3a1a5b97
...
...
@@ -274,7 +274,7 @@ LOKDocView_Impl::CallbackData::CallbackData(int nType, const std::string& rPaylo
LOKDocView_Impl
::
LOKDocView_Impl
(
LOKDocView
*
pDocView
)
:
m_pDocView
(
pDocView
),
m_pDrawingArea
(
gtk_drawing_area_new
()),
m_aTileBuffer
(
TileBuffer
(
0
,
0
,
0
)),
m_aTileBuffer
(
TileBuffer
(
0
,
0
)),
m_fZoom
(
1
),
m_pOffice
(
0
),
m_pDocument
(
0
),
...
...
@@ -1230,13 +1230,11 @@ SAL_DLLPUBLIC_EXPORT gboolean lok_doc_view_open_document( LOKDocView* pDocView,
long
nDocumentHeightTwips
=
pDocView
->
m_pImpl
->
m_nDocumentHeightTwips
;
long
nDocumentWidthPixels
=
twipToPixel
(
nDocumentWidthTwips
,
zoom
);
long
nDocumentHeightPixels
=
twipToPixel
(
nDocumentHeightTwips
,
zoom
);
// Total number of rows / columns in this document.
guint
nRows
=
ceil
((
double
)
nDocumentHeightPixels
/
nTileSizePixels
);
// Total number of columns in this document.
guint
nColumns
=
ceil
((
double
)
nDocumentWidthPixels
/
nTileSizePixels
);
pDocView
->
m_pImpl
->
m_aTileBuffer
=
TileBuffer
(
pDocView
->
m_pImpl
->
m_pDocument
,
nRows
,
nColumns
);
gtk_widget_set_size_request
(
pDocView
->
m_pImpl
->
m_pDrawingArea
,
nDocumentWidthPixels
,
...
...
@@ -1257,12 +1255,10 @@ SAL_DLLPUBLIC_EXPORT void lok_doc_view_set_zoom ( LOKDocView* pDocView, float fZ
pDocView
->
m_pImpl
->
m_fZoom
=
fZoom
;
long
nDocumentWidthPixels
=
twipToPixel
(
pDocView
->
m_pImpl
->
m_nDocumentWidthTwips
,
fZoom
);
long
nDocumentHeightPixels
=
twipToPixel
(
pDocView
->
m_pImpl
->
m_nDocumentHeightTwips
,
fZoom
);
// Total number of rows / columns in this document.
guint
nRows
=
ceil
((
double
)
nDocumentHeightPixels
/
nTileSizePixels
);
// Total number of columns in this document.
guint
nColumns
=
ceil
((
double
)
nDocumentWidthPixels
/
nTileSizePixels
);
pDocView
->
m_pImpl
->
m_aTileBuffer
=
TileBuffer
(
pDocView
->
m_pImpl
->
m_pDocument
,
nRows
,
nColumns
);
gtk_widget_set_size_request
(
pDocView
->
m_pImpl
->
m_pDrawingArea
,
nDocumentWidthPixels
,
...
...
libreofficekit/source/gtk/tilebuffer.hxx
Dosyayı görüntüle @
3a1a5b97
...
...
@@ -83,11 +83,9 @@ class TileBuffer
{
public
:
TileBuffer
(
LibreOfficeKitDocument
*
document
,
int
rows
,
int
columns
)
:
m_pLOKDocument
(
document
)
,
m_nWidth
(
columns
)
,
m_nHeight
(
rows
)
{
}
~
TileBuffer
()
{}
...
...
@@ -126,8 +124,6 @@ class TileBuffer
std
::
map
<
int
,
Tile
>
m_mTiles
;
/// Width of the current tile buffer (number of columns)
int
m_nWidth
;
/// Height of the current tile buffer (numbero of rows)
int
m_nHeight
;
};
#endif // INCLUDED_TILEBUFFER_HXX
...
...
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