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
b39f15cf
Kaydet (Commit)
b39f15cf
authored
Tem 30, 2014
tarafından
Krisztian Pinter
Kaydeden (comit)
Tomaž Vajngerl
Eyl 17, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change vector<Palette*> to ptr_vector<Palette>
Change-Id: I1f2832235e8d2ea3517efdce809970ed5f1c6769
üst
1bf3b9f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
PaletteManager.hxx
include/svx/PaletteManager.hxx
+4
-2
PaletteManager.cxx
svx/source/tbxctrls/PaletteManager.cxx
+5
-11
No files found.
include/svx/PaletteManager.hxx
Dosyayı görüntüle @
b39f15cf
...
...
@@ -25,12 +25,14 @@
#include <svx/tbxcolorupdate.hxx>
#include <tools/urlobj.hxx>
#include <comphelper/processfactory.hxx>
#include <com/sun/star/util/XURLTransformer.hpp>
#include <com/sun/star/util/URLTransformer.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/Desktop.hpp>
#include <com/sun/star/frame/XDispatchProvider.hpp>
#include <comphelper/processfactory.hxx>
#include <boost/ptr_container/ptr_vector.hpp>
class
PaletteManager
{
...
...
@@ -41,7 +43,7 @@ class PaletteManager
svx
::
ToolboxButtonColorUpdater
*
mpBtnUpdater
;
Color
mLastColor
;
std
::
vector
<
Palette
*
>
maPalettes
;
boost
::
ptr_vector
<
Palette
>
maPalettes
;
public
:
PaletteManager
();
~
PaletteManager
();
...
...
svx/source/tbxctrls/PaletteManager.cxx
Dosyayı görüntüle @
b39f15cf
...
...
@@ -41,20 +41,14 @@ PaletteManager::PaletteManager() :
PaletteManager
::~
PaletteManager
()
{
for
(
std
::
vector
<
Palette
*>::
iterator
it
=
maPalettes
.
begin
();
it
!=
maPalettes
.
end
();
++
it
)
{
delete
*
it
;
}
}
void
PaletteManager
::
LoadPalettes
()
{
maPalettes
.
clear
();
OUString
aPalPath
=
SvtPathOptions
().
GetPalettePath
();
osl
::
Directory
aDir
(
aPalPath
);
maPalettes
.
clear
();
osl
::
DirectoryItem
aDirItem
;
osl
::
FileStatus
aFileStat
(
osl_FileStatus_Mask_FileName
|
osl_FileStatus_Mask_FileURL
|
...
...
@@ -116,7 +110,7 @@ void PaletteManager::ReloadColorSet(SvxColorValueSet &rColorSet)
}
else
{
maPalettes
[
mnCurrentPalette
-
1
]
->
LoadColorSet
(
rColorSet
);
maPalettes
[
mnCurrentPalette
-
1
]
.
LoadColorSet
(
rColorSet
);
mnColorCount
=
rColorSet
.
GetItemCount
();
}
}
...
...
@@ -127,11 +121,11 @@ std::vector<OUString> PaletteManager::GetPaletteList()
aPaletteNames
.
push_back
(
STR_DEFAULT_PAL
);
for
(
std
::
vector
<
Palette
*
>::
iterator
it
=
maPalettes
.
begin
();
for
(
boost
::
ptr_vector
<
Palette
>::
iterator
it
=
maPalettes
.
begin
();
it
!=
maPalettes
.
end
();
++
it
)
{
aPaletteNames
.
push_back
(
(
*
it
)
->
GetName
()
);
aPaletteNames
.
push_back
(
(
*
it
)
.
GetName
()
);
}
aPaletteNames
.
push_back
(
STR_DOC_COLORS
);
...
...
@@ -161,7 +155,7 @@ OUString PaletteManager::GetPaletteName()
else
if
(
mnCurrentPalette
==
mnNumOfPalettes
-
1
)
return
OUString
(
STR_DOC_COLORS
);
else
return
maPalettes
[
mnCurrentPalette
-
1
]
->
GetName
();
return
maPalettes
[
mnCurrentPalette
-
1
]
.
GetName
();
}
const
Color
&
PaletteManager
::
GetLastColor
()
...
...
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