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
ccea3b67
Kaydet (Commit)
ccea3b67
authored
Mar 26, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
the valid flags in SvxBulletItem are unused
Change-Id: Ifd06179e42edc916002e8b0feaabd888852f1aa6
üst
87174021
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
61 deletions
+17
-61
bulitem.cxx
editeng/source/items/bulitem.cxx
+12
-29
bulletitem.hxx
include/editeng/bulletitem.hxx
+5
-32
No files found.
editeng/source/items/bulitem.cxx
Dosyayı görüntüle @
ccea3b67
...
...
@@ -105,7 +105,6 @@ SvxBulletItem::SvxBulletItem( sal_uInt16 _nWhich ) : SfxPoolItem( _nWhich )
{
SetDefaultFont_Impl
();
SetDefaults_Impl
();
nValidMask
=
0xFFFF
;
}
SvxBulletItem
::
SvxBulletItem
(
SvStream
&
rStrm
,
sal_uInt16
_nWhich
)
...
...
@@ -163,8 +162,6 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
// UNICODE: rStrm >> aFollowText;
aFollowText
=
rStrm
.
ReadUniOrByteString
(
rStrm
.
GetStreamCharSet
());
nValidMask
=
0xFFFF
;
}
SvxBulletItem
::
SvxBulletItem
(
const
SvxBulletItem
&
rItem
)
:
SfxPoolItem
(
rItem
)
...
...
@@ -178,7 +175,6 @@ SvxBulletItem::SvxBulletItem( const SvxBulletItem& rItem) : SfxPoolItem( rItem )
nWidth
=
rItem
.
nWidth
;
nScale
=
rItem
.
nScale
;
cSymbol
=
rItem
.
cSymbol
;
nValidMask
=
rItem
.
nValidMask
;
}
...
...
@@ -237,29 +233,17 @@ void SvxBulletItem::CopyValidProperties( const SvxBulletItem& rCopyFrom )
{
vcl
::
Font
_aFont
=
GetFont
();
vcl
::
Font
aNewFont
=
rCopyFrom
.
GetFont
();
if
(
rCopyFrom
.
IsValid
(
VALID_FONTNAME
)
)
{
_aFont
.
SetName
(
aNewFont
.
GetName
()
);
_aFont
.
SetFamily
(
aNewFont
.
GetFamily
()
);
_aFont
.
SetStyleName
(
aNewFont
.
GetStyleName
()
);
}
if
(
rCopyFrom
.
IsValid
(
VALID_FONTCOLOR
)
)
_aFont
.
SetColor
(
aNewFont
.
GetColor
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_SYMBOL
)
)
SetSymbol
(
rCopyFrom
.
GetSymbol
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_BITMAP
)
)
SetGraphicObject
(
rCopyFrom
.
GetGraphicObject
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_SCALE
)
)
SetScale
(
rCopyFrom
.
GetScale
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_START
)
)
SetStart
(
rCopyFrom
.
GetStart
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_STYLE
)
)
SetStyle
(
rCopyFrom
.
GetStyle
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_PREVTEXT
)
)
SetPrevText
(
rCopyFrom
.
GetPrevText
()
);
if
(
rCopyFrom
.
IsValid
(
VALID_FOLLOWTEXT
)
)
SetFollowText
(
rCopyFrom
.
GetFollowText
()
);
_aFont
.
SetName
(
aNewFont
.
GetName
()
);
_aFont
.
SetFamily
(
aNewFont
.
GetFamily
()
);
_aFont
.
SetStyleName
(
aNewFont
.
GetStyleName
()
);
_aFont
.
SetColor
(
aNewFont
.
GetColor
()
);
SetSymbol
(
rCopyFrom
.
GetSymbol
()
);
SetGraphicObject
(
rCopyFrom
.
GetGraphicObject
()
);
SetScale
(
rCopyFrom
.
GetScale
()
);
SetStart
(
rCopyFrom
.
GetStart
()
);
SetStyle
(
rCopyFrom
.
GetStyle
()
);
SetPrevText
(
rCopyFrom
.
GetPrevText
()
);
SetFollowText
(
rCopyFrom
.
GetFollowText
()
);
SetFont
(
_aFont
);
}
...
...
@@ -272,8 +256,7 @@ bool SvxBulletItem::operator==( const SfxPoolItem& rItem ) const
const
SvxBulletItem
&
rBullet
=
static_cast
<
const
SvxBulletItem
&>
(
rItem
);
// Compare with ValidMask, otherwise no put possible in a AttrSet if the
// item differs only in terms of the ValidMask from an existing one.
if
(
nValidMask
!=
rBullet
.
nValidMask
||
nStyle
!=
rBullet
.
nStyle
||
if
(
nStyle
!=
rBullet
.
nStyle
||
nScale
!=
rBullet
.
nScale
||
nWidth
!=
rBullet
.
nWidth
||
nStart
!=
rBullet
.
nStart
||
...
...
include/editeng/bulletitem.hxx
Dosyayı görüntüle @
ccea3b67
...
...
@@ -20,10 +20,10 @@
#define INCLUDED_EDITENG_BULLETITEM_HXX
#include <editeng/editengdllapi.h>
#include <o3tl/typed_flags_set.hxx>
#include <svl/poolitem.hxx>
#include <svtools/grfmgr.hxx>
#include <vcl/font.hxx>
// define ----------------------------------------------------------------
// Styles
enum
class
SvxBulletStyle
...
...
@@ -38,21 +38,6 @@ enum class SvxBulletStyle
BMP
=
128
};
// Valid-Bits
// First, only the values that are changed by the dialogue ...
#define VALID_FONTCOLOR 0x0001
#define VALID_FONTNAME 0x0002
#define VALID_SYMBOL 0x0004
#define VALID_BITMAP 0x0008
#define VALID_SCALE 0x0010
#define VALID_START 0x0020
#define VALID_STYLE 0x0040
#define VALID_PREVTEXT 0x0080
#define VALID_FOLLOWTEXT 0x0100
#include <svl/poolitem.hxx>
#include <vcl/font.hxx>
#include <svtools/grfmgr.hxx>
// class SvxBulletItem ---------------------------------------------------
class
EDITENG_DLLPUBLIC
SvxBulletItem
:
public
SfxPoolItem
...
...
@@ -66,8 +51,6 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
long
nWidth
;
sal_uInt16
nScale
;
sal_Unicode
cSymbol
;
sal_uInt16
nValidMask
;
// Only temporary for GetAttribs / setAttribs,
// because of the large Bullets
void
SetDefaultFont_Impl
();
void
SetDefaults_Impl
();
...
...
@@ -108,9 +91,9 @@ public:
void
SetFont
(
const
vcl
::
Font
&
rNew
)
{
aFont
=
rNew
;
}
void
SetScale
(
sal_uInt16
nNew
)
{
nScale
=
nNew
;
}
virtual
sal_uInt16
GetVersion
(
sal_uInt16
nFileVersion
)
const
SAL_OVERRIDE
;
virtual
sal_uInt16
GetVersion
(
sal_uInt16
nFileVersion
)
const
SAL_OVERRIDE
;
virtual
bool
operator
==
(
const
SfxPoolItem
&
)
const
SAL_OVERRIDE
;
virtual
bool
GetPresentation
(
SfxItemPresentation
ePres
,
virtual
bool
GetPresentation
(
SfxItemPresentation
ePres
,
SfxMapUnit
eCoreMetric
,
SfxMapUnit
ePresMetric
,
OUString
&
rText
,
const
IntlWrapper
*
=
0
)
const
SAL_OVERRIDE
;
...
...
@@ -118,16 +101,6 @@ public:
static
void
StoreFont
(
SvStream
&
,
const
vcl
::
Font
&
);
static
vcl
::
Font
CreateFont
(
SvStream
&
,
sal_uInt16
nVer
);
sal_uInt16
&
GetValidMask
()
{
return
nValidMask
;
}
sal_uInt16
GetValidMask
()
const
{
return
nValidMask
;
}
sal_uInt16
IsValid
(
sal_uInt16
nFlag
)
const
{
return
nValidMask
&
nFlag
;
}
void
SetValid
(
sal_uInt16
nFlag
,
bool
bValid
)
{
if
(
bValid
)
nValidMask
|=
nFlag
;
else
nValidMask
&=
~
nFlag
;
}
void
CopyValidProperties
(
const
SvxBulletItem
&
rCopyFrom
);
};
...
...
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