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
3fa2c6da
Kaydet (Commit)
3fa2c6da
authored
Ock 09, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Ib83c02d53fbae6a70781d9d9d7ab015b016c72a8
üst
68d40d2c
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
51 additions
and
51 deletions
+51
-51
viewopt.hxx
sw/inc/viewopt.hxx
+4
-4
caption.cxx
sw/source/ui/config/caption.cxx
+1
-1
fontcfg.cxx
sw/source/ui/config/fontcfg.cxx
+4
-4
modcfg.cxx
sw/source/ui/config/modcfg.cxx
+6
-6
optpage.cxx
sw/source/ui/config/optpage.cxx
+11
-11
viewopt.cxx
sw/source/ui/config/viewopt.cxx
+1
-1
dbinsdlg.cxx
sw/source/ui/dbui/dbinsdlg.cxx
+13
-13
dbmgr.cxx
sw/source/ui/dbui/dbmgr.cxx
+8
-8
caption.hxx
sw/source/ui/inc/caption.hxx
+2
-2
fontcfg.hxx
sw/source/ui/inc/fontcfg.hxx
+1
-1
No files found.
sw/inc/viewopt.hxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -431,9 +431,9 @@ public:
...
@@ -431,9 +431,9 @@ public:
SwViewOption
&
operator
=
(
const
SwViewOption
&
rOpt
);
SwViewOption
&
operator
=
(
const
SwViewOption
&
rOpt
);
// Compare methods.
// Compare methods.
sal_B
ool
IsEqualFlags
(
const
SwViewOption
&
rOpt
)
const
;
b
ool
IsEqualFlags
(
const
SwViewOption
&
rOpt
)
const
;
inline
sal_B
ool
operator
==
(
const
SwViewOption
&
rOpt
)
const
;
inline
b
ool
operator
==
(
const
SwViewOption
&
rOpt
)
const
;
inline
sal_B
ool
operator
!=
(
const
SwViewOption
&
rOpt
)
const
{
return
!
(
*
this
==
rOpt
);
}
inline
b
ool
operator
!=
(
const
SwViewOption
&
rOpt
)
const
{
return
!
(
*
this
==
rOpt
);
}
/*---------------------------------------------------------------------------
/*---------------------------------------------------------------------------
...
@@ -572,7 +572,7 @@ public:
...
@@ -572,7 +572,7 @@ public:
};
};
inline
sal_B
ool
SwViewOption
::
operator
==
(
const
SwViewOption
&
rOpt
)
const
inline
b
ool
SwViewOption
::
operator
==
(
const
SwViewOption
&
rOpt
)
const
{
{
return
IsEqualFlags
(
rOpt
)
&&
nZoom
==
rOpt
.
GetZoom
();
return
IsEqualFlags
(
rOpt
)
&&
nZoom
==
rOpt
.
GetZoom
();
}
}
...
...
sw/source/ui/config/caption.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -66,7 +66,7 @@ InsCaptionOpt& InsCaptionOpt::operator=( const InsCaptionOpt& rOpt )
...
@@ -66,7 +66,7 @@ InsCaptionOpt& InsCaptionOpt::operator=( const InsCaptionOpt& rOpt )
return
*
this
;
return
*
this
;
}
}
sal_B
ool
InsCaptionOpt
::
operator
==
(
const
InsCaptionOpt
&
rOpt
)
const
b
ool
InsCaptionOpt
::
operator
==
(
const
InsCaptionOpt
&
rOpt
)
const
{
{
return
(
eObjType
==
rOpt
.
eObjType
&&
return
(
eObjType
==
rOpt
.
eObjType
&&
aOleId
==
rOpt
.
aOleId
);
// So that identical Ole-IDs can't be added multiple
aOleId
==
rOpt
.
aOleId
);
// So that identical Ole-IDs can't be added multiple
...
...
sw/source/ui/config/fontcfg.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -168,9 +168,9 @@ SwStdFontConfig::~SwStdFontConfig()
...
@@ -168,9 +168,9 @@ SwStdFontConfig::~SwStdFontConfig()
{
{
}
}
sal_B
ool
SwStdFontConfig
::
IsFontDefault
(
sal_uInt16
nFontType
)
const
b
ool
SwStdFontConfig
::
IsFontDefault
(
sal_uInt16
nFontType
)
const
{
{
sal_Bool
bSame
=
sal_F
alse
;
bool
bSame
=
f
alse
;
SvtLinguOptions
aLinguOpt
;
SvtLinguOptions
aLinguOpt
;
SvtLinguConfig
().
GetOptions
(
aLinguOpt
);
SvtLinguConfig
().
GetOptions
(
aLinguOpt
);
...
@@ -210,7 +210,7 @@ sal_Bool SwStdFontConfig::IsFontDefault(sal_uInt16 nFontType) const
...
@@ -210,7 +210,7 @@ sal_Bool SwStdFontConfig::IsFontDefault(sal_uInt16 nFontType) const
case
FONT_CAPTION_CJK
:
case
FONT_CAPTION_CJK
:
case
FONT_INDEX_CJK
:
case
FONT_INDEX_CJK
:
{
{
sal_B
ool
b1
=
sDefaultFonts
[
FONT_STANDARD_CJK
]
==
sDefFontCJK
;
b
ool
b1
=
sDefaultFonts
[
FONT_STANDARD_CJK
]
==
sDefFontCJK
;
bSame
=
b1
&&
sDefaultFonts
[
nFontType
]
==
sDefFontCJK
;
bSame
=
b1
&&
sDefaultFonts
[
nFontType
]
==
sDefFontCJK
;
}
}
break
;
break
;
...
@@ -218,7 +218,7 @@ sal_Bool SwStdFontConfig::IsFontDefault(sal_uInt16 nFontType) const
...
@@ -218,7 +218,7 @@ sal_Bool SwStdFontConfig::IsFontDefault(sal_uInt16 nFontType) const
case
FONT_CAPTION_CTL
:
case
FONT_CAPTION_CTL
:
case
FONT_INDEX_CTL
:
case
FONT_INDEX_CTL
:
{
{
sal_B
ool
b1
=
sDefaultFonts
[
FONT_STANDARD_CJK
]
==
sDefFontCTL
;
b
ool
b1
=
sDefaultFonts
[
FONT_STANDARD_CJK
]
==
sDefFontCTL
;
bSame
=
b1
&&
sDefaultFonts
[
nFontType
]
==
sDefFontCTL
;
bSame
=
b1
&&
sDefaultFonts
[
nFontType
]
==
sDefFontCTL
;
}
}
break
;
break
;
...
...
sw/source/ui/config/modcfg.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -74,7 +74,7 @@ const InsCaptionOpt* SwModuleOptions::GetCapOption(
...
@@ -74,7 +74,7 @@ const InsCaptionOpt* SwModuleOptions::GetCapOption(
}
}
else
else
{
{
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
if
(
eType
==
OLE_CAP
&&
pOleId
)
if
(
eType
==
OLE_CAP
&&
pOleId
)
{
{
for
(
sal_uInt16
nId
=
0
;
nId
<=
GLOB_NAME_CHART
&&
!
bFound
;
nId
++
)
for
(
sal_uInt16
nId
=
0
;
nId
<=
GLOB_NAME_CHART
&&
!
bFound
;
nId
++
)
...
@@ -96,7 +96,7 @@ sal_Bool SwModuleOptions::SetCapOption(sal_Bool bHTML, const InsCaptionOpt* pOpt
...
@@ -96,7 +96,7 @@ sal_Bool SwModuleOptions::SetCapOption(sal_Bool bHTML, const InsCaptionOpt* pOpt
}
}
else
if
(
pOpt
)
else
if
(
pOpt
)
{
{
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
if
(
pOpt
->
GetObjType
()
==
OLE_CAP
&&
&
pOpt
->
GetOleId
())
if
(
pOpt
->
GetObjType
()
==
OLE_CAP
&&
&
pOpt
->
GetOleId
())
{
{
for
(
sal_uInt16
nId
=
0
;
nId
<=
GLOB_NAME_CHART
;
nId
++
)
for
(
sal_uInt16
nId
=
0
;
nId
<=
GLOB_NAME_CHART
;
nId
++
)
...
@@ -161,7 +161,7 @@ String SwModuleOptions::ConvertWordDelimiter(const String& rDelim, sal_Bool bFro
...
@@ -161,7 +161,7 @@ String SwModuleOptions::ConvertWordDelimiter(const String& rDelim, sal_Bool bFro
case
'x'
:
case
'x'
:
{
{
sal_Unicode
nVal
,
nChar
;
sal_Unicode
nVal
,
nChar
;
sal_Bool
bValidData
=
sal_T
rue
;
bool
bValidData
=
t
rue
;
xub_StrLen
n
;
xub_StrLen
n
;
for
(
n
=
0
,
nChar
=
0
;
n
<
2
&&
i
<
rDelim
.
Len
();
++
n
,
++
i
)
for
(
n
=
0
,
nChar
=
0
;
n
<
2
&&
i
<
rDelim
.
Len
();
++
n
,
++
i
)
{
{
...
@@ -174,7 +174,7 @@ String SwModuleOptions::ConvertWordDelimiter(const String& rDelim, sal_Bool bFro
...
@@ -174,7 +174,7 @@ String SwModuleOptions::ConvertWordDelimiter(const String& rDelim, sal_Bool bFro
else
else
{
{
OSL_FAIL
(
"wrong hex value"
);
OSL_FAIL
(
"wrong hex value"
);
bValidData
=
sal_F
alse
;
bValidData
=
f
alse
;
break
;
break
;
}
}
...
@@ -320,7 +320,7 @@ void SwRevisionConfig::Commit()
...
@@ -320,7 +320,7 @@ void SwRevisionConfig::Commit()
PutProperties
(
aNames
,
aValues
);
PutProperties
(
aNames
,
aValues
);
}
}
static
void
lcl_ConvertCfgToAttr
(
sal_Int32
nVal
,
AuthorCharAttr
&
rAttr
,
sal_Bool
bDelete
=
sal_F
alse
)
static
void
lcl_ConvertCfgToAttr
(
sal_Int32
nVal
,
AuthorCharAttr
&
rAttr
,
bool
bDelete
=
f
alse
)
{
{
rAttr
.
nItemId
=
rAttr
.
nAttr
=
0
;
rAttr
.
nItemId
=
rAttr
.
nAttr
=
0
;
switch
(
nVal
)
switch
(
nVal
)
...
@@ -364,7 +364,7 @@ void SwRevisionConfig::Load()
...
@@ -364,7 +364,7 @@ void SwRevisionConfig::Load()
{
{
case
0
:
lcl_ConvertCfgToAttr
(
nVal
,
aInsertAttr
);
break
;
case
0
:
lcl_ConvertCfgToAttr
(
nVal
,
aInsertAttr
);
break
;
case
1
:
aInsertAttr
.
nColor
=
nVal
;
break
;
case
1
:
aInsertAttr
.
nColor
=
nVal
;
break
;
case
2
:
lcl_ConvertCfgToAttr
(
nVal
,
aDeletedAttr
,
sal_T
rue
);
break
;
case
2
:
lcl_ConvertCfgToAttr
(
nVal
,
aDeletedAttr
,
t
rue
);
break
;
case
3
:
aDeletedAttr
.
nColor
=
nVal
;
break
;
case
3
:
aDeletedAttr
.
nColor
=
nVal
;
break
;
case
4
:
lcl_ConvertCfgToAttr
(
nVal
,
aFormatAttr
);
break
;
case
4
:
lcl_ConvertCfgToAttr
(
nVal
,
aFormatAttr
);
break
;
case
5
:
aFormatAttr
.
nColor
=
nVal
;
break
;
case
5
:
aFormatAttr
.
nColor
=
nVal
;
break
;
...
...
sw/source/ui/config/optpage.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -673,7 +673,7 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
...
@@ -673,7 +673,7 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
{
{
pWrtShell
->
StartAllAction
();
pWrtShell
->
StartAllAction
();
SfxPrinter
*
pPrinter
=
pWrtShell
->
getIDocumentDeviceAccess
()
->
getPrinter
(
false
);
SfxPrinter
*
pPrinter
=
pWrtShell
->
getIDocumentDeviceAccess
()
->
getPrinter
(
false
);
sal_Bool
bMod
=
sal_F
alse
;
bool
bMod
=
f
alse
;
sal_uInt16
nFontWhich
=
sal
::
static_int_cast
<
sal_uInt16
,
RES_CHRATR
>
(
sal_uInt16
nFontWhich
=
sal
::
static_int_cast
<
sal_uInt16
,
RES_CHRATR
>
(
nFontGroup
==
FONT_GROUP_DEFAULT
?
RES_CHRATR_FONT
:
nFontGroup
==
FONT_GROUP_DEFAULT
?
RES_CHRATR_FONT
:
FONT_GROUP_CJK
==
nFontGroup
?
RES_CHRATR_CJK_FONT
:
RES_CHRATR_CTL_FONT
);
FONT_GROUP_CJK
==
nFontGroup
?
RES_CHRATR_CJK_FONT
:
RES_CHRATR_CTL_FONT
);
...
@@ -689,7 +689,7 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
...
@@ -689,7 +689,7 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
aEmptyStr
,
aFont
.
GetPitch
(),
aFont
.
GetCharSet
(),
nFontWhich
));
aEmptyStr
,
aFont
.
GetPitch
(),
aFont
.
GetCharSet
(),
nFontWhich
));
SwTxtFmtColl
*
pColl
=
pWrtShell
->
GetTxtCollFromPool
(
RES_POOLCOLL_STANDARD
);
SwTxtFmtColl
*
pColl
=
pWrtShell
->
GetTxtCollFromPool
(
RES_POOLCOLL_STANDARD
);
pColl
->
ResetFmtAttr
(
nFontWhich
);
pColl
->
ResetFmtAttr
(
nFontWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bStandardHeightChanged
)
if
(
bStandardHeightChanged
)
{
{
...
@@ -697,52 +697,52 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
...
@@ -697,52 +697,52 @@ sal_Bool SwStdFontTabPage::FillItemSet( SfxItemSet& )
pWrtShell
->
SetDefault
(
SvxFontHeightItem
(
CalcToUnit
(
fSize
,
SFX_MAPUNIT_TWIP
),
100
,
nFontHeightWhich
)
);
pWrtShell
->
SetDefault
(
SvxFontHeightItem
(
CalcToUnit
(
fSize
,
SFX_MAPUNIT_TWIP
),
100
,
nFontHeightWhich
)
);
SwTxtFmtColl
*
pColl
=
pWrtShell
->
GetTxtCollFromPool
(
RES_POOLCOLL_STANDARD
);
SwTxtFmtColl
*
pColl
=
pWrtShell
->
GetTxtCollFromPool
(
RES_POOLCOLL_STANDARD
);
pColl
->
ResetFmtAttr
(
nFontHeightWhich
);
pColl
->
ResetFmtAttr
(
nFontHeightWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
sTitle
!=
sShellTitle
)
if
(
sTitle
!=
sShellTitle
)
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_HEADLINE_BASE
,
pPrinter
,
sTitle
,
nFontWhich
);
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_HEADLINE_BASE
,
pPrinter
,
sTitle
,
nFontWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bTitleHeightChanged
)
if
(
bTitleHeightChanged
)
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_HEADLINE_BASE
,
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_HEADLINE_BASE
,
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aTitleHeightLB
.
GetValue
()),
nFontHeightWhich
);
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aTitleHeightLB
.
GetValue
()),
nFontHeightWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
sList
!=
sShellList
&&
(
!
bListDefault
||
!
bSetListDefault
))
if
(
sList
!=
sShellList
&&
(
!
bListDefault
||
!
bSetListDefault
))
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_NUMBUL_BASE
,
pPrinter
,
sList
,
nFontWhich
);
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_NUMBUL_BASE
,
pPrinter
,
sList
,
nFontWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bListHeightChanged
)
if
(
bListHeightChanged
)
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_NUMBUL_BASE
,
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_NUMBUL_BASE
,
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aListHeightLB
.
GetValue
()),
nFontHeightWhich
);
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aListHeightLB
.
GetValue
()),
nFontHeightWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
sLabel
!=
sShellLabel
&&
(
!
bLabelDefault
||
!
bSetLabelDefault
))
if
(
sLabel
!=
sShellLabel
&&
(
!
bLabelDefault
||
!
bSetLabelDefault
))
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_LABEL
,
pPrinter
,
sLabel
,
nFontWhich
);
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_LABEL
,
pPrinter
,
sLabel
,
nFontWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bLabelHeightChanged
)
if
(
bLabelHeightChanged
)
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_LABEL
,
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_LABEL
,
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aLabelHeightLB
.
GetValue
()),
nFontHeightWhich
);
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aLabelHeightLB
.
GetValue
()),
nFontHeightWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
sIdx
!=
sShellIndex
&&
(
!
bIdxDefault
||
!
bSetIdxDefault
))
if
(
sIdx
!=
sShellIndex
&&
(
!
bIdxDefault
||
!
bSetIdxDefault
))
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_REGISTER_BASE
,
pPrinter
,
sIdx
,
nFontWhich
);
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_REGISTER_BASE
,
pPrinter
,
sIdx
,
nFontWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bIndexHeightChanged
)
if
(
bIndexHeightChanged
)
{
{
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_REGISTER_BASE
,
lcl_SetColl
(
pWrtShell
,
RES_POOLCOLL_REGISTER_BASE
,
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aIndexHeightLB
.
GetValue
()),
nFontHeightWhich
);
sal
::
static_int_cast
<
sal_uInt16
,
sal_Int64
>
(
aIndexHeightLB
.
GetValue
()),
nFontHeightWhich
);
bMod
=
sal_T
rue
;
bMod
=
t
rue
;
}
}
if
(
bMod
)
if
(
bMod
)
pWrtShell
->
SetModified
();
pWrtShell
->
SetModified
();
...
...
sw/source/ui/config/viewopt.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -67,7 +67,7 @@ sal_uInt16 SwViewOption::nPixelTwips = 0; // one pixel on the screen
...
@@ -67,7 +67,7 @@ sal_uInt16 SwViewOption::nPixelTwips = 0; // one pixel on the screen
static
const
char
aPostItStr
[]
=
" "
;
static
const
char
aPostItStr
[]
=
" "
;
sal_B
ool
SwViewOption
::
IsEqualFlags
(
const
SwViewOption
&
rOpt
)
const
b
ool
SwViewOption
::
IsEqualFlags
(
const
SwViewOption
&
rOpt
)
const
{
{
return
nCoreOptions
==
rOpt
.
nCoreOptions
return
nCoreOptions
==
rOpt
.
nCoreOptions
&&
nCore2Options
==
rOpt
.
nCore2Options
&&
nCore2Options
==
rOpt
.
nCore2Options
...
...
sw/source/ui/dbui/dbinsdlg.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -646,10 +646,10 @@ IMPL_LINK( SwInsertDBColAutoPilot, DblClickHdl, ListBox*, pBox )
...
@@ -646,10 +646,10 @@ IMPL_LINK( SwInsertDBColAutoPilot, DblClickHdl, ListBox*, pBox )
IMPL_LINK
(
SwInsertDBColAutoPilot
,
TblFmtHdl
,
PushButton
*
,
pButton
)
IMPL_LINK
(
SwInsertDBColAutoPilot
,
TblFmtHdl
,
PushButton
*
,
pButton
)
{
{
SwWrtShell
&
rSh
=
pView
->
GetWrtShell
();
SwWrtShell
&
rSh
=
pView
->
GetWrtShell
();
sal_Bool
bNewSet
=
sal_F
alse
;
bool
bNewSet
=
f
alse
;
if
(
!
pTblSet
)
if
(
!
pTblSet
)
{
{
bNewSet
=
sal_T
rue
;
bNewSet
=
t
rue
;
pTblSet
=
new
SfxItemSet
(
rSh
.
GetAttrPool
(),
SwuiGetUITableAttrRange
()
);
pTblSet
=
new
SfxItemSet
(
rSh
.
GetAttrPool
(),
SwuiGetUITableAttrRange
()
);
// At first acquire the simple attributes
// At first acquire the simple attributes
...
@@ -1054,7 +1054,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
...
@@ -1054,7 +1054,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
for
(
sal_Int32
i
=
0
;
;
++
i
)
for
(
sal_Int32
i
=
0
;
;
++
i
)
{
{
sal_Bool
bBreak
=
sal_F
alse
;
bool
bBreak
=
f
alse
;
try
try
{
{
if
(
pSelection
)
if
(
pSelection
)
...
@@ -1068,7 +1068,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
...
@@ -1068,7 +1068,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
bBreak
=
sal_T
rue
;
bBreak
=
t
rue
;
}
}
if
(
bBreak
)
if
(
bBreak
)
break
;
break
;
...
@@ -1243,12 +1243,12 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
...
@@ -1243,12 +1243,12 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
rtl
::
OUString
(
"1"
),
aEmptyStr
,
aDBData
);
rtl
::
OUString
(
"1"
),
aEmptyStr
,
aDBData
);
sal_Bool
bSetCrsr
=
sal_T
rue
;
bool
bSetCrsr
=
t
rue
;
sal_uInt16
n
=
0
,
nCols
=
aColArr
.
size
();
sal_uInt16
n
=
0
,
nCols
=
aColArr
.
size
();
::
sw
::
mark
::
IMark
*
pMark
=
NULL
;
::
sw
::
mark
::
IMark
*
pMark
=
NULL
;
for
(
sal_Int32
i
=
0
;
;
++
i
)
for
(
sal_Int32
i
=
0
;
;
++
i
)
{
{
sal_Bool
bBreak
=
sal_F
alse
;
bool
bBreak
=
f
alse
;
try
try
{
{
if
(
pSelection
)
if
(
pSelection
)
...
@@ -1262,7 +1262,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
...
@@ -1262,7 +1262,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
}
}
catch
(
const
Exception
&
)
catch
(
const
Exception
&
)
{
{
bBreak
=
sal_T
rue
;
bBreak
=
t
rue
;
}
}
if
(
bBreak
)
if
(
bBreak
)
...
@@ -1369,7 +1369,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
...
@@ -1369,7 +1369,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
::
rtl
::
OUString
(),
IDocumentMarkAccess
::
UNO_BOOKMARK
);
::
rtl
::
OUString
(),
IDocumentMarkAccess
::
UNO_BOOKMARK
);
rSh
.
SwCrsrShell
::
MovePara
(
rSh
.
SwCrsrShell
::
MovePara
(
GetfnParaCurr
(),
GetfnParaEnd
()
);
GetfnParaCurr
(),
GetfnParaEnd
()
);
bSetCrsr
=
sal_F
alse
;
bSetCrsr
=
f
alse
;
}
}
}
}
...
@@ -1526,15 +1526,15 @@ static rtl::OUString lcl_CreateUniqueName(const Sequence<rtl::OUString>& aNames)
...
@@ -1526,15 +1526,15 @@ static rtl::OUString lcl_CreateUniqueName(const Sequence<rtl::OUString>& aNames)
const
rtl
::
OUString
*
pNames
=
aNames
.
getConstArray
();
const
rtl
::
OUString
*
pNames
=
aNames
.
getConstArray
();
rtl
::
OUString
sTest
(
"_"
);
rtl
::
OUString
sTest
(
"_"
);
rtl
::
OUString
sRet
;
rtl
::
OUString
sRet
;
while
(
sal_T
rue
)
while
(
t
rue
)
{
{
sRet
=
sTest
;
sRet
+=
rtl
::
OUString
::
valueOf
(
nIdx
++
);
sRet
=
sTest
;
sRet
+=
rtl
::
OUString
::
valueOf
(
nIdx
++
);
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
for
(
sal_Int32
i
=
0
;
i
<
aNames
.
getLength
();
i
++
)
for
(
sal_Int32
i
=
0
;
i
<
aNames
.
getLength
();
i
++
)
{
{
if
(
pNames
[
i
]
==
sRet
)
if
(
pNames
[
i
]
==
sRet
)
{
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
break
;
break
;
}
}
}
}
...
@@ -1733,12 +1733,12 @@ void SwInsertDBColAutoPilot::Load()
...
@@ -1733,12 +1733,12 @@ void SwInsertDBColAutoPilot::Load()
rtl
::
OUString
sColumn
;
rtl
::
OUString
sColumn
;
pSubProps
[
0
]
>>=
sColumn
;
pSubProps
[
0
]
>>=
sColumn
;
//check for existance of the loaded column name
//check for existance of the loaded column name
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
for
(
sal_uInt16
nRealColumn
=
0
;
nRealColumn
<
aDBColumns
.
size
();
nRealColumn
++
)
for
(
sal_uInt16
nRealColumn
=
0
;
nRealColumn
<
aDBColumns
.
size
();
nRealColumn
++
)
{
{
if
(
aDBColumns
[
nRealColumn
]
->
sColumn
==
sColumn
)
if
(
aDBColumns
[
nRealColumn
]
->
sColumn
==
sColumn
)
{
{
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
break
;
break
;
}
}
}
}
...
...
sw/source/ui/dbui/dbmgr.cxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -826,9 +826,9 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
...
@@ -826,9 +826,9 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
const
SwMergeDescriptor
&
rMergeDescriptor
)
const
SwMergeDescriptor
&
rMergeDescriptor
)
{
{
//check if the doc is synchronized and contains at least one linked section
//check if the doc is synchronized and contains at least one linked section
sal_B
ool
bSynchronizedDoc
=
pSourceShell
->
IsLabelDoc
()
&&
pSourceShell
->
GetSectionFmtCount
()
>
1
;
b
ool
bSynchronizedDoc
=
pSourceShell
->
IsLabelDoc
()
&&
pSourceShell
->
GetSectionFmtCount
()
>
1
;
sal_Bool
bLoop
=
sal_True
;
sal_Bool
bLoop
=
sal_True
;
sal_B
ool
bEMail
=
rMergeDescriptor
.
nMergeType
==
DBMGR_MERGE_MAILING
;
b
ool
bEMail
=
rMergeDescriptor
.
nMergeType
==
DBMGR_MERGE_MAILING
;
const
bool
bAsSingleFile
=
rMergeDescriptor
.
nMergeType
==
DBMGR_MERGE_SINGLE_FILE
;
const
bool
bAsSingleFile
=
rMergeDescriptor
.
nMergeType
==
DBMGR_MERGE_SINGLE_FILE
;
::
rtl
::
Reference
<
MailDispatcher
>
xMailDispatcher
;
::
rtl
::
Reference
<
MailDispatcher
>
xMailDispatcher
;
...
@@ -853,7 +853,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
...
@@ -853,7 +853,7 @@ sal_Bool SwNewDBMgr::MergeMailFiles(SwWrtShell* pSourceShell,
uno
::
Reference
<
XPropertySet
>
xColumnProp
;
uno
::
Reference
<
XPropertySet
>
xColumnProp
;
{
{
sal_B
ool
bColumnName
=
sEMailAddrFld
.
Len
()
>
0
;
b
ool
bColumnName
=
sEMailAddrFld
.
Len
()
>
0
;
if
(
bColumnName
)
if
(
bColumnName
)
{
{
...
@@ -1364,7 +1364,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName,
...
@@ -1364,7 +1364,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName,
{
{
uno
::
Reference
<
XDataSource
>
xSource
;
uno
::
Reference
<
XDataSource
>
xSource
;
uno
::
Reference
<
XConnection
>
xConnection
;
uno
::
Reference
<
XConnection
>
xConnection
;
sal_Bool
bUseMergeData
=
sal_F
alse
;
bool
bUseMergeData
=
f
alse
;
uno
::
Reference
<
XColumnsSupplier
>
xColsSupp
;
uno
::
Reference
<
XColumnsSupplier
>
xColsSupp
;
bool
bDisposeConnection
=
false
;
bool
bDisposeConnection
=
false
;
if
(
pImpl
->
pMergeData
&&
if
(
pImpl
->
pMergeData
&&
...
@@ -1372,7 +1372,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName,
...
@@ -1372,7 +1372,7 @@ sal_uLong SwNewDBMgr::GetColumnFmt( const String& rDBName,
{
{
xConnection
=
pImpl
->
pMergeData
->
xConnection
;
xConnection
=
pImpl
->
pMergeData
->
xConnection
;
xSource
=
SwNewDBMgr
::
getDataSourceAsParent
(
xConnection
,
rDBName
);
xSource
=
SwNewDBMgr
::
getDataSourceAsParent
(
xConnection
,
rDBName
);
bUseMergeData
=
sal_T
rue
;
bUseMergeData
=
t
rue
;
xColsSupp
=
xColsSupp
.
query
(
pImpl
->
pMergeData
->
xResultSet
);
xColsSupp
=
xColsSupp
.
query
(
pImpl
->
pMergeData
->
xResultSet
);
}
}
if
(
!
xConnection
.
is
())
if
(
!
xConnection
.
is
())
...
@@ -1765,13 +1765,13 @@ sal_Bool SwNewDBMgr::GetColumnCnt(const String& rSourceName, const String& rTabl
...
@@ -1765,13 +1765,13 @@ sal_Bool SwNewDBMgr::GetColumnCnt(const String& rSourceName, const String& rTabl
{
{
//the destination has to be an element of the selection
//the destination has to be an element of the selection
const
Any
*
pSelection
=
pFound
->
aSelection
.
getConstArray
();
const
Any
*
pSelection
=
pFound
->
aSelection
.
getConstArray
();
sal_Bool
bFound
=
sal_F
alse
;
bool
bFound
=
f
alse
;
for
(
sal_Int32
nPos
=
0
;
!
bFound
&&
nPos
<
pFound
->
aSelection
.
getLength
();
nPos
++
)
for
(
sal_Int32
nPos
=
0
;
!
bFound
&&
nPos
<
pFound
->
aSelection
.
getLength
();
nPos
++
)
{
{
sal_Int32
nSelection
=
0
;
sal_Int32
nSelection
=
0
;
pSelection
[
nPos
]
>>=
nSelection
;
pSelection
[
nPos
]
>>=
nSelection
;
if
(
nSelection
==
static_cast
<
sal_Int32
>
(
nAbsRecordId
))
if
(
nSelection
==
static_cast
<
sal_Int32
>
(
nAbsRecordId
))
bFound
=
sal_T
rue
;
bFound
=
t
rue
;
}
}
if
(
!
bFound
)
if
(
!
bFound
)
return
sal_False
;
return
sal_False
;
...
@@ -2715,7 +2715,7 @@ sal_Int32 SwNewDBMgr::MergeDocuments( SwMailMergeConfigItem& rMMConfig,
...
@@ -2715,7 +2715,7 @@ sal_Int32 SwNewDBMgr::MergeDocuments( SwMailMergeConfigItem& rMMConfig,
}
}
SwWrtShell
&
rSourceShell
=
rSourceView
.
GetWrtShell
();
SwWrtShell
&
rSourceShell
=
rSourceView
.
GetWrtShell
();
sal_B
ool
bSynchronizedDoc
=
rSourceShell
.
IsLabelDoc
()
&&
rSourceShell
.
GetSectionFmtCount
()
>
1
;
b
ool
bSynchronizedDoc
=
rSourceShell
.
IsLabelDoc
()
&&
rSourceShell
.
GetSectionFmtCount
()
>
1
;
//save the settings of the first
//save the settings of the first
rSourceShell
.
SttEndDoc
(
sal_True
);
rSourceShell
.
SttEndDoc
(
sal_True
);
sal_uInt16
nStartingPageNo
=
rSourceShell
.
GetVirtPageNum
();
sal_uInt16
nStartingPageNo
=
rSourceShell
.
GetVirtPageNum
();
...
...
sw/source/ui/inc/caption.hxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -87,9 +87,9 @@ public:
...
@@ -87,9 +87,9 @@ public:
inline
sal_Bool
&
CopyAttributes
()
{
return
bCopyAttributes
;
}
inline
sal_Bool
&
CopyAttributes
()
{
return
bCopyAttributes
;
}
inline
sal_Bool
CopyAttributes
()
const
{
return
bCopyAttributes
;
}
inline
sal_Bool
CopyAttributes
()
const
{
return
bCopyAttributes
;
}
sal_B
ool
operator
==
(
const
InsCaptionOpt
&
rOpt
)
const
;
b
ool
operator
==
(
const
InsCaptionOpt
&
rOpt
)
const
;
InsCaptionOpt
&
operator
=
(
const
InsCaptionOpt
&
rOpt
);
InsCaptionOpt
&
operator
=
(
const
InsCaptionOpt
&
rOpt
);
inline
sal_B
ool
operator
<
(
const
InsCaptionOpt
&
rObj
)
const
inline
b
ool
operator
<
(
const
InsCaptionOpt
&
rObj
)
const
{
return
aOleId
<
rObj
.
aOleId
;
}
{
return
aOleId
<
rObj
.
aOleId
;
}
};
};
...
...
sw/source/ui/inc/fontcfg.hxx
Dosyayı görüntüle @
3fa2c6da
...
@@ -86,7 +86,7 @@ public:
...
@@ -86,7 +86,7 @@ public:
const
String
&
GetFontIndex
(
sal_uInt8
nFontGroup
)
const
{
return
sDefaultFonts
[
FONT_INDEX
+
FONT_PER_GROUP
*
nFontGroup
];}
const
String
&
GetFontIndex
(
sal_uInt8
nFontGroup
)
const
{
return
sDefaultFonts
[
FONT_INDEX
+
FONT_PER_GROUP
*
nFontGroup
];}
const
String
&
GetFontFor
(
sal_uInt16
nFontType
)
const
{
return
sDefaultFonts
[
nFontType
];}
const
String
&
GetFontFor
(
sal_uInt16
nFontType
)
const
{
return
sDefaultFonts
[
nFontType
];}
sal_B
ool
IsFontDefault
(
sal_uInt16
nFontType
)
const
;
b
ool
IsFontDefault
(
sal_uInt16
nFontType
)
const
;
void
SetFontStandard
(
const
String
&
rSet
,
sal_uInt8
nFontGroup
)
void
SetFontStandard
(
const
String
&
rSet
,
sal_uInt8
nFontGroup
)
{
ChangeString
(
FONT_STANDARD
+
FONT_PER_GROUP
*
nFontGroup
,
rSet
);}
{
ChangeString
(
FONT_STANDARD
+
FONT_PER_GROUP
*
nFontGroup
,
rSet
);}
...
...
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