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
87174021
Kaydet (Commit)
87174021
authored
Mar 26, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bullet justification in SvxBulletItem is unused
Change-Id: Ib303c89f84a95eed96cfccfc947c2b4d6919ab95
üst
ce46c98d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
17 deletions
+4
-17
bulitem.cxx
editeng/source/items/bulitem.cxx
+3
-6
bulletitem.hxx
include/editeng/bulletitem.hxx
+1
-11
No files found.
editeng/source/items/bulitem.cxx
Dosyayı görüntüle @
87174021
...
...
@@ -114,7 +114,6 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
,
nStart
(
0
)
,
nStyle
(
SvxBulletStyle
::
ABC_BIG
)
,
nScale
(
0
)
,
nJustify
(
0
)
{
sal_uInt16
nTmp1
;
rStrm
.
ReadUInt16
(
nTmp1
);
...
...
@@ -149,7 +148,8 @@ SvxBulletItem::SvxBulletItem( SvStream& rStrm, sal_uInt16 _nWhich )
sal_Int32
nTmp
(
0
);
rStrm
.
ReadInt32
(
nTmp
);
nWidth
=
nTmp
;
rStrm
.
ReadUInt16
(
nStart
);
rStrm
.
ReadUChar
(
nJustify
);
sal_uInt8
nTmpInt8
(
0
);
rStrm
.
ReadUChar
(
nTmpInt8
);
// used to be nJustify
char
cTmpSymbol
(
0
);
rStrm
.
ReadChar
(
cTmpSymbol
);
...
...
@@ -178,7 +178,6 @@ SvxBulletItem::SvxBulletItem( const SvxBulletItem& rItem) : SfxPoolItem( rItem )
nWidth
=
rItem
.
nWidth
;
nScale
=
rItem
.
nScale
;
cSymbol
=
rItem
.
cSymbol
;
nJustify
=
rItem
.
nJustify
;
nValidMask
=
rItem
.
nValidMask
;
}
...
...
@@ -221,7 +220,6 @@ void SvxBulletItem::SetDefaults_Impl()
nWidth
=
1200
;
// 1.2cm
nStart
=
1
;
nStyle
=
SvxBulletStyle
::
N123
;
nJustify
=
BJ_HLEFT
|
BJ_VCENTER
;
cSymbol
=
' '
;
nScale
=
75
;
}
...
...
@@ -277,7 +275,6 @@ bool SvxBulletItem::operator==( const SfxPoolItem& rItem ) const
if
(
nValidMask
!=
rBullet
.
nValidMask
||
nStyle
!=
rBullet
.
nStyle
||
nScale
!=
rBullet
.
nScale
||
nJustify
!=
rBullet
.
nJustify
||
nWidth
!=
rBullet
.
nWidth
||
nStart
!=
rBullet
.
nStart
||
cSymbol
!=
rBullet
.
cSymbol
||
...
...
@@ -353,7 +350,7 @@ SvStream& SvxBulletItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) c
}
rStrm
.
WriteInt32
(
nWidth
);
rStrm
.
WriteUInt16
(
nStart
);
rStrm
.
WriteUChar
(
nJustify
);
rStrm
.
WriteUChar
(
0
);
// used to be nJustify
rStrm
.
WriteChar
(
OUStringToOString
(
OUString
(
cSymbol
),
aFont
.
GetCharSet
()).
toChar
()
);
rStrm
.
WriteUInt16
(
nScale
);
...
...
include/editeng/bulletitem.hxx
Dosyayı görüntüle @
87174021
...
...
@@ -20,6 +20,7 @@
#define INCLUDED_EDITENG_BULLETITEM_HXX
#include <editeng/editengdllapi.h>
#include <o3tl/typed_flags_set.hxx>
// define ----------------------------------------------------------------
...
...
@@ -37,14 +38,6 @@ enum class SvxBulletStyle
BMP
=
128
};
// Justification
#define BJ_HLEFT 0x01
#define BJ_HRIGHT 0x02
#define BJ_HCENTER 0x04
#define BJ_VTOP 0x08
#define BJ_VBOTTOM 0x10
#define BJ_VCENTER 0x20
// Valid-Bits
// First, only the values that are changed by the dialogue ...
#define VALID_FONTCOLOR 0x0001
...
...
@@ -73,7 +66,6 @@ class EDITENG_DLLPUBLIC SvxBulletItem : public SfxPoolItem
long
nWidth
;
sal_uInt16
nScale
;
sal_Unicode
cSymbol
;
sal_uInt8
nJustify
;
sal_uInt16
nValidMask
;
// Only temporary for GetAttribs / setAttribs,
// because of the large Bullets
...
...
@@ -100,7 +92,6 @@ public:
sal_uInt16
GetStart
()
const
{
return
nStart
;
}
long
GetWidth
()
const
{
return
nWidth
;
}
SvxBulletStyle
GetStyle
()
const
{
return
nStyle
;
}
sal_uInt8
GetJustification
()
const
{
return
nJustify
;
}
vcl
::
Font
GetFont
()
const
{
return
aFont
;
}
sal_uInt16
GetScale
()
const
{
return
nScale
;
}
...
...
@@ -114,7 +105,6 @@ public:
void
SetStart
(
sal_uInt16
nNew
)
{
nStart
=
nNew
;
}
void
SetWidth
(
long
nNew
)
{
nWidth
=
nNew
;
}
void
SetStyle
(
SvxBulletStyle
nNew
)
{
nStyle
=
nNew
;
}
void
SetJustification
(
sal_uInt8
nNew
)
{
nJustify
=
nNew
;
}
void
SetFont
(
const
vcl
::
Font
&
rNew
)
{
aFont
=
rNew
;
}
void
SetScale
(
sal_uInt16
nNew
)
{
nScale
=
nNew
;
}
...
...
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