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
5b12914f
Kaydet (Commit)
5b12914f
authored
Ock 13, 2012
tarafından
August Sodora
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
SvStringsDtor->std::vector
üst
c0d93b26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
10 deletions
+9
-10
swmodule.hxx
sw/inc/swmodule.hxx
+1
-2
swmodul1.cxx
sw/source/ui/app/swmodul1.cxx
+7
-7
swmodule.cxx
sw/source/ui/app/swmodule.cxx
+1
-1
No files found.
sw/inc/swmodule.hxx
Dosyayı görüntüle @
5b12914f
...
@@ -41,7 +41,6 @@
...
@@ -41,7 +41,6 @@
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
#include <com/sun/star/linguistic2/XLanguageGuessing.hpp>
#include <editeng/svxenum.hxx>
#include <editeng/svxenum.hxx>
class
SvStringsDtor
;
class
Color
;
class
Color
;
class
SfxItemSet
;
class
SfxItemSet
;
class
SfxRequest
;
class
SfxRequest
;
...
@@ -107,7 +106,7 @@ class SW_DLLPUBLIC SwModule: public SfxModule, public SfxListener, public utl::C
...
@@ -107,7 +106,7 @@ class SW_DLLPUBLIC SwModule: public SfxModule, public SfxListener, public utl::C
SwView
*
pView
;
SwView
*
pView
;
// List of all Redline-authors.
// List of all Redline-authors.
SvStringsDtor
*
pAuthorNames
;
std
::
vector
<
String
>
*
pAuthorNames
;
// DictionaryList listener to trigger spellchecking or hyphenation
// DictionaryList listener to trigger spellchecking or hyphenation
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
uno
::
Reference
<
...
...
sw/source/ui/app/swmodul1.cxx
Dosyayı görüntüle @
5b12914f
...
@@ -434,23 +434,23 @@ void SwModule::SetRedlineAuthor(const String &rAuthor)
...
@@ -434,23 +434,23 @@ void SwModule::SetRedlineAuthor(const String &rAuthor)
const
String
&
SwModule
::
GetRedlineAuthor
(
sal_uInt16
nPos
)
const
String
&
SwModule
::
GetRedlineAuthor
(
sal_uInt16
nPos
)
{
{
OSL_ENSURE
(
nPos
<
pAuthorNames
->
Count
(),
"author not found!"
);
//#i45342# RTF doc with no author table caused reader to crash
OSL_ENSURE
(
nPos
<
pAuthorNames
->
size
(),
"author not found!"
);
//#i45342# RTF doc with no author table caused reader to crash
while
(
!
(
nPos
<
pAuthorNames
->
Count
()))
while
(
!
(
nPos
<
pAuthorNames
->
size
()))
{
{
InsertRedlineAuthor
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"nn"
)));
InsertRedlineAuthor
(
String
(
RTL_CONSTASCII_USTRINGPARAM
(
"nn"
)));
};
};
return
*
pAuthorNames
->
GetObject
(
nPos
)
;
return
(
*
pAuthorNames
)[
nPos
]
;
}
}
sal_uInt16
SwModule
::
InsertRedlineAuthor
(
const
String
&
rAuthor
)
sal_uInt16
SwModule
::
InsertRedlineAuthor
(
const
String
&
rAuthor
)
{
{
sal_uInt16
nPos
=
0
;
sal_uInt16
nPos
=
0
;
while
(
nPos
<
pAuthorNames
->
Count
()
&&
*
pAuthorNames
->
GetObject
(
nPos
)
!=
rAuthor
)
while
(
nPos
<
pAuthorNames
->
size
()
&&
(
*
pAuthorNames
)[
nPos
]
!=
rAuthor
)
nPos
++
;
++
nPos
;
if
(
nPos
==
pAuthorNames
->
Count
())
if
(
nPos
==
pAuthorNames
->
size
())
pAuthorNames
->
Insert
(
new
String
(
rAuthor
),
nPos
);
pAuthorNames
->
push_back
(
rAuthor
);
return
nPos
;
return
nPos
;
}
}
...
...
sw/source/ui/app/swmodule.cxx
Dosyayı görüntüle @
5b12914f
...
@@ -200,7 +200,7 @@ SwModule::SwModule( SfxObjectFactory* pWebFact,
...
@@ -200,7 +200,7 @@ SwModule::SwModule( SfxObjectFactory* pWebFact,
pStdFontConfig
=
new
SwStdFontConfig
;
pStdFontConfig
=
new
SwStdFontConfig
;
pAuthorNames
=
new
SvStringsDtor
(
5
,
1
)
;
// All Redlining-Authors
pAuthorNames
=
new
std
::
vector
<
String
>
;
// All Redlining-Authors
// replace SvxAutocorrect with SwAutocorrect
// replace SvxAutocorrect with SwAutocorrect
SvxAutoCorrCfg
&
rACfg
=
SvxAutoCorrCfg
::
Get
();
SvxAutoCorrCfg
&
rACfg
=
SvxAutoCorrCfg
::
Get
();
...
...
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