sidebar: LinePropertyPanel conversion to .ui
Change-Id: I7f9ee68fac268621f2412377fa059c7f8225718c
This commit is contained in:
parent
5190895114
commit
ade434f494
6 changed files with 378 additions and 271 deletions
|
@ -22,6 +22,7 @@ $(eval $(call gb_UIConfig_add_uifiles,svx,\
|
|||
svx/uiconfig/ui/redlinecontrol \
|
||||
svx/uiconfig/ui/redlinefilterpage \
|
||||
svx/uiconfig/ui/redlineviewpage \
|
||||
svx/uiconfig/ui/sidebarline \
|
||||
svx/uiconfig/ui/sidebarparagraph \
|
||||
svx/uiconfig/ui/sidebartextpanel \
|
||||
))
|
||||
|
|
|
@ -57,6 +57,9 @@ using namespace css;
|
|||
using namespace cssu;
|
||||
using ::sfx2::sidebar::Theme;
|
||||
|
||||
const char UNO_SELECTWIDTH[] = ".uno:SelectWidth";
|
||||
const char UNO_SELECTCOLOR[] = ".uno:SelectColor";
|
||||
|
||||
#define A2S(pString) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(pString)))
|
||||
|
||||
namespace {
|
||||
|
@ -153,26 +156,7 @@ LinePropertyPanel::LinePropertyPanel(
|
|||
Window* pParent,
|
||||
const cssu::Reference<css::frame::XFrame>& rxFrame,
|
||||
SfxBindings* pBindings)
|
||||
: Control(
|
||||
pParent,
|
||||
SVX_RES(RID_SIDEBAR_LINE_PANEL)),
|
||||
mpFTWidth(new FixedText(this, SVX_RES(FT_WIDTH))),
|
||||
mpTBWidthBackground(sfx2::sidebar::ControlFactory::CreateToolBoxBackground(this)),
|
||||
mpTBWidth(sfx2::sidebar::ControlFactory::CreateToolBox(mpTBWidthBackground.get(), SVX_RES(TB_WIDTH))),
|
||||
mpFTColor(new FixedText(this, SVX_RES(FT_COLOR))),
|
||||
mpTBColorBackground(sfx2::sidebar::ControlFactory::CreateToolBoxBackground(this)),
|
||||
mpTBColor(sfx2::sidebar::ControlFactory::CreateToolBox(mpTBColorBackground.get(), SVX_RES(TB_COLOR))),
|
||||
mpFTStyle(new FixedText(this, SVX_RES(FT_STYLE))),
|
||||
mpLBStyle(new ListBox(this, SVX_RES(LB_STYLE))),
|
||||
mpFTTrancparency(new FixedText(this, SVX_RES(FT_TRANSPARENT))),
|
||||
mpMFTransparent(new MetricField(this, SVX_RES(MF_TRANSPARENT))),
|
||||
mpFTArrow(new FixedText(this, SVX_RES(FT_ARROW))),
|
||||
mpLBStart(new ListBox(this, SVX_RES(LB_START))),
|
||||
mpLBEnd(new ListBox(this, SVX_RES(LB_END))),
|
||||
mpFTEdgeStyle(new FixedText(this, SVX_RES(FT_EDGESTYLE))),
|
||||
mpLBEdgeStyle(new ListBox(this, SVX_RES(LB_EDGESTYLE))),
|
||||
mpFTCapStyle(new FixedText(this, SVX_RES(FT_CAPSTYLE))),
|
||||
mpLBCapStyle(new ListBox(this, SVX_RES(LB_CAPSTYLE))),
|
||||
: PanelLayout(pParent, "LinePropertyPanel", "svx/ui/sidebarline", rxFrame),
|
||||
maStyleControl(SID_ATTR_LINE_STYLE, *pBindings, *this),
|
||||
maDashControl (SID_ATTR_LINE_DASH, *pBindings, *this),
|
||||
maWidthControl(SID_ATTR_LINE_WIDTH, *pBindings, *this),
|
||||
|
@ -185,7 +169,6 @@ LinePropertyPanel::LinePropertyPanel(
|
|||
maEdgeStyle(SID_ATTR_LINE_JOINT, *pBindings, *this),
|
||||
maCapStyle(SID_ATTR_LINE_CAP, *pBindings, *this),
|
||||
maColor(COL_BLACK),
|
||||
mpColorUpdater(new ::svx::ToolboxButtonColorUpdater(SID_ATTR_LINE_COLOR, TBI_COLOR, mpTBColor.get())),
|
||||
mpStyleItem(),
|
||||
mpDashItem(),
|
||||
mnTrans(0),
|
||||
|
@ -203,34 +186,37 @@ LinePropertyPanel::LinePropertyPanel(
|
|||
mbColorAvailable(true),
|
||||
mbWidthValuable(true)
|
||||
{
|
||||
get(mpFTWidth, "widthlabel");
|
||||
get(mpTBWidth, "width");
|
||||
get(mpFTColor, "colorlabel");
|
||||
get(mpTBColor, "color");
|
||||
get(mpFTStyle, "stylelabel");
|
||||
get(mpLBStyle, "linestyle");
|
||||
get(mpFTTrancparency, "translabel");
|
||||
get(mpMFTransparent, "linetransparency");
|
||||
get(mpFTArrow, "arrowlabel");
|
||||
get(mpLBStart, "beginarrowstyle");
|
||||
get(mpLBEnd, "endarrowstyle");
|
||||
get(mpFTEdgeStyle, "cornerlabel");
|
||||
get(mpLBEdgeStyle, "edgestyle");
|
||||
get(mpFTCapStyle, "caplabel");
|
||||
get(mpLBCapStyle, "linecapstyle");
|
||||
|
||||
const sal_uInt16 nIdColor = mpTBColor->GetItemId(UNO_SELECTCOLOR);
|
||||
mpColorUpdater.reset(new ::svx::ToolboxButtonColorUpdater(SID_ATTR_LINE_COLOR, nIdColor, mpTBColor)),
|
||||
Initialize();
|
||||
FreeResource();
|
||||
}
|
||||
|
||||
|
||||
|
||||
LinePropertyPanel::~LinePropertyPanel()
|
||||
{
|
||||
// Destroy the toolboxes, then their background windows.
|
||||
mpTBWidth.reset();
|
||||
mpTBColor.reset();
|
||||
|
||||
mpTBWidthBackground.reset();
|
||||
mpTBColorBackground.reset();
|
||||
}
|
||||
|
||||
|
||||
|
||||
void LinePropertyPanel::Initialize()
|
||||
{
|
||||
mpFTWidth->SetBackground(Wallpaper());
|
||||
mpFTColor->SetBackground(Wallpaper());
|
||||
mpFTStyle->SetBackground(Wallpaper());
|
||||
mpFTTrancparency->SetBackground(Wallpaper());
|
||||
mpFTArrow->SetBackground(Wallpaper());
|
||||
mpFTEdgeStyle->SetBackground(Wallpaper());
|
||||
mpFTCapStyle->SetBackground(Wallpaper());
|
||||
|
||||
mpIMGWidthIcon.reset(new Image[8]);
|
||||
mpIMGWidthIcon[0] = Image(SVX_RES(IMG_WIDTH1_ICON));
|
||||
mpIMGWidthIcon[1] = Image(SVX_RES(IMG_WIDTH2_ICON));
|
||||
|
@ -242,14 +228,10 @@ void LinePropertyPanel::Initialize()
|
|||
mpIMGWidthIcon[7] = Image(SVX_RES(IMG_WIDTH8_ICON));
|
||||
|
||||
meMapUnit = maWidthControl.GetCoreMetric();
|
||||
const sal_uInt16 nIdColor = mpTBColor->GetItemId(UNO_SELECTCOLOR);
|
||||
|
||||
mpTBColor->SetItemImage(TBI_COLOR, maIMGColor);
|
||||
Size aTbxSize( mpTBColor->CalcWindowSizePixel() );
|
||||
mpTBColor->SetOutputSizePixel( aTbxSize );
|
||||
mpTBColor->SetItemBits( TBI_COLOR, mpTBColor->GetItemBits( TBI_COLOR ) | TIB_DROPDOWNONLY );
|
||||
mpTBColor->SetQuickHelpText(TBI_COLOR,String(SVX_RES(STR_QH_TB_COLOR))); //Add
|
||||
mpTBColor->SetBackground(Wallpaper());
|
||||
mpTBColor->SetPaintTransparent(true);
|
||||
mpTBColor->SetItemImage(nIdColor, maIMGColor);
|
||||
mpTBColor->SetItemBits( nIdColor, mpTBColor->GetItemBits( nIdColor ) | TIB_DROPDOWNONLY );
|
||||
Link aLink = LINK(this, LinePropertyPanel, ToolboxColorSelectHdl);
|
||||
mpTBColor->SetDropdownClickHdl ( aLink );
|
||||
mpTBColor->SetSelectHdl ( aLink );
|
||||
|
@ -261,13 +243,9 @@ void LinePropertyPanel::Initialize()
|
|||
mpLBStyle->SetAccessibleName(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Style")));
|
||||
mpLBStyle->AdaptDropDownLineCountToMaximum();
|
||||
|
||||
mpTBWidth->SetItemImage(TBI_WIDTH, mpIMGWidthIcon[0]);
|
||||
aTbxSize = mpTBWidth->CalcWindowSizePixel() ;
|
||||
mpTBWidth->SetOutputSizePixel( aTbxSize );
|
||||
mpTBWidth->SetItemBits( TBI_WIDTH, mpTBWidth->GetItemBits( TBI_WIDTH ) | TIB_DROPDOWNONLY );
|
||||
mpTBWidth->SetQuickHelpText(TBI_WIDTH,String(SVX_RES(STR_QH_TB_WIDTH))); //Add
|
||||
mpTBWidth->SetBackground(Wallpaper());
|
||||
mpTBWidth->SetPaintTransparent(true);
|
||||
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
|
||||
mpTBWidth->SetItemImage(nIdWidth, mpIMGWidthIcon[0]);
|
||||
mpTBWidth->SetItemBits( nIdWidth, mpTBWidth->GetItemBits( nIdWidth ) | TIB_DROPDOWNONLY );
|
||||
aLink = LINK(this, LinePropertyPanel, ToolboxWidthSelectHdl);
|
||||
mpTBWidth->SetDropdownClickHdl ( aLink );
|
||||
mpTBWidth->SetSelectHdl ( aLink );
|
||||
|
@ -288,12 +266,12 @@ void LinePropertyPanel::Initialize()
|
|||
mpMFTransparent->SetModifyHdl(aLink);
|
||||
mpMFTransparent->SetAccessibleName(::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Transparency"))); //wj acc
|
||||
|
||||
mpTBWidth->SetAccessibleRelationLabeledBy(mpFTWidth.get());
|
||||
mpTBColor->SetAccessibleRelationLabeledBy(mpFTColor.get());
|
||||
mpLBStyle->SetAccessibleRelationLabeledBy(mpFTStyle.get());
|
||||
mpMFTransparent->SetAccessibleRelationLabeledBy(mpFTTrancparency.get());
|
||||
mpLBStart->SetAccessibleRelationLabeledBy(mpFTArrow.get());
|
||||
mpLBEnd->SetAccessibleRelationLabeledBy(mpLBEnd.get());
|
||||
mpTBWidth->SetAccessibleRelationLabeledBy(mpFTWidth);
|
||||
mpTBColor->SetAccessibleRelationLabeledBy(mpFTColor);
|
||||
mpLBStyle->SetAccessibleRelationLabeledBy(mpFTStyle);
|
||||
mpMFTransparent->SetAccessibleRelationLabeledBy(mpFTTrancparency);
|
||||
mpLBStart->SetAccessibleRelationLabeledBy(mpFTArrow);
|
||||
mpLBEnd->SetAccessibleRelationLabeledBy(mpLBEnd);
|
||||
|
||||
aLink = LINK( this, LinePropertyPanel, ChangeEdgeStyleHdl );
|
||||
mpLBEdgeStyle->SetSelectHdl( aLink );
|
||||
|
@ -709,8 +687,9 @@ IMPL_LINK( LinePropertyPanel, ImplPopupModeEndHdl, FloatingWindow*, EMPTYARG )
|
|||
|
||||
IMPL_LINK(LinePropertyPanel, ToolboxColorSelectHdl,ToolBox*, pToolBox)
|
||||
{
|
||||
sal_uInt16 nId = pToolBox->GetCurItemId();
|
||||
if(nId == TBI_COLOR)
|
||||
const OUString aCommand(pToolBox->GetItemCommand(pToolBox->GetCurItemId()));
|
||||
|
||||
if(aCommand == UNO_SELECTCOLOR)
|
||||
{
|
||||
maColorPopup.Show(*pToolBox);
|
||||
maColorPopup.SetCurrentColor(maColor, mbColorAvailable);
|
||||
|
@ -878,7 +857,7 @@ IMPL_LINK(LinePropertyPanel, ChangeCapStyleHdl, void*, EMPTYARG)
|
|||
|
||||
IMPL_LINK(LinePropertyPanel, ToolboxWidthSelectHdl,ToolBox*, pToolBox)
|
||||
{
|
||||
if (pToolBox->GetCurItemId() == TBI_WIDTH)
|
||||
if (pToolBox->GetItemCommand(pToolBox->GetCurItemId()) == UNO_SELECTWIDTH)
|
||||
{
|
||||
maLineWidthPopup.SetWidthSelect(mnWidthCoreValue, mbWidthValuable, meMapUnit);
|
||||
maLineWidthPopup.Show(*pToolBox);
|
||||
|
@ -943,10 +922,11 @@ void LinePropertyPanel::EndLineWidthPopupMode (void)
|
|||
|
||||
void LinePropertyPanel::SetWidthIcon(int n)
|
||||
{
|
||||
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
|
||||
if(n==0)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, maIMGNone);
|
||||
mpTBWidth->SetItemImage( nIdWidth, maIMGNone);
|
||||
else
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[n-1]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[n-1]);
|
||||
}
|
||||
|
||||
|
||||
|
@ -955,28 +935,30 @@ void LinePropertyPanel::SetWidthIcon()
|
|||
{
|
||||
if(!mbWidthValuable)
|
||||
{
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, maIMGNone);
|
||||
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
|
||||
mpTBWidth->SetItemImage(nIdWidth, maIMGNone);
|
||||
return;
|
||||
}
|
||||
|
||||
long nVal = LogicToLogic(mnWidthCoreValue * 10,(MapUnit)meMapUnit , MAP_POINT);
|
||||
const sal_uInt16 nIdWidth = mpTBWidth->GetItemId(UNO_SELECTWIDTH);
|
||||
|
||||
if(nVal <= 6)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[0]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[0]);
|
||||
else if(nVal > 6 && nVal <= 9)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[1]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[1]);
|
||||
else if(nVal > 9 && nVal <= 12)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[2]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[2]);
|
||||
else if(nVal > 12 && nVal <= 19)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[3]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[3]);
|
||||
else if(nVal > 19 && nVal <= 26)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[4]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[4]);
|
||||
else if(nVal > 26 && nVal <= 37)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[5]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[5]);
|
||||
else if(nVal > 37 && nVal <=52)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[6]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[6]);
|
||||
else if(nVal > 52)
|
||||
mpTBWidth->SetItemImage( TBI_WIDTH, mpIMGWidthIcon[7]);
|
||||
mpTBWidth->SetItemImage( nIdWidth, mpIMGWidthIcon[7]);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -21,19 +21,6 @@
|
|||
#define CUSTOM_W 74
|
||||
#define CUSTOM_H POPUPPANEL_MARGIN_LARGE * 2 + TEXT_HEIGHT + 12 + TEXT_CONTROL_SPACING_VERTICAL
|
||||
|
||||
#define FT_COLOR 1
|
||||
#define TB_COLOR 2
|
||||
#define FT_WIDTH 3
|
||||
#define TB_WIDTH 4
|
||||
#define FT_STYLE 5
|
||||
#define LB_STYLE 6
|
||||
#define FT_ARROW 7
|
||||
#define FT_TRANSPARENT 8
|
||||
#define MF_TRANSPARENT 9
|
||||
#define LB_START 10
|
||||
#define LB_END 11
|
||||
#define TBI_COLOR 12
|
||||
#define TBI_WIDTH 13
|
||||
#define TBI_STYLE 14
|
||||
#define STR_QH_TB_WIDTH 15
|
||||
#define STR_QH_TB_COLOR 16
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
#include <boost/scoped_ptr.hpp>
|
||||
#include <boost/scoped_array.hpp>
|
||||
#include <svx/sidebar/ColorPopup.hxx>
|
||||
#include <svx/sidebar/PanelLayout.hxx>
|
||||
#include <svx/xtable.hxx>
|
||||
#include "LineWidthPopup.hxx"
|
||||
|
||||
|
@ -57,7 +58,7 @@ class LineWidthControl;
|
|||
|
||||
|
||||
class LinePropertyPanel
|
||||
: public Control,
|
||||
: public PanelLayout,
|
||||
public ::sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface
|
||||
{
|
||||
private:
|
||||
|
@ -89,23 +90,21 @@ public:
|
|||
|
||||
private:
|
||||
//ui controls
|
||||
::boost::scoped_ptr< FixedText > mpFTWidth;
|
||||
::boost::scoped_ptr< Window > mpTBWidthBackground;
|
||||
::boost::scoped_ptr< ToolBox > mpTBWidth;
|
||||
::boost::scoped_ptr< FixedText > mpFTColor;
|
||||
::boost::scoped_ptr< Window > mpTBColorBackground;
|
||||
::boost::scoped_ptr< ToolBox > mpTBColor;
|
||||
::boost::scoped_ptr< FixedText > mpFTStyle;
|
||||
::boost::scoped_ptr< ListBox > mpLBStyle;
|
||||
::boost::scoped_ptr< FixedText > mpFTTrancparency;
|
||||
::boost::scoped_ptr< MetricField > mpMFTransparent;
|
||||
::boost::scoped_ptr< FixedText > mpFTArrow;
|
||||
::boost::scoped_ptr< ListBox > mpLBStart;
|
||||
::boost::scoped_ptr< ListBox > mpLBEnd;
|
||||
::boost::scoped_ptr< FixedText > mpFTEdgeStyle;
|
||||
::boost::scoped_ptr< ListBox > mpLBEdgeStyle;
|
||||
::boost::scoped_ptr< FixedText > mpFTCapStyle;
|
||||
::boost::scoped_ptr< ListBox > mpLBCapStyle;
|
||||
FixedText* mpFTWidth;
|
||||
ToolBox* mpTBWidth;
|
||||
FixedText* mpFTColor;
|
||||
ToolBox* mpTBColor;
|
||||
FixedText* mpFTStyle;
|
||||
ListBox* mpLBStyle;
|
||||
FixedText* mpFTTrancparency;
|
||||
MetricField* mpMFTransparent;
|
||||
FixedText* mpFTArrow;
|
||||
ListBox* mpLBStart;
|
||||
ListBox* mpLBEnd;
|
||||
FixedText* mpFTEdgeStyle;
|
||||
ListBox* mpLBEdgeStyle;
|
||||
FixedText* mpFTCapStyle;
|
||||
ListBox* mpLBCapStyle;
|
||||
|
||||
//ControllerItem
|
||||
::sfx2::sidebar::ControllerItem maStyleControl;
|
||||
|
|
|
@ -36,90 +36,7 @@ Control RID_SIDEBAR_LINE_PANEL
|
|||
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 + CBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT );
|
||||
HelpID = HID_PROPERTYPANEL_LINE_SECTION ;
|
||||
|
||||
FixedText FT_WIDTH
|
||||
{
|
||||
Pos = MAP_APPFONT( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Width:" ;
|
||||
};
|
||||
ToolBox TB_WIDTH
|
||||
{
|
||||
SVLook = TRUE ;
|
||||
Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_TBX_WIDTH ;
|
||||
Text = "Width";
|
||||
ItemList =
|
||||
{
|
||||
ToolBoxItem
|
||||
{
|
||||
Identifier = TBI_WIDTH ;
|
||||
DropDown = TRUE ;
|
||||
Text [ en-US ] = "Width" ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_TBI_WIDTH;
|
||||
};
|
||||
};
|
||||
};
|
||||
String STR_QH_TB_WIDTH
|
||||
{
|
||||
Text [ en-US ] = "Select the width of the line.";
|
||||
};
|
||||
|
||||
FixedText FT_COLOR
|
||||
{
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3, SECTIONPAGE_MARGIN_VERTICAL_TOP ) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Color:" ;
|
||||
};
|
||||
ToolBox TB_COLOR
|
||||
{
|
||||
SVLook = TRUE ;
|
||||
Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 4, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH ,TOOLBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_TBX_COLOR;
|
||||
Text = "Color";
|
||||
ItemList =
|
||||
{
|
||||
ToolBoxItem
|
||||
{
|
||||
Identifier = TBI_COLOR ;
|
||||
DropDown = TRUE ;
|
||||
Text [ en-US ] = "Color" ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_TBI_COLOR;
|
||||
};
|
||||
};
|
||||
};
|
||||
String STR_QH_TB_COLOR
|
||||
{
|
||||
Text [ en-US ] = "Select the color of the line.";
|
||||
};
|
||||
|
||||
FixedText FT_STYLE
|
||||
{
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Style:" ;
|
||||
};
|
||||
ListBox LB_STYLE
|
||||
{
|
||||
Border = TRUE ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_TBX_STYLE;
|
||||
Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH ,LISTBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
DDExtraWidth = TRUE ;
|
||||
QuickHelpText [ en-US ] = "Select the style of the line.";
|
||||
};
|
||||
|
||||
FixedText FT_TRANSPARENT
|
||||
{
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL + TOOLBOX_HEIGHT + CONTROL_SPACING_VERTICAL) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Transparency:" ;
|
||||
};
|
||||
/*
|
||||
MetricField MF_TRANSPARENT
|
||||
{
|
||||
Border = TRUE ;
|
||||
|
@ -137,92 +54,7 @@ Control RID_SIDEBAR_LINE_PANEL
|
|||
SpinSize = 5 ;
|
||||
QuickHelpText [ en-US ] = "Specify the transparency of the line.";
|
||||
};
|
||||
|
||||
FixedText FT_ARROW
|
||||
{
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL, SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*2 + TEXT_CONTROL_SPACING_VERTICAL*2 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Arrow:" ;
|
||||
};
|
||||
ListBox LB_START
|
||||
{
|
||||
Border = TRUE ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_LB_START;
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ;
|
||||
Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
DDExtraWidth = TRUE ;
|
||||
QuickHelpText [ en-US ] = "Select the style of the beginning arrowhead.";
|
||||
};
|
||||
ListBox LB_END
|
||||
{
|
||||
Border = TRUE ;
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_LB_END;
|
||||
Pos = MAP_APPFONT ( SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3 , SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*2 + CONTROL_SPACING_VERTICAL*2 ) ;
|
||||
Size = MAP_APPFONT ( TOOLBOX_WIDTH + 1, LISTBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
DDExtraWidth = TRUE ;
|
||||
QuickHelpText [ en-US ] = "Select the style of the ending arrowhead.";
|
||||
};
|
||||
|
||||
FixedText FT_EDGESTYLE
|
||||
{
|
||||
Pos = MAP_APPFONT (
|
||||
SECTIONPAGE_MARGIN_HORIZONTAL,
|
||||
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "~Corner style" ;
|
||||
};
|
||||
ListBox LB_EDGESTYLE
|
||||
{
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_LB_EDGESTYLE;
|
||||
Border = TRUE ;
|
||||
Pos = MAP_APPFONT (
|
||||
SECTIONPAGE_MARGIN_HORIZONTAL ,
|
||||
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ;
|
||||
Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
DDExtraWidth = TRUE ;
|
||||
QuickHelpText [ en-US ] = "Select the style of the edge connections.";
|
||||
StringList [ en-US ] =
|
||||
{
|
||||
< "Rounded" ; Default ; > ;
|
||||
< "- none -" ; > ;
|
||||
< "Mitered" ; > ;
|
||||
< "Beveled" ; > ;
|
||||
};
|
||||
};
|
||||
FixedText FT_CAPSTYLE
|
||||
{
|
||||
Pos = MAP_APPFONT (
|
||||
SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
|
||||
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*3 + TEXT_CONTROL_SPACING_VERTICAL*3 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3) ;
|
||||
Size = MAP_APPFONT (TOOLBOX_WIDTH * 2 + 3 , TEXT_HEIGHT ) ;
|
||||
Text [ en-US ] = "Ca~p style" ;
|
||||
};
|
||||
ListBox LB_CAPSTYLE
|
||||
{
|
||||
HelpID = HID_PPROPERTYPANEL_LINE_LB_CAPSTYLE;
|
||||
Border = TRUE ;
|
||||
Pos = MAP_APPFONT (
|
||||
SECTIONPAGE_MARGIN_HORIZONTAL + TOOLBOX_WIDTH + 3,
|
||||
SECTIONPAGE_MARGIN_VERTICAL_TOP + TEXT_HEIGHT*4 + TEXT_CONTROL_SPACING_VERTICAL*4 + TOOLBOX_HEIGHT*3 + CONTROL_SPACING_VERTICAL*3 ) ;
|
||||
Size = MAP_APPFONT ( TOOLBOX_WIDTH , LISTBOX_HEIGHT ) ;
|
||||
TabStop = TRUE ;
|
||||
DropDown = TRUE ;
|
||||
DDExtraWidth = TRUE ;
|
||||
QuickHelpText [ en-US ] = "Select the style of the line caps.";
|
||||
StringList [ en-US ] =
|
||||
{
|
||||
< "Flat" ; Default ; > ; // Same string as in Excel
|
||||
< "Round" ; > ;
|
||||
< "Square" ; > ;
|
||||
};
|
||||
};
|
||||
|
||||
*/
|
||||
Image IMG_COLOR
|
||||
{
|
||||
ImageBitmap = Bitmap{File = "symphony/Line_color.png";};
|
||||
|
|
306
svx/uiconfig/ui/sidebarline.ui
Normal file
306
svx/uiconfig/ui/sidebarline.ui
Normal file
|
@ -0,0 +1,306 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.0 -->
|
||||
<object class="GtkGrid" id="LinePropertyPanel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="row_homogeneous">True</property>
|
||||
<property name="column_homogeneous">True</property>
|
||||
<child>
|
||||
<object class="GtkBox" id="box1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="border_width">6</property>
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">12</property>
|
||||
<child>
|
||||
<object class="GtkGrid" id="grid1">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<child>
|
||||
<object class="GtkLabel" id="widthlabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">_Width:</property>
|
||||
<property name="use_underline">True</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="GtkLabel" id="colorlabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0.25</property>
|
||||
<property name="label" translatable="yes">_Color:</property>
|
||||
<property name="use_underline">True</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>
|
||||
<child>
|
||||
<object class="GtkLabel" id="stylelabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">_Style:</property>
|
||||
<property name="use_underline">True</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="GtkLabel" id="translabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="label" translatable="yes">_Transparency:</property>
|
||||
<property name="use_underline">True</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="arrowlabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">_Arrow:</property>
|
||||
<property name="use_underline">True</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="GtkLabel" id="cornerlabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="label" translatable="yes">_Corner style:</property>
|
||||
<property name="use_underline">True</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="GtkLabel" id="caplabel">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="xalign">0.30000001192092896</property>
|
||||
<property name="label" translatable="yes">Ca_p style:</property>
|
||||
<property name="use_underline">True</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="GtkToolbar" id="width">
|
||||
<property name="width_request">120</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the width of the line.</property>
|
||||
<child>
|
||||
<object class="GtkMenuToolButton" id="setwidth">
|
||||
<property name="width_request">120</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="action_name">.uno:SelectWidth</property>
|
||||
<property name="label" translatable="yes">toolbutton1</property>
|
||||
<property name="use_underline">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</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="GtkComboBoxText" id="beginarrowstyle">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the style of the beginning arrowhead.</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="entry_text_column">0</property>
|
||||
<property name="id_column">1</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="GtkComboBoxText" id="endarrowstyle">
|
||||
<property name="width_request">120</property>
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the style of the ending arrowhead.</property>
|
||||
<property name="margin_left">20</property>
|
||||
<property name="hexpand">True</property>
|
||||
<property name="entry_text_column">0</property>
|
||||
<property name="id_column">1</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="GtkComboBoxText" id="edgestyle">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the style of the edge connections.</property>
|
||||
<property name="entry_text_column">0</property>
|
||||
<property name="id_column">1</property>
|
||||
<style>
|
||||
<class name="Rounded"/>
|
||||
<class name="- none -"/>
|
||||
<class name="Mitered"/>
|
||||
<class name="Beveled"/>
|
||||
</style>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">0</property>
|
||||
<property name="top_attach">7</property>
|
||||
<property name="width">1</property>
|
||||
<property name="height">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkComboBoxText" id="linecapstyle">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the style of the line caps.</property>
|
||||
<property name="margin_left">20</property>
|
||||
<property name="entry_text_column">0</property>
|
||||
<property name="id_column">1</property>
|
||||
<style>
|
||||
<class name="Flat"/>
|
||||
<class name="Round"/>
|
||||
<class name="Square"/>
|
||||
</style>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="left_attach">1</property>
|
||||
<property name="top_attach">7</property>
|
||||
<property name="width">1</property>
|
||||
<property name="height">1</property>
|
||||
</packing>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkComboBoxText" id="linestyle">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the style of the line.</property>
|
||||
<property name="entry_text_column">0</property>
|
||||
<property name="id_column">1</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="GtkToolbar" id="color">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the color of the line.</property>
|
||||
<child>
|
||||
<object class="GtkMenuToolButton" id="setcolor">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="tooltip_text" translatable="yes">Select the color of the line.</property>
|
||||
<property name="margin_left">20</property>
|
||||
<property name="action_name">.uno:SelectColor</property>
|
||||
<property name="label" translatable="yes">toolbutton1</property>
|
||||
<property name="use_underline">True</property>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">True</property>
|
||||
<property name="homogeneous">True</property>
|
||||
</packing>
|
||||
</child>
|
||||
</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="GtkSpinButton" id="linetransparency">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="tooltip_text" translatable="yes">Specify the transparency of the line.</property>
|
||||
<property name="margin_left">20</property>
|
||||
<property name="invisible_char">•</property>
|
||||
<property name="climb_rate">5</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>
|
||||
<placeholder/>
|
||||
</child>
|
||||
</object>
|
||||
<packing>
|
||||
<property name="expand">False</property>
|
||||
<property name="fill">True</property>
|
||||
<property name="position">0</property>
|
||||
</packing>
|
||||
</child>
|
||||
</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>
|
||||
</object>
|
||||
</interface>
|
Loading…
Reference in a new issue