summaryrefslogtreecommitdiff
path: root/framework/source/services/backingwindow.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2010-10-20 16:59:30 +0200
committerKurt Zenker <kz@openoffice.org>2010-10-20 16:59:30 +0200
commit84d50758d4b9ebf25216259eb780757639f708ac (patch)
tree930258b931e65c2f60f99346d523eef25025ba72 /framework/source/services/backingwindow.cxx
parentf38a8cf165f8eaca6b7959a34b2465e3b82be498 (diff)
parentdc31e3b09838409c57f5ff9181cf4d6950575c81 (diff)
CWS-TOOLING: integrate CWS ooo33gsl11ooo/OOO330_m12
Diffstat (limited to 'framework/source/services/backingwindow.cxx')
-rw-r--r--framework/source/services/backingwindow.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/framework/source/services/backingwindow.cxx b/framework/source/services/backingwindow.cxx
index 8817e60e92..b80c7f3b90 100644
--- a/framework/source/services/backingwindow.cxx
+++ b/framework/source/services/backingwindow.cxx
@@ -29,6 +29,7 @@
#include "precompiled_framework.hxx"
#include "backingwindow.hxx"
+#include "classes/resource.hrc"
#include "framework.hrc"
#include "classes/fwkresid.hxx"
#include <services.h>
@@ -388,8 +389,13 @@ void BackingWindow::prepareRecentFileMenu()
aBuf.append( aMenuTitle );
mpRecentMenu->InsertItem( static_cast<USHORT>(i+1), aBuf.makeStringAndClear() );
}
- maOpenButton.SetPopupMenu( mpRecentMenu );
}
+ else
+ {
+ String aNoDoc( FwkResId( STR_NODOCUMENT ) );
+ mpRecentMenu->InsertItem( 0xffff, aNoDoc );
+ }
+ maOpenButton.SetPopupMenu( mpRecentMenu );
}
void BackingWindow::initBackground()