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
12198134
Kaydet (Commit)
12198134
authored
Nis 25, 2012
tarafından
Noel Grandin
Kaydeden (comit)
Michael Stahl
Nis 25, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert SV_DECL_PTRARR_DEL(_DB_Columns) to boost::ptr_vector
üst
11d40e46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
dbinsdlg.cxx
sw/source/ui/dbui/dbinsdlg.cxx
+7
-10
dbinsdlg.hxx
sw/source/ui/inc/dbinsdlg.hxx
+3
-1
No files found.
sw/source/ui/dbui/dbinsdlg.cxx
Dosyayı görüntüle @
12198134
...
...
@@ -176,9 +176,6 @@ struct _DB_Column
};
typedef
_DB_Column
*
_DB_ColumnPtr
;
SV_DECL_PTRARR_DEL
(
_DB_Columns
,
_DB_ColumnPtr
,
32
)
SV_IMPL_PTRARR
(
_DB_Columns
,
_DB_ColumnPtr
)
SV_IMPL_OP_PTRARR_SORT
(
SwInsDBColumns
,
SwInsDBColumnPtr
)
...
...
@@ -885,16 +882,16 @@ static void lcl_InsTextInArr( const String& rTxt, _DB_Columns& rColArr )
if
(
1
<
nFndPos
)
{
pNew
=
new
_DB_Column
(
rTxt
.
Copy
(
nSttPos
,
nFndPos
-
1
)
);
rColArr
.
Insert
(
pNew
,
rColArr
.
Count
()
);
rColArr
.
push_back
(
pNew
);
}
pNew
=
new
_DB_Column
;
rColArr
.
Insert
(
pNew
,
rColArr
.
Count
()
);
rColArr
.
push_back
(
pNew
);
nSttPos
=
nFndPos
+
1
;
}
if
(
nSttPos
<
rTxt
.
Len
()
)
{
pNew
=
new
_DB_Column
(
rTxt
.
Copy
(
nSttPos
)
);
rColArr
.
Insert
(
pNew
,
rColArr
.
Count
()
);
rColArr
.
push_back
(
pNew
);
}
}
...
...
@@ -961,7 +958,7 @@ sal_Bool SwInsertDBColAutoPilot::SplitTextToColArr( const String& rTxt,
else
pNew
=
new
_DB_Column
(
rFndCol
,
nFormat
);
rColArr
.
Insert
(
pNew
,
rColArr
.
Count
()
);
rColArr
.
push_back
(
pNew
);
}
}
}
...
...
@@ -970,7 +967,7 @@ sal_Bool SwInsertDBColAutoPilot::SplitTextToColArr( const String& rTxt,
if
(
sTxt
.
Len
()
)
::
lcl_InsTextInArr
(
sTxt
,
rColArr
);
return
0
!=
rColArr
.
Count
();
return
!
rColArr
.
empty
();
}
void
SwInsertDBColAutoPilot
::
DataToDoc
(
const
Sequence
<
Any
>&
rSelection
,
...
...
@@ -1275,7 +1272,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
sal_Bool
bSetCrsr
=
sal_True
;
sal_uInt16
n
=
0
,
nCols
=
aColArr
.
Count
();
sal_uInt16
n
=
0
,
nCols
=
aColArr
.
size
();
::
sw
::
mark
::
IMark
*
pMark
=
NULL
;
for
(
sal_Int32
i
=
0
;
;
++
i
)
{
...
...
@@ -1302,7 +1299,7 @@ void SwInsertDBColAutoPilot::DataToDoc( const Sequence<Any>& rSelection,
for
(
n
=
0
;
n
<
nCols
;
++
n
)
{
_DB_Column
*
pDBCol
=
aColArr
[
n
];
_DB_Column
*
pDBCol
=
&
aColArr
[
n
];
String
sIns
;
switch
(
pDBCol
->
eColType
)
{
...
...
sw/source/ui/inc/dbinsdlg.hxx
Dosyayı görüntüle @
12198134
...
...
@@ -43,6 +43,7 @@
#include <swdbdata.hxx>
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/uno/Sequence.h>
#include <boost/ptr_container/ptr_vector.hpp>
namespace
com
{
namespace
sun
{
namespace
star
{
namespace
sdbcx
{
class
XColumnsSupplier
;
...
...
@@ -58,7 +59,8 @@ class SwTableAutoFmt;
class
SwView
;
class
SfxItemSet
;
class
SwTableRep
;
class
_DB_Columns
;
struct
_DB_Column
;
typedef
boost
::
ptr_vector
<
_DB_Column
>
_DB_Columns
;
struct
SwInsDBColumn
{
...
...
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