summaryrefslogtreecommitdiff
path: root/cui/source
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-11-29 00:48:24 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-11-29 00:48:24 +0000
commitbc9015d64e365ebb2bc2b41c89f26d5953790167 (patch)
tree1e257e7693601221d74e0933c4fdff1fcc4bc825 /cui/source
parente3eebb16c90fa5c3320fa9843e3420293bec6ab2 (diff)
#i104820# - Fix overlapping controls
Notes
Diffstat (limited to 'cui/source')
-rw-r--r--cui/source/options/optinet2.cxx5
-rw-r--r--cui/source/options/optinet2.src18
2 files changed, 15 insertions, 8 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index 0ce2cc604ff7..460d084153bb 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -874,14 +874,15 @@ void SvxSearchTabPage::InitControls_Impl()
}
// resize all labels
- nLabelTextWidth = nLabelTextWidth * 120 / 100; // additional space looks better
+ const Size aSpace = aSearchNameFT.LogicToPixel( Size( RSC_SP_CTRL_DESC_Y, RSC_SP_CTRL_DESC_Y ), MAP_APPFONT );
+ nLabelTextWidth += aSpace.Width();
const long nLabelWidth = aSearchNameFT.GetSizePixel().Width();
const long nDelta = nLabelWidth - nLabelTextWidth;
pLabel = pLabels;
for ( i = 0; i < nLabelCount; ++i, ++pLabel )
{
Size aNewSize = (*pLabel)->GetSizePixel();
- aNewSize.Width() += nDelta;
+ aNewSize.Width() = nLabelTextWidth;
(*pLabel)->SetSizePixel( aNewSize );
}
diff --git a/cui/source/options/optinet2.src b/cui/source/options/optinet2.src
index c1af998776cd..8cb9cbbcd182 100644
--- a/cui/source/options/optinet2.src
+++ b/cui/source/options/optinet2.src
@@ -255,7 +255,7 @@ TabPage RID_SVXPAGE_INET_SEARCH
{
HelpId = HID_OPTIONS_SEARCH ;
OutputSize = TRUE ;
- Size = MAP_APPFONT ( 260 , 185 ) ;
+ Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
SVLook = TRUE ;
Hide = TRUE ;
Text [ en-US ] = "Search" ;
@@ -304,7 +304,7 @@ TabPage RID_SVXPAGE_INET_SEARCH
Pos = MAP_APPFONT ( EDIT_START_XPOS , GB_SEARCH_TOP + 26 ) ;
Size = MAP_APPFONT ( 125 , 10 ) ;
Check = TRUE ;
- Text [ en-US ] = "And" ;
+ Text [ en-US ] = "~And" ;
};
RadioButton RB_OR
{
@@ -379,31 +379,37 @@ TabPage RID_SVXPAGE_INET_SEARCH
< "Lower" ; > ;
};
};
+
+ #define PB_SEARCH_POS_Y TP_HEIGHT - RSC_CD_PUSHBUTTON_HEIGHT - RSC_SP_TBPG_INNERBORDER_BOTTOM
+ #define PB_SEARCH_POS_X1 TP_WIDTH - ( RSC_CD_PUSHBUTTON_WIDTH * 4 ) - ( RSC_SP_CTRL_GROUP_X * 3 ) - RSC_SP_TBPG_INNERBORDER_RIGHT
+ #define PB_SEARCH_POS_X2 TP_WIDTH - ( RSC_CD_PUSHBUTTON_WIDTH * 3 ) - ( RSC_SP_CTRL_GROUP_X * 2 ) - RSC_SP_TBPG_INNERBORDER_RIGHT
+ #define PB_SEARCH_POS_X3 TP_WIDTH - ( RSC_CD_PUSHBUTTON_WIDTH * 2 ) - ( RSC_SP_CTRL_GROUP_X * 1 ) - RSC_SP_TBPG_INNERBORDER_RIGHT
+ #define PB_SEARCH_POS_X4 TP_WIDTH - RSC_CD_PUSHBUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT
PushButton PB_NEW
{
HelpID = "cui:PushButton:RID_SVXPAGE_INET_SEARCH:PB_NEW";
- Pos = MAP_APPFONT ( 39 , GB_SEARCH_TOP + 131 + 6 ) ;
+ Pos = MAP_APPFONT ( PB_SEARCH_POS_X1 , PB_SEARCH_POS_Y ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "N~ew";
};
PushButton PB_ADD
{
HelpID = "cui:PushButton:RID_SVXPAGE_INET_SEARCH:PB_ADD";
- Pos = MAP_APPFONT ( 92 , GB_SEARCH_TOP + 131 + 6 ) ;
+ Pos = MAP_APPFONT (PB_SEARCH_POS_X2 , PB_SEARCH_POS_Y ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Add" ;
};
PushButton PB_CHANGE
{
HelpID = "cui:PushButton:RID_SVXPAGE_INET_SEARCH:PB_CHANGE";
- Pos = MAP_APPFONT ( 145 , GB_SEARCH_TOP + 131 + 6 ) ;
+ Pos = MAP_APPFONT ( PB_SEARCH_POS_X3 , PB_SEARCH_POS_Y ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Modify" ;
};
PushButton PB_DELETE
{
HelpID = "cui:PushButton:RID_SVXPAGE_INET_SEARCH:PB_DELETE";
- Pos = MAP_APPFONT ( 198 , GB_SEARCH_TOP + 131 + 6 ) ;
+ Pos = MAP_APPFONT ( PB_SEARCH_POS_X4 , PB_SEARCH_POS_Y ) ;
Size = MAP_APPFONT ( 50 , 14 ) ;
Text [ en-US ] = "~Delete" ;
};