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
9dc652ec
Kaydet (Commit)
9dc652ec
authored
May 16, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
May 24, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(SwGetINetAttrs) to boost::ptr_vector
Change-Id: Iad3903162219e1b015c1266592e5ea742fa967d2
üst
cf0e08c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
editsh.hxx
sw/inc/editsh.hxx
+2
-1
editsh.cxx
sw/source/core/edit/editsh.cxx
+3
-6
EnhancedPDFExportHelper.cxx
sw/source/core/text/EnhancedPDFExportHelper.cxx
+1
-1
content.cxx
sw/source/ui/utlui/content.cxx
+2
-2
No files found.
sw/inc/editsh.hxx
Dosyayı görüntüle @
9dc652ec
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
#include <set>
#include <set>
#include <swundo.hxx>
#include <swundo.hxx>
#include <svtools/embedhlp.hxx>
#include <svtools/embedhlp.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
class
PolyPolygon
;
class
PolyPolygon
;
class
SwDoc
;
class
SwDoc
;
...
@@ -139,7 +140,7 @@ struct SwGetINetAttr
...
@@ -139,7 +140,7 @@ struct SwGetINetAttr
:
sText
(
rTxt
),
rINetAttr
(
rAttr
)
:
sText
(
rTxt
),
rINetAttr
(
rAttr
)
{}
{}
};
};
SV_DECL_PTRARR_DEL
(
SwGetINetAttrs
,
SwGetINetAttr
*
,
0
)
typedef
boost
::
ptr_vector
<
SwGetINetAttr
>
SwGetINetAttrs
;
// Types of forms of content.
// Types of forms of content.
#define CNT_TXT 0x0001
#define CNT_TXT 0x0001
...
...
sw/source/core/edit/editsh.cxx
Dosyayı görüntüle @
9dc652ec
...
@@ -71,8 +71,6 @@
...
@@ -71,8 +71,6 @@
using
namespace
com
::
sun
::
star
;
using
namespace
com
::
sun
::
star
;
SV_IMPL_PTRARR
(
SwGetINetAttrs
,
SwGetINetAttr
*
)
/******************************************************************************
/******************************************************************************
* void SwEditShell::Insert(char c)
* void SwEditShell::Insert(char c)
******************************************************************************/
******************************************************************************/
...
@@ -772,8 +770,7 @@ sal_Bool SwEditShell::InsertURL( const SwFmtINetFmt& rFmt, const String& rStr, s
...
@@ -772,8 +770,7 @@ sal_Bool SwEditShell::InsertURL( const SwFmtINetFmt& rFmt, const String& rStr, s
sal_uInt16
SwEditShell
::
GetINetAttrs
(
SwGetINetAttrs
&
rArr
)
sal_uInt16
SwEditShell
::
GetINetAttrs
(
SwGetINetAttrs
&
rArr
)
{
{
if
(
rArr
.
Count
()
)
rArr
.
clear
();
rArr
.
DeleteAndDestroy
(
0
,
rArr
.
Count
()
);
const
SwTxtNode
*
pTxtNd
;
const
SwTxtNode
*
pTxtNd
;
const
SwCharFmts
*
pFmts
=
GetDoc
()
->
GetCharFmts
();
const
SwCharFmts
*
pFmts
=
GetDoc
()
->
GetCharFmts
();
...
@@ -795,12 +792,12 @@ sal_uInt16 SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr )
...
@@ -795,12 +792,12 @@ sal_uInt16 SwEditShell::GetINetAttrs( SwGetINetAttrs& rArr )
if
(
sTxt
.
Len
()
)
if
(
sTxt
.
Len
()
)
{
{
SwGetINetAttr
*
pNew
=
new
SwGetINetAttr
(
sTxt
,
rAttr
);
SwGetINetAttr
*
pNew
=
new
SwGetINetAttr
(
sTxt
,
rAttr
);
rArr
.
C40_INSERT
(
SwGetINetAttr
,
pNew
,
rArr
.
Count
()
);
rArr
.
push_back
(
pNew
);
}
}
}
}
}
}
}
}
return
rArr
.
Count
();
return
rArr
.
size
();
}
}
...
...
sw/source/core/text/EnhancedPDFExportHelper.cxx
Dosyayı görüntüle @
9dc652ec
...
@@ -1665,7 +1665,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
...
@@ -1665,7 +1665,7 @@ void SwEnhancedPDFExportHelper::EnhancedPDFExport()
const
sal_uInt16
nHyperLinkCount
=
mrSh
.
GetINetAttrs
(
aArr
);
const
sal_uInt16
nHyperLinkCount
=
mrSh
.
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nHyperLinkCount
;
++
n
)
for
(
sal_uInt16
n
=
0
;
n
<
nHyperLinkCount
;
++
n
)
{
{
SwGetINetAttr
*
p
=
aArr
[
n
];
SwGetINetAttr
*
p
=
&
aArr
[
n
];
OSL_ENSURE
(
0
!=
p
,
"Enhanced pdf export - SwGetINetAttr is missing"
);
OSL_ENSURE
(
0
!=
p
,
"Enhanced pdf export - SwGetINetAttr is missing"
);
const
SwTxtNode
*
pTNd
=
p
->
rINetAttr
.
GetpTxtNode
();
const
SwTxtNode
*
pTNd
=
p
->
rINetAttr
.
GetpTxtNode
();
...
...
sw/source/ui/utlui/content.cxx
Dosyayı görüntüle @
9dc652ec
...
@@ -366,7 +366,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
...
@@ -366,7 +366,7 @@ void SwContentType::Init(sal_Bool* pbInvalidateWindow)
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
{
{
SwGetINetAttr
*
p
=
aArr
[
n
];
SwGetINetAttr
*
p
=
&
aArr
[
n
];
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
this
,
this
,
p
->
sText
,
p
->
sText
,
...
@@ -675,7 +675,7 @@ void SwContentType::FillMemberList(sal_Bool* pbLevelOrVisibilityChanged)
...
@@ -675,7 +675,7 @@ void SwContentType::FillMemberList(sal_Bool* pbLevelOrVisibilityChanged)
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
nMemberCount
=
pWrtShell
->
GetINetAttrs
(
aArr
);
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
for
(
sal_uInt16
n
=
0
;
n
<
nMemberCount
;
++
n
)
{
{
SwGetINetAttr
*
p
=
aArr
[
n
];
SwGetINetAttr
*
p
=
&
aArr
[
n
];
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
SwURLFieldContent
*
pCnt
=
new
SwURLFieldContent
(
this
,
this
,
p
->
sText
,
p
->
sText
,
...
...
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