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
625da1f9
Kaydet (Commit)
625da1f9
authored
Mar 14, 2011
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Resolves: fdo#35282 clear styles as well when using "for all text"
üst
77179252
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
langhelper.cxx
sw/source/ui/shells/langhelper.cxx
+21
-0
No files found.
sw/source/ui/shells/langhelper.cxx
Dosyayı görüntüle @
625da1f9
...
...
@@ -34,6 +34,9 @@
#include <vcl/window.hxx>
#include <wrtsh.hxx>
#include <doc.hxx>
#include <docary.hxx>
#include <charfmt.hxx>
#include <sfx2/bindings.hxx>
#include <sfx2/dispatch.hxx>
...
...
@@ -299,8 +302,26 @@ namespace SwLangHelper
case
EE_CHAR_LANGUAGE_CJK
:
nLangWhichId
=
RES_CHRATR_CJK_LANGUAGE
;
break
;
case
EE_CHAR_LANGUAGE_CTL
:
nLangWhichId
=
RES_CHRATR_CTL_LANGUAGE
;
break
;
}
//Set the default document language
rWrtSh
.
SetDefault
(
SvxLanguageItem
(
nLang
,
nLangWhichId
)
);
//Resolves: fdo#35282 Clear the language from all Text Styles, and
//fallback to default document language
const
SwTxtFmtColls
*
pColls
=
rWrtSh
.
GetDoc
()
->
GetTxtFmtColls
();
for
(
sal_uInt16
i
=
0
,
nCount
=
pColls
->
Count
();
i
<
nCount
;
++
i
)
{
SwTxtFmtColl
&
rTxtColl
=
*
pColls
->
GetObject
(
i
);
rTxtColl
.
ResetFmtAttr
(
nLangWhichId
);
}
//Resolves: fdo#35282 Clear the language from all Character Styles,
//and fallback to default document language
const
SwCharFmts
*
pCharFmts
=
rWrtSh
.
GetDoc
()
->
GetCharFmts
();
for
(
sal_uInt16
i
=
0
,
nCount
=
pCharFmts
->
Count
();
i
<
nCount
;
++
i
)
{
SwCharFmt
&
rCharFmt
=
*
pCharFmts
->
GetObject
(
i
);
rCharFmt
.
ResetFmtAttr
(
nLangWhichId
);
}
// set respective language attribute in text document to default
// (for all text in the document - which should be selected by now...)
SvUShortsSort
aAttribs
;
...
...
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