2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:21:34 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _OPTLOAD_HXX
|
|
|
|
#define _OPTLOAD_HXX
|
|
|
|
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
#ifndef _GROUP_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
#include <vcl/group.hxx>
|
|
|
|
#endif
|
|
|
|
#include <vcl/fixed.hxx>
|
2001-03-22 08:40:18 +00:00
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#include <svx/strarray.hxx>
|
|
|
|
#include <sfx2/basedlgs.hxx>
|
|
|
|
#include <svx/checklbx.hxx>
|
|
|
|
#include <swlbox.hxx>
|
|
|
|
#include <caption.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
class SwFldMgr;
|
|
|
|
class SvLBoxEntry;
|
2000-09-18 16:15:01 +00:00
|
|
|
class SwWrtShell;
|
|
|
|
|
|
|
|
/*-----------------31.08.96 10.09-------------------
|
|
|
|
|
|
|
|
--------------------------------------------------*/
|
|
|
|
|
|
|
|
class SwLoadOptPage : public SfxTabPage
|
|
|
|
{
|
|
|
|
private:
|
2001-06-01 09:20:44 +00:00
|
|
|
FixedLine aUpdateFL;
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aLinkFT;
|
2000-09-18 16:15:01 +00:00
|
|
|
RadioButton aAlwaysRB;
|
|
|
|
RadioButton aRequestRB;
|
|
|
|
RadioButton aNeverRB;
|
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aFieldFT;
|
2000-09-18 16:15:01 +00:00
|
|
|
CheckBox aAutoUpdateFields;
|
|
|
|
CheckBox aAutoUpdateCharts;
|
|
|
|
|
2001-06-01 09:20:44 +00:00
|
|
|
FixedLine aSettingsFL;
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aMetricFT;
|
|
|
|
ListBox aMetricLB;
|
|
|
|
FixedText aTabFT;
|
|
|
|
MetricField aTabMF;
|
2008-03-07 15:33:19 +00:00
|
|
|
CheckBox aUseSquaredPageMode;
|
2001-03-22 08:40:18 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
SwWrtShell* pWrtShell;
|
2001-03-22 08:40:18 +00:00
|
|
|
sal_Bool bHTMLMode;
|
|
|
|
UINT16 nLastTab;
|
|
|
|
sal_Int32 nOldLinkMode;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
DECL_LINK(CaptionHdl, PushButton*);
|
|
|
|
DECL_LINK(MetricHdl, ListBox*);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
public:
|
2004-09-20 11:39:39 +00:00
|
|
|
SwLoadOptPage( Window* pParent, const SfxItemSet& rSet );
|
|
|
|
~SwLoadOptPage();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
static SfxTabPage* Create( Window* pParent,
|
|
|
|
const SfxItemSet& rAttrSet);
|
|
|
|
|
|
|
|
virtual BOOL FillItemSet( SfxItemSet& rSet );
|
|
|
|
virtual void Reset( const SfxItemSet& rSet );
|
|
|
|
};
|
2004-09-20 11:39:39 +00:00
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
Beschreibung:
|
|
|
|
--------------------------------------------------------------------*/
|
|
|
|
class SwCaptionOptDlg : public SfxSingleTabDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
|
|
|
|
~SwCaptionOptDlg();
|
|
|
|
};
|
|
|
|
/* -----------------23.10.98 13:19-------------------
|
|
|
|
*
|
|
|
|
* --------------------------------------------------*/
|
|
|
|
|
|
|
|
class CaptionComboBox : public SwComboBox
|
|
|
|
{
|
|
|
|
protected:
|
|
|
|
virtual void KeyInput( const KeyEvent& );
|
|
|
|
|
|
|
|
public:
|
|
|
|
CaptionComboBox( Window* pParent, const ResId& rResId)
|
|
|
|
: SwComboBox(pParent, rResId)
|
|
|
|
{}
|
|
|
|
};
|
|
|
|
|
|
|
|
/*-----------------31.08.96 10.09-------------------
|
|
|
|
|
|
|
|
--------------------------------------------------*/
|
2004-09-20 11:39:39 +00:00
|
|
|
|
|
|
|
class SwCaptionPreview : public Window
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
String maText;
|
|
|
|
Point maDrawPos;
|
|
|
|
public:
|
|
|
|
SwCaptionPreview( Window* pParent, const ResId& rResId );
|
|
|
|
void SetPreviewText( const String& rText );
|
|
|
|
virtual void Paint( const Rectangle& rRect );
|
|
|
|
};
|
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
class SwCaptionOptPage : public SfxTabPage
|
|
|
|
{
|
|
|
|
private:
|
2004-09-20 11:39:39 +00:00
|
|
|
FixedText aCheckFT;
|
2001-03-22 08:40:18 +00:00
|
|
|
SvxCheckListBox aCheckLB;
|
|
|
|
|
2007-11-21 17:23:55 +00:00
|
|
|
FixedText aFtCaptionOrder;
|
|
|
|
ListBox aLbCaptionOrder;
|
|
|
|
|
|
|
|
SwCaptionPreview aPreview;
|
|
|
|
|
2004-09-20 11:39:39 +00:00
|
|
|
FixedLine aSettingsGroupFL;
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aCategoryText;
|
|
|
|
CaptionComboBox aCategoryBox;
|
|
|
|
FixedText aFormatText;
|
|
|
|
ListBox aFormatBox;
|
2007-11-21 17:23:55 +00:00
|
|
|
//#i61007# order of captions
|
|
|
|
FixedText aNumberingSeparatorFT;
|
|
|
|
Edit aNumberingSeparatorED;
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aTextText;
|
|
|
|
Edit aTextEdit;
|
|
|
|
FixedText aPosText;
|
|
|
|
ListBox aPosBox;
|
2004-09-20 11:39:39 +00:00
|
|
|
|
|
|
|
FixedLine aNumCaptFL;
|
2001-03-22 08:40:18 +00:00
|
|
|
FixedText aFtLevel;
|
|
|
|
ListBox aLbLevel;
|
|
|
|
FixedText aFtDelim;
|
|
|
|
Edit aEdDelim;
|
2004-09-20 11:39:39 +00:00
|
|
|
|
|
|
|
FixedLine aCategoryFL;
|
|
|
|
FixedText aCharStyleFT;
|
|
|
|
ListBox aCharStyleLB;
|
|
|
|
CheckBox aApplyBorderCB;
|
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
String sSWTable;
|
|
|
|
String sSWFrame;
|
|
|
|
String sSWGraphic;
|
|
|
|
String sOLE;
|
|
|
|
|
|
|
|
String sIllustration;
|
|
|
|
String sTable;
|
|
|
|
String sText;
|
2001-07-10 05:28:09 +00:00
|
|
|
String sDrawing;
|
2001-03-22 08:40:18 +00:00
|
|
|
|
|
|
|
String sBegin;
|
|
|
|
String sEnd;
|
|
|
|
String sAbove;
|
|
|
|
String sBelow;
|
|
|
|
|
2004-09-20 11:39:39 +00:00
|
|
|
String sNone;
|
|
|
|
|
2001-03-22 08:40:18 +00:00
|
|
|
SwFldMgr *pMgr;
|
|
|
|
USHORT eType;
|
|
|
|
BOOL bHTMLMode;
|
|
|
|
|
|
|
|
DECL_LINK( SelectHdl, ListBox *pLB = 0 );
|
|
|
|
DECL_LINK( ModifyHdl, Edit *pEdt = 0 );
|
2007-11-21 17:23:55 +00:00
|
|
|
DECL_LINK( OrderHdl, ListBox* );
|
2001-03-22 08:40:18 +00:00
|
|
|
DECL_LINK( ShowEntryHdl, SvxCheckListBox *pLB = 0 );
|
|
|
|
DECL_LINK( SaveEntryHdl, SvxCheckListBox *pLB = 0 );
|
|
|
|
|
|
|
|
void DelUserData();
|
|
|
|
void SetOptions( const USHORT nPos,
|
|
|
|
const SwCapObjType eType,
|
|
|
|
const SvGlobalName *pOleId = 0);
|
|
|
|
void SaveEntry( SvLBoxEntry* pEntry );
|
|
|
|
void DrawSample();
|
|
|
|
|
|
|
|
public:
|
|
|
|
SwCaptionOptPage( Window* pParent,
|
|
|
|
const SfxItemSet& rSet );
|
|
|
|
~SwCaptionOptPage();
|
|
|
|
|
|
|
|
static SfxTabPage* Create( Window* pParent,
|
|
|
|
const SfxItemSet& rAttrSet);
|
|
|
|
|
|
|
|
virtual BOOL FillItemSet( SfxItemSet& rSet );
|
|
|
|
virtual void Reset( const SfxItemSet& rSet );
|
|
|
|
};
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|