Kaydet (Commit) ae5140e0 authored tarafından Andrzej J.R. Hunt's avatar Andrzej J.R. Hunt

Remote dialog now showing.

Change-Id: I20857202e70a975d249ac0f121947691ac274602
üst dfa5adcb
......@@ -202,7 +202,7 @@ public:
virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0;
virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
const std::vector<String> &rPageNames, List* pCSList ) = 0;
// virtual VclAbstractDialog* CreateSdRemoteDlg( ::Window* pWindow );
virtual VclAbstractDialog* CreateRemoteDialog( ::Window* pWindow ) = 0;
virtual SfxAbstractTabDialog* CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) = 0;
virtual AbstractSdPresLayoutDlg* CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs) = 0;
virtual SfxAbstractTabDialog* CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0;
......
......@@ -93,7 +93,7 @@
#define CMD_SID_OUTLINE_TEXT_AUTOFIT ".uno.OutlineTextAutofit"
#define CMD_SID_PAGESETUP ".uno:PageSetup"
#define CMD_SID_PRESENTATION ".uno:Presentation"
#define CMD_SID_REMOTE ".uno:Remote"
#define CMD_SID_REMOTE_DLG ".uno:Remote"
#define CMD_SID_PRESENTATION_LAYOUT ".uno:PresentationLayout"
#define CMD_SID_RENAMELAYER ".uno:RenameLayer"
#define CMD_SID_RENAMEPAGE ".uno:RenamePage"
......
......@@ -223,6 +223,10 @@ interface SlideSorterView
[
ExecMethod = FuTemporary ;
]
SID_REMOTE_DLG
[
ExecMethod = FuTemporary ;
]
SID_CUSTOMSHOW_DLG
[
ExecMethod = FuTemporary ;
......
......@@ -110,6 +110,10 @@ interface ImpressEditView : DrawView
[
ExecMethod = FuTemporary ;
]
SID_REMOTE_DLG
[
ExecMethod = FuTemporary ;
]
SID_CUSTOMSHOW_DLG
[
ExecMethod = FuTemporary ;
......
......@@ -349,6 +349,10 @@ interface OutlineView
[
ExecMethod = FuTemporary ;
]
SID_REMOTE_DLG
[
ExecMethod = FuTemporary ;
]
SID_CUSTOMSHOW_DLG
[
ExecMethod = FuTemporary ;
......
......@@ -5203,6 +5203,31 @@ SfxVoidItem PresentationDialog SID_PRESENTATION_DLG
GroupId = GID_OPTIONS;
]
//--------------------------------------------------------------------------
SfxVoidItem Remote SID_REMOTE_DLG
()
[
/* flags: */
AutoUpdate = FALSE,
Cachable = Cachable,
FastCall = TRUE,
HasCoreId = FALSE,
HasDialog = TRUE,
ReadOnlyDoc = FALSE,
Toggle = FALSE,
Container = FALSE,
RecordAbsolute = FALSE,
RecordPerItem;
Synchron;
/* config: */
AccelConfig = FALSE,
MenuConfig = TRUE,
StatusBarConfig = FALSE,
ToolBoxConfig = TRUE,
GroupId = GID_OPTIONS;
]
//--------------------------------------------------------------------------
SfxVoidItem PresentationEnd SID_PRESENTATION_END
()
......
......@@ -16,10 +16,16 @@
#include "RemoteDialog.hxx"
#include "RemoteDialog.hrc"
SdRemoteDlg::SdRemoteDlg( Window *pWindow ) :
using namespace sd;
RemoteDialog::RemoteDialog( Window *pWindow ) :
ModalDialog ( pWindow, SdResId( DLG_PAIR_REMOTE ) )
{
FreeResource();
}
RemoteDialog::~RemoteDialog()
{
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
......@@ -13,12 +13,13 @@
ModalDialog DLG_PAIR_REMOTE
{
HelpID = CMD_SID_REMOTE ;
HelpID = CMD_SID_REMOTE_DLG ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 256, 205 ) ;
Text [ en-US ] = "Impress Remote" ;
Moveable = TRUE ;
Closeable = TRUE ;
OKButton BTN_CONNECT
{
......
......@@ -492,10 +492,10 @@ AbstractSdStartPresDlg * SdAbstractDialogFactory_Impl::CreateSdStartPresentatio
// add for SdStartPresentationDlg end
// add for SdRemoteDlg begin
// VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateSdRemoteDlg( ::Window* pWindow )
// {
// return new VclAbstractDialog_Impl( new SdRemoteDlg( pWindow ) );
// }
VclAbstractDialog * SdAbstractDialogFactory_Impl::CreateRemoteDialog( ::Window* pWindow )
{
return new VclAbstractDialog_Impl( new ::sd::RemoteDialog( pWindow ) );
}
// add for SdRemoteDlg end
// add for SdPresLayoutTemplateDlg begin
......
......@@ -276,7 +276,7 @@ public:
virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr );
virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
const std::vector<String> &rPageNames, List* pCSList );
// virtual VclAbstractDialog* CreateSdRemoteDlg( ::Window* pWindow );
virtual VclAbstractDialog* CreateRemoteDialog( ::Window* pWindow ); // ad for RemoteDialog
virtual SfxAbstractTabDialog* CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool );
virtual AbstractSdPresLayoutDlg* CreateSdPresLayoutDlg( ::sd::DrawDocShell* pDocShell, ::sd::ViewShell* pViewShell, ::Window* pWindow, const SfxItemSet& rInAttrs);
virtual SfxAbstractTabDialog* CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView );
......
......@@ -15,14 +15,20 @@
#include <vcl/dialog.hxx>
#include <vcl/field.hxx>
class SdRemoteDlg : public ModalDialog
namespace sd
{
class RemoteDialog : public ModalDialog
{
public:
SdRemoteDlg( Window* pWindow );
RemoteDialog( Window* pWindow );
~RemoteDialog();
};
}
#endif // _SD_REMOTEDIALOG_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
......@@ -1186,6 +1186,7 @@ void SlotManager::ChangeSlideExclusionState (
SfxBindings& rBindings (mrSlideSorter.GetViewShell()->GetViewFrame()->GetBindings());
rBindings.Invalidate(SID_PRESENTATION);
rBindings.Invalidate(SID_REMOTE_DLG);
rBindings.Invalidate(SID_REHEARSE_TIMINGS);
rBindings.Invalidate(SID_HIDE_SLIDE);
rBindings.Invalidate(SID_SHOW_SLIDE);
......
......@@ -58,7 +58,6 @@
#include "NavigatorChildWindow.hxx"
#include "LayerDialogChildWindow.hxx"
#include "sdresid.hxx"
// #include "sdabstdlg.hxx"
#include "fupoor.hxx"
#include "fusldlg.hxx"
#include "drawdoc.hxx"
......@@ -69,6 +68,7 @@
#include "FrameView.hxx"
#include "Window.hxx"
#include "DrawDocShell.hxx"
#include "sdabstdlg.hxx"
#include "framework/FrameworkHelper.hxx"
namespace sd {
......@@ -635,10 +635,10 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq)
case SID_REMOTE_DLG:
{
// SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
// VclAbstractDialog* pDlg = pFact ? pFact->CreateSdRemoteDlg(GetActiveWindow()) : 0;
// if (pDlg)
// pDlg->Execute();
SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
VclAbstractDialog* pDlg = pFact ? pFact->CreateRemoteDialog(GetActiveWindow()) : 0;
if (pDlg)
pDlg->Execute();
}
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment