summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-07-17 20:42:23 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-07-17 20:44:39 +0100
commita2204ecb852a42bd7b4d05e7d22dcfb8e2e445cf (patch)
treef851843b083b3fe8a6cee4f4ba4067bab9893992 /sc
parent0ef78be4576672a74cdad1dfb48a9e918c48be27 (diff)
set the widgets to get the extra title text from when in shrink mode
Change-Id: Ia809ab852180f0422a16b2fad5d93f35a2e6f604
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/sc.hrc1
-rw-r--r--sc/source/ui/dbgui/sfiltdlg.cxx2
-rw-r--r--sc/source/ui/inc/filter.hrc6
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx2
-rw-r--r--sc/source/ui/src/filter.src178
-rw-r--r--sc/uiconfig/scalc/ui/advancedfilterdialog.ui10
6 files changed, 13 insertions, 186 deletions
diff --git a/sc/inc/sc.hrc b/sc/inc/sc.hrc
index d16348023c90..b0842a2614d1 100644
--- a/sc/inc/sc.hrc
+++ b/sc/inc/sc.hrc
@@ -974,7 +974,6 @@
#define RID_SCPAGE_SORT_FIELDS (SC_DIALOGS_START + 6)
#define RID_SCDLG_FILTER (SC_DIALOGS_START + 8)
-#define RID_SCDLG_SPEC_FILTER (SC_DIALOGS_START + 9)
#define RID_SCDLG_INSCELL (SC_DIALOGS_START + 12)
diff --git a/sc/source/ui/dbgui/sfiltdlg.cxx b/sc/source/ui/dbgui/sfiltdlg.cxx
index 4c3eef53b825..80b36401c5c9 100644
--- a/sc/source/ui/dbgui/sfiltdlg.cxx
+++ b/sc/source/ui/dbgui/sfiltdlg.cxx
@@ -69,6 +69,7 @@ ScSpecialFilterDlg::ScSpecialFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, Wi
{
get(pLbFilterArea,"lbfilterarea");
get(pEdFilterArea,"edfilterarea");
+ pEdFilterArea->SetReferences(this, get<VclFrame>("filterframe")->get_label_widget());
get(pRbFilterArea,"rbfilterarea");
pRbFilterArea->SetReferences(this, pEdFilterArea);
get(pBtnCase,"case");
@@ -78,6 +79,7 @@ ScSpecialFilterDlg::ScSpecialFilterDlg( SfxBindings* pB, SfxChildWindow* pCW, Wi
get(pBtnCopyResult,"copyresult");
get(pLbCopyArea,"lbcopyarea");
get(pEdCopyArea,"edcopyarea");
+ pEdCopyArea->SetReferences(this, pBtnCopyResult);
get(pRbCopyArea,"rbcopyarea");
pRbCopyArea->SetReferences(this, pEdCopyArea);
get(pBtnDestPers,"destpers");
diff --git a/sc/source/ui/inc/filter.hrc b/sc/source/ui/inc/filter.hrc
index bf783c20a634..8335f632f42e 100644
--- a/sc/source/ui/inc/filter.hrc
+++ b/sc/source/ui/inc/filter.hrc
@@ -66,12 +66,6 @@
#define LB_OP4 42
// Special filter
-/*
-#define FT_CRITERIA_AREA 50
-#define LB_CRITERIA_AREA 51
-#define ED_CRITERIA_AREA 52
-#define RB_CRITERIA_AREA 53
-*/
#define STR_COPY_AREA_TO 5054
#define RID_FILTER_OPERATOR 5055
#define RID_FILTER_FIELDNAME 5056
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index ab3b534bf93c..f060cc7ce8a4 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -486,7 +486,7 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
{
String sNewDialogText = sOldDialogText;
sNewDialogText.AppendAscii(RTL_CONSTASCII_STRINGPARAM( ": " ));
- sNewDialogText += sLabel;
+ sNewDialogText += comphelper::string::stripEnd(sLabel, ':');
m_pWindow->SetText( MnemonicGenerator::EraseAllMnemonicChars( sNewDialogText ) );
}
}
diff --git a/sc/source/ui/src/filter.src b/sc/source/ui/src/filter.src
index 1490b09cb1ed..53975db9ee86 100644
--- a/sc/source/ui/src/filter.src
+++ b/sc/source/ui/src/filter.src
@@ -437,181 +437,9 @@ ModelessDialog RID_SCDLG_FILTER
Size = MAP_APPFONT ( 279 , 6 ) ;
};
};
- //============================================================================
-/*ModelessDialog RID_SCDLG_SPEC_FILTER
-{
- OutputSize = TRUE ;
- HelpId = CMD_SID_SPECIAL_FILTER ;
- Hide = TRUE ;
- SVLook = TRUE ;
- Size = MAP_APPFONT ( 278 , 83 ) ;
- Text [ en-US ] = "Advanced Filter" ;
- Moveable = TRUE ;
- Closeable = FALSE ;
- FixedText FT_CRITERIA_AREA
- {
- Pos = MAP_APPFONT ( 6 , 3 ) ;
- Size = MAP_APPFONT ( 210 , 8 ) ;
- Text [ en-US ] = "Read ~filter criteria from" ;
- };
- ListBox LB_CRITERIA_AREA
- {
- HelpID = "sc:ListBox:RID_SCDLG_SPEC_FILTER:LB_CRITERIA_AREA";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 6 , 14 ) ;
- Size = MAP_APPFONT ( 90 , 90 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- };
- Edit ED_CRITERIA_AREA
- {
- HelpID = "sc:Edit:RID_SCDLG_SPEC_FILTER:ED_CRITERIA_AREA";
- Border = TRUE ;
- Pos = MAP_APPFONT ( 100 , 14 ) ;
- Size = MAP_APPFONT ( 99 , 12 ) ;
- TabStop = TRUE ;
- };
- ImageButton RB_CRITERIA_AREA
- {
- HelpID = "sc:ImageButton:RID_SCDLG_SPEC_FILTER:RB_CRITERIA_AREA";
- Pos = MAP_APPFONT ( 201 , 13 ) ;
- Size = MAP_APPFONT ( 13 , 15 ) ;
- TabStop = FALSE ;
- QuickHelpText [ en-US ] = "Shrink" ;
- };
- CheckBox BTN_CASE
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_CASE";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 12 , 43 ) ;
- Size = MAP_APPFONT ( 128 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Case sensitive" ;
- };
- CheckBox BTN_REGEXP
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_REGEXP";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 142 , 43 ) ;
- Size = MAP_APPFONT ( 74 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Regular ~expressions" ;
- };
- CheckBox BTN_HEADER
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_HEADER";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 12 , 57 ) ;
- Size = MAP_APPFONT ( 128 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Range c~ontains column labels" ;
- };
- CheckBox BTN_UNIQUE
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_UNIQUE";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 142 , 57 ) ;
- Size = MAP_APPFONT ( 74 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~No duplication" ;
- };
- CheckBox BTN_COPY_RESULT
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_COPY_RESULT";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 12 , 71 ) ;
- Size = MAP_APPFONT ( 128 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "Co~py results to" ;
- };
- CheckBox BTN_DEST_PERS
- {
- HelpID = "sc:CheckBox:RID_SCDLG_SPEC_FILTER:BTN_DEST_PERS";
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 142 , 71 ) ;
- Size = MAP_APPFONT ( 74 , 10 ) ;
- TabStop = TRUE ;
- Text [ en-US ] = "~Keep filter criteria" ;
- };
- ListBox LB_COPY_AREA
- {
- HelpID = "sc:ListBox:RID_SCDLG_SPEC_FILTER:LB_COPY_AREA";
- Border = TRUE ;
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 20 , 83 ) ;
- Size = MAP_APPFONT ( 76 , 90 ) ;
- TabStop = TRUE ;
- DropDown = TRUE ;
- };
- Edit ED_COPY_AREA
- {
- HelpID = "sc:Edit:RID_SCDLG_SPEC_FILTER:ED_COPY_AREA";
- Border = TRUE ;
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 100 , 83 ) ;
- Size = MAP_APPFONT ( 99 , 12 ) ;
- TabStop = TRUE ;
- };
- ImageButton RB_COPY_AREA
- {
- HelpID = "sc:ImageButton:RID_SCDLG_SPEC_FILTER:RB_COPY_AREA";
- Pos = MAP_APPFONT ( 201 , 82 ) ;
- Size = MAP_APPFONT ( 13 , 15 ) ;
- TabStop = FALSE ;
- QuickHelpText [ en-US ] = "Shrink" ;
- };
- FixedLine FL_OPTIONS
- {
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 6 , 32 ) ;
- Size = MAP_APPFONT ( 210 , 8 ) ;
- Text [ en-US ] = "Options" ;
- };
- FixedText FT_DBAREA
- {
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 58 , 101 ) ;
- Size = MAP_APPFONT ( 155 , 8 ) ;
- Left = TRUE ;
- Text [ en-US ] = "dummy" ;
- };
- FixedText FT_DBAREA_LABEL
- {
- Hide = TRUE ;
- Pos = MAP_APPFONT ( 6 , 101 ) ;
- Size = MAP_APPFONT ( 50 , 8 ) ;
- Text [ en-US ] = "Data range:" ;
- };
- OKButton BTN_OK
- {
- Pos = MAP_APPFONT ( 222 , 6 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- DefButton = TRUE ;
- };
- CancelButton BTN_CANCEL
- {
- Pos = MAP_APPFONT ( 222 , 23 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- HelpButton BTN_HELP
- {
- Pos = MAP_APPFONT ( 222 , 43 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- };
- MoreButton BTN_MORE
- {
- HelpID = "sc:MoreButton:RID_SCDLG_SPEC_FILTER:BTN_MORE";
- Pos = MAP_APPFONT ( 223 , 63 ) ;
- Size = MAP_APPFONT ( 50 , 14 ) ;
- TabStop = TRUE ;
- MapUnit = MAP_APPFONT ;
- Delta = 32 ;
- };
-};*/
- //============================================================================
+
+//============================================================================
+
ModalDialog RID_SCDLG_PIVOTFILTER
{
OutputSize = TRUE ;
diff --git a/sc/uiconfig/scalc/ui/advancedfilterdialog.ui b/sc/uiconfig/scalc/ui/advancedfilterdialog.ui
index 6202dc3bd2bc..c1cfeec19ff9 100644
--- a/sc/uiconfig/scalc/ui/advancedfilterdialog.ui
+++ b/sc/uiconfig/scalc/ui/advancedfilterdialog.ui
@@ -16,7 +16,7 @@
<property name="orientation">vertical</property>
<property name="spacing">12</property>
<child>
- <object class="GtkFrame" id="frame1">
+ <object class="GtkFrame" id="filterframe">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="hexpand">True</property>
@@ -72,8 +72,9 @@
<object class="foruilo-RefEdit" id="edfilterarea">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="width_chars">30</property>
+ <property name="hexpand">True</property>
<property name="invisible_char">●</property>
+ <property name="width_chars">30</property>
</object>
<packing>
<property name="left_attach">1</property>
@@ -176,6 +177,7 @@
<object class="GtkGrid" id="grid2">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="margin_top">6</property>
<property name="hexpand">True</property>
<property name="vexpand">True</property>
<property name="row_spacing">6</property>
@@ -336,6 +338,8 @@
<object class="foruilo-RefEdit" id="edcopyarea">
<property name="visible">True</property>
<property name="can_focus">True</property>
+ <property name="margin_bottom">1</property>
+ <property name="hexpand">True</property>
<property name="invisible_char">●</property>
<property name="width_chars">30</property>
<accessibility>
@@ -421,8 +425,8 @@
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="use_underline">True</property>
<property name="label" translatable="yes">Op_tions</property>
+ <property name="use_underline">True</property>
</object>
</child>
</object>