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
a57300a5
Kaydet (Commit)
a57300a5
authored
Kas 21, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
make this just every so slightly less awful
Change-Id: Iddc39359d426f345eff0abf9fc9616e19597a0a4
üst
16982944
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
editobj.cxx
editeng/source/editeng/editobj.cxx
+7
-7
editobj2.hxx
editeng/source/editeng/editobj2.hxx
+4
-3
impedit4.cxx
editeng/source/editeng/impedit4.cxx
+2
-2
No files found.
editeng/source/editeng/editobj.cxx
Dosyayı görüntüle @
a57300a5
...
...
@@ -1027,8 +1027,8 @@ void EditTextObjectImpl::SetStyleSheet(sal_Int32 nPara, const OUString& rName, c
return
;
ContentInfo
&
rC
=
*
aContents
[
nPara
].
get
();
rC
.
GetStyle
()
=
rName
;
rC
.
GetFamily
()
=
rFamily
;
rC
.
SetStyle
(
rName
)
;
rC
.
SetFamily
(
rFamily
)
;
}
bool
EditTextObjectImpl
::
ImpChangeStyleSheets
(
...
...
@@ -1045,8 +1045,8 @@ bool EditTextObjectImpl::ImpChangeStyleSheets(
{
if
(
rC
.
GetStyle
()
==
rOldName
)
{
rC
.
GetStyle
()
=
rNewName
;
rC
.
GetFamily
()
=
eNewFamily
;
rC
.
SetStyle
(
rNewName
)
;
rC
.
SetFamily
(
eNewFamily
)
;
bChanges
=
true
;
}
}
...
...
@@ -1307,10 +1307,10 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
pC
->
SetText
(
OStringToOUString
(
aByteString
,
eSrcEncoding
));
// StyleName and Family...
pC
->
GetStyle
()
=
rIStream
.
ReadUniOrByteString
(
eSrcEncoding
);
pC
->
SetStyle
(
rIStream
.
ReadUniOrByteString
(
eSrcEncoding
)
);
sal_uInt16
nStyleFamily
(
0
);
rIStream
.
ReadUInt16
(
nStyleFamily
);
pC
->
GetFamily
()
=
(
SfxStyleFamily
)
nStyleFamily
;
pC
->
SetFamily
((
SfxStyleFamily
)
nStyleFamily
)
;
// Paragraph attributes ...
pC
->
GetParaAttribs
().
Load
(
rIStream
);
...
...
@@ -1530,7 +1530,7 @@ void EditTextObjectImpl::CreateData( SvStream& rIStream )
rtl_uString
*
pStr
=
rtl_uString_alloc
(
nL
);
rIStream
.
ReadBytes
(
pStr
->
buffer
,
nL
*
sizeof
(
sal_Unicode
)
);
rC
.
GetStyle
()
=
OUString
(
pStr
,
SAL_NO_ACQUIRE
);
rC
.
SetStyle
(
OUString
(
pStr
,
SAL_NO_ACQUIRE
)
);
}
}
}
...
...
editeng/source/editeng/editobj2.hxx
Dosyayı görüntüle @
a57300a5
...
...
@@ -142,12 +142,13 @@ public:
XEditAttributesType
&
GetCharAttribs
()
{
return
maCharAttribs
;
}
const
OUString
&
GetStyle
()
const
{
return
aStyle
;
}
const
SfxItemSet
&
GetParaAttribs
()
const
{
return
aParaAttribs
;
}
SfxStyleFamily
GetFamily
()
const
{
return
eFamily
;
}
OUString
&
GetStyle
()
{
return
aStyle
;
}
void
SetStyle
(
const
OUString
&
rStyle
)
{
aStyle
=
rStyle
;
}
void
SetFamily
(
const
SfxStyleFamily
&
rFamily
)
{
eFamily
=
rFamily
;
}
const
SfxItemSet
&
GetParaAttribs
()
const
{
return
aParaAttribs
;
}
SfxItemSet
&
GetParaAttribs
()
{
return
aParaAttribs
;
}
SfxStyleFamily
&
GetFamily
()
{
return
eFamily
;
}
const
WrongList
*
GetWrongList
()
const
;
void
SetWrongList
(
WrongList
*
p
);
...
...
editeng/source/editeng/impedit4.cxx
Dosyayı görüntüle @
a57300a5
...
...
@@ -1078,8 +1078,8 @@ EditTextObject* ImpEditEngine::CreateTextObject( EditSelection aSel, SfxItemPool
// The StyleSheet...
if
(
pNode
->
GetStyleSheet
()
)
{
pC
->
GetStyle
()
=
pNode
->
GetStyleSheet
()
->
GetName
(
);
pC
->
GetFamily
()
=
pNode
->
GetStyleSheet
()
->
GetFamily
(
);
pC
->
SetStyle
(
pNode
->
GetStyleSheet
()
->
GetName
()
);
pC
->
SetFamily
(
pNode
->
GetStyleSheet
()
->
GetFamily
()
);
}
// The Text...
...
...
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