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
35c17477
Kaydet (Commit)
35c17477
authored
Nis 03, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Merge EditAttrib into EditCharAttrib.
This separation makes no sense.
üst
58e562e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
37 deletions
+13
-37
editattr.cxx
editeng/source/editeng/editattr.cxx
+7
-14
editattr.hxx
editeng/source/editeng/editattr.hxx
+6
-23
No files found.
editeng/source/editeng/editattr.cxx
Dosyayı görüntüle @
35c17477
...
@@ -58,28 +58,21 @@
...
@@ -58,28 +58,21 @@
DBG_NAME
(
EE_EditAttrib
)
DBG_NAME
(
EE_EditAttrib
)
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// class EditAttrib
// class Edit
Char
Attrib
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
EditAttrib
::
EditAttrib
(
const
SfxPoolItem
&
rAttr
)
EditCharAttrib
::
EditCharAttrib
(
const
SfxPoolItem
&
rAttr
,
sal_uInt16
nS
,
sal_uInt16
nE
)
:
nStart
(
nS
),
nEnd
(
nE
),
bFeature
(
false
),
bEdge
(
false
)
{
{
DBG_CTOR
(
EE_EditAttrib
,
0
);
DBG_CTOR
(
EE_EditAttrib
,
0
);
pItem
=
&
rAttr
;
pItem
=
&
rAttr
;
}
EditAttrib
::~
EditAttrib
()
DBG_ASSERT
(
(
rAttr
.
Which
()
>=
EE_ITEMS_START
)
&&
(
rAttr
.
Which
()
<=
EE_ITEMS_END
),
"EditCharAttrib CTOR: Invalid id!"
);
{
DBG_ASSERT
(
(
rAttr
.
Which
()
<
EE_FEATURE_START
)
||
(
rAttr
.
Which
()
>
EE_FEATURE_END
)
||
(
nE
==
(
nS
+
1
)
),
"EditCharAttrib CTOR: Invalid feature!"
);
DBG_DTOR
(
EE_EditAttrib
,
0
);
}
}
// -------------------------------------------------------------------------
EditCharAttrib
::~
EditCharAttrib
()
// class EditCharAttrib
// -------------------------------------------------------------------------
EditCharAttrib
::
EditCharAttrib
(
const
SfxPoolItem
&
rAttr
,
sal_uInt16
nS
,
sal_uInt16
nE
)
:
EditAttrib
(
rAttr
),
nStart
(
nS
),
nEnd
(
nE
),
bFeature
(
false
),
bEdge
(
false
)
{
{
DBG_ASSERT
(
(
rAttr
.
Which
()
>=
EE_ITEMS_START
)
&&
(
rAttr
.
Which
()
<=
EE_ITEMS_END
),
"EditCharAttrib CTOR: Invalid id!"
);
DBG_DTOR
(
EE_EditAttrib
,
0
);
DBG_ASSERT
(
(
rAttr
.
Which
()
<
EE_FEATURE_START
)
||
(
rAttr
.
Which
()
>
EE_FEATURE_END
)
||
(
nE
==
(
nS
+
1
)
),
"EditCharAttrib CTOR: Invalid feature!"
);
}
}
void
EditCharAttrib
::
SetFont
(
SvxFont
&
,
OutputDevice
*
)
void
EditCharAttrib
::
SetFont
(
SvxFont
&
,
OutputDevice
*
)
...
...
editeng/source/editeng/editattr.hxx
Dosyayı görüntüle @
35c17477
...
@@ -65,36 +65,15 @@ class SfxVoidItem;
...
@@ -65,36 +65,15 @@ class SfxVoidItem;
// => To determine the DefMetric simply use GetMetric(0)
// => To determine the DefMetric simply use GetMetric(0)
#define DEF_METRIC 0
#define DEF_METRIC 0
// -------------------------------------------------------------------------
// class EditAttrib
// -------------------------------------------------------------------------
class
EditAttrib
:
private
boost
::
noncopyable
{
private
:
EditAttrib
();
protected
:
const
SfxPoolItem
*
pItem
;
EditAttrib
(
const
SfxPoolItem
&
rAttr
);
virtual
~
EditAttrib
();
public
:
// RemoveFromPool must always be called before the destructor!!
void
RemoveFromPool
(
SfxItemPool
&
rPool
);
sal_uInt16
Which
()
const
{
return
pItem
->
Which
();
}
const
SfxPoolItem
*
GetItem
()
const
{
return
pItem
;
}
};
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// class EditCharAttrib
// class EditCharAttrib
// -------------------------------------------------------------------------
// -------------------------------------------------------------------------
// bFeature: Attribute must not expand/shrink, length is always 1
// bFeature: Attribute must not expand/shrink, length is always 1
// bEdge: Attribute will not expand, if you want to expand just on the edge
// bEdge: Attribute will not expand, if you want to expand just on the edge
class
EditCharAttrib
:
p
ublic
EditAttrib
class
EditCharAttrib
:
p
rivate
boost
::
noncopyable
{
{
protected
:
protected
:
const
SfxPoolItem
*
pItem
;
sal_uInt16
nStart
;
sal_uInt16
nStart
;
sal_uInt16
nEnd
;
sal_uInt16
nEnd
;
...
@@ -103,6 +82,10 @@ protected:
...
@@ -103,6 +82,10 @@ protected:
public
:
public
:
EditCharAttrib
(
const
SfxPoolItem
&
rAttr
,
sal_uInt16
nStart
,
sal_uInt16
nEnd
);
EditCharAttrib
(
const
SfxPoolItem
&
rAttr
,
sal_uInt16
nStart
,
sal_uInt16
nEnd
);
virtual
~
EditCharAttrib
();
sal_uInt16
Which
()
const
{
return
pItem
->
Which
();
}
const
SfxPoolItem
*
GetItem
()
const
{
return
pItem
;
}
sal_uInt16
&
GetStart
()
{
return
nStart
;
}
sal_uInt16
&
GetStart
()
{
return
nStart
;
}
sal_uInt16
&
GetEnd
()
{
return
nEnd
;
}
sal_uInt16
&
GetEnd
()
{
return
nEnd
;
}
...
...
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