Kaydet (Commit) 53d0f3aa authored tarafından Hans-Joachim Lankenau's avatar Hans-Joachim Lankenau

INTEGRATION: CWS swdrawpositioning (1.9.646); FILE MERGED

2004/03/15 07:11:37 os 1.9.646.1: #i26173# draw positioning TabPage for sw created
üst 04f9886b
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: labdlg.cxx,v $ * $RCSfile: labdlg.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: iha $ $Date: 2002-09-25 16:25:52 $ * last change: $Author: hjs $ $Date: 2004-06-28 14:04:06 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -72,6 +72,10 @@ ...@@ -72,6 +72,10 @@
#endif #endif
#pragma hdrstop #pragma hdrstop
#ifndef _SVX_SWPOSSIZETABPAGE_HXX
#include <swpossizetabpage.hxx>
#endif
#define _SVX_LABDLG_CXX #define _SVX_LABDLG_CXX
#include "svdattrx.hxx" #include "svdattrx.hxx"
...@@ -624,8 +628,19 @@ SvxCaptionTabDialog::SvxCaptionTabDialog(Window* pParent, const SdrView* pSdrVie ...@@ -624,8 +628,19 @@ SvxCaptionTabDialog::SvxCaptionTabDialog(Window* pParent, const SdrView* pSdrVie
DBG_ASSERT( pView, "Keine gueltige View Uebergeben!" ); DBG_ASSERT( pView, "Keine gueltige View Uebergeben!" );
AddTabPage( RID_SVXPAGE_POSITION_SIZE, SvxPositionSizeTabPage::Create, //different positioning page in Writer
SvxPositionSizeTabPage::GetRanges ); if(nAnchorCtrls & 0x00ff )
{
AddTabPage( RID_SVXPAGE_SWPOSSIZE, SvxSwPosSizeTabPage::Create,
SvxSwPosSizeTabPage::GetRanges );
RemoveTabPage( RID_SVXPAGE_POSITION_SIZE);
}
else
{
AddTabPage( RID_SVXPAGE_POSITION_SIZE, SvxPositionSizeTabPage::Create,
SvxPositionSizeTabPage::GetRanges );
RemoveTabPage( RID_SVXPAGE_SWPOSSIZE );
}
AddTabPage( RID_SVXPAGE_CAPTION, SvxCaptionTabPage::Create, AddTabPage( RID_SVXPAGE_CAPTION, SvxCaptionTabPage::Create,
SvxCaptionTabPage::GetRanges ); SvxCaptionTabPage::GetRanges );
} }
...@@ -650,9 +665,13 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage ) ...@@ -650,9 +665,13 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
if( nAnchorCtrls & SVX_OBJ_NOPROTECT ) if( nAnchorCtrls & SVX_OBJ_NOPROTECT )
( (SvxPositionSizeTabPage&) rPage ).DisableProtect(); ( (SvxPositionSizeTabPage&) rPage ).DisableProtect();
break;
if(nAnchorCtrls & 0x00ff ) case RID_SVXPAGE_SWPOSSIZE :
( (SvxPositionSizeTabPage&) rPage ).ShowAnchorCtrls(nAnchorCtrls); {
SvxSwPosSizeTabPage& rSwPage = static_cast<SvxSwPosSizeTabPage&>(rPage);
rSwPage.EnableAnchorTypes(nAnchorCtrls);
rSwPage.SetValidateFramePosLink( aValidateLink );
}
break; break;
case RID_SVXPAGE_CAPTION: case RID_SVXPAGE_CAPTION:
...@@ -661,5 +680,12 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage ) ...@@ -661,5 +680,12 @@ void SvxCaptionTabDialog::PageCreated( USHORT nId, SfxTabPage &rPage )
break; break;
} }
} }
/*-- 05.03.2004 13:54:26---------------------------------------------------
-----------------------------------------------------------------------*/
void SvxCaptionTabDialog::SetValidateFramePosLink( const Link& rLink )
{
aValidateLink = rLink;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment