Index: kdelibs/kdeui/util/kstandardguiitem.h
===================================================================
--- kdelibs/kdeui/util/kstandardguiitem.h	(revision 910391)
+++ kdelibs/kdeui/util/kstandardguiitem.h	(working copy)
@@ -47,10 +47,10 @@
 
     enum StandardItem
     {
-        Ok=1, Cancel, Yes, No, Discard, Save, DontSave, SaveAs,
-        Apply, Clear, Help, Defaults, Close, Back, Forward, Print,
-        Continue, Open, Quit, AdminMode, Reset, Delete, Insert,
-        Configure, Find, Stop, Add, Remove, Test, Properties, Overwrite
+        Ok=1, Cancel, Yes, No, Discard, Save, DontSave, SaveAs, Apply, Clear,
+        Help, Defaults, Close, Back, Forward, Print, Continue, Open, Quit,
+        AdminMode, Reset, Delete, Insert, Configure, Find, Stop, Add, Remove,
+        Test, Properties, Overwrite, CloseWindow, CloseDocument
     };
 
     /**
@@ -138,6 +138,18 @@
     KDEUI_EXPORT KGuiItem close();
 
     /**
+     * Returns the 'CloseWindow' gui item.
+     * @since 4.3
+     */
+    KDEUI_EXPORT KGuiItem closeWindow();
+
+    /**
+     * Returns the 'CloseDocument' gui item.
+     * @since 4.3
+     */
+    KDEUI_EXPORT KGuiItem closeDocument();
+
+    /**
      * Returns the 'Print' gui item.
      */
     KDEUI_EXPORT KGuiItem print();
Index: kdelibs/kdeui/util/kstandardguiitem.cpp
===================================================================
--- kdelibs/kdeui/util/kstandardguiitem.cpp	(revision 910391)
+++ kdelibs/kdeui/util/kstandardguiitem.cpp	(working copy)
@@ -41,6 +41,8 @@
   case Clear    : return clear();
   case Help     : return help();
   case Close    : return close();
+  case CloseWindow : return closeWindow();
+  case CloseDocument : return closeDocument();
   case Defaults : return defaults();
   case Back     : return back();
   case Forward  : return forward();
@@ -78,6 +80,8 @@
   case Apply    : return QLatin1String("apply");
   case Help     : return QLatin1String("help");
   case Close    : return QLatin1String("close");
+  case CloseWindow : return QLatin1String("closeWindow");
+  case CloseDocument : return QLatin1String("closeDocument");
   case Defaults : return QLatin1String("defaults");
   case Back     : return QLatin1String("back");
   case Forward  : return QLatin1String("forward");
@@ -181,6 +185,18 @@
                    i18n( "Close the current window or document" ) );
 }
 
+KGuiItem closeWindow()
+{
+  return KGuiItem( i18n( "&Close Window" ), "window-close",
+		   i18n( "Close the current window." ) );
+}
+
+KGuiItem closeDocument()
+{
+  return KGuiItem( i18n( "&Close Document" ), "document-close",
+		   i18n( "Close the current document." ) );
+}
+
 KGuiItem defaults()
 {
   return KGuiItem( i18n( "&Defaults" ), "document-revert",
