Kaydet (Commit) b050021c authored tarafından Rishabh Kumar's avatar Rishabh Kumar Kaydeden (comit) Andras Timar

tdf#90888:Shrink the properties sidebar sections in Calc

Removal of less used controls

Change-Id: I2948e6582031db1f743af59fb1ae02c1a86467f4
Reviewed-on: https://gerrit.libreoffice.org/15935Reviewed-by: 's avatarYousuf Philips <philipz85@hotmail.com>
Tested-by: 's avatarYousuf Philips <philipz85@hotmail.com>
(cherry picked from commit 1c18deee)
Reviewed-on: https://gerrit.libreoffice.org/16133Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarPhilippe Jung <phil.jung@free.fr>
üst aa243d23
...@@ -45,7 +45,6 @@ AlignmentPropertyPanel::AlignmentPropertyPanel( ...@@ -45,7 +45,6 @@ AlignmentPropertyPanel::AlignmentPropertyPanel(
maMergeCellControl(FID_MERGE_TOGGLE, *pBindings, *this), maMergeCellControl(FID_MERGE_TOGGLE, *pBindings, *this),
maWrapTextControl(SID_ATTR_ALIGN_LINEBREAK, *pBindings, *this), maWrapTextControl(SID_ATTR_ALIGN_LINEBREAK, *pBindings, *this),
maAngleControl(SID_ATTR_ALIGN_DEGREES, *pBindings, *this), maAngleControl(SID_ATTR_ALIGN_DEGREES, *pBindings, *this),
maStackControl(SID_ATTR_ALIGN_STACKED, *pBindings, *this),
mbMultiDisable(false), mbMultiDisable(false),
mxFrame(rxFrame), mxFrame(rxFrame),
maContext(), maContext(),
...@@ -56,9 +55,7 @@ AlignmentPropertyPanel::AlignmentPropertyPanel( ...@@ -56,9 +55,7 @@ AlignmentPropertyPanel::AlignmentPropertyPanel(
get(mpCBXWrapText, "wraptext"); get(mpCBXWrapText, "wraptext");
get(mpCBXMergeCell, "mergecells"); get(mpCBXMergeCell, "mergecells");
get(mpFtRotate, "orientationlabel"); get(mpFtRotate, "orientationlabel");
get(mpCtrlDial, "orientationcontrol");
get(mpMtrAngle, "orientationdegrees"); get(mpMtrAngle, "orientationdegrees");
get(mpCbStacked, "verticallystacked");
Initialize(); Initialize();
...@@ -78,16 +75,13 @@ void AlignmentPropertyPanel::dispose() ...@@ -78,16 +75,13 @@ void AlignmentPropertyPanel::dispose()
mpCBXWrapText.clear(); mpCBXWrapText.clear();
mpCBXMergeCell.clear(); mpCBXMergeCell.clear();
mpFtRotate.clear(); mpFtRotate.clear();
mpCtrlDial.clear();
mpMtrAngle.clear(); mpMtrAngle.clear();
mpCbStacked.clear();
maAlignHorControl.dispose(); maAlignHorControl.dispose();
maLeftIndentControl.dispose(); maLeftIndentControl.dispose();
maMergeCellControl.dispose(); maMergeCellControl.dispose();
maWrapTextControl.dispose(); maWrapTextControl.dispose();
maAngleControl.dispose(); maAngleControl.dispose();
maStackControl.dispose();
PanelLayout::dispose(); PanelLayout::dispose();
} }
...@@ -107,8 +101,6 @@ void AlignmentPropertyPanel::Initialize() ...@@ -107,8 +101,6 @@ void AlignmentPropertyPanel::Initialize()
mpCBXWrapText->SetClickHdl ( aLink ); mpCBXWrapText->SetClickHdl ( aLink );
//rotation control //rotation control
mpCtrlDial->SetAccessibleName(OUString( "Text Orientation")); //wj acc
mpCtrlDial->SetModifyHdl(LINK( this, AlignmentPropertyPanel, RotationHdl));
//rotation //rotation
mpMtrAngle->SetAccessibleName(OUString( "Text Orientation")); //wj acc mpMtrAngle->SetAccessibleName(OUString( "Text Orientation")); //wj acc
...@@ -116,7 +108,6 @@ void AlignmentPropertyPanel::Initialize() ...@@ -116,7 +108,6 @@ void AlignmentPropertyPanel::Initialize()
mpMtrAngle->EnableAutocomplete( false ); mpMtrAngle->EnableAutocomplete( false );
//Vertical stacked //Vertical stacked
mpCbStacked->SetClickHdl( LINK( this, AlignmentPropertyPanel, ClickStackHdl ) );
mpMtrAngle->InsertValue(0, FUNIT_CUSTOM); mpMtrAngle->InsertValue(0, FUNIT_CUSTOM);
mpMtrAngle->InsertValue(45, FUNIT_CUSTOM); mpMtrAngle->InsertValue(45, FUNIT_CUSTOM);
...@@ -170,27 +161,6 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, AngleModifiedHdl ) ...@@ -170,27 +161,6 @@ IMPL_LINK_NOARG( AlignmentPropertyPanel, AngleModifiedHdl )
SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, &aAngleItem, 0L ); SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, &aAngleItem, 0L );
return 0; return 0;
} }
IMPL_LINK_NOARG( AlignmentPropertyPanel, RotationHdl )
{
sal_Int32 nTmp = mpCtrlDial->GetRotation();
SfxInt32Item aAngleItem( SID_ATTR_ALIGN_DEGREES,(sal_uInt32) nTmp);
GetBindings()->GetDispatcher()->Execute(
SID_ATTR_ALIGN_DEGREES, SfxCallMode::RECORD, &aAngleItem, 0L );
return 0;
}
IMPL_LINK_NOARG( AlignmentPropertyPanel, ClickStackHdl )
{
bool bVertical = mpCbStacked->IsChecked();
SfxBoolItem aStackItem( SID_ATTR_ALIGN_STACKED, bVertical );
GetBindings()->GetDispatcher()->Execute(
SID_ATTR_ALIGN_STACKED, SfxCallMode::RECORD, &aStackItem, 0L );
return 0;
}
IMPL_LINK_NOARG(AlignmentPropertyPanel, MFLeftIndentMdyHdl) IMPL_LINK_NOARG(AlignmentPropertyPanel, MFLeftIndentMdyHdl)
{ {
mpCBXWrapText->EnableTriState(false); mpCBXWrapText->EnableTriState(false);
...@@ -282,17 +252,14 @@ void AlignmentPropertyPanel::NotifyItemUpdate( ...@@ -282,17 +252,14 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
if( meHorAlignState == SVX_HOR_JUSTIFY_REPEAT ) if( meHorAlignState == SVX_HOR_JUSTIFY_REPEAT )
{ {
mpFtRotate->Disable(); mpFtRotate->Disable();
mpCtrlDial->Disable();
mpMtrAngle->Disable(); mpMtrAngle->Disable();
} }
else else
{ {
mpFtRotate->Enable(!mbMultiDisable); mpFtRotate->Enable(!mbMultiDisable);
mpCtrlDial->Enable(!mbMultiDisable);
mpMtrAngle->Enable(!mbMultiDisable); mpMtrAngle->Enable(!mbMultiDisable);
} }
mpCbStacked->Enable( meHorAlignState != SVX_HOR_JUSTIFY_REPEAT );
mpFTLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT ); mpFTLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT );
mpMFLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT ); mpMFLeftIndent->Enable( meHorAlignState == SVX_HOR_JUSTIFY_LEFT );
} }
...@@ -352,7 +319,6 @@ void AlignmentPropertyPanel::NotifyItemUpdate( ...@@ -352,7 +319,6 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
{ {
long nTmp = static_cast<const SfxInt32Item*>(pState)->GetValue(); long nTmp = static_cast<const SfxInt32Item*>(pState)->GetValue();
mpMtrAngle->SetValue( nTmp / 100); //wj mpMtrAngle->SetValue( nTmp / 100); //wj
mpCtrlDial->SetRotation( nTmp );
switch(nTmp) switch(nTmp)
{ {
case 0: case 0:
...@@ -383,29 +349,8 @@ void AlignmentPropertyPanel::NotifyItemUpdate( ...@@ -383,29 +349,8 @@ void AlignmentPropertyPanel::NotifyItemUpdate(
else else
{ {
mpMtrAngle->SetText( OUString() ); mpMtrAngle->SetText( OUString() );
mpCtrlDial->SetRotation( 0 );
} }
break; break;
case SID_ATTR_ALIGN_STACKED:
if (eState >= SfxItemState::DEFAULT)
{
mpCbStacked->EnableTriState(false);
const SfxBoolItem* aStackItem = static_cast<const SfxBoolItem*>(pState);
mbMultiDisable = aStackItem->GetValue();
mpCbStacked->Check(mbMultiDisable);
mpFtRotate->Enable(!mbMultiDisable);
mpMtrAngle->Enable(!mbMultiDisable);
mpCtrlDial->Enable(!mbMultiDisable);
}
else
{
mbMultiDisable = true;
mpFtRotate->Disable();
mpMtrAngle->Disable();
mpCtrlDial->Disable();
mpCbStacked->EnableTriState(true);
mpCbStacked->SetState(TRISTATE_INDET);
}
} }
} }
......
...@@ -73,16 +73,13 @@ private: ...@@ -73,16 +73,13 @@ private:
VclPtr<CheckBox> mpCBXWrapText; VclPtr<CheckBox> mpCBXWrapText;
VclPtr<CheckBox> mpCBXMergeCell; VclPtr<CheckBox> mpCBXMergeCell;
VclPtr<FixedText> mpFtRotate; VclPtr<FixedText> mpFtRotate;
VclPtr<svx::sidebar::SidebarDialControl> mpCtrlDial;
VclPtr<MetricBox> mpMtrAngle; VclPtr<MetricBox> mpMtrAngle;
VclPtr<CheckBox> mpCbStacked;
::sfx2::sidebar::ControllerItem maAlignHorControl; ::sfx2::sidebar::ControllerItem maAlignHorControl;
::sfx2::sidebar::ControllerItem maLeftIndentControl; ::sfx2::sidebar::ControllerItem maLeftIndentControl;
::sfx2::sidebar::ControllerItem maMergeCellControl; ::sfx2::sidebar::ControllerItem maMergeCellControl;
::sfx2::sidebar::ControllerItem maWrapTextControl; ::sfx2::sidebar::ControllerItem maWrapTextControl;
::sfx2::sidebar::ControllerItem maAngleControl; ::sfx2::sidebar::ControllerItem maAngleControl;
::sfx2::sidebar::ControllerItem maStackControl;
/// bitfield /// bitfield
bool mbMultiDisable : 1; bool mbMultiDisable : 1;
......
...@@ -132,7 +132,6 @@ CellAppearancePropertyPanel::CellAppearancePropertyPanel( ...@@ -132,7 +132,6 @@ CellAppearancePropertyPanel::CellAppearancePropertyPanel(
get(mpTBCellBorder, "cellbordertype"); get(mpTBCellBorder, "cellbordertype");
get(mpTBLineStyle, "borderlinestyle"); get(mpTBLineStyle, "borderlinestyle");
get(mpTBLineColor, "borderlinecolor"); get(mpTBLineColor, "borderlinecolor");
get(mpCBXShowGrid, "cellgridlines");
mpCellBorderUpdater.reset( new CellBorderUpdater( mpCellBorderUpdater.reset( new CellBorderUpdater(
mpTBCellBorder->GetItemId( UNO_SETBORDERSTYLE ), *mpTBCellBorder) ); mpTBCellBorder->GetItemId( UNO_SETBORDERSTYLE ), *mpTBCellBorder) );
...@@ -150,7 +149,6 @@ void CellAppearancePropertyPanel::dispose() ...@@ -150,7 +149,6 @@ void CellAppearancePropertyPanel::dispose()
mpTBCellBorder.clear(); mpTBCellBorder.clear();
mpTBLineStyle.clear(); mpTBLineStyle.clear();
mpTBLineColor.clear(); mpTBLineColor.clear();
mpCBXShowGrid.clear();
maLineStyleControl.dispose(); maLineStyleControl.dispose();
maBorderOuterControl.dispose(); maBorderOuterControl.dispose();
...@@ -181,8 +179,6 @@ void CellAppearancePropertyPanel::Initialize() ...@@ -181,8 +179,6 @@ void CellAppearancePropertyPanel::Initialize()
mpTBLineColor->Disable(); mpTBLineColor->Disable();
mpCBXShowGrid->SetClickHdl ( LINK(this, CellAppearancePropertyPanel, CBOXGridShowClkHdl) );
mpTBLineColor->SetAccessibleRelationLabeledBy(mpTBLineColor); mpTBLineColor->SetAccessibleRelationLabeledBy(mpTBLineColor);
mpTBLineStyle->SetAccessibleRelationLabeledBy(mpTBLineStyle); mpTBLineStyle->SetAccessibleRelationLabeledBy(mpTBLineStyle);
} }
...@@ -232,14 +228,6 @@ IMPL_LINK_TYPED(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pT ...@@ -232,14 +228,6 @@ IMPL_LINK_TYPED(CellAppearancePropertyPanel, TbxLineStyleSelectHdl, ToolBox*, pT
} }
} }
IMPL_LINK_NOARG(CellAppearancePropertyPanel, CBOXGridShowClkHdl)
{
bool bState = mpCBXShowGrid->IsChecked();
SfxBoolItem aItem( FID_TAB_TOGGLE_GRID , bState);
GetBindings()->GetDispatcher()->Execute(FID_TAB_TOGGLE_GRID, SfxCallMode::RECORD, &aItem, 0L);
return 0;
}
VclPtr<vcl::Window> CellAppearancePropertyPanel::Create ( VclPtr<vcl::Window> CellAppearancePropertyPanel::Create (
vcl::Window* pParent, vcl::Window* pParent,
const css::uno::Reference<css::frame::XFrame>& rxFrame, const css::uno::Reference<css::frame::XFrame>& rxFrame,
...@@ -476,22 +464,6 @@ void CellAppearancePropertyPanel::NotifyItemUpdate( ...@@ -476,22 +464,6 @@ void CellAppearancePropertyPanel::NotifyItemUpdate(
mbBLTR = false; mbBLTR = false;
UpdateControlState(); UpdateControlState();
break; break;
case FID_TAB_TOGGLE_GRID:
if(eState >= SfxItemState::DEFAULT)
{
const SfxBoolItem* pItem = dynamic_cast< const SfxBoolItem* >(pState);
if(pItem)
{
const bool bVal = pItem->GetValue();
if(bVal)
mpCBXShowGrid->Check(true);
else
mpCBXShowGrid->Check(false);
}
}
break;
} }
} }
......
...@@ -84,7 +84,6 @@ private: ...@@ -84,7 +84,6 @@ private:
VclPtr<ToolBox> mpTBLineStyle; VclPtr<ToolBox> mpTBLineStyle;
VclPtr<ToolBox> mpTBLineColor; VclPtr<ToolBox> mpTBLineColor;
::boost::scoped_ptr< CellBorderUpdater > mpCellBorderUpdater; ::boost::scoped_ptr< CellBorderUpdater > mpCellBorderUpdater;
VclPtr<CheckBox> mpCBXShowGrid;
::sfx2::sidebar::ControllerItem maLineStyleControl; ::sfx2::sidebar::ControllerItem maLineStyleControl;
::sfx2::sidebar::ControllerItem maBorderOuterControl; ::sfx2::sidebar::ControllerItem maBorderOuterControl;
...@@ -143,7 +142,6 @@ private: ...@@ -143,7 +142,6 @@ private:
DECL_LINK_TYPED(TbxCellBorderSelectHdl, ToolBox*, void); DECL_LINK_TYPED(TbxCellBorderSelectHdl, ToolBox*, void);
DECL_LINK_TYPED(TbxLineStyleSelectHdl, ToolBox*, void); DECL_LINK_TYPED(TbxLineStyleSelectHdl, ToolBox*, void);
DECL_LINK(CBOXGridShowClkHdl, void*);
// for CellLineStyle popup // for CellLineStyle popup
svx::sidebar::PopupControl* CreateCellLineStylePopupControl(svx::sidebar::PopupContainer* pParent); svx::sidebar::PopupControl* CreateCellLineStylePopupControl(svx::sidebar::PopupContainer* pParent);
......
...@@ -41,8 +41,6 @@ using ::sfx2::sidebar::Theme; ...@@ -41,8 +41,6 @@ using ::sfx2::sidebar::Theme;
const char UNO_NUMERICFIELD[] = ".uno:NumericField"; const char UNO_NUMERICFIELD[] = ".uno:NumericField";
const char UNO_NUMBERFORMATPERCENT[] = ".uno:NumberFormatPercent"; const char UNO_NUMBERFORMATPERCENT[] = ".uno:NumberFormatPercent";
const char UNO_NUMBERFORMATCURRENCY[] = ".uno:NumberFormatCurrency"; const char UNO_NUMBERFORMATCURRENCY[] = ".uno:NumberFormatCurrency";
const char UNO_NUMBERFORMATDATE[] = ".uno:NumberFormatDate";
const char UNO_INSERTFIXEDTEXT[] = ".uno:InsertFixedText";
namespace sc { namespace sidebar { namespace sc { namespace sidebar {
...@@ -125,10 +123,6 @@ IMPL_LINK_TYPED( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox, void ) ...@@ -125,10 +123,6 @@ IMPL_LINK_TYPED( NumberFormatPropertyPanel, NumFormatHdl, ToolBox*, pBox, void )
nId = 2; nId = 2;
else if(aCommand == UNO_NUMBERFORMATCURRENCY) else if(aCommand == UNO_NUMBERFORMATCURRENCY)
nId = 3; nId = 3;
else if(aCommand == UNO_NUMBERFORMATDATE)
nId = 4;
else if(aCommand == UNO_INSERTFIXEDTEXT)
nId = 9;
if( nId != mnCategorySelected ) if( nId != mnCategorySelected )
{ {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="border_width">6</property> <property name="border_width">6</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">12</property> <property name="spacing">10</property>
<child> <child>
<object class="GtkBox" id="box3"> <object class="GtkBox" id="box3">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -84,44 +84,6 @@ ...@@ -84,44 +84,6 @@
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child>
<object class="sfxlo-SidebarToolBox" id="writedirection">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="show_arrow">False</property>
<child>
<object class="GtkToolButton" id="lefttoright">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="is_important">True</property>
<property name="action_name">.uno:ParaLeftToRight</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="righttoleft">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="is_important">True</property>
<property name="action_name">.uno:ParaRightToLeft</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child> <child>
<object class="sfxlo-SidebarToolBox" id="verticalalignment"> <object class="sfxlo-SidebarToolBox" id="verticalalignment">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -170,7 +132,7 @@ ...@@ -170,7 +132,7 @@
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">2</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
</object> </object>
...@@ -191,15 +153,62 @@ ...@@ -191,15 +153,62 @@
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child>
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<child>
<object class="sfxlo-SidebarToolBox" id="indentbuttons">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="show_arrow">False</property>
<child>
<object class="GtkToolButton" id="incrementindent">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="is_important">True</property>
<property name="action_name">.uno:IncrementIndent</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogenous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="decrementindent">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="is_important">True</property>
<property name="action_name">.uno:DecrementIndent</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogenous">True</property>
</packing>
</child>
</object>
<packing>
<property name="left_attach">1</property>
<property name="top_attach">0</property>
</packing>
</child>
<child> <child>
<object class="GtkLabel" id="leftindentlabel"> <object class="GtkLabel" id="leftindentlabel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Left _indent:</property> <property name="label" translatable="yes">_Indent:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">leftindent:0pt</property> <property name="mnemonic_widget">leftindent:0pt</property>
</object> </object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
</object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
...@@ -288,6 +297,11 @@ ...@@ -288,6 +297,11 @@
<property name="position">1</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkBox" id="box2">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">12</property>
<child> <child>
<object class="GtkLabel" id="orientationlabel"> <object class="GtkLabel" id="orientationlabel">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -295,84 +309,71 @@ ...@@ -295,84 +309,71 @@
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">Text _orientation:</property> <property name="label" translatable="yes">Text _orientation:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="mnemonic_widget">orientationcontrol</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">2</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="box2"> <object class="VclComboBoxNumeric" id="orientationdegrees:0degrees">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="spacing">12</property> <property name="has_tooltip">True</property>
<child> <property name="tooltip_markup" translatable="yes">Select the angle for rotation.</property>
<object class="svxlo-SidebarDialControl" id="orientationcontrol"> <property name="tooltip_text" translatable="yes">Select the angle for rotation.</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="vexpand">True</property>
</object> </object>
<packing> <packing>
<property name="expand">True</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">0</property> <property name="position">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkBox" id="box4"> <object class="sfxlo-SidebarToolBox" id="writedirection">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="orientation">vertical</property> <property name="show_arrow">False</property>
<property name="spacing">6</property>
<child> <child>
<object class="GtkCheckButton" id="verticallystacked"> <object class="GtkToolButton" id="lefttoright">
<property name="label" translatable="yes">Vertically stacked</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">False</property>
<property name="receives_default">False</property> <property name="is_important">True</property>
<property name="has_tooltip">True</property> <property name="action_name">.uno:ParaLeftToRight</property>
<property name="tooltip_markup" translatable="yes">Aligns text vertically.</property> <property name="use_underline">True</property>
<property name="tooltip_text" translatable="yes">Aligns text vertically.</property>
<property name="xalign">0</property>
<property name="image_position">bottom</property>
<property name="draw_indicator">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="homogeneous">True</property>
<property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="VclComboBoxNumeric" id="orientationdegrees:0degrees"> <object class="GtkToolButton" id="righttoleft">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="has_tooltip">True</property> <property name="is_important">True</property>
<property name="tooltip_markup" translatable="yes">Select the angle for rotation.</property> <property name="action_name">.uno:ParaRightToLeft</property>
<property name="tooltip_text" translatable="yes">Select the angle for rotation.</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="homogeneous">True</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">False</property> <property name="fill">True</property>
<property name="pack_type">end</property> <property name="pack_type">end</property>
<property name="position">1</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">3</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
</object> </object>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <requires lib="gtk+" version="3.0"/>
<object class="GtkGrid" id="CellAppearancePropertyPanel"> <object class="GtkGrid" id="CellAppearancePropertyPanel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="label" translatable="yes">_Cell background:</property> <property name="label" translatable="yes">_Background:</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -69,20 +70,6 @@ ...@@ -69,20 +70,6 @@
<property name="position">0</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkLabel" id="cellborderlabel">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="label" translatable="yes">Cell _border:</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child> <child>
<object class="GtkBox" id="box2"> <object class="GtkBox" id="box2">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -102,9 +89,8 @@ ...@@ -102,9 +89,8 @@
<property name="tooltip_markup" translatable="yes">Specify the borders of the selected cells.</property> <property name="tooltip_markup" translatable="yes">Specify the borders of the selected cells.</property>
<property name="tooltip_text" translatable="yes">Specify the borders of the selected cells.</property> <property name="tooltip_text" translatable="yes">Specify the borders of the selected cells.</property>
<property name="halign">start</property> <property name="halign">start</property>
<property name="use_action_appearance">False</property>
<property name="action_name">.uno:SetBorderStyle</property> <property name="action_name">.uno:SetBorderStyle</property>
<property name="label" translatable="no">toolbutton1</property> <property name="label">toolbutton1</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -139,9 +125,8 @@ ...@@ -139,9 +125,8 @@
<property name="tooltip_markup" translatable="yes">Select the line style of the borders.</property> <property name="tooltip_markup" translatable="yes">Select the line style of the borders.</property>
<property name="tooltip_text" translatable="yes">Select the line style of the borders.</property> <property name="tooltip_text" translatable="yes">Select the line style of the borders.</property>
<property name="halign">end</property> <property name="halign">end</property>
<property name="use_action_appearance">False</property>
<property name="action_name">.uno:LineStyle</property> <property name="action_name">.uno:LineStyle</property>
<property name="label" translatable="no">toolbutton2</property> <property name="label">toolbutton2</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -204,32 +189,10 @@ ...@@ -204,32 +189,10 @@
<property name="position">2</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkCheckButton" id="cellgridlines">
<property name="label" translatable="yes">Show cell _grid lines</property>
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="tooltip_text" translatable="yes">Show the grid lines of the cells.</property>
<property name="action_name">.uno:ToggleSheetGrid</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
<property name="draw_indicator">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">4</property>
</packing>
</child>
</object> </object>
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
</object> </object>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface> <interface>
<!-- interface-requires gtk+ 3.0 --> <requires lib="gtk+" version="3.0"/>
<object class="GtkGrid" id="NumberFormatPropertyPanel"> <object class="GtkGrid" id="NumberFormatPropertyPanel">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
...@@ -14,20 +15,10 @@ ...@@ -14,20 +15,10 @@
<property name="orientation">vertical</property> <property name="orientation">vertical</property>
<property name="spacing">6</property> <property name="spacing">6</property>
<child> <child>
<object class="GtkLabel" id="categorylabel"> <object class="GtkGrid" id="grid1">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="xalign">0</property> <property name="column_spacing">6</property>
<property name="label" translatable="yes">_Category:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">category</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child> <child>
<object class="GtkComboBoxText" id="category"> <object class="GtkComboBoxText" id="category">
<property name="visible">True</property> <property name="visible">True</property>
...@@ -35,8 +26,7 @@ ...@@ -35,8 +26,7 @@
<property name="has_tooltip">True</property> <property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Select a category of contents.</property> <property name="tooltip_markup" translatable="yes">Select a category of contents.</property>
<property name="tooltip_text" translatable="yes">Select a category of contents.</property> <property name="tooltip_text" translatable="yes">Select a category of contents.</property>
<property name="entry_text_column">0</property> <property name="hexpand">True</property>
<property name="id_column">1</property>
<items> <items>
<item translatable="yes">General</item> <item translatable="yes">General</item>
<item translatable="yes">Number</item> <item translatable="yes">Number</item>
...@@ -51,24 +41,23 @@ ...@@ -51,24 +41,23 @@
</items> </items>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="left_attach">0</property>
<property name="fill">True</property> <property name="top_attach">0</property>
<property name="position">1</property>
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkToolbar" id="numberformat"> <object class="GtkToolbar" id="numberformat">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="show_arrow">False</property>
<child> <child>
<object class="GtkToolButton" id="numericfield"> <object class="GtkToolButton" id="currency">
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="width_request">30</property> <property name="width_request">30</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="use_action_appearance">False</property> <property name="action_name">.uno:NumberFormatCurrency</property>
<property name="action_name">.uno:NumericField</property> <property name="label">toolbutton1</property>
<property name="label" translatable="no">toolbutton1</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -81,9 +70,8 @@ ...@@ -81,9 +70,8 @@
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="action_name">.uno:NumberFormatPercent</property> <property name="action_name">.uno:NumberFormatPercent</property>
<property name="label" translatable="no">toolbutton2</property> <property name="label">toolbutton2</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -92,28 +80,12 @@ ...@@ -92,28 +80,12 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkToolButton" id="currency"> <object class="GtkToolButton" id="numericfield">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="action_name">.uno:NumberFormatCurrency</property>
<property name="label" translatable="no">toolbutton3</property>
<property name="use_underline">True</property>
</object>
<packing>
<property name="expand">False</property>
<property name="homogeneous">True</property>
</packing>
</child>
<child>
<object class="GtkToolButton" id="date">
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="use_action_appearance">False</property> <property name="action_name">.uno:NumericField</property>
<property name="action_name">.uno:NumberFormatDate</property> <property name="label">toolbutton3</property>
<property name="label" translatable="no">toolbutton4</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
</object> </object>
<packing> <packing>
...@@ -121,26 +93,17 @@ ...@@ -121,26 +93,17 @@
<property name="homogeneous">True</property> <property name="homogeneous">True</property>
</packing> </packing>
</child> </child>
<child>
<object class="GtkToolButton" id="insertfixedtext">
<property name="use_action_appearance">False</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_action_appearance">False</property>
<property name="action_name">.uno:InsertFixedText</property>
<property name="label" translatable="no">toolbutton5</property>
<property name="use_underline">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="left_attach">1</property>
<property name="homogeneous">True</property> <property name="top_attach">0</property>
</packing> </packing>
</child> </child>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
<property name="fill">True</property> <property name="fill">True</property>
<property name="position">2</property> <property name="position">0</property>
</packing> </packing>
</child> </child>
<child> <child>
...@@ -176,7 +139,6 @@ ...@@ -176,7 +139,6 @@
<property name="tooltip_markup" translatable="yes">Enter the number of decimal places that you want to display.</property> <property name="tooltip_markup" translatable="yes">Enter the number of decimal places that you want to display.</property>
<property name="tooltip_text" translatable="yes">Enter the number of decimal places that you want to display.</property> <property name="tooltip_text" translatable="yes">Enter the number of decimal places that you want to display.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -220,7 +182,6 @@ ...@@ -220,7 +182,6 @@
<property name="tooltip_markup" translatable="yes">Enter the maximum number of zeroes to display before the decimal point.</property> <property name="tooltip_markup" translatable="yes">Enter the maximum number of zeroes to display before the decimal point.</property>
<property name="tooltip_text" translatable="yes">Enter the maximum number of zeroes to display before the decimal point.</property> <property name="tooltip_text" translatable="yes">Enter the maximum number of zeroes to display before the decimal point.</property>
<property name="invisible_char"></property> <property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object> </object>
<packing> <packing>
<property name="expand">False</property> <property name="expand">False</property>
...@@ -245,7 +206,7 @@ ...@@ -245,7 +206,7 @@
</child> </child>
<child> <child>
<object class="GtkCheckButton" id="negativenumbersred"> <object class="GtkCheckButton" id="negativenumbersred">
<property name="label" translatable="yes">_Negative numbers red</property> <property name="label" translatable="yes">_Negative numbers in red</property>
<property name="use_action_appearance">False</property> <property name="use_action_appearance">False</property>
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">True</property> <property name="can_focus">True</property>
...@@ -253,7 +214,6 @@ ...@@ -253,7 +214,6 @@
<property name="has_tooltip">True</property> <property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Changes the font color of negative numbers to red.</property> <property name="tooltip_markup" translatable="yes">Changes the font color of negative numbers to red.</property>
<property name="tooltip_text" translatable="yes">Changes the font color of negative numbers to red.</property> <property name="tooltip_text" translatable="yes">Changes the font color of negative numbers to red.</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
...@@ -274,7 +234,6 @@ ...@@ -274,7 +234,6 @@
<property name="has_tooltip">True</property> <property name="has_tooltip">True</property>
<property name="tooltip_markup" translatable="yes">Inserts a separator between thousands.</property> <property name="tooltip_markup" translatable="yes">Inserts a separator between thousands.</property>
<property name="tooltip_text" translatable="yes">Inserts a separator between thousands.</property> <property name="tooltip_text" translatable="yes">Inserts a separator between thousands.</property>
<property name="use_action_appearance">False</property>
<property name="use_underline">True</property> <property name="use_underline">True</property>
<property name="xalign">0</property> <property name="xalign">0</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
...@@ -289,8 +248,6 @@ ...@@ -289,8 +248,6 @@
<packing> <packing>
<property name="left_attach">0</property> <property name="left_attach">0</property>
<property name="top_attach">0</property> <property name="top_attach">0</property>
<property name="width">1</property>
<property name="height">1</property>
</packing> </packing>
</child> </child>
</object> </object>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment