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
53f7f2a3
Kaydet (Commit)
53f7f2a3
authored
Eyl 20, 2012
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Id29032b3f2f228141e37f713c798d61cc20584c0
üst
25f935bf
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
54 deletions
+53
-54
accmap.hxx
sw/inc/accmap.hxx
+4
-4
accfrmobjmap.cxx
sw/source/core/access/accfrmobjmap.cxx
+1
-1
accfrmobjmap.hxx
sw/source/core/access/accfrmobjmap.hxx
+1
-1
accfrmobjslist.hxx
sw/source/core/access/accfrmobjslist.hxx
+5
-5
accmap.cxx
sw/source/core/access/accmap.cxx
+42
-43
No files found.
sw/inc/accmap.hxx
Dosyayı görüntüle @
53f7f2a3
...
...
@@ -103,7 +103,7 @@ class SwAccessibleMap : public accessibility::IAccessibleViewForwarder,
sal_Int32
mnEndnote
;
sal_B
ool
mbShapeSelected
;
b
ool
mbShapeSelected
;
void
FireEvent
(
const
SwAccessibleEvent_Impl
&
rEvent
);
...
...
@@ -116,11 +116,11 @@ class SwAccessibleMap : public accessibility::IAccessibleViewForwarder,
void
DoInvalidateShapeFocus
();
void
InvalidateShapeSelection
();
void
_InvalidateRelationSet
(
const
SwFrm
*
pFrm
,
sal_B
ool
bFrom
);
void
_InvalidateRelationSet
(
const
SwFrm
*
pFrm
,
b
ool
bFrom
);
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
accessibility
::
XAccessible
>
_GetDocumentView
(
sal_B
ool
bPagePreview
);
_GetDocumentView
(
b
ool
bPagePreview
);
/** method to build up a new data structure of the accessible pararaphs,
which have a selection
...
...
@@ -250,7 +250,7 @@ public:
const
Size
&
_rPrevwWinSize
);
void
InvalidatePreViewSelection
(
sal_uInt16
nSelPage
);
sal_B
ool
IsPageSelected
(
const
SwPageFrm
*
pPageFrm
)
const
;
b
ool
IsPageSelected
(
const
SwPageFrm
*
pPageFrm
)
const
;
void
FireEvents
();
...
...
sw/source/core/access/accfrmobjmap.cxx
Dosyayı görüntüle @
53f7f2a3
...
...
@@ -158,7 +158,7 @@ SwAccessibleChildMap::SwAccessibleChildMap( const SwRect& rVisArea,
return
_SwAccessibleChildMap
::
insert
(
aEntry
);
}
/* static */
sal_B
ool
SwAccessibleChildMap
::
IsSortingRequired
(
const
SwFrm
&
rFrm
)
/* static */
b
ool
SwAccessibleChildMap
::
IsSortingRequired
(
const
SwFrm
&
rFrm
)
{
return
(
rFrm
.
IsPageFrm
()
&&
static_cast
<
const
SwPageFrm
&
>
(
rFrm
).
GetSortedObjs
()
)
||
...
...
sw/source/core/access/accfrmobjmap.hxx
Dosyayı görüntüle @
53f7f2a3
...
...
@@ -80,7 +80,7 @@ public:
const
SwFrm
&
rFrm
,
SwAccessibleMap
&
rAccMap
);
static
sal_B
ool
IsSortingRequired
(
const
SwFrm
&
rFrm
);
static
b
ool
IsSortingRequired
(
const
SwFrm
&
rFrm
);
};
#endif
...
...
sw/source/core/access/accfrmobjslist.hxx
Dosyayı görüntüle @
53f7f2a3
...
...
@@ -54,12 +54,12 @@ public:
,
nNextObj
(
rIter
.
nNextObj
)
{}
inline
sal_B
ool
operator
==
(
const
SwAccessibleChildSList_const_iterator
&
r
)
const
inline
b
ool
operator
==
(
const
SwAccessibleChildSList_const_iterator
&
r
)
const
{
return
aCurr
==
r
.
aCurr
;
}
inline
sal_B
ool
operator
!=
(
inline
b
ool
operator
!=
(
const
SwAccessibleChildSList_const_iterator
&
r
)
const
{
return
!
(
*
this
==
r
);
...
...
@@ -78,7 +78,7 @@ class SwAccessibleChildSList
{
const
SwRect
maVisArea
;
const
SwFrm
&
mrFrm
;
const
sal_B
ool
mbVisibleChildrenOnly
;
const
b
ool
mbVisibleChildrenOnly
;
SwAccessibleMap
&
mrAccMap
;
public
:
...
...
@@ -89,7 +89,7 @@ public:
SwAccessibleMap
&
rAccMap
)
:
maVisArea
()
,
mrFrm
(
rFrm
)
,
mbVisibleChildrenOnly
(
sal_F
alse
)
,
mbVisibleChildrenOnly
(
f
alse
)
,
mrAccMap
(
rAccMap
)
{}
...
...
@@ -118,7 +118,7 @@ public:
return
mrFrm
;
}
inline
sal_B
ool
IsVisibleChildrenOnly
()
const
inline
b
ool
IsVisibleChildrenOnly
()
const
{
return
mbVisibleChildrenOnly
;
}
...
...
sw/source/core/access/accmap.cxx
Dosyayı görüntüle @
53f7f2a3
...
...
@@ -78,7 +78,7 @@ using namespace ::sw::access;
struct
SwFrmFunc
{
sal_B
ool
operator
()(
const
SwFrm
*
p1
,
b
ool
operator
()(
const
SwFrm
*
p1
,
const
SwFrm
*
p2
)
const
{
return
p1
<
p2
;
...
...
@@ -92,12 +92,12 @@ class SwAccessibleContextMap_Impl: public _SwAccessibleContextMap_Impl
public
:
#if OSL_DEBUG_LEVEL > 0
sal_B
ool
mbLocked
;
b
ool
mbLocked
;
#endif
SwAccessibleContextMap_Impl
()
#if OSL_DEBUG_LEVEL > 0
:
mbLocked
(
sal_F
alse
)
:
mbLocked
(
f
alse
)
#endif
{}
...
...
@@ -198,7 +198,7 @@ void SwDrawModellListener_Impl::Dispose()
//------------------------------------------------------------------------------
struct
SwShapeFunc
{
sal_B
ool
operator
()(
const
SdrObject
*
p1
,
b
ool
operator
()(
const
SdrObject
*
p1
,
const
SdrObject
*
p2
)
const
{
return
p1
<
p2
;
...
...
@@ -215,11 +215,11 @@ class SwAccessibleShapeMap_Impl: public _SwAccessibleShapeMap_Impl
public
:
#if OSL_DEBUG_LEVEL > 0
sal_B
ool
mbLocked
;
b
ool
mbLocked
;
#endif
SwAccessibleShapeMap_Impl
(
SwAccessibleMap
*
pMap
)
#if OSL_DEBUG_LEVEL > 0
:
mbLocked
(
sal_F
alse
)
:
mbLocked
(
f
alse
)
#endif
{
maInfo
.
SetSdrView
(
pMap
->
GetShell
()
->
GetDrawView
()
);
...
...
@@ -421,24 +421,24 @@ public:
mnStates
|=
_nStates
;
}
inline
sal_B
ool
IsUpdateCursorPos
()
const
inline
b
ool
IsUpdateCursorPos
()
const
{
return
(
mnStates
&
ACC_STATE_CARET
)
!=
0
;
}
inline
sal_B
ool
IsInvalidateStates
()
const
inline
b
ool
IsInvalidateStates
()
const
{
return
(
mnStates
&
ACC_STATE_MASK
)
!=
0
;
}
inline
sal_B
ool
IsInvalidateRelation
()
const
inline
b
ool
IsInvalidateRelation
()
const
{
return
(
mnStates
&
ACC_STATE_RELATION_MASK
)
!=
0
;
}
inline
sal_B
ool
IsInvalidateTextSelection
()
const
inline
b
ool
IsInvalidateTextSelection
()
const
{
return
(
mnStates
&
ACC_STATE_TEXT_SELECTION_CHANGED
)
!=
0
;
}
inline
sal_B
ool
IsInvalidateTextAttrs
()
const
inline
b
ool
IsInvalidateTextAttrs
()
const
{
return
(
mnStates
&
ACC_STATE_TEXT_ATTRIBUTE_CHANGED
)
!=
0
;
}
...
...
@@ -460,19 +460,19 @@ typedef ::std::list < SwAccessibleEvent_Impl > _SwAccessibleEventList_Impl;
class
SwAccessibleEventList_Impl
:
public
_SwAccessibleEventList_Impl
{
sal_B
ool
mbFiring
;
b
ool
mbFiring
;
public
:
SwAccessibleEventList_Impl
()
:
mbFiring
(
sal_F
alse
)
:
mbFiring
(
f
alse
)
{}
inline
void
SetFiring
()
{
mbFiring
=
sal_T
rue
;
mbFiring
=
t
rue
;
}
inline
sal_B
ool
IsFiring
()
const
inline
b
ool
IsFiring
()
const
{
return
mbFiring
;
}
...
...
@@ -503,7 +503,7 @@ public:
//------------------------------------------------------------------------------
struct
SwAccessibleChildFunc
{
sal_B
ool
operator
()(
const
SwAccessibleChild
&
r1
,
b
ool
operator
()(
const
SwAccessibleChild
&
r1
,
const
SwAccessibleChild
&
r2
)
const
{
const
void
*
p1
=
r1
.
GetSwFrm
()
...
...
@@ -542,7 +542,7 @@ struct SwAccessibleParaSelection
struct
SwXAccWeakRefComp
{
sal_B
ool
operator
()(
const
uno
::
WeakReference
<
XAccessible
>&
_rXAccWeakRef1
,
b
ool
operator
()(
const
uno
::
WeakReference
<
XAccessible
>&
_rXAccWeakRef1
,
const
uno
::
WeakReference
<
XAccessible
>&
_rXAccWeakRef2
)
const
{
return
_rXAccWeakRef1
.
get
()
<
_rXAccWeakRef2
.
get
();
...
...
@@ -754,10 +754,10 @@ void SwAccPreviewData::AdjustLogicPgRectToVisibleArea(
}
//------------------------------------------------------------------------------
static
sal_B
ool
AreInSameTable
(
const
uno
::
Reference
<
XAccessible
>&
rAcc
,
static
b
ool
AreInSameTable
(
const
uno
::
Reference
<
XAccessible
>&
rAcc
,
const
SwFrm
*
pFrm
)
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
pFrm
&&
pFrm
->
IsCellFrm
()
&&
rAcc
.
is
()
)
{
...
...
@@ -877,7 +877,7 @@ void SwAccessibleMap::AppendEvent( const SwAccessibleEvent_Impl& rEvent )
SwAccessibleEvent_Impl
aEvent
(
*
(
*
aIter
).
second
);
OSL_ENSURE
(
aEvent
.
GetType
()
!=
SwAccessibleEvent_Impl
::
DISPOSE
,
"dispose events should not be stored"
);
sal_Bool
bAppendEvent
=
sal_T
rue
;
bool
bAppendEvent
=
t
rue
;
switch
(
rEvent
.
GetType
()
)
{
case
SwAccessibleEvent_Impl
:
:
CARET_OR_STATES
:
...
...
@@ -927,7 +927,7 @@ void SwAccessibleMap::AppendEvent( const SwAccessibleEvent_Impl& rEvent )
// but executed immediatly to avoid broadcasting of
// defunctional objects. So what needs to be done here is to
// remove all events for the frame in question.
bAppendEvent
=
sal_F
alse
;
bAppendEvent
=
f
alse
;
break
;
case
SwAccessibleEvent_Impl
:
:
INVALID_ATTR
:
OSL_ENSURE
(
aEvent
.
GetType
()
==
SwAccessibleEvent_Impl
::
INVALID_ATTR
,
...
...
@@ -1017,7 +1017,7 @@ void SwAccessibleMap::DoInvalidateShapeSelection()
{
::
std
::
list
<
const
SwFrm
*
>
aParents
;
Window
*
pWin
=
GetShell
()
->
GetWin
();
sal_B
ool
bFocused
=
pWin
&&
pWin
->
HasFocus
();
b
ool
bFocused
=
pWin
&&
pWin
->
HasFocus
();
SwAccessibleObjShape_Impl
*
pShape
=
pShapes
;
while
(
nShapes
)
{
...
...
@@ -1111,7 +1111,7 @@ void SwAccessibleMap::DoInvalidateShapeFocus()
if
(
pShapes
)
{
Window
*
pWin
=
GetShell
()
->
GetWin
();
sal_B
ool
bFocused
=
pWin
&&
pWin
->
HasFocus
();
b
ool
bFocused
=
pWin
&&
pWin
->
HasFocus
();
SwAccessibleObjShape_Impl
*
pShape
=
pShapes
;
while
(
nShapes
)
{
...
...
@@ -1144,7 +1144,7 @@ SwAccessibleMap::SwAccessibleMap( ViewShell *pSh ) :
mnPara
(
1
),
mnFootnote
(
1
),
mnEndnote
(
1
),
mbShapeSelected
(
sal_F
alse
)
mbShapeSelected
(
f
alse
)
{
pSh
->
GetLayout
()
->
AddAccessibleShell
();
}
...
...
@@ -1250,10 +1250,10 @@ SwAccessibleMap::~SwAccessibleMap()
}
uno
::
Reference
<
XAccessible
>
SwAccessibleMap
::
_GetDocumentView
(
sal_B
ool
bPagePreview
)
b
ool
bPagePreview
)
{
uno
::
Reference
<
XAccessible
>
xAcc
;
sal_Bool
bSetVisArea
=
sal_F
alse
;
bool
bSetVisArea
=
f
alse
;
{
osl
::
MutexGuard
aGuard
(
maMutex
);
...
...
@@ -1262,13 +1262,13 @@ uno::Reference< XAccessible > SwAccessibleMap::_GetDocumentView(
{
mpFrmMap
=
new
SwAccessibleContextMap_Impl
;
#if OSL_DEBUG_LEVEL > 0
mpFrmMap
->
mbLocked
=
sal_F
alse
;
mpFrmMap
->
mbLocked
=
f
alse
;
#endif
}
#if OSL_DEBUG_LEVEL > 0
OSL_ENSURE
(
!
mpFrmMap
->
mbLocked
,
"Map is locked"
);
mpFrmMap
->
mbLocked
=
sal_T
rue
;
mpFrmMap
->
mbLocked
=
t
rue
;
#endif
const
SwRootFrm
*
pRootFrm
=
GetShell
()
->
GetLayout
();
...
...
@@ -1277,8 +1277,7 @@ uno::Reference< XAccessible > SwAccessibleMap::_GetDocumentView(
xAcc
=
(
*
aIter
).
second
;
if
(
xAcc
.
is
()
)
{
bSetVisArea
=
sal_True
;
// Set VisArea when map mutex is not
// locked
bSetVisArea
=
true
;
// Set VisArea when map mutex is not locked
}
else
{
...
...
@@ -1299,7 +1298,7 @@ uno::Reference< XAccessible > SwAccessibleMap::_GetDocumentView(
}
#if OSL_DEBUG_LEVEL > 0
mpFrmMap
->
mbLocked
=
sal_F
alse
;
mpFrmMap
->
mbLocked
=
f
alse
;
#endif
}
...
...
@@ -1315,7 +1314,7 @@ uno::Reference< XAccessible > SwAccessibleMap::_GetDocumentView(
uno
::
Reference
<
XAccessible
>
SwAccessibleMap
::
GetDocumentView
(
)
{
return
_GetDocumentView
(
sal_F
alse
);
return
_GetDocumentView
(
f
alse
);
}
uno
::
Reference
<
XAccessible
>
SwAccessibleMap
::
GetDocumentPreview
(
...
...
@@ -1329,7 +1328,7 @@ uno::Reference<XAccessible> SwAccessibleMap::GetDocumentPreview(
mpPreview
=
new
SwAccPreviewData
();
mpPreview
->
Update
(
*
this
,
_rPrevwPages
,
_rScale
,
_pSelectedPageFrm
,
_rPrevwWinSize
);
uno
::
Reference
<
XAccessible
>
xAcc
=
_GetDocumentView
(
sal_T
rue
);
uno
::
Reference
<
XAccessible
>
xAcc
=
_GetDocumentView
(
t
rue
);
return
xAcc
;
}
...
...
@@ -1338,7 +1337,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrm *pFrm,
{
uno
::
Reference
<
XAccessible
>
xAcc
;
uno
::
Reference
<
XAccessible
>
xOldCursorAcc
;
sal_Bool
bOldShapeSelected
=
sal_F
alse
;
bool
bOldShapeSelected
=
f
alse
;
{
osl
::
MutexGuard
aGuard
(
maMutex
);
...
...
@@ -1448,7 +1447,7 @@ uno::Reference< XAccessible> SwAccessibleMap::GetContext( const SwFrm *pFrm,
mxCursorContext
=
xAcc
;
bOldShapeSelected
=
mbShapeSelected
;
mbShapeSelected
=
sal_F
alse
;
mbShapeSelected
=
f
alse
;
}
}
}
...
...
@@ -1910,7 +1909,7 @@ void SwAccessibleMap::InvalidateAttr( const SwTxtFrm& rTxtFrm )
void
SwAccessibleMap
::
InvalidateCursorPosition
(
const
SwFrm
*
pFrm
)
{
SwAccessibleChild
aFrmOrObj
(
pFrm
);
sal_Bool
bShapeSelected
=
sal_F
alse
;
bool
bShapeSelected
=
f
alse
;
const
ViewShell
*
pVSh
=
GetShell
();
if
(
pVSh
->
ISA
(
SwCrsrShell
)
)
{
...
...
@@ -1932,7 +1931,7 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
}
else
if
(
pFESh
->
IsObjSelected
()
>
0
)
{
bShapeSelected
=
sal_T
rue
;
bShapeSelected
=
t
rue
;
aFrmOrObj
=
static_cast
<
const
SwFrm
*>
(
0
);
}
}
...
...
@@ -1943,7 +1942,7 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
uno
::
Reference
<
XAccessible
>
xOldAcc
;
uno
::
Reference
<
XAccessible
>
xAcc
;
sal_Bool
bOldShapeSelected
=
sal_F
alse
;
bool
bOldShapeSelected
=
f
alse
;
{
osl
::
MutexGuard
aGuard
(
maMutex
);
...
...
@@ -2001,7 +2000,7 @@ void SwAccessibleMap::InvalidateCursorPosition( const SwFrm *pFrm )
void
SwAccessibleMap
::
InvalidateFocus
()
{
uno
::
Reference
<
XAccessible
>
xAcc
;
sal_B
ool
bShapeSelected
;
b
ool
bShapeSelected
;
{
osl
::
MutexGuard
aGuard
(
maMutex
);
...
...
@@ -2059,7 +2058,7 @@ void SwAccessibleMap::InvalidateStates( tAccessibleStates _nStates,
}
void
SwAccessibleMap
::
_InvalidateRelationSet
(
const
SwFrm
*
pFrm
,
sal_B
ool
bFrom
)
b
ool
bFrom
)
{
// first, see if this frame is accessible, and if so, get the respective
SwAccessibleChild
aFrmOrObj
(
pFrm
);
...
...
@@ -2108,8 +2107,8 @@ void SwAccessibleMap::_InvalidateRelationSet( const SwFrm* pFrm,
void
SwAccessibleMap
::
InvalidateRelationSet
(
const
SwFrm
*
pMaster
,
const
SwFrm
*
pFollow
)
{
_InvalidateRelationSet
(
pMaster
,
sal_F
alse
);
_InvalidateRelationSet
(
pFollow
,
sal_T
rue
);
_InvalidateRelationSet
(
pMaster
,
f
alse
);
_InvalidateRelationSet
(
pFollow
,
t
rue
);
}
// invalidation of CONTENT_FLOW_FROM/_TO relation of a paragraph
...
...
@@ -2271,7 +2270,7 @@ void SwAccessibleMap::InvalidatePreViewSelection( sal_uInt16 nSelPage )
}
sal_B
ool
SwAccessibleMap
::
IsPageSelected
(
const
SwPageFrm
*
pPageFrm
)
const
b
ool
SwAccessibleMap
::
IsPageSelected
(
const
SwPageFrm
*
pPageFrm
)
const
{
return
mpPreview
&&
mpPreview
->
GetSelPage
()
==
pPageFrm
;
}
...
...
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