2000-09-18 16:15:01 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:45:07 +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:45:07 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:45:07 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 16:15:01 +00:00
|
|
|
*
|
2008-04-10 19:45:07 +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:45:07 +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:45:07 +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 _WRAP_HXX
|
|
|
|
#define _WRAP_HXX
|
|
|
|
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
|
|
|
#include <sfx2/basedlgs.hxx>
|
|
|
|
|
|
|
|
#ifndef _IMAGEBTN_HXX //autogen
|
2010-04-19 18:27:03 +02:00
|
|
|
#include <vcl/button.hxx>
|
2000-09-18 16:15:01 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _BUTTON_HXX //autogen
|
|
|
|
#include <vcl/button.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _FIXED_HXX //autogen
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _FIELD_HXX //autogen
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class Window;
|
|
|
|
class SfxItemSet;
|
|
|
|
class SwWrtShell;
|
|
|
|
|
|
|
|
class SwWrapDlg : public SfxSingleTabDialog
|
|
|
|
{
|
|
|
|
SwWrtShell* pWrtShell;
|
|
|
|
|
|
|
|
public:
|
|
|
|
SwWrapDlg(Window* pParent, SfxItemSet& rSet, SwWrtShell* pSh, BOOL bDrawMode);
|
|
|
|
~SwWrapDlg();
|
|
|
|
|
|
|
|
inline SwWrtShell* GetWrtShell() { return pWrtShell; }
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
Beschreibung: Umlauf-TabPage
|
|
|
|
--------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
class SwWrapTabPage: public SfxTabPage
|
|
|
|
{
|
|
|
|
// WRAPPING
|
2001-06-22 06:38:05 +00:00
|
|
|
FixedLine aWrapFLC;
|
2000-09-18 16:15:01 +00:00
|
|
|
ImageRadioButton aNoWrapRB;
|
|
|
|
ImageRadioButton aWrapLeftRB;
|
|
|
|
ImageRadioButton aWrapRightRB;
|
|
|
|
ImageRadioButton aWrapParallelRB;
|
|
|
|
ImageRadioButton aWrapThroughRB;
|
|
|
|
ImageRadioButton aIdealWrapRB;
|
|
|
|
|
|
|
|
// MARGIN
|
2001-06-22 06:38:05 +00:00
|
|
|
FixedLine aMarginFL;
|
2000-09-18 16:15:01 +00:00
|
|
|
FixedText aLeftMarginFT;
|
|
|
|
MetricField aLeftMarginED;
|
|
|
|
FixedText aRightMarginFT;
|
|
|
|
MetricField aRightMarginED;
|
|
|
|
FixedText aTopMarginFT;
|
|
|
|
MetricField aTopMarginED;
|
|
|
|
FixedText aBottomMarginFT;
|
|
|
|
MetricField aBottomMarginED;
|
2001-06-22 06:38:05 +00:00
|
|
|
|
|
|
|
// OPTIONS
|
|
|
|
FixedLine aOptionsSepFL;
|
|
|
|
FixedLine aOptionsFL;
|
|
|
|
CheckBox aWrapAnchorOnlyCB;
|
|
|
|
CheckBox aWrapTransparentCB;
|
|
|
|
CheckBox aWrapOutlineCB;
|
|
|
|
CheckBox aWrapOutsideCB;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
ImageList aWrapIL;
|
2002-05-08 11:47:48 +00:00
|
|
|
ImageList aWrapILH;
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
USHORT nOldLeftMargin;
|
|
|
|
USHORT nOldRightMargin;
|
|
|
|
USHORT nOldUpperMargin;
|
|
|
|
USHORT nOldLowerMargin;
|
|
|
|
|
2007-09-27 11:15:44 +00:00
|
|
|
RndStdIds nAnchorId;
|
2000-09-18 16:15:01 +00:00
|
|
|
USHORT nHtmlMode;
|
|
|
|
|
|
|
|
Size aFrmSize;
|
|
|
|
SwWrtShell* pWrtSh;
|
|
|
|
|
|
|
|
BOOL bFormat;
|
|
|
|
BOOL bNew;
|
|
|
|
BOOL bHtmlMode;
|
|
|
|
BOOL bDrawMode;
|
|
|
|
BOOL bContourImage;
|
|
|
|
|
|
|
|
SwWrapTabPage(Window *pParent, const SfxItemSet &rSet);
|
|
|
|
~SwWrapTabPage();
|
|
|
|
|
2002-05-08 11:47:48 +00:00
|
|
|
void ApplyImageList();
|
2000-09-18 16:15:01 +00:00
|
|
|
void EnableModes(const SfxItemSet& rSet);
|
|
|
|
virtual void ActivatePage(const SfxItemSet& rSet);
|
|
|
|
virtual int DeactivatePage(SfxItemSet *pSet);
|
2002-05-08 11:47:48 +00:00
|
|
|
virtual void DataChanged( const DataChangedEvent& rDCEvt );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
|
|
|
DECL_LINK( RangeModifyHdl, MetricField * );
|
|
|
|
DECL_LINK( WrapTypeHdl, ImageRadioButton * );
|
|
|
|
DECL_LINK( ContourHdl, CheckBox * );
|
|
|
|
|
2008-05-06 14:25:33 +00:00
|
|
|
using SfxTabPage::ActivatePage;
|
|
|
|
using SfxTabPage::DeactivatePage;
|
2007-09-27 11:15:44 +00:00
|
|
|
|
2007-10-22 14:25:25 +00:00
|
|
|
public:
|
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
static SfxTabPage *Create(Window *pParent, const SfxItemSet &rSet);
|
|
|
|
|
|
|
|
virtual BOOL FillItemSet(SfxItemSet &rSet);
|
|
|
|
virtual void Reset(const SfxItemSet &rSet);
|
|
|
|
|
|
|
|
static USHORT* GetRanges();
|
|
|
|
inline void SetNewFrame(BOOL bNewFrame) { bNew = bNewFrame; }
|
|
|
|
inline void SetFormatUsed(BOOL bFmt, BOOL bDrw) { bFormat = bFmt;
|
|
|
|
bDrawMode = bDrw; }
|
|
|
|
inline void SetShell(SwWrtShell* pSh) { pWrtSh = pSh; }
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|