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 @@ ...@@ -42,6 +42,15 @@
<value>1</value> <value>1</value>
</prop> </prop>
</node> </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"> <node oor:name=".uno:RehearseTimings" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string"> <prop oor:name="Label" oor:type="xs:string">
......
...@@ -92,6 +92,7 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\ ...@@ -92,6 +92,7 @@ $(eval $(call gb_SrsTarget_add_files,sd/res,\
sd/source/ui/dlg/present.src \ sd/source/ui/dlg/present.src \
sd/source/ui/dlg/prltempl.src \ sd/source/ui/dlg/prltempl.src \
sd/source/ui/dlg/prntopts.src \ sd/source/ui/dlg/prntopts.src \
sd/source/ui/dlg/RemoteDialog.src \
sd/source/ui/dlg/sdpreslt.src \ sd/source/ui/dlg/sdpreslt.src \
sd/source/ui/dlg/tabtempl.src \ sd/source/ui/dlg/tabtempl.src \
sd/source/ui/dlg/tpaction.src \ sd/source/ui/dlg/tpaction.src \
......
...@@ -82,6 +82,7 @@ $(eval $(call gb_Library_add_exception_objects,sdui,\ ...@@ -82,6 +82,7 @@ $(eval $(call gb_Library_add_exception_objects,sdui,\
sd/source/ui/dlg/present \ sd/source/ui/dlg/present \
sd/source/ui/dlg/prltempl \ sd/source/ui/dlg/prltempl \
sd/source/ui/dlg/prntopts \ sd/source/ui/dlg/prntopts \
sd/source/ui/dlg/RemoteDialog \
sd/source/ui/dlg/sddlgfact \ sd/source/ui/dlg/sddlgfact \
sd/source/ui/dlg/sdpreslt \ sd/source/ui/dlg/sdpreslt \
sd/source/ui/dlg/sduiexp \ sd/source/ui/dlg/sduiexp \
......
...@@ -355,6 +355,7 @@ ...@@ -355,6 +355,7 @@
#define SID_CUSTOM_ANIMATION_SCHEMES_PANEL (SID_SD_START+333) #define SID_CUSTOM_ANIMATION_SCHEMES_PANEL (SID_SD_START+333)
#define SID_SLIDE_TRANSITIONS_PANEL (SID_SD_START+334) #define SID_SLIDE_TRANSITIONS_PANEL (SID_SD_START+334)
// free // free
#define SID_REMOTE_DLG (SID_SD_START+337)
#define SID_CONNECTION_DLG (SID_SD_START+338) #define SID_CONNECTION_DLG (SID_SD_START+338)
#define SID_PRESENTATION_DLG (SID_SD_START+339) #define SID_PRESENTATION_DLG (SID_SD_START+339)
#define SID_HYPHENATION (SID_SD_START+340) #define SID_HYPHENATION (SID_SD_START+340)
......
...@@ -202,6 +202,7 @@ public: ...@@ -202,6 +202,7 @@ public:
virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0; virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ) = 0;
virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
const std::vector<String> &rPageNames, List* pCSList ) = 0; 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 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 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; virtual SfxAbstractTabDialog* CreateSdTabTemplateDlg( ::Window* pParent, const SfxObjectShell* pDocShell, SfxStyleSheetBase& rStyleBase, SdrModel* pModel, SdrView* pView ) = 0;
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
#define CMD_SID_OUTLINE_TEXT_AUTOFIT ".uno.OutlineTextAutofit" #define CMD_SID_OUTLINE_TEXT_AUTOFIT ".uno.OutlineTextAutofit"
#define CMD_SID_PAGESETUP ".uno:PageSetup" #define CMD_SID_PAGESETUP ".uno:PageSetup"
#define CMD_SID_PRESENTATION ".uno:Presentation" #define CMD_SID_PRESENTATION ".uno:Presentation"
#define CMD_SID_REMOTE ".uno:Remote"
#define CMD_SID_PRESENTATION_LAYOUT ".uno:PresentationLayout" #define CMD_SID_PRESENTATION_LAYOUT ".uno:PresentationLayout"
#define CMD_SID_RENAMELAYER ".uno:RenameLayer" #define CMD_SID_RENAMELAYER ".uno:RenameLayer"
#define CMD_SID_RENAMEPAGE ".uno:RenamePage" #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 @@ ...@@ -49,6 +49,7 @@
#include "OutlineBulletDlg.hxx" #include "OutlineBulletDlg.hxx"
#include "paragr.hxx" #include "paragr.hxx"
#include "present.hxx" #include "present.hxx"
#include "RemoteDialog.hxx"
#include "prltempl.hxx" #include "prltempl.hxx"
#include "sdpreslt.hxx" #include "sdpreslt.hxx"
#include "tabtempl.hxx" #include "tabtempl.hxx"
...@@ -322,7 +323,6 @@ void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) ...@@ -322,7 +323,6 @@ void AbstractSdStartPresDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
{ {
pDlg->GetAttr( rOutAttrs ); pDlg->GetAttr( rOutAttrs );
} }
// AbstractSdStartPresDlg_Impl end
//AbstractSdPresLayoutDlg_Impl begin //AbstractSdPresLayoutDlg_Impl begin
void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs ) void AbstractSdPresLayoutDlg_Impl::GetAttr( SfxItemSet& rOutAttrs )
...@@ -491,6 +491,13 @@ AbstractSdStartPresDlg * SdAbstractDialogFactory_Impl::CreateSdStartPresentatio ...@@ -491,6 +491,13 @@ AbstractSdStartPresDlg * SdAbstractDialogFactory_Impl::CreateSdStartPresentatio
} }
// add for SdStartPresentationDlg end // 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 // add for SdPresLayoutTemplateDlg begin
SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool ) SfxAbstractTabDialog * SdAbstractDialogFactory_Impl::CreateSdPresLayoutTemplateDlg( SfxObjectShell* pDocSh, ::Window* pParent, SdResId DlgId, SfxStyleSheetBase& rStyleBase, PresentationObjects ePO, SfxStyleSheetBasePool* pSSPool )
{ {
......
...@@ -276,6 +276,7 @@ public: ...@@ -276,6 +276,7 @@ public:
virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr ); virtual SfxAbstractTabDialog* CreateSdParagraphTabDlg ( ::Window* pParent, const SfxItemSet* pAttr );
virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs, virtual AbstractSdStartPresDlg* CreateSdStartPresentationDlg( ::Window* pWindow, const SfxItemSet& rInAttrs,
const std::vector<String> &rPageNames, List* pCSList ); 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 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 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 ); 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 ...@@ -51,6 +51,7 @@ namespace sd
static RemoteServer *spServer; static RemoteServer *spServer;
osl::AcceptorSocket mSocket; osl::AcceptorSocket mSocket;
osl::StreamSocket mStreamSocket; osl::StreamSocket mStreamSocket;
void pairClient();
void listenThread(); void listenThread();
void execute(); void execute();
static Transmitter *pTransmitter; static Transmitter *pTransmitter;
......
...@@ -97,6 +97,12 @@ void RemoteServer::listenThread() ...@@ -97,6 +97,12 @@ void RemoteServer::listenThread()
fprintf( stderr, "Finished listening\n" ); 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() void RemoteServer::execute()
{ {
......
...@@ -58,6 +58,7 @@ ...@@ -58,6 +58,7 @@
#include "NavigatorChildWindow.hxx" #include "NavigatorChildWindow.hxx"
#include "LayerDialogChildWindow.hxx" #include "LayerDialogChildWindow.hxx"
#include "sdresid.hxx" #include "sdresid.hxx"
// #include "sdabstdlg.hxx"
#include "fupoor.hxx" #include "fupoor.hxx"
#include "fusldlg.hxx" #include "fusldlg.hxx"
#include "drawdoc.hxx" #include "drawdoc.hxx"
...@@ -632,6 +633,15 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq) ...@@ -632,6 +633,15 @@ void DrawViewShell::FuTemp04(SfxRequest& rReq)
} }
break; 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: case SID_CUSTOMSHOW_DLG:
{ {
SetCurrentFunction( FuCustomShowDlg::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) ); SetCurrentFunction( FuCustomShowDlg::Create( this, GetActiveWindow(), mpDrawView, GetDoc(), rReq ) );
......
...@@ -289,6 +289,7 @@ ...@@ -289,6 +289,7 @@
<menu:menuitem menu:id=".uno:Presentation"/> <menu:menuitem menu:id=".uno:Presentation"/>
<menu:menuitem menu:id=".uno:PresentationDialog"/> <menu:menuitem menu:id=".uno:PresentationDialog"/>
<menu:menuitem menu:id=".uno:RehearseTimings"/> <menu:menuitem menu:id=".uno:RehearseTimings"/>
<menu:menuitem menu:id=".uno:Remote"/>
<menu:menuseparator/> <menu:menuseparator/>
<menu:menuitem menu:id=".uno:AnimationEffects"/> <menu:menuitem menu:id=".uno:AnimationEffects"/>
<!--menu:menuitem menu:id=".uno:CustomAnimationSchemes" / --> <!--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