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
76d5a284
Kaydet (Commit)
76d5a284
authored
Nis 01, 2013
tarafından
Julien Nabet
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Prefer prefix ++/-- operators for non-primitive types
Change-Id: Ib5e17d5bb94d9b19008ca15e042b443689aba9b1
üst
79894c1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
tabledesign.cxx
svx/source/table/tabledesign.cxx
+18
-6
No files found.
svx/source/table/tabledesign.cxx
Dosyayı görüntüle @
76d5a284
...
@@ -536,7 +536,9 @@ Any SAL_CALL TableDesignFamily::getByName( const OUString& rName ) throw(NoSuchE
...
@@ -536,7 +536,9 @@ Any SAL_CALL TableDesignFamily::getByName( const OUString& rName ) throw(NoSuchE
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
const_iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
{
{
if
(
(
*
iter
)
->
getName
()
==
rName
)
if
(
(
*
iter
)
->
getName
()
==
rName
)
return
Any
(
(
*
iter
)
);
return
Any
(
(
*
iter
)
);
...
@@ -554,7 +556,9 @@ Sequence< OUString > SAL_CALL TableDesignFamily::getElementNames() throw(Runtime
...
@@ -554,7 +556,9 @@ Sequence< OUString > SAL_CALL TableDesignFamily::getElementNames() throw(Runtime
Sequence
<
OUString
>
aRet
(
maDesigns
.
size
()
);
Sequence
<
OUString
>
aRet
(
maDesigns
.
size
()
);
OUString
*
pNames
=
aRet
.
getArray
();
OUString
*
pNames
=
aRet
.
getArray
();
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
const_iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
*
pNames
++
=
(
*
iter
)
->
getName
();
*
pNames
++
=
(
*
iter
)
->
getName
();
return
aRet
;
return
aRet
;
...
@@ -566,7 +570,9 @@ sal_Bool SAL_CALL TableDesignFamily::hasByName( const OUString& aName ) throw(Ru
...
@@ -566,7 +570,9 @@ sal_Bool SAL_CALL TableDesignFamily::hasByName( const OUString& aName ) throw(Ru
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
const_iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
if
(
(
*
iter
)
->
getName
()
==
aName
)
if
(
(
*
iter
)
->
getName
()
==
aName
)
return
sal_True
;
return
sal_True
;
...
@@ -627,7 +633,9 @@ void SAL_CALL TableDesignFamily::insertByName( const OUString& rName, const Any&
...
@@ -627,7 +633,9 @@ void SAL_CALL TableDesignFamily::insertByName( const OUString& rName, const Any&
throw
IllegalArgumentException
();
throw
IllegalArgumentException
();
xStyle
->
setName
(
rName
);
xStyle
->
setName
(
rName
);
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
const_iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
if
(
(
*
iter
)
->
getName
()
==
rName
)
if
(
(
*
iter
)
->
getName
()
==
rName
)
throw
ElementExistException
();
throw
ElementExistException
();
...
@@ -640,7 +648,9 @@ void SAL_CALL TableDesignFamily::removeByName( const OUString& rName ) throw(NoS
...
@@ -640,7 +648,9 @@ void SAL_CALL TableDesignFamily::removeByName( const OUString& rName ) throw(NoS
{
{
SolarMutexGuard
aGuard
;
SolarMutexGuard
aGuard
;
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
{
{
if
(
(
*
iter
)
->
getName
()
==
rName
)
if
(
(
*
iter
)
->
getName
()
==
rName
)
{
{
...
@@ -665,7 +675,9 @@ void SAL_CALL TableDesignFamily::replaceByName( const OUString& rName, const Any
...
@@ -665,7 +675,9 @@ void SAL_CALL TableDesignFamily::replaceByName( const OUString& rName, const Any
if
(
!
xStyle
.
is
()
)
if
(
!
xStyle
.
is
()
)
throw
IllegalArgumentException
();
throw
IllegalArgumentException
();
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
maDesigns
.
end
();
iter
++
)
const
TableDesignStyleVector
::
const_iterator
aEnd
(
maDesigns
.
end
()
);
for
(
TableDesignStyleVector
::
iterator
iter
(
maDesigns
.
begin
()
);
iter
!=
aEnd
;
++
iter
)
{
{
if
(
(
*
iter
)
->
getName
()
==
rName
)
if
(
(
*
iter
)
->
getName
()
==
rName
)
{
{
...
...
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