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
91fa22fe
Kaydet (Commit)
91fa22fe
authored
Kas 07, 2013
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
writerfilter: remove unused CpAndFc class in doctok
Change-Id: Id24eb2ab53e62961e6cbe2ea72221c6bfe7262d7
üst
b8002169
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
147 deletions
+0
-147
WW8CpAndFc.cxx
writerfilter/source/doctok/WW8CpAndFc.cxx
+0
-40
WW8CpAndFc.hxx
writerfilter/source/doctok/WW8CpAndFc.hxx
+0
-107
No files found.
writerfilter/source/doctok/WW8CpAndFc.cxx
Dosyayı görüntüle @
91fa22fe
...
...
@@ -79,46 +79,6 @@ ostream & operator << (ostream & o, const Fc & rFc)
return
o
<<
rFc
.
toString
();
}
bool
operator
<
(
const
CpAndFc
&
rA
,
const
CpAndFc
&
rB
)
{
bool
bResult
=
false
;
if
(
rA
.
mCp
<
rB
.
mCp
)
bResult
=
true
;
else
if
(
rA
.
mCp
==
rB
.
mCp
&&
rA
.
mType
<
rB
.
mType
)
bResult
=
true
;
return
bResult
;
}
bool
operator
==
(
const
CpAndFc
&
rA
,
const
CpAndFc
&
rB
)
{
return
rA
.
mCp
==
rB
.
mCp
;
}
ostream
&
operator
<<
(
ostream
&
o
,
const
CpAndFc
&
/*rCpAndFc*/
)
{
return
o
;
}
ostream
&
operator
<<
(
ostream
&
o
,
const
CpAndFcs
&
rCpAndFcs
)
{
copy
(
rCpAndFcs
.
begin
(),
rCpAndFcs
.
end
(),
ostream_iterator
<
CpAndFc
>
(
o
,
", "
));
char
sBuffer
[
256
];
snprintf
(
sBuffer
,
255
,
"%"
SAL_PRI_SIZET
"u"
,
rCpAndFcs
.
size
());
o
<<
sBuffer
;
return
o
;
}
CpAndFc
::
CpAndFc
(
const
Cp
&
rCp
,
const
Fc
&
rFc
,
PropertyType
eType_
)
:
mCp
(
rCp
),
mFc
(
rFc
),
mType
(
eType_
)
{
}
}}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
writerfilter/source/doctok/WW8CpAndFc.hxx
Dosyayı görüntüle @
91fa22fe
...
...
@@ -211,103 +211,6 @@ struct Fc
friend
ostream
&
operator
<<
(
ostream
&
o
,
const
Fc
&
rFc
);
};
/**
A character position and a corresponding file character position
paired.
*/
class
CpAndFc
{
private
:
/**
character position
*/
Cp
mCp
;
/**
file character position
*/
Fc
mFc
;
/**
property type
*/
PropertyType
mType
;
public
:
CpAndFc
()
{}
CpAndFc
(
const
Cp
&
rCp
,
const
Fc
&
rFc
,
PropertyType
eType_
);
/**
Return character position.
*/
const
Cp
&
getCp
()
const
{
return
mCp
;
}
/**
Return file character position.
*/
const
Fc
&
getFc
()
const
{
return
mFc
;
}
/**
Return property type.
*/
PropertyType
getType
()
const
{
return
mType
;
}
/**
Return if FC is complex.
@retval true FC is complex
@retval false else
*/
bool
isComplex
()
const
{
return
mFc
.
isComplex
();
}
/**
Return the distance to other CpAndFc.
@param rCpAndFc the other CpAndFc
@return the distance from the CP in @a rCpAndFc to the CP in
CpAndFc.
*/
sal_uInt32
operator
-
(
const
CpAndFc
&
rCpAndFc
)
const
{
return
mCp
-
rCpAndFc
.
mCp
;
}
/**
Return string representation of the CpAndFc.
*/
string
toString
()
const
;
friend
bool
operator
<
(
const
CpAndFc
&
rA
,
const
CpAndFc
&
rB
);
friend
bool
operator
==
(
const
CpAndFc
&
rA
,
const
CpAndFc
&
rB
);
friend
ostream
&
operator
<<
(
ostream
&
o
,
const
CpAndFc
&
rCpAndFc
);
};
struct
CpAndFcLess
{
CpAndFcLess
()
{
}
bool
operator
()(
const
CpAndFc
&
rA
,
const
CpAndFc
&
rB
)
const
{
return
rA
<
rB
;
}
bool
operator
()(
const
CpAndFc
&
rA
,
const
Cp
&
rB
)
const
{
return
rA
.
getCp
()
<
rB
;
}
bool
operator
()(
const
Cp
&
rA
,
const
CpAndFc
&
rB
)
const
{
return
rA
<
rB
.
getCp
();
}
};
typedef
set
<
CpAndFc
,
CpAndFcLess
>
CpAndFcs
;
ostream
&
operator
<<
(
ostream
&
o
,
const
CpAndFcs
&
rCpAndFcs
);
struct
CpHash
{
size_t
operator
()(
const
Cp
&
rCp
)
const
...
...
@@ -332,16 +235,6 @@ struct CpEq
}
};
struct
CpAndFcHash
{
size_t
operator
()(
const
CpAndFc
&
rCpAndFc
)
const
{
CpHash
aHash
;
return
aHash
(
rCpAndFc
.
getCp
());
}
};
typedef
boost
::
unordered_map
<
Cp
,
Fc
,
CpHash
,
CpEq
>
Cp2FcHashMap_t
;
}
// namespace doctok
...
...
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