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
3c3257e4
Kaydet (Commit)
3c3257e4
authored
Eki 27, 2014
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fdo#84844 Sidebar: Use SvxColorToolBoxControl for fill color
Change-Id: I0aa9dbef960391334097b68c980064724435db38
üst
2dfa6b15
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
178 deletions
+8
-178
links.txt
icon-themes/tango/links.txt
+0
-1
dialogs.hrc
include/svx/dialogs.hrc
+2
-4
helpid.hrc
svx/inc/helpid.hrc
+0
-1
AreaPropertyPanel.cxx
svx/source/sidebar/area/AreaPropertyPanel.cxx
+3
-123
AreaPropertyPanel.hrc
svx/source/sidebar/area/AreaPropertyPanel.hrc
+0
-2
AreaPropertyPanel.hxx
svx/source/sidebar/area/AreaPropertyPanel.hxx
+0
-23
AreaPropertyPanel.src
svx/source/sidebar/area/AreaPropertyPanel.src
+0
-21
sidebararea.ui
svx/uiconfig/ui/sidebararea.ui
+3
-3
No files found.
icon-themes/tango/links.txt
Dosyayı görüntüle @
3c3257e4
...
@@ -315,7 +315,6 @@ svx/res/symphony/rotate_left.png cmd/sc_rotateleft.png
...
@@ -315,7 +315,6 @@ svx/res/symphony/rotate_left.png cmd/sc_rotateleft.png
svx/res/symphony/rotate_right.png cmd/sc_rotateright.png
svx/res/symphony/rotate_right.png cmd/sc_rotateright.png
svx/res/symphony/sc_backgroundcolor.png cmd/sc_formatarea.png
svx/res/symphony/sc_backgroundcolor.png cmd/sc_formatarea.png
svx/res/symphony/sch_backgroundcolor.png cmd/sc_formatarea.png
svx/res/symphony/sch_backgroundcolor.png cmd/sc_formatarea.png
svx/res/symphony/fill_color.png cmd/sc_formatarea.png
sw/res/sidebar/pageproppanel/last_custom_common.png svx/res/symphony/last_custom_common.png
sw/res/sidebar/pageproppanel/last_custom_common.png svx/res/symphony/last_custom_common.png
sw/res/sidebar/pageproppanel/last_custom_common_grey.png svx/res/symphony/last_custom_common_grey.png
sw/res/sidebar/pageproppanel/last_custom_common_grey.png svx/res/symphony/last_custom_common_grey.png
sc/imglst/na05.png cmd/sc_upsearch.png
sc/imglst/na05.png cmd/sc_upsearch.png
...
...
include/svx/dialogs.hrc
Dosyayı görüntüle @
3c3257e4
...
@@ -206,7 +206,6 @@
...
@@ -206,7 +206,6 @@
#define RID_POPUPPANEL_TEXTPAGE_FONT_COLOR (RID_SVX_START + 316)
#define RID_POPUPPANEL_TEXTPAGE_FONT_COLOR (RID_SVX_START + 316)
#define RID_POPUPPANEL_TEXTPAGE_SPACING (RID_SVX_START + 317)
#define RID_POPUPPANEL_TEXTPAGE_SPACING (RID_SVX_START + 317)
#define RID_POPUPPANEL_AERAPAGE_COLOR (RID_SVX_START + 319)
#define RID_POPUPPANEL_AREAPAGE_TRGR (RID_SVX_START + 320)
#define RID_POPUPPANEL_AREAPAGE_TRGR (RID_SVX_START + 320)
#define RID_SIDEBAR_LINE_PANEL (RID_SVX_START + 321)
#define RID_SIDEBAR_LINE_PANEL (RID_SVX_START + 321)
...
@@ -1043,9 +1042,8 @@
...
@@ -1043,9 +1042,8 @@
#define IMG_RADIAL (RID_SVX_SIDEBAR_BEGIN + 33)
#define IMG_RADIAL (RID_SVX_SIDEBAR_BEGIN + 33)
#define IMG_SQUARE (RID_SVX_SIDEBAR_BEGIN + 34)
#define IMG_SQUARE (RID_SVX_SIDEBAR_BEGIN + 34)
#define IMG_LINEAR (RID_SVX_SIDEBAR_BEGIN + 35)
#define IMG_LINEAR (RID_SVX_SIDEBAR_BEGIN + 35)
#define IMG_AREA_COLOR (RID_SVX_SIDEBAR_BEGIN + 36)
#define IMG_ROT_LEFT (RID_SVX_SIDEBAR_BEGIN + 36)
#define IMG_ROT_LEFT (RID_SVX_SIDEBAR_BEGIN + 37)
#define IMG_ROT_RIGHT (RID_SVX_SIDEBAR_BEGIN + 37)
#define IMG_ROT_RIGHT (RID_SVX_SIDEBAR_BEGIN + 38)
#define RID_SVX_SIDEBAR_END (RID_SVX_START + 1279)
#define RID_SVX_SIDEBAR_END (RID_SVX_START + 1279)
#define RID_SVXIMG_GREENCHECK (RID_SVX_START + 1280)
#define RID_SVXIMG_GREENCHECK (RID_SVX_START + 1280)
...
...
svx/inc/helpid.hrc
Dosyayı görüntüle @
3c3257e4
...
@@ -118,7 +118,6 @@
...
@@ -118,7 +118,6 @@
#define HID_PPROPERTYPANEL_LINE_VS_STYLE "SVX_HID_PPROPERTYPANEL_LINE_VS_STYLE"
#define HID_PPROPERTYPANEL_LINE_VS_STYLE "SVX_HID_PPROPERTYPANEL_LINE_VS_STYLE"
#define HID_PPROPERTYPANEL_LINE_BTN_STYLE "SVX_HID_PPROPERTYPANEL_LINE_BTN_STYLE"
#define HID_PPROPERTYPANEL_LINE_BTN_STYLE "SVX_HID_PPROPERTYPANEL_LINE_BTN_STYLE"
#define HID_PPROPERTYPANEL_TEXT_SPACING_VS "SVX_HID_PPROPERTYPANEL_TEXT_SPACING_VS"
#define HID_PPROPERTYPANEL_TEXT_SPACING_VS "SVX_HID_PPROPERTYPANEL_TEXT_SPACING_VS"
#define HID_PPROPERTYPANEL_AREA_COLOR_VS "SVX_HID_PPROPERTYPANEL_AREA_COLOR_VS"
#define HID_PPROPERTYPANEL_AREA_LB_FILL_TYPES "SVX_HID_PPROPERTYPANEL_AREA_LB_FILL_TYPES"
#define HID_PPROPERTYPANEL_AREA_LB_FILL_TYPES "SVX_HID_PPROPERTYPANEL_AREA_LB_FILL_TYPES"
#define HID_PPROPERTYPANEL_AREA_LB_FILL_ATTR "SVX_HID_PPROPERTYPANEL_AREA_LB_FILL_ATTR"
#define HID_PPROPERTYPANEL_AREA_LB_FILL_ATTR "SVX_HID_PPROPERTYPANEL_AREA_LB_FILL_ATTR"
...
...
svx/source/sidebar/area/AreaPropertyPanel.cxx
Dosyayı görüntüle @
3c3257e4
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
#include <svx/svxitems.hrc>
#include <svx/svxitems.hrc>
#include <vcl/toolbox.hxx>
#include <vcl/toolbox.hxx>
#include <svtools/toolbarmenu.hxx>
#include <svtools/toolbarmenu.hxx>
#include <svx/sidebar/ColorControl.hxx>
#include <boost/bind.hpp>
#include <boost/bind.hpp>
...
@@ -46,7 +45,6 @@ using namespace css;
...
@@ -46,7 +45,6 @@ using namespace css;
using
namespace
css
::
uno
;
using
namespace
css
::
uno
;
using
::
sfx2
::
sidebar
::
Theme
;
using
::
sfx2
::
sidebar
::
Theme
;
const
char
UNO_SIDEBARCOLOR
[]
=
".uno:sidebarcolor"
;
const
char
UNO_SIDEBARGRADIENT
[]
=
".uno:sidebargradient"
;
const
char
UNO_SIDEBARGRADIENT
[]
=
".uno:sidebargradient"
;
namespace
svx
{
namespace
sidebar
{
namespace
svx
{
namespace
sidebar
{
...
@@ -65,7 +63,6 @@ AreaPropertyPanel::AreaPropertyPanel(
...
@@ -65,7 +63,6 @@ AreaPropertyPanel::AreaPropertyPanel(
SfxBindings
*
pBindings
)
SfxBindings
*
pBindings
)
:
PanelLayout
(
pParent
,
"AreaPropertyPanel"
,
"svx/ui/sidebararea.ui"
,
rxFrame
),
:
PanelLayout
(
pParent
,
"AreaPropertyPanel"
,
"svx/ui/sidebararea.ui"
,
rxFrame
),
meLastXFS
(
static_cast
<
sal_uInt16
>
(
-
1
)),
meLastXFS
(
static_cast
<
sal_uInt16
>
(
-
1
)),
maLastColor
(
Color
(
COL_DEFAULT_SHAPE_FILLING
)),
mnLastPosGradient
(
0
),
mnLastPosGradient
(
0
),
mnLastPosHatch
(
0
),
mnLastPosHatch
(
0
),
mnLastPosBitmap
(
0
),
mnLastPosBitmap
(
0
),
...
@@ -86,7 +83,6 @@ AreaPropertyPanel::AreaPropertyPanel(
...
@@ -86,7 +83,6 @@ AreaPropertyPanel::AreaPropertyPanel(
maGradientControl
(
SID_ATTR_FILL_GRADIENT
,
*
pBindings
,
*
this
),
maGradientControl
(
SID_ATTR_FILL_GRADIENT
,
*
pBindings
,
*
this
),
maHatchControl
(
SID_ATTR_FILL_HATCH
,
*
pBindings
,
*
this
),
maHatchControl
(
SID_ATTR_FILL_HATCH
,
*
pBindings
,
*
this
),
maBitmapControl
(
SID_ATTR_FILL_BITMAP
,
*
pBindings
,
*
this
),
maBitmapControl
(
SID_ATTR_FILL_BITMAP
,
*
pBindings
,
*
this
),
maColorTableControl
(
SID_COLOR_TABLE
,
*
pBindings
,
*
this
),
maGradientListControl
(
SID_GRADIENT_LIST
,
*
pBindings
,
*
this
),
maGradientListControl
(
SID_GRADIENT_LIST
,
*
pBindings
,
*
this
),
maHatchListControl
(
SID_HATCH_LIST
,
*
pBindings
,
*
this
),
maHatchListControl
(
SID_HATCH_LIST
,
*
pBindings
,
*
this
),
maBitmapListControl
(
SID_BITMAP_LIST
,
*
pBindings
,
*
this
),
maBitmapListControl
(
SID_BITMAP_LIST
,
*
pBindings
,
*
this
),
...
@@ -98,14 +94,11 @@ AreaPropertyPanel::AreaPropertyPanel(
...
@@ -98,14 +94,11 @@ AreaPropertyPanel::AreaPropertyPanel(
maImgRadial
(
SVX_RES
(
IMG_RADIAL
)),
maImgRadial
(
SVX_RES
(
IMG_RADIAL
)),
maImgSquare
(
SVX_RES
(
IMG_SQUARE
)),
maImgSquare
(
SVX_RES
(
IMG_SQUARE
)),
maImgLinear
(
SVX_RES
(
IMG_LINEAR
)),
maImgLinear
(
SVX_RES
(
IMG_LINEAR
)),
maImgColor
(
SVX_RES
(
IMG_AREA_COLOR
)),
maTrGrPopup
(
this
,
::
boost
::
bind
(
&
AreaPropertyPanel
::
CreateTransparencyGradientControl
,
this
,
_1
)),
maTrGrPopup
(
this
,
::
boost
::
bind
(
&
AreaPropertyPanel
::
CreateTransparencyGradientControl
,
this
,
_1
)),
maColorPopup
(
this
,
::
boost
::
bind
(
&
AreaPropertyPanel
::
CreateColorPopupControl
,
this
,
_1
)),
mpFloatTransparenceItem
(),
mpFloatTransparenceItem
(),
mpTransparanceItem
(),
mpTransparanceItem
(),
mxFrame
(
rxFrame
),
mxFrame
(
rxFrame
),
mpBindings
(
pBindings
),
mpBindings
(
pBindings
)
mbColorAvail
(
true
)
{
{
get
(
mpColorTextFT
,
"filllabel"
);
get
(
mpColorTextFT
,
"filllabel"
);
get
(
mpLbFillType
,
"fillstyle"
);
get
(
mpLbFillType
,
"fillstyle"
);
...
@@ -116,9 +109,6 @@ AreaPropertyPanel::AreaPropertyPanel(
...
@@ -116,9 +109,6 @@ AreaPropertyPanel::AreaPropertyPanel(
get
(
mpMTRTransparent
,
"settransparency"
);
get
(
mpMTRTransparent
,
"settransparency"
);
get
(
mpBTNGradient
,
"selectgradient"
);
get
(
mpBTNGradient
,
"selectgradient"
);
const
sal_uInt16
nIdColor
=
mpToolBoxColor
->
GetItemId
(
UNO_SIDEBARCOLOR
);
mpColorUpdater
.
reset
(
new
::
svx
::
ToolboxButtonColorUpdater
(
SID_ATTR_FILL_COLOR
,
nIdColor
,
mpToolBoxColor
)),
Initialize
();
Initialize
();
}
}
...
@@ -164,18 +154,6 @@ void AreaPropertyPanel::Initialize()
...
@@ -164,18 +154,6 @@ void AreaPropertyPanel::Initialize()
aLink
=
LINK
(
this
,
AreaPropertyPanel
,
SelectFillAttrHdl
);
aLink
=
LINK
(
this
,
AreaPropertyPanel
,
SelectFillAttrHdl
);
mpLbFillAttr
->
SetSelectHdl
(
aLink
);
mpLbFillAttr
->
SetSelectHdl
(
aLink
);
//add for new color picker
mpLbFillAttr
->
Hide
();
const
sal_uInt16
nIdColor
=
mpToolBoxColor
->
GetItemId
(
UNO_SIDEBARCOLOR
);
mpToolBoxColor
->
SetItemImage
(
nIdColor
,
maImgColor
);
mpToolBoxColor
->
SetItemBits
(
nIdColor
,
mpToolBoxColor
->
GetItemBits
(
nIdColor
)
|
ToolBoxItemBits
::
DROPDOWNONLY
);
mpToolBoxColor
->
SetItemText
(
nIdColor
,
msHelpFillAttr
);
aLink
=
LINK
(
this
,
AreaPropertyPanel
,
ToolBoxColorDropHdl
);
mpToolBoxColor
->
SetDropdownClickHdl
(
aLink
);
mpToolBoxColor
->
SetSelectHdl
(
aLink
);
//add end
mpLBTransType
->
SetSelectHdl
(
LINK
(
this
,
AreaPropertyPanel
,
ChangeTrgrTypeHdl_Impl
));
mpLBTransType
->
SetSelectHdl
(
LINK
(
this
,
AreaPropertyPanel
,
ChangeTrgrTypeHdl_Impl
));
mpLBTransType
->
SetAccessibleName
(
OUString
(
"Transparency"
));
//wj acc
mpLBTransType
->
SetAccessibleName
(
OUString
(
"Transparency"
));
//wj acc
...
@@ -237,7 +215,7 @@ IMPL_LINK( AreaPropertyPanel, SelectFillTypeHdl, ListBox *, pToolBox )
...
@@ -237,7 +215,7 @@ IMPL_LINK( AreaPropertyPanel, SelectFillTypeHdl, ListBox *, pToolBox )
mpLbFillAttr
->
Hide
();
mpLbFillAttr
->
Hide
();
mpToolBoxColor
->
Show
();
mpToolBoxColor
->
Show
();
const
OUString
aTmpStr
;
const
OUString
aTmpStr
;
const
Color
aColor
=
m
aLastColor
;
const
Color
aColor
=
m
pColorItem
->
GetColorValue
()
;
const
XFillColorItem
aXFillColorItem
(
aTmpStr
,
aColor
);
const
XFillColorItem
aXFillColorItem
(
aTmpStr
,
aColor
);
// #i122676# change FillStyle and Color in one call
// #i122676# change FillStyle and Color in one call
...
@@ -504,41 +482,6 @@ IMPL_LINK( AreaPropertyPanel, SelectFillAttrHdl, ListBox*, pToolBox )
...
@@ -504,41 +482,6 @@ IMPL_LINK( AreaPropertyPanel, SelectFillAttrHdl, ListBox*, pToolBox )
}
}
IMPL_LINK
(
AreaPropertyPanel
,
ToolBoxColorDropHdl
,
ToolBox
*
,
pToolBox
)
{
const
OUString
aCommand
(
pToolBox
->
GetItemCommand
(
pToolBox
->
GetCurItemId
()));
if
(
UNO_SIDEBARCOLOR
==
aCommand
)
{
maColorPopup
.
Show
(
*
pToolBox
);
if
(
mpColorItem
)
{
maColorPopup
.
SetCurrentColor
(
mpColorItem
->
GetColorValue
(),
mbColorAvail
);
}
else
{
maColorPopup
.
SetCurrentColor
(
COL_WHITE
,
false
);
}
}
return
0
;
}
void
AreaPropertyPanel
::
SetColor
(
const
OUString
&
rsColorName
,
const
Color
aColor
)
{
const
XFillColorItem
aXFillColorItem
(
rsColorName
,
aColor
);
mpBindings
->
GetDispatcher
()
->
Execute
(
SID_ATTR_FILL_COLOR
,
SfxCallMode
::
RECORD
,
&
aXFillColorItem
,
0L
);
maLastColor
=
aColor
;
}
PopupControl
*
AreaPropertyPanel
::
CreateTransparencyGradientControl
(
PopupContainer
*
pParent
)
PopupControl
*
AreaPropertyPanel
::
CreateTransparencyGradientControl
(
PopupContainer
*
pParent
)
{
{
return
new
AreaTransparencyGradientControl
(
pParent
,
*
this
);
return
new
AreaTransparencyGradientControl
(
pParent
,
*
this
);
...
@@ -547,22 +490,6 @@ PopupControl* AreaPropertyPanel::CreateTransparencyGradientControl (PopupContain
...
@@ -547,22 +490,6 @@ PopupControl* AreaPropertyPanel::CreateTransparencyGradientControl (PopupContain
PopupControl
*
AreaPropertyPanel
::
CreateColorPopupControl
(
PopupContainer
*
pParent
)
{
return
new
ColorControl
(
pParent
,
mpBindings
,
SVX_RES
(
RID_POPUPPANEL_AERAPAGE_COLOR
),
SVX_RES
(
VS_COLOR
),
::
boost
::
bind
(
&
AreaPropertyPanel
::
GetLastColor
,
this
),
::
boost
::
bind
(
&
AreaPropertyPanel
::
SetColor
,
this
,
_1
,
_2
),
pParent
,
0
);
}
void
AreaPropertyPanel
::
SetupIcons
(
void
)
void
AreaPropertyPanel
::
SetupIcons
(
void
)
{
{
if
(
Theme
::
GetBoolean
(
Theme
::
Bool_UseSymphonyIcons
))
if
(
Theme
::
GetBoolean
(
Theme
::
Bool_UseSymphonyIcons
))
...
@@ -857,24 +784,7 @@ void AreaPropertyPanel::NotifyItemUpdate(
...
@@ -857,24 +784,7 @@ void AreaPropertyPanel::NotifyItemUpdate(
mpLbFillAttr
->
Hide
();
mpLbFillAttr
->
Hide
();
mpToolBoxColor
->
Show
();
mpToolBoxColor
->
Show
();
if
(
SfxItemState
::
DEFAULT
==
eState
)
Update
();
{
mpToolBoxColor
->
Enable
();
mbColorAvail
=
true
;
// maLastColor = mpColorItem->GetColorValue();
Update
();
}
else
if
(
SfxItemState
::
DISABLED
==
eState
)
{
mpToolBoxColor
->
Disable
();
mbColorAvail
=
false
;
mpColorUpdater
->
Update
(
COL_WHITE
);
}
else
{
mbColorAvail
=
false
;
mpColorUpdater
->
Update
(
COL_WHITE
);
}
}
}
break
;
break
;
}
}
...
@@ -965,31 +875,6 @@ void AreaPropertyPanel::NotifyItemUpdate(
...
@@ -965,31 +875,6 @@ void AreaPropertyPanel::NotifyItemUpdate(
}
}
break
;
break
;
}
}
case
SID_COLOR_TABLE
:
{
if
(
SfxItemState
::
DEFAULT
==
eState
)
{
if
(
mpStyleItem
&&
drawing
::
FillStyle_SOLID
==
(
drawing
::
FillStyle
)
mpStyleItem
->
GetValue
())
{
if
(
mpColorItem
)
{
const
Color
aColor
=
mpColorItem
->
GetColorValue
();
const
SfxObjectShell
*
pSh
=
SfxObjectShell
::
Current
();
const
SvxColorListItem
aItem
(
*
static_cast
<
const
SvxColorListItem
*>
(
pSh
->
GetItem
(
SID_COLOR_TABLE
)));
mpLbFillAttr
->
Clear
();
mpLbFillAttr
->
Enable
();
mpLbFillAttr
->
Fill
(
aItem
.
GetColorList
());
mpLbFillAttr
->
SelectEntry
(
aColor
);
}
else
{
mpLbFillAttr
->
SetNoSelection
();
}
}
}
break
;
}
case
SID_GRADIENT_LIST
:
case
SID_GRADIENT_LIST
:
{
{
if
(
SfxItemState
::
DEFAULT
==
eState
)
if
(
SfxItemState
::
DEFAULT
==
eState
)
...
@@ -1094,11 +979,6 @@ void AreaPropertyPanel::Update()
...
@@ -1094,11 +979,6 @@ void AreaPropertyPanel::Update()
{
{
mpLbFillAttr
->
Hide
();
mpLbFillAttr
->
Hide
();
mpToolBoxColor
->
Show
();
mpToolBoxColor
->
Show
();
mpColorUpdater
->
Update
(
mpColorItem
->
GetColorValue
());
}
else
{
mpColorUpdater
->
Update
(
COL_WHITE
);
}
}
break
;
break
;
}
}
...
...
svx/source/sidebar/area/AreaPropertyPanel.hrc
Dosyayı görüntüle @
3c3257e4
...
@@ -22,8 +22,6 @@
...
@@ -22,8 +22,6 @@
#define TBI_LEFT 1
#define TBI_LEFT 1
#define TBI_RIGHT 1
#define TBI_RIGHT 1
#define VS_COLOR 1
#define FT_TRGR_CENTER_X 9
#define FT_TRGR_CENTER_X 9
#define MTR_TRGR_CENTER_X 10
#define MTR_TRGR_CENTER_X 10
#define FT_TRGR_CENTER_Y 11
#define FT_TRGR_CENTER_Y 11
...
...
svx/source/sidebar/area/AreaPropertyPanel.hxx
Dosyayı görüntüle @
3c3257e4
...
@@ -19,7 +19,6 @@
...
@@ -19,7 +19,6 @@
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
#ifndef INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
#define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
#define INCLUDED_SVX_SOURCE_SIDEBAR_AREA_AREAPROPERTYPANEL_HXX
#include <svx/sidebar/ColorPopup.hxx>
#include "AreaTransparencyGradientPopup.hxx"
#include "AreaTransparencyGradientPopup.hxx"
#include <vcl/ctrl.hxx>
#include <vcl/ctrl.hxx>
#include <sfx2/sidebar/SidebarPanelBase.hxx>
#include <sfx2/sidebar/SidebarPanelBase.hxx>
...
@@ -37,13 +36,11 @@
...
@@ -37,13 +36,11 @@
#include <vcl/field.hxx>
#include <vcl/field.hxx>
#include <vcl/fixed.hxx>
#include <vcl/fixed.hxx>
#include <svl/intitem.hxx>
#include <svl/intitem.hxx>
#include <svx/tbxcolorupdate.hxx>
#include <com/sun/star/ui/XUIElement.hpp>
#include <com/sun/star/ui/XUIElement.hpp>
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_ptr.hpp>
class
XFillFloatTransparenceItem
;
class
XFillFloatTransparenceItem
;
namespace
svx
{
class
ToolboxButtonColorUpdater
;
}
namespace
svx
{
namespace
sidebar
{
namespace
svx
{
namespace
sidebar
{
...
@@ -85,7 +82,6 @@ public:
...
@@ -85,7 +82,6 @@ public:
private
:
private
:
sal_uInt16
meLastXFS
;
sal_uInt16
meLastXFS
;
Color
maLastColor
;
sal_Int32
mnLastPosGradient
;
sal_Int32
mnLastPosGradient
;
sal_Int32
mnLastPosHatch
;
sal_Int32
mnLastPosHatch
;
...
@@ -109,8 +105,6 @@ private:
...
@@ -109,8 +105,6 @@ private:
MetricField
*
mpMTRTransparent
;
MetricField
*
mpMTRTransparent
;
ToolBox
*
mpBTNGradient
;
ToolBox
*
mpBTNGradient
;
::
boost
::
scoped_ptr
<
::
svx
::
ToolboxButtonColorUpdater
>
mpColorUpdater
;
::
boost
::
scoped_ptr
<
XFillStyleItem
>
mpStyleItem
;
::
boost
::
scoped_ptr
<
XFillStyleItem
>
mpStyleItem
;
::
boost
::
scoped_ptr
<
XFillColorItem
>
mpColorItem
;
::
boost
::
scoped_ptr
<
XFillColorItem
>
mpColorItem
;
::
boost
::
scoped_ptr
<
XFillGradientItem
>
mpFillGradientItem
;
::
boost
::
scoped_ptr
<
XFillGradientItem
>
mpFillGradientItem
;
...
@@ -122,7 +116,6 @@ private:
...
@@ -122,7 +116,6 @@ private:
::
sfx2
::
sidebar
::
ControllerItem
maGradientControl
;
::
sfx2
::
sidebar
::
ControllerItem
maGradientControl
;
::
sfx2
::
sidebar
::
ControllerItem
maHatchControl
;
::
sfx2
::
sidebar
::
ControllerItem
maHatchControl
;
::
sfx2
::
sidebar
::
ControllerItem
maBitmapControl
;
::
sfx2
::
sidebar
::
ControllerItem
maBitmapControl
;
::
sfx2
::
sidebar
::
ControllerItem
maColorTableControl
;
::
sfx2
::
sidebar
::
ControllerItem
maGradientListControl
;
::
sfx2
::
sidebar
::
ControllerItem
maGradientListControl
;
::
sfx2
::
sidebar
::
ControllerItem
maHatchListControl
;
::
sfx2
::
sidebar
::
ControllerItem
maHatchListControl
;
::
sfx2
::
sidebar
::
ControllerItem
maBitmapListControl
;
::
sfx2
::
sidebar
::
ControllerItem
maBitmapListControl
;
...
@@ -135,12 +128,8 @@ private:
...
@@ -135,12 +128,8 @@ private:
Image
maImgRadial
;
Image
maImgRadial
;
Image
maImgSquare
;
Image
maImgSquare
;
Image
maImgLinear
;
Image
maImgLinear
;
Image
maImgColor
;
OUString
msHelpFillAttr
;
AreaTransparencyGradientPopup
maTrGrPopup
;
AreaTransparencyGradientPopup
maTrGrPopup
;
ColorPopup
maColorPopup
;
::
boost
::
scoped_ptr
<
XFillFloatTransparenceItem
>
mpFloatTransparenceItem
;
::
boost
::
scoped_ptr
<
XFillFloatTransparenceItem
>
mpFloatTransparenceItem
;
::
boost
::
scoped_ptr
<
SfxUInt16Item
>
mpTransparanceItem
;
::
boost
::
scoped_ptr
<
SfxUInt16Item
>
mpTransparanceItem
;
...
@@ -148,9 +137,6 @@ private:
...
@@ -148,9 +137,6 @@ private:
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
mxFrame
;
css
::
uno
::
Reference
<
css
::
frame
::
XFrame
>
mxFrame
;
SfxBindings
*
mpBindings
;
SfxBindings
*
mpBindings
;
/// bitfield
bool
mbColorAvail
:
1
;
DECL_LINK
(
SelectFillTypeHdl
,
ListBox
*
);
DECL_LINK
(
SelectFillTypeHdl
,
ListBox
*
);
DECL_LINK
(
SelectFillAttrHdl
,
ListBox
*
);
DECL_LINK
(
SelectFillAttrHdl
,
ListBox
*
);
DECL_LINK
(
ChangeTrgrTypeHdl_Impl
,
void
*
);
DECL_LINK
(
ChangeTrgrTypeHdl_Impl
,
void
*
);
...
@@ -160,10 +146,6 @@ private:
...
@@ -160,10 +146,6 @@ private:
PopupControl
*
CreateTransparencyGradientControl
(
PopupContainer
*
pParent
);
PopupControl
*
CreateTransparencyGradientControl
(
PopupContainer
*
pParent
);
DECL_LINK
(
ClickTrGrHdl_Impl
,
ToolBox
*
);
DECL_LINK
(
ClickTrGrHdl_Impl
,
ToolBox
*
);
// for color picker
PopupControl
*
CreateColorPopupControl
(
PopupContainer
*
pParent
);
DECL_LINK
(
ToolBoxColorDropHdl
,
ToolBox
*
);
//for new color picker
// constructor/destuctor
// constructor/destuctor
AreaPropertyPanel
(
AreaPropertyPanel
(
vcl
::
Window
*
pParent
,
vcl
::
Window
*
pParent
,
...
@@ -175,11 +157,6 @@ private:
...
@@ -175,11 +157,6 @@ private:
void
Initialize
();
void
Initialize
();
void
Update
();
void
Update
();
void
ImpUpdateTransparencies
();
void
ImpUpdateTransparencies
();
const
Color
&
GetLastColor
(
void
)
const
{
return
maLastColor
;}
void
SetColor
(
const
OUString
&
rsColorName
,
const
Color
aColor
);
};
};
...
...
svx/source/sidebar/area/AreaPropertyPanel.src
Dosyayı görüntüle @
3c3257e4
...
@@ -45,10 +45,6 @@ Image IMG_LINEAR
...
@@ -45,10 +45,6 @@ Image IMG_LINEAR
{
{
ImageBitmap = Bitmap{File = "symphony/linear.png";};
ImageBitmap = Bitmap{File = "symphony/linear.png";};
};
};
Image IMG_AREA_COLOR
{
ImageBitmap = Bitmap{File = "symphony/fill_color.png";};
};
Image IMG_ROT_LEFT
Image IMG_ROT_LEFT
{
{
ImageBitmap = Bitmap{File = "symphony/rotate_left.png";};
ImageBitmap = Bitmap{File = "symphony/rotate_left.png";};
...
@@ -236,22 +232,5 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
...
@@ -236,22 +232,5 @@ Control RID_POPUPPANEL_AREAPAGE_TRGR
Text [ en-US ] = "Rotate clockwise by 45 degrees." ;
Text [ en-US ] = "Rotate clockwise by 45 degrees." ;
};
};
};
};
Control RID_POPUPPANEL_AERAPAGE_COLOR
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
Control VS_COLOR
{
HelpID = HID_PPROPERTYPANEL_AREA_COLOR_VS;
Hide = TRUE ;
Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
TabStop = TRUE ;
Text = "Color";
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
svx/uiconfig/ui/sidebararea.ui
Dosyayı görüntüle @
3c3257e4
...
@@ -63,7 +63,7 @@
...
@@ -63,7 +63,7 @@
<property
name=
"can_focus"
>
False
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"hexpand"
>
True
</property>
<property
name=
"hexpand"
>
True
</property>
<child>
<child>
<object
class=
"
GtkToolbar
"
id=
"selectcolor"
>
<object
class=
"
sfxlo-SidebarToolBox
"
id=
"selectcolor"
>
<property
name=
"visible"
>
True
</property>
<property
name=
"visible"
>
True
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"can_focus"
>
False
</property>
<child>
<child>
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<property
name=
"has_tooltip"
>
True
</property>
<property
name=
"has_tooltip"
>
True
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Select the color to apply.
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Select the color to apply.
</property>
<property
name=
"tooltip_text"
translatable=
"yes"
>
Select the color to apply.
</property>
<property
name=
"tooltip_text"
translatable=
"yes"
>
Select the color to apply.
</property>
<property
name=
"action_name"
>
.uno:
sidebarc
olor
</property>
<property
name=
"action_name"
>
.uno:
FillC
olor
</property>
<property
name=
"use_underline"
>
True
</property>
<property
name=
"use_underline"
>
True
</property>
</object>
</object>
<packing>
<packing>
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
</child>
</child>
<child>
<child>
<object
class=
"svxlo-SvxFillAttrBox"
id=
"fillattr"
>
<object
class=
"svxlo-SvxFillAttrBox"
id=
"fillattr"
>
<property
name=
"visible"
>
Tru
e
</property>
<property
name=
"visible"
>
Fals
e
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"can_focus"
>
False
</property>
<property
name=
"has_tooltip"
>
True
</property>
<property
name=
"has_tooltip"
>
True
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Select the effect to apply.
</property>
<property
name=
"tooltip_markup"
translatable=
"yes"
>
Select the effect to apply.
</property>
...
...
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