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

Basic framework for Remote Dialog.

Change-Id: Ie744c1a0db1661b9dd57976d6f27b12a6f0ba824
üst 57aae276
......@@ -42,6 +42,15 @@
<value>1</value>
</prop>
</node>
<node oor:name=".uno:Remote" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
<value xml:lang="en-US">Impress ~Remote</value>
</prop>
<prop oor:name="Properties" oor:type="xs:int">
<value>1</value>
</prop>
</node>
<node oor:name=".uno:RehearseTimings" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
......
......@@ -92,6 +92,7 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\
sd/source/ui/dlg/present.src \
sd/source/ui/dlg/prltempl.src \
sd/source/ui/dlg/prntopts.src \
sd/source/ui/dlg/RemoteDialog.src \
sd/source/ui/dlg/sdpreslt.src \
sd/source/ui/dlg/tabtempl.src \
sd/source/ui/dlg/tpaction.src \
......
......@@ -82,6 +82,7 @@ $(eval $(call gb_Library_add_exception_objects,sdui,\
sd/source/ui/dlg/present \
sd/source/ui/dlg/prltempl \
sd/source/ui/dlg/prntopts \
sd/source/ui/dlg/RemoteDialog \
sd/source/ui/dlg/sddlgfact \
sd/source/ui/dlg/sdpreslt \
sd/source/ui/dlg/sduiexp \
......
......@@ -355,6 +355,7 @@
#define SID_CUSTOM_ANIMATION_SCHEMES_PANEL (SID_SD_START+333)
#define SID_SLIDE_TRANSITIONS_PANEL (SID_SD_START+334)
// free
#define SID_REMOTE_DLG (SID_SD_START+337)
#define SID_CONNECTION_DLG (SID_SD_START+338)
#define SID_PRESENTATION_DLG (SID_SD_START+339)
#define SID_HYPHENATION (SID_SD_START+340)
......
......@@ -202,6 +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 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,6 +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_PRESENTATION_LAYOUT ".uno:PresentationLayout"
#define CMD_SID_RENAMELAYER ".uno:RenameLayer"
#define CMD_SID_RENAMEPAGE ".uno:RenamePage"
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <svl/itemset.hxx>
#include "sdattr.hxx"
#include "sdresid.hxx"
#include "cusshow.hxx"
#include "RemoteDialog.hxx"
#include "RemoteDialog.hrc"
SdRemoteDlg::SdRemoteDlg( Window *pWindow ) :
ModalDialog ( pWindow, SdResId( DLG_PAIR_REMOTE ) )
{
FreeResource();
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include "helpids.h"
#include <svx/svxids.hrc>
#include "RemoteDialog.hrc"
ModalDialog DLG_PAIR_REMOTE
{
HelpID = CMD_SID_REMOTE ;
OutputSize = TRUE ;
SVLook = TRUE ;
Size = MAP_APPFONT ( 256, 205 ) ;
Text [ en-US ] = "Impress Remote" ;
Moveable = TRUE ;
OKButton BTN_CONNECT
{
Pos = MAP_APPFONT ( 200, 6 ) ;
Size = MAP_APPFONT ( 50, 14 ) ;
TabStop = TRUE ;
DefButton = TRUE ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
......@@ -49,6 +49,7 @@
#include "OutlineBulletDlg.hxx"
#include "paragr.hxx"
#include "present.hxx"
#include "RemoteDialog.hxx"
#include "prltempl.hxx"
#include "sdpreslt.hxx"
#include "tabtempl.hxx"
......@@ -322,7 +323,6 @@ void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
{
pDlg->GetAttr( rOutAttrs );
}
// AbstractSdStartPresDlg_Impl end
//AbstractSdPresLayoutDlg_Impl begin
void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
......@@ -491,6 +491,13 @@ 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 ) );
// }
// add for SdRemoteDlg end
// add for SdPresLayoutTemplateDlg begin
SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool )
{
......
......@@ -276,6 +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 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 );
......
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <sfx2/sfx.hrc>
#define DLG_PAIR_REMOTE RID_APP_START+700
#define BTN_CONNECT 1
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef _SD_REMOTEDIALOG_HXX_
#define _SD_REMOTEDIALOG_HXX_
#include <vcl/lstbox.hxx>
#include <vcl/fixed.hxx>
#include <vcl/button.hxx>
#include <vcl/dialog.hxx>
#include <vcl/field.hxx>
class SdRemoteDlg : public ModalDialog
{
public:
SdRemoteDlg( Window* pWindow );
};
#endif // _SD_REMOTEDIALOG_HXX_
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file
......@@ -51,6 +51,7 @@ namespace sd
static RemoteServer *spServer;
osl::AcceptorSocket mSocket;
osl::StreamSocket mStreamSocket;
void pairClient();
void listenThread();
void execute();
static Transmitter *pTransmitter;
......
......@@ -97,6 +97,12 @@ void RemoteServer::listenThread()
fprintf( stderr, "Finished listening\n" );
}
void RemoteServer::pairClient()
{
// Pairing: client sends PIN, server asks user, replies with accepted/rejected.
// We have to wait here until the user opens the dialog via the menu,
// typs in the pin etc.
}
void RemoteServer::execute()
{
......
......@@ -58,6 +58,7 @@
#include "NavigatorChildWindow.hxx"
#include "LayerDialogChildWindow.hxx"
#include "sdresid.hxx"
// #include "sdabstdlg.hxx"
#include "fupoor.hxx"
#include "fusldlg.hxx"
#include "drawdoc.hxx"
......@@ -632,6 +633,15 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq)
}
break;
case SID_REMOTE_DLG:
{
// SdAbstractDialogFactory* pFact = SdAbstractDialogFactory::Create();
// VclAbstractDialog* pDlg = pFact ? pFact->CreateSdRemoteDlg(GetActiveWindow()) : 0;
// if (pDlg)
// pDlg->Execute();
}
break;
case SID_CUSTOMSHOW_DLG:
{
SetCurrentFunction( FuCustomShowDlg::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) );
......
......@@ -289,6 +289,7 @@
<menu:menuitem menu:id=".uno:Presentation"/>
<menu:menuitem menu:id=".uno:PresentationDialog"/>
<menu:menuitem menu:id=".uno:RehearseTimings"/>
<menu:menuitem menu:id=".uno:Remote"/>
<menu:menuseparator/>
<menu:menuitem menu:id=".uno:AnimationEffects"/>
<!--menu:menuitem menu:id=".uno:CustomAnimationSchemes" / -->
......
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