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
625ce5e9
Kaydet (Commit)
625ce5e9
authored
Ara 05, 2012
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
allow arbitrary icons from our icon-themes to be loaded via .ui
Change-Id: I5aab159bbbd4c20788085ae3069522f248289ab2
üst
e2733814
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
fixed.hxx
vcl/inc/vcl/fixed.hxx
+1
-1
fixed.cxx
vcl/source/control/fixed.cxx
+21
-0
No files found.
vcl/inc/vcl/fixed.hxx
Dosyayı görüntüle @
625ce5e9
...
@@ -186,7 +186,7 @@ public:
...
@@ -186,7 +186,7 @@ public:
sal_Bool
SetModeImage
(
const
Image
&
rImage
);
sal_Bool
SetModeImage
(
const
Image
&
rImage
);
const
Image
&
GetModeImage
(
)
const
;
const
Image
&
GetModeImage
(
)
const
;
;
virtual
bool
set_property
(
const
rtl
::
OString
&
rKey
,
const
rtl
::
OString
&
rValue
)
;
};
};
#endif // _SV_FIXED_HXX
#endif // _SV_FIXED_HXX
...
...
vcl/source/control/fixed.cxx
Dosyayı görüntüle @
625ce5e9
...
@@ -24,8 +24,10 @@
...
@@ -24,8 +24,10 @@
#include "vcl/dialog.hxx"
#include "vcl/dialog.hxx"
#include "vcl/event.hxx"
#include "vcl/event.hxx"
#include "vcl/fixed.hxx"
#include "vcl/fixed.hxx"
#include "vcl/svapp.hxx"
#include <comphelper/string.hxx>
#include <comphelper/string.hxx>
#include "controldata.hxx"
#include "controldata.hxx"
#include "impimagetree.hxx"
#include "window.h"
#include "window.h"
// =======================================================================
// =======================================================================
...
@@ -1193,4 +1195,23 @@ const Image& FixedImage::GetModeImage( ) const
...
@@ -1193,4 +1195,23 @@ const Image& FixedImage::GetModeImage( ) const
return
maImage
;
return
maImage
;
}
}
bool
FixedImage
::
set_property
(
const
rtl
::
OString
&
rKey
,
const
rtl
::
OString
&
rValue
)
{
if
(
rKey
==
"pixbuf"
)
{
static
ImplImageTreeSingletonRef
aImageTree
;
OUString
sCurrentSymbolsStyle
=
Application
::
GetSettings
().
GetStyleSettings
().
GetCurrentSymbolsStyleName
();
const
OUString
sFileName
(
OStringToOUString
(
rValue
,
RTL_TEXTENCODING_UTF8
));
BitmapEx
aBitmap
;
bool
bSuccess
=
aImageTree
->
loadImage
(
sFileName
,
sCurrentSymbolsStyle
,
aBitmap
,
true
);
SAL_WARN_IF
(
!
bSuccess
,
"vcl.layout"
,
"Unable to load "
<<
sFileName
<<
" from theme "
<<
sCurrentSymbolsStyle
);
SetImage
(
Image
(
aBitmap
));
}
else
return
Control
::
set_property
(
rKey
,
rValue
);
return
true
;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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