View | Details | Raw Unified | Return to issue 7065
Collapse All | Expand All

(-)openoffice.org.orig/sw/inc/cmdid.h (+2 lines)
Lines 539-544 Link Here
539
539
540
#define FN_SET_PAGE_STYLE			(FN_FORMAT + 93)  /* Anwenden Seitenv. */
540
#define FN_SET_PAGE_STYLE			(FN_FORMAT + 93)  /* Anwenden Seitenv. */
541
541
542
#define FN_FORMAT_TITLEPAGE_DLG		(FN_FORMAT + 98)  /* Title Page */
543
542
544
543
#define FN_TABLE_REP                (FN_FORMAT + 99)  /* TableRepresentation */
545
#define FN_TABLE_REP                (FN_FORMAT + 99)  /* TableRepresentation */
544
#define FN_CONVERT_TEXT_TABLE		(FN_FORMAT + 100)  /* Konvertierung Text <-> Tabelle */
546
#define FN_CONVERT_TEXT_TABLE		(FN_FORMAT + 100)  /* Konvertierung Text <-> Tabelle */
(-)openoffice.org.orig/sw/inc/globals.hrc (-1 / +4 lines)
Lines 282-288 Link Here
282
#define TP_SECTION_INDENTS          (RC_GLOBALS_BEGIN +  102)
282
#define TP_SECTION_INDENTS          (RC_GLOBALS_BEGIN +  102)
283
#define TP_OPTCOMPATIBILITY_PAGE	(RC_GLOBALS_BEGIN +  103)
283
#define TP_OPTCOMPATIBILITY_PAGE	(RC_GLOBALS_BEGIN +  103)
284
#define TP_MAILCONFIG               (RC_GLOBALS_BEGIN +  104)
284
#define TP_MAILCONFIG               (RC_GLOBALS_BEGIN +  104)
285
//maximum: RC_GLOBALS_BEGIN +  119
285
#define TP_TITLEPAGE                (RC_GLOBALS_BEGIN +  105)
286
//maximum: RC_GLOBALS_BEGIN +  120
287
286
288
287
#if STR_DOC_STAT > RC_GLOBALS_END
289
#if STR_DOC_STAT > RC_GLOBALS_END
288
#error Resource-Id Ueberlauf in #file, #line
290
#error Resource-Id Ueberlauf in #file, #line
Lines 294-297 Link Here
294
#define SID_WRT_SHELL               (RC_GLOBALS_BEGIN +  117)
296
#define SID_WRT_SHELL               (RC_GLOBALS_BEGIN +  117)
295
297
296
#define DLG_LINE_NUMBERING          (RC_GLOBALS_BEGIN +  118)
298
#define DLG_LINE_NUMBERING          (RC_GLOBALS_BEGIN +  118)
299
#define DLG_TITLEPAGE               (RC_GLOBALS_BEGIN +  119)
297
#endif // _GLOBALS_HRC
300
#endif // _GLOBALS_HRC
(-)openoffice.org.orig/sw/inc/helpid.h (+1 lines)
Lines 986-988 Link Here
986
#define HID_MM_HEADER_12                            (HID_BASE + 2279)
986
#define HID_MM_HEADER_12                            (HID_BASE + 2279)
987
#define HID_MM_HEADER_13                            (HID_BASE + 2280)
987
#define HID_MM_HEADER_13                            (HID_BASE + 2280)
988
988
989
#define HID_TITLEPAGE 						  		(HID_BASE + 2281)
(-)openoffice.org.orig/sw/inc/rcid.hrc (-1 / +1 lines)
Lines 135-141 Link Here
135
135
136
// globale Ressourcen
136
// globale Ressourcen
137
#define RC_GLOBALS_BEGIN        	RC_GLOBALS
137
#define RC_GLOBALS_BEGIN        	RC_GLOBALS
138
#define RC_GLOBALS_END          	(RC_GLOBALS_BEGIN + 119)
138
#define RC_GLOBALS_END          	(RC_GLOBALS_BEGIN + 120)
139
139
140
// Format-Vorlagen
140
// Format-Vorlagen
141
#define RC_FMTUI_BEGIN          	RC_FMTUI
141
#define RC_FMTUI_BEGIN          	RC_FMTUI
(-)openoffice.org.orig/sw/inc/swabstdlg.hxx (+1 lines)
Lines 477-482 Link Here
477
												SwField* pField, BOOL bNextButton = FALSE ) = 0; //add for SwFldInputDlg
477
												SwField* pField, BOOL bNextButton = FALSE ) = 0; //add for SwFldInputDlg
478
	virtual AbstractInsFootNoteDlg*		CreateInsFootNoteDlg( int nResId,
478
	virtual AbstractInsFootNoteDlg*		CreateInsFootNoteDlg( int nResId,
479
												Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE) = 0; //add for SwInsFootNoteDlg
479
												Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE) = 0; //add for SwInsFootNoteDlg
480
    virtual VclAbstractDialog*          CreateTitlePageDlg ( Window * pParent ) = 0;
480
	virtual VclAbstractDialog *			CreateVclSwViewDialog( int nResId,
481
	virtual VclAbstractDialog *			CreateVclSwViewDialog( int nResId,
481
												SwView& rView, BOOL bCol = FALSE ) = 0; //add for SwInsRowColDlg, SwLineNumberingDlg
482
												SwView& rView, BOOL bCol = FALSE ) = 0; //add for SwInsRowColDlg, SwLineNumberingDlg
482
	virtual AbstractInsertGrfRulerDlg*		CreateInsertGrfRulerDlg( int nResId,
483
	virtual AbstractInsertGrfRulerDlg*		CreateInsertGrfRulerDlg( int nResId,
(-)openoffice.org.orig/sw/sdi/_basesh.sdi (+6 lines)
Lines 250-255 Link Here
250
		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
250
		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
251
	]
251
	]
252
252
253
	FN_FORMAT_TITLEPAGE_DLG  // status(final|play)
254
	[
255
		ExecMethod = ExecDlg ;
256
		DisableFlags="SW_DISABLE_ON_PROTECTED_CURSOR";
257
	]
258
253
	FN_FORMAT_PAGE_COLUMN_DLG  // status(final|play)
259
	FN_FORMAT_PAGE_COLUMN_DLG  // status(final|play)
254
	[
260
	[
255
		ExecMethod = ExecDlg ;
261
		ExecMethod = ExecDlg ;
(-)openoffice.org.orig/sw/sdi/swriter.sdi (+25 lines)
Lines 6330-6335 Link Here
6330
]
6330
]
6331
6331
6332
//--------------------------------------------------------------------------
6332
//--------------------------------------------------------------------------
6333
SfxVoidItem TitlePageDialog FN_FORMAT_TITLEPAGE_DLG
6334
()
6335
[
6336
	/* flags: */
6337
	AutoUpdate = FALSE,
6338
	Cachable = Cachable,
6339
	FastCall = FALSE,
6340
	HasCoreId = FALSE,
6341
	HasDialog = TRUE,
6342
	ReadOnlyDoc = FALSE,
6343
	Toggle = FALSE,
6344
	Container = FALSE,
6345
	RecordAbsolute = FALSE,
6346
	RecordPerItem;
6347
	Asynchron;
6348
6349
	/* config: */
6350
	AccelConfig = TRUE,
6351
	MenuConfig = TRUE,
6352
	StatusBarConfig = FALSE,
6353
	ToolBoxConfig = TRUE,
6354
	GroupId = GID_FORMAT;
6355
]
6356
6357
//--------------------------------------------------------------------------
6333
SfxVoidItem PageDown FN_PAGEDOWN
6358
SfxVoidItem PageDown FN_PAGEDOWN
6334
()
6359
()
6335
[
6360
[
(-)openoffice.org.orig/sw/source/ui/dialog/swdlgfact.cxx (+9 lines)
Lines 97-102 Link Here
97
#include <instable.hxx> //add for SwInsTableDlg
97
#include <instable.hxx> //add for SwInsTableDlg
98
#include <javaedit.hxx> //add for SwJavaEditDialog
98
#include <javaedit.hxx> //add for SwJavaEditDialog
99
#include <linenum.hxx> //add for SwLineNumberingDlg
99
#include <linenum.hxx> //add for SwLineNumberingDlg
100
#include <titlepage.hxx> //add for SwTitlePageDlg
100
#include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
101
#include <mailmrge.hxx> //add for SwMailMergeDlg, SwMailMergeCreateFromDlg, SwMailMergeFieldConnectionsDlg
101
#include <mergetbl.hxx> //add for SwMergeTblDlg
102
#include <mergetbl.hxx> //add for SwMergeTblDlg
102
#include <multmrk.hxx> //add for SwMultiTOXMarkDlg
103
#include <multmrk.hxx> //add for SwMultiTOXMarkDlg
Lines 1357-1362 Link Here
1357
	return 0;
1358
	return 0;
1358
}
1359
}
1359
1360
1361
VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateTitlePageDlg ( Window *pParent )
1362
{
1363
    Dialog* pDlg = new SwTitlePageDlg( pParent );
1364
    if ( pDlg )
1365
        return new VclAbstractDialog_Impl( pDlg );
1366
    return 0;
1367
}
1368
1360
VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId, 
1369
VclAbstractDialog * SwAbstractDialogFactory_Impl::CreateVclSwViewDialog( int nResId, 
1361
											SwView& rView, BOOL /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
1370
											SwView& rView, BOOL /*bCol*/ ) //add for SwInsRowColDlg, SwLineNumberingDlg
1362
{
1371
{
(-)openoffice.org.orig/sw/source/ui/dialog/swdlgfact.hxx (+1 lines)
Lines 532-537 Link Here
532
												SwField* pField, BOOL bNextButton = FALSE ); //add for SwFldInputDlg
532
												SwField* pField, BOOL bNextButton = FALSE ); //add for SwFldInputDlg
533
	virtual AbstractInsFootNoteDlg*		CreateInsFootNoteDlg( int nResId,
533
	virtual AbstractInsFootNoteDlg*		CreateInsFootNoteDlg( int nResId,
534
												Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE); //add for SwInsFootNoteDlg
534
												Window * pParent, SwWrtShell &rSh, BOOL bEd = FALSE); //add for SwInsFootNoteDlg
535
   virtual VclAbstractDialog *         CreateTitlePageDlg ( Window * pParent );
535
	virtual VclAbstractDialog *			CreateVclSwViewDialog( int nResId, 
536
	virtual VclAbstractDialog *			CreateVclSwViewDialog( int nResId, 
536
												SwView& rView, BOOL bCol = FALSE ); //add for SwInsRowColDlg, SwLineNumberingDlg
537
												SwView& rView, BOOL bCol = FALSE ); //add for SwInsRowColDlg, SwLineNumberingDlg
537
	virtual AbstractInsertGrfRulerDlg*		CreateInsertGrfRulerDlg( int nResId,
538
	virtual AbstractInsertGrfRulerDlg*		CreateInsertGrfRulerDlg( int nResId,
(-)openoffice.org.orig/sw/source/ui/inc/swmn_tmpl.hrc (-2 / +7 lines)
Lines 67-74 Link Here
67
        Identifier = FN_FORMAT_PAGE_DLG ; \
67
        Identifier = FN_FORMAT_PAGE_DLG ; \
68
        HelpID = FN_FORMAT_PAGE_DLG ; \
68
        HelpID = FN_FORMAT_PAGE_DLG ; \
69
        Text [ en-US ] = "Pa~ge..." ; \
69
        Text [ en-US ] = "Pa~ge..." ; \
70
	};
70
    };\
71
71
    MenuItem\
72
    {\
73
        Identifier = FN_FORMAT_TITLEPAGE_DLG ; \
74
        HelpID = FN_FORMAT_TITLEPAGE_DLG ; \
75
        Text [ en-US ] = "~Title Page..." ; \
76
    };
72
77
73
#define MN_TEXT_ATTR\
78
#define MN_TEXT_ATTR\
74
    MenuItem\
79
    MenuItem\
(-)openoffice.org.orig/sw/source/ui/misc/makefile.mk (-1 / +3 lines)
Lines 56-62 Link Here
56
	pgfnote.src \
56
	pgfnote.src \
57
    pggrid.src \
57
    pggrid.src \
58
    redlndlg.src \
58
    redlndlg.src \
59
    srtdlg.src
59
    srtdlg.src \
60
    titlepage.src
60
61
61
EXCEPTIONSFILES = \
62
EXCEPTIONSFILES = \
62
		$(SLO)$/glossary.obj \
63
		$(SLO)$/glossary.obj \
Lines 76-81 Link Here
76
		$(SLO)$/insfnote.obj \
77
		$(SLO)$/insfnote.obj \
77
		$(SLO)$/insrule.obj \
78
		$(SLO)$/insrule.obj \
78
		$(SLO)$/linenum.obj \
79
		$(SLO)$/linenum.obj \
80
		$(SLO)$/titlepage.obj \
79
		$(SLO)$/num.obj \
81
		$(SLO)$/num.obj \
80
		$(SLO)$/numberingtypelistbox.obj \
82
		$(SLO)$/numberingtypelistbox.obj \
81
		$(SLO)$/outline.obj \
83
		$(SLO)$/outline.obj \
(-)openoffice.org.orig/sw/source/ui/shells/basesh.cxx (+8 lines)
Lines 2546-2551 Link Here
2546
2546
2547
	switch ( nSlot )
2547
	switch ( nSlot )
2548
	{
2548
	{
2549
		case FN_FORMAT_TITLEPAGE_DLG:
2550
		{
2551
			SwAbstractDialogFactory* pFact = SwAbstractDialogFactory::Create();
2552
			VclAbstractDialog* pDlg = pFact->CreateTitlePageDlg( pMDI );
2553
			pDlg->Execute();
2554
			delete pDlg;
2555
		}
2556
		break;
2549
		case FN_FORMAT_PAGE_COLUMN_DLG:
2557
		case FN_FORMAT_PAGE_COLUMN_DLG:
2550
		case FN_FORMAT_PAGE_DLG:
2558
		case FN_FORMAT_PAGE_DLG:
2551
		{
2559
		{
(-)openoffice.org.orig/sw/uiconfig/swriter/menubar/menubar.xml (+1 lines)
Lines 217-222 Link Here
217
      <menu:menuitem menu:id=".uno:ParagraphDialog"/>
217
      <menu:menuitem menu:id=".uno:ParagraphDialog"/>
218
      <menu:menuitem menu:id=".uno:BulletsAndNumberingDialog"/>
218
      <menu:menuitem menu:id=".uno:BulletsAndNumberingDialog"/>
219
      <menu:menuitem menu:id=".uno:PageDialog"/>
219
      <menu:menuitem menu:id=".uno:PageDialog"/>
220
      <menu:menuitem menu:id=".uno:TitlePageDialog"/>
220
      <menu:menuseparator/>
221
      <menu:menuseparator/>
221
      <menu:menu menu:id=".uno:TransliterateMenu">
222
      <menu:menu menu:id=".uno:TransliterateMenu">
222
        <menu:menupopup>
223
        <menu:menupopup>
(-)openoffice.org.orig/sw/util/makefile.mk (+1 lines)
Lines 263-268 Link Here
263
    $(SLO)$/instable.obj \
263
    $(SLO)$/instable.obj \
264
    $(SLO)$/insrule.obj \
264
    $(SLO)$/insrule.obj \
265
    $(SLO)$/javaedit.obj \
265
    $(SLO)$/javaedit.obj \
266
    $(SLO)$/titlepage.obj \
266
    $(SLO)$/linenum.obj \
267
    $(SLO)$/linenum.obj \
267
    $(SLO)$/mailmrge.obj \
268
    $(SLO)$/mailmrge.obj \
268
    $(SLO)$/multmrk.obj \
269
    $(SLO)$/multmrk.obj \
(-)openoffice.org.orig/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu (+5 lines)
Lines 802-807 Link Here
802
                    <value xml:lang="en-US">~Page...</value>
802
                    <value xml:lang="en-US">~Page...</value>
803
                </prop>
803
                </prop>
804
            </node>
804
            </node>
805
			<node oor:name=".uno:TitlePageDialog" oor:op="replace">
806
				<prop oor:name="Label" oor:type="xs:string">
807
					<value xml:lang="en-US">Title Page...</value>
808
				</prop>
809
			</node>
805
			<node oor:name=".uno:FormatColumns" oor:op="replace">
810
			<node oor:name=".uno:FormatColumns" oor:op="replace">
806
				<prop oor:name="Label" oor:type="xs:string">
811
				<prop oor:name="Label" oor:type="xs:string">
807
                    <value xml:lang="en-US">Co~lumns...</value>
812
                    <value xml:lang="en-US">Co~lumns...</value>
(-) (+129 lines)
Added Link Here
1
/*************************************************************************
2
 *
3
 *  OpenOffice.org - a multi-platform office productivity suite
4
 *
5
 *  $RCSfile$
6
 *
7
 *  $Revision$
8
 *
9
 *  last change: $Author$ $Date$
10
 *
11
 *  The Contents of this file are made available subject to
12
 *  the terms of GNU Lesser General Public License Version 2.1.
13
 *
14
 *
15
 *    GNU Lesser General Public License Version 2.1
16
 *    =============================================
17
 *    Copyright 2005 by Sun Microsystems, Inc.
18
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
19
 *
20
 *    This library is free software; you can redistribute it and/or
21
 *    modify it under the terms of the GNU Lesser General Public
22
 *    License version 2.1, as published by the Free Software Foundation.
23
 *
24
 *    This library is distributed in the hope that it will be useful,
25
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27
 *    Lesser General Public License for more details.
28
 *
29
 *    You should have received a copy of the GNU Lesser General Public
30
 *    License along with this library; if not, write to the Free Software
31
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32
 *    MA  02111-1307  USA
33
 *
34
 ************************************************************************/
35
#ifndef _SWTITLEPAGE_HXX
36
#define _SWTITLEPAGE_HXX
37
38
#ifndef _BASEDLGS_HXX //autogen
39
#include <sfx2/basedlgs.hxx>
40
#endif
41
42
#ifndef _SFXTABDLG_HXX //autogen
43
#include <sfx2/tabdlg.hxx>
44
#endif
45
46
#ifndef _SV_FIXED_HXX //autogen
47
#include <vcl/fixed.hxx>
48
#endif
49
50
#ifndef _SV_FIELD_HXX //autogen
51
#include <vcl/field.hxx>
52
#endif
53
#ifndef _NUMBERINGTYPELISTBOX_HXX
54
#include <numberingtypelistbox.hxx>
55
#endif
56
57
#ifndef _LSTBOX_HXX //autogen
58
#include <vcl/lstbox.hxx>
59
#endif
60
61
class Window;
62
class SfxItemSet;
63
class SwView;
64
class SwWrtShell;
65
class SwPageDesc;
66
67
/*--------------------------------------------------------------------
68
   Beschreibung: SingleTabDialog
69
 --------------------------------------------------------------------*/
70
71
class SwTitlePageDlg : public SfxModalDialog
72
{
73
private:
74
	FixedLine	aMakeInsertFL;
75
	RadioButton	aUseExistingPagesRB;
76
	RadioButton	aInsertNewPagesRB;
77
	FixedText	aPageCountFT;
78
	NumericField	aPageCountNF;
79
	FixedText	aPagePagesFT;
80
81
	FixedText	aPageStartFT;
82
	RadioButton	aDocumentStartRB;
83
	RadioButton	aPageStartRB;
84
	NumericField	aPageStartNF;
85
86
	FixedLine	aNumberingFL;
87
	CheckBox	aRestartNumberingCB;
88
	FixedText	aRestartNumberingFT;
89
	NumericField	aRestartNumberingNF;
90
	CheckBox	aSetPageNumberCB;
91
	FixedText	aSetPageNumberFT;
92
	NumericField	aSetPageNumberNF;
93
94
	FixedLine	aPagePropertiesFL;
95
	ListBox		aPagePropertiesLB;
96
	PushButton	aPagePropertiesPB;
97
98
        FixedLine	aBottomFL;
99
        OKButton	aOkPB;
100
        CancelButton	aCancelPB;
101
        HelpButton	aHelpPB;
102
103
        SwWrtShell *mpSh;
104
105
	const SwFmtPageDesc *mpPageFmtDesc;
106
107
        SwPageDesc *mpTitleDesc;
108
        const SwPageDesc *mpIndexDesc;
109
        const SwPageDesc *mpNormalDesc;
110
111
	void FillList();
112
113
        USHORT GetInsertPosition() const;
114
115
	DECL_LINK( OKHdl, Button * );
116
	DECL_LINK( EditHdl, Button * );
117
	DECL_LINK( RestartNumberingHdl, CheckBox* );
118
	DECL_LINK( SetPageNumberHdl, CheckBox* );
119
        DECL_LINK( UpHdl, NumericField * );
120
        DECL_LINK( DownHdl, NumericField * );
121
        DECL_LINK( StartPageHdl, RadioButton * );
122
public:
123
	SwTitlePageDlg( Window *pParent );
124
	~SwTitlePageDlg();
125
};
126
127
#endif
128
129
/* vi:set tabstop=4 shiftwidth=4 expandtab: */
(-) (+260 lines)
Added Link Here
1
/*************************************************************************
2
 *
3
 *  OpenOffice.org - a multi-platform office productivity suite
4
 *
5
 *  $RCSfile$
6
 *
7
 *  $Revision$
8
 *
9
 *  last change: $Author$ $Date$
10
 *
11
 *  The Contents of this file are made available subject to
12
 *  the terms of GNU Lesser General Public License Version 2.1.
13
 *
14
 *
15
 *    GNU Lesser General Public License Version 2.1
16
 *    =============================================
17
 *    Copyright 2005 by Sun Microsystems, Inc.
18
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
19
 *
20
 *    This library is free software; you can redistribute it and/or
21
 *    modify it under the terms of the GNU Lesser General Public
22
 *    License version 2.1, as published by the Free Software Foundation.
23
 *
24
 *    This library is distributed in the hope that it will be useful,
25
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27
 *    Lesser General Public License for more details.
28
 *
29
 *    You should have received a copy of the GNU Lesser General Public
30
 *    License along with this library; if not, write to the Free Software
31
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32
 *    MA  02111-1307  USA
33
 *
34
 ************************************************************************/
35
/* StarView ressource file */
36
37
#ifndef _SFX_HRC
38
#include <sfx2/sfx.hrc>
39
#endif
40
#ifndef _SVX_DIALOGS_HRC
41
#include <svx/dialogs.hrc>
42
#endif
43
#include "globals.hrc"
44
#include "misc.hrc"
45
#include "titlepage.hrc"
46
#include "helpid.h"
47
/**************************************************************************/
48
/*                                                                        */
49
/**************************************************************************/
50
ModalDialog DLG_TITLEPAGE
51
{
52
	HelpID = HID_TITLEPAGE ;
53
	OutputSize = TRUE ;
54
	SVLook = TRUE ;
55
	Size = MAP_APPFONT ( 216 , 201 ) ;
56
	Text [ en-US ] = "Title Pages" ;
57
	Moveable = TRUE ;
58
59
	FixedLine FL_MAKEINSERT
60
	{
61
		Pos = MAP_APPFONT ( 6 , 5 ) ;
62
		Size = MAP_APPFONT ( 204 , 8 ) ;
63
		Text [ en-US ] = "Make Title Pages" ;
64
		Text [ x-comment ] = " ";
65
	};
66
	RadioButton RB_USE_EXISTING_PAGES
67
	{
68
		Pos = MAP_APPFONT ( 12 , 18 ) ;
69
		Size = MAP_APPFONT ( 150 , 10 ) ;
70
		Text [ en-US ] = "Convert existing pages to title pages" ;
71
		TabStop = TRUE ;
72
		Check = TRUE ;
73
		Text [ x-comment ] = " ";
74
	};
75
	RadioButton RB_INSERT_NEW_PAGES
76
	{
77
		Pos = MAP_APPFONT ( 12 , 34 ) ;
78
		Size = MAP_APPFONT ( 150 , 10 ) ;
79
		Text [ en-US ] = "Insert new title pages" ;
80
		Text [ x-comment ] = " ";
81
	};
82
	FixedText FT_PAGE_COUNT
83
	{
84
		Pos = MAP_APPFONT ( 12 , 50 ) ;
85
		Size = MAP_APPFONT ( 80 , 8 ) ;
86
		Text [ en-US ] = "Number of title pages" ;
87
		Text [ x-comment ] = " ";
88
	};
89
	NumericField NF_PAGE_COUNT
90
	{
91
		Pos = MAP_APPFONT ( 80 , 50 ) ;
92
		Size = MAP_APPFONT ( 30 , 12 ) ;
93
		Border = TRUE ;
94
		TabStop = TRUE ;
95
		Left = TRUE ;
96
		Repeat = TRUE ;
97
		Spin = TRUE ;
98
		Minimum = 1 ;
99
		Maximum = 65535;
100
		First = 1 ;
101
		Last = 65535;
102
		SpinSize = 1 ;
103
	};
104
	FixedText FT_PAGE_PAGES
105
	{
106
		Pos = MAP_APPFONT ( 116 , 50 ) ;
107
		Size = MAP_APPFONT ( 80 , 10 ) ;
108
		Text [ en-US ] = "pages" ;
109
		Text [ x-comment ] = " ";
110
	};
111
	FixedText FT_PAGE_START
112
	{
113
		Pos = MAP_APPFONT ( 12 , 66 ) ;
114
		Size = MAP_APPFONT ( 58 , 8 ) ;
115
		Text [ en-US ] = "Place title pages at" ;
116
		Text [ x-comment ] = " ";
117
	};
118
	RadioButton RB_DOCUMENT_START
119
	{
120
		Pos = MAP_APPFONT ( 70 , 66 ) ;
121
		Size = MAP_APPFONT ( 80 , 10 ) ;
122
		Text [ en-US ] = "Document Start" ;
123
		TabStop = TRUE ;
124
		Check = TRUE ;
125
		Text [ x-comment ] = " ";
126
	};
127
	RadioButton RB_PAGE_START
128
	{
129
		Pos = MAP_APPFONT ( 70 , 78 ) ;
130
		Size = MAP_APPFONT ( 30 , 10 ) ;
131
		Text [ en-US ] = "Page" ;
132
		Text [ x-comment ] = " ";
133
	};
134
	NumericField NF_PAGE_START
135
	{
136
		Pos = MAP_APPFONT ( 95 , 78 ) ;
137
		Size = MAP_APPFONT ( 30 , 12 ) ;
138
		Border = TRUE ;
139
		TabStop = TRUE ;
140
		Left = TRUE ;
141
		Repeat = TRUE ;
142
		Spin = TRUE ;
143
		Minimum = 1 ;
144
		Maximum = 65535;
145
		First = 1 ;
146
		Last = 65535;
147
		SpinSize = 1 ;
148
	};
149
	FixedLine FL_NUMBERING
150
	{
151
		Pos = MAP_APPFONT ( 6 , 98 ) ;
152
		Size = MAP_APPFONT ( 204 , 8 ) ;
153
		Text [ en-US ] = "Page Numbering" ;
154
		Text [ x-comment ] = " ";
155
	};
156
	CheckBox CB_RESTART_NUMBERING
157
	{
158
		Pos = MAP_APPFONT ( 12, 111  ) ;
159
		Size = MAP_APPFONT ( 150 , 10 ) ;
160
		TabStop = TRUE ;
161
		Text [ en-US ] = "Reset Page Numbering after title pages" ;
162
		Text [ x-comment ] = " ";
163
	};
164
	FixedText FT_RESTART_NUMBERING
165
	{
166
		Pos = MAP_APPFONT ( 140 , 111 ) ;
167
		Size = MAP_APPFONT ( 50 , 10 ) ;
168
		Text [ en-US ] = "Page Number" ;
169
		Text [ x-comment ] = " ";
170
	};
171
	NumericField NF_RESTART_NUMBERING
172
	{
173
		Pos = MAP_APPFONT ( 180 , 111 ) ;
174
		Size = MAP_APPFONT ( 30 , 12 ) ;
175
		Border = TRUE ;
176
		TabStop = TRUE ;
177
		Left = TRUE ;
178
		Repeat = TRUE ;
179
		Spin = TRUE ;
180
		Minimum = 1 ;
181
		Maximum = 65535;
182
		First = 1 ;
183
		Last = 65535;
184
		SpinSize = 1 ;
185
	};
186
	CheckBox CB_SET_PAGE_NUMBER
187
	{
188
		Pos = MAP_APPFONT ( 12 , 125 ) ;
189
		Size = MAP_APPFONT ( 150 , 10 ) ;
190
		TabStop = TRUE ;
191
		Text [ en-US ] = "Set Page Number for first title page" ;
192
		Text [ x-comment ] = " ";
193
	};
194
	FixedText FT_SET_PAGE_NUMBER
195
	{
196
		Pos = MAP_APPFONT ( 140 , 125 ) ;
197
		Size = MAP_APPFONT ( 50 , 10 ) ;
198
		Text [ en-US ] = "Page Number" ;
199
		Text [ x-comment ] = " ";
200
	};
201
	NumericField NF_SET_PAGE_NUMBER
202
	{
203
		Pos = MAP_APPFONT ( 180 , 125 ) ;
204
		Size = MAP_APPFONT ( 30 , 12 ) ;
205
		Border = TRUE ;
206
		TabStop = TRUE ;
207
		Left = TRUE ;
208
		Repeat = TRUE ;
209
		Spin = TRUE ;
210
		Minimum = 1 ;
211
		Maximum = 65535;
212
		First = 1 ;
213
		Last = 65535;
214
		SpinSize = 1 ;
215
	};
216
	FixedLine FL_PAGE_PROPERTIES
217
	{
218
		Pos = MAP_APPFONT ( 6 , 141 ) ;
219
		Size = MAP_APPFONT ( 204 , 8 ) ;
220
		Text [ en-US ] = "Edit Page Properties" ;
221
		Text [ x-comment ] = " ";
222
	};
223
	ListBox LB_PAGE_PROPERTIES
224
	{
225
		Border = TRUE ;
226
		Pos = MAP_APPFONT ( 12 , 154 ) ;
227
		Size = MAP_APPFONT ( 150 , 80 ) ;
228
		TabStop = TRUE ;
229
		DropDown = TRUE ;
230
		CurPos = 0 ;
231
	};
232
	PushButton PB_PAGE_PROPERTIES
233
	{
234
                Pos = MAP_APPFONT ( 170 , 154 ) ;
235
		Size = MAP_APPFONT ( 30 , 12 ) ;
236
		Text [ en-US ] = "Edit..." ;
237
	};
238
	FixedLine FL_BOTTOM
239
	{
240
		Pos = MAP_APPFONT ( 6 , 170 ) ;
241
		Size = MAP_APPFONT ( 204 , 8 ) ;
242
	};
243
	OKButton PB_OK
244
	{
245
		Pos = MAP_APPFONT ( 54 , 181 ) ;
246
		Size = MAP_APPFONT ( 50 , 14 ) ;
247
		DefButton = TRUE ;
248
	};
249
	CancelButton PB_CANCEL
250
	{
251
		Pos = MAP_APPFONT ( 107 , 181 ) ;
252
		Size = MAP_APPFONT ( 50 , 14 ) ;
253
		DefButton = TRUE ;
254
	};
255
	HelpButton PB_HELP
256
	{
257
		Pos = MAP_APPFONT ( 160 , 181 ) ;
258
		Size = MAP_APPFONT ( 50 , 14 ) ;
259
	};
260
};
(-) (+375 lines)
Added Link Here
1
/*************************************************************************
2
 *
3
 *  OpenOffice.org - a multi-platform office productivity suite
4
 *
5
 *  $RCSfile$
6
 *
7
 *  $Revision$
8
 *
9
 *  last change: $Author$ $Date$
10
 *
11
 *  The Contents of this file are made available subject to
12
 *  the terms of GNU Lesser General Public License Version 2.1.
13
 *
14
 *
15
 *    GNU Lesser General Public License Version 2.1
16
 *    =============================================
17
 *    Copyright 2005 by Sun Microsystems, Inc.
18
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
19
 *
20
 *    This library is free software; you can redistribute it and/or
21
 *    modify it under the terms of the GNU Lesser General Public
22
 *    License version 2.1, as published by the Free Software Foundation.
23
 *
24
 *    This library is distributed in the hope that it will be useful,
25
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27
 *    Lesser General Public License for more details.
28
 *
29
 *    You should have received a copy of the GNU Lesser General Public
30
 *    License along with this library; if not, write to the Free Software
31
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32
 *    MA  02111-1307  USA
33
 *
34
 ************************************************************************/
35
36
// MARKER(update_precomp.py): autogen include statement, do not remove
37
#include "precompiled_sw.hxx"
38
39
#ifdef SW_DLLIMPLEMENTATION
40
#undef SW_DLLIMPLEMENTATION
41
#endif
42
43
#include <sfx2/viewfrm.hxx>
44
#include <vcl/msgbox.hxx>
45
#include <view.hxx>
46
#include <swmodule.hxx>
47
#include <wrtsh.hxx>
48
#include <poolfmt.hxx>
49
#include <docsh.hxx>
50
#include <charfmt.hxx>
51
#include <docstyle.hxx>
52
53
#include "fldbas.hxx"
54
#include "lineinfo.hxx"
55
#include "globals.hrc"
56
#include "titlepage.hrc"
57
#include "titlepage.hxx"
58
#include "uitool.hxx"
59
#include "fmtpdsc.hxx"
60
#include "pagedesc.hxx"
61
62
#include <IDocumentStylePoolAccess.hxx>
63
64
namespace
65
{
66
	bool lcl_GetPageDesc(SwWrtShell *pSh, USHORT &rPageNo, const SwFmtPageDesc **ppPageFmtDesc)
67
	{
68
		bool bRet = false;
69
		SfxItemSet aSet( pSh->GetAttrPool(), RES_PAGEDESC, RES_PAGEDESC );
70
		if (pSh->GetCurAttr( aSet ))
71
		{
72
			const SfxPoolItem* pItem(0);
73
			if (SFX_ITEM_SET == aSet.GetItemState( RES_PAGEDESC, TRUE, &pItem ) && pItem)
74
			{
75
				rPageNo = ((const SwFmtPageDesc *)pItem)->GetNumOffset();
76
				if (ppPageFmtDesc)
77
					(*ppPageFmtDesc) = (const SwFmtPageDesc *)(pItem->Clone());
78
				bRet = true;
79
			}
80
		}
81
		return bRet;
82
	}
83
84
    bool lcl_SkipNPages(SwWrtShell *pSh, USHORT nNoPages)
85
    {
86
		bool bAllOk = true;
87
		for (USHORT nI = 0; nI < nNoPages && bAllOk; ++nI)
88
			bAllOk = pSh->SttNxtPg();
89
        return bAllOk;
90
    }
91
92
    void lcl_ChangePage(SwWrtShell *pSh, USHORT nNewNumber,
93
        const SwPageDesc *pNewDesc)
94
	{
95
	    const USHORT nCurIdx = pSh->GetCurPageDesc();
96
	    const SwPageDesc &rCurrentDesc = pSh->GetPageDesc( nCurIdx );
97
98
	    const SwFmtPageDesc *pPageFmtDesc(0);
99
	    USHORT nDontCare;
100
	    lcl_GetPageDesc(pSh, nDontCare, &pPageFmtDesc);
101
102
	    //If we want a new number then set it, otherwise reuse the existing one
103
	    USHORT nPgNo = nNewNumber ?
104
            nNewNumber : ( pPageFmtDesc ? pPageFmtDesc->GetNumOffset() : 0 );
105
106
	    //If we want a new descriptior then set it, otherwise reuse the existing one
107
	    if (!pNewDesc)
108
	    {
109
		    SwFmtPageDesc aPageFmtDesc(pPageFmtDesc ? *pPageFmtDesc : &rCurrentDesc);
110
		    if (nPgNo) aPageFmtDesc.SetNumOffset(nPgNo);
111
		    pSh->SetAttr(aPageFmtDesc);
112
	    }
113
	    else
114
	    {
115
		    SwFmtPageDesc aPageFmtDesc(pNewDesc);
116
		    if (nPgNo) aPageFmtDesc.SetNumOffset(nPgNo);
117
		    pSh->SetAttr(aPageFmtDesc);
118
	    }
119
120
	    delete pPageFmtDesc;
121
	}
122
123
	void lcl_PushCursor(SwWrtShell *pSh)
124
	{
125
		pSh->LockView( TRUE );
126
		pSh->StartAllAction();
127
		pSh->SwCrsrShell::Push();
128
	}
129
130
	void lcl_PopCursor(SwWrtShell *pSh)
131
	{
132
		pSh->SwCrsrShell::Pop( FALSE );
133
		pSh->EndAllAction();
134
        pSh->LockView( FALSE );
135
	}
136
137
    USHORT lcl_GetCurrentPage(SwWrtShell *pSh)
138
    {
139
        String sDummy;
140
        USHORT nPhyNum=1, nVirtNum=1;
141
        pSh->GetPageNumber(0, true, nPhyNum, nVirtNum, sDummy);
142
        return nPhyNum;
143
    }
144
}
145
146
/*
147
 * Only include the Index page in the list if the page count implies one
148
 * to reduce confusing things
149
 */
150
void SwTitlePageDlg::FillList()
151
{
152
	USHORT nTitlePages = aPageCountNF.GetValue();
153
	aPagePropertiesLB.Clear();
154
	if (mpTitleDesc)
155
		aPagePropertiesLB.InsertEntry(mpTitleDesc->GetName());
156
	if (nTitlePages > 1 && mpIndexDesc)
157
		aPagePropertiesLB.InsertEntry(mpIndexDesc->GetName());
158
	if (mpNormalDesc)
159
		aPagePropertiesLB.InsertEntry(mpNormalDesc->GetName());
160
    aPagePropertiesLB.SelectEntryPos(0);
161
}
162
163
/*--------------------------------------------------------------------
164
	Beschreibung:
165
 --------------------------------------------------------------------*/
166
167
USHORT SwTitlePageDlg::GetInsertPosition() const
168
{
169
    USHORT nPage = 1;
170
    if (aPageStartNF.IsEnabled())
171
        nPage = aPageStartNF.GetValue();
172
    return nPage;
173
}
174
175
SwTitlePageDlg::SwTitlePageDlg( Window *pParent ) :
176
	SfxModalDialog( pParent, SW_RES(DLG_TITLEPAGE) ),
177
#pragma warning (disable : 4355)
178
	aMakeInsertFL		( this, SW_RES( FL_MAKEINSERT )),
179
	aUseExistingPagesRB	( this, SW_RES( RB_USE_EXISTING_PAGES )),
180
	aInsertNewPagesRB	( this, SW_RES( RB_INSERT_NEW_PAGES )),
181
	aPageCountFT		( this, SW_RES( FT_PAGE_COUNT )),
182
	aPageCountNF		( this, SW_RES( NF_PAGE_COUNT )),
183
	aPagePagesFT		( this, SW_RES( FT_PAGE_PAGES )),
184
	aPageStartFT		( this, SW_RES( FT_PAGE_START )),
185
	aDocumentStartRB	( this, SW_RES( RB_DOCUMENT_START )),
186
	aPageStartRB		( this, SW_RES( RB_PAGE_START )),
187
	aPageStartNF		( this, SW_RES( NF_PAGE_START )),
188
	aNumberingFL		( this, SW_RES( FL_NUMBERING )),
189
	aRestartNumberingCB	( this, SW_RES( CB_RESTART_NUMBERING )),
190
	aRestartNumberingFT	( this, SW_RES( FT_RESTART_NUMBERING )),
191
	aRestartNumberingNF	( this, SW_RES( NF_RESTART_NUMBERING )),
192
	aSetPageNumberCB	( this, SW_RES( CB_SET_PAGE_NUMBER )),
193
	aSetPageNumberFT	( this, SW_RES( FT_SET_PAGE_NUMBER )),
194
	aSetPageNumberNF	( this, SW_RES( NF_SET_PAGE_NUMBER )),
195
	aPagePropertiesFL	( this, SW_RES( FL_PAGE_PROPERTIES )),
196
	aPagePropertiesLB	( this, SW_RES( LB_PAGE_PROPERTIES )),
197
	aPagePropertiesPB	( this, SW_RES( PB_PAGE_PROPERTIES )),
198
    aBottomFL			( this, SW_RES( FL_BOTTOM )),
199
    aOkPB				( this, SW_RES( PB_OK )),
200
    aCancelPB			( this, SW_RES( PB_CANCEL )),
201
    aHelpPB				( this, SW_RES( PB_HELP )),
202
	mpPageFmtDesc		(0)
203
#pragma warning (default : 4355)
204
{
205
	FreeResource();
206
207
    aOkPB.SetClickHdl(LINK(this, SwTitlePageDlg, OKHdl));
208
    aRestartNumberingCB.SetClickHdl(LINK(this, SwTitlePageDlg, RestartNumberingHdl));
209
	aSetPageNumberCB.SetClickHdl(LINK(this, SwTitlePageDlg, SetPageNumberHdl));
210
211
	USHORT nSetPage = 1;
212
	USHORT nResetPage = 1;
213
	USHORT nTitlePages = 1;
214
	mpSh = ::GetActiveView()->GetWrtShellPtr();
215
	lcl_PushCursor(mpSh);
216
217
	SwView& rView = mpSh->GetView();
218
	rView.InvalidateRulerPos();
219
220
	bool bMaybeResetNumbering = false;
221
222
	mpTitleDesc = mpSh->GetPageDescFromPool(RES_POOLPAGE_FIRST);
223
	mpIndexDesc = mpSh->GetPageDescFromPool(RES_POOLPAGE_REGISTER);
224
	mpNormalDesc = mpSh->GetPageDescFromPool(RES_POOLPAGE_STANDARD);
225
226
    mpSh->SttDoc();
227
	if (lcl_GetPageDesc( mpSh, nSetPage, &mpPageFmtDesc ))
228
	{
229
   		if (mpPageFmtDesc->GetPageDesc() == mpTitleDesc)
230
   		{
231
			while (mpSh->SttNxtPg())
232
			{
233
                const USHORT nCurIdx = mpSh->GetCurPageDesc();
234
                const SwPageDesc &rPageDesc = mpSh->GetPageDesc( nCurIdx );
235
					
236
                if (mpIndexDesc != &rPageDesc)
237
				{
238
                    mpNormalDesc = &rPageDesc;
239
                    bMaybeResetNumbering = lcl_GetPageDesc(mpSh, nResetPage, NULL);
240
                    break;
241
				}
242
				++nTitlePages;
243
			}
244
    	}
245
    }
246
	lcl_PopCursor(mpSh);
247
248
    aUseExistingPagesRB.Check();
249
    aPageCountNF.SetValue(nTitlePages);
250
    aPageCountNF.SetUpHdl(LINK(this, SwTitlePageDlg, UpHdl));
251
    aPageCountNF.SetDownHdl(LINK(this, SwTitlePageDlg, DownHdl));
252
253
    aDocumentStartRB.Check();
254
    aPageStartNF.Enable(false);
255
    aPageStartNF.SetValue(lcl_GetCurrentPage(mpSh));
256
    Link aStartPageHdl = LINK(this, SwTitlePageDlg, StartPageHdl);
257
    aDocumentStartRB.SetClickHdl(aStartPageHdl);
258
    aPageStartRB.SetClickHdl(aStartPageHdl);
259
260
	if (bMaybeResetNumbering && nResetPage > 0)
261
	{
262
        aRestartNumberingCB.Check();
263
        aRestartNumberingNF.SetValue(nResetPage);
264
	}
265
	aRestartNumberingNF.Enable(aRestartNumberingCB.IsChecked());
266
267
    aSetPageNumberNF.SetValue(nSetPage);
268
	if (nSetPage > 1)
269
        aSetPageNumberCB.Check();
270
	aSetPageNumberNF.Enable(aSetPageNumberCB.IsChecked());
271
272
	FillList();
273
    aPagePropertiesPB.SetClickHdl(LINK(this, SwTitlePageDlg, EditHdl));
274
}
275
276
IMPL_LINK(SwTitlePageDlg, UpHdl, NumericField *, EMPTYARG)
277
{
278
	if (aPageCountNF.GetValue() == 2)
279
		FillList();
280
    return 0;
281
}
282
283
IMPL_LINK(SwTitlePageDlg, DownHdl, NumericField *, EMPTYARG)
284
{
285
	if (aPageCountNF.GetValue() == 1)
286
		FillList();
287
    return 0;
288
}
289
290
IMPL_LINK(SwTitlePageDlg, RestartNumberingHdl, CheckBox*, EMPTYARG)
291
{
292
    aRestartNumberingNF.Enable(aRestartNumberingCB.IsChecked());
293
    return 0;
294
}
295
296
IMPL_LINK(SwTitlePageDlg, SetPageNumberHdl, CheckBox*, EMPTYARG)
297
{
298
    aSetPageNumberNF.Enable(aSetPageNumberCB.IsChecked());
299
    return 0;
300
}
301
302
IMPL_LINK(SwTitlePageDlg, StartPageHdl, RadioButton*, EMPTYARG)
303
{
304
    aPageStartNF.Enable(aPageStartRB.IsChecked());
305
    return 0;
306
}
307
308
__EXPORT SwTitlePageDlg::~SwTitlePageDlg()
309
{
310
	delete mpPageFmtDesc;
311
}
312
313
IMPL_LINK( SwTitlePageDlg, EditHdl, Button *, /*pBtn*/ )
314
{
315
    SwView& rView = mpSh->GetView();
316
    rView.GetDocShell()->FormatPage(aPagePropertiesLB.GetSelectEntry(), false, mpSh);
317
    rView.InvalidateRulerPos();
318
319
    return 0;
320
}
321
322
IMPL_LINK( SwTitlePageDlg, OKHdl, Button *, /*pBtn*/ )
323
{
324
    lcl_PushCursor(mpSh);
325
326
    mpSh->StartUndo();
327
328
    SwFmtPageDesc aTitleDesc(mpTitleDesc);
329
330
    if (aSetPageNumberCB.IsChecked())
331
        aTitleDesc.SetNumOffset(aSetPageNumberNF.GetValue());
332
    else if (mpPageFmtDesc)
333
        aTitleDesc.SetNumOffset(mpPageFmtDesc->GetNumOffset());
334
335
    USHORT nNoPages = aPageCountNF.GetValue();
336
    if (!aUseExistingPagesRB.IsChecked())
337
    {
338
        mpSh->GotoPage(GetInsertPosition(), false);
339
        for (USHORT nI=0; nI < nNoPages; ++nI)
340
        	mpSh->InsertPageBreak();
341
    }
342
343
    mpSh->GotoPage(GetInsertPosition(), false);
344
    for (USHORT nI=1; nI < nNoPages; ++nI)
345
    {
346
        if (mpSh->SttNxtPg())
347
            lcl_ChangePage(mpSh, 0, mpIndexDesc);
348
    }
349
350
    mpSh->GotoPage(GetInsertPosition(), false);
351
    mpSh->SetAttr(aTitleDesc);
352
353
    if (nNoPages > 1 && mpSh->GotoPage(GetInsertPosition() + nNoPages, false))
354
    {
355
	    SwFmtPageDesc aPageFmtDesc(mpNormalDesc);
356
    	mpSh->SetAttr(aPageFmtDesc);
357
    }
358
359
    if (aRestartNumberingCB.IsChecked() || nNoPages > 1)
360
    {
361
        USHORT nPgNo = aRestartNumberingCB.IsChecked() ? aRestartNumberingNF.GetValue() : 0;
362
        const SwPageDesc *pNewDesc = nNoPages > 1 ? mpNormalDesc : 0;
363
        mpSh->GotoPage(GetInsertPosition() + nNoPages, false);
364
        lcl_ChangePage(mpSh, nPgNo, pNewDesc);
365
    }
366
367
    mpSh->EndUndo();
368
    lcl_PopCursor(mpSh);
369
    if (!aUseExistingPagesRB.IsChecked())
370
        mpSh->GotoPage(GetInsertPosition(), false);
371
    EndDialog( RET_OK );
372
    return 0;
373
}
374
375
/* vi:set tabstop=4 shiftwidth=4 expandtab: */
(-) (+58 lines)
Added Link Here
1
/*************************************************************************
2
 *
3
 *  OpenOffice.org - a multi-platform office productivity suite
4
 *
5
 *  $RCSfile$
6
 *
7
 *  $Revision$
8
 *
9
 *  last change: $Author$ $Date$
10
 *
11
 *  The Contents of this file are made available subject to
12
 *  the terms of GNU Lesser General Public License Version 2.1.
13
 *
14
 *
15
 *    GNU Lesser General Public License Version 2.1
16
 *    =============================================
17
 *    Copyright 2005 by Sun Microsystems, Inc.
18
 *    901 San Antonio Road, Palo Alto, CA 94303, USA
19
 *
20
 *    This library is free software; you can redistribute it and/or
21
 *    modify it under the terms of the GNU Lesser General Public
22
 *    License version 2.1, as published by the Free Software Foundation.
23
 *
24
 *    This library is distributed in the hope that it will be useful,
25
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27
 *    Lesser General Public License for more details.
28
 *
29
 *    You should have received a copy of the GNU Lesser General Public
30
 *    License along with this library; if not, write to the Free Software
31
 *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32
 *    MA  02111-1307  USA
33
 *
34
 ************************************************************************/
35
#define FL_MAKEINSERT         1
36
#define RB_USE_EXISTING_PAGES 2
37
#define RB_INSERT_NEW_PAGES   3
38
#define FT_PAGE_COUNT         4
39
#define NF_PAGE_COUNT         5
40
#define FT_PAGE_PAGES         6
41
#define FT_PAGE_START         7
42
#define RB_DOCUMENT_START     8
43
#define RB_PAGE_START         9
44
#define NF_PAGE_START        10
45
#define FL_NUMBERING         11
46
#define CB_RESTART_NUMBERING 12
47
#define FT_RESTART_NUMBERING 13
48
#define NF_RESTART_NUMBERING 14
49
#define CB_SET_PAGE_NUMBER   15
50
#define FT_SET_PAGE_NUMBER   16
51
#define NF_SET_PAGE_NUMBER   17
52
#define FL_PAGE_PROPERTIES   18
53
#define LB_PAGE_PROPERTIES   19
54
#define PB_PAGE_PROPERTIES   20
55
#define FL_BOTTOM            21
56
#define PB_OK                22
57
#define PB_CANCEL            23
58
#define PB_HELP              24

Return to issue 7065