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
824229a5
Kaydet (Commit)
824229a5
authored
Nis 21, 2015
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sw: prefix members of SwField
Change-Id: If81d5a2ab499837f9e4a38665b0daf2a6bba1269
üst
84a67586
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
35 deletions
+35
-35
fldbas.hxx
sw/inc/fldbas.hxx
+11
-11
fldbas.cxx
sw/source/core/fields/fldbas.cxx
+24
-24
No files found.
sw/inc/fldbas.hxx
Dosyayı görüntüle @
824229a5
...
@@ -284,17 +284,17 @@ private:
...
@@ -284,17 +284,17 @@ private:
mutable
OUString
m_Cache
;
///< Cached expansion (for clipboard).
mutable
OUString
m_Cache
;
///< Cached expansion (for clipboard).
bool
m_bUseFieldValueCache
;
/// control the usage of the cached field value
bool
m_bUseFieldValueCache
;
/// control the usage of the cached field value
sal_uInt16
nLang
;
///< Always change via SetLanguage!
sal_uInt16
m_
nLang
;
///< Always change via SetLanguage!
bool
bIsAutomaticLanguage
;
bool
m_
bIsAutomaticLanguage
;
sal_uInt32
nFormat
;
sal_uInt32
m_
nFormat
;
SwFieldType
*
pType
;
SwFieldType
*
m_
pType
;
virtual
OUString
Expand
()
const
=
0
;
virtual
OUString
Expand
()
const
=
0
;
virtual
SwField
*
Copy
()
const
=
0
;
virtual
SwField
*
Copy
()
const
=
0
;
protected
:
protected
:
void
SetFormat
(
sal_uInt32
nSet
)
{
nFormat
=
nSet
;
}
void
SetFormat
(
sal_uInt32
const
nSet
)
{
m_nFormat
=
nSet
;
}
SwField
(
SwFieldType
*
pTyp
,
SwField
(
SwFieldType
*
pTyp
,
sal_uInt32
nFmt
=
0
,
sal_uInt32
nFmt
=
0
,
...
@@ -331,7 +331,7 @@ public:
...
@@ -331,7 +331,7 @@ public:
#ifdef DBG_UTIL
#ifdef DBG_UTIL
;
// implemented in fldbas.cxx
;
// implemented in fldbas.cxx
#else
#else
{
return
pType
->
Which
();
}
{
return
m_
pType
->
Which
();
}
#endif
#endif
// TYP_ID
// TYP_ID
...
@@ -361,8 +361,8 @@ public:
...
@@ -361,8 +361,8 @@ public:
bool
HasClickHdl
()
const
;
bool
HasClickHdl
()
const
;
bool
IsFixed
()
const
;
bool
IsFixed
()
const
;
bool
IsAutomaticLanguage
()
const
{
return
bIsAutomaticLanguage
;}
bool
IsAutomaticLanguage
()
const
{
return
m_
bIsAutomaticLanguage
;}
void
SetAutomaticLanguage
(
bool
bSet
){
bIsAutomaticLanguage
=
bSet
;}
void
SetAutomaticLanguage
(
bool
const
bSet
)
{
m_
bIsAutomaticLanguage
=
bSet
;}
virtual
OUString
GetDescription
()
const
;
virtual
OUString
GetDescription
()
const
;
/// Is this field clickable?
/// Is this field clickable?
...
@@ -370,13 +370,13 @@ public:
...
@@ -370,13 +370,13 @@ public:
};
};
inline
SwFieldType
*
SwField
::
GetTyp
()
const
inline
SwFieldType
*
SwField
::
GetTyp
()
const
{
return
pType
;
}
{
return
m_pType
;
}
inline
sal_uInt32
SwField
::
GetFormat
()
const
inline
sal_uInt32
SwField
::
GetFormat
()
const
{
return
nFormat
;
}
{
return
m_nFormat
;
}
inline
sal_uInt16
SwField
::
GetLanguage
()
const
inline
sal_uInt16
SwField
::
GetLanguage
()
const
{
return
nLang
;
}
{
return
m_nLang
;
}
/// Fields containing values that have to be formatted via number formatter.
/// Fields containing values that have to be formatted via number formatter.
class
SwValueFieldType
:
public
SwFieldType
class
SwValueFieldType
:
public
SwFieldType
...
...
sw/source/core/fields/fldbas.cxx
Dosyayı görüntüle @
824229a5
...
@@ -187,18 +187,18 @@ void SwFldTypes::dumpAsXml(xmlTextWriterPtr pWriter) const
...
@@ -187,18 +187,18 @@ void SwFldTypes::dumpAsXml(xmlTextWriterPtr pWriter) const
// Base class for all fields.
// Base class for all fields.
// A field (multiple can exist) references a field type (can exists only once)
// A field (multiple can exist) references a field type (can exists only once)
SwField
::
SwField
(
SwField
::
SwField
(
SwFieldType
*
pTyp
,
SwFieldType
*
pType
,
sal_uInt32
nFm
t
,
sal_uInt32
nForma
t
,
sal_uInt16
nL
ng
,
sal_uInt16
nLa
ng
,
bool
bUseFieldValueCache
)
bool
bUseFieldValueCache
)
:
m_Cache
()
:
m_Cache
()
,
m_bUseFieldValueCache
(
bUseFieldValueCache
)
,
m_bUseFieldValueCache
(
bUseFieldValueCache
)
,
nLang
(
nL
ng
)
,
m_nLang
(
nLa
ng
)
,
bIsAutomaticLanguage
(
true
)
,
m_
bIsAutomaticLanguage
(
true
)
,
nFormat
(
nFm
t
)
,
m_nFormat
(
nForma
t
)
,
pType
(
pTyp
)
,
m_pType
(
pType
)
{
{
OSL_ENSURE
(
pTyp
,
"SwField: no SwFieldType"
);
OSL_ENSURE
(
pTyp
e
,
"SwField: no SwFieldType"
);
}
}
SwField
::~
SwField
()
SwField
::~
SwField
()
...
@@ -210,8 +210,8 @@ SwField::~SwField()
...
@@ -210,8 +210,8 @@ SwField::~SwField()
#ifdef DBG_UTIL
#ifdef DBG_UTIL
sal_uInt16
SwField
::
Which
()
const
sal_uInt16
SwField
::
Which
()
const
{
{
OSL_ENSURE
(
pType
,
"SwField: No FieldType"
);
OSL_ENSURE
(
m_
pType
,
"SwField: No FieldType"
);
return
pType
->
Which
();
return
m_
pType
->
Which
();
}
}
#endif
#endif
...
@@ -219,7 +219,7 @@ sal_uInt16 SwField::GetTypeId() const
...
@@ -219,7 +219,7 @@ sal_uInt16 SwField::GetTypeId() const
{
{
sal_uInt16
nRet
;
sal_uInt16
nRet
;
switch
(
pType
->
Which
()
)
switch
(
m_pType
->
Which
()
)
{
{
case
RES_DATETIMEFLD
:
case
RES_DATETIMEFLD
:
if
(
GetSubType
()
&
FIXEDFLD
)
if
(
GetSubType
()
&
FIXEDFLD
)
...
@@ -255,7 +255,7 @@ sal_uInt16 SwField::GetTypeId() const
...
@@ -255,7 +255,7 @@ sal_uInt16 SwField::GetTypeId() const
break
;
break
;
default
:
default
:
nRet
=
aTypeTab
[
pType
->
Which
()
];
nRet
=
aTypeTab
[
m_
pType
->
Which
()
];
}
}
return
nRet
;
return
nRet
;
}
}
...
@@ -312,7 +312,7 @@ bool SwField::QueryValue( uno::Any& rVal, sal_uInt16 nWhichId ) const
...
@@ -312,7 +312,7 @@ bool SwField::QueryValue( uno::Any& rVal, sal_uInt16 nWhichId ) const
switch
(
nWhichId
)
switch
(
nWhichId
)
{
{
case
FIELD_PROP_BOOL4
:
case
FIELD_PROP_BOOL4
:
rVal
<<=
!
bIsAutomaticLanguage
;
rVal
<<=
!
m_
bIsAutomaticLanguage
;
break
;
break
;
default
:
default
:
OSL_FAIL
(
"illegal property"
);
OSL_FAIL
(
"illegal property"
);
...
@@ -328,7 +328,7 @@ bool SwField::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
...
@@ -328,7 +328,7 @@ bool SwField::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
{
{
bool
bFixed
=
false
;
bool
bFixed
=
false
;
if
(
rVal
>>=
bFixed
)
if
(
rVal
>>=
bFixed
)
bIsAutomaticLanguage
=
!
bFixed
;
m_
bIsAutomaticLanguage
=
!
bFixed
;
}
}
break
;
break
;
default
:
default
:
...
@@ -346,11 +346,11 @@ bool SwField::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
...
@@ -346,11 +346,11 @@ bool SwField::PutValue( const uno::Any& rVal, sal_uInt16 nWhichId )
*/
*/
SwFieldType
*
SwField
::
ChgTyp
(
SwFieldType
*
pNewType
)
SwFieldType
*
SwField
::
ChgTyp
(
SwFieldType
*
pNewType
)
{
{
OSL_ENSURE
(
pNewType
&&
pNewType
->
Which
()
==
pType
->
Which
(),
OSL_ENSURE
(
pNewType
&&
pNewType
->
Which
()
==
m_
pType
->
Which
(),
"no or different type"
);
"no or different type"
);
SwFieldType
*
pOld
=
pType
;
SwFieldType
*
pOld
=
m_
pType
;
pType
=
pNewType
;
m_
pType
=
pNewType
;
return
pOld
;
return
pOld
;
}
}
...
@@ -358,7 +358,7 @@ SwFieldType* SwField::ChgTyp( SwFieldType* pNewType )
...
@@ -358,7 +358,7 @@ SwFieldType* SwField::ChgTyp( SwFieldType* pNewType )
bool
SwField
::
HasClickHdl
()
const
bool
SwField
::
HasClickHdl
()
const
{
{
bool
bRet
=
false
;
bool
bRet
=
false
;
switch
(
pType
->
Which
()
)
switch
(
m_pType
->
Which
()
)
{
{
case
RES_INTERNETFLD
:
case
RES_INTERNETFLD
:
case
RES_JUMPEDITFLD
:
case
RES_JUMPEDITFLD
:
...
@@ -376,20 +376,20 @@ bool SwField::HasClickHdl() const
...
@@ -376,20 +376,20 @@ bool SwField::HasClickHdl() const
return
bRet
;
return
bRet
;
}
}
void
SwField
::
SetLanguage
(
sal_uInt16
nL
ng
)
void
SwField
::
SetLanguage
(
sal_uInt16
const
nLa
ng
)
{
{
nLang
=
nL
ng
;
m_nLang
=
nLa
ng
;
}
}
void
SwField
::
ChangeFormat
(
sal_uInt32
n
)
void
SwField
::
ChangeFormat
(
sal_uInt32
const
nFormat
)
{
{
nFormat
=
n
;
m_nFormat
=
nFormat
;
}
}
bool
SwField
::
IsFixed
()
const
bool
SwField
::
IsFixed
()
const
{
{
bool
bRet
=
false
;
bool
bRet
=
false
;
switch
(
pType
->
Which
()
)
switch
(
m_pType
->
Which
()
)
{
{
case
RES_FIXDATEFLD
:
case
RES_FIXDATEFLD
:
case
RES_FIXTIMEFLD
:
case
RES_FIXTIMEFLD
:
...
...
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