Kaydet (Commit) 4b8186db authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Add menu entries for sheet name and date field items.

Change-Id: I5ae910d455a7364209a203c2e3567a902e1f01a2
üst 7684ae6c
...@@ -1514,9 +1514,14 @@ ...@@ -1514,9 +1514,14 @@
<value>1</value> <value>1</value>
</prop> </prop>
</node> </node>
<node oor:name=".uno:InsertFieldTest" oor:op="replace"> <node oor:name=".uno:InsertFieldSheet" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string"> <prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Insert Field Test</value> <value xml:lang="en-US">Insert Sheet Name Field</value>
</prop>
</node>
<node oor:name=".uno:InsertFieldDateVariable" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Insert Date Field (variable)</value>
</prop> </prop>
</node> </node>
</node> </node>
......
...@@ -716,7 +716,8 @@ ...@@ -716,7 +716,8 @@
#define SID_DELETE_SCENARIO (SID_NEW_SLOTS+95) #define SID_DELETE_SCENARIO (SID_NEW_SLOTS+95)
#define SID_EDIT_SCENARIO (SID_NEW_SLOTS+96) #define SID_EDIT_SCENARIO (SID_NEW_SLOTS+96)
#define SID_INSERT_FIELD_TEST (SID_NEW_SLOTS+97) #define SID_INSERT_FIELD_SHEET (SID_NEW_SLOTS+97)
#define SID_INSERT_FIELD_DATE_VAR (SID_NEW_SLOTS+98)
// idl parameter // idl parameter
......
...@@ -99,7 +99,8 @@ interface TableText ...@@ -99,7 +99,8 @@ interface TableText
SID_INSERT_ZWSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ] SID_INSERT_ZWSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_INSERT_ZWNBSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ] SID_INSERT_ZWNBSP [ ExecMethod = Execute; StateMethod = GetState; Export = FALSE; ]
SID_INSERT_FIELD_TEST [ ExecMethod = Execute; StateMethod = GetState; ] SID_INSERT_FIELD_SHEET [ ExecMethod = Execute; StateMethod = GetState; ]
SID_INSERT_FIELD_DATE_VAR [ ExecMethod = Execute; StateMethod = GetState; ]
} }
......
...@@ -8001,7 +8001,31 @@ SfxVoidItem SetTabBgColor FID_TAB_MENU_SET_TAB_BG_COLOR ...@@ -8001,7 +8001,31 @@ SfxVoidItem SetTabBgColor FID_TAB_MENU_SET_TAB_BG_COLOR
GroupId = GID_FORMAT; GroupId = GID_FORMAT;
] ]
SfxVoidItem InsertFieldTest SID_INSERT_FIELD_TEST SfxVoidItem InsertFieldSheet SID_INSERT_FIELD_SHEET
()
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = FALSE,
HasCoreId = FALSE,
HasDialog = FALSE,
ReadOnlyDoc = TRUE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerSet;
Synchron;
/* config: */
AccelConfig = TRUE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = FALSE,
GroupId = GID_OPTIONS;
]
SfxVoidItem InsertFieldDateVariable SID_INSERT_FIELD_DATE_VAR
() ()
[ [
/* flags: */ /* flags: */
......
...@@ -438,8 +438,13 @@ Menu RID_POPUP_EDIT ...@@ -438,8 +438,13 @@ Menu RID_POPUP_EDIT
{ {
MenuItem MenuItem
{ {
Identifier = SID_INSERT_FIELD_TEST ; Identifier = SID_INSERT_FIELD_DATE_VAR ;
Text [ en-US ] = "Test Field"; Text [ en-US ] = "Date" ;
};
MenuItem
{
Identifier = SID_INSERT_FIELD_SHEET ;
Text [ en-US ] = "Sheet Name" ;
}; };
}; };
}; };
......
...@@ -614,13 +614,20 @@ void ScEditShell::Execute( SfxRequest& rReq ) ...@@ -614,13 +614,20 @@ void ScEditShell::Execute( SfxRequest& rReq )
case SID_INSERT_ZWNBSP: case SID_INSERT_ZWNBSP:
lclInsertCharacter( pTableView, pTopView, CHAR_ZWNBSP ); lclInsertCharacter( pTableView, pTopView, CHAR_ZWNBSP );
break; break;
case SID_INSERT_FIELD_TEST: case SID_INSERT_FIELD_SHEET:
{ {
SvxTableField aField(pViewData->GetTabNo()); SvxTableField aField(pViewData->GetTabNo());
SvxFieldItem aItem(aField, EE_FEATURE_FIELD); SvxFieldItem aItem(aField, EE_FEATURE_FIELD);
pTableView->InsertField(aItem); pTableView->InsertField(aItem);
} }
break; break;
case SID_INSERT_FIELD_DATE_VAR:
{
SvxDateField aField;
SvxFieldItem aItem(aField, EE_FEATURE_FIELD);
pTableView->InsertField(aItem);
}
break;
} }
pHdl->DataChanged(); pHdl->DataChanged();
...@@ -721,7 +728,8 @@ void ScEditShell::GetState( SfxItemSet& rSet ) ...@@ -721,7 +728,8 @@ void ScEditShell::GetState( SfxItemSet& rSet )
rSet.DisableItem( SID_THES ); rSet.DisableItem( SID_THES );
} }
break; break;
case SID_INSERT_FIELD_TEST: case SID_INSERT_FIELD_SHEET:
case SID_INSERT_FIELD_DATE_VAR:
break; break;
} }
......
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