sd html export: q&d add single document publish mode

Change-Id: Ifa96814eb2664bea082e51bfaa739250718abd1e
This commit is contained in:
Tomaž Vajngerl
2014-04-13 23:03:00 +02:00
parent ccbe5105ca
commit 24ae12911a
4 changed files with 47 additions and 22 deletions

View File

@@ -400,6 +400,7 @@ SdPublishingDlg::SdPublishingDlg(Window* pWindow, DocumentType eDocType)
pPage2_Standard_FB->SetBorderStyle(WINDOW_BORDER_MONO); pPage2_Standard_FB->SetBorderStyle(WINDOW_BORDER_MONO);
pPage2_Frames->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl)); pPage2_Frames->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl));
pPage2_Frames_FB->SetBorderStyle(WINDOW_BORDER_MONO); pPage2_Frames_FB->SetBorderStyle(WINDOW_BORDER_MONO);
pPage2_SingleDocument->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl));
pPage2_Kiosk->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl)); pPage2_Kiosk->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl));
pPage2_Kiosk_FB->SetBorderStyle(WINDOW_BORDER_MONO); pPage2_Kiosk_FB->SetBorderStyle(WINDOW_BORDER_MONO);
pPage2_WebCast->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl)); pPage2_WebCast->SetClickHdl(LINK(this,SdPublishingDlg,BaseHdl));
@@ -490,6 +491,8 @@ void SdPublishingDlg::CreatePages()
pPage2_Standard = new RadioButton(this,SdResId(PAGE2_STANDARD))); pPage2_Standard = new RadioButton(this,SdResId(PAGE2_STANDARD)));
aAssistentFunc.InsertControl(2, aAssistentFunc.InsertControl(2,
pPage2_Frames = new RadioButton(this,SdResId(PAGE2_FRAMES))); pPage2_Frames = new RadioButton(this,SdResId(PAGE2_FRAMES)));
aAssistentFunc.InsertControl(2,
pPage2_SingleDocument = new RadioButton(this,SdResId(PAGE2_SINGLE_DOCUMENT)));
aAssistentFunc.InsertControl(2, aAssistentFunc.InsertControl(2,
pPage2_Kiosk = new RadioButton(this,SdResId(PAGE2_KIOSK))); pPage2_Kiosk = new RadioButton(this,SdResId(PAGE2_KIOSK)));
aAssistentFunc.InsertControl(2, aAssistentFunc.InsertControl(2,
@@ -646,6 +649,7 @@ void SdPublishingDlg::RemovePages()
delete pPage2_Titel; delete pPage2_Titel;
delete pPage2_Standard; delete pPage2_Standard;
delete pPage2_Frames; delete pPage2_Frames;
delete pPage2_SingleDocument;
delete pPage2_Kiosk; delete pPage2_Kiosk;
delete pPage2_WebCast; delete pPage2_WebCast;
delete pPage2_Standard_FB; delete pPage2_Standard_FB;
@@ -740,9 +744,20 @@ void SdPublishingDlg::GetParameterSequence( Sequence< PropertyValue >& rParams )
// Page 2 // Page 2
aValue.Name = "PublishMode"; aValue.Name = "PublishMode";
aValue.Value <<= (sal_Int32)(pPage2_Standard->IsChecked()?PUBLISH_HTML:
pPage2_Frames->IsChecked()?PUBLISH_FRAMES: HtmlPublishMode ePublishMode;
pPage2_Kiosk->IsChecked()?PUBLISH_KIOSK:PUBLISH_WEBCAST); if (pPage2_Frames->IsChecked())
ePublishMode = PUBLISH_FRAMES;
if (pPage2_SingleDocument->IsChecked())
ePublishMode = PUBLISH_SINGLE_DOCUMENT;
else if (pPage2_Kiosk->IsChecked())
ePublishMode = PUBLISH_KIOSK;
else if (pPage2_WebCast->IsChecked())
ePublishMode = PUBLISH_WEBCAST;
else
ePublishMode = PUBLISH_HTML;
aValue.Value <<= (sal_Int32) ePublishMode;
aProps.push_back( aValue ); aProps.push_back( aValue );
aValue.Name = "IsExportContentsPage"; aValue.Name = "IsExportContentsPage";

View File

@@ -105,10 +105,18 @@ ModalDialog DLG_PUBLISHING
Text [ en-US ] = "Standard HTML with ~frames"; Text [ en-US ] = "Standard HTML with ~frames";
}; };
RadioButton PAGE2_SINGLE_DOCUMENT
{
HelpID = "sd:RadioButton:DLG_PUBLISHING:PAGE2_SINGLE_DOCUMENT";
Pos = MAP_APPFONT( 12, 47 );
Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "~Single document html";
};
RadioButton PAGE2_KIOSK RadioButton PAGE2_KIOSK
{ {
HelpID = "sd:RadioButton:DLG_PUBLISHING:PAGE2_KIOSK"; HelpID = "sd:RadioButton:DLG_PUBLISHING:PAGE2_KIOSK";
Pos = MAP_APPFONT( 12, 47 ); Pos = MAP_APPFONT( 12, 60 );
Size = MAP_APPFONT( 116, 10 ); Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "~Automatic"; Text [ en-US ] = "~Automatic";
}; };
@@ -116,14 +124,14 @@ ModalDialog DLG_PUBLISHING
RadioButton PAGE2_WEBCAST RadioButton PAGE2_WEBCAST
{ {
HelpID = "sd:RadioButton:DLG_PUBLISHING:PAGE2_WEBCAST"; HelpID = "sd:RadioButton:DLG_PUBLISHING:PAGE2_WEBCAST";
Pos = MAP_APPFONT( 12, 60 ); Pos = MAP_APPFONT( 12, 73 );
Size = MAP_APPFONT( 116, 10 ); Size = MAP_APPFONT( 116, 10 );
Text [ en-US ] = "~WebCast"; Text [ en-US ] = "~WebCast";
}; };
FixedBitmap PAGE2_NOFRAMES_FB FixedBitmap PAGE2_NOFRAMES_FB
{ {
Pos = MAP_APPFONT( 21, 73 ); Pos = MAP_APPFONT( 61, 60 );
Scale = TRUE; Scale = TRUE;
Size = MAP_APPFONT( 60, 50 ); Size = MAP_APPFONT( 60, 50 );
Fixed = Bitmap { File = "pubdes.bmp"; }; Fixed = Bitmap { File = "pubdes.bmp"; };
@@ -133,7 +141,7 @@ ModalDialog DLG_PUBLISHING
FixedBitmap PAGE2_FRAMES_FB FixedBitmap PAGE2_FRAMES_FB
{ {
Pos = MAP_APPFONT( 21, 73 ); Pos = MAP_APPFONT( 61, 60 );
Scale = TRUE; Scale = TRUE;
Size = MAP_APPFONT( 60, 50 ); Size = MAP_APPFONT( 60, 50 );
Fixed = Bitmap { File = "pubdes2.bmp"; }; Fixed = Bitmap { File = "pubdes2.bmp"; };
@@ -143,7 +151,7 @@ ModalDialog DLG_PUBLISHING
FixedBitmap PAGE2_KIOSK_FB FixedBitmap PAGE2_KIOSK_FB
{ {
Pos = MAP_APPFONT( 21, 73 ); Pos = MAP_APPFONT( 61, 60 );
Scale = TRUE; Scale = TRUE;
Size = MAP_APPFONT( 60, 50 ); Size = MAP_APPFONT( 60, 50 );
Fixed = Bitmap { File = "pubdes3.bmp"; }; Fixed = Bitmap { File = "pubdes3.bmp"; };
@@ -153,7 +161,7 @@ ModalDialog DLG_PUBLISHING
FixedBitmap PAGE2_WEBCAST_FB FixedBitmap PAGE2_WEBCAST_FB
{ {
Pos = MAP_APPFONT( 21, 73 ); Pos = MAP_APPFONT( 61, 60 );
Scale = TRUE; Scale = TRUE;
Size = MAP_APPFONT( 60, 50 ); Size = MAP_APPFONT( 60, 50 );
Fixed = Bitmap { File = "pubdes4.bmp"; }; Fixed = Bitmap { File = "pubdes4.bmp"; };

View File

@@ -32,22 +32,23 @@
#define PAGE2_FRAMES 23 #define PAGE2_FRAMES 23
#define PAGE2_KIOSK 24 #define PAGE2_KIOSK 24
#define PAGE2_WEBCAST 25 #define PAGE2_WEBCAST 25
#define PAGE2_SINGLE_DOCUMENT 26
#define PAGE2_NOFRAMES_FB 26 #define PAGE2_NOFRAMES_FB 27
#define PAGE2_FRAMES_FB 27 #define PAGE2_FRAMES_FB 28
#define PAGE2_KIOSK_FB 28 #define PAGE2_KIOSK_FB 29
#define PAGE2_WEBCAST_FB 29 #define PAGE2_WEBCAST_FB 30
#define PAGE2_TITEL_HTML 30 #define PAGE2_TITEL_HTML 31
#define PAGE2_CONTENT 31 #define PAGE2_CONTENT 32
#define PAGE2_NOTES 32 #define PAGE2_NOTES 33
#define PAGE2_TITEL_KIOSK 33 #define PAGE2_TITEL_KIOSK 34
#define PAGE2_CHG_DEFAULT 34 #define PAGE2_CHG_DEFAULT 35
#define PAGE2_CHG_AUTO 35 #define PAGE2_CHG_AUTO 36
#define PAGE2_DURATION_TXT 36 #define PAGE2_DURATION_TXT 37
#define PAGE2_DURATION_TMF 37 #define PAGE2_DURATION_TMF 38
#define PAGE2_ENDLESS 38 #define PAGE2_ENDLESS 39
#define PAGE2_TITEL_WEBCAST 40 #define PAGE2_TITEL_WEBCAST 40
#define PAGE2_ASP 41 #define PAGE2_ASP 41

View File

@@ -63,6 +63,7 @@ private:
FixedLine* pPage2_Titel; FixedLine* pPage2_Titel;
RadioButton* pPage2_Standard; RadioButton* pPage2_Standard;
RadioButton* pPage2_Frames; RadioButton* pPage2_Frames;
RadioButton* pPage2_SingleDocument;
RadioButton* pPage2_Kiosk; RadioButton* pPage2_Kiosk;
RadioButton* pPage2_WebCast; RadioButton* pPage2_WebCast;
FixedBitmap* pPage2_Standard_FB; FixedBitmap* pPage2_Standard_FB;