2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2011-03-31 10:05:04 +02:00
|
|
|
* 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/.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2011-03-31 10:05:04 +02:00
|
|
|
* This file incorporates work covered by the following license notice:
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2011-03-31 10:05:04 +02:00
|
|
|
* 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 _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 ******************************************************
|
|
|
|
|
2013-01-24 13:18:00 +00:00
|
|
|
class SwDropCapsDlg : public SfxNoLayoutSingleTabDialog
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
SwDropCapsDlg(Window *pParent, const SfxItemSet &rSet );
|
|
|
|
~SwDropCapsDlg();
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class SwDropCapsPict;
|
|
|
|
|
|
|
|
// class SwDropCapsPage *****************************************************
|
|
|
|
|
|
|
|
class SwDropCapsPage : public SfxTabPage
|
|
|
|
{
|
|
|
|
friend class SwDropCapsPict;
|
2013-06-12 15:47:38 -03:00
|
|
|
CheckBox* m_pDropCapsBox;
|
|
|
|
CheckBox* m_pWholeWordCB;
|
2013-06-30 18:25:36 -03:00
|
|
|
FixedText* m_pSwitchText;
|
2013-06-12 15:47:38 -03:00
|
|
|
NumericField* m_pDropCapsField;
|
2013-06-30 18:25:36 -03:00
|
|
|
FixedText* m_pLinesText;
|
2013-06-12 15:47:38 -03:00
|
|
|
NumericField* m_pLinesField;
|
2013-06-30 18:25:36 -03:00
|
|
|
FixedText* m_pDistanceText;
|
2013-06-12 15:47:38 -03:00
|
|
|
MetricField* m_pDistanceField;
|
|
|
|
FixedText* m_pTextText;
|
|
|
|
Edit* m_pTextEdit;
|
2013-06-30 18:25:36 -03:00
|
|
|
FixedText* m_pTemplateText;
|
2013-06-12 15:47:38 -03:00
|
|
|
ListBox* m_pTemplateBox;
|
|
|
|
|
|
|
|
SwDropCapsPict* m_pPict;
|
|
|
|
|
|
|
|
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;}
|
2013-06-12 15:47:38 -03:00
|
|
|
protected:
|
|
|
|
void aSwitchText(sal_Bool bChecked);
|
|
|
|
//void SW_RES(int arg1);
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2010-10-14 08:30:41 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|