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
55a5e890
Kaydet (Commit)
55a5e890
authored
Mar 15, 2014
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool + make a local function static
Change-Id: I8285f69e175dd10f6128a1d9b39bdc646c51df43
üst
78a4b424
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
36 deletions
+36
-36
swbaslnk.hxx
sw/inc/swbaslnk.hxx
+10
-10
section.cxx
sw/source/core/docnode/section.cxx
+2
-2
swbaslnk.cxx
sw/source/core/docnode/swbaslnk.cxx
+19
-19
ddefld.cxx
sw/source/core/fields/ddefld.cxx
+5
-5
No files found.
sw/inc/swbaslnk.hxx
Dosyayı görüntüle @
55a5e890
...
...
@@ -32,8 +32,8 @@ class SwBaseLink : public ::sfx2::SvBaseLink
SwCntntNode
*
pCntntNode
;
bool
bSwapIn
:
1
;
sal_B
ool
bNoDataFlag
:
1
;
sal_B
ool
bIgnoreDataChanged
:
1
;
b
ool
bNoDataFlag
:
1
;
b
ool
bIgnoreDataChanged
:
1
;
ReReadThread
*
m_pReReadThread
;
protected
:
...
...
@@ -42,7 +42,7 @@ protected:
SwBaseLink
(
const
OUString
&
rNm
,
sal_uInt16
nObjectType
,
::
sfx2
::
SvLinkSource
*
pObj
,
SwCntntNode
*
pNode
=
0
)
:
::
sfx2
::
SvBaseLink
(
rNm
,
nObjectType
,
pObj
),
pCntntNode
(
pNode
),
bSwapIn
(
false
),
bNoDataFlag
(
sal_False
),
bIgnoreDataChanged
(
sal_F
alse
),
bSwapIn
(
false
),
bNoDataFlag
(
false
),
bIgnoreDataChanged
(
f
alse
),
m_pReReadThread
(
0
)
{}
...
...
@@ -51,7 +51,7 @@ public:
SwBaseLink
(
sal_uInt16
nMode
,
sal_uInt16
nFormat
,
SwCntntNode
*
pNode
=
0
)
:
::
sfx2
::
SvBaseLink
(
nMode
,
nFormat
),
pCntntNode
(
pNode
),
bSwapIn
(
false
),
bNoDataFlag
(
sal_False
),
bIgnoreDataChanged
(
sal_F
alse
),
bSwapIn
(
false
),
bNoDataFlag
(
false
),
bIgnoreDataChanged
(
f
alse
),
m_pReReadThread
(
0
)
{}
virtual
~
SwBaseLink
();
...
...
@@ -68,18 +68,18 @@ public:
// For graphics only.
bool
SwapIn
(
bool
bWaitForData
=
false
,
bool
bNativFormat
=
false
);
sal_B
ool
Connect
()
{
return
0
!=
SvBaseLink
::
GetRealObject
();
}
b
ool
Connect
()
{
return
0
!=
SvBaseLink
::
GetRealObject
();
}
// Only for graphics-links (for switching between DDE / Grf-link).
void
SetObjType
(
sal_uInt16
nType
)
{
SvBaseLink
::
SetObjType
(
nType
);
}
sal_B
ool
IsRecursion
(
const
SwBaseLink
*
pChkLnk
)
const
;
virtual
sal_B
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
b
ool
IsRecursion
(
const
SwBaseLink
*
pChkLnk
)
const
;
virtual
b
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
sal_Int32
nEnd
=
-
1
)
const
;
void
SetNoDataFlag
()
{
bNoDataFlag
=
sal_T
rue
;
}
sal_Bool
ChkNoDataFlag
()
{
sal_Bool
bRet
=
bNoDataFlag
;
bNoDataFlag
=
sal_F
alse
;
return
bRet
;
}
sal_Bool
IsNoDataFlag
()
const
{
return
bNoDataFlag
;
}
void
SetNoDataFlag
()
{
bNoDataFlag
=
t
rue
;
}
bool
ChkNoDataFlag
()
{
const
bool
bRet
=
bNoDataFlag
;
bNoDataFlag
=
f
alse
;
return
bRet
;
}
bool
IsNoDataFlag
()
const
{
return
bNoDataFlag
;
}
};
#endif
...
...
sw/source/core/docnode/section.cxx
Dosyayı görüntüle @
55a5e890
...
...
@@ -76,7 +76,7 @@ public:
const
OUString
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
);
virtual
const
SwNode
*
GetAnchor
()
const
;
virtual
sal_B
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
virtual
b
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
sal_Int32
nEnd
=
-
1
)
const
;
inline
SwSectionNode
*
GetSectNode
()
...
...
@@ -1586,7 +1586,7 @@ const SwNode* SwIntrnlSectRefLink::GetAnchor() const
return
rSectFmt
.
GetSectionNode
(
false
);
}
sal_B
ool
SwIntrnlSectRefLink
::
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
b
ool
SwIntrnlSectRefLink
::
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
,
sal_Int32
)
const
{
SwStartNode
*
pSttNd
=
rSectFmt
.
GetSectionNode
(
false
);
...
...
sw/source/core/docnode/swbaslnk.cxx
Dosyayı görüntüle @
55a5e890
...
...
@@ -51,7 +51,7 @@
using
namespace
com
::
sun
::
star
;
s
al_B
ool
SetGrfFlySize
(
const
Size
&
rGrfSz
,
const
Size
&
rFrmSz
,
SwGrfNode
*
pGrfNd
);
s
tatic
b
ool
SetGrfFlySize
(
const
Size
&
rGrfSz
,
const
Size
&
rFrmSz
,
SwGrfNode
*
pGrfNd
);
TYPEINIT1
(
SwBaseLink
,
::
sfx2
::
SvBaseLink
);
...
...
@@ -92,7 +92,7 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
SwDoc
*
pDoc
=
pCntntNode
->
GetDoc
();
if
(
pDoc
->
IsInDtor
()
||
ChkNoDataFlag
()
||
bIgnoreDataChanged
)
{
bIgnoreDataChanged
=
sal_F
alse
;
bIgnoreDataChanged
=
f
alse
;
return
SUCCESS
;
}
...
...
@@ -126,7 +126,7 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
bool
bUpdate
=
false
;
bool
bGraphicArrived
=
false
;
sal_Bool
bGraphicPieceArrived
=
sal_F
alse
;
bool
bGraphicPieceArrived
=
f
alse
;
bool
bDontNotify
=
false
;
Size
aGrfSz
,
aFrmFmtSz
;
...
...
@@ -168,7 +168,7 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
// we need to go through bGraphicArrived down there.
// Or else the graphic is painted at its definitive size
bGraphicArrived
=
true
;
bGraphicPieceArrived
=
sal_F
alse
;
bGraphicPieceArrived
=
f
alse
;
}
pSwGrfNode
->
SetGraphic
(
aGrf
,
rGrfObj
.
GetLink
());
...
...
@@ -210,11 +210,11 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
if
(
bUpdate
&&
!
bDontNotify
&&
(
!
bSwapIn
||
bGraphicArrived
)
&&
!
bInNotifyLinks
)
{
sal_Bool
bLockView
=
sal_F
alse
;
bool
bLockView
=
f
alse
;
if
(
pSh
)
{
bLockView
=
pSh
->
IsViewLocked
();
pSh
->
LockView
(
sal_T
rue
);
pSh
->
LockView
(
t
rue
);
}
if
(
pESh
)
...
...
@@ -244,9 +244,9 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
(
!
bSwapIn
||
GRAPHIC_DEFAULT
==
pGrfNd
->
GetGrfObj
().
GetType
()))
{
pBLink
->
bIgnoreDataChanged
=
sal_F
alse
;
pBLink
->
bIgnoreDataChanged
=
f
alse
;
pBLink
->
DataChanged
(
rMimeType
,
rValue
);
pBLink
->
bIgnoreDataChanged
=
sal_T
rue
;
pBLink
->
bIgnoreDataChanged
=
t
rue
;
pGrfNd
->
SetGraphicArrived
(
((
SwGrfNode
*
)
pCntntNode
)
->
IsGraphicArrived
()
);
...
...
@@ -271,7 +271,7 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
if
(
pESh
)
{
const
sal_B
ool
bEndActionByVirDev
=
pESh
->
IsEndActionByVirDev
();
const
b
ool
bEndActionByVirDev
=
pESh
->
IsEndActionByVirDev
();
pESh
->
SetEndActionByVirDev
(
sal_True
);
pESh
->
EndAllAction
();
pESh
->
SetEndActionByVirDev
(
bEndActionByVirDev
);
...
...
@@ -280,15 +280,15 @@ static void lcl_CallModify( SwGrfNode& rGrfNd, SfxPoolItem& rItem )
pSh
->
EndAction
();
if
(
pSh
&&
!
bLockView
)
pSh
->
LockView
(
sal_F
alse
);
pSh
->
LockView
(
f
alse
);
}
return
SUCCESS
;
}
s
al_B
ool
SetGrfFlySize
(
const
Size
&
rGrfSz
,
const
Size
&
rFrmSz
,
SwGrfNode
*
pGrfNd
)
s
tatic
b
ool
SetGrfFlySize
(
const
Size
&
rGrfSz
,
const
Size
&
rFrmSz
,
SwGrfNode
*
pGrfNd
)
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
SwViewShell
*
pSh
;
CurrShell
*
pCurr
=
0
;
if
(
pGrfNd
->
GetDoc
()
->
GetEditShell
(
&
pSh
)
)
...
...
@@ -326,7 +326,7 @@ sal_Bool SetGrfFlySize( const Size& rGrfSz, const Size& rFrmSz, SwGrfNode* pGrfN
SwFmtFrmSize
aAttr
(
rOldAttr
);
aAttr
.
SetSize
(
aCalcSz
);
pFmt
->
SetFmtAttr
(
aAttr
);
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
if
(
!
aSz
.
Width
()
)
...
...
@@ -341,7 +341,7 @@ sal_Bool SetGrfFlySize( const Size& rGrfSz, const Size& rFrmSz, SwGrfNode* pGrfN
0
!=
(
pANd
=
&
pAPos
->
nNode
.
GetNode
())
&&
0
!=
(
pTblNd
=
pANd
->
FindTableNode
())
)
{
const
sal_B
ool
bLastGrf
=
!
pTblNd
->
GetTable
().
DecGrfsThatResize
();
const
b
ool
bLastGrf
=
!
pTblNd
->
GetTable
().
DecGrfsThatResize
();
SwHTMLTableLayout
*
pLayout
=
pTblNd
->
GetTable
().
GetHTMLTableLayout
();
if
(
pLayout
)
...
...
@@ -409,7 +409,7 @@ bool SwBaseLink::SwapIn( bool bWaitForData, bool bNativFormat )
{
// The Flag needs to be reset on a SwapIn, because
// we want to reapply the data.
bIgnoreDataChanged
=
sal_F
alse
;
bIgnoreDataChanged
=
f
alse
;
DataChanged
(
aMimeType
,
aValue
);
}
}
...
...
@@ -463,7 +463,7 @@ const SwNode* SwBaseLink::GetAnchor() const
return
0
;
}
sal_B
ool
SwBaseLink
::
IsRecursion
(
const
SwBaseLink
*
pChkLnk
)
const
b
ool
SwBaseLink
::
IsRecursion
(
const
SwBaseLink
*
pChkLnk
)
const
{
SwServerObjectRef
aRef
(
(
SwServerObject
*
)
GetObj
()
);
if
(
aRef
.
Is
()
)
...
...
@@ -472,14 +472,14 @@ sal_Bool SwBaseLink::IsRecursion( const SwBaseLink* pChkLnk ) const
// if we are contained in them. Else we have a recursion.
return
aRef
->
IsLinkInServer
(
pChkLnk
);
}
return
sal_F
alse
;
return
f
alse
;
}
sal_B
ool
SwBaseLink
::
IsInRange
(
sal_uLong
,
sal_uLong
,
sal_Int32
,
sal_Int32
)
const
b
ool
SwBaseLink
::
IsInRange
(
sal_uLong
,
sal_uLong
,
sal_Int32
,
sal_Int32
)
const
{
// Not Graphic or OLE Links
// Fields or Sections have their own derivation!
return
sal_F
alse
;
return
f
alse
;
}
SwBaseLink
::~
SwBaseLink
()
...
...
sw/source/core/fields/ddefld.cxx
Dosyayı görüntüle @
55a5e890
...
...
@@ -49,7 +49,7 @@ public:
const
OUString
&
rMimeType
,
const
::
com
::
sun
::
star
::
uno
::
Any
&
rValue
);
virtual
const
SwNode
*
GetAnchor
()
const
;
virtual
sal_B
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
virtual
b
ool
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
=
0
,
sal_Int32
nEnd
=
-
1
)
const
;
};
...
...
@@ -188,7 +188,7 @@ const SwNode* SwIntrnlRefLink::GetAnchor() const
return
pNd
;
}
sal_B
ool
SwIntrnlRefLink
::
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
b
ool
SwIntrnlRefLink
::
IsInRange
(
sal_uLong
nSttNd
,
sal_uLong
nEndNd
,
sal_Int32
nStt
,
sal_Int32
nEnd
)
const
{
// here, any anchor of the normal NodesArray should be sufficient
...
...
@@ -207,7 +207,7 @@ sal_Bool SwIntrnlRefLink::IsInRange( sal_uLong nSttNd, sal_uLong nEndNd,
if
(
pTblNd
->
GetNodes
().
IsDocNodes
()
&&
nSttNd
<
pTblNd
->
EndOfSectionIndex
()
&&
nEndNd
>
pTblNd
->
GetIndex
()
)
return
sal_T
rue
;
return
t
rue
;
}
else
if
(
((
SwFmtFld
*
)
pLast
)
->
GetTxtFld
()
)
{
...
...
@@ -219,12 +219,12 @@ sal_Bool SwIntrnlRefLink::IsInRange( sal_uLong nSttNd, sal_uLong nEndNd,
if
(
nSttNd
<=
nNdPos
&&
nNdPos
<=
nEndNd
&&
(
nNdPos
!=
nSttNd
||
*
pTFld
->
GetStart
()
>=
nStt
)
&&
(
nNdPos
!=
nEndNd
||
*
pTFld
->
GetStart
()
<
nEnd
))
return
sal_T
rue
;
return
t
rue
;
}
}
}
while
(
0
!=
(
pLast
=
++
aIter
));
return
sal_F
alse
;
return
f
alse
;
}
SwDDEFieldType
::
SwDDEFieldType
(
const
OUString
&
rName
,
...
...
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