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
2b17ec21
Kaydet (Commit)
2b17ec21
authored
Ara 03, 2015
tarafından
Noel Grandin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
uno:Sequence->std::vector in SmartTagMgr
Change-Id: I163f7d6c0f30ac2929df1cae202e695d21bb49fc
üst
e6721d2d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
21 deletions
+14
-21
SmartTagMgr.hxx
include/svx/SmartTagMgr.hxx
+1
-1
SmartTagMgr.cxx
svx/source/smarttags/SmartTagMgr.cxx
+4
-4
crsrsh.hxx
sw/inc/crsrsh.hxx
+1
-1
crsrsh.cxx
sw/source/core/crsr/crsrsh.cxx
+6
-13
textsh1.cxx
sw/source/uibase/shells/textsh1.cxx
+2
-2
No files found.
include/svx/SmartTagMgr.hxx
Dosyayı görüntüle @
2b17ec21
...
...
@@ -172,7 +172,7 @@ public:
@param rActionIndicesSequence
Output parameter
*/
void
GetActionSequences
(
css
::
uno
::
Sequence
<
OUString
>&
rSmartTagTypes
,
void
GetActionSequences
(
std
::
vector
<
OUString
>&
rSmartTagTypes
,
css
::
uno
::
Sequence
<
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
smarttags
::
XSmartTagAction
>
>
>&
rActionComponentsSequence
,
css
::
uno
::
Sequence
<
css
::
uno
::
Sequence
<
sal_Int32
>
>&
rActionIndicesSequence
)
const
;
...
...
svx/source/smarttags/SmartTagMgr.cxx
Dosyayı görüntüle @
2b17ec21
...
...
@@ -152,14 +152,14 @@ void SmartTagMgr::RecognizeTextRange(const Reference< text::XTextRange>& xRange,
typedef
std
::
multimap
<
OUString
,
ActionReference
>::
const_iterator
SmartTagMapIter
;
void
SmartTagMgr
::
GetActionSequences
(
Sequence
<
OUString
>&
rSmartTagTypes
,
void
SmartTagMgr
::
GetActionSequences
(
std
::
vector
<
OUString
>&
rSmartTagTypes
,
Sequence
<
Sequence
<
Reference
<
smarttags
::
XSmartTagAction
>
>
>&
rActionComponentsSequence
,
Sequence
<
Sequence
<
sal_Int32
>
>&
rActionIndicesSequence
)
const
{
rActionComponentsSequence
.
realloc
(
rSmartTagTypes
.
getLength
()
);
rActionIndicesSequence
.
realloc
(
rSmartTagTypes
.
getLength
()
);
rActionComponentsSequence
.
realloc
(
rSmartTagTypes
.
size
()
);
rActionIndicesSequence
.
realloc
(
rSmartTagTypes
.
size
()
);
for
(
s
al_Int32
j
=
0
;
j
<
rSmartTagTypes
.
getLength
();
++
j
)
for
(
s
ize_t
j
=
0
;
j
<
rSmartTagTypes
.
size
();
++
j
)
{
const
OUString
&
rSmartTagType
=
rSmartTagTypes
[
j
];
...
...
sw/inc/crsrsh.hxx
Dosyayı görüntüle @
2b17ec21
...
...
@@ -772,7 +772,7 @@ public:
void
GetSmartTagRect
(
const
Point
&
rPt
,
SwRect
&
rSelectRect
);
// get smart tags at current cursor position
void
GetSmartTagTerm
(
css
::
uno
::
Sequence
<
OUString
>&
rSmartTagTypes
,
void
GetSmartTagTerm
(
std
::
vector
<
OUString
>&
rSmartTagTypes
,
css
::
uno
::
Sequence
<
css
::
uno
::
Reference
<
css
::
container
::
XStringKeyMap
>
>&
rStringKeyMaps
,
css
::
uno
::
Reference
<
css
::
text
::
XTextRange
>&
rRange
)
const
;
...
...
sw/source/core/crsr/crsrsh.cxx
Dosyayı görüntüle @
2b17ec21
...
...
@@ -3365,12 +3365,11 @@ void SwCursorShell::dumpAsXml(xmlTextWriterPtr pWriter) const
xmlTextWriterEndElement
(
pWriter
);
}
static
void
lcl_FillRecognizerData
(
uno
::
Sequence
<
OUString
>&
rSmartTagTypes
,
static
void
lcl_FillRecognizerData
(
std
::
vector
<
OUString
>&
rSmartTagTypes
,
uno
::
Sequence
<
uno
::
Reference
<
container
::
XStringKeyMap
>
>&
rStringKeyMaps
,
const
SwWrongList
&
rSmartTagList
,
sal_Int32
nCurrent
)
{
// Insert smart tag information
std
::
vector
<
OUString
>
aSmartTagTypes
;
std
::
vector
<
uno
::
Reference
<
container
::
XStringKeyMap
>
>
aStringKeyMaps
;
for
(
sal_uInt16
i
=
0
;
i
<
rSmartTagList
.
Count
();
++
i
)
...
...
@@ -3383,24 +3382,18 @@ static void lcl_FillRecognizerData( uno::Sequence< OUString >& rSmartTagTypes,
const
SwWrongArea
*
pArea
=
rSmartTagList
.
GetElement
(
i
);
if
(
pArea
)
{
a
SmartTagTypes
.
push_back
(
pArea
->
maType
);
r
SmartTagTypes
.
push_back
(
pArea
->
maType
);
aStringKeyMaps
.
push_back
(
pArea
->
mxPropertyBag
);
}
}
}
if
(
!
a
SmartTagTypes
.
empty
()
)
if
(
!
r
SmartTagTypes
.
empty
()
)
{
rSmartTagTypes
.
realloc
(
aSmartTagTypes
.
size
()
);
rStringKeyMaps
.
realloc
(
aSmartTagTypes
.
size
()
);
std
::
vector
<
OUString
>::
const_iterator
aTypesIter
=
aSmartTagTypes
.
begin
();
sal_uInt16
i
=
0
;
for
(
aTypesIter
=
aSmartTagTypes
.
begin
();
aTypesIter
!=
aSmartTagTypes
.
end
();
++
aTypesIter
)
rSmartTagTypes
[
i
++
]
=
*
aTypesIter
;
rStringKeyMaps
.
realloc
(
rSmartTagTypes
.
size
()
);
std
::
vector
<
uno
::
Reference
<
container
::
XStringKeyMap
>
>::
const_iterator
aMapsIter
=
aStringKeyMaps
.
begin
();
i
=
0
;
sal_uInt16
i
=
0
;
for
(
aMapsIter
=
aStringKeyMaps
.
begin
();
aMapsIter
!=
aStringKeyMaps
.
end
();
++
aMapsIter
)
rStringKeyMaps
[
i
++
]
=
*
aMapsIter
;
}
...
...
@@ -3423,7 +3416,7 @@ static void lcl_FillTextRange( uno::Reference<text::XTextRange>& rRange,
rRange
=
xRange
;
}
void
SwCursorShell
::
GetSmartTagTerm
(
uno
::
Sequence
<
OUString
>&
rSmartTagTypes
,
void
SwCursorShell
::
GetSmartTagTerm
(
std
::
vector
<
OUString
>&
rSmartTagTypes
,
uno
::
Sequence
<
uno
::
Reference
<
container
::
XStringKeyMap
>
>&
rStringKeyMaps
,
uno
::
Reference
<
text
::
XTextRange
>&
rRange
)
const
{
...
...
sw/source/uibase/shells/textsh1.cxx
Dosyayı görüntüle @
2b17ec21
...
...
@@ -1780,13 +1780,13 @@ void SwTextShell::GetState( SfxItemSet &rSet )
break
;
case
SID_OPEN_SMARTTAGMENU
:
{
uno
::
Sequence
<
OUString
>
aSmartTagTypes
;
std
::
vector
<
OUString
>
aSmartTagTypes
;
uno
::
Sequence
<
uno
::
Reference
<
container
::
XStringKeyMap
>
>
aStringKeyMaps
;
uno
::
Reference
<
text
::
XTextRange
>
xRange
;
rSh
.
GetSmartTagTerm
(
aSmartTagTypes
,
aStringKeyMaps
,
xRange
);
if
(
xRange
.
is
()
&&
aSmartTagTypes
.
getLength
()
)
if
(
xRange
.
is
()
&&
!
aSmartTagTypes
.
empty
()
)
{
uno
::
Sequence
<
uno
::
Sequence
<
uno
::
Reference
<
smarttags
::
XSmartTagAction
>
>
>
aActionComponentsSequence
;
uno
::
Sequence
<
uno
::
Sequence
<
sal_Int32
>
>
aActionIndicesSequence
;
...
...
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