Files
libreoffice/sw/source/ui/inc/optload.hxx

194 lines
5.2 KiB
C++
Raw Normal View History

/* -*- 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/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
2000-09-18 16:15:01 +00:00
#ifndef _OPTLOAD_HXX
#define _OPTLOAD_HXX
#include <sfx2/tabdlg.hxx>
#include <vcl/group.hxx>
#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 SvTreeListEntry;
2000-09-18 16:15:01 +00:00
class SwWrtShell;
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;
CheckBox aUseSquaredPageMode;
CheckBox aUseCharUnit;
FixedLine aWordCountFL;
FixedText aWordCountFT;
Edit aWordCountED;
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;
sal_uInt16 nLastTab;
2001-03-22 08:40:18 +00:00
sal_Int32 nOldLinkMode;
2000-09-18 16:15:01 +00:00
DECL_LINK(MetricHdl, void *);
2000-09-18 16:15:01 +00:00
public:
SwLoadOptPage( Window* pParent, const SfxItemSet& rSet );
~SwLoadOptPage();
2000-09-18 16:15:01 +00:00
static SfxTabPage* Create( Window* pParent,
const SfxItemSet& rAttrSet);
virtual sal_Bool FillItemSet( SfxItemSet& rSet );
2000-09-18 16:15:01 +00:00
virtual void Reset( const SfxItemSet& rSet );
};
class SwCaptionOptDlg : public SfxNoLayoutSingleTabDialog
2001-03-22 08:40:18 +00:00
{
public:
SwCaptionOptDlg(Window* pParent, const SfxItemSet& rSet);
~SwCaptionOptDlg();
};
class CaptionComboBox : public SwComboBox
{
protected:
virtual void KeyInput( const KeyEvent& );
public:
CaptionComboBox( Window* pParent, const ResId& rResId)
: SwComboBox(pParent, rResId)
{}
};
class SwCaptionPreview : public Window
{
private:
String maText;
Point maDrawPos;
public:
SwCaptionPreview( Window* pParent );
SwCaptionPreview( Window* pParent, const ResId& rResId );
void Init();
void SetPreviewText( const String& rText );
virtual void Paint( const Rectangle& rRect );
};
2001-03-22 08:40:18 +00:00
class SwCaptionOptPage : public SfxTabPage
{
private:
FixedText aCheckFT;
2001-03-22 08:40:18 +00:00
SvxCheckListBox aCheckLB;
FixedText aFtCaptionOrder;
ListBox aLbCaptionOrder;
SwCaptionPreview aPreview;
FixedLine aSettingsGroupFL;
2001-03-22 08:40:18 +00:00
FixedText aCategoryText;
CaptionComboBox aCategoryBox;
FixedText aFormatText;
ListBox aFormatBox;
//#i61007# order of captions
FixedText aNumberingSeparatorFT;
Edit aNumberingSeparatorED;
2001-03-22 08:40:18 +00:00
FixedText aTextText;
Edit aTextEdit;
FixedText aPosText;
ListBox aPosBox;
FixedLine aNumCaptFL;
2001-03-22 08:40:18 +00:00
FixedText aFtLevel;
ListBox aLbLevel;
FixedText aFtDelim;
Edit aEdDelim;
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;
String sDrawing;
2001-03-22 08:40:18 +00:00
String sBegin;
String sEnd;
String sAbove;
String sBelow;
String sNone;
2001-03-22 08:40:18 +00:00
SwFldMgr *pMgr;
sal_Bool bHTMLMode;
2001-03-22 08:40:18 +00:00
DECL_LINK(SelectHdl, void *);
DECL_LINK(ModifyHdl, void * = 0);
DECL_LINK( OrderHdl, ListBox* );
DECL_LINK(ShowEntryHdl, void *);
DECL_LINK(SaveEntryHdl, void *);
2001-03-22 08:40:18 +00:00
void DelUserData();
void SetOptions( const sal_uInt16 nPos,
2001-03-22 08:40:18 +00:00
const SwCapObjType eType,
const SvGlobalName *pOleId = 0);
void SaveEntry( SvTreeListEntry* pEntry );
2001-03-22 08:40:18 +00:00
void DrawSample();
public:
SwCaptionOptPage( Window* pParent,
const SfxItemSet& rSet );
~SwCaptionOptPage();
static SfxTabPage* Create( Window* pParent,
const SfxItemSet& rAttrSet);
virtual sal_Bool FillItemSet( SfxItemSet& rSet );
2001-03-22 08:40:18 +00:00
virtual void Reset( const SfxItemSet& rSet );
};
2000-09-18 16:15:01 +00:00
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */