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
495f4ca3
Kaydet (Commit)
495f4ca3
authored
Eki 28, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwTOXMark
Change-Id: Id8cc41ab9af5d6fe9934f97927c7e3d1e7f6ebf3
üst
5645fb51
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
54 additions
and
54 deletions
+54
-54
tox.hxx
sw/inc/tox.hxx
+33
-33
tox.cxx
sw/source/core/tox/tox.cxx
+20
-20
atrtox.cxx
sw/source/core/txtnode/atrtox.cxx
+1
-1
No files found.
sw/inc/tox.hxx
Dosyayı görüntüle @
495f4ca3
...
...
@@ -56,23 +56,23 @@ class SW_DLLPUBLIC SwTOXMark
friend
void
_InitCore
();
friend
class
SwTextTOXMark
;
OUString
aAltText
;
// Text of caption is different.
OUString
aPrimaryKey
;
OUString
aSecondaryKey
;
OUString
aCitationKeyReading
;
OUString
m_
aAltText
;
// Text of caption is different.
OUString
m_
aPrimaryKey
;
OUString
m_
aSecondaryKey
;
OUString
m_
aCitationKeyReading
;
// three more strings for phonetic sorting
OUString
aTextReading
;
OUString
aPrimaryKeyReading
;
OUString
aSecondaryKeyReading
;
OUString
m_
aTextReading
;
OUString
m_
aPrimaryKeyReading
;
OUString
m_
aSecondaryKeyReading
;
SwTextTOXMark
*
pTextAttr
;
SwTextTOXMark
*
m_
pTextAttr
;
sal_uInt16
nLevel
;
sal_uInt16
m_
nLevel
;
OUString
m_aBookmarkName
;
OUString
m_aEntryTypeName
;
// stored specific entry type name for INDEX field \f
bool
bAutoGenerated
:
1
;
// generated using a concordance file
bool
bMainEntry
:
1
;
// main entry emphasized by character style
bool
m_
bAutoGenerated
:
1
;
// generated using a concordance file
bool
m_
bMainEntry
:
1
;
// main entry emphasized by character style
::
com
::
sun
::
star
::
uno
::
WeakReference
<
::
com
::
sun
::
star
::
text
::
XDocumentIndexMark
>
m_wXDocumentIndexMark
;
...
...
@@ -128,16 +128,16 @@ public:
inline
OUString
GetPrimaryKeyReading
()
const
;
inline
OUString
GetSecondaryKeyReading
()
const
;
bool
IsAutoGenerated
()
const
{
return
bAutoGenerated
;}
void
SetAutoGenerated
(
bool
bSet
)
{
bAutoGenerated
=
bSet
;}
bool
IsAutoGenerated
()
const
{
return
m_
bAutoGenerated
;}
void
SetAutoGenerated
(
bool
bSet
)
{
m_
bAutoGenerated
=
bSet
;}
bool
IsMainEntry
()
const
{
return
bMainEntry
;}
void
SetMainEntry
(
bool
bSet
)
{
bMainEntry
=
bSet
;}
bool
IsMainEntry
()
const
{
return
m_
bMainEntry
;}
void
SetMainEntry
(
bool
bSet
)
{
m_
bMainEntry
=
bSet
;}
inline
const
SwTOXType
*
GetTOXType
()
const
;
const
SwTextTOXMark
*
GetTextTOXMark
()
const
{
return
pTextAttr
;
}
SwTextTOXMark
*
GetTextTOXMark
()
{
return
pTextAttr
;
}
const
SwTextTOXMark
*
GetTextTOXMark
()
const
{
return
m_
pTextAttr
;
}
SwTextTOXMark
*
GetTextTOXMark
()
{
return
m_
pTextAttr
;
}
SAL_DLLPRIVATE
::
com
::
sun
::
star
::
uno
::
WeakReference
<
::
com
::
sun
::
star
::
text
::
XDocumentIndexMark
>
const
&
GetXTOXMark
()
const
...
...
@@ -535,7 +535,7 @@ public:
//SwTOXMark
inline
OUString
SwTOXMark
::
GetAlternativeText
()
const
{
return
aAltText
;
}
{
return
m_
aAltText
;
}
inline
OUString
SwTOXMark
::
GetBookmarkName
()
const
{
return
m_aBookmarkName
;
}
...
...
@@ -547,11 +547,11 @@ inline const SwTOXType* SwTOXMark::GetTOXType() const
{
return
static_cast
<
const
SwTOXType
*>
(
GetRegisteredIn
());
}
inline
bool
SwTOXMark
::
IsAlternativeText
()
const
{
return
!
aAltText
.
isEmpty
();
}
{
return
!
m_
aAltText
.
isEmpty
();
}
inline
void
SwTOXMark
::
SetAlternativeText
(
const
OUString
&
rAlt
)
{
aAltText
=
rAlt
;
m_
aAltText
=
rAlt
;
}
inline
void
SwTOXMark
::
SetBookmarkName
(
const
OUString
&
bName
)
...
...
@@ -566,79 +566,79 @@ inline void SwTOXMark::SetEntryTypeName(const OUString& sName)
inline
void
SwTOXMark
::
SetLevel
(
sal_uInt16
nLvl
)
{
SAL_WARN_IF
(
GetTOXType
()
&&
GetTOXType
()
->
GetType
()
==
TOX_INDEX
,
"sw"
,
"Wrong type"
);
nLevel
=
nLvl
;
m_
nLevel
=
nLvl
;
}
inline
void
SwTOXMark
::
SetPrimaryKey
(
const
OUString
&
rKey
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
aPrimaryKey
=
rKey
;
m_
aPrimaryKey
=
rKey
;
}
inline
void
SwTOXMark
::
SetSecondaryKey
(
const
OUString
&
rKey
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
aSecondaryKey
=
rKey
;
m_
aSecondaryKey
=
rKey
;
}
inline
void
SwTOXMark
::
SetTextReading
(
const
OUString
&
rText
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
aTextReading
=
rText
;
m_
aTextReading
=
rText
;
}
inline
void
SwTOXMark
::
SetPrimaryKeyReading
(
const
OUString
&
rKey
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
aPrimaryKeyReading
=
rKey
;
m_
aPrimaryKeyReading
=
rKey
;
}
inline
void
SwTOXMark
::
SetCitationKeyReading
(
const
OUString
&
rKey
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_CITATION
,
"sw"
,
"Wrong type"
);
aCitationKeyReading
=
rKey
;
m_
aCitationKeyReading
=
rKey
;
}
inline
void
SwTOXMark
::
SetSecondaryKeyReading
(
const
OUString
&
rKey
)
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
aSecondaryKeyReading
=
rKey
;
m_
aSecondaryKeyReading
=
rKey
;
}
inline
sal_uInt16
SwTOXMark
::
GetLevel
()
const
{
SAL_WARN_IF
(
GetTOXType
()
&&
GetTOXType
()
->
GetType
()
==
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
nLevel
;
return
m_
nLevel
;
}
inline
OUString
SwTOXMark
::
GetPrimaryKey
()
const
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
aPrimaryKey
;
return
m_
aPrimaryKey
;
}
inline
OUString
SwTOXMark
::
GetSecondaryKey
()
const
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
aSecondaryKey
;
return
m_
aSecondaryKey
;
}
inline
OUString
SwTOXMark
::
GetTextReading
()
const
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
aTextReading
;
return
m_
aTextReading
;
}
inline
OUString
SwTOXMark
::
GetPrimaryKeyReading
()
const
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
aPrimaryKeyReading
;
return
m_
aPrimaryKeyReading
;
}
inline
OUString
SwTOXMark
::
GetSecondaryKeyReading
()
const
{
SAL_WARN_IF
(
GetTOXType
()
->
GetType
()
!=
TOX_INDEX
,
"sw"
,
"Wrong type"
);
return
aSecondaryKeyReading
;
return
m_
aSecondaryKeyReading
;
}
//SwForm
...
...
sw/source/core/tox/tox.cxx
Dosyayı görüntüle @
495f4ca3
...
...
@@ -98,9 +98,9 @@ SwTOXMark::SwTOXMark()
:
SfxPoolItem
(
RES_TXTATR_TOXMARK
)
,
SwModify
(
0
)
,
pTextAttr
(
0
),
nLevel
(
0
),
bAutoGenerated
(
false
),
bMainEntry
(
false
)
m_pTextAttr
(
0
),
m_
nLevel
(
0
),
m_
bAutoGenerated
(
false
),
m_
bMainEntry
(
false
)
{
}
...
...
@@ -108,9 +108,9 @@ SwTOXMark::SwTOXMark( const SwTOXType* pTyp )
:
SfxPoolItem
(
RES_TXTATR_TOXMARK
)
,
SwModify
(
const_cast
<
SwTOXType
*>
(
pTyp
)
)
,
pTextAttr
(
0
),
nLevel
(
0
),
bAutoGenerated
(
false
),
bMainEntry
(
false
)
m_pTextAttr
(
0
),
m_
nLevel
(
0
),
m_
bAutoGenerated
(
false
),
m_
bMainEntry
(
false
)
{
}
...
...
@@ -118,16 +118,16 @@ SwTOXMark::SwTOXMark( const SwTOXMark& rCopy )
:
SfxPoolItem
(
RES_TXTATR_TOXMARK
)
,
SwModify
(
rCopy
.
GetRegisteredInNonConst
())
,
aPrimaryKey
(
rCopy
.
aPrimaryKey
),
aSecondaryKey
(
rCopy
.
aSecondaryKey
),
aTextReading
(
rCopy
.
aTextReading
),
aPrimaryKeyReading
(
rCopy
.
aPrimaryKeyReading
),
aSecondaryKeyReading
(
rCopy
.
aSecondaryKeyReading
),
pTextAttr
(
0
),
nLevel
(
rCopy
.
nLevel
),
bAutoGenerated
(
rCopy
.
bAutoGenerated
),
bMainEntry
(
rCopy
.
bMainEntry
)
m_aPrimaryKey
(
rCopy
.
m_aPrimaryKey
),
m_aSecondaryKey
(
rCopy
.
m_
aSecondaryKey
),
m_aTextReading
(
rCopy
.
m_
aTextReading
),
m_aPrimaryKeyReading
(
rCopy
.
m_
aPrimaryKeyReading
),
m_aSecondaryKeyReading
(
rCopy
.
m_
aSecondaryKeyReading
),
m_pTextAttr
(
0
),
m_nLevel
(
rCopy
.
m_
nLevel
),
m_bAutoGenerated
(
rCopy
.
m_
bAutoGenerated
),
m_bMainEntry
(
rCopy
.
m_
bMainEntry
)
{
// Copy AlternativString
aAltText
=
rCopy
.
aAltText
;
m_aAltText
=
rCopy
.
m_
aAltText
;
}
SwTOXMark
::~
SwTOXMark
()
...
...
@@ -169,17 +169,17 @@ void SwTOXMark::InvalidateTOXMark()
OUString
SwTOXMark
::
GetText
()
const
{
if
(
!
aAltText
.
isEmpty
()
)
return
aAltText
;
if
(
!
m_
aAltText
.
isEmpty
()
)
return
m_
aAltText
;
if
(
pTextAttr
&&
pTextAttr
->
GetpTextNd
()
)
if
(
m_pTextAttr
&&
m_
pTextAttr
->
GetpTextNd
()
)
{
const
sal_Int32
*
pEndIdx
=
pTextAttr
->
GetEnd
();
const
sal_Int32
*
pEndIdx
=
m_
pTextAttr
->
GetEnd
();
OSL_ENSURE
(
pEndIdx
,
"TOXMark without mark!"
);
if
(
pEndIdx
)
{
const
sal_Int32
nStt
=
pTextAttr
->
GetStart
();
return
pTextAttr
->
GetpTextNd
()
->
GetExpandText
(
nStt
,
*
pEndIdx
-
nStt
);
const
sal_Int32
nStt
=
m_
pTextAttr
->
GetStart
();
return
m_
pTextAttr
->
GetpTextNd
()
->
GetExpandText
(
nStt
,
*
pEndIdx
-
nStt
);
}
}
...
...
sw/source/core/txtnode/atrtox.cxx
Dosyayı görüntüle @
495f4ca3
...
...
@@ -30,7 +30,7 @@ SwTextTOXMark::SwTextTOXMark( SwTOXMark& rAttr,
,
m_pTextNode
(
0
)
,
m_pEnd
(
0
)
{
rAttr
.
pTextAttr
=
this
;
rAttr
.
m_
pTextAttr
=
this
;
if
(
rAttr
.
GetAlternativeText
().
isEmpty
()
)
{
m_nEnd
=
*
pEnd
;
...
...
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