2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 18:57:28 +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 18:57:28 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:57:28 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 18:57:28 +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 18:57:28 +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 18:57:28 +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 _DRPCPS_HXX
|
|
|
|
#define _DRPCPS_HXX
|
|
|
|
|
|
|
|
#include <sfx2/basedlgs.hxx>
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
|
|
|
|
#include <vcl/edit.hxx>
|
|
|
|
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
|
|
|
|
class SwWrtShell;
|
|
|
|
|
|
|
|
// class SwDropCapsDlg ******************************************************
|
|
|
|
|
|
|
|
class SwDropCapsDlg : public SfxSingleTabDialog
|
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
|
|
|
|
~SwDropCapsDlg();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwDropCapsPict;
|
|
|
|
|
|
|
|
// class SwDropCapsPage *****************************************************
|
|
|
|
|
|
|
|
class SwDropCapsPage : public SfxTabPage
|
|
|
|
{
|
|
|
|
friend class SwDropCapsPict;
|
|
|
|
|
|
|
|
CheckBox aDropCapsBox;
|
|
|
|
CheckBox aWholeWordCB;
|
|
|
|
FixedText aSwitchText;
|
|
|
|
NumericField aDropCapsField;
|
|
|
|
FixedText aLinesText;
|
|
|
|
NumericField aLinesField;
|
|
|
|
FixedText aDistanceText;
|
|
|
|
MetricField aDistanceField;
|
2001-05-30 15:32:13 +00:00
|
|
|
FixedLine aSettingsFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
FixedText aTextText;
|
|
|
|
Edit aTextEdit;
|
|
|
|
FixedText aTemplateText;
|
|
|
|
ListBox aTemplateBox;
|
2001-05-30 15:32:13 +00:00
|
|
|
FixedLine aContentFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
SwDropCapsPict *pPict;
|
|
|
|
|
|
|
|
BOOL bModified;
|
|
|
|
BOOL bFormat;
|
|
|
|
BOOL bHtmlMode;
|
|
|
|
|
|
|
|
SwWrtShell &rSh;
|
|
|
|
|
|
|
|
SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
|
|
|
|
~SwDropCapsPage();
|
|
|
|
|
|
|
|
virtual int DeactivatePage(SfxItemSet *pSet);
|
|
|
|
void FillSet( SfxItemSet &rSet );
|
|
|
|
|
|
|
|
DECL_LINK( ClickHdl, Button * );
|
|
|
|
DECL_LINK( ModifyHdl, Edit * );
|
|
|
|
DECL_LINK( SelectHdl, ListBox * );
|
|
|
|
DECL_LINK( WholeWordHdl, CheckBox * );
|
|
|
|
|
2008-05-06 14:23:01 +00:00
|
|
|
using SfxTabPage::ActivatePage;
|
|
|
|
using SfxTabPage::DeactivatePage;
|
2007-09-27 10:58:25 +00:00
|
|
|
|
2007-10-22 14:18:11 +00:00
|
|
|
public:
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
|
|
|
|
static USHORT* GetRanges();
|
|
|
|
|
|
|
|
virtual BOOL FillItemSet( SfxItemSet &rSet);
|
|
|
|
virtual void Reset (const SfxItemSet &rSet);
|
|
|
|
|
|
|
|
void SetFormat(BOOL bSet){bFormat = bSet;}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|