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
a8aafaee
Kaydet (Commit)
a8aafaee
authored
Mar 01, 2016
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
loplugin:unuseddefaultparam in sdext
Change-Id: I6919b8ca82e81153f4f8b663f00c9ede5ffe6305
üst
bd5ceabb
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
36 deletions
+18
-36
pdfiprocessor.cxx
sdext/source/pdfimport/tree/pdfiprocessor.cxx
+2
-3
pdfiprocessor.hxx
sdext/source/pdfimport/tree/pdfiprocessor.hxx
+1
-2
PresenterCanvasHelper.cxx
sdext/source/presenter/PresenterCanvasHelper.cxx
+2
-3
PresenterCanvasHelper.hxx
sdext/source/presenter/PresenterCanvasHelper.hxx
+1
-2
PresenterPaintManager.cxx
sdext/source/presenter/PresenterPaintManager.cxx
+3
-7
PresenterPaintManager.hxx
sdext/source/presenter/PresenterPaintManager.hxx
+2
-4
PresenterScrollBar.cxx
sdext/source/presenter/PresenterScrollBar.cxx
+3
-7
PresenterScrollBar.hxx
sdext/source/presenter/PresenterScrollBar.hxx
+1
-2
PresenterSlideSorter.cxx
sdext/source/presenter/PresenterSlideSorter.cxx
+3
-6
No files found.
sdext/source/pdfimport/tree/pdfiprocessor.cxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -601,10 +601,9 @@ void PDFIProcessor::emit( XmlEmitter& rEmitter,
endIndicator
();
}
void
PDFIProcessor
::
startIndicator
(
const
OUString
&
rText
,
sal_Int32
nElements
)
void
PDFIProcessor
::
startIndicator
(
const
OUString
&
rText
)
{
if
(
nElements
==
-
1
)
nElements
=
m_nPages
;
sal_Int32
nElements
=
m_nPages
;
if
(
m_xStatusIndicator
.
is
()
)
{
sal_Int32
nUnicodes
=
rText
.
getLength
();
...
...
sdext/source/pdfimport/tree/pdfiprocessor.hxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -162,8 +162,7 @@ namespace pdfi
const
css
::
uno
::
Sequence
<
css
::
beans
::
PropertyValue
>&
xMask
)
override
;
/// nElements == -1 means fill in number of pages
void
startIndicator
(
const
OUString
&
rText
,
sal_Int32
nElements
=
-
1
);
void
startIndicator
(
const
OUString
&
rText
);
void
endIndicator
();
void
setupImage
(
ImageId
nImage
);
...
...
sdext/source/presenter/PresenterCanvasHelper.cxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -279,10 +279,9 @@ css::geometry::RealRectangle2D PresenterCanvasHelper::GetTextBoundingBox (
css
::
geometry
::
RealSize2D
PresenterCanvasHelper
::
GetTextSize
(
const
css
::
uno
::
Reference
<
css
::
rendering
::
XCanvasFont
>&
rxFont
,
const
OUString
&
rsText
,
const
sal_Int8
nTextDirection
)
const
OUString
&
rsText
)
{
const
geometry
::
RealRectangle2D
aTextBBox
(
GetTextBoundingBox
(
rxFont
,
rsText
,
nTextDirection
));
const
geometry
::
RealRectangle2D
aTextBBox
(
GetTextBoundingBox
(
rxFont
,
rsText
));
return
css
::
geometry
::
RealSize2D
(
aTextBBox
.
X2
-
aTextBBox
.
X1
,
aTextBBox
.
Y2
-
aTextBBox
.
Y1
);
}
...
...
sdext/source/presenter/PresenterCanvasHelper.hxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -68,8 +68,7 @@ public:
static
css
::
geometry
::
RealSize2D
GetTextSize
(
const
css
::
uno
::
Reference
<
css
::
rendering
::
XCanvasFont
>&
rxFont
,
const
OUString
&
rsText
,
const
sal_Int8
=
css
::
rendering
::
TextDirection
::
WEAK_LEFT_TO_RIGHT
);
const
OUString
&
rsText
);
private
:
const
css
::
rendering
::
ViewState
maDefaultViewState
;
...
...
sdext/source/presenter/PresenterPaintManager.cxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -42,8 +42,7 @@ PresenterPaintManager::PresenterPaintManager (
::
std
::
function
<
void
(
const
css
::
awt
::
Rectangle
&
rRepaintBox
)
>
PresenterPaintManager
::
GetInvalidator
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
,
const
bool
bSynchronous
)
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
)
{
return
::
boost
::
bind
(
static_cast
<
void
(
PresenterPaintManager
::*
)(
...
...
@@ -53,16 +52,13 @@ PresenterPaintManager::PresenterPaintManager (
this
,
rxWindow
,
_1
,
bSynchronous
);
false
/*bSynchronous*/
);
}
void
PresenterPaintManager
::
Invalidate
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
,
const
bool
bSynchronous
)
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
)
{
sal_Int16
nInvalidateMode
(
awt
::
InvalidateStyle
::
CHILDREN
);
if
(
bSynchronous
)
nInvalidateMode
|=
awt
::
InvalidateStyle
::
UPDATE
;
PresenterPaneContainer
::
SharedPaneDescriptor
pDescriptor
(
mpPaneContainer
->
FindContentWindow
(
rxWindow
));
...
...
sdext/source/presenter/PresenterPaintManager.hxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -48,16 +48,14 @@ public:
::
std
::
function
<
void
(
const
css
::
awt
::
Rectangle
&
rRepaintBox
)
>
GetInvalidator
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
,
const
bool
bSynchronous
=
false
);
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
);
/** Request a repaint of the whole window.
@param rxWindow
May be the parent window or one of its descendents.
*/
void
Invalidate
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
,
const
bool
bSynchronous
=
false
);
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
);
void
Invalidate
(
const
css
::
uno
::
Reference
<
css
::
awt
::
XWindow
>&
rxWindow
,
const
sal_Int16
nInvalidateFlags
);
...
...
sdext/source/presenter/PresenterScrollBar.cxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -294,8 +294,7 @@ double PresenterScrollBar::ValidateThumbPosition (double nPosition)
}
void
PresenterScrollBar
::
Paint
(
const
awt
::
Rectangle
&
rUpdateBox
,
const
bool
bNoClip
)
const
awt
::
Rectangle
&
rUpdateBox
)
{
if
(
!
mxCanvas
.
is
()
||
!
mxWindow
.
is
())
{
...
...
@@ -304,11 +303,8 @@ void PresenterScrollBar::Paint (
return
;
}
if
(
!
bNoClip
)
{
if
(
PresenterGeometryHelper
::
AreRectanglesDisjoint
(
rUpdateBox
,
mxWindow
->
getPosSize
()))
return
;
}
if
(
PresenterGeometryHelper
::
AreRectanglesDisjoint
(
rUpdateBox
,
mxWindow
->
getPosSize
()))
return
;
PaintBackground
(
rUpdateBox
);
PaintComposite
(
rUpdateBox
,
PagerUp
,
...
...
sdext/source/presenter/PresenterScrollBar.hxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -107,8 +107,7 @@ public:
scrollbar from the outside.
*/
void
Paint
(
const
css
::
awt
::
Rectangle
&
rUpdateBox
,
bool
bNoClip
=
false
);
const
css
::
awt
::
Rectangle
&
rUpdateBox
);
virtual
sal_Int32
GetSize
()
const
=
0
;
...
...
sdext/source/presenter/PresenterSlideSorter.cxx
Dosyayı görüntüle @
a8aafaee
...
...
@@ -92,8 +92,7 @@ public:
bool
IsScrollBarNeeded
(
const
sal_Int32
nSlideCount
);
geometry
::
RealPoint2D
GetLocalPosition
(
const
geometry
::
RealPoint2D
&
rWindowPoint
)
const
;
geometry
::
RealPoint2D
GetWindowPosition
(
const
geometry
::
RealPoint2D
&
rLocalPoint
)
const
;
sal_Int32
GetColumn
(
const
geometry
::
RealPoint2D
&
rLocalPoint
,
const
bool
bReturnInvalidValue
=
false
)
const
;
sal_Int32
GetColumn
(
const
geometry
::
RealPoint2D
&
rLocalPoint
)
const
;
sal_Int32
GetRow
(
const
geometry
::
RealPoint2D
&
rLocalPoint
,
const
bool
bReturnInvalidValue
=
false
)
const
;
sal_Int32
GetSlideIndexForPosition
(
const
css
::
geometry
::
RealPoint2D
&
rPoint
)
const
;
...
...
@@ -1296,13 +1295,11 @@ geometry::RealPoint2D PresenterSlideSorter::Layout::GetWindowPosition(
}
sal_Int32
PresenterSlideSorter
::
Layout
::
GetColumn
(
const
css
::
geometry
::
RealPoint2D
&
rLocalPoint
,
const
bool
bReturnInvalidValue
)
const
const
css
::
geometry
::
RealPoint2D
&
rLocalPoint
)
const
{
const
sal_Int32
nColumn
(
floor
(
(
rLocalPoint
.
X
+
mnHorizontalGap
/
2.0
)
/
(
maPreviewSize
.
Width
+
mnHorizontalGap
)));
if
(
bReturnInvalidValue
||
(
nColumn
>=
mnFirstVisibleColumn
&&
nColumn
<=
mnLastVisibleColumn
))
if
(
nColumn
>=
mnFirstVisibleColumn
&&
nColumn
<=
mnLastVisibleColumn
)
{
return
nColumn
;
}
...
...
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