Yoshiyuki Masutomi wrote:
> Writer、Calc、Draw、Impress、Writer(read only mode)などで、
> 「切り取り、コピー、貼り付け」と言う順でコンテキストメニューの最下位に表
> 示されるところを「コピー、切り取り、貼り付け」と言う順で上位2番目か3番
> 目(Calc)から表示させます。
結局、「切り取り、コピー、貼り付け」の順番に戻しました。
> Calc用patch : sc_contextmenu_change_SRC680_m138.patch
> Calc以外全般用patch : sfx2_contextmenu_change_SRC680_m138.patch
> Writer(read only mode)用patch : sw_contextmenu_change_SRC680_m138.patch
>
> 大体のアプリケーションで表示できるようになりましたが、まだBaseとヘルプに
> 関する部分が未着手です。
Baseは元々上位の方に表示されているので手を付けずに、追加でヘルプの方も上
位に表示するようにしました。
> それからWriterで「形式を選択して貼り付け」も追加出来ればしたいですが、ま
> だ出来ていません。
出来なさそうなので止めておきます。
--- SRC680_m138/sc/source/ui/src/popup.src.orig 2005-11-11 21:46:41.000000000 +0900
+++ SRC680_m138/sc/source/ui/src/popup.src 2005-11-12 21:22:51.000000000 +0900
@@ -72,33 +72,6 @@
//------------------------------
MenuItem { Separator = TRUE ; };
//------------------------------
- MenuItem
- {
- Identifier = FID_INS_CELL ;
- HelpId = FID_INS_CELL ;
- Text [ de ] = "Zellen ~einfügen..." ;
- Text [ en-US ] = "Insert C~ells..." ;
- Text [ x-comment ] = " ";
- };
- MenuItem
- {
- Identifier = FID_DELETE_CELL ;
- HelpId = FID_DELETE_CELL ;
- Text [ de ] = "Zellen ~löschen..." ;
- Text [ en-US ] = "De~lete Cells..." ;
- Text [ x-comment ] = " ";
- };
- MenuItem
- {
- Identifier = SID_DELETE ;
- HelpId = SID_DELETE ;
- Text [ de ] = "Inhalte lö~schen..." ;
- Text [ en-US ] = "Delete C~ontents..." ;
- Text [ x-comment ] = " ";
- };
- //------------------------------
- MenuItem { Separator = TRUE ; };
- //------------------------------
MenuItem
{
@@ -139,6 +112,33 @@
//------------------------------
MenuItem
{
+ Identifier = FID_INS_CELL ;
+ HelpId = FID_INS_CELL ;
+ Text [ de ] = "Zellen ~einfügen..." ;
+ Text [ en-US ] = "Insert C~ells..." ;
+ Text [ x-comment ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = FID_DELETE_CELL ;
+ HelpId = FID_DELETE_CELL ;
+ Text [ de ] = "Zellen ~löschen..." ;
+ Text [ en-US ] = "De~lete Cells..." ;
+ Text [ x-comment ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = SID_DELETE ;
+ HelpId = SID_DELETE ;
+ Text [ de ] = "Inhalte lö~schen..." ;
+ Text [ en-US ] = "Delete C~ontents..." ;
+ Text [ x-comment ] = " ";
+ };
+ //------------------------------
+ MenuItem { Separator = TRUE ; };
+ //------------------------------
+ MenuItem
+ {
Identifier = FID_NOTE_VISIBLE ;
HelpId = FID_NOTE_VISIBLE ;
Text [ de ] = "~Notiz anzeigen" ;
--- SRC680_m138/sfx2/source/appl/newhelp.cxx.orig 2005-09-08 02:44:49.000000000 +0900
+++ SRC680_m138/sfx2/source/appl/newhelp.cxx 2005-11-12 22:12:24.000000000 +0900
@@ -2694,6 +2694,28 @@
bHiContrast ? IMG_HELP_TOOLBOX_HC_INDEX_ON : IMG_HELP_TOOLBOX_INDEX_ON ) ) );
aMenu.SetHelpId( TBI_INDEX, HID_HELP_TOOLBOXITEM_INDEX );
aMenu.InsertSeparator();
+ aMenu.InsertItem( TBI_COPY, String( SfxResId( STR_HELP_MENU_TEXT_COPY ) ),
+ Image( SfxResId( bHiContrast ? IMG_HELP_TOOLBOX_HC_COPY : IMG_HELP_TOOLBOX_COPY ) ) );
+ aMenu.SetHelpId( TBI_COPY, SID_COPY );
+ aMenu.EnableItem( TBI_COPY, HasSelection() );
+ aMenu.InsertSeparator();
+ aMenu.InsertItem( TBI_SELECTIONMODE, String( SfxResId( STR_HELP_MENU_TEXT_SELECTION_MODE ) ) );
+ aMenu.SetHelpId( TBI_SELECTIONMODE, HID_HELP_TEXT_SELECTION_MODE );
+ Reference < XDispatchProvider > xProv( xFrame, UNO_QUERY );
+ URL aURL;
+ aURL.Complete = DEFINE_CONST_UNICODE(".uno:SelectTextMode");
+ PARSE_URL( aURL );
+ Reference < XDispatch > xDisp = xProv.is() ? xProv->queryDispatch( aURL, rtl::OUString(), 0 ) : Reference < XDispatch >();
+ if(xDisp.is())
+ {
+ HelpStatusListener_Impl* pStateListener;
+ Reference<XStatusListener>xStateListener = pStateListener = new HelpStatusListener_Impl(xDisp, aURL );
+ FeatureStateEvent rEvent = pStateListener->GetStateEvent();
+ sal_Bool bCheck = sal_False;
+ rEvent.State >>= bCheck;
+ aMenu.CheckItem(TBI_SELECTIONMODE, bCheck);
+ }
+ aMenu.InsertSeparator();
aMenu.InsertItem( TBI_BACKWARD, String( SfxResId( STR_HELP_BUTTON_PREV ) ),
Image( SfxResId( bHiContrast ? IMG_HELP_TOOLBOX_HC_PREV : IMG_HELP_TOOLBOX_PREV ) ) );
aMenu.SetHelpId( TBI_BACKWARD, HID_HELP_TOOLBOXITEM_BACKWARD );
@@ -2715,30 +2737,6 @@
aMenu.InsertItem( TBI_SEARCHDIALOG, String( SfxResId( STR_HELP_BUTTON_SEARCHDIALOG ) ),
Image( SfxResId( bHiContrast ? IMG_HELP_TOOLBOX_HC_SEARCHDIALOG : IMG_HELP_TOOLBOX_SEARCHDIALOG ) ) );
aMenu.SetHelpId( TBI_SEARCHDIALOG, HID_HELP_TOOLBOXITEM_SEARCHDIALOG );
- aMenu.InsertSeparator();
- aMenu.InsertItem( TBI_SELECTIONMODE, String( SfxResId( STR_HELP_MENU_TEXT_SELECTION_MODE ) ) );
- aMenu.SetHelpId( TBI_SELECTIONMODE, HID_HELP_TEXT_SELECTION_MODE );
- Reference < XDispatchProvider > xProv( xFrame, UNO_QUERY );
- URL aURL;
- aURL.Complete = DEFINE_CONST_UNICODE(".uno:SelectTextMode");
- PARSE_URL( aURL );
- Reference < XDispatch > xDisp = xProv.is() ?
- xProv->queryDispatch( aURL, rtl::OUString(), 0 ) : Reference < XDispatch >();
- if(xDisp.is())
- {
- HelpStatusListener_Impl* pStateListener;
- Reference<XStatusListener>xStateListener = pStateListener =
- new HelpStatusListener_Impl(xDisp, aURL );
- FeatureStateEvent rEvent = pStateListener->GetStateEvent();
- sal_Bool bCheck = sal_False;
- rEvent.State >>= bCheck;
- aMenu.CheckItem(TBI_SELECTIONMODE, bCheck);
- }
- aMenu.InsertSeparator();
- aMenu.InsertItem( TBI_COPY, String( SfxResId( STR_HELP_MENU_TEXT_COPY ) ),
- Image( SfxResId( bHiContrast ? IMG_HELP_TOOLBOX_HC_COPY : IMG_HELP_TOOLBOX_COPY ) ) );
- aMenu.SetHelpId( TBI_COPY, SID_COPY );
- aMenu.EnableItem( TBI_COPY, HasSelection() );
if ( bIsDebug )
{
--- SRC680_m138/sfx2/source/menu/mnumgr.cxx.orig 2005-09-08 04:18:55.000000000 +0900
+++ SRC680_m138/sfx2/source/menu/mnumgr.cxx 2005-11-12 16:47:22.000000000 +0900
@@ -444,12 +444,13 @@
{
PopupMenu aPop( SfxResId( MN_CLIPBOARDFUNCS ) );
nCount = aPop.GetItemCount();
- pSVMenu->InsertSeparator();
for ( n=0; n<nCount; n++ )
{
USHORT nId = aPop.GetItemId( n );
- pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ) );
+ pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ), n + 1 );
}
+ if ( pSVMenu->GetItemId( n + 1 ) != 0 ) pSVMenu->InsertSeparator( n + 1 );
+ pSVMenu->InsertSeparator( 1 );
}
}
@@ -1516,13 +1517,14 @@
{
PopupMenu aPop( SfxResId( MN_CLIPBOARDFUNCS ) );
nCount = aPop.GetItemCount();
- pSVMenu->InsertSeparator();
for ( n=0; n<nCount; n++ )
{
USHORT nId = aPop.GetItemId( n );
- pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ) );
+ pSVMenu->InsertItem( nId, aPop.GetItemText( nId ), aPop.GetItemBits( nId ), n + 1 );
pSVMenu->SetHelpId( nId, aPop.GetHelpId( nId ));
}
+ if ( pSVMenu->GetItemId( n + 1 ) != 0 ) pSVMenu->InsertSeparator( n + 1 );
+ pSVMenu->InsertSeparator( 1 );
}
InsertVerbs_Impl( &pFrame->GetBindings(), pFrame->GetViewShell()->GetVerbs(), pSVMenu );
--- SRC680_m138/sw/source/ui/docvw/docvw.src.orig 2005-09-23 22:00:28.000000000 +0900
+++ SRC680_m138/sw/source/ui/docvw/docvw.src 2005-11-12 13:40:41.000000000 +0900
@@ -65,6 +65,35 @@
Text [ en-US ] = "~Edit" ;
Text [ x-comment ] = " ";
};
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_COPY ;
+ HelpID = SID_COPY;
+ Text [ de ] = "~Kopieren" ;
+ Text [ en-US ] = "~Copy" ;
+ };
+ SEPARATOR
+ MenuItem
+ {
+ Identifier = MN_READONLY_COPYLINK ;
+ HelpID = HID_MN_READONLY_COPYLINK ;
+ Text [ de ] = "~Link kopieren" ;
+ Text [ en-US ] = "Copy ~Link" ;
+ Text [ x-comment ] = " ";
+ };
+ MenuItem
+ {
+ Identifier = MN_READONLY_COPYGRAPHIC ;
+ HelpID = HID_MN_READONLY_COPYGRAPHIC ;
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
+ Text [ de ] = "Grafik ~kopieren" ;
+ Text [ en-US ] = "Copy ~Graphics" ;
+ Text [ x-comment ] = " ";
+ };
+ SEPARATOR
MenuItem
{
Identifier = MN_READONLY_SELECTION_MODE ;
@@ -203,26 +232,6 @@
SEPARATOR
MenuItem
{
- Identifier = MN_READONLY_COPYLINK ;
- HelpID = HID_MN_READONLY_COPYLINK ;
- Text [ de ] = "~Link kopieren" ;
- Text [ en-US ] = "Copy ~Link" ;
- Text [ x-comment ] = " ";
- };
- MenuItem
- {
- Identifier = MN_READONLY_COPYGRAPHIC ;
- HelpID = HID_MN_READONLY_COPYGRAPHIC ;
- /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
- /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
- /* ### ACHTUNG: Neuer Text in Resource? Grafik ~kopieren : ~Grafik kopieren */
- Text [ de ] = "Grafik ~kopieren" ;
- Text [ en-US ] = "Copy ~Graphics" ;
- Text [ x-comment ] = " ";
- };
- SEPARATOR
- MenuItem
- {
Identifier = MN_READONLY_LOADGRAPHIC ;
HelpID = HID_MN_READONLY_LOADGRAPHIC ;
Text [ de ] = "G~rafiken laden" ;
@@ -255,14 +264,6 @@
Text [ de ] = "Vollbildschirm-Modus verlassen" ;
Text [ en-US ] = "Leave Full-Screen Mode" ;
};
- SEPARATOR
- MenuItem
- {
- Identifier = MN_READONLY_COPY ;
- HelpID = SID_COPY;
- Text [ de ] = "~Kopieren" ;
- Text [ en-US ] = "~Copy" ;
- };
};
};
String STR_EXPORT_GRAFIK_TITLE
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]