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
6fcb52aa
Kaydet (Commit)
6fcb52aa
authored
Nis 07, 2015
tarafından
Matteo Casalin
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Group common code
Change-Id: I9ad05054d40b283042b9775333f8e103668ae7a6
üst
6106d7a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
34 deletions
+27
-34
content.cxx
sw/source/uibase/utlui/content.cxx
+27
-34
No files found.
sw/source/uibase/utlui/content.cxx
Dosyayı görüntüle @
6fcb52aa
...
@@ -146,6 +146,30 @@ namespace
...
@@ -146,6 +146,30 @@ namespace
{
{
return
IDocumentMarkAccess
::
GetType
(
*
rpMark
)
==
IDocumentMarkAccess
::
MarkType
::
BOOKMARK
;
return
IDocumentMarkAccess
::
GetType
(
*
rpMark
)
==
IDocumentMarkAccess
::
MarkType
::
BOOKMARK
;
}
}
sal_uInt16
lcl_InsertURLFieldContent
(
SwContentArr
*
pMember
,
SwWrtShell
*
pWrtShell
,
const
SwContentType
*
pCntType
)
{
SwGetINetAttrs
aArr
;
const
sal_uInt16
nCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nCount
;
++
n
)
{
SwGetINetAttr
*
p
=
&
aArr
[
n
];
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
pCntType
,
p
->
sText
,
INetURLObject
::
decode
(
p
->
rINetAttr
.
GetINetFmt
().
GetValue
(),
INetURLObject
::
DECODE_UNAMBIGUOUS
,
RTL_TEXTENCODING_UTF8
),
&
p
->
rINetAttr
,
n
);
pMember
->
insert
(
pCnt
);
}
return
nCount
;
}
}
}
// Content, contains names and reference at the content type.
// Content, contains names and reference at the content type.
...
@@ -354,22 +378,8 @@ void SwContentType::Init(bool* pbInvalidateWindow)
...
@@ -354,22 +378,8 @@ void SwContentType::Init(bool* pbInvalidateWindow)
else
if
(
!
pMember
->
empty
())
else
if
(
!
pMember
->
empty
())
pMember
->
DeleteAndDestroyAll
();
pMember
->
DeleteAndDestroyAll
();
SwGetINetAttrs
aArr
;
nMemberCount
=
lcl_InsertURLFieldContent
(
pMember
,
pWrtShell
,
this
);
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
{
SwGetINetAttr
*
p
=
&
aArr
[
n
];
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
this
,
p
->
sText
,
INetURLObject
::
decode
(
p
->
rINetAttr
.
GetINetFmt
().
GetValue
(),
INetURLObject
::
DECODE_UNAMBIGUOUS
,
RTL_TEXTENCODING_UTF8
),
&
p
->
rINetAttr
,
n
);
pMember
->
insert
(
pCnt
);
}
bEdit
=
true
;
bEdit
=
true
;
nOldMemberCount
=
nMemberCount
;
nOldMemberCount
=
nMemberCount
;
bDelete
=
false
;
bDelete
=
false
;
...
@@ -657,24 +667,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
...
@@ -657,24 +667,7 @@ void SwContentType::FillMemberList(bool* pbLevelOrVisibilityChanged)
}
}
break
;
break
;
case
CONTENT_TYPE_URLFIELD
:
case
CONTENT_TYPE_URLFIELD
:
{
nMemberCount
=
lcl_InsertURLFieldContent
(
pMember
,
pWrtShell
,
this
);
SwGetINetAttrs
aArr
;
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
{
SwGetINetAttr
*
p
=
&
aArr
[
n
];
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
this
,
p
->
sText
,
INetURLObject
::
decode
(
p
->
rINetAttr
.
GetINetFmt
().
GetValue
(),
INetURLObject
::
DECODE_UNAMBIGUOUS
,
RTL_TEXTENCODING_UTF8
),
&
p
->
rINetAttr
,
n
);
pMember
->
insert
(
pCnt
);
}
}
break
;
break
;
case
CONTENT_TYPE_INDEX
:
case
CONTENT_TYPE_INDEX
:
{
{
...
...
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