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
dfb8c373
Kaydet (Commit)
dfb8c373
authored
Eyl 03, 2015
tarafından
Miklos Vajna
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
cui: prefix members of SvxBitmapTabPage
Change-Id: I5f33c2eeeffdd2b3254ec464e5a2b96c09324df4
üst
36d0f779
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
115 additions
and
115 deletions
+115
-115
cuitabarea.hxx
cui/source/inc/cuitabarea.hxx
+22
-22
tpbitmap.cxx
cui/source/tabpages/tpbitmap.cxx
+93
-93
No files found.
cui/source/inc/cuitabarea.hxx
Dosyayı görüntüle @
dfb8c373
...
@@ -563,24 +563,24 @@ private:
...
@@ -563,24 +563,24 @@ private:
SvxBitmapCtl
*
m_pBitmapCtl
;
SvxBitmapCtl
*
m_pBitmapCtl
;
const
SfxItemSet
&
rOutAttrs
;
const
SfxItemSet
&
m_
rOutAttrs
;
XColorListRef
pColorList
;
XColorListRef
m_
pColorList
;
XBitmapListRef
pBitmapList
;
XBitmapListRef
m_
pBitmapList
;
ChangeType
*
pnBitmapListState
;
ChangeType
*
m_
pnBitmapListState
;
ChangeType
*
pnColorListState
;
ChangeType
*
m_
pnColorListState
;
sal_uInt16
*
pPageType
;
sal_uInt16
*
m_
pPageType
;
sal_uInt16
nDlgType
;
sal_uInt16
m_
nDlgType
;
sal_Int32
*
pPos
;
sal_Int32
*
m_
pPos
;
bool
*
pbAreaTP
;
bool
*
m_
pbAreaTP
;
bool
bBmpChanged
;
bool
m_
bBmpChanged
;
XFillStyleItem
aXFStyleItem
;
XFillStyleItem
m_
aXFStyleItem
;
XFillBitmapItem
aXBitmapItem
;
XFillBitmapItem
m_
aXBitmapItem
;
XFillAttrSetItem
aXFillAttr
;
XFillAttrSetItem
m_
aXFillAttr
;
SfxItemSet
&
rXFSet
;
SfxItemSet
&
m_
rXFSet
;
DECL_LINK_TYPED
(
ClickAddHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickAddHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickImportHdl_Impl
,
Button
*
,
void
);
DECL_LINK_TYPED
(
ClickImportHdl_Impl
,
Button
*
,
void
);
...
@@ -610,16 +610,16 @@ public:
...
@@ -610,16 +610,16 @@ public:
virtual
void
PointChanged
(
vcl
::
Window
*
pWindow
,
RECT_POINT
eRP
)
SAL_OVERRIDE
;
virtual
void
PointChanged
(
vcl
::
Window
*
pWindow
,
RECT_POINT
eRP
)
SAL_OVERRIDE
;
void
SetColorList
(
XColorListRef
pCol
Tab
)
{
pColorList
=
pColTab
;
}
void
SetColorList
(
XColorListRef
pCol
orList
)
{
m_pColorList
=
pColorList
;
}
void
SetBitmapList
(
XBitmapListRef
pB
mpLst
)
{
pBitmapList
=
pBmpL
st
;
}
void
SetBitmapList
(
XBitmapListRef
pB
itmapList
)
{
m_pBitmapList
=
pBitmapLi
st
;
}
void
SetPageType
(
sal_uInt16
*
pInType
)
{
pPageType
=
pInType
;
}
void
SetPageType
(
sal_uInt16
*
pInType
)
{
m_
pPageType
=
pInType
;
}
void
SetDlgType
(
sal_uInt16
nInType
)
{
nDlgType
=
nInType
;
}
void
SetDlgType
(
sal_uInt16
nInType
)
{
m_
nDlgType
=
nInType
;
}
void
SetPos
(
sal_Int32
*
pInPos
)
{
pPos
=
pInPos
;
}
void
SetPos
(
sal_Int32
*
pInPos
)
{
m_
pPos
=
pInPos
;
}
void
SetAreaTP
(
bool
*
pIn
)
{
pbAreaTP
=
pIn
;
}
void
SetAreaTP
(
bool
*
pIn
)
{
m_
pbAreaTP
=
pIn
;
}
void
SetBmpChgd
(
ChangeType
*
pIn
)
{
pnBitmapListState
=
pIn
;
}
void
SetBmpChgd
(
ChangeType
*
pIn
)
{
m_
pnBitmapListState
=
pIn
;
}
void
SetColorChgd
(
ChangeType
*
pIn
)
{
pnColorListState
=
pIn
;
}
void
SetColorChgd
(
ChangeType
*
pIn
)
{
m_
pnColorListState
=
pIn
;
}
/** Return a label that is associated with the given control. This
/** Return a label that is associated with the given control. This
label is used to the determine the name for the control.
label is used to the determine the name for the control.
...
...
cui/source/tabpages/tpbitmap.cxx
Dosyayı görüntüle @
dfb8c373
...
@@ -56,21 +56,21 @@ SvxBitmapTabPage::SvxBitmapTabPage( vcl::Window* pParent, const SfxItemSet& rIn
...
@@ -56,21 +56,21 @@ SvxBitmapTabPage::SvxBitmapTabPage( vcl::Window* pParent, const SfxItemSet& rIn
"BitmapTabPage"
,
"BitmapTabPage"
,
"cui/ui/bitmaptabpage.ui"
,
"cui/ui/bitmaptabpage.ui"
,
rInAttrs
),
rInAttrs
),
rOutAttrs
(
rInAttrs
),
m_
rOutAttrs
(
rInAttrs
),
pnBitmapListState
(
0
),
m_
pnBitmapListState
(
0
),
pnColorListState
(
0
),
m_
pnColorListState
(
0
),
pPageType
(
0
),
m_
pPageType
(
0
),
nDlgType
(
0
),
m_
nDlgType
(
0
),
pPos
(
0
),
m_
pPos
(
0
),
pbAreaTP
(
0
),
m_
pbAreaTP
(
0
),
bBmpChanged
(
false
),
m_
bBmpChanged
(
false
),
aXFStyleItem
(
drawing
::
FillStyle_BITMAP
),
m_
aXFStyleItem
(
drawing
::
FillStyle_BITMAP
),
aXBitmapItem
(
OUString
(),
Graphic
()
),
m_
aXBitmapItem
(
OUString
(),
Graphic
()
),
aXFillAttr
(
rInAttrs
.
GetPool
()
),
m_
aXFillAttr
(
rInAttrs
.
GetPool
()
),
rXFSet
(
aXFillAttr
.
GetItemSet
()
)
m_rXFSet
(
m_
aXFillAttr
.
GetItemSet
()
)
{
{
get
(
m_pBxPixelEditor
,
"maingrid"
);
get
(
m_pBxPixelEditor
,
"maingrid"
);
get
(
m_pCtlPixel
,
"CTL_PIXEL"
);
get
(
m_pCtlPixel
,
"CTL_PIXEL"
);
...
@@ -102,8 +102,8 @@ SvxBitmapTabPage::SvxBitmapTabPage( vcl::Window* pParent, const SfxItemSet& rIn
...
@@ -102,8 +102,8 @@ SvxBitmapTabPage::SvxBitmapTabPage( vcl::Window* pParent, const SfxItemSet& rIn
SetExchangeSupport
();
SetExchangeSupport
();
// setting the output device
// setting the output device
rXFSet
.
Put
(
aXFStyleItem
);
m_rXFSet
.
Put
(
m_
aXFStyleItem
);
rXFSet
.
Put
(
aXBitmapItem
);
m_rXFSet
.
Put
(
m_
aXBitmapItem
);
m_pBtnAdd
->
SetClickHdl
(
LINK
(
this
,
SvxBitmapTabPage
,
ClickAddHdl_Impl
)
);
m_pBtnAdd
->
SetClickHdl
(
LINK
(
this
,
SvxBitmapTabPage
,
ClickAddHdl_Impl
)
);
m_pBtnImport
->
SetClickHdl
(
LINK
(
this
,
SvxBitmapTabPage
,
ClickImportHdl_Impl
)
);
m_pBtnImport
->
SetClickHdl
(
LINK
(
this
,
SvxBitmapTabPage
,
ClickImportHdl_Impl
)
);
...
@@ -146,10 +146,10 @@ void SvxBitmapTabPage::dispose()
...
@@ -146,10 +146,10 @@ void SvxBitmapTabPage::dispose()
void
SvxBitmapTabPage
::
Construct
()
void
SvxBitmapTabPage
::
Construct
()
{
{
m_pLbColor
->
Fill
(
pColorList
);
m_pLbColor
->
Fill
(
m_
pColorList
);
m_pLbBackgroundColor
->
CopyEntries
(
*
m_pLbColor
);
m_pLbBackgroundColor
->
CopyEntries
(
*
m_pLbColor
);
m_pLbBitmaps
->
Fill
(
pBitmapList
);
m_pLbBitmaps
->
Fill
(
m_
pBitmapList
);
}
}
...
@@ -159,23 +159,23 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
...
@@ -159,23 +159,23 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
sal_Int32
nPos
;
sal_Int32
nPos
;
sal_Int32
nCount
;
sal_Int32
nCount
;
if
(
nDlgType
==
0
)
// area dialog
if
(
m_
nDlgType
==
0
)
// area dialog
{
{
*
pbAreaTP
=
false
;
*
m_
pbAreaTP
=
false
;
if
(
pColorList
.
is
()
)
if
(
m_
pColorList
.
is
()
)
{
{
// ColorList
// ColorList
if
(
*
pnColorListState
&
ChangeType
::
CHANGED
||
if
(
*
m_
pnColorListState
&
ChangeType
::
CHANGED
||
*
pnColorListState
&
ChangeType
::
MODIFIED
)
*
m_
pnColorListState
&
ChangeType
::
MODIFIED
)
{
{
if
(
*
pnColorListState
&
ChangeType
::
CHANGED
)
if
(
*
m_
pnColorListState
&
ChangeType
::
CHANGED
)
pColorList
=
static_cast
<
SvxAreaTabDialog
*>
(
GetParentDialog
()
)
->
GetNewColorList
();
m_
pColorList
=
static_cast
<
SvxAreaTabDialog
*>
(
GetParentDialog
()
)
->
GetNewColorList
();
// LbColor
// LbColor
nPos
=
m_pLbColor
->
GetSelectEntryPos
();
nPos
=
m_pLbColor
->
GetSelectEntryPos
();
m_pLbColor
->
Clear
();
m_pLbColor
->
Clear
();
m_pLbColor
->
Fill
(
pColorList
);
m_pLbColor
->
Fill
(
m_
pColorList
);
nCount
=
m_pLbColor
->
GetEntryCount
();
nCount
=
m_pLbColor
->
GetEntryCount
();
if
(
nCount
==
0
)
if
(
nCount
==
0
)
;
// this case should not occur
;
// this case should not occur
...
@@ -204,9 +204,9 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
...
@@ -204,9 +204,9 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
// displaying it in the GroupBox
// displaying it in the GroupBox
OUString
aString
(
CUI_RES
(
RID_SVXSTR_TABLE
)
);
OUString
aString
(
CUI_RES
(
RID_SVXSTR_TABLE
)
);
aString
+=
": "
;
aString
+=
": "
;
INetURLObject
aURL
(
pBitmapList
->
GetPath
()
);
INetURLObject
aURL
(
m_
pBitmapList
->
GetPath
()
);
aURL
.
Append
(
pBitmapList
->
GetName
()
);
aURL
.
Append
(
m_
pBitmapList
->
GetName
()
);
DBG_ASSERT
(
aURL
.
GetProtocol
()
!=
INetProtocol
::
NotValid
,
"invalid URL"
);
DBG_ASSERT
(
aURL
.
GetProtocol
()
!=
INetProtocol
::
NotValid
,
"invalid URL"
);
if
(
aURL
.
getBase
().
getLength
()
>
18
)
if
(
aURL
.
getBase
().
getLength
()
>
18
)
...
@@ -217,15 +217,15 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
...
@@ -217,15 +217,15 @@ void SvxBitmapTabPage::ActivatePage( const SfxItemSet& )
else
else
aString
+=
aURL
.
getBase
();
aString
+=
aURL
.
getBase
();
if
(
*
pPageType
==
PT_BITMAP
&&
*
pPos
!=
LISTBOX_ENTRY_NOTFOUND
)
if
(
*
m_pPageType
==
PT_BITMAP
&&
*
m_
pPos
!=
LISTBOX_ENTRY_NOTFOUND
)
{
{
m_pLbBitmaps
->
SelectEntryPos
(
*
pPos
);
m_pLbBitmaps
->
SelectEntryPos
(
*
m_
pPos
);
}
}
// colors could have been deleted
// colors could have been deleted
ChangeBitmapHdl_Impl
(
this
);
ChangeBitmapHdl_Impl
(
this
);
*
pPageType
=
PT_BITMAP
;
*
m_
pPageType
=
PT_BITMAP
;
*
pPos
=
LISTBOX_ENTRY_NOTFOUND
;
*
m_
pPos
=
LISTBOX_ENTRY_NOTFOUND
;
}
}
}
}
}
}
...
@@ -247,15 +247,15 @@ SfxTabPage::sfxpg SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
...
@@ -247,15 +247,15 @@ SfxTabPage::sfxpg SvxBitmapTabPage::DeactivatePage( SfxItemSet* _pSet)
bool
SvxBitmapTabPage
::
FillItemSet
(
SfxItemSet
*
_rOutAttrs
)
bool
SvxBitmapTabPage
::
FillItemSet
(
SfxItemSet
*
_rOutAttrs
)
{
{
if
(
nDlgType
==
0
&&
!*
pbAreaTP
)
// area dialog
if
(
m_nDlgType
==
0
&&
!*
m_
pbAreaTP
)
// area dialog
{
{
if
(
PT_BITMAP
==
*
pPageType
)
if
(
PT_BITMAP
==
*
m_
pPageType
)
{
{
_rOutAttrs
->
Put
(
XFillStyleItem
(
drawing
::
FillStyle_BITMAP
));
_rOutAttrs
->
Put
(
XFillStyleItem
(
drawing
::
FillStyle_BITMAP
));
sal_Int32
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
sal_Int32
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
{
{
const
XBitmapEntry
*
pXBitmapEntry
=
pBitmapList
->
GetBitmap
(
nPos
);
const
XBitmapEntry
*
pXBitmapEntry
=
m_
pBitmapList
->
GetBitmap
(
nPos
);
const
OUString
aString
(
m_pLbBitmaps
->
GetSelectEntry
());
const
OUString
aString
(
m_pLbBitmaps
->
GetSelectEntry
());
_rOutAttrs
->
Put
(
XFillBitmapItem
(
aString
,
pXBitmapEntry
->
GetGraphicObject
()));
_rOutAttrs
->
Put
(
XFillBitmapItem
(
aString
,
pXBitmapEntry
->
GetGraphicObject
()));
...
@@ -285,14 +285,14 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* )
...
@@ -285,14 +285,14 @@ void SvxBitmapTabPage::Reset( const SfxItemSet* )
// get bitmap and display it
// get bitmap and display it
const
XFillBitmapItem
aBmpItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
()));
const
XFillBitmapItem
aBmpItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
()));
rXFSet
.
Put
(
aBmpItem
);
m_
rXFSet
.
Put
(
aBmpItem
);
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
ChangeBitmapHdl_Impl
(
this
);
ChangeBitmapHdl_Impl
(
this
);
// determine button state
// determine button state
if
(
pBitmapList
.
is
()
&&
pBitmapList
->
Count
()
)
if
(
m_pBitmapList
.
is
()
&&
m_
pBitmapList
->
Count
()
)
{
{
m_pBtnAdd
->
Enable
();
m_pBtnAdd
->
Enable
();
m_pBtnModify
->
Enable
();
m_pBtnModify
->
Enable
();
...
@@ -324,17 +324,17 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
...
@@ -324,17 +324,17 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
{
{
pGraphicObject
.
reset
(
new
GraphicObject
(
pBitmapList
->
GetBitmap
(
nPos
)
->
GetGraphicObject
()));
pGraphicObject
.
reset
(
new
GraphicObject
(
m_
pBitmapList
->
GetBitmap
(
nPos
)
->
GetGraphicObject
()));
}
}
else
else
{
{
const
SfxPoolItem
*
pPoolItem
=
0
;
const
SfxPoolItem
*
pPoolItem
=
0
;
if
(
SfxItemState
::
SET
==
rOutAttrs
.
GetItemState
(
GetWhich
(
XATTR_FILLSTYLE
),
true
,
&
pPoolItem
))
if
(
SfxItemState
::
SET
==
m_
rOutAttrs
.
GetItemState
(
GetWhich
(
XATTR_FILLSTYLE
),
true
,
&
pPoolItem
))
{
{
const
drawing
::
FillStyle
eXFS
((
drawing
::
FillStyle
)
static_cast
<
const
XFillStyleItem
*>
(
pPoolItem
)
->
GetValue
());
const
drawing
::
FillStyle
eXFS
((
drawing
::
FillStyle
)
static_cast
<
const
XFillStyleItem
*>
(
pPoolItem
)
->
GetValue
());
if
((
drawing
::
FillStyle_BITMAP
==
eXFS
)
&&
(
SfxItemState
::
SET
==
rOutAttrs
.
GetItemState
(
GetWhich
(
XATTR_FILLBITMAP
),
true
,
&
pPoolItem
)))
if
((
drawing
::
FillStyle_BITMAP
==
eXFS
)
&&
(
SfxItemState
::
SET
==
m_
rOutAttrs
.
GetItemState
(
GetWhich
(
XATTR_FILLBITMAP
),
true
,
&
pPoolItem
)))
{
{
pGraphicObject
.
reset
(
new
GraphicObject
(
static_cast
<
const
XFillBitmapItem
*>
(
pPoolItem
)
->
GetGraphicObject
()));
pGraphicObject
.
reset
(
new
GraphicObject
(
static_cast
<
const
XFillBitmapItem
*>
(
pPoolItem
)
->
GetGraphicObject
()));
}
}
...
@@ -347,7 +347,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
...
@@ -347,7 +347,7 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
if
(
LISTBOX_ENTRY_NOTFOUND
!=
nPos
)
{
{
pGraphicObject
.
reset
(
new
GraphicObject
(
pBitmapList
->
GetBitmap
(
nPos
)
->
GetGraphicObject
()));
pGraphicObject
.
reset
(
new
GraphicObject
(
m_
pBitmapList
->
GetBitmap
(
nPos
)
->
GetGraphicObject
()));
}
}
}
}
}
}
...
@@ -406,8 +406,8 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
...
@@ -406,8 +406,8 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
// update m_pBitmapCtl, rXFSet and m_pCtlPreview
// update m_pBitmapCtl, rXFSet and m_pCtlPreview
m_pBitmapCtl
->
SetPixelColor
(
aPixelColor
);
m_pBitmapCtl
->
SetPixelColor
(
aPixelColor
);
m_pBitmapCtl
->
SetBackgroundColor
(
aBackColor
);
m_pBitmapCtl
->
SetBackgroundColor
(
aBackColor
);
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
}
}
else
else
...
@@ -423,12 +423,12 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
...
@@ -423,12 +423,12 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBitmapHdl_Impl)
// display bitmap
// display bitmap
const
XFillBitmapItem
aXBmpItem
(
OUString
(),
*
pGraphicObject
);
const
XFillBitmapItem
aXBmpItem
(
OUString
(),
*
pGraphicObject
);
rXFSet
.
Put
(
aXBmpItem
);
m_
rXFSet
.
Put
(
aXBmpItem
);
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
bBmpChanged
=
false
;
m_
bBmpChanged
=
false
;
}
}
return
0
;
return
0
;
...
@@ -441,7 +441,7 @@ long SvxBitmapTabPage::CheckChanges_Impl()
...
@@ -441,7 +441,7 @@ long SvxBitmapTabPage::CheckChanges_Impl()
sal_Int32
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
sal_Int32
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
{
{
if
(
bBmpChanged
)
if
(
m_
bBmpChanged
)
{
{
ResMgr
&
rMgr
=
CUI_MGR
();
ResMgr
&
rMgr
=
CUI_MGR
();
Image
aWarningBoxImage
=
WarningBox
::
GetStandardImage
();
Image
aWarningBoxImage
=
WarningBox
::
GetStandardImage
();
...
@@ -476,7 +476,7 @@ long SvxBitmapTabPage::CheckChanges_Impl()
...
@@ -476,7 +476,7 @@ long SvxBitmapTabPage::CheckChanges_Impl()
}
}
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
nPos
=
m_pLbBitmaps
->
GetSelectEntryPos
();
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
if
(
nPos
!=
LISTBOX_ENTRY_NOTFOUND
)
*
pPos
=
nPos
;
*
m_
pPos
=
nPos
;
return
0L
;
return
0L
;
}
}
...
@@ -489,7 +489,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
...
@@ -489,7 +489,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
OUString
aDesc
(
CUI_RES
(
RID_SVXSTR_DESC_NEW_BITMAP
)
);
OUString
aDesc
(
CUI_RES
(
RID_SVXSTR_DESC_NEW_BITMAP
)
);
OUString
aName
;
OUString
aName
;
long
nCount
=
pBitmapList
->
Count
();
long
nCount
=
m_
pBitmapList
->
Count
();
long
j
=
1
;
long
j
=
1
;
bool
bDifferent
=
false
;
bool
bDifferent
=
false
;
...
@@ -501,7 +501,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
...
@@ -501,7 +501,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
bDifferent
=
true
;
bDifferent
=
true
;
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
if
(
aName
==
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
if
(
aName
==
m_
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
bDifferent
=
false
;
bDifferent
=
false
;
}
}
...
@@ -519,7 +519,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
...
@@ -519,7 +519,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
bDifferent
=
true
;
bDifferent
=
true
;
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
if
(
aName
==
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
if
(
aName
==
m_
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
bDifferent
=
false
;
bDifferent
=
false
;
if
(
bDifferent
)
{
if
(
bDifferent
)
{
...
@@ -554,7 +554,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
...
@@ -554,7 +554,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
{
{
const
SfxPoolItem
*
pPoolItem
=
0
;
const
SfxPoolItem
*
pPoolItem
=
0
;
if
(
SfxItemState
::
SET
==
rOutAttrs
.
GetItemState
(
XATTR_FILLBITMAP
,
true
,
&
pPoolItem
))
if
(
SfxItemState
::
SET
==
m_
rOutAttrs
.
GetItemState
(
XATTR_FILLBITMAP
,
true
,
&
pPoolItem
))
{
{
pEntry
=
new
XBitmapEntry
(
dynamic_cast
<
const
XFillBitmapItem
*
>
(
pPoolItem
)
->
GetGraphicObject
(),
aName
);
pEntry
=
new
XBitmapEntry
(
dynamic_cast
<
const
XFillBitmapItem
*
>
(
pPoolItem
)
->
GetGraphicObject
(),
aName
);
}
}
...
@@ -564,19 +564,19 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
...
@@ -564,19 +564,19 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickAddHdl_Impl, Button*, void)
if
(
pEntry
)
if
(
pEntry
)
{
{
pBitmapList
->
Insert
(
pEntry
);
m_
pBitmapList
->
Insert
(
pEntry
);
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
m_pLbBitmaps
->
Append
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
);
m_pLbBitmaps
->
Append
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
);
m_pLbBitmaps
->
SelectEntryPos
(
m_pLbBitmaps
->
GetEntryCount
()
-
1
);
m_pLbBitmaps
->
SelectEntryPos
(
m_pLbBitmaps
->
GetEntryCount
()
-
1
);
*
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
ChangeBitmapHdl_Impl
(
this
);
ChangeBitmapHdl_Impl
(
this
);
}
}
}
}
// determine button state
// determine button state
if
(
pBitmapList
->
Count
()
)
if
(
m_
pBitmapList
->
Count
()
)
{
{
m_pBtnModify
->
Enable
();
m_pBtnModify
->
Enable
();
m_pBtnDelete
->
Enable
();
m_pBtnDelete
->
Enable
();
...
@@ -624,10 +624,10 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickImportHdl_Impl, Button*, void)
...
@@ -624,10 +624,10 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickImportHdl_Impl, Button*, void)
pDlg
->
GetName
(
aName
);
pDlg
->
GetName
(
aName
);
bool
bDifferent
=
true
;
bool
bDifferent
=
true
;
long
nCount
=
pBitmapList
->
Count
();
long
nCount
=
m_
pBitmapList
->
Count
();
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
if
(
aName
==
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
if
(
aName
==
m_
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
)
bDifferent
=
false
;
bDifferent
=
false
;
if
(
bDifferent
)
{
if
(
bDifferent
)
{
...
@@ -652,13 +652,13 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickImportHdl_Impl, Button*, void)
...
@@ -652,13 +652,13 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickImportHdl_Impl, Button*, void)
if
(
!
nError
)
if
(
!
nError
)
{
{
XBitmapEntry
*
pEntry
=
new
XBitmapEntry
(
aGraphic
,
aName
);
XBitmapEntry
*
pEntry
=
new
XBitmapEntry
(
aGraphic
,
aName
);
pBitmapList
->
Insert
(
pEntry
);
m_
pBitmapList
->
Insert
(
pEntry
);
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
m_pLbBitmaps
->
Append
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
);
m_pLbBitmaps
->
Append
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
);
m_pLbBitmaps
->
SelectEntryPos
(
m_pLbBitmaps
->
GetEntryCount
()
-
1
);
m_pLbBitmaps
->
SelectEntryPos
(
m_pLbBitmaps
->
GetEntryCount
()
-
1
);
*
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
ChangeBitmapHdl_Impl
(
this
);
ChangeBitmapHdl_Impl
(
this
);
}
}
...
@@ -681,7 +681,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
...
@@ -681,7 +681,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
{
{
ResMgr
&
rMgr
=
CUI_MGR
();
ResMgr
&
rMgr
=
CUI_MGR
();
OUString
aDesc
(
ResId
(
RID_SVXSTR_DESC_NEW_BITMAP
,
rMgr
)
);
OUString
aDesc
(
ResId
(
RID_SVXSTR_DESC_NEW_BITMAP
,
rMgr
)
);
OUString
aName
(
pBitmapList
->
GetBitmap
(
nPos
)
->
GetName
()
);
OUString
aName
(
m_
pBitmapList
->
GetBitmap
(
nPos
)
->
GetName
()
);
OUString
aOldName
=
aName
;
OUString
aOldName
=
aName
;
SvxAbstractDialogFactory
*
pFact
=
SvxAbstractDialogFactory
::
Create
();
SvxAbstractDialogFactory
*
pFact
=
SvxAbstractDialogFactory
::
Create
();
...
@@ -689,7 +689,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
...
@@ -689,7 +689,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
boost
::
scoped_ptr
<
AbstractSvxNameDialog
>
pDlg
(
pFact
->
CreateSvxNameDialog
(
GetParentDialog
(),
aName
,
aDesc
));
boost
::
scoped_ptr
<
AbstractSvxNameDialog
>
pDlg
(
pFact
->
CreateSvxNameDialog
(
GetParentDialog
(),
aName
,
aDesc
));
DBG_ASSERT
(
pDlg
,
"Dialog creation failed!"
);
DBG_ASSERT
(
pDlg
,
"Dialog creation failed!"
);
long
nCount
=
pBitmapList
->
Count
();
long
nCount
=
m_
pBitmapList
->
Count
();
bool
bLoop
=
true
;
bool
bLoop
=
true
;
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
const
StyleSettings
&
rStyleSettings
=
Application
::
GetSettings
().
GetStyleSettings
();
...
@@ -700,7 +700,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
...
@@ -700,7 +700,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
for
(
long
i
=
0
;
i
<
nCount
&&
bDifferent
;
i
++
)
{
{
if
(
aName
==
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
&&
if
(
aName
==
m_
pBitmapList
->
GetBitmap
(
i
)
->
GetName
()
&&
aName
!=
aOldName
)
aName
!=
aOldName
)
bDifferent
=
false
;
bDifferent
=
false
;
}
}
...
@@ -713,14 +713,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
...
@@ -713,14 +713,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickModifyHdl_Impl, Button*, void)
// #i123497# Need to replace the existing entry with a new one (old returned needs to be deleted)
// #i123497# Need to replace the existing entry with a new one (old returned needs to be deleted)
XBitmapEntry
*
pEntry
=
new
XBitmapEntry
(
Graphic
(
aBitmapEx
),
aName
);
XBitmapEntry
*
pEntry
=
new
XBitmapEntry
(
Graphic
(
aBitmapEx
),
aName
);
delete
pBitmapList
->
Replace
(
pEntry
,
nPos
);
delete
m_
pBitmapList
->
Replace
(
pEntry
,
nPos
);
m_pLbBitmaps
->
Modify
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
,
nPos
);
m_pLbBitmaps
->
Modify
(
rStyleSettings
.
GetListBoxPreviewDefaultPixelSize
(),
*
pEntry
,
nPos
);
m_pLbBitmaps
->
SelectEntryPos
(
nPos
);
m_pLbBitmaps
->
SelectEntryPos
(
nPos
);
*
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
bBmpChanged
=
false
;
m_
bBmpChanged
=
false
;
}
}
else
else
{
{
...
@@ -746,7 +746,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickDeleteHdl_Impl, Button*, void)
...
@@ -746,7 +746,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickDeleteHdl_Impl, Button*, void)
if
(
aQueryBox
->
Execute
()
==
RET_YES
)
if
(
aQueryBox
->
Execute
()
==
RET_YES
)
{
{
delete
pBitmapList
->
Remove
(
nPos
);
delete
m_
pBitmapList
->
Remove
(
nPos
);
m_pLbBitmaps
->
RemoveEntry
(
nPos
);
m_pLbBitmaps
->
RemoveEntry
(
nPos
);
m_pLbBitmaps
->
SelectEntryPos
(
0
);
m_pLbBitmaps
->
SelectEntryPos
(
0
);
...
@@ -755,11 +755,11 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickDeleteHdl_Impl, Button*, void)
...
@@ -755,11 +755,11 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickDeleteHdl_Impl, Button*, void)
ChangeBitmapHdl_Impl
(
this
);
ChangeBitmapHdl_Impl
(
this
);
*
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
|=
ChangeType
::
MODIFIED
;
}
}
}
}
// determine button state
// determine button state
if
(
!
pBitmapList
->
Count
()
)
if
(
!
m_
pBitmapList
->
Count
()
)
{
{
m_pBtnModify
->
Disable
();
m_pBtnModify
->
Disable
();
m_pBtnDelete
->
Disable
();
m_pBtnDelete
->
Disable
();
...
@@ -774,14 +774,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
...
@@ -774,14 +774,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
sal_uInt16
nReturn
=
RET_YES
;
sal_uInt16
nReturn
=
RET_YES
;
ResMgr
&
rMgr
=
CUI_MGR
();
ResMgr
&
rMgr
=
CUI_MGR
();
if
(
*
pnBitmapListState
&
ChangeType
::
MODIFIED
)
if
(
*
m_
pnBitmapListState
&
ChangeType
::
MODIFIED
)
{
{
nReturn
=
ScopedVclPtrInstance
<
MessageDialog
>::
Create
(
GetParentDialog
()
nReturn
=
ScopedVclPtrInstance
<
MessageDialog
>::
Create
(
GetParentDialog
()
,
"AskSaveList"
,
"AskSaveList"
,
"cui/ui/querysavelistdialog.ui"
)
->
Execute
();
,
"cui/ui/querysavelistdialog.ui"
)
->
Execute
();
if
(
nReturn
==
RET_YES
)
if
(
nReturn
==
RET_YES
)
pBitmapList
->
Save
();
m_
pBitmapList
->
Save
();
}
}
if
(
nReturn
!=
RET_CANCEL
)
if
(
nReturn
!=
RET_CANCEL
)
...
@@ -818,14 +818,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
...
@@ -818,14 +818,14 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
pBmpList
->
SetName
(
aURL
.
getName
()
);
pBmpList
->
SetName
(
aURL
.
getName
()
);
if
(
pBmpList
->
Load
()
)
if
(
pBmpList
->
Load
()
)
{
{
pBitmapList
=
pBmpList
;
m_
pBitmapList
=
pBmpList
;
static_cast
<
SvxAreaTabDialog
*>
(
GetParentDialog
()
)
->
SetNewBitmapList
(
pBitmapList
);
static_cast
<
SvxAreaTabDialog
*>
(
GetParentDialog
()
)
->
SetNewBitmapList
(
m_
pBitmapList
);
m_pLbBitmaps
->
Clear
();
m_pLbBitmaps
->
Clear
();
m_pLbBitmaps
->
Fill
(
pBitmapList
);
m_pLbBitmaps
->
Fill
(
m_
pBitmapList
);
Reset
(
&
rOutAttrs
);
Reset
(
&
m_
rOutAttrs
);
pBitmapList
->
SetName
(
aURL
.
getName
()
);
m_
pBitmapList
->
SetName
(
aURL
.
getName
()
);
// determining (possibly cutting) the name
// determining (possibly cutting) the name
// displaying it in the GroupBox
// displaying it in the GroupBox
...
@@ -840,8 +840,8 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
...
@@ -840,8 +840,8 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
else
else
aString
+=
aURL
.
getBase
();
aString
+=
aURL
.
getBase
();
*
pnBitmapListState
|=
ChangeType
::
CHANGED
;
*
m_
pnBitmapListState
|=
ChangeType
::
CHANGED
;
*
pnBitmapListState
&=
~
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
&=
~
ChangeType
::
MODIFIED
;
LeaveWait
();
LeaveWait
();
}
}
else
else
...
@@ -855,7 +855,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
...
@@ -855,7 +855,7 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickLoadHdl_Impl, Button*, void)
}
}
// determine button state
// determine button state
if
(
pBitmapList
->
Count
()
)
if
(
m_
pBitmapList
->
Count
()
)
{
{
m_pBtnModify
->
Enable
();
m_pBtnModify
->
Enable
();
m_pBtnDelete
->
Enable
();
m_pBtnDelete
->
Enable
();
...
@@ -889,9 +889,9 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
...
@@ -889,9 +889,9 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
INetURLObject
aFile
(
aLastDir
);
INetURLObject
aFile
(
aLastDir
);
DBG_ASSERT
(
aFile
.
GetProtocol
()
!=
INetProtocol
::
NotValid
,
"invalid URL"
);
DBG_ASSERT
(
aFile
.
GetProtocol
()
!=
INetProtocol
::
NotValid
,
"invalid URL"
);
if
(
!
pBitmapList
->
GetName
().
isEmpty
()
)
if
(
!
m_
pBitmapList
->
GetName
().
isEmpty
()
)
{
{
aFile
.
Append
(
pBitmapList
->
GetName
()
);
aFile
.
Append
(
m_
pBitmapList
->
GetName
()
);
if
(
aFile
.
getExtension
().
isEmpty
()
)
if
(
aFile
.
getExtension
().
isEmpty
()
)
aFile
.
SetExtension
(
OUString
(
"sob"
)
);
aFile
.
SetExtension
(
OUString
(
"sob"
)
);
...
@@ -906,10 +906,10 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
...
@@ -906,10 +906,10 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
aPathURL
.
removeSegment
();
aPathURL
.
removeSegment
();
aPathURL
.
removeFinalSlash
();
aPathURL
.
removeFinalSlash
();
pBitmapList
->
SetName
(
aURL
.
getName
()
);
m_
pBitmapList
->
SetName
(
aURL
.
getName
()
);
pBitmapList
->
SetPath
(
aPathURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
m_
pBitmapList
->
SetPath
(
aPathURL
.
GetMainURL
(
INetURLObject
::
NO_DECODE
)
);
if
(
pBitmapList
->
Save
()
)
if
(
m_
pBitmapList
->
Save
()
)
{
{
// determining (possibly cutting) the name
// determining (possibly cutting) the name
// displaying it in the GroupBox
// displaying it in the GroupBox
...
@@ -924,8 +924,8 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
...
@@ -924,8 +924,8 @@ IMPL_LINK_NOARG_TYPED(SvxBitmapTabPage, ClickSaveHdl_Impl, Button*, void)
else
else
aString
+=
aURL
.
getBase
();
aString
+=
aURL
.
getBase
();
*
pnBitmapListState
|=
ChangeType
::
SAVED
;
*
m_
pnBitmapListState
|=
ChangeType
::
SAVED
;
*
pnBitmapListState
&=
~
ChangeType
::
MODIFIED
;
*
m_
pnBitmapListState
&=
~
ChangeType
::
MODIFIED
;
}
}
else
else
{
{
...
@@ -946,11 +946,11 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangePixelColorHdl_Impl)
...
@@ -946,11 +946,11 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangePixelColorHdl_Impl)
m_pBitmapCtl
->
SetPixelColor
(
m_pLbColor
->
GetSelectEntryColor
()
);
m_pBitmapCtl
->
SetPixelColor
(
m_pLbColor
->
GetSelectEntryColor
()
);
// get bitmap and display it
// get bitmap and display it
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
bBmpChanged
=
true
;
m_
bBmpChanged
=
true
;
return
0L
;
return
0L
;
}
}
...
@@ -965,11 +965,11 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBackgrndColorHdl_Impl)
...
@@ -965,11 +965,11 @@ IMPL_LINK_NOARG(SvxBitmapTabPage, ChangeBackgrndColorHdl_Impl)
m_pBitmapCtl
->
SetBackgroundColor
(
m_pLbBackgroundColor
->
GetSelectEntryColor
()
);
m_pBitmapCtl
->
SetBackgroundColor
(
m_pLbBackgroundColor
->
GetSelectEntryColor
()
);
// get bitmap and display it
// get bitmap and display it
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
bBmpChanged
=
true
;
m_
bBmpChanged
=
true
;
return
0L
;
return
0L
;
}
}
...
@@ -983,11 +983,11 @@ void SvxBitmapTabPage::PointChanged( vcl::Window* pWindow, RECT_POINT )
...
@@ -983,11 +983,11 @@ void SvxBitmapTabPage::PointChanged( vcl::Window* pWindow, RECT_POINT )
m_pBitmapCtl
->
SetBmpArray
(
m_pCtlPixel
->
GetBitmapPixelPtr
()
);
m_pBitmapCtl
->
SetBmpArray
(
m_pCtlPixel
->
GetBitmapPixelPtr
()
);
// get bitmap and display it
// get bitmap and display it
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_
rXFSet
.
Put
(
XFillBitmapItem
(
OUString
(),
Graphic
(
m_pBitmapCtl
->
GetBitmapEx
())));
m_pCtlPreview
->
SetAttributes
(
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
SetAttributes
(
m_
aXFillAttr
.
GetItemSet
()
);
m_pCtlPreview
->
Invalidate
();
m_pCtlPreview
->
Invalidate
();
bBmpChanged
=
true
;
m_
bBmpChanged
=
true
;
}
}
}
}
...
...
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