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
c2963398
Kaydet (Commit)
c2963398
authored
Eyl 26, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Eki 04, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool->bool in svl::SfxStyleSheetBase
Change-Id: Id506fa56d07be56d63715703e354625715275933
üst
055b6f12
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
125 additions
and
125 deletions
+125
-125
stlsheet.hxx
sc/inc/stlsheet.hxx
+5
-5
stlsheet.cxx
sc/source/core/data/stlsheet.cxx
+9
-9
stlsheet.hxx
sd/inc/stlsheet.hxx
+6
-6
stlsheet.cxx
sd/source/core/stlsheet.cxx
+14
-14
style.hxx
svl/inc/svl/style.hxx
+23
-22
style.cxx
svl/source/items/style.cxx
+28
-29
docstyle.hxx
sw/inc/docstyle.hxx
+8
-8
docstyle.cxx
sw/source/ui/app/docstyle.cxx
+32
-32
No files found.
sc/inc/stlsheet.hxx
Dosyayı görüntüle @
c2963398
...
...
@@ -51,17 +51,17 @@ public:
ScStyleSheet
(
const
ScStyleSheet
&
rStyle
);
virtual
sal_B
ool
SetParent
(
const
String
&
rParentName
);
virtual
b
ool
SetParent
(
const
String
&
rParentName
);
virtual
SfxItemSet
&
GetItemSet
();
virtual
sal_B
ool
IsUsed
()
const
;
virtual
sal_B
ool
HasFollowSupport
()
const
;
virtual
sal_B
ool
HasParentSupport
()
const
;
virtual
b
ool
IsUsed
()
const
;
virtual
b
ool
HasFollowSupport
()
const
;
virtual
b
ool
HasParentSupport
()
const
;
virtual
const
String
&
GetName
()
const
;
virtual
const
String
&
GetParent
()
const
;
virtual
const
String
&
GetFollow
()
const
;
virtual
sal_B
ool
SetName
(
const
String
&
);
virtual
b
ool
SetName
(
const
String
&
);
void
SetUsage
(
ScStyleSheet
::
Usage
eUse
)
const
{
eUsage
=
eUse
;
}
...
...
sc/source/core/data/stlsheet.cxx
Dosyayı görüntüle @
c2963398
...
...
@@ -85,20 +85,20 @@ ScStyleSheet::~ScStyleSheet()
//------------------------------------------------------------------------
sal_B
ool
ScStyleSheet
::
HasFollowSupport
()
const
b
ool
ScStyleSheet
::
HasFollowSupport
()
const
{
return
false
;
}
//------------------------------------------------------------------------
sal_B
ool
ScStyleSheet
::
HasParentSupport
()
const
b
ool
ScStyleSheet
::
HasParentSupport
()
const
{
sal_B
ool
bHasParentSupport
=
false
;
b
ool
bHasParentSupport
=
false
;
switch
(
GetFamily
()
)
{
case
SFX_STYLE_FAMILY_PARA
:
bHasParentSupport
=
sal_T
rue
;
break
;
case
SFX_STYLE_FAMILY_PARA
:
bHasParentSupport
=
t
rue
;
break
;
case
SFX_STYLE_FAMILY_PAGE
:
bHasParentSupport
=
false
;
break
;
default
:
{
...
...
@@ -111,9 +111,9 @@ sal_Bool ScStyleSheet::HasParentSupport () const
//------------------------------------------------------------------------
sal_B
ool
ScStyleSheet
::
SetParent
(
const
String
&
rParentName
)
b
ool
ScStyleSheet
::
SetParent
(
const
String
&
rParentName
)
{
sal_B
ool
bResult
=
false
;
b
ool
bResult
=
false
;
String
aEffName
=
rParentName
;
SfxStyleSheetBase
*
pStyle
=
pPool
->
Find
(
aEffName
,
nFamily
);
if
(
!
pStyle
)
...
...
@@ -263,7 +263,7 @@ SfxItemSet& ScStyleSheet::GetItemSet()
//------------------------------------------------------------------------
sal_B
ool
ScStyleSheet
::
IsUsed
()
const
b
ool
ScStyleSheet
::
IsUsed
()
const
{
if
(
GetFamily
()
==
SFX_STYLE_FAMILY_PARA
)
{
...
...
@@ -277,7 +277,7 @@ sal_Bool ScStyleSheet::IsUsed() const
return
eUsage
==
USED
;
}
else
return
sal_T
rue
;
return
t
rue
;
}
//------------------------------------------------------------------------
...
...
@@ -332,7 +332,7 @@ const String& ScStyleSheet::GetFollow() const
//! Flag gesetzt und abgefragt werden.
//! Die ganze Abfrage muss raus, wenn fuer eine neue Datei-Version die Namens-Umsetzung wegfaellt.
sal_B
ool
ScStyleSheet
::
SetName
(
const
String
&
rNew
)
b
ool
ScStyleSheet
::
SetName
(
const
String
&
rNew
)
{
String
aFileStdName
=
rtl
::
OUString
(
STRING_STANDARD
);
if
(
rNew
==
aFileStdName
&&
aFileStdName
!=
ScGlobal
::
GetRscString
(
STR_STYLENAME_STANDARD
)
)
...
...
sd/inc/stlsheet.hxx
Dosyayı görüntüle @
c2963398
...
...
@@ -54,13 +54,13 @@ public:
SdStyleSheet
(
const
rtl
::
OUString
&
rDisplayName
,
SfxStyleSheetBasePool
&
rPool
,
SfxStyleFamily
eFamily
,
sal_uInt16
nMask
);
SdStyleSheet
(
const
SdStyleSheet
&
);
virtual
sal_B
ool
SetParent
(
const
String
&
rParentName
);
virtual
b
ool
SetParent
(
const
String
&
rParentName
);
virtual
SfxItemSet
&
GetItemSet
();
virtual
sal_B
ool
IsUsed
()
const
;
virtual
sal_B
ool
HasFollowSupport
()
const
;
virtual
sal_B
ool
HasParentSupport
()
const
;
virtual
sal_B
ool
HasClearParentSupport
()
const
;
virtual
sal_B
ool
SetName
(
const
UniString
&
);
virtual
b
ool
IsUsed
()
const
;
virtual
b
ool
HasFollowSupport
()
const
;
virtual
b
ool
HasParentSupport
()
const
;
virtual
b
ool
HasClearParentSupport
()
const
;
virtual
b
ool
SetName
(
const
UniString
&
);
virtual
void
SetHelpId
(
const
String
&
r
,
sal_uLong
nId
);
void
AdjustToFontHeight
(
SfxItemSet
&
rSet
,
sal_Bool
bOnlyMissingItems
=
sal_True
);
...
...
sd/source/core/stlsheet.cxx
Dosyayı görüntüle @
c2963398
...
...
@@ -197,9 +197,9 @@ void SdStyleSheet::Store(SvStream& rOut)
|*
\************************************************************************/
sal_B
ool
SdStyleSheet
::
SetParent
(
const
String
&
rParentName
)
b
ool
SdStyleSheet
::
SetParent
(
const
String
&
rParentName
)
{
sal_B
ool
bResult
=
sal_False
;
b
ool
bResult
=
sal_False
;
if
(
SfxStyleSheet
::
SetParent
(
rParentName
))
{
...
...
@@ -211,7 +211,7 @@ sal_Bool SdStyleSheet::SetParent(const String& rParentName)
SfxStyleSheetBase
*
pStyle
=
pPool
->
Find
(
rParentName
,
nFamily
);
if
(
pStyle
)
{
bResult
=
sal_T
rue
;
bResult
=
t
rue
;
SfxItemSet
&
rParentSet
=
pStyle
->
GetItemSet
();
GetItemSet
().
SetParent
(
&
rParentSet
);
Broadcast
(
SfxSimpleHint
(
SFX_HINT_DATACHANGED
)
);
...
...
@@ -219,14 +219,14 @@ sal_Bool SdStyleSheet::SetParent(const String& rParentName)
}
else
{
bResult
=
sal_T
rue
;
bResult
=
t
rue
;
GetItemSet
().
SetParent
(
NULL
);
Broadcast
(
SfxSimpleHint
(
SFX_HINT_DATACHANGED
)
);
}
}
else
{
bResult
=
sal_T
rue
;
bResult
=
t
rue
;
}
}
return
bResult
;
...
...
@@ -342,9 +342,9 @@ SfxItemSet& SdStyleSheet::GetItemSet()
|*
\************************************************************************/
sal_B
ool
SdStyleSheet
::
IsUsed
()
const
b
ool
SdStyleSheet
::
IsUsed
()
const
{
sal_Bool
bResult
=
sal_F
alse
;
bool
bResult
=
f
alse
;
sal_uInt16
nListenerCount
=
GetListenerCount
();
if
(
nListenerCount
>
0
)
...
...
@@ -636,28 +636,28 @@ void SdStyleSheet::AdjustToFontHeight(SfxItemSet& rSet, sal_Bool bOnlyMissingIte
// --------------------------------------------------------------------
sal_B
ool
SdStyleSheet
::
HasFollowSupport
()
const
b
ool
SdStyleSheet
::
HasFollowSupport
()
const
{
return
sal_F
alse
;
return
f
alse
;
}
// --------------------------------------------------------------------
sal_B
ool
SdStyleSheet
::
HasParentSupport
()
const
b
ool
SdStyleSheet
::
HasParentSupport
()
const
{
return
sal_T
rue
;
return
t
rue
;
}
// --------------------------------------------------------------------
sal_B
ool
SdStyleSheet
::
HasClearParentSupport
()
const
b
ool
SdStyleSheet
::
HasClearParentSupport
()
const
{
return
sal_T
rue
;
return
t
rue
;
}
// --------------------------------------------------------------------
sal_B
ool
SdStyleSheet
::
SetName
(
const
UniString
&
rName
)
b
ool
SdStyleSheet
::
SetName
(
const
UniString
&
rName
)
{
return
SfxStyleSheet
::
SetName
(
rName
);
}
...
...
svl/inc/svl/style.hxx
Dosyayı görüntüle @
c2963398
...
...
@@ -85,11 +85,11 @@ protected:
rtl
::
OUString
maDisplayName
;
String
aHelpFile
;
// Name der Hilfedatei
SfxItemSet
*
pSet
;
// ItemSet
sal_uInt16
nMask
;
// Flags
sal_uInt16
nMask
;
// Flags
sal_uLong
nHelpId
;
// Hilfe-ID
sal_uLong
nHelpId
;
// Hilfe-ID
sal_B
ool
bMySet
;
// sal_True: Set loeschen im dtor
b
ool
bMySet
;
// sal_True: Set loeschen im dtor
SfxStyleSheetBase
(
const
UniString
&
,
SfxStyleSheetBasePool
*
,
SfxStyleFamily
eFam
,
sal_uInt16
mask
);
SfxStyleSheetBase
(
const
SfxStyleSheetBase
&
);
...
...
@@ -104,7 +104,7 @@ public:
virtual
const
UniString
&
GetName
()
const
;
// sets the internal name of this style
virtual
sal_B
ool
SetName
(
const
UniString
&
);
virtual
b
ool
SetName
(
const
UniString
&
);
/** returns the display name of this style, it is used at the user interface.
If the display name is empty, this method returns the internal name. */
...
...
@@ -114,13 +114,13 @@ public:
virtual
void
SetDisplayName
(
const
rtl
::
OUString
&
);
virtual
const
UniString
&
GetParent
()
const
;
virtual
sal_B
ool
SetParent
(
const
UniString
&
);
virtual
b
ool
SetParent
(
const
UniString
&
);
virtual
const
UniString
&
GetFollow
()
const
;
virtual
sal_B
ool
SetFollow
(
const
UniString
&
);
virtual
sal_Bool
HasFollowSupport
()
const
;
// Default sal_T
rue
virtual
sal_Bool
HasParentSupport
()
const
;
// Default sal_T
rue
virtual
sal_Bool
HasClearParentSupport
()
const
;
// Default sal_F
alse
virtual
sal_Bool
IsUsed
()
const
;
// Default sal_T
rue
virtual
b
ool
SetFollow
(
const
UniString
&
);
virtual
bool
HasFollowSupport
()
const
;
// Default t
rue
virtual
bool
HasParentSupport
()
const
;
// Default t
rue
virtual
bool
HasClearParentSupport
()
const
;
// Default f
alse
virtual
bool
IsUsed
()
const
;
// Default t
rue
// Default aus dem Itemset; entweder dem uebergebenen
// oder aus dem per GetItemSet() zurueckgelieferten Set
virtual
UniString
GetDescription
();
...
...
@@ -130,8 +130,8 @@ public:
SfxStyleFamily
GetFamily
()
const
{
return
nFamily
;
}
sal_uInt16
GetMask
()
const
{
return
nMask
;
}
void
SetMask
(
sal_uInt16
mask
)
{
nMask
=
mask
;
}
sal_Bool
IsUserDefined
()
const
{
return
sal_Bool
(
(
nMask
&
SFXSTYLEBIT_USERDEF
)
!=
0
)
;
}
bool
IsUserDefined
()
const
{
return
(
nMask
&
SFXSTYLEBIT_USERDEF
)
!=
0
;
}
virtual
sal_uLong
GetHelpId
(
String
&
rFile
);
virtual
void
SetHelpId
(
const
String
&
r
,
sal_uLong
nId
);
...
...
@@ -171,17 +171,18 @@ protected:
SfxStyleSheetBasePool
*
pBasePool
;
SfxStyleFamily
nSearchFamily
;
sal_uInt16
nMask
;
sal_Bool
SearchUsed
()
const
{
return
bSearchUsed
;
}
sal_uInt16
nMask
;
bool
SearchUsed
()
const
{
return
bSearchUsed
;
}
private
:
sal_uInt16
GetPos
()
{
return
nAktPosition
;
}
SVL_DLLPRIVATE
sal_Bool
IsTrivialSearch
();
SVL_DLLPRIVATE
sal_Bool
DoesStyleMatch
(
SfxStyleSheetBase
*
pStyle
);
sal_uInt16
GetPos
()
{
return
nAktPosition
;
}
SVL_DLLPRIVATE
bool
IsTrivialSearch
();
SVL_DLLPRIVATE
bool
DoesStyleMatch
(
SfxStyleSheetBase
*
pStyle
);
SfxStyleSheetBase
*
pAktStyle
;
sal_uInt16
nAktPosition
;
sal_B
ool
bSearchUsed
;
sal_uInt16
nAktPosition
;
b
ool
bSearchUsed
;
friend
class
SfxStyleSheetBasePool
;
};
...
...
@@ -207,7 +208,7 @@ protected:
sal_uInt16
nMask
;
SfxStyleSheetBase
&
Add
(
SfxStyleSheetBase
&
);
void
ChangeParent
(
const
UniString
&
,
const
UniString
&
,
sal_Bool
bVirtual
=
sal_T
rue
);
void
ChangeParent
(
const
UniString
&
,
const
UniString
&
,
bool
bVirtual
=
t
rue
);
virtual
SfxStyleSheetBase
*
Create
(
const
UniString
&
,
SfxStyleFamily
,
sal_uInt16
);
virtual
SfxStyleSheetBase
*
Create
(
const
SfxStyleSheetBase
&
);
...
...
@@ -247,7 +248,7 @@ public:
virtual
SfxStyleSheetBase
*
Next
();
virtual
SfxStyleSheetBase
*
Find
(
const
UniString
&
,
SfxStyleFamily
eFam
,
sal_uInt16
n
=
0xFFFF
);
virtual
sal_B
ool
SetParent
(
SfxStyleFamily
eFam
,
virtual
b
ool
SetParent
(
SfxStyleFamily
eFam
,
const
UniString
&
rStyle
,
const
UniString
&
rParent
);
...
...
@@ -271,7 +272,7 @@ public:
SfxStyleSheet
(
const
SfxStyleSheet
&
);
virtual
void
Notify
(
SfxBroadcaster
&
rBC
,
const
SfxHint
&
rHint
);
virtual
sal_B
ool
SetParent
(
const
UniString
&
);
virtual
b
ool
SetParent
(
const
UniString
&
);
protected
:
SfxStyleSheet
()
// do not use! needed by MSVC at compile time to satisfy ImplInheritanceHelper2
...
...
svl/source/items/style.cxx
Dosyayı görüntüle @
c2963398
...
...
@@ -162,7 +162,7 @@ const XubString& SfxStyleSheetBase::GetName() const
return
aName
;
}
sal_B
ool
SfxStyleSheetBase
::
SetName
(
const
XubString
&
rName
)
b
ool
SfxStyleSheetBase
::
SetName
(
const
XubString
&
rName
)
{
if
(
rName
.
Len
()
==
0
)
return
sal_False
;
...
...
@@ -214,10 +214,10 @@ const XubString& SfxStyleSheetBase::GetParent() const
return
aParent
;
}
sal_B
ool
SfxStyleSheetBase
::
SetParent
(
const
XubString
&
rName
)
b
ool
SfxStyleSheetBase
::
SetParent
(
const
XubString
&
rName
)
{
if
(
rName
==
aName
)
return
sal_F
alse
;
return
f
alse
;
if
(
aParent
!=
rName
)
{
...
...
@@ -225,20 +225,20 @@ sal_Bool SfxStyleSheetBase::SetParent( const XubString& rName )
if
(
rName
.
Len
()
&&
!
pIter
)
{
OSL_FAIL
(
"StyleSheet-Parent nicht gefunden"
);
return
sal_F
alse
;
return
f
alse
;
}
// rekursive Verknuepfungen verhindern
if
(
aName
.
Len
()
)
while
(
pIter
)
{
if
(
pIter
->
GetName
()
==
aName
)
return
sal_F
alse
;
return
f
alse
;
pIter
=
pPool
->
Find
(
pIter
->
GetParent
(),
nFamily
);
}
aParent
=
rName
;
}
pPool
->
Broadcast
(
SfxStyleSheetHint
(
SFX_STYLESHEET_MODIFIED
,
*
this
)
);
return
sal_T
rue
;
return
t
rue
;
}
// Follow aendern
...
...
@@ -248,19 +248,19 @@ const XubString& SfxStyleSheetBase::GetFollow() const
return
aFollow
;
}
sal_B
ool
SfxStyleSheetBase
::
SetFollow
(
const
XubString
&
rName
)
b
ool
SfxStyleSheetBase
::
SetFollow
(
const
XubString
&
rName
)
{
if
(
aFollow
!=
rName
)
{
if
(
!
pPool
->
Find
(
rName
,
nFamily
)
)
{
OSL_FAIL
(
"StyleSheet-Follow nicht gefunden"
);
return
sal_F
alse
;
return
f
alse
;
}
aFollow
=
rName
;
}
pPool
->
Broadcast
(
SfxStyleSheetHint
(
SFX_STYLESHEET_MODIFIED
,
*
this
)
);
return
sal_T
rue
;
return
t
rue
;
}
// Itemset setzen. Die Dflt-Implementation legt ein neues Set an.
...
...
@@ -291,30 +291,30 @@ void SfxStyleSheetBase::SetHelpId( const String& rFile, sal_uLong nId )
// Folgevorlage m"oglich? Default: Ja
sal_B
ool
SfxStyleSheetBase
::
HasFollowSupport
()
const
b
ool
SfxStyleSheetBase
::
HasFollowSupport
()
const
{
return
sal_T
rue
;
return
t
rue
;
}
// Basisvorlage m"oglich? Default: Ja
sal_B
ool
SfxStyleSheetBase
::
HasParentSupport
()
const
b
ool
SfxStyleSheetBase
::
HasParentSupport
()
const
{
return
sal_T
rue
;
return
t
rue
;
}
// Basisvorlage uf NULL setzen m"oglich? Default: Nein
sal_B
ool
SfxStyleSheetBase
::
HasClearParentSupport
()
const
b
ool
SfxStyleSheetBase
::
HasClearParentSupport
()
const
{
return
sal_F
alse
;
return
f
alse
;
}
// Defaultmaessig sind alle StyleSheets Used
sal_B
ool
SfxStyleSheetBase
::
IsUsed
()
const
b
ool
SfxStyleSheetBase
::
IsUsed
()
const
{
return
sal_T
rue
;
return
t
rue
;
}
// eingestellte Attribute ausgeben
...
...
@@ -361,17 +361,17 @@ SfxStyleFamily SfxStyleSheetIterator::GetSearchFamily() const
return
nSearchFamily
;
}
inline
sal_B
ool
SfxStyleSheetIterator
::
IsTrivialSearch
()
inline
b
ool
SfxStyleSheetIterator
::
IsTrivialSearch
()
{
return
nMask
==
0xFFFF
&&
GetSearchFamily
()
==
SFX_STYLE_FAMILY_ALL
;
}
sal_B
ool
SfxStyleSheetIterator
::
DoesStyleMatch
(
SfxStyleSheetBase
*
pStyle
)
b
ool
SfxStyleSheetIterator
::
DoesStyleMatch
(
SfxStyleSheetBase
*
pStyle
)
{
return
((
GetSearchFamily
()
==
SFX_STYLE_FAMILY_ALL
)
||
(
pStyle
->
GetFamily
()
==
GetSearchFamily
()
))
&&
((
pStyle
->
GetMask
()
&
(
GetSearchMask
()
&
~
SFXSTYLEBIT_USED
))
||
(
bSearchUsed
?
pStyle
->
IsUsed
()
:
sal_F
alse
)
||
(
bSearchUsed
?
pStyle
->
IsUsed
()
:
f
alse
)
||
GetSearchMask
()
==
SFXSTYLEBIT_ALL
);
}
...
...
@@ -581,16 +581,15 @@ SfxStyleSheetBasePool::~SfxStyleSheetBasePool()
delete
pImp
;
}
sal_B
ool
SfxStyleSheetBasePool
::
SetParent
(
SfxStyleFamily
eFam
,
const
XubString
&
rStyle
,
const
XubString
&
rParent
)
b
ool
SfxStyleSheetBasePool
::
SetParent
(
SfxStyleFamily
eFam
,
const
XubString
&
rStyle
,
const
XubString
&
rParent
)
{
SfxStyleSheetIterator
aIter
(
this
,
eFam
,
SFXSTYLEBIT_ALL
);
SfxStyleSheetBase
*
pStyle
=
aIter
.
Find
(
rStyle
);
SfxStyleSheetBase
*
pStyle
=
aIter
.
Find
(
rStyle
);
OSL_ENSURE
(
pStyle
,
"Vorlage nicht gefunden. Writer mit Solar <2541??"
);
if
(
pStyle
)
return
pStyle
->
SetParent
(
rParent
);
else
return
sal_F
alse
;
return
f
alse
;
}
...
...
@@ -807,7 +806,7 @@ void SfxStyleSheetBasePool::Clear()
void
SfxStyleSheetBasePool
::
ChangeParent
(
const
XubString
&
rOld
,
const
XubString
&
rNew
,
sal_B
ool
bVirtual
)
b
ool
bVirtual
)
{
const
sal_uInt16
nTmpMask
=
GetSearchMask
();
SetSearchMask
(
GetSearchFamily
(),
0xffff
);
...
...
@@ -865,10 +864,10 @@ SfxStyleSheet::~SfxStyleSheet()
}
sal_B
ool
SfxStyleSheet
::
SetParent
(
const
XubString
&
rName
)
b
ool
SfxStyleSheet
::
SetParent
(
const
XubString
&
rName
)
{
if
(
aParent
==
rName
)
return
sal_T
rue
;
return
t
rue
;
const
XubString
aOldParent
(
aParent
);
if
(
SfxStyleSheetBase
::
SetParent
(
rName
))
{
// aus der Benachrichtigungskette des alten
...
...
@@ -885,9 +884,9 @@ sal_Bool SfxStyleSheet::SetParent( const XubString& rName )
if
(
pParent
)
StartListening
(
*
pParent
);
}
return
sal_T
rue
;
return
t
rue
;
}
return
sal_F
alse
;
return
f
alse
;
}
// alle Zuhoerer benachtichtigen
...
...
sw/inc/docstyle.hxx
Dosyayı görüntüle @
c2963398
...
...
@@ -130,13 +130,13 @@ public:
void
PresetParent
(
const
String
&
rName
){
aParent
=
rName
;
}
void
PresetFollow
(
const
String
&
rName
){
aFollow
=
rName
;
}
virtual
sal_B
ool
SetName
(
const
String
&
rStr
);
virtual
sal_B
ool
SetParent
(
const
String
&
rStr
);
virtual
sal_B
ool
SetFollow
(
const
String
&
rStr
);
virtual
b
ool
SetName
(
const
String
&
rStr
);
virtual
b
ool
SetParent
(
const
String
&
rStr
);
virtual
b
ool
SetFollow
(
const
String
&
rStr
);
virtual
sal_B
ool
HasFollowSupport
()
const
;
virtual
sal_B
ool
HasParentSupport
()
const
;
virtual
sal_B
ool
HasClearParentSupport
()
const
;
virtual
b
ool
HasFollowSupport
()
const
;
virtual
b
ool
HasParentSupport
()
const
;
virtual
b
ool
HasClearParentSupport
()
const
;
virtual
String
GetDescription
();
virtual
String
GetDescription
(
SfxMapUnit
eUnit
);
...
...
@@ -147,7 +147,7 @@ public:
const
SwNumRule
*
GetNumRule
();
void
SetNumRule
(
const
SwNumRule
&
rRule
);
virtual
sal_B
ool
IsUsed
()
const
;
virtual
b
ool
IsUsed
()
const
;
};
/*--------------------------------------------------------------------
...
...
@@ -204,7 +204,7 @@ public:
virtual
SfxStyleSheetBase
*
Find
(
const
String
&
,
SfxStyleFamily
eFam
,
sal_uInt16
n
=
0xFFFF
);
virtual
sal_B
ool
SetParent
(
SfxStyleFamily
eFam
,
const
String
&
rStyle
,
virtual
b
ool
SetParent
(
SfxStyleFamily
eFam
,
const
String
&
rStyle
,
const
String
&
rParent
);
virtual
void
Remove
(
SfxStyleSheetBase
*
pStyle
);
...
...
sw/source/ui/app/docstyle.cxx
Dosyayı görüntüle @
c2963398
...
...
@@ -530,19 +530,19 @@ const String& SwDocStyleSheet::GetFollow() const
--------------------------------------------------------------------*/
sal_B
ool
SwDocStyleSheet
::
HasFollowSupport
()
const
b
ool
SwDocStyleSheet
::
HasFollowSupport
()
const
{
switch
(
nFamily
)
{
case
SFX_STYLE_FAMILY_PARA
:
case
SFX_STYLE_FAMILY_PAGE
:
return
sal_T
rue
;
case
SFX_STYLE_FAMILY_PAGE
:
return
t
rue
;
case
SFX_STYLE_FAMILY_FRAME
:
case
SFX_STYLE_FAMILY_CHAR
:
case
SFX_STYLE_FAMILY_PSEUDO
:
return
sal_F
alse
;
case
SFX_STYLE_FAMILY_PSEUDO
:
return
f
alse
;
default
:
OSL_ENSURE
(
!
this
,
"unknown style family"
);
}
return
sal_F
alse
;
return
f
alse
;
}
/*--------------------------------------------------------------------
...
...
@@ -550,28 +550,28 @@ sal_Bool SwDocStyleSheet::HasFollowSupport() const
--------------------------------------------------------------------*/
sal_B
ool
SwDocStyleSheet
::
HasParentSupport
()
const
b
ool
SwDocStyleSheet
::
HasParentSupport
()
const
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
switch
(
nFamily
)
{
case
SFX_STYLE_FAMILY_CHAR
:
case
SFX_STYLE_FAMILY_PARA
:
case
SFX_STYLE_FAMILY_FRAME
:
bRet
=
sal_T
rue
;
case
SFX_STYLE_FAMILY_FRAME
:
bRet
=
t
rue
;
default
:
;
//prevent warning
}
return
bRet
;
}
sal_B
ool
SwDocStyleSheet
::
HasClearParentSupport
()
const
b
ool
SwDocStyleSheet
::
HasClearParentSupport
()
const
{
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
switch
(
nFamily
)
{
case
SFX_STYLE_FAMILY_PARA
:
case
SFX_STYLE_FAMILY_CHAR
:
case
SFX_STYLE_FAMILY_FRAME
:
bRet
=
sal_T
rue
;
case
SFX_STYLE_FAMILY_FRAME
:
bRet
=
t
rue
;
default
:
;
//prevent warning
}
return
bRet
;
...
...
@@ -758,20 +758,20 @@ String SwDocStyleSheet::GetDescription()
--------------------------------------------------------------------*/
sal_B
ool
SwDocStyleSheet
::
SetName
(
const
String
&
rStr
)
b
ool
SwDocStyleSheet
::
SetName
(
const
String
&
rStr
)
{
if
(
!
rStr
.
Len
()
)
return
sal_F
alse
;
return
f
alse
;
if
(
aName
!=
rStr
)
{
if
(
!
SfxStyleSheetBase
::
SetName
(
rStr
))
return
sal_F
alse
;
return
f
alse
;
}
else
if
(
!
bPhysical
)
FillStyleSheet
(
FillPhysical
);
int
bChg
=
sal_F
alse
;
int
bChg
=
f
alse
;
switch
(
nFamily
)
{
case
SFX_STYLE_FAMILY_CHAR
:
...
...
@@ -780,7 +780,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
if
(
pCharFmt
&&
pCharFmt
->
GetName
()
!=
rStr
)
{
pCharFmt
->
SetName
(
rStr
);
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
break
;
}
...
...
@@ -794,7 +794,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
else
pColl
->
SetName
(
rStr
);
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
break
;
}
...
...
@@ -808,7 +808,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
else
pFrmFmt
->
SetName
(
rStr
);
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
break
;
}
...
...
@@ -830,7 +830,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
rDoc
.
GetIDocumentUndoRedo
().
DoUndo
(
bDoesUndo
);
rDoc
.
SetModified
();
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
break
;
case
SFX_STYLE_FAMILY_PSEUDO
:
...
...
@@ -848,7 +848,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
pNumRule
=
rDoc
.
FindNumRulePtr
(
rStr
);
rDoc
.
SetModified
();
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
}
else
...
...
@@ -857,7 +857,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
((
SwNumRule
*
)
pNumRule
)
->
SetName
(
rStr
,
rDoc
);
rDoc
.
SetModified
();
bChg
=
sal_T
rue
;
bChg
=
t
rue
;
}
}
...
...
@@ -875,7 +875,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
if
(
pSh
)
pSh
->
CallChgLnk
();
}
return
sal_T
rue
;
return
t
rue
;
}
/*--------------------------------------------------------------------
...
...
@@ -883,7 +883,7 @@ sal_Bool SwDocStyleSheet::SetName( const String& rStr)
--------------------------------------------------------------------*/
sal_B
ool
SwDocStyleSheet
::
SetParent
(
const
String
&
rStr
)
b
ool
SwDocStyleSheet
::
SetParent
(
const
String
&
rStr
)
{
SwFmt
*
pFmt
=
0
,
*
pParent
=
0
;
switch
(
nFamily
)
...
...
@@ -913,7 +913,7 @@ sal_Bool SwDocStyleSheet::SetParent( const String& rStr)
OSL_ENSURE
(
!
this
,
"unknown style family"
);
}
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
pFmt
&&
pFmt
->
DerivedFrom
()
&&
pFmt
->
DerivedFrom
()
->
GetName
()
!=
rStr
)
{
...
...
@@ -938,10 +938,10 @@ sal_Bool SwDocStyleSheet::SetParent( const String& rStr)
--------------------------------------------------------------------*/
sal_B
ool
SwDocStyleSheet
::
SetFollow
(
const
String
&
rStr
)
b
ool
SwDocStyleSheet
::
SetFollow
(
const
String
&
rStr
)
{
if
(
rStr
.
Len
()
&&
!
SfxStyleSheetBase
::
SetFollow
(
rStr
))
return
sal_F
alse
;
return
f
alse
;
SwImplShellAction
aTmpSh
(
rDoc
);
switch
(
nFamily
)
...
...
@@ -987,7 +987,7 @@ sal_Bool SwDocStyleSheet::SetFollow( const String& rStr)
OSL_ENSURE
(
!
this
,
"unknwown style family"
);
}
return
sal_T
rue
;
return
t
rue
;
}
/*--------------------------------------------------------------------
...
...
@@ -1843,7 +1843,7 @@ SwFrmFmt* SwDocStyleSheet::GetFrmFmt()
return
pFrmFmt
;
}
sal_B
ool
SwDocStyleSheet
::
IsUsed
()
const
b
ool
SwDocStyleSheet
::
IsUsed
()
const
{
if
(
!
bPhysical
)
{
...
...
@@ -1852,7 +1852,7 @@ sal_Bool SwDocStyleSheet::IsUsed() const
}
if
(
!
bPhysical
)
return
sal_F
alse
;
return
f
alse
;
const
SwModify
*
pMod
;
switch
(
nFamily
)
...
...
@@ -1863,11 +1863,11 @@ sal_Bool SwDocStyleSheet::IsUsed() const
case
SFX_STYLE_FAMILY_PAGE
:
pMod
=
pDesc
;
break
;
case
SFX_STYLE_FAMILY_PSEUDO
:
return
pNumRule
?
rDoc
.
IsUsed
(
*
pNumRule
)
:
sal_F
alse
;
return
pNumRule
?
rDoc
.
IsUsed
(
*
pNumRule
)
:
f
alse
;
default
:
OSL_ENSURE
(
!
this
,
"unknown style family"
);
return
sal_F
alse
;
return
f
alse
;
}
return
rDoc
.
IsUsed
(
*
pMod
);
}
...
...
@@ -2230,7 +2230,7 @@ void SwDocStyleSheetPool::Remove( SfxStyleSheetBase* pStyle)
sal_B
ool
SwDocStyleSheetPool
::
SetParent
(
SfxStyleFamily
eFam
,
b
ool
SwDocStyleSheetPool
::
SetParent
(
SfxStyleFamily
eFam
,
const
String
&
rStyle
,
const
String
&
rParent
)
{
SwFmt
*
pFmt
=
0
,
*
pParent
=
0
;
...
...
@@ -2259,7 +2259,7 @@ sal_Bool SwDocStyleSheetPool::SetParent( SfxStyleFamily eFam,
OSL_ENSURE
(
!
this
,
"unknown style family"
);
}
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
pFmt
&&
pFmt
->
DerivedFrom
()
&&
pFmt
->
DerivedFrom
()
->
GetName
()
!=
rParent
)
{
...
...
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