2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
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;
|
|
|
|
|
2011-01-21 15:13:49 +01:00
|
|
|
FixedLine aSettingsFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
CheckBox aDropCapsBox;
|
|
|
|
CheckBox aWholeWordCB;
|
|
|
|
FixedText aSwitchText;
|
|
|
|
NumericField aDropCapsField;
|
|
|
|
FixedText aLinesText;
|
|
|
|
NumericField aLinesField;
|
|
|
|
FixedText aDistanceText;
|
|
|
|
MetricField aDistanceField;
|
|
|
|
|
2011-01-21 15:13:49 +01:00
|
|
|
FixedLine aContentFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
FixedText aTextText;
|
|
|
|
Edit aTextEdit;
|
|
|
|
FixedText aTemplateText;
|
|
|
|
ListBox aTemplateBox;
|
|
|
|
|
|
|
|
SwDropCapsPict *pPict;
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
sal_Bool bModified;
|
|
|
|
sal_Bool bFormat;
|
|
|
|
sal_Bool bHtmlMode;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
SwWrtShell &rSh;
|
|
|
|
|
|
|
|
SwDropCapsPage(Window *pParent, const SfxItemSet &rSet);
|
|
|
|
~SwDropCapsPage();
|
|
|
|
|
|
|
|
virtual int DeactivatePage(SfxItemSet *pSet);
|
|
|
|
void FillSet( SfxItemSet &rSet );
|
|
|
|
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(ClickHdl, void *);
|
2000-09-18 16:15:01 +00:00
|
|
|
DECL_LINK( ModifyHdl, Edit * );
|
2012-03-01 18:00:32 +01:00
|
|
|
DECL_LINK(SelectHdl, void *);
|
|
|
|
DECL_LINK(WholeWordHdl, void *);
|
2000-09-18 16:15:01 +00:00
|
|
|
|
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);
|
2011-01-17 15:06:54 +01:00
|
|
|
static sal_uInt16* GetRanges();
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
virtual sal_Bool FillItemSet( SfxItemSet &rSet);
|
2000-09-18 16:15:01 +00:00
|
|
|
virtual void Reset (const SfxItemSet &rSet);
|
|
|
|
|
2011-01-17 15:06:54 +01:00
|
|
|
void SetFormat(sal_Bool bSet){bFormat = bSet;}
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|