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
12637c63
Kaydet (Commit)
12637c63
authored
Eki 16, 2014
tarafından
Luboš Luňák
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
operator<< for SwPosition/SwPaM/etc. for use with SAL_DEBUG
Change-Id: I99ffa87afa6dbdbd20042a882af428d166546af3
üst
988477e2
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
37 additions
and
0 deletions
+37
-0
index.hxx
sw/inc/index.hxx
+4
-0
ndindex.hxx
sw/inc/ndindex.hxx
+3
-0
pam.hxx
sw/inc/pam.hxx
+6
-0
index.cxx
sw/source/core/bastyp/index.cxx
+5
-0
pam.cxx
sw/source/core/crsr/pam.cxx
+14
-0
ndindex.cxx
sw/source/core/docnode/ndindex.cxx
+5
-0
No files found.
sw/inc/index.hxx
Dosyayı görüntüle @
12637c63
...
@@ -23,6 +23,8 @@
...
@@ -23,6 +23,8 @@
#include <tools/rtti.hxx>
#include <tools/rtti.hxx>
#include <swdllapi.h>
#include <swdllapi.h>
#include <iostream>
class
SwIndexReg
;
class
SwIndexReg
;
struct
SwPosition
;
struct
SwPosition
;
...
@@ -107,6 +109,8 @@ public:
...
@@ -107,6 +109,8 @@ public:
void
SetMark
(
const
sw
::
mark
::
IMark
*
pMark
);
void
SetMark
(
const
sw
::
mark
::
IMark
*
pMark
);
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwIndex
&
index
);
class
SwIndexReg
class
SwIndexReg
{
{
friend
class
SwIndex
;
friend
class
SwIndex
;
...
...
sw/inc/ndindex.hxx
Dosyayı görüntüle @
12637c63
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
#define INCLUDED_SW_INC_NDINDEX_HXX
#define INCLUDED_SW_INC_NDINDEX_HXX
#include <limits.h>
#include <limits.h>
#include <iostream>
#include <tools/solar.h>
#include <tools/solar.h>
...
@@ -92,6 +93,8 @@ public:
...
@@ -92,6 +93,8 @@ public:
SwNode
&
GetNode
()
const
{
return
*
pNd
;
}
SwNode
&
GetNode
()
const
{
return
*
pNd
;
}
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwNodeIndex
&
index
);
// SwRange
// SwRange
class
SW_DLLPUBLIC
SwNodeRange
class
SW_DLLPUBLIC
SwNodeRange
...
...
sw/inc/pam.hxx
Dosyayı görüntüle @
12637c63
...
@@ -28,6 +28,8 @@
...
@@ -28,6 +28,8 @@
#include <ndindex.hxx>
#include <ndindex.hxx>
#include "swdllapi.h"
#include "swdllapi.h"
#include <iostream>
class
SwFmt
;
class
SwFmt
;
class
SfxPoolItem
;
class
SfxPoolItem
;
class
SfxItemSet
;
class
SfxItemSet
;
...
@@ -74,6 +76,8 @@ struct SW_DLLPUBLIC SwPosition
...
@@ -74,6 +76,8 @@ struct SW_DLLPUBLIC SwPosition
bool
operator
!=
(
const
SwPosition
&
)
const
;
bool
operator
!=
(
const
SwPosition
&
)
const
;
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwPosition
&
position
);
// Result of comparing positions.
// Result of comparing positions.
enum
SwComparePosition
{
enum
SwComparePosition
{
POS_BEFORE
,
///< Pos1 before Pos2.
POS_BEFORE
,
///< Pos1 before Pos2.
...
@@ -301,6 +305,8 @@ public:
...
@@ -301,6 +305,8 @@ public:
void
InvalidatePaM
();
void
InvalidatePaM
();
};
};
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwPaM
&
pam
);
bool
CheckNodesRange
(
const
SwNodeIndex
&
,
const
SwNodeIndex
&
,
bool
bChkSection
);
bool
CheckNodesRange
(
const
SwNodeIndex
&
,
const
SwNodeIndex
&
,
bool
bChkSection
);
#endif // INCLUDED_SW_INC_PAM_HXX
#endif // INCLUDED_SW_INC_PAM_HXX
...
...
sw/source/core/bastyp/index.cxx
Dosyayı görüntüle @
12637c63
...
@@ -392,4 +392,9 @@ SwIndex& SwIndex::operator= ( sal_Int32 const nVal )
...
@@ -392,4 +392,9 @@ SwIndex& SwIndex::operator= ( sal_Int32 const nVal )
#endif
#endif
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwIndex
&
index
)
{
return
s
<<
"SwIndex offset ("
<<
index
.
GetIndex
()
<<
")"
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/crsr/pam.cxx
Dosyayı görüntüle @
12637c63
...
@@ -190,6 +190,11 @@ SwDoc * SwPosition::GetDoc() const
...
@@ -190,6 +190,11 @@ SwDoc * SwPosition::GetDoc() const
return
nNode
.
GetNode
().
GetDoc
();
return
nNode
.
GetNode
().
GetDoc
();
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwPosition
&
position
)
{
return
s
<<
"SwPosition (node "
<<
position
.
nNode
.
GetIndex
()
<<
", offset "
<<
position
.
nContent
.
GetIndex
()
<<
")"
;
}
enum
CHKSECTION
{
Chk_Both
,
Chk_One
,
Chk_None
};
enum
CHKSECTION
{
Chk_Both
,
Chk_One
,
Chk_None
};
static
CHKSECTION
lcl_TstIdx
(
sal_uLong
nSttIdx
,
sal_uLong
nEndIdx
,
const
SwNode
&
rEndNd
)
static
CHKSECTION
lcl_TstIdx
(
sal_uLong
nSttIdx
,
sal_uLong
nEndIdx
,
const
SwNode
&
rEndNd
)
...
@@ -1085,4 +1090,13 @@ void SwPaM::InvalidatePaM()
...
@@ -1085,4 +1090,13 @@ void SwPaM::InvalidatePaM()
}
}
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwPaM
&
pam
)
{
if
(
pam
.
HasMark
())
return
s
<<
"SwPaM (point "
<<
*
pam
.
GetPoint
()
<<
", mark "
<<
*
pam
.
GetMark
()
<<
")"
;
else
return
s
<<
"SwPaM (point "
<<
*
pam
.
GetPoint
()
<<
")"
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/docnode/ndindex.cxx
Dosyayı görüntüle @
12637c63
...
@@ -130,4 +130,9 @@ SwNodeIndex& SwNodeIndex::Assign( const SwNode& rNd, long nOffset )
...
@@ -130,4 +130,9 @@ SwNodeIndex& SwNodeIndex::Assign( const SwNode& rNd, long nOffset )
return
*
this
;
return
*
this
;
}
}
std
::
ostream
&
operator
<<
(
std
::
ostream
&
s
,
const
SwNodeIndex
&
index
)
{
return
s
<<
"SwNodeIndex (node "
<<
index
.
GetIndex
()
<<
")"
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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