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
550546a2
Kaydet (Commit)
550546a2
authored
Nis 22, 2013
tarafından
Takeshi Abe
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
sal_Bool to bool
Change-Id: Ibaa2a843e16c22b6e2fb7e53da335b9b35b70a96
üst
d5e5de64
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
39 additions
and
39 deletions
+39
-39
xmleohlp.cxx
svx/source/xml/xmleohlp.cxx
+7
-7
xmlgrhlp.cxx
svx/source/xml/xmlgrhlp.cxx
+2
-2
xmlxtexp.cxx
svx/source/xml/xmlxtexp.cxx
+1
-1
xmlxtimp.cxx
svx/source/xml/xmlxtimp.cxx
+4
-4
_xoutbmp.cxx
svx/source/xoutdev/_xoutbmp.cxx
+3
-3
_xpoly.cxx
svx/source/xoutdev/_xpoly.cxx
+1
-1
xattr.cxx
svx/source/xoutdev/xattr.cxx
+19
-19
xattrbmp.cxx
svx/source/xoutdev/xattrbmp.cxx
+2
-2
No files found.
svx/source/xml/xmleohlp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -66,7 +66,7 @@ class OutputStorageWrapper_Impl : public ::cppu::WeakImplHelper1<XOutputStream>
...
@@ -66,7 +66,7 @@ class OutputStorageWrapper_Impl : public ::cppu::WeakImplHelper1<XOutputStream>
::
osl
::
Mutex
maMutex
;
::
osl
::
Mutex
maMutex
;
Reference
<
XOutputStream
>
xOut
;
Reference
<
XOutputStream
>
xOut
;
TempFile
aTempFile
;
TempFile
aTempFile
;
sal_B
ool
bStreamClosed
:
1
;
b
ool
bStreamClosed
:
1
;
SvStream
*
pStream
;
SvStream
*
pStream
;
public
:
public
:
...
@@ -82,7 +82,7 @@ public:
...
@@ -82,7 +82,7 @@ public:
};
};
OutputStorageWrapper_Impl
::
OutputStorageWrapper_Impl
()
OutputStorageWrapper_Impl
::
OutputStorageWrapper_Impl
()
:
bStreamClosed
(
sal_F
alse
)
:
bStreamClosed
(
f
alse
)
,
pStream
(
0
)
,
pStream
(
0
)
{
{
aTempFile
.
EnableKillingFile
();
aTempFile
.
EnableKillingFile
();
...
@@ -121,7 +121,7 @@ void SAL_CALL OutputStorageWrapper_Impl::closeOutput()
...
@@ -121,7 +121,7 @@ void SAL_CALL OutputStorageWrapper_Impl::closeOutput()
{
{
MutexGuard
aGuard
(
maMutex
);
MutexGuard
aGuard
(
maMutex
);
xOut
->
closeOutput
();
xOut
->
closeOutput
();
bStreamClosed
=
sal_T
rue
;
bStreamClosed
=
t
rue
;
}
}
struct
OUStringLess
struct
OUStringLess
...
@@ -283,7 +283,7 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
...
@@ -283,7 +283,7 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
if
(
-
1
==
nPos
)
if
(
-
1
==
nPos
)
return
sal_False
;
return
sal_False
;
sal_Bool
bObjUrl
=
aURLNoPar
.
startsWith
(
XML_EMBEDDEDOBJECT_URL_BASE
);
sal_Bool
bObjUrl
=
aURLNoPar
.
startsWith
(
XML_EMBEDDEDOBJECT_URL_BASE
);
sal_B
ool
bGrUrl
=
!
bObjUrl
&&
b
ool
bGrUrl
=
!
bObjUrl
&&
aURLNoPar
.
startsWith
(
XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE
);
aURLNoPar
.
startsWith
(
XML_EMBEDDEDOBJECTGRAPHIC_URL_BASE
);
if
(
!
(
bObjUrl
||
bGrUrl
)
)
if
(
!
(
bObjUrl
||
bGrUrl
)
)
return
sal_False
;
return
sal_False
;
...
@@ -305,7 +305,7 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
...
@@ -305,7 +305,7 @@ sal_Bool SvXMLEmbeddedObjectHelper::ImplGetStorageNames(
if
(
bGrUrl
)
if
(
bGrUrl
)
{
{
sal_B
ool
bOASIS
=
mxRootStorage
.
is
()
&&
b
ool
bOASIS
=
mxRootStorage
.
is
()
&&
(
SotStorage
::
GetVersion
(
mxRootStorage
)
>
SOFFICE_FILEFORMAT_60
);
(
SotStorage
::
GetVersion
(
mxRootStorage
)
>
SOFFICE_FILEFORMAT_60
);
rContainerStorageName
=
bOASIS
rContainerStorageName
=
bOASIS
?
maReplacementGraphicsContainerStorageName
?
maReplacementGraphicsContainerStorageName
...
@@ -515,7 +515,7 @@ uno::Reference< io::XInputStream > SvXMLEmbeddedObjectHelper::ImplGetReplacement
...
@@ -515,7 +515,7 @@ uno::Reference< io::XInputStream > SvXMLEmbeddedObjectHelper::ImplGetReplacement
{
{
try
try
{
{
sal_Bool
bSwitchBackToLoaded
=
sal_F
alse
;
bool
bSwitchBackToLoaded
=
f
alse
;
sal_Int32
nCurState
=
xObj
->
getCurrentState
();
sal_Int32
nCurState
=
xObj
->
getCurrentState
();
if
(
nCurState
==
embed
::
EmbedStates
::
LOADED
||
nCurState
==
embed
::
EmbedStates
::
RUNNING
)
if
(
nCurState
==
embed
::
EmbedStates
::
LOADED
||
nCurState
==
embed
::
EmbedStates
::
RUNNING
)
{
{
...
@@ -530,7 +530,7 @@ uno::Reference< io::XInputStream > SvXMLEmbeddedObjectHelper::ImplGetReplacement
...
@@ -530,7 +530,7 @@ uno::Reference< io::XInputStream > SvXMLEmbeddedObjectHelper::ImplGetReplacement
// the image must be regenerated
// the image must be regenerated
// TODO/LATER: another aspect could be used
// TODO/LATER: another aspect could be used
if
(
nCurState
==
embed
::
EmbedStates
::
LOADED
)
if
(
nCurState
==
embed
::
EmbedStates
::
LOADED
)
bSwitchBackToLoaded
=
sal_T
rue
;
bSwitchBackToLoaded
=
t
rue
;
OUString
aMediaType
;
OUString
aMediaType
;
xStream
=
svt
::
EmbeddedObjectRef
::
GetGraphicReplacementStream
(
xStream
=
svt
::
EmbeddedObjectRef
::
GetGraphicReplacementStream
(
...
...
svx/source/xml/xmlgrhlp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -91,7 +91,7 @@ public:
...
@@ -91,7 +91,7 @@ public:
SvXMLGraphicInputStream
(
const
OUString
&
rGraphicId
);
SvXMLGraphicInputStream
(
const
OUString
&
rGraphicId
);
virtual
~
SvXMLGraphicInputStream
();
virtual
~
SvXMLGraphicInputStream
();
sal_Bool
Exists
()
const
{
return
mxStmWrapper
.
is
();
}
bool
Exists
()
const
{
return
mxStmWrapper
.
is
();
}
};
};
SvXMLGraphicInputStream
::
SvXMLGraphicInputStream
(
const
OUString
&
rGraphicId
)
SvXMLGraphicInputStream
::
SvXMLGraphicInputStream
(
const
OUString
&
rGraphicId
)
...
@@ -222,7 +222,7 @@ public:
...
@@ -222,7 +222,7 @@ public:
SvXMLGraphicOutputStream
();
SvXMLGraphicOutputStream
();
virtual
~
SvXMLGraphicOutputStream
();
virtual
~
SvXMLGraphicOutputStream
();
sal_Bool
Exists
()
const
{
return
mxStmWrapper
.
is
();
}
bool
Exists
()
const
{
return
mxStmWrapper
.
is
();
}
const
GraphicObject
&
GetGraphicObject
();
const
GraphicObject
&
GetGraphicObject
();
};
};
...
...
svx/source/xml/xmlxtexp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -220,7 +220,7 @@ bool SvxXMLXTableExportComponent::save(
...
@@ -220,7 +220,7 @@ bool SvxXMLXTableExportComponent::save(
INetURLObject
aURLObj
(
rURL
);
INetURLObject
aURLObj
(
rURL
);
bool
bToStorage
=
aURLObj
.
GetProtocol
()
==
INET_PROT_NOT_VALID
;
// a relative path
bool
bToStorage
=
aURLObj
.
GetProtocol
()
==
INET_PROT_NOT_VALID
;
// a relative path
sal_B
ool
bSaveAsStorage
=
xTable
->
getElementType
()
==
::
getCppuType
((
const
OUString
*
)
0
);
b
ool
bSaveAsStorage
=
xTable
->
getElementType
()
==
::
getCppuType
((
const
OUString
*
)
0
);
if
(
pOptName
)
if
(
pOptName
)
*
pOptName
=
rURL
;
*
pOptName
=
rURL
;
...
...
svx/source/xml/xmlxtimp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -84,7 +84,7 @@ class SvxXMLTableImportContext : public SvXMLImportContext
...
@@ -84,7 +84,7 @@ class SvxXMLTableImportContext : public SvXMLImportContext
{
{
public
:
public
:
SvxXMLTableImportContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLName
,
const
uno
::
Reference
<
XAttributeList
>&
xAttrList
,
SvxXMLTableImportContextEnum
eContext
,
const
uno
::
Reference
<
XNameContainer
>&
xTable
,
SvxXMLTableImportContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLName
,
const
uno
::
Reference
<
XAttributeList
>&
xAttrList
,
SvxXMLTableImportContextEnum
eContext
,
const
uno
::
Reference
<
XNameContainer
>&
xTable
,
sal_B
ool
bOOoFormat
);
b
ool
bOOoFormat
);
virtual
~
SvxXMLTableImportContext
();
virtual
~
SvxXMLTableImportContext
();
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
OUString
&
rLocalName
,
const
uno
::
Reference
<
XAttributeList
>&
xAttrList
);
virtual
SvXMLImportContext
*
CreateChildContext
(
sal_uInt16
nPrefix
,
const
OUString
&
rLocalName
,
const
uno
::
Reference
<
XAttributeList
>&
xAttrList
);
...
@@ -102,12 +102,12 @@ protected:
...
@@ -102,12 +102,12 @@ protected:
private
:
private
:
uno
::
Reference
<
XNameContainer
>
mxTable
;
uno
::
Reference
<
XNameContainer
>
mxTable
;
SvxXMLTableImportContextEnum
meContext
;
SvxXMLTableImportContextEnum
meContext
;
sal_B
ool
mbOOoFormat
;
b
ool
mbOOoFormat
;
};
};
///////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////
SvxXMLTableImportContext
::
SvxXMLTableImportContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLName
,
const
uno
::
Reference
<
XAttributeList
>&
,
SvxXMLTableImportContextEnum
eContext
,
const
uno
::
Reference
<
XNameContainer
>&
xTable
,
sal_B
ool
bOOoFormat
)
SvxXMLTableImportContext
::
SvxXMLTableImportContext
(
SvXMLImport
&
rImport
,
sal_uInt16
nPrfx
,
const
OUString
&
rLName
,
const
uno
::
Reference
<
XAttributeList
>&
,
SvxXMLTableImportContextEnum
eContext
,
const
uno
::
Reference
<
XNameContainer
>&
xTable
,
b
ool
bOOoFormat
)
:
SvXMLImportContext
(
rImport
,
nPrfx
,
rLName
),
mxTable
(
xTable
),
meContext
(
eContext
),
:
SvXMLImportContext
(
rImport
,
nPrfx
,
rLName
),
mxTable
(
xTable
),
meContext
(
eContext
),
mbOOoFormat
(
bOOoFormat
)
mbOOoFormat
(
bOOoFormat
)
{
{
...
@@ -467,7 +467,7 @@ SvXMLImportContext *SvxXMLXTableImport::CreateContext( sal_uInt16 nPrefix, const
...
@@ -467,7 +467,7 @@ SvXMLImportContext *SvxXMLXTableImport::CreateContext( sal_uInt16 nPrefix, const
if
(
XML_NAMESPACE_OOO
==
nPrefix
||
if
(
XML_NAMESPACE_OOO
==
nPrefix
||
XML_NAMESPACE_OFFICE
==
nPrefix
)
XML_NAMESPACE_OFFICE
==
nPrefix
)
{
{
sal_B
ool
bOOoFormat
=
(
XML_NAMESPACE_OFFICE
==
nPrefix
);
b
ool
bOOoFormat
=
(
XML_NAMESPACE_OFFICE
==
nPrefix
);
Type
aType
=
mrTable
->
getElementType
();
Type
aType
=
mrTable
->
getElementType
();
if
(
rLocalName
==
"color-table"
)
if
(
rLocalName
==
"color-table"
)
...
...
svx/source/xoutdev/_xoutbmp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -182,7 +182,7 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, String& rFileName,
...
@@ -182,7 +182,7 @@ sal_uInt16 XOutBitmap::WriteGraphic( const Graphic& rGraphic, String& rFileName,
if
(
GRFILTER_OK
!=
nErr
)
if
(
GRFILTER_OK
!=
nErr
)
{
{
String
aFilter
(
rFilterName
);
String
aFilter
(
rFilterName
);
sal_B
ool
bWriteTransGrf
=
(
aFilter
.
EqualsIgnoreCaseAscii
(
"transgrf"
)
)
||
b
ool
bWriteTransGrf
=
(
aFilter
.
EqualsIgnoreCaseAscii
(
"transgrf"
)
)
||
(
aFilter
.
EqualsIgnoreCaseAscii
(
"gif"
)
)
||
(
aFilter
.
EqualsIgnoreCaseAscii
(
"gif"
)
)
||
(
nFlags
&
XOUTBMP_USE_GIF_IF_POSSIBLE
)
||
(
nFlags
&
XOUTBMP_USE_GIF_IF_POSSIBLE
)
||
(
(
nFlags
&
XOUTBMP_USE_GIF_IF_SENSIBLE
)
&&
(
bAnimated
||
bTransparent
)
);
(
(
nFlags
&
XOUTBMP_USE_GIF_IF_SENSIBLE
)
&&
(
bAnimated
||
bTransparent
)
);
...
@@ -313,7 +313,7 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold )
...
@@ -313,7 +313,7 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold )
{
{
const
Size
aSize
(
rBmp
.
GetSizePixel
()
);
const
Size
aSize
(
rBmp
.
GetSizePixel
()
);
Bitmap
aRetBmp
;
Bitmap
aRetBmp
;
sal_Bool
bRet
=
sal_F
alse
;
bool
bRet
=
f
alse
;
if
(
(
aSize
.
Width
()
>
2L
)
&&
(
aSize
.
Height
()
>
2L
)
)
if
(
(
aSize
.
Width
()
>
2L
)
&&
(
aSize
.
Height
()
>
2L
)
)
{
{
...
@@ -372,7 +372,7 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold )
...
@@ -372,7 +372,7 @@ Bitmap XOutBitmap::DetectEdges( const Bitmap& rBmp, const sal_uInt8 cThreshold )
}
}
}
}
bRet
=
sal_T
rue
;
bRet
=
t
rue
;
}
}
aWorkBmp
.
ReleaseAccess
(
pReadAcc
);
aWorkBmp
.
ReleaseAccess
(
pReadAcc
);
...
...
svx/source/xoutdev/_xpoly.cxx
Dosyayı görüntüle @
550546a2
...
@@ -344,7 +344,7 @@ XPolygon::XPolygon(const Point& rCenter, long nRx, long nRy,
...
@@ -344,7 +344,7 @@ XPolygon::XPolygon(const Point& rCenter, long nRx, long nRy,
nStartAngle
%=
3600
;
nStartAngle
%=
3600
;
if
(
nEndAngle
>
3600
)
nEndAngle
%=
3600
;
if
(
nEndAngle
>
3600
)
nEndAngle
%=
3600
;
sal_B
ool
bFull
=
(
nStartAngle
==
0
&&
nEndAngle
==
3600
);
b
ool
bFull
=
(
nStartAngle
==
0
&&
nEndAngle
==
3600
);
// Faktor fuer Kontrollpunkte der Bezierkurven: 8/3 * (sin(45g) - 0.5)
// Faktor fuer Kontrollpunkte der Bezierkurven: 8/3 * (sin(45g) - 0.5)
long
nXHdl
=
(
long
)(
0.552284749
*
nRx
);
long
nXHdl
=
(
long
)(
0.552284749
*
nRx
);
...
...
svx/source/xoutdev/xattr.cxx
Dosyayı görüntüle @
550546a2
...
@@ -187,7 +187,7 @@ SvStream& NameOrIndex::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const
...
@@ -187,7 +187,7 @@ SvStream& NameOrIndex::Store( SvStream& rOut, sal_uInt16 nItemVersion ) const
*/
*/
String
NameOrIndex
::
CheckNamedItem
(
const
NameOrIndex
*
pCheckItem
,
const
sal_uInt16
nWhich
,
const
SfxItemPool
*
pPool1
,
const
SfxItemPool
*
/*pPool2*/
,
SvxCompareValueFunc
pCompareValueFunc
,
sal_uInt16
nPrefixResId
,
const
XPropertyListRef
&
pDefaults
)
String
NameOrIndex
::
CheckNamedItem
(
const
NameOrIndex
*
pCheckItem
,
const
sal_uInt16
nWhich
,
const
SfxItemPool
*
pPool1
,
const
SfxItemPool
*
/*pPool2*/
,
SvxCompareValueFunc
pCompareValueFunc
,
sal_uInt16
nPrefixResId
,
const
XPropertyListRef
&
pDefaults
)
{
{
sal_Bool
bForceNew
=
sal_F
alse
;
bool
bForceNew
=
f
alse
;
OUString
aUniqueName
=
SvxUnogetInternalNameForItem
(
nWhich
,
pCheckItem
->
GetName
());
OUString
aUniqueName
=
SvxUnogetInternalNameForItem
(
nWhich
,
pCheckItem
->
GetName
());
...
@@ -211,7 +211,7 @@ String NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_uIn
...
@@ -211,7 +211,7 @@ String NameOrIndex::CheckNamedItem( const NameOrIndex* pCheckItem, const sal_uIn
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -1092,7 +1092,7 @@ bool XLineDashItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8
...
@@ -1092,7 +1092,7 @@ bool XLineDashItem::PutValue( const ::com::sun::star::uno::Any& rVal, sal_uInt8
uno
::
Sequence
<
beans
::
PropertyValue
>
aPropSeq
;
uno
::
Sequence
<
beans
::
PropertyValue
>
aPropSeq
;
::
com
::
sun
::
star
::
drawing
::
LineDash
aLineDash
;
::
com
::
sun
::
star
::
drawing
::
LineDash
aLineDash
;
OUString
aName
;
OUString
aName
;
sal_Bool
bLineDash
(
sal_F
alse
);
bool
bLineDash
(
f
alse
);
if
(
rVal
>>=
aPropSeq
)
if
(
rVal
>>=
aPropSeq
)
{
{
...
@@ -1782,7 +1782,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1782,7 +1782,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
}
}
}
}
sal_Bool
bForceNew
=
sal_F
alse
;
bool
bForceNew
=
f
alse
;
// 2. if we have a name check if there is already an item with the
// 2. if we have a name check if there is already an item with the
// same name in the documents pool with a different line end or start
// same name in the documents pool with a different line end or start
...
@@ -1806,7 +1806,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1806,7 +1806,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -1828,7 +1828,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1828,7 +1828,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -1852,7 +1852,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1852,7 +1852,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -1873,7 +1873,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1873,7 +1873,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -1885,7 +1885,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1885,7 +1885,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
// create a unique name
// create a unique name
if
(
aUniqueName
.
Len
()
==
0
)
if
(
aUniqueName
.
Len
()
==
0
)
{
{
sal_Bool
bFoundExisting
=
sal_F
alse
;
bool
bFoundExisting
=
f
alse
;
sal_Int32
nUserIndex
=
1
;
sal_Int32
nUserIndex
=
1
;
const
ResId
aRes
(
SVX_RES
(
RID_SVXSTR_LINEEND
));
const
ResId
aRes
(
SVX_RES
(
RID_SVXSTR_LINEEND
));
...
@@ -1905,7 +1905,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1905,7 +1905,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
if
(
!
bForceNew
&&
pItem
->
GetLineStartValue
()
==
pLineStartItem
->
GetLineStartValue
()
)
if
(
!
bForceNew
&&
pItem
->
GetLineStartValue
()
==
pLineStartItem
->
GetLineStartValue
()
)
{
{
aUniqueName
=
pItem
->
GetName
();
aUniqueName
=
pItem
->
GetName
();
bFoundExisting
=
sal_T
rue
;
bFoundExisting
=
t
rue
;
break
;
break
;
}
}
...
@@ -1928,7 +1928,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -1928,7 +1928,7 @@ XLineStartItem* XLineStartItem::checkForUniqueItem( SdrModel* pModel ) const
if
(
!
bForceNew
&&
pItem
->
GetLineEndValue
()
==
pLineStartItem
->
GetLineStartValue
()
)
if
(
!
bForceNew
&&
pItem
->
GetLineEndValue
()
==
pLineStartItem
->
GetLineStartValue
()
)
{
{
aUniqueName
=
pItem
->
GetName
();
aUniqueName
=
pItem
->
GetName
();
bFoundExisting
=
sal_T
rue
;
bFoundExisting
=
t
rue
;
break
;
break
;
}
}
...
@@ -2134,7 +2134,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2134,7 +2134,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
}
}
}
}
sal_Bool
bForceNew
=
sal_F
alse
;
bool
bForceNew
=
f
alse
;
// 2. if we have a name check if there is already an item with the
// 2. if we have a name check if there is already an item with the
// same name in the documents pool with a different line end or start
// same name in the documents pool with a different line end or start
...
@@ -2158,7 +2158,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2158,7 +2158,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -2180,7 +2180,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2180,7 +2180,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -2204,7 +2204,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2204,7 +2204,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -2225,7 +2225,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2225,7 +2225,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
{
{
// same name but different value, we need a new name for this item
// same name but different value, we need a new name for this item
aUniqueName
=
String
();
aUniqueName
=
String
();
bForceNew
=
sal_T
rue
;
bForceNew
=
t
rue
;
}
}
break
;
break
;
}
}
...
@@ -2237,7 +2237,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2237,7 +2237,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
// create a unique name
// create a unique name
if
(
aUniqueName
.
Len
()
==
0
)
if
(
aUniqueName
.
Len
()
==
0
)
{
{
sal_Bool
bFoundExisting
=
sal_F
alse
;
bool
bFoundExisting
=
f
alse
;
sal_Int32
nUserIndex
=
1
;
sal_Int32
nUserIndex
=
1
;
const
ResId
aRes
(
SVX_RES
(
RID_SVXSTR_LINEEND
));
const
ResId
aRes
(
SVX_RES
(
RID_SVXSTR_LINEEND
));
...
@@ -2257,7 +2257,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2257,7 +2257,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
if
(
!
bForceNew
&&
pItem
->
GetLineStartValue
()
==
pLineEndItem
->
GetLineEndValue
()
)
if
(
!
bForceNew
&&
pItem
->
GetLineStartValue
()
==
pLineEndItem
->
GetLineEndValue
()
)
{
{
aUniqueName
=
pItem
->
GetName
();
aUniqueName
=
pItem
->
GetName
();
bFoundExisting
=
sal_T
rue
;
bFoundExisting
=
t
rue
;
break
;
break
;
}
}
...
@@ -2280,7 +2280,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
...
@@ -2280,7 +2280,7 @@ XLineEndItem* XLineEndItem::checkForUniqueItem( SdrModel* pModel ) const
if
(
!
bForceNew
&&
pItem
->
GetLineEndValue
()
==
pLineEndItem
->
GetLineEndValue
()
)
if
(
!
bForceNew
&&
pItem
->
GetLineEndValue
()
==
pLineEndItem
->
GetLineEndValue
()
)
{
{
aUniqueName
=
pItem
->
GetName
();
aUniqueName
=
pItem
->
GetName
();
bFoundExisting
=
sal_T
rue
;
bFoundExisting
=
t
rue
;
break
;
break
;
}
}
...
...
svx/source/xoutdev/xattrbmp.cxx
Dosyayı görüntüle @
550546a2
...
@@ -189,7 +189,7 @@ const GraphicObject& XOBitmap::GetGraphicObject() const
...
@@ -189,7 +189,7 @@ const GraphicObject& XOBitmap::GetGraphicObject() const
void
XOBitmap
::
Bitmap2Array
()
void
XOBitmap
::
Bitmap2Array
()
{
{
VirtualDevice
aVD
;
VirtualDevice
aVD
;
sal_Bool
bPixelColor
=
sal_F
alse
;
bool
bPixelColor
=
f
alse
;
const
Bitmap
aBitmap
(
GetBitmap
()
);
const
Bitmap
aBitmap
(
GetBitmap
()
);
const
sal_uInt16
nLines
=
8
;
// von Type abhaengig
const
sal_uInt16
nLines
=
8
;
// von Type abhaengig
...
@@ -214,7 +214,7 @@ void XOBitmap::Bitmap2Array()
...
@@ -214,7 +214,7 @@ void XOBitmap::Bitmap2Array()
if
(
!
bPixelColor
)
if
(
!
bPixelColor
)
{
{
aPixelColor
=
aVD
.
GetPixel
(
Point
(
j
,
i
)
);
aPixelColor
=
aVD
.
GetPixel
(
Point
(
j
,
i
)
);
bPixelColor
=
sal_T
rue
;
bPixelColor
=
t
rue
;
}
}
}
}
}
}
...
...
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