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
e794e43a
Kaydet (Commit)
e794e43a
authored
Eki 30, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwForm
Change-Id: I91c1aa5149bff9c6489ad6f1a68818b502d95966
üst
1d46941f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
41 deletions
+41
-41
tox.hxx
sw/inc/tox.hxx
+15
-15
tox.cxx
sw/source/core/tox/tox.cxx
+26
-26
No files found.
sw/inc/tox.hxx
Dosyayı görüntüle @
e794e43a
...
...
@@ -287,15 +287,15 @@ public:
class
SW_DLLPUBLIC
SwForm
{
SwFormTokens
aPattern
[
AUTH_TYPE_END
+
1
];
// #i21237#
OUString
aTemplate
[
AUTH_TYPE_END
+
1
];
SwFormTokens
m_
aPattern
[
AUTH_TYPE_END
+
1
];
// #i21237#
OUString
m_
aTemplate
[
AUTH_TYPE_END
+
1
];
TOXTypes
eType
;
sal_uInt16
nFormMaxLevel
;
TOXTypes
m_
eType
;
sal_uInt16
m_
nFormMaxLevel
;
bool
bGenerateTabPos
:
1
;
bool
bIsRelTabPos
:
1
;
bool
bCommaSeparated
:
1
;
bool
m_
bGenerateTabPos
:
1
;
bool
m_
bIsRelTabPos
:
1
;
bool
m_
bCommaSeparated
:
1
;
public
:
SwForm
(
TOXTypes
eTOXType
=
TOX_CONTENT
);
...
...
@@ -317,11 +317,11 @@ public:
inline
TOXTypes
GetTOXType
()
const
;
inline
sal_uInt16
GetFormMax
()
const
;
bool
IsRelTabPos
()
const
{
return
bIsRelTabPos
;
}
void
SetRelTabPos
(
bool
b
)
{
bIsRelTabPos
=
b
;
}
bool
IsRelTabPos
()
const
{
return
m_
bIsRelTabPos
;
}
void
SetRelTabPos
(
bool
b
)
{
m_
bIsRelTabPos
=
b
;
}
bool
IsCommaSeparated
()
const
{
return
bCommaSeparated
;}
void
SetCommaSeparated
(
bool
b
)
{
bCommaSeparated
=
b
;}
bool
IsCommaSeparated
()
const
{
return
m_
bCommaSeparated
;}
void
SetCommaSeparated
(
bool
b
)
{
m_
bCommaSeparated
=
b
;}
static
sal_uInt16
GetFormMaxLevel
(
TOXTypes
eType
);
...
...
@@ -646,23 +646,23 @@ inline OUString SwTOXMark::GetSecondaryKeyReading() const
inline
void
SwForm
::
SetTemplate
(
sal_uInt16
nLevel
,
const
OUString
&
rTemplate
)
{
SAL_WARN_IF
(
nLevel
>=
GetFormMax
(),
"sw"
,
"Index >= GetFormMax()"
);
aTemplate
[
nLevel
]
=
rTemplate
;
m_
aTemplate
[
nLevel
]
=
rTemplate
;
}
inline
OUString
SwForm
::
GetTemplate
(
sal_uInt16
nLevel
)
const
{
SAL_WARN_IF
(
nLevel
>=
GetFormMax
(),
"sw"
,
"Index >= GetFormMax()"
);
return
aTemplate
[
nLevel
];
return
m_
aTemplate
[
nLevel
];
}
inline
TOXTypes
SwForm
::
GetTOXType
()
const
{
return
eType
;
return
m_
eType
;
}
inline
sal_uInt16
SwForm
::
GetFormMax
()
const
{
return
nFormMaxLevel
;
return
m_
nFormMaxLevel
;
}
//SwTOXType
...
...
sw/source/core/tox/tox.cxx
Dosyayı görüntüle @
e794e43a
...
...
@@ -215,13 +215,13 @@ SwTOXType::SwTOXType(const SwTOXType& rCopy)
// Edit forms
SwForm
::
SwForm
(
TOXTypes
eTyp
)
// #i21237#
:
eType
(
eTyp
),
nFormMaxLevel
(
SwForm
::
GetFormMaxLevel
(
eTyp
)),
:
m_eType
(
eTyp
),
m_
nFormMaxLevel
(
SwForm
::
GetFormMaxLevel
(
eTyp
)),
// nFirstTabPos( lNumIndent ),
bCommaSeparated
(
false
)
m_
bCommaSeparated
(
false
)
{
//bHasFirstTabPos =
bGenerateTabPos
=
false
;
bIsRelTabPos
=
true
;
m_
bGenerateTabPos
=
false
;
m_
bIsRelTabPos
=
true
;
// The table of contents has a certain number of headlines + headings
// The user has 10 levels + headings
...
...
@@ -229,7 +229,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
// Indexes of tables, object illustrations and authorities consist of a heading and one level
sal_uInt16
nPoolId
;
switch
(
eType
)
switch
(
m_
eType
)
{
case
TOX_INDEX
:
nPoolId
=
STR_POOLCOLL_TOX_IDXH
;
break
;
case
TOX_USER
:
nPoolId
=
STR_POOLCOLL_TOX_USERH
;
break
;
...
...
@@ -245,14 +245,14 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
}
SwFormTokens
aTokens
;
if
(
TOX_CONTENT
==
eType
||
TOX_ILLUSTRATIONS
==
eType
)
if
(
TOX_CONTENT
==
m_eType
||
TOX_ILLUSTRATIONS
==
m_
eType
)
{
SwFormToken
aLinkStt
(
TOKEN_LINK_START
);
aLinkStt
.
sCharStyleName
=
SW_RES
(
STR_POOLCHR_TOXJUMP
);
aTokens
.
push_back
(
aLinkStt
);
}
if
(
TOX_CONTENT
==
eType
)
if
(
TOX_CONTENT
==
m_
eType
)
{
aTokens
.
push_back
(
SwFormToken
(
TOKEN_ENTRY_NO
));
aTokens
.
push_back
(
SwFormToken
(
TOKEN_ENTRY_TEXT
));
...
...
@@ -260,7 +260,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
else
aTokens
.
push_back
(
SwFormToken
(
TOKEN_ENTRY
));
if
(
TOX_AUTHORITIES
!=
eType
)
if
(
TOX_AUTHORITIES
!=
m_
eType
)
{
SwFormToken
aToken
(
TOKEN_TAB_STOP
);
aToken
.
nTabStopPosition
=
0
;
...
...
@@ -273,12 +273,12 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
aTokens
.
push_back
(
SwFormToken
(
TOKEN_PAGE_NUMS
));
}
if
(
TOX_CONTENT
==
eType
||
TOX_ILLUSTRATIONS
==
eType
)
if
(
TOX_CONTENT
==
m_eType
||
TOX_ILLUSTRATIONS
==
m_
eType
)
aTokens
.
push_back
(
SwFormToken
(
TOKEN_LINK_END
));
SetTemplate
(
0
,
SW_RESSTR
(
nPoolId
++
));
if
(
TOX_INDEX
==
eType
)
if
(
TOX_INDEX
==
m_
eType
)
{
for
(
sal_uInt16
i
=
1
;
i
<
5
;
++
i
)
{
...
...
@@ -301,7 +301,7 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
else
for
(
sal_uInt16
i
=
1
;
i
<
GetFormMax
();
++
i
,
++
nPoolId
)
// Number 0 is the title
{
if
(
TOX_AUTHORITIES
==
eType
)
if
(
TOX_AUTHORITIES
==
m_
eType
)
{
SwFormTokens
aAuthTokens
;
lcl_FillAuthPattern
(
aAuthTokens
,
i
);
...
...
@@ -310,35 +310,35 @@ SwForm::SwForm( TOXTypes eTyp ) // #i21237#
else
SetPattern
(
i
,
aTokens
);
if
(
TOX_CONTENT
==
eType
&&
6
==
i
)
if
(
TOX_CONTENT
==
m_
eType
&&
6
==
i
)
nPoolId
=
STR_POOLCOLL_TOX_CNTNT6
;
else
if
(
TOX_USER
==
eType
&&
6
==
i
)
else
if
(
TOX_USER
==
m_
eType
&&
6
==
i
)
nPoolId
=
STR_POOLCOLL_TOX_USER6
;
else
if
(
TOX_AUTHORITIES
==
eType
)
else
if
(
TOX_AUTHORITIES
==
m_
eType
)
nPoolId
=
STR_POOLCOLL_TOX_AUTHORITIES1
;
SetTemplate
(
i
,
SW_RESSTR
(
nPoolId
)
);
}
}
SwForm
::
SwForm
(
const
SwForm
&
rForm
)
:
eType
(
rForm
.
eType
)
:
m_eType
(
rForm
.
m_
eType
)
{
*
this
=
rForm
;
}
SwForm
&
SwForm
::
operator
=
(
const
SwForm
&
rForm
)
{
eType
=
rForm
.
eType
;
nFormMaxLevel
=
rForm
.
nFormMaxLevel
;
m_eType
=
rForm
.
m_
eType
;
m_nFormMaxLevel
=
rForm
.
m_
nFormMaxLevel
;
// nFirstTabPos = rForm.nFirstTabPos;
// bHasFirstTabPos = rForm.bHasFirstTabPos;
bGenerateTabPos
=
rForm
.
bGenerateTabPos
;
bIsRelTabPos
=
rForm
.
bIsRelTabPos
;
bCommaSeparated
=
rForm
.
bCommaSeparated
;
for
(
sal_uInt16
i
=
0
;
i
<
nFormMaxLevel
;
++
i
)
m_bGenerateTabPos
=
rForm
.
m_
bGenerateTabPos
;
m_bIsRelTabPos
=
rForm
.
m_
bIsRelTabPos
;
m_bCommaSeparated
=
rForm
.
m_
bCommaSeparated
;
for
(
sal_uInt16
i
=
0
;
i
<
m_
nFormMaxLevel
;
++
i
)
{
aPattern
[
i
]
=
rForm
.
aPattern
[
i
];
aTemplate
[
i
]
=
rForm
.
aTemplate
[
i
];
m_aPattern
[
i
]
=
rForm
.
m_
aPattern
[
i
];
m_aTemplate
[
i
]
=
rForm
.
m_
aTemplate
[
i
];
}
return
*
this
;
}
...
...
@@ -841,7 +841,7 @@ SwFormTokensHelper::SwFormTokensHelper(const OUString & rPattern)
void
SwForm
::
SetPattern
(
sal_uInt16
nLevel
,
const
SwFormTokens
&
rTokens
)
{
OSL_ENSURE
(
nLevel
<
GetFormMax
(),
"Index >= FORM_MAX"
);
aPattern
[
nLevel
]
=
rTokens
;
m_
aPattern
[
nLevel
]
=
rTokens
;
}
void
SwForm
::
SetPattern
(
sal_uInt16
nLevel
,
const
OUString
&
rStr
)
...
...
@@ -849,13 +849,13 @@ void SwForm::SetPattern(sal_uInt16 nLevel, const OUString & rStr)
OSL_ENSURE
(
nLevel
<
GetFormMax
(),
"Index >= FORM_MAX"
);
SwFormTokensHelper
aHelper
(
rStr
);
aPattern
[
nLevel
]
=
aHelper
.
GetTokens
();
m_
aPattern
[
nLevel
]
=
aHelper
.
GetTokens
();
}
const
SwFormTokens
&
SwForm
::
GetPattern
(
sal_uInt16
nLevel
)
const
{
OSL_ENSURE
(
nLevel
<
GetFormMax
(),
"Index >= FORM_MAX"
);
return
aPattern
[
nLevel
];
return
m_
aPattern
[
nLevel
];
}
/* 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