Tag: cws_src680_oj14 User: oj Date: 2007-05-31 05:40:34+0000 Modified: dba/reportdesign/source/ui/report/ReportSection.cxx dba/reportdesign/source/ui/report/report.src
Log: #i77858# change string as in edit menu File Changes: Directory: /dba/reportdesign/source/ui/report/ ============================================== File [changed]: ReportSection.cxx Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/ReportSection.cxx?r1=1.1.2.5&r2=1.1.2.6 Delta lines: +13 -3 -------------------- --- ReportSection.cxx 2007-05-25 11:00:48+0000 1.1.2.5 +++ ReportSection.cxx 2007-05-31 05:40:32+0000 1.1.2.6 @@ -4,9 +4,9 @@ * * $RCSfile: ReportSection.cxx,v $ * - * $Revision: 1.1.2.5 $ + * $Revision: 1.1.2.6 $ * - * last change: $Author: oj $ $Date: 2007/05/25 11:00:48 $ + * last change: $Author: oj $ $Date: 2007/05/31 05:40:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -477,13 +477,23 @@ { OReportController* pController = getViewsWindow()->getView()->getReportView()->getController(); PopupMenu aContextMenu( ModuleRes( RID_MENU_REPORT ) ); - + uno::Reference< report::XReportDefinition> xReportDefinition = getSection()->getReportDefinition(); const USHORT nCount = aContextMenu.GetItemCount(); for (USHORT i = 0; i < nCount; ++i) { if ( MENUITEM_SEPARATOR != aContextMenu.GetItemType(i)) { const USHORT nId = aContextMenu.GetItemId(i); + if ( nId == SID_PAGEHEADERFOOTER ) + { + String sText = String(ModuleRes((xReportDefinition.is() && xReportDefinition->getPageHeaderOn()) ? RID_STR_PAGEHEADERFOOTER_DELETE : RID_STR_PAGEHEADERFOOTER_INSERT)); + aContextMenu.SetItemText(nId,sText); + } + else if ( nId == SID_REPORTHEADERFOOTER ) + { + String sText = String(ModuleRes((xReportDefinition.is() && xReportDefinition->getReportHeaderOn()) ? RID_STR_REPORTHEADERFOOTER_DELETE : RID_STR_REPORTHEADERFOOTER_INSERT)); + aContextMenu.SetItemText(nId,sText); + } aContextMenu.CheckItem(nId,pController->isCommandChecked(nId)); aContextMenu.EnableItem(nId,pController->isCommandEnabled(nId)); } File [changed]: report.src Url: http://dba.openoffice.org/source/browse/dba/reportdesign/source/ui/report/report.src?r1=1.1.2.5&r2=1.1.2.6 Delta lines: +2 -6 ------------------- --- report.src 2007-05-29 13:11:08+0000 1.1.2.5 +++ report.src 2007-05-31 05:40:32+0000 1.1.2.6 @@ -4,9 +4,9 @@ * * $RCSfile: report.src,v $ * - * $Revision: 1.1.2.5 $ + * $Revision: 1.1.2.6 $ * - * last change: $Author: lla $ $Date: 2007/05/29 13:11:08 $ + * last change: $Author: oj $ $Date: 2007/05/31 05:40:32 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -397,8 +397,6 @@ HelpId = SID_PAGEHEADERFOOTER ; Command = ".uno:PageHeaderFooter"; Checkable = TRUE; - Text [ de ] = "Seitenkopf, -fuÃ..." ; - Text [ en-US ] = "Page Header/Footer..."; }; MenuItem { @@ -406,8 +404,6 @@ HelpId = SID_REPORTHEADERFOOTER ; Command = ".uno:ReportHeaderFooter"; Checkable = TRUE; - Text [ de ] = "Berichtskopf, -fuÃ..." ; - Text [ en-US ] = "Report Header/Footer..."; }; MenuItem { --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
