summaryrefslogtreecommitdiff
path: root/sd/source/ui/docshell
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:06:11 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-11-26 19:06:11 +0000
commita5cc942a740186e09e87611006a0238fb56eabad (patch)
treeef3e1b5e029eb477a3e972c8efc2ade7670de729 /sd/source/ui/docshell
parentcd95649c71dbf58ac8b36556d12c65216f5c8099 (diff)
INTEGRATION: CWS presentationengine01 (1.61.12); FILE MERGED
2004/10/12 23:07:34 thb 1.61.12.2: RESYNC: (1.61-1.62); FILE MERGED 2004/09/03 23:33:54 cl 1.61.12.1: added openBookmark method
Diffstat (limited to 'sd/source/ui/docshell')
-rw-r--r--sd/source/ui/docshell/docshel4.cxx17
1 files changed, 15 insertions, 2 deletions
diff --git a/sd/source/ui/docshell/docshel4.cxx b/sd/source/ui/docshell/docshel4.cxx
index a5fef4f42..7ad00ee73 100644
--- a/sd/source/ui/docshell/docshel4.cxx
+++ b/sd/source/ui/docshell/docshel4.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: docshel4.cxx,v $
*
- * $Revision: 1.63 $
+ * $Revision: 1.64 $
*
- * last change: $Author: rt $ $Date: 2004-11-26 15:10:11 $
+ * last change: $Author: rt $ $Date: 2004-11-26 20:06:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1040,4 +1040,17 @@ OutputDevice* DrawDocShell::GetDocumentRefDev (void)
pReferenceDevice = pDoc->GetRefDevice ();
return pReferenceDevice;
}
+
+/** executes the SID_OPENDOC slot to let the framework open a document
+ with the given URL and this document as a referer */
+void DrawDocShell::OpenBookmark( const String& rBookmarkURL )
+{
+ SfxStringItem aStrItem( SID_FILE_NAME, rBookmarkURL );
+ SfxStringItem aReferer( SID_REFERER, GetMedium()->GetName() );
+ SfxBoolItem aBrowseItem( SID_BROWSE, TRUE );
+
+ ( pViewShell ? pViewShell->GetViewFrame() : SfxViewFrame::Current() )->GetDispatcher()->
+ Execute(SID_OPENDOC, SFX_CALLMODE_SLOT | SFX_CALLMODE_RECORD, &aStrItem, &aBrowseItem, &aReferer, 0L );
+}
+
} // end of namespace sd