summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael T. Whiteley <mike@whiteley.org>2011-12-06 23:04:19 -0800
committerEike Rathke <erack@redhat.com>2011-12-07 17:19:54 +0100
commit2c0f98dbff429cdc626d116adbc2de1e9b4e990e (patch)
tree6b5c293d632e9d46f1522f29bcee59edd351637d /vcl
parent63a30059d30871ef1fc1920cb9fd17c2d23996c2 (diff)
Change "menues" to "menus"
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/svdata.hxx2
-rw-r--r--vcl/inc/vcl/menu.hxx4
-rw-r--r--vcl/source/window/decoview.cxx2
-rw-r--r--vcl/source/window/floatwin.cxx2
-rw-r--r--vcl/source/window/menu.cxx4
-rw-r--r--vcl/source/window/window.cxx8
-rw-r--r--vcl/source/window/winproc.cxx2
-rw-r--r--vcl/win/source/window/salframe.cxx8
-rw-r--r--vcl/win/source/window/salmenu.cxx8
9 files changed, 20 insertions, 20 deletions
diff --git a/vcl/inc/svdata.hxx b/vcl/inc/svdata.hxx
index 82a5aae7980f..b6a31b0e2be4 100644
--- a/vcl/inc/svdata.hxx
+++ b/vcl/inc/svdata.hxx
@@ -241,7 +241,7 @@ struct ImplSVWinData
sal_uInt16 mnTrackFlags; // tracking flags
sal_uInt16 mnAutoScrollFlags; // auto scroll flags
sal_Bool mbNoDeactivate; // sal_True: keine Deactivate durchfuehren
- sal_Bool mbNoSaveFocus; // sal_True: menues must not save/restore focus
+ sal_Bool mbNoSaveFocus; // sal_True: menus must not save/restore focus
sal_Bool mbNoSaveBackground; // sal_True: save background is unnecessary or even less performant
};
diff --git a/vcl/inc/vcl/menu.hxx b/vcl/inc/vcl/menu.hxx
index 413779412b24..209aef6aa873 100644
--- a/vcl/inc/vcl/menu.hxx
+++ b/vcl/inc/vcl/menu.hxx
@@ -152,7 +152,7 @@ private:
XubString aTitleText; // PopupMenu-Text
sal_uLong nEventId;
- sal_uInt16 mnHighlightedItemPos; // for native menues: keeps track of the highlighted item
+ sal_uInt16 mnHighlightedItemPos; // for native menus: keeps track of the highlighted item
sal_uInt16 nMenuFlags;
sal_uInt16 nDefaultItem; // Id vom Default-Item
sal_uInt16 nSelectedId;
@@ -339,7 +339,7 @@ public:
// Fuer Menu-'Funktionen'
MenuItemList* GetItemList() const { return pItemList; }
- // returns the system's menu handle if native menues are supported
+ // returns the system's menu handle if native menus are supported
// pData must point to a SystemMenuData structure
sal_Bool GetSystemMenuData( SystemMenuData* pData ) const;
diff --git a/vcl/source/window/decoview.cxx b/vcl/source/window/decoview.cxx
index c249a869b064..a1511ab459d9 100644
--- a/vcl/source/window/decoview.cxx
+++ b/vcl/source/window/decoview.cxx
@@ -945,7 +945,7 @@ static void ImplDrawFrame( OutputDevice* pDev, Rectangle& rRect,
}
else
{
- // flat menues have no shadow border
+ // flat menus have no shadow border
if( !bMenuStyle || !rStyleSettings.GetUseFlatMenues() )
ImplDraw2ColorFrame( pDev, rRect,
rStyleSettings.GetLightColor(),
diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx
index 6d1d0bd8980c..894021e2bd67 100644
--- a/vcl/source/window/floatwin.cxx
+++ b/vcl/source/window/floatwin.cxx
@@ -732,7 +732,7 @@ void FloatingWindow::StartPopupMode( const Rectangle& rRect, sal_uLong nFlags )
pSVData->maWinData.mpFirstFloat = this;
if( nFlags & FLOATWIN_POPUPMODE_GRABFOCUS )
{
- // force key input even without focus (useful for menues)
+ // force key input even without focus (useful for menus)
mbGrabFocus = sal_True;
}
Show( sal_True, SHOW_NOACTIVATE );
diff --git a/vcl/source/window/menu.cxx b/vcl/source/window/menu.cxx
index 11a8959c5b68..e143dfec8d22 100644
--- a/vcl/source/window/menu.cxx
+++ b/vcl/source/window/menu.cxx
@@ -3695,7 +3695,7 @@ sal_uInt16 PopupMenu::ImplExecute( Window* pW, const Rectangle& rRect, sal_uLong
nMenuFlags &= ~MENU_FLAG_HIDEDISABLEDENTRIES;
}
else
- // #102790# context menues shall never show disabled entries
+ // #102790# context menus shall never show disabled entries
nMenuFlags |= MENU_FLAG_HIDEDISABLEDENTRIES;
@@ -4441,7 +4441,7 @@ void MenuFloatingWindow::MouseButtonDown( const MouseEvent& rMEvt )
{
// TH creates a ToTop on this window, but the active popup
// should stay on top...
- // due to focus change this would close all menues -> don't do it (#94123)
+ // due to focus change this would close all menus -> don't do it (#94123)
//if ( pActivePopup && pActivePopup->ImplGetWindow() && !pActivePopup->ImplGetFloatingWindow()->pActivePopup )
// pActivePopup->ImplGetFloatingWindow()->ToTop( TOTOP_NOGRABFOCUS );
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 1b4889a1d909..2bdf5f4e0a64 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -6421,7 +6421,7 @@ void Window::Show( sal_Bool bVisible, sal_uInt16 nFlags )
// #107575#, if a floating windows is shown that grabs the focus, we have to notify the toolkit about it
// ImplGrabFocus() is not called in this case
// Because this might lead to problems the task will be shifted to 6.y
- // Note: top-level context menues are registered at the access bridge after being shown,
+ // Note: top-level context menus are registered at the access bridge after being shown,
// so this will probably not help here....
/*
if( mpWindowImpl->mbFloatWin && ((FloatingWindow*) this )->GrabsFocus() )
@@ -8499,7 +8499,7 @@ sal_Bool Window::ImplIsAccessibleCandidate() const
if( !mpWindowImpl->mbBorderWin )
return sal_True;
else
- // #101741 do not check for WB_CLOSEABLE because undecorated floaters (like menues!) are closeable
+ // #101741 do not check for WB_CLOSEABLE because undecorated floaters (like menus!) are closeable
if( mpWindowImpl->mbFrame && mpWindowImpl->mnStyle & (WB_MOVEABLE | WB_SIZEABLE) )
return sal_True;
else
@@ -8509,7 +8509,7 @@ sal_Bool Window::ImplIsAccessibleCandidate() const
sal_Bool Window::ImplIsAccessibleNativeFrame() const
{
if( mpWindowImpl->mbFrame )
- // #101741 do not check for WB_CLOSEABLE because undecorated floaters (like menues!) are closeable
+ // #101741 do not check for WB_CLOSEABLE because undecorated floaters (like menus!) are closeable
if( (mpWindowImpl->mnStyle & (WB_MOVEABLE | WB_SIZEABLE)) )
return sal_True;
else
@@ -8822,7 +8822,7 @@ sal_uInt16 Window::GetAccessibleRole() const
else if( IsScrollable() )
nRole = accessibility::AccessibleRole::SCROLL_PANE;
else if( ((Window*)this)->ImplGetWindow()->IsMenuFloatingWindow() )
- nRole = accessibility::AccessibleRole::WINDOW; // #106002#, contextmenues are windows (i.e. toplevel)
+ nRole = accessibility::AccessibleRole::WINDOW; // #106002#, contextmenus are windows (i.e. toplevel)
else
// #104051# WINDOW seems to be a bad default role, use LAYEREDPANE instead
// a WINDOW is interpreted as a top-level window, which is typically not the case
diff --git a/vcl/source/window/winproc.cxx b/vcl/source/window/winproc.cxx
index 2428c0db8373..f6765ffaf2d8 100644
--- a/vcl/source/window/winproc.cxx
+++ b/vcl/source/window/winproc.cxx
@@ -1658,7 +1658,7 @@ void ImplHandleResize( Window* pWindow, long nNewWidth, long nNewHeight )
if( bStartTimer )
pWindow->ImplGetWindowImpl()->mpFrameData->maResizeTimer.Start();
else
- pWindow->ImplCallResize(); // otherwise menues cannot be positioned
+ pWindow->ImplCallResize(); // otherwise menus cannot be positioned
}
else
pWindow->ImplGetWindowImpl()->mbCallResize = sal_True;
diff --git a/vcl/win/source/window/salframe.cxx b/vcl/win/source/window/salframe.cxx
index a306ac04e853..977cf1b65018 100644
--- a/vcl/win/source/window/salframe.cxx
+++ b/vcl/win/source/window/salframe.cxx
@@ -1205,12 +1205,12 @@ static void ImplSalShow( HWND hWnd, sal_Bool bVisible, sal_Bool bNoActivate )
HDC dc = GetDC( hWnd );
RECT aRect;
GetClientRect( hWnd, &aRect );
- FillRect( dc, &aRect, (HBRUSH) (COLOR_MENU+1) ); // choose the menucolor, because its mostly noticeable for menues
+ FillRect( dc, &aRect, (HBRUSH) (COLOR_MENU+1) ); // choose the menucolor, because its mostly noticeable for menus
ReleaseDC( hWnd, dc );
}
// #i4715, matrox centerpopup might have changed our position
- // reposition popups without caption (menues, dropdowns, tooltips)
+ // reposition popups without caption (menus, dropdowns, tooltips)
GetWindowRect( hWnd, &aRectPostMatrox );
if( (GetWindowStyle( hWnd ) & WS_POPUP) &&
!pFrame->mbCaption &&
@@ -4941,8 +4941,8 @@ static int ImplHandleMenuActivate( HWND hWnd, WPARAM wParam, LPARAM )
// WORD nPos = LOWORD (lParam);
// sal_Bool bWindowMenu = (sal_Bool) HIWORD(lParam);
- // Send activate and deactivate together, so we have not keep track of opened menues
- // this will be enough to have the menues updated correctly
+ // Send activate and deactivate together, so we have not keep track of opened menus
+ // this will be enough to have the menus updated correctly
SalMenuEvent aMenuEvt;
WinSalMenuItem *pSalMenuItem = ImplGetSalMenuItem( hMenu, 0 );
if( pSalMenuItem )
diff --git a/vcl/win/source/window/salmenu.cxx b/vcl/win/source/window/salmenu.cxx
index d0623cdce3d9..e3f4345e5282 100644
--- a/vcl/win/source/window/salmenu.cxx
+++ b/vcl/win/source/window/salmenu.cxx
@@ -41,7 +41,7 @@
#include <impbmp.hxx>
#include <salgdi.hxx>
-// uncomment the following line to have ownerdrawn menues, ie, with bitmaps
+// uncomment the following line to have ownerdrawn menus, ie, with bitmaps
// however, this is incompatible with OLE inplace editing
// so it is not activated by default
//#define OWNERDRAW
@@ -174,12 +174,12 @@ WinSalMenu::~WinSalMenu()
sal_Bool WinSalMenu::VisibleMenuBar()
{
// The Win32 implementation never shows a native
- // menubar. Thus, native menues are only visible
+ // menubar. Thus, native menus are only visible
// when the menu is merged with an OLE container.
// The reason are missing tooltips, ownerdraw
// issues and accessibility which are better supported
- // by VCL menues.
- // Nevertheless, the native menues are always created
+ // by VCL menus.
+ // Nevertheless, the native menus are always created
// and the application will properly react to all native
// menu messages.