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
1bc9a5a9
Kaydet (Commit)
1bc9a5a9
authored
Tem 17, 2016
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
odd SvxBitmapCtl is used in only one place
Change-Id: I82a4c8f2e36153b0bc59571ce39956637e278fcb
üst
c3addf79
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
41 deletions
+31
-41
cuitabarea.hxx
cui/source/inc/cuitabarea.hxx
+1
-0
tppattern.cxx
cui/source/tabpages/tppattern.cxx
+30
-0
dlgctrl.hxx
include/svx/dlgctrl.hxx
+0
-21
dlgctrl.cxx
svx/source/dialog/dlgctrl.cxx
+0
-20
No files found.
cui/source/inc/cuitabarea.hxx
Dosyayı görüntüle @
1bc9a5a9
...
...
@@ -34,6 +34,7 @@
class
SdrModel
;
class
SdrView
;
class
SvxBitmapCtl
;
/************************************************************************/
...
...
cui/source/tabpages/tppattern.cxx
Dosyayı görüntüle @
1bc9a5a9
...
...
@@ -49,6 +49,36 @@
using
namespace
com
::
sun
::
star
;
/*************************************************************************
|* Preview control for the display of bitmaps
\************************************************************************/
class
SvxBitmapCtl
{
private
:
Color
aPixelColor
,
aBackgroundColor
;
const
sal_uInt16
*
pBmpArray
;
public
:
// Constructor: BitmapCtl for SvxPixelCtl
SvxBitmapCtl
()
:
pBmpArray
(
nullptr
)
{
}
// BitmapCtl: Returns the Bitmap
BitmapEx
GetBitmapEx
()
{
const
Bitmap
aRetval
(
createHistorical8x8FromArray
(
pBmpArray
,
aPixelColor
,
aBackgroundColor
));
return
BitmapEx
(
aRetval
);
}
void
SetBmpArray
(
const
sal_uInt16
*
pPixel
)
{
pBmpArray
=
pPixel
;
}
void
SetPixelColor
(
Color
aColor
)
{
aPixelColor
=
aColor
;
}
void
SetBackgroundColor
(
Color
aColor
)
{
aBackgroundColor
=
aColor
;
}
};
SvxPatternTabPage
::
SvxPatternTabPage
(
vcl
::
Window
*
pParent
,
const
SfxItemSet
&
rInAttrs
)
:
SvxTabPage
(
pParent
,
...
...
include/svx/dlgctrl.hxx
Dosyayı görüntüle @
1bc9a5a9
...
...
@@ -141,27 +141,6 @@ public:
void
DoCompletelyDisable
(
bool
bNew
);
};
/*************************************************************************
|* Preview control for the display of bitmaps
\************************************************************************/
class
SAL_WARN_UNUSED
SVX_DLLPUBLIC
SvxBitmapCtl
final
{
private
:
Color
aPixelColor
,
aBackgroundColor
;
const
sal_uInt16
*
pBmpArray
;
public
:
SvxBitmapCtl
();
~
SvxBitmapCtl
();
BitmapEx
GetBitmapEx
();
void
SetBmpArray
(
const
sal_uInt16
*
pPixel
)
{
pBmpArray
=
pPixel
;
}
void
SetPixelColor
(
Color
aColor
)
{
aPixelColor
=
aColor
;
}
void
SetBackgroundColor
(
Color
aColor
)
{
aBackgroundColor
=
aColor
;
}
};
/*************************************************************************
|* Control for editing bitmaps
\************************************************************************/
...
...
svx/source/dialog/dlgctrl.cxx
Dosyayı görüntüle @
1bc9a5a9
...
...
@@ -1103,26 +1103,6 @@ void SvxPixelCtl::Reset()
Invalidate
();
}
// Constructor: BitmapCtl for SvxPixelCtl
SvxBitmapCtl
::
SvxBitmapCtl
()
:
pBmpArray
(
nullptr
)
{
}
SvxBitmapCtl
::~
SvxBitmapCtl
()
{
}
// BitmapCtl: Returns the Bitmap
BitmapEx
SvxBitmapCtl
::
GetBitmapEx
()
{
const
Bitmap
aRetval
(
createHistorical8x8FromArray
(
pBmpArray
,
aPixelColor
,
aBackgroundColor
));
return
BitmapEx
(
aRetval
);
}
VCL_BUILDER_DECL_FACTORY
(
ColorLB
)
{
bool
bDropdown
=
VclBuilder
::
extractDropdown
(
rMap
);
...
...
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