[Libreoffice-commits] core.git: cui/source cui/uiconfig cui/UIConfig_cui.mk
Olivier Hallot
olivier.hallot at edx.srv.br
Tue Jul 16 05:54:07 PDT 2013
cui/UIConfig_cui.mk | 1
cui/source/inc/cuitabarea.hxx | 38 +-
cui/source/inc/helpid.hrc | 2
cui/source/tabpages/tabarea.hrc | 21 -
cui/source/tabpages/tabarea.src | 218 --------------
cui/source/tabpages/tparea.cxx | 296 +++++++++----------
cui/uiconfig/ui/transparencytabpage.ui | 494 +++++++++++++++++++++++++++++++++
7 files changed, 653 insertions(+), 417 deletions(-)
New commits:
commit 54cac10b7b0001d64f9ee10bd549c9e87c650a10
Author: Olivier Hallot <olivier.hallot at edx.srv.br>
Date: Mon Jul 15 18:41:00 2013 -0300
Convert Transparency tab page to widget UI
Change-Id: I5ef8e2b8d0ed888e8c05ed1a8e8f9f71ba4ca0ed
Reviewed-on: https://gerrit.libreoffice.org/4930
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/cui/UIConfig_cui.mk b/cui/UIConfig_cui.mk
index 915047d..0b0e978 100644
--- a/cui/UIConfig_cui.mk
+++ b/cui/UIConfig_cui.mk
@@ -85,6 +85,7 @@ $(eval $(call gb_UIConfig_add_uifiles,cui,\
cui/uiconfig/ui/storedwebconnectiondialog \
cui/uiconfig/ui/textflowpage \
cui/uiconfig/ui/thesaurus \
+ cui/uiconfig/ui/transparencytabpage \
cui/uiconfig/ui/twolinespage \
cui/uiconfig/ui/zoomdialog \
))
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx
index ea850cc..8c5470a 100644
--- a/cui/source/inc/cuitabarea.hxx
+++ b/cui/source/inc/cuitabarea.hxx
@@ -110,33 +110,29 @@ class SvxTransparenceTabPage : public SvxTabPage
sal_uInt16 nDlgType;
// main selection
- FixedLine aFlProp;
- RadioButton aRbtTransOff;
- RadioButton aRbtTransLinear;
- RadioButton aRbtTransGradient;
+ RadioButton* m_pRbtTransOff;
+ RadioButton* m_pRbtTransLinear;
+ RadioButton* m_pRbtTransGradient;
/// linear transparency
- MetricField aMtrTransparent;
+ MetricField* m_pMtrTransparent;
// gradient transparency
- FixedText aFtTrgrType;
- ListBox aLbTrgrGradientType;
- FixedText aFtTrgrCenterX;
- MetricField aMtrTrgrCenterX;
- FixedText aFtTrgrCenterY;
- MetricField aMtrTrgrCenterY;
- FixedText aFtTrgrAngle;
- MetricField aMtrTrgrAngle;
- FixedText aFtTrgrBorder;
- MetricField aMtrTrgrBorder;
- FixedText aFtTrgrStartValue;
- MetricField aMtrTrgrStartValue;
- FixedText aFtTrgrEndValue;
- MetricField aMtrTrgrEndValue;
+ VclGrid* m_pGridGradient;
+ ListBox* m_pLbTrgrGradientType;
+ FixedText* m_pFtTrgrCenterX;
+ MetricField* m_pMtrTrgrCenterX;
+ FixedText* m_pFtTrgrCenterY;
+ MetricField* m_pMtrTrgrCenterY;
+ FixedText* m_pFtTrgrAngle;
+ MetricField* m_pMtrTrgrAngle;
+ MetricField* m_pMtrTrgrBorder;
+ MetricField* m_pMtrTrgrStartValue;
+ MetricField* m_pMtrTrgrEndValue;
// preview
- SvxXRectPreview aCtlBitmapPreview;
- SvxXRectPreview aCtlXRectPreview;
+ SvxXRectPreview* m_pCtlBitmapPreview;
+ SvxXRectPreview* m_pCtlXRectPreview;
sal_Bool bBitmap;
XOutdevItemPool* pXPool;
diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc
index 2e22e73..a1b29ea 100644
--- a/cui/source/inc/helpid.hrc
+++ b/cui/source/inc/helpid.hrc
@@ -245,7 +245,7 @@
#define HID_VALUESET_NUM "CUI_HID_VALUESET_NUM"
#define HID_MEASURE_CTL_PREVIEW "CUI_HID_MEASURE_CTL_PREVIEW"
#define HID_SVXPAGE_SWPOSSIZE "CUI_HID_SVXPAGE_SWPOSSIZE"
-#define HID_AREA_TRANSPARENCE "CUI_HID_AREA_TRANSPARENCE"
+
#define HID_AREA_AREA "CUI_HID_AREA_AREA"
#define HID_AREA_SHADOW "CUI_HID_AREA_SHADOW"
#define HID_AREA_BITMAP "CUI_HID_AREA_BITMAP"
diff --git a/cui/source/tabpages/tabarea.hrc b/cui/source/tabpages/tabarea.hrc
index d579745..31bbbdb 100644
--- a/cui/source/tabpages/tabarea.hrc
+++ b/cui/source/tabpages/tabarea.hrc
@@ -94,27 +94,6 @@
#define FT_Y_SIZE 11
#define FT_BITMAPS_HIDDEN 12
-#define RBT_TRANS_OFF 8
-#define RBT_TRANS_LINEAR 9
-#define RBT_TRANS_GRADIENT 10
-#define CTL_TRANS_PREVIEW 19
-
-#define FT_TRGR_TYPE 12
-#define LB_TRGR_GRADIENT_TYPES 3
-#define FT_TRGR_CENTER_X 13
-#define MTR_TRGR_CENTER_X 4
-#define FT_TRGR_CENTER_Y 14
-#define MTR_TRGR_CENTER_Y 5
-#define FT_TRGR_ANGLE 15
-#define MTR_TRGR_ANGLE 6
-#define FT_TRGR_BORDER 16
-#define MTR_TRGR_BORDER 7
-#define FT_TRGR_START_VALUE 17
-#define MTR_TRGR_START_VALUE 8
-#define FT_TRGR_END_VALUE 18
-#define MTR_TRGR_END_VALUE 9
-#define MTR_TRANSPARENT 10
-
#define MTR_SHADOW_TRANSPARENT 11
// Hatch-Background on Area-TabPage
diff --git a/cui/source/tabpages/tabarea.src b/cui/source/tabpages/tabarea.src
index 3fffd78..4b6e543 100644
--- a/cui/source/tabpages/tabarea.src
+++ b/cui/source/tabpages/tabarea.src
@@ -28,224 +28,6 @@
#define TRANS_GRAD_OFFSET_X 6
#define TRANS_GRAD_OFFSET_Y 64
-TabPage RID_SVXPAGE_TRANSPARENCE
-{
- HelpID = HID_AREA_TRANSPARENCE;
- Hide = TRUE;
- Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT );
- FixedLine FL_PROP
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 248, 8 ) ;
- Text [ en-US ] = "Transparency mode";
- };
- RadioButton RBT_TRANS_OFF
- {
- HelpID = "cui:RadioButton:RID_SVXPAGE_TRANSPARENCE:RBT_TRANS_OFF";
- Pos = MAP_APPFONT ( 12 , 14 ) ;
- Size = MAP_APPFONT ( 110 , 10 ) ;
- Text [ en-US ] = "~No transparency";
- };
- RadioButton RBT_TRANS_LINEAR
- {
- HelpID = "cui:RadioButton:RID_SVXPAGE_TRANSPARENCE:RBT_TRANS_LINEAR";
- Pos = MAP_APPFONT ( 12 , 28 ) ;
- Size = MAP_APPFONT ( 60 , 10 ) ;
- Text [ en-US ] = "~Transparency";
- };
- MetricField MTR_TRANSPARENT
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRANSPARENT";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 26 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- RadioButton RBT_TRANS_GRADIENT
- {
- HelpID = "cui:RadioButton:RID_SVXPAGE_TRANSPARENCE:RBT_TRANS_GRADIENT";
- Pos = MAP_APPFONT ( 12 , 42 ) ;
- Size = MAP_APPFONT ( 110 , 10 ) ;
- Text [ en-US ] = "Gradient";
- };
- FixedText FT_TRGR_TYPE
- {
- Pos = MAP_APPFONT ( 21 , 56 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "Ty~pe";
- };
- ListBox LB_TRGR_GRADIENT_TYPES
- {
- HelpID = "cui:ListBox:RID_SVXPAGE_TRANSPARENCE:LB_TRGR_GRADIENT_TYPES";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 54 ) ;
- Size = MAP_APPFONT ( 53 , 63 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- StringList [ en-US ] =
- {
- < "Linear" ; Default ; > ;
- < "Axial" ; Default ; > ;
- < "Radial" ; Default ; > ;
- < "Ellipsoid" ; Default ; > ;
- < "Quadratic" ; Default ; > ;
- < "Square" ; Default ; > ;
- };
- };
- FixedText FT_TRGR_CENTER_X
- {
- Pos = MAP_APPFONT ( 21 , 72 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "Center ~X";
- };
- MetricField MTR_TRGR_CENTER_X
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_CENTER_X";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 70 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- FixedText FT_TRGR_CENTER_Y
- {
- Pos = MAP_APPFONT ( 21 , 88 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "Center ~Y";
- };
- MetricField MTR_TRGR_CENTER_Y
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_CENTER_Y";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 86 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- FixedText FT_TRGR_ANGLE
- {
- Pos = MAP_APPFONT ( 21 , 104 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "~Angle";
- };
- MetricField MTR_TRGR_ANGLE
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_ANGLE";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 102 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 359 ;
- Unit = FUNIT_CUSTOM ;
- Last = 359 ;
- SpinSize = 15 ;
- CustomUnitText [ en-US ] = " degrees";
- };
- FixedText FT_TRGR_BORDER
- {
- Pos = MAP_APPFONT ( 15 + TRANS_GRAD_OFFSET_X, 56 + TRANS_GRAD_OFFSET_Y) ;
- Size = MAP_APPFONT ( 41, 8 ) ;
- Text [ en-US ] = "~Border";
- };
- MetricField MTR_TRGR_BORDER
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_BORDER";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 66 + TRANS_GRAD_OFFSET_X, 54 + TRANS_GRAD_OFFSET_Y) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- FixedText FT_TRGR_START_VALUE
- {
- Pos = MAP_APPFONT ( 21 , 136 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "~Start value";
- };
- MetricField MTR_TRGR_START_VALUE
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_START_VALUE";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 134 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- FixedText FT_TRGR_END_VALUE
- {
- Pos = MAP_APPFONT ( 21 , 152 ) ;
- Size = MAP_APPFONT ( 41 , 8 ) ;
- Text [ en-US ] = "~End value";
- };
- MetricField MTR_TRGR_END_VALUE
- {
- HelpID = "cui:MetricField:RID_SVXPAGE_TRANSPARENCE:MTR_TRGR_END_VALUE";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 72 , 150 ) ;
- Size = MAP_APPFONT ( 40 , 12 ) ;
- TabStop = TRUE ;
- Repeat = TRUE ;
- Spin = TRUE ;
- Maximum = 100 ;
- StrictFormat = TRUE ;
- Unit = FUNIT_CUSTOM ;
- CustomUnitText = "%" ;
- Last = 100 ;
- SpinSize = 5 ;
- };
- Control CTL_BITMAP_PREVIEW
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 138 , 14 ) ;
- Size = MAP_APPFONT ( 110 , 42 ) ;
- };
- Control CTL_TRANS_PREVIEW
- {
- Border = TRUE ;
- Pos = MAP_APPFONT ( 138 , 14 ) ;
- Size = MAP_APPFONT ( 110 , 42 ) ;
- };
- Text [ en-US ] = "Transparency";
-};
-
// ------------------------------------------------------
TabPage RID_SVXPAGE_AREA
{
diff --git a/cui/source/tabpages/tparea.cxx b/cui/source/tabpages/tparea.cxx
index 8afcfff..60ee318 100644
--- a/cui/source/tabpages/tparea.cxx
+++ b/cui/source/tabpages/tparea.cxx
@@ -81,8 +81,8 @@ IMPL_LINK_NOARG(SvxTransparenceTabPage, ClickTransOffHdl_Impl)
// Preview
rXFSet.ClearItem (XATTR_FILLTRANSPARENCE);
rXFSet.ClearItem (XATTR_FILLFLOATTRANSPARENCE);
- aCtlXRectPreview.SetAttributes( aXFillAttr.GetItemSet() );
- aCtlBitmapPreview.SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlXRectPreview->SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlBitmapPreview->SetAttributes( aXFillAttr.GetItemSet() );
InvalidatePreview( sal_False );
@@ -117,12 +117,12 @@ IMPL_LINK_NOARG(SvxTransparenceTabPage, ClickTransGradientHdl_Impl)
void SvxTransparenceTabPage::ActivateLinear(sal_Bool bActivate)
{
- aMtrTransparent.Enable(bActivate);
+ m_pMtrTransparent->Enable(bActivate);
}
IMPL_LINK_NOARG(SvxTransparenceTabPage, ModifyTransparentHdl_Impl)
{
- sal_uInt16 nPos = (sal_uInt16)aMtrTransparent.GetValue();
+ sal_uInt16 nPos = (sal_uInt16)m_pMtrTransparent->GetValue();
XFillTransparenceItem aItem(nPos);
rXFSet.Put(XFillTransparenceItem(aItem));
@@ -134,23 +134,23 @@ IMPL_LINK_NOARG(SvxTransparenceTabPage, ModifyTransparentHdl_Impl)
IMPL_LINK(SvxTransparenceTabPage, ModifiedTrgrHdl_Impl, void *, pControl)
{
- if(pControl == &aLbTrgrGradientType || pControl == this)
+ if(pControl == m_pLbTrgrGradientType || pControl == this)
{
- XGradientStyle eXGS = (XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos();
+ XGradientStyle eXGS = (XGradientStyle)m_pLbTrgrGradientType->GetSelectEntryPos();
SetControlState_Impl( eXGS );
}
// preview
- sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)aMtrTrgrStartValue.GetValue() * 255) / 100);
- sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)aMtrTrgrEndValue.GetValue() * 255) / 100);
+ sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)m_pMtrTrgrStartValue->GetValue() * 255) / 100);
+ sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)m_pMtrTrgrEndValue->GetValue() * 255) / 100);
XGradient aTmpGradient(
Color(nStartCol, nStartCol, nStartCol),
Color(nEndCol, nEndCol, nEndCol),
- (XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos(),
- (sal_uInt16)aMtrTrgrAngle.GetValue() * 10,
- (sal_uInt16)aMtrTrgrCenterX.GetValue(),
- (sal_uInt16)aMtrTrgrCenterY.GetValue(),
- (sal_uInt16)aMtrTrgrBorder.GetValue(),
+ (XGradientStyle)m_pLbTrgrGradientType->GetSelectEntryPos(),
+ (sal_uInt16)m_pMtrTrgrAngle->GetValue() * 10,
+ (sal_uInt16)m_pMtrTrgrCenterX->GetValue(),
+ (sal_uInt16)m_pMtrTrgrCenterY->GetValue(),
+ (sal_uInt16)m_pMtrTrgrBorder->GetValue(),
100, 100);
XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient);
@@ -163,24 +163,11 @@ IMPL_LINK(SvxTransparenceTabPage, ModifiedTrgrHdl_Impl, void *, pControl)
void SvxTransparenceTabPage::ActivateGradient(sal_Bool bActivate)
{
- aFtTrgrType.Enable(bActivate);
- aLbTrgrGradientType.Enable(bActivate);
- aFtTrgrCenterX.Enable(bActivate);
- aMtrTrgrCenterX.Enable(bActivate);
- aFtTrgrCenterY.Enable(bActivate);
- aMtrTrgrCenterY.Enable(bActivate);
- aFtTrgrAngle.Enable(bActivate);
- aMtrTrgrAngle.Enable(bActivate);
- aFtTrgrBorder.Enable(bActivate);
- aMtrTrgrBorder.Enable(bActivate);
- aFtTrgrStartValue.Enable(bActivate);
- aMtrTrgrStartValue.Enable(bActivate);
- aFtTrgrEndValue.Enable(bActivate);
- aMtrTrgrEndValue.Enable(bActivate);
+ m_pGridGradient->Enable(bActivate);
if(bActivate)
{
- XGradientStyle eXGS = (XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos();
+ XGradientStyle eXGS = (XGradientStyle)m_pLbTrgrGradientType->GetSelectEntryPos();
SetControlState_Impl( eXGS );
}
}
@@ -196,109 +183,106 @@ void SvxTransparenceTabPage::SetControlState_Impl(XGradientStyle eXGS)
{
case XGRAD_LINEAR:
case XGRAD_AXIAL:
- aFtTrgrCenterX.Disable();
- aMtrTrgrCenterX.Disable();
- aFtTrgrCenterY.Disable();
- aMtrTrgrCenterY.Disable();
- aFtTrgrAngle.Enable();
- aMtrTrgrAngle.Enable();
+ m_pFtTrgrCenterX->Disable();
+ m_pMtrTrgrCenterX->Disable();
+ m_pFtTrgrCenterY->Disable();
+ m_pMtrTrgrCenterY->Disable();
+ m_pFtTrgrAngle->Enable();
+ m_pMtrTrgrAngle->Enable();
break;
case XGRAD_RADIAL:
- aFtTrgrCenterX.Enable();
- aMtrTrgrCenterX.Enable();
- aFtTrgrCenterY.Enable();
- aMtrTrgrCenterY.Enable();
- aFtTrgrAngle.Disable();
- aMtrTrgrAngle.Disable();
+ m_pFtTrgrCenterX->Enable();
+ m_pMtrTrgrCenterX->Enable();
+ m_pFtTrgrCenterY->Enable();
+ m_pMtrTrgrCenterY->Enable();
+ m_pFtTrgrAngle->Disable();
+ m_pMtrTrgrAngle->Disable();
break;
case XGRAD_ELLIPTICAL:
- aFtTrgrCenterX.Enable();
- aMtrTrgrCenterX.Enable();
- aFtTrgrCenterY.Enable();
- aMtrTrgrCenterY.Enable();
- aFtTrgrAngle.Enable();
- aMtrTrgrAngle.Enable();
+ m_pFtTrgrCenterX->Enable();
+ m_pMtrTrgrCenterX->Enable();
+ m_pFtTrgrCenterY->Enable();
+ m_pMtrTrgrCenterY->Enable();
+ m_pFtTrgrAngle->Enable();
+ m_pMtrTrgrAngle->Enable();
break;
case XGRAD_SQUARE:
case XGRAD_RECT:
- aFtTrgrCenterX.Enable();
- aMtrTrgrCenterX.Enable();
- aFtTrgrCenterY.Enable();
- aMtrTrgrCenterY.Enable();
- aFtTrgrAngle.Enable();
- aMtrTrgrAngle.Enable();
+ m_pFtTrgrCenterX->Enable();
+ m_pMtrTrgrCenterX->Enable();
+ m_pFtTrgrCenterY->Enable();
+ m_pMtrTrgrCenterY->Enable();
+ m_pFtTrgrAngle->Enable();
+ m_pMtrTrgrAngle->Enable();
break;
}
}
SvxTransparenceTabPage::SvxTransparenceTabPage(Window* pParent, const SfxItemSet& rInAttrs)
-: SvxTabPage ( pParent, CUI_RES( RID_SVXPAGE_TRANSPARENCE ), rInAttrs),
+: SvxTabPage ( pParent,
+ "TransparencyTabPage",
+ "cui/ui/transparencytabpage.ui",
+ rInAttrs),
rOutAttrs ( rInAttrs ),
eRP ( RP_LT ),
-
- nPageType(0),
- nDlgType(0),
-
- aFlProp ( this, CUI_RES( FL_PROP ) ),
- aRbtTransOff ( this, CUI_RES( RBT_TRANS_OFF ) ),
- aRbtTransLinear ( this, CUI_RES( RBT_TRANS_LINEAR ) ),
- aRbtTransGradient ( this, CUI_RES( RBT_TRANS_GRADIENT ) ),
-
- aMtrTransparent ( this, CUI_RES( MTR_TRANSPARENT ) ),
-
- aFtTrgrType ( this, CUI_RES( FT_TRGR_TYPE ) ),
- aLbTrgrGradientType ( this, CUI_RES( LB_TRGR_GRADIENT_TYPES ) ),
- aFtTrgrCenterX ( this, CUI_RES( FT_TRGR_CENTER_X ) ),
- aMtrTrgrCenterX ( this, CUI_RES( MTR_TRGR_CENTER_X ) ),
- aFtTrgrCenterY ( this, CUI_RES( FT_TRGR_CENTER_Y ) ),
- aMtrTrgrCenterY ( this, CUI_RES( MTR_TRGR_CENTER_Y ) ),
- aFtTrgrAngle ( this, CUI_RES( FT_TRGR_ANGLE ) ),
- aMtrTrgrAngle ( this, CUI_RES( MTR_TRGR_ANGLE ) ),
- aFtTrgrBorder ( this, CUI_RES( FT_TRGR_BORDER ) ),
- aMtrTrgrBorder ( this, CUI_RES( MTR_TRGR_BORDER ) ),
- aFtTrgrStartValue ( this, CUI_RES( FT_TRGR_START_VALUE ) ),
- aMtrTrgrStartValue ( this, CUI_RES( MTR_TRGR_START_VALUE ) ),
- aFtTrgrEndValue ( this, CUI_RES( FT_TRGR_END_VALUE ) ),
- aMtrTrgrEndValue ( this, CUI_RES( MTR_TRGR_END_VALUE ) ),
-
- aCtlBitmapPreview ( this, CUI_RES( CTL_BITMAP_PREVIEW ) ),
- aCtlXRectPreview ( this, CUI_RES( CTL_TRANS_PREVIEW ) ),
+ nPageType (0),
+ nDlgType (0),
bBitmap ( sal_False ),
pXPool ( (XOutdevItemPool*) rInAttrs.GetPool() ),
aXFillAttr ( pXPool ),
rXFSet ( aXFillAttr.GetItemSet() )
{
- FreeResource();
+ get(m_pRbtTransOff,"RBT_TRANS_OFF");
+ get(m_pRbtTransLinear,"RBT_TRANS_LINEAR");
+ get(m_pRbtTransGradient,"RBT_TRANS_GRADIENT");
+
+ get(m_pMtrTransparent,"MTR_TRANSPARENT");
+
+ get(m_pGridGradient,"gridGradient");
+ get(m_pLbTrgrGradientType,"LB_TRGR_GRADIENT_TYPES");
+ get(m_pFtTrgrCenterX,"FT_TRGR_CENTER_X");
+ get(m_pMtrTrgrCenterX,"MTR_TRGR_CENTER_X");
+ get(m_pFtTrgrCenterY,"FT_TRGR_CENTER_Y");
+ get(m_pMtrTrgrCenterY,"MTR_TRGR_CENTER_Y");
+ get(m_pFtTrgrAngle,"FT_TRGR_ANGLE"),
+ get(m_pMtrTrgrAngle,"MTR_TRGR_ANGLE");
+ get(m_pMtrTrgrBorder,"MTR_TRGR_BORDER");
+ get(m_pMtrTrgrStartValue,"MTR_TRGR_START_VALUE");
+ get(m_pMtrTrgrEndValue,"MTR_TRGR_END_VALUE");
+
+ get(m_pCtlBitmapPreview,"CTL_BITMAP_PREVIEW");
+ get(m_pCtlXRectPreview,"CTL_TRANS_PREVIEW");
- String accName = String(CUI_RES(STR_EXAMPLE));
- aCtlBitmapPreview.SetAccessibleName(accName);
- aCtlXRectPreview.SetAccessibleName(accName);
- aMtrTransparent.SetAccessibleRelationLabeledBy( &aRbtTransLinear );
+
+// String accName = String(CUI_RES(STR_EXAMPLE));
+// aCtlBitmapPreview.SetAccessibleName(accName);
+// aCtlXRectPreview.SetAccessibleName(accName);
+// aMtrTransparent.SetAccessibleRelationLabeledBy( &aRbtTransLinear );
// main selection
- aRbtTransOff.SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransOffHdl_Impl));
- aRbtTransLinear.SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransLinearHdl_Impl));
- aRbtTransGradient.SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransGradientHdl_Impl));
+ m_pRbtTransOff->SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransOffHdl_Impl));
+ m_pRbtTransLinear->SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransLinearHdl_Impl));
+ m_pRbtTransGradient->SetClickHdl(LINK(this, SvxTransparenceTabPage, ClickTransGradientHdl_Impl));
// linear transparency
- aMtrTransparent.SetValue( 50 );
- aMtrTransparent.SetModifyHdl(LINK(this, SvxTransparenceTabPage, ModifyTransparentHdl_Impl));
+ m_pMtrTransparent->SetValue( 50 );
+ m_pMtrTransparent->SetModifyHdl(LINK(this, SvxTransparenceTabPage, ModifyTransparentHdl_Impl));
// gradient transparency
- aMtrTrgrEndValue.SetValue( 100 );
- aMtrTrgrStartValue.SetValue( 0 );
- aLbTrgrGradientType.SetSelectHdl(LINK(this, SvxTransparenceTabPage, ChangeTrgrTypeHdl_Impl));
+ m_pMtrTrgrEndValue->SetValue( 100 );
+ m_pMtrTrgrStartValue->SetValue( 0 );
+ m_pLbTrgrGradientType->SetSelectHdl(LINK(this, SvxTransparenceTabPage, ChangeTrgrTypeHdl_Impl));
Link aLink = LINK( this, SvxTransparenceTabPage, ModifiedTrgrHdl_Impl);
- aLbTrgrGradientType.SetSelectHdl( aLink );
- aMtrTrgrCenterX.SetModifyHdl( aLink );
- aMtrTrgrCenterY.SetModifyHdl( aLink );
- aMtrTrgrAngle.SetModifyHdl( aLink );
- aMtrTrgrBorder.SetModifyHdl( aLink );
- aMtrTrgrStartValue.SetModifyHdl( aLink );
- aMtrTrgrEndValue.SetModifyHdl( aLink );
+ m_pLbTrgrGradientType->SetSelectHdl( aLink );
+ m_pMtrTrgrCenterX->SetModifyHdl( aLink );
+ m_pMtrTrgrCenterY->SetModifyHdl( aLink );
+ m_pMtrTrgrAngle->SetModifyHdl( aLink );
+ m_pMtrTrgrBorder->SetModifyHdl( aLink );
+ m_pMtrTrgrStartValue->SetModifyHdl( aLink );
+ m_pMtrTrgrEndValue->SetModifyHdl( aLink );
// this page needs ExchangeSupport
SetExchangeSupport();
@@ -335,11 +319,11 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs)
sal_Bool bSwitchOffLinear(sal_False);
sal_Bool bSwitchOffGradient(sal_False);
- if(aMtrTransparent.IsEnabled())
+ if(m_pMtrTransparent->IsEnabled())
{
// linear transparence
- sal_uInt16 nPos = (sal_uInt16)aMtrTransparent.GetValue();
- if(nPos != (sal_uInt16)aMtrTransparent.GetSavedValue().toInt32() || !bLinearActive)
+ sal_uInt16 nPos = (sal_uInt16)m_pMtrTransparent->GetValue();
+ if(nPos != (sal_uInt16)m_pMtrTransparent->GetSavedValue().toInt32() || !bLinearActive)
{
XFillTransparenceItem aItem(nPos);
SdrShadowTransparenceItem aShadowItem(nPos);
@@ -353,28 +337,28 @@ sal_Bool SvxTransparenceTabPage::FillItemSet(SfxItemSet& rAttrs)
}
}
}
- else if(aLbTrgrGradientType.IsEnabled())
+ else if(m_pLbTrgrGradientType->IsEnabled())
{
// transparence gradient, fill ItemSet from values
if(!bGradActive
- || (XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos() != (XGradientStyle)aLbTrgrGradientType.GetSavedValue()
- || (sal_uInt16)aMtrTrgrAngle.GetValue() != (sal_uInt16)aMtrTrgrAngle.GetSavedValue().toInt32()
- || (sal_uInt16)aMtrTrgrCenterX.GetValue() != (sal_uInt16)aMtrTrgrCenterX.GetSavedValue().toInt32()
- || (sal_uInt16)aMtrTrgrCenterY.GetValue() != (sal_uInt16)aMtrTrgrCenterY.GetSavedValue().toInt32()
- || (sal_uInt16)aMtrTrgrBorder.GetValue() != (sal_uInt16)aMtrTrgrBorder.GetSavedValue().toInt32()
- || (sal_uInt16)aMtrTrgrStartValue.GetValue() != (sal_uInt16)aMtrTrgrStartValue.GetSavedValue().toInt32()
- || (sal_uInt16)aMtrTrgrEndValue.GetValue() != (sal_uInt16)aMtrTrgrEndValue.GetSavedValue().toInt32() )
+ || (XGradientStyle)m_pLbTrgrGradientType->GetSelectEntryPos() != (XGradientStyle)m_pLbTrgrGradientType->GetSavedValue()
+ || (sal_uInt16)m_pMtrTrgrAngle->GetValue() != (sal_uInt16)m_pMtrTrgrAngle->GetSavedValue().toInt32()
+ || (sal_uInt16)m_pMtrTrgrCenterX->GetValue() != (sal_uInt16)m_pMtrTrgrCenterX->GetSavedValue().toInt32()
+ || (sal_uInt16)m_pMtrTrgrCenterY->GetValue() != (sal_uInt16)m_pMtrTrgrCenterY->GetSavedValue().toInt32()
+ || (sal_uInt16)m_pMtrTrgrBorder->GetValue() != (sal_uInt16)m_pMtrTrgrBorder->GetSavedValue().toInt32()
+ || (sal_uInt16)m_pMtrTrgrStartValue->GetValue() != (sal_uInt16)m_pMtrTrgrStartValue->GetSavedValue().toInt32()
+ || (sal_uInt16)m_pMtrTrgrEndValue->GetValue() != (sal_uInt16)m_pMtrTrgrEndValue->GetSavedValue().toInt32() )
{
- sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)aMtrTrgrStartValue.GetValue() * 255) / 100);
- sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)aMtrTrgrEndValue.GetValue() * 255) / 100);
+ sal_uInt8 nStartCol = (sal_uInt8)(((sal_uInt16)m_pMtrTrgrStartValue->GetValue() * 255) / 100);
+ sal_uInt8 nEndCol = (sal_uInt8)(((sal_uInt16)m_pMtrTrgrEndValue->GetValue() * 255) / 100);
XGradient aTmpGradient(
Color(nStartCol, nStartCol, nStartCol),
Color(nEndCol, nEndCol, nEndCol),
- (XGradientStyle)aLbTrgrGradientType.GetSelectEntryPos(),
- (sal_uInt16)aMtrTrgrAngle.GetValue() * 10,
- (sal_uInt16)aMtrTrgrCenterX.GetValue(),
- (sal_uInt16)aMtrTrgrCenterY.GetValue(),
- (sal_uInt16)aMtrTrgrBorder.GetValue(),
+ (XGradientStyle)m_pLbTrgrGradientType->GetSelectEntryPos(),
+ (sal_uInt16)m_pMtrTrgrAngle->GetValue() * 10,
+ (sal_uInt16)m_pMtrTrgrCenterX->GetValue(),
+ (sal_uInt16)m_pMtrTrgrCenterY->GetValue(),
+ (sal_uInt16)m_pMtrTrgrBorder->GetValue(),
100, 100);
XFillFloatTransparenceItem aItem( rXFSet.GetPool()/*aString*/, aTmpGradient);
@@ -438,49 +422,49 @@ void SvxTransparenceTabPage::Reset(const SfxItemSet& rAttrs)
// transparence gradient
const XGradient& rGradient = ((XFillFloatTransparenceItem*)pGradientItem)->GetGradientValue();
XGradientStyle eXGS(rGradient.GetGradientStyle());
- aLbTrgrGradientType.SelectEntryPos(sal::static_int_cast< sal_uInt16 >(eXGS));
- aMtrTrgrAngle.SetValue(rGradient.GetAngle() / 10);
- aMtrTrgrBorder.SetValue(rGradient.GetBorder());
- aMtrTrgrCenterX.SetValue(rGradient.GetXOffset());
- aMtrTrgrCenterY.SetValue(rGradient.GetYOffset());
- aMtrTrgrStartValue.SetValue((sal_uInt16)((((sal_uInt16)rGradient.GetStartColor().GetRed() + 1) * 100) / 255));
- aMtrTrgrEndValue.SetValue((sal_uInt16)((((sal_uInt16)rGradient.GetEndColor().GetRed() + 1) * 100) / 255));
+ m_pLbTrgrGradientType->SelectEntryPos(sal::static_int_cast< sal_uInt16 >(eXGS));
+ m_pMtrTrgrAngle->SetValue(rGradient.GetAngle() / 10);
+ m_pMtrTrgrBorder->SetValue(rGradient.GetBorder());
+ m_pMtrTrgrCenterX->SetValue(rGradient.GetXOffset());
+ m_pMtrTrgrCenterY->SetValue(rGradient.GetYOffset());
+ m_pMtrTrgrStartValue->SetValue((sal_uInt16)((((sal_uInt16)rGradient.GetStartColor().GetRed() + 1) * 100) / 255));
+ m_pMtrTrgrEndValue->SetValue((sal_uInt16)((((sal_uInt16)rGradient.GetEndColor().GetRed() + 1) * 100) / 255));
// linear transparence
sal_uInt16 nTransp = ((XFillTransparenceItem*)pLinearItem)->GetValue();
- aMtrTransparent.SetValue(bLinearActive ? nTransp : 50);
+ m_pMtrTransparent->SetValue(bLinearActive ? nTransp : 50);
ModifyTransparentHdl_Impl(NULL);
// select the correct radio button
if(bGradActive)
{
// transparence gradient, set controls appropriate to item
- aRbtTransGradient.Check();
+ m_pRbtTransGradient->Check();
ClickTransGradientHdl_Impl(NULL);
}
else if(bLinearActive)
{
// linear transparence
- aRbtTransLinear.Check();
+ m_pRbtTransLinear->Check();
ClickTransLinearHdl_Impl(NULL);
}
else
{
// no transparence
- aRbtTransOff.Check();
+ m_pRbtTransOff->Check();
ClickTransOffHdl_Impl(NULL);
ModifiedTrgrHdl_Impl(NULL);
}
// save values
- aMtrTransparent.SaveValue();
- aLbTrgrGradientType.SaveValue();
- aMtrTrgrCenterX.SaveValue();
- aMtrTrgrCenterY.SaveValue();
- aMtrTrgrAngle.SaveValue();
- aMtrTrgrBorder.SaveValue();
- aMtrTrgrStartValue.SaveValue();
- aMtrTrgrEndValue.SaveValue();
+ m_pMtrTransparent->SaveValue();
+ m_pLbTrgrGradientType->SaveValue();
+ m_pMtrTrgrCenterX->SaveValue();
+ m_pMtrTrgrCenterY->SaveValue();
+ m_pMtrTrgrAngle->SaveValue();
+ m_pMtrTrgrBorder->SaveValue();
+ m_pMtrTrgrStartValue->SaveValue();
+ m_pMtrTrgrEndValue->SaveValue();
sal_Bool bActive = InitPreview ( rAttrs );
InvalidatePreview ( bActive );
@@ -516,13 +500,13 @@ void SvxTransparenceTabPage::PointChanged(Window* , RECT_POINT eRcPt)
sal_Bool SvxTransparenceTabPage::InitPreview ( const SfxItemSet& rSet )
{
// set transparencetyp for preview
- if ( aRbtTransOff.IsChecked() )
+ if ( m_pRbtTransOff->IsChecked() )
{
ClickTransOffHdl_Impl(NULL);
- } else if ( aRbtTransLinear.IsChecked() )
+ } else if ( m_pRbtTransLinear->IsChecked() )
{
ClickTransLinearHdl_Impl(NULL);
- } else if ( aRbtTransGradient.IsChecked() )
+ } else if ( m_pRbtTransGradient->IsChecked() )
{
ClickTransGradientHdl_Impl(NULL);
}
@@ -535,24 +519,24 @@ sal_Bool SvxTransparenceTabPage::InitPreview ( const SfxItemSet& rSet )
rXFSet.Put ( ( XFillBackgroundItem&)rSet.Get(XATTR_FILLBACKGROUND) );
rXFSet.Put ( ( XFillBitmapItem& ) rSet.Get(XATTR_FILLBITMAP) );
- aCtlXRectPreview.SetAttributes( aXFillAttr.GetItemSet() );
- aCtlBitmapPreview.SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlXRectPreview->SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlBitmapPreview->SetAttributes( aXFillAttr.GetItemSet() );
bBitmap = ( ( ( XFillStyleItem& )rSet.Get(XATTR_FILLSTYLE) ).GetValue() == XFILL_BITMAP );
// show the right preview window
if ( bBitmap )
{
- aCtlBitmapPreview.Show();
- aCtlXRectPreview.Hide();
+ m_pCtlBitmapPreview->Show();
+ m_pCtlXRectPreview->Hide();
}
else
{
- aCtlBitmapPreview.Hide();
- aCtlXRectPreview.Show();
+ m_pCtlBitmapPreview->Hide();
+ m_pCtlXRectPreview->Show();
}
- return !aRbtTransOff.IsChecked();
+ return !m_pRbtTransOff->IsChecked();
}
void SvxTransparenceTabPage::InvalidatePreview (sal_Bool bEnable)
@@ -561,23 +545,23 @@ void SvxTransparenceTabPage::InvalidatePreview (sal_Bool bEnable)
{
if ( bEnable )
{
- aCtlBitmapPreview.Enable();
- aCtlBitmapPreview.SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlBitmapPreview->Enable();
+ m_pCtlBitmapPreview->SetAttributes( aXFillAttr.GetItemSet() );
}
else
- aCtlBitmapPreview.Disable();
- aCtlBitmapPreview.Invalidate();
+ m_pCtlBitmapPreview->Disable();
+ m_pCtlBitmapPreview->Invalidate();
}
else
{
if ( bEnable )
{
- aCtlXRectPreview.Enable();
- aCtlXRectPreview.SetAttributes( aXFillAttr.GetItemSet() );
+ m_pCtlXRectPreview->Enable();
+ m_pCtlXRectPreview->SetAttributes( aXFillAttr.GetItemSet() );
}
else
- aCtlXRectPreview.Disable();
- aCtlXRectPreview.Invalidate();
+ m_pCtlXRectPreview->Disable();
+ m_pCtlXRectPreview->Invalidate();
}
}
diff --git a/cui/uiconfig/ui/transparencytabpage.ui b/cui/uiconfig/ui/transparencytabpage.ui
new file mode 100644
index 0000000..4c8e780a
--- /dev/null
+++ b/cui/uiconfig/ui/transparencytabpage.ui
@@ -0,0 +1,494 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<interface>
+ <!-- interface-requires LibreOffice 1.0 -->
+ <!-- interface-requires gtk+ 3.0 -->
+ <object class="GtkFrame" id="TransparencyTabPage">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">6</property>
+ <property name="margin_top">6</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkBox" id="box2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="spacing">12</property>
+ <child>
+ <object class="GtkBox" id="box1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkGrid" id="grid1">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">6</property>
+ <child>
+ <object class="GtkRadioButton" id="RBT_TRANS_OFF">
+ <property name="label" translatable="yes">_No transparency</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="image_position">bottom</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">RBT_TRANS_LINEAR</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RBT_TRANS_LINEAR">
+ <property name="label" translatable="yes">_Transparency</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="image_position">right</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">RBT_TRANS_GRADIENT</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkRadioButton" id="RBT_TRANS_GRADIENT">
+ <property name="label" translatable="yes">_Gradient</property>
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="xalign">0</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ <property name="group">RBT_TRANS_OFF</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRANSPARENT:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkGrid" id="gridGradient">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="row_spacing">6</property>
+ <property name="column_spacing">12</property>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_END_VALUE">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_End value</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_END_VALUE:0%</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">6</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_END_VALUE:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">6</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_START_VALUE">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_Start value</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_START_VALUE:0%</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">5</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_START_VALUE:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">5</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_BORDER">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_Border</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_BORDER:0%</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_BORDER:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">4</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_ANGLE">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">_Angle</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_ANGLE:0degree</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">3</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_ANGLE:0degree">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentDegrees</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">3</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_CENTER_Y">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Center _Y</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_CENTER_Y:0%</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_CENTER_Y:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">2</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_CENTER_X">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Center _X</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">MTR_TRGR_CENTER_X:0%</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="MTR_TRGR_CENTER_X:0%">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="invisible_char">â¢</property>
+ <property name="invisible_char_set">True</property>
+ <property name="adjustment">adjustmentPercent</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">1</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="FT_TRGR_TYPE">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="margin_left">25</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Ty_pe</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">LB_TRGR_GRADIENT_TYPES</property>
+ </object>
+ <packing>
+ <property name="left_attach">0</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="LB_TRGR_GRADIENT_TYPES">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="model">liststoreTYPE</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="top_attach">0</property>
+ <property name="width">1</property>
+ <property name="height">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkBox" id="box3">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">start</property>
+ <property name="hexpand">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="svxlo-SvxXRectPreview" id="CTL_BITMAP_PREVIEW">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="halign">start</property>
+ <property name="valign">start</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="svxlo-SvxXRectPreview" id="CTL_TRANS_PREVIEW">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="FL_PROP">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="xalign">0</property>
+ <property name="label" translatable="yes">Transparency mode</property>
+ <attributes>
+ <attribute name="weight" value="bold"/>
+ </attributes>
+ </object>
+ </child>
+ </object>
+ <object class="GtkAdjustment" id="adjustmentDegrees">
+ <property name="upper">359</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkAdjustment" id="adjustmentPercent">
+ <property name="upper">100</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
+ <object class="GtkListStore" id="liststoreTYPE">
+ <columns>
+ <!-- column-name gchararray1 -->
+ <column type="gchararray"/>
+ <!-- column-name guint1 -->
+ <column type="guint"/>
+ </columns>
+ <data>
+ <row>
+ <col id="0" translatable="yes">Linear</col>
+ <col id="1">0</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Axial</col>
+ <col id="1">0</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Radial</col>
+ <col id="1">0</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Ellipsoid</col>
+ <col id="1">0</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Quadratic</col>
+ <col id="1">0</col>
+ </row>
+ <row>
+ <col id="0" translatable="yes">Square</col>
+ <col id="1">0</col>
+ </row>
+ </data>
+ </object>
+ <object class="GtkSizeGroup" id="sizegroup1">
+ <widgets>
+ <widget name="RBT_TRANS_OFF"/>
+ <widget name="RBT_TRANS_LINEAR"/>
+ <widget name="RBT_TRANS_GRADIENT"/>
+ <widget name="FT_TRGR_END_VALUE"/>
+ <widget name="FT_TRGR_START_VALUE"/>
+ <widget name="FT_TRGR_BORDER"/>
+ <widget name="FT_TRGR_ANGLE"/>
+ <widget name="FT_TRGR_CENTER_Y"/>
+ <widget name="FT_TRGR_CENTER_X"/>
+ <widget name="FT_TRGR_TYPE"/>
+ </widgets>
+ </object>
+ <object class="GtkSizeGroup" id="sizegroup2">
+ <property name="mode">both</property>
+ <property name="ignore_hidden">True</property>
+ <widgets>
+ <widget name="MTR_TRANSPARENT:0%"/>
+ <widget name="MTR_TRGR_END_VALUE:0%"/>
+ <widget name="MTR_TRGR_START_VALUE:0%"/>
+ <widget name="MTR_TRGR_BORDER:0%"/>
+ <widget name="MTR_TRGR_ANGLE:0degree"/>
+ <widget name="MTR_TRGR_CENTER_Y:0%"/>
+ <widget name="MTR_TRGR_CENTER_X:0%"/>
+ <widget name="LB_TRGR_GRADIENT_TYPES"/>
+ </widgets>
+ </object>
+</interface>
More information about the Libreoffice-commits
mailing list