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
84a0fb09
Kaydet (Commit)
84a0fb09
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(SwSortKeys) to std::vector
Change-Id: I4596da43e75c0b8c91039786c739c017ee16b6f2
üst
bf799459
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
14 deletions
+15
-14
sortopt.hxx
sw/inc/sortopt.hxx
+2
-1
docsort.cxx
sw/source/core/doc/docsort.cxx
+1
-1
sortopt.cxx
sw/source/core/doc/sortopt.cxx
+5
-5
unoobj.cxx
sw/source/core/unocore/unoobj.cxx
+4
-4
srtdlg.cxx
sw/source/ui/misc/srtdlg.cxx
+3
-3
No files found.
sw/inc/sortopt.hxx
Dosyayı görüntüle @
84a0fb09
...
...
@@ -32,6 +32,7 @@
#include <svl/svarray.hxx>
#include <tools/string.hxx>
#include "swdllapi.h"
#include <vector>
enum
SwSortOrder
{
SRT_ASCENDING
,
SRT_DESCENDING
};
enum
SwSortDirection
{
SRT_COLUMNS
,
SRT_ROWS
};
...
...
@@ -49,7 +50,7 @@ struct SW_DLLPUBLIC SwSortKey
sal_Bool
bIsNumeric
;
};
SV_DECL_PTRARR
(
SwSortKeys
,
SwSortKey
*
,
3
)
typedef
std
::
vector
<
SwSortKey
*>
SwSortKeys
;
struct
SW_DLLPUBLIC
SwSortOptions
{
...
...
sw/source/core/doc/docsort.cxx
Dosyayı görüntüle @
84a0fb09
...
...
@@ -142,7 +142,7 @@ sal_Bool SwSortElement::operator<(const SwSortElement& rCmp)
{
// The actual comparison
for
(
sal_uInt16
nKey
=
0
;
nKey
<
pOptions
->
aKeys
.
Count
();
++
nKey
)
for
(
sal_uInt16
nKey
=
0
;
nKey
<
pOptions
->
aKeys
.
size
();
++
nKey
)
{
const
SwSortElement
*
pOrig
,
*
pCmp
;
...
...
sw/source/core/doc/sortopt.cxx
Dosyayı görüntüle @
84a0fb09
...
...
@@ -29,8 +29,7 @@
#include <i18npool/lang.h>
#include <sortopt.hxx>
SV_IMPL_PTRARR
(
SwSortKeys
,
SwSortKey
*
)
#include <boost/foreach.hpp>
/*--------------------------------------------------------------------
Description: Sort Key
...
...
@@ -77,16 +76,17 @@ SwSortOptions::SwSortOptions(const SwSortOptions& rOpt) :
bTable
(
rOpt
.
bTable
),
bIgnoreCase
(
rOpt
.
bIgnoreCase
)
{
for
(
sal_uInt16
i
=
0
;
i
<
rOpt
.
aKeys
.
Count
();
++
i
)
for
(
sal_uInt16
i
=
0
;
i
<
rOpt
.
aKeys
.
size
();
++
i
)
{
SwSortKey
*
pNew
=
new
SwSortKey
(
*
rOpt
.
aKeys
[
i
]);
aKeys
.
C40_INSERT
(
SwSortKey
,
pNew
,
aKeys
.
Count
()
);
aKeys
.
push_back
(
pNew
);
}
}
SwSortOptions
::~
SwSortOptions
()
{
aKeys
.
DeleteAndDestroy
(
0
,
aKeys
.
Count
());
BOOST_FOREACH
(
SwSortKey
*
pKey
,
aKeys
)
delete
pKey
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
sw/source/core/unocore/unoobj.cxx
Dosyayı görüntüle @
84a0fb09
...
...
@@ -2822,18 +2822,18 @@ sal_Bool SwUnoCursorHelper::ConvertSortProperties(
if
(
pKey1
->
nColumnId
!=
USHRT_MAX
)
{
rSortOpt
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey1
,
rSortOpt
.
aKeys
.
Count
()
);
rSortOpt
.
aKeys
.
push_back
(
pKey1
);
}
if
(
pKey2
->
nColumnId
!=
USHRT_MAX
)
{
rSortOpt
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey2
,
rSortOpt
.
aKeys
.
Count
()
);
rSortOpt
.
aKeys
.
push_back
(
pKey2
);
}
if
(
pKey3
->
nColumnId
!=
USHRT_MAX
)
{
rSortOpt
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey3
,
rSortOpt
.
aKeys
.
Count
()
);
rSortOpt
.
aKeys
.
push_back
(
pKey3
);
}
return
bRet
&&
rSortOpt
.
aKeys
.
Count
()
>
0
;
return
bRet
&&
!
rSortOpt
.
aKeys
.
empty
()
;
}
void
SAL_CALL
...
...
sw/source/ui/misc/srtdlg.cxx
Dosyayı görüntüle @
84a0fb09
...
...
@@ -345,7 +345,7 @@ void SwSortDlg::Apply()
SwSortKey
*
pKey
=
new
SwSortKey
(
nCol1
,
sEntry
,
bAsc1
?
SRT_ASCENDING
:
SRT_DESCENDING
);
aOptions
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey
,
aOptions
.
aKeys
.
Count
()
);
aOptions
.
aKeys
.
push_back
(
pKey
);
}
if
(
bCheck2
)
...
...
@@ -359,7 +359,7 @@ void SwSortDlg::Apply()
SwSortKey
*
pKey
=
new
SwSortKey
(
nCol2
,
sEntry
,
bAsc2
?
SRT_ASCENDING
:
SRT_DESCENDING
);
aOptions
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey
,
aOptions
.
aKeys
.
Count
()
);
aOptions
.
aKeys
.
push_back
(
pKey
);
}
if
(
bCheck3
)
...
...
@@ -373,7 +373,7 @@ void SwSortDlg::Apply()
SwSortKey
*
pKey
=
new
SwSortKey
(
nCol3
,
sEntry
,
bAsc3
?
SRT_ASCENDING
:
SRT_DESCENDING
);
aOptions
.
aKeys
.
C40_INSERT
(
SwSortKey
,
pKey
,
aOptions
.
aKeys
.
Count
()
);
aOptions
.
aKeys
.
push_back
(
pKey
);
}
aOptions
.
eDirection
=
bCol
?
SRT_COLUMNS
:
SRT_ROWS
;
...
...
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