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
48abb149
Kaydet (Commit)
48abb149
authored
Nis 02, 2012
tarafından
Kohei Yoshida
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Boolean cleanup.
üst
a41ea233
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
16 deletions
+17
-16
editdoc.cxx
editeng/source/editeng/editdoc.cxx
+7
-6
editdoc.hxx
editeng/source/editeng/editdoc.hxx
+10
-10
No files found.
editeng/source/editeng/editdoc.cxx
Dosyayı görüntüle @
48abb149
...
...
@@ -1685,22 +1685,23 @@ void ItemList::Insert( const SfxPoolItem* pItem )
}
EditDoc
::
EditDoc
(
SfxItemPool
*
pPool
)
:
nLastCache
(
0
)
EditDoc
::
EditDoc
(
SfxItemPool
*
pPool
)
:
nLastCache
(
0
),
bIsVertical
(
false
),
bIsFixedCellHeight
(
false
),
bOwnerOfPool
(
pPool
?
false
:
true
),
bModified
(
false
)
{
if
(
pPool
)
{
pItemPool
=
pPool
;
bOwnerOfPool
=
sal_False
;
}
else
{
pItemPool
=
new
EditEngineItemPool
(
sal_False
);
bOwnerOfPool
=
sal_True
;
}
nDefTab
=
DEFTAB
;
bIsVertical
=
sal_False
;
bIsFixedCellHeight
=
sal_False
;
// Don't create a empty node, Clear() will be called in EditEngine-CTOR
...
...
@@ -2023,7 +2024,7 @@ EditPaM EditDoc::Clear()
return
aPaM
;
}
void
EditDoc
::
SetModified
(
sal_B
ool
b
)
void
EditDoc
::
SetModified
(
b
ool
b
)
{
bModified
=
b
;
if
(
bModified
)
...
...
editeng/source/editeng/editdoc.hxx
Dosyayı görüntüle @
48abb149
...
...
@@ -726,11 +726,11 @@ private:
SvxFont
aDefFont
;
//faster than ever from the pool!!
sal_uInt16
nDefTab
;
sal_Bool
bIsVertical
;
sal_Bool
bIsFixedCellHeight
;
bool
bIsVertical
:
1
;
bool
bIsFixedCellHeight
:
1
;
sal_Bool
bOwnerOfPool
;
sal_Bool
bModified
;
bool
bOwnerOfPool
:
1
;
bool
bModified
:
1
;
protected
:
void
ImplDestroyContents
();
...
...
@@ -739,8 +739,8 @@ public:
EditDoc
(
SfxItemPool
*
pItemPool
);
~
EditDoc
();
sal_B
ool
IsModified
()
const
{
return
bModified
;
}
void
SetModified
(
sal_B
ool
b
);
b
ool
IsModified
()
const
{
return
bModified
;
}
void
SetModified
(
b
ool
b
);
void
SetModifyHdl
(
const
Link
&
rLink
)
{
aModifyHdl
=
rLink
;
}
Link
GetModifyHdl
()
const
{
return
aModifyHdl
;
}
...
...
@@ -751,11 +751,11 @@ public:
void
SetDefTab
(
sal_uInt16
nTab
)
{
nDefTab
=
nTab
?
nTab
:
DEFTAB
;
}
sal_uInt16
GetDefTab
()
const
{
return
nDefTab
;
}
void
SetVertical
(
sal_B
ool
bVertical
)
{
bIsVertical
=
bVertical
;
}
sal_B
ool
IsVertical
()
const
{
return
bIsVertical
;
}
void
SetVertical
(
b
ool
bVertical
)
{
bIsVertical
=
bVertical
;
}
b
ool
IsVertical
()
const
{
return
bIsVertical
;
}
void
SetFixedCellHeight
(
sal_B
ool
bUseFixedCellHeight
)
{
bIsFixedCellHeight
=
bUseFixedCellHeight
;
}
sal_B
ool
IsFixedCellHeight
()
const
{
return
bIsFixedCellHeight
;
}
void
SetFixedCellHeight
(
b
ool
bUseFixedCellHeight
)
{
bIsFixedCellHeight
=
bUseFixedCellHeight
;
}
b
ool
IsFixedCellHeight
()
const
{
return
bIsFixedCellHeight
;
}
EditPaM
Clear
();
EditPaM
RemoveText
();
...
...
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