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
e2ae01d4
Kaydet (Commit)
e2ae01d4
authored
Mar 11, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: I6a1fb3daf5e41c55c2174ae5996302123e613511
üst
580dc29e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
22 deletions
+22
-22
swcrsr.hxx
sw/inc/swcrsr.hxx
+2
-2
viscrs.hxx
sw/inc/viscrs.hxx
+5
-5
swcrsr.cxx
sw/source/core/crsr/swcrsr.cxx
+7
-7
viscrs.cxx
sw/source/core/crsr/viscrs.cxx
+8
-8
No files found.
sw/inc/swcrsr.hxx
Dosyayı görüntüle @
e2ae01d4
...
...
@@ -196,8 +196,8 @@ public:
/** Restore cursor state to the one saved by SwCrsrSaveState **/
void
RestoreSavePos
();
//
sal_T
rue: cursor can be set at this position.
virtual
sal_Bool
IsAtValidPos
(
sal_Bool
bPoint
=
sal_T
rue
)
const
;
//
t
rue: cursor can be set at this position.
virtual
bool
IsAtValidPos
(
bool
bPoint
=
t
rue
)
const
;
// Is cursor allowed in ready only ranges?
virtual
bool
IsReadOnlyAvailable
()
const
;
...
...
sw/inc/viscrs.hxx
Dosyayı görüntüle @
e2ae01d4
...
...
@@ -151,8 +151,8 @@ public:
bool
UpDown
(
bool
bUp
,
sal_uInt16
nCnt
=
1
);
//
sal_T
rue: Cursor can be set to this position.
virtual
sal_Bool
IsAtValidPos
(
sal_Bool
bPoint
=
sal_T
rue
)
const
;
//
t
rue: Cursor can be set to this position.
virtual
bool
IsAtValidPos
(
bool
bPoint
=
t
rue
)
const
;
virtual
bool
IsReadOnlyAvailable
()
const
;
...
...
@@ -175,7 +175,7 @@ public:
virtual
void
FillRects
();
// For table and normal cursor.
// Check if SPoint is within table SSelection.
sal_B
ool
IsInside
(
const
Point
&
rPt
)
const
;
b
ool
IsInside
(
const
Point
&
rPt
)
const
;
virtual
void
SetMark
();
virtual
SwCursor
*
Create
(
SwPaM
*
pRing
=
0
)
const
;
...
...
@@ -183,8 +183,8 @@ public:
virtual
short
MaxReplaceArived
();
//returns RET_YES/RET_CANCEL/RET_NO
virtual
void
SaveTblBoxCntnt
(
const
SwPosition
*
pPos
=
0
);
//
sal_T
rue: Cursor can be set to this position.
virtual
sal_Bool
IsAtValidPos
(
sal_Bool
bPoint
=
sal_T
rue
)
const
;
//
t
rue: Cursor can be set to this position.
virtual
bool
IsAtValidPos
(
bool
bPoint
=
t
rue
)
const
;
};
...
...
sw/source/core/crsr/swcrsr.cxx
Dosyayı görüntüle @
e2ae01d4
...
...
@@ -686,7 +686,7 @@ SetPrevCrsr:
}
/// Return <true> if cursor can be set to this position
sal_Bool
SwCursor
::
IsAtValidPos
(
sal_B
ool
bPoint
)
const
bool
SwCursor
::
IsAtValidPos
(
b
ool
bPoint
)
const
{
const
SwDoc
*
pDoc
=
GetDoc
();
const
SwPosition
*
pPos
=
bPoint
?
GetPoint
()
:
GetMark
();
...
...
@@ -695,23 +695,23 @@ sal_Bool SwCursor::IsAtValidPos( sal_Bool bPoint ) const
if
(
pNd
->
IsCntntNode
()
&&
!
((
SwCntntNode
*
)
pNd
)
->
getLayoutFrm
(
pDoc
->
GetCurrentLayout
()
)
&&
!
dynamic_cast
<
const
SwUnoCrsr
*>
(
this
)
)
{
return
sal_F
alse
;
return
f
alse
;
}
// #i45129# - in UI-ReadOnly everything is allowed
if
(
!
pDoc
->
GetDocShell
()
||
!
pDoc
->
GetDocShell
()
->
IsReadOnlyUI
()
)
return
sal_T
rue
;
return
t
rue
;
sal_B
ool
bCrsrInReadOnly
=
IsReadOnlyAvailable
();
const
b
ool
bCrsrInReadOnly
=
IsReadOnlyAvailable
();
if
(
!
bCrsrInReadOnly
&&
pNd
->
IsProtect
()
)
return
sal_F
alse
;
return
f
alse
;
const
SwSectionNode
*
pSectNd
=
pNd
->
FindSectionNode
();
if
(
pSectNd
&&
(
pSectNd
->
GetSection
().
IsHiddenFlag
()
||
(
!
bCrsrInReadOnly
&&
pSectNd
->
GetSection
().
IsProtectFlag
()
)))
return
sal_F
alse
;
return
f
alse
;
return
sal_T
rue
;
return
t
rue
;
}
void
SwCursor
::
SaveTblBoxCntnt
(
const
SwPosition
*
)
{}
...
...
sw/source/core/crsr/viscrs.cxx
Dosyayı görüntüle @
e2ae01d4
...
...
@@ -137,7 +137,7 @@ void SwVisCrsr::_SetPosAndShow()
if
(
rNode
.
IsTxtNode
()
)
{
const
SwTxtNode
&
rTNd
=
*
rNode
.
GetTxtNode
();
const
SwFrm
*
pFrm
=
rTNd
.
getLayoutFrm
(
m_pCrsrShell
->
GetLayout
(),
0
,
0
,
sal_F
alse
);
const
SwFrm
*
pFrm
=
rTNd
.
getLayoutFrm
(
m_pCrsrShell
->
GetLayout
(),
0
,
0
,
f
alse
);
if
(
pFrm
)
{
const
SwScriptInfo
*
pSI
=
((
SwTxtFrm
*
)
pFrm
)
->
GetScriptInfo
();
...
...
@@ -630,13 +630,13 @@ bool SwShellCrsr::UpDown( bool bUp, sal_uInt16 nCnt )
}
// if <true> than the cursor can be set to the position.
sal_Bool
SwShellCrsr
::
IsAtValidPos
(
sal_B
ool
bPoint
)
const
bool
SwShellCrsr
::
IsAtValidPos
(
b
ool
bPoint
)
const
{
if
(
GetShell
()
&&
(
GetShell
()
->
IsAllProtect
()
||
GetShell
()
->
GetViewOptions
()
->
IsReadonly
()
||
(
GetShell
()
->
Imp
()
->
GetDrawView
()
&&
GetShell
()
->
Imp
()
->
GetDrawView
()
->
GetMarkedObjectList
().
GetMarkCount
()
)))
return
sal_T
rue
;
return
t
rue
;
return
SwCursor
::
IsAtValidPos
(
bPoint
);
}
...
...
@@ -726,11 +726,11 @@ void SwShellTableCrsr::FillRects()
}
// Check if the SPoint is within the Table-SSelection.
sal_B
ool
SwShellTableCrsr
::
IsInside
(
const
Point
&
rPt
)
const
b
ool
SwShellTableCrsr
::
IsInside
(
const
Point
&
rPt
)
const
{
// Calculate the new rectangles. If the cursor is still "parked" do nothing
if
(
m_SelectedBoxes
.
empty
()
||
bParked
||
!
GetPoint
()
->
nNode
.
GetIndex
())
return
sal_F
alse
;
return
f
alse
;
SwNodes
&
rNds
=
GetDoc
()
->
GetNodes
();
for
(
size_t
n
=
0
;
n
<
m_SelectedBoxes
.
size
();
++
n
)
...
...
@@ -745,12 +745,12 @@ sal_Bool SwShellTableCrsr::IsInside( const Point& rPt ) const
pFrm
=
pFrm
->
GetUpper
();
OSL_ENSURE
(
pFrm
,
"Node not in a table"
);
if
(
pFrm
&&
pFrm
->
Frm
().
IsInside
(
rPt
)
)
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
sal_Bool
SwShellTableCrsr
::
IsAtValidPos
(
sal_B
ool
bPoint
)
const
bool
SwShellTableCrsr
::
IsAtValidPos
(
b
ool
bPoint
)
const
{
return
SwShellCrsr
::
IsAtValidPos
(
bPoint
);
}
...
...
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