new configuration management

This commit is contained in:
Kai Ahrens
2000-09-28 17:05:36 +00:00
parent d0dfcf3398
commit abbee0cf48
12 changed files with 1779 additions and 1132 deletions
+7 -3
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: sdmod.hxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:28 $
* last change: $Author: ka $ $Date: 2000-09-28 17:54:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -77,6 +77,9 @@
#ifndef _SVSTOR_HXX
#include <so3/svstor.hxx>
#endif
#ifndef _SFXLSTNER_HXX
#include <svtools/lstner.hxx>
#endif
class SdOptions;
class BasicIDE;
@@ -109,7 +112,7 @@ enum SdOptionStreamMode
|*
\************************************************************************/
class SdModule : public SdModuleDummy
class SdModule : public SdModuleDummy, public SfxListener
{
protected:
SdOptions* pImpressOptions;
@@ -121,6 +124,7 @@ protected:
BOOL bWaterCan;
virtual BOOL QueryUnload();
virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
public:
TYPEINFO();
+2 -4
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: drawdoc.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: cl $ $Date: 2000-09-27 09:06:50 $
* last change: $Author: ka $ $Date: 2000-09-28 17:55:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -172,13 +172,11 @@
#include "../ui/inc/grdocsh.hxx"
#endif //!SVX_LIGHT
#include "../ui/inc/frmview.hxx"
#include "../ui/inc/optsite2.hxx"
#else
#ifndef SVX_LIGHT
#include "docshell.hxx"
#include "grdocsh.hxx"
#include "sdresid.hxx"
#include "optsite2.hxx"
#include "optsitem.hxx"
#include "dragserv.hxx"
#include "viewshel.hxx"
File diff suppressed because it is too large Load Diff
+2 -4
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: sddll1.cxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:30 $
* last change: $Author: ka $ $Date: 2000-09-28 17:59:14 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -59,8 +59,6 @@
*
************************************************************************/
#define _SD_OPTIONS_ITEM
#pragma hdrstop
#include "sddll.hxx"
+19 -16
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: sdmod.cxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:31 $
* last change: $Author: ka $ $Date: 2000-09-28 17:59:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -142,6 +142,7 @@ SdModule::SdModule(SvFactory* pDrawObjFact, SvFactory* pGraphicObjFact)
SetName( UniString::CreateFromAscii( RTL_CONSTASCII_STRINGPARAM( "StarDraw" ) ) ); // Nicht uebersetzen!
pSearchItem = new SvxSearchItem(ITEMID_SEARCH);
pSearchItem->SetAppFlag(SVX_SEARCHAPP_DRAW);
StartListening( *SFX_APP() );
}
@@ -154,8 +155,6 @@ SdModule::SdModule(SvFactory* pDrawObjFact, SvFactory* pGraphicObjFact)
SdModule::~SdModule()
{
delete pImpressOptions;
delete pDrawOptions;
delete pSearchItem;
}
@@ -260,8 +259,6 @@ SfxModule* SdModuleDummy::Load()
return (NULL);
}
/*************************************************************************
|*
|* Modul laden
@@ -273,7 +270,21 @@ SfxModule* SdModule::Load()
return (this);
}
/*************************************************************************
|*
|* get notifications
|*
\************************************************************************/
void SdModule::Notify( SfxBroadcaster& rBC, const SfxHint& rHint )
{
if( rHint.ISA( SfxSimpleHint ) &&
( (SfxSimpleHint&) rHint ).GetId() == SFX_HINT_DEINITIALIZING )
{
delete pImpressOptions, pImpressOptions = NULL;
delete pDrawOptions, pDrawOptions = NULL;
}
}
/*************************************************************************
|*
@@ -298,22 +309,14 @@ SdOptions* SdModule::GetSdOptions(DocumentType eDocType)
if (eDocType == DOCUMENT_TYPE_DRAW)
{
if (!pDrawOptions)
{
pDrawOptions = new SdOptions(SDCFG_DRAW);
pDrawOptions->SetDefault(FALSE);
pDrawOptions->Initialize();
}
pDrawOptions = new SdOptions( SDCFG_DRAW );
pOptions = pDrawOptions;
}
else if (eDocType == DOCUMENT_TYPE_IMPRESS)
{
if (!pImpressOptions)
{
pImpressOptions = new SdOptions(SDCFG_IMPRESS);
pImpressOptions->SetDefault(FALSE);
pImpressOptions->Initialize();
}
pImpressOptions = new SdOptions( SDCFG_IMPRESS );
pOptions = pImpressOptions;
}
+2 -4
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: sdmod2.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: ka $ $Date: 2000-09-21 16:11:27 $
* last change: $Author: ka $ $Date: 2000-09-28 17:59:52 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -707,9 +707,7 @@ void SdModule::ApplyItemSet( USHORT nSlot, const SfxItemSet& rSet )
}
}
pOptions->SetDefault( FALSE );
pOptions->StoreConfig();
// Speichert die Konfiguration SOFORT
SFX_APP()->SaveConfiguration();
// Nur, wenn auch der Dokumenttyp uebereinstimmt...
+4 -17
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: tpoption.cxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:34 $
* last change: $Author: ka $ $Date: 2000-09-28 18:01:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -161,7 +161,7 @@ BOOL SdTpOptionsSnap::FillItemSet( SfxItemSet& rAttrs )
if( pAttr )
{
SvxGridItem* pGridAttr = (SvxGridItem*) pAttr;
SdOptionsGridItem* pGridAttr = (SdOptionsGridItem*) pAttr;
if(pGridAttr->GetUseGridSnap() != aCbxSnapGrid.IsChecked())
{
pGridAttr->SetUseGridSnap( aCbxSnapGrid.IsChecked() );
@@ -227,7 +227,7 @@ void SdTpOptionsSnap::ActivatePage( const SfxItemSet& rSet )
if(pAttr)
{
SvxGridItem* pGridAttr = (SvxGridItem*) pAttr;
SdOptionsGridItem* pGridAttr = (SdOptionsGridItem*) pAttr;
aCbxSnapGrid.Check( pGridAttr->GetUseGridSnap() );
}
}
@@ -530,7 +530,6 @@ SdTpOptionsMisc::SdTpOptionsMisc( Window* pParent, const SfxItemSet& rInAttrs )
// Template & Layout laufen z.Z. synchron!
aCbxStartWithTemplate ( this, SdResId( CBX_START_WITH_TEMPLATE ) ),
// aCbxStartWithLayout ( this, SdResId( CBX_START_WITH_LAYOUT ) ),
aGrpProgramStart ( this, SdResId( GRP_PROGRAMSTART ) ),
aCbxMasterPageCache ( this, SdResId( CBX_MASTERPAGE_CACHE ) ),
@@ -574,18 +573,13 @@ BOOL SdTpOptionsMisc::FillItemSet( SfxItemSet& rAttrs )
{
SdOptionsMiscItem aOptsItem( ATTR_OPTIONS_MISC );
// Layout & Template laufen z.Z. synchron!
aOptsItem.SetStartWithTemplate( aCbxStartWithTemplate.IsChecked() );
// aOptsItem.SetStartWithLayout( aCbxStartWithLayout.IsChecked() );
aOptsItem.SetMarkedHitMovesAlways( aCbxMarkedHitMovesAlways.IsChecked() );
aOptsItem.SetCrookNoContortion( aCbxCrookNoContortion.IsChecked() );
aOptsItem.SetQuickEdit( aCbxQuickEdit.IsChecked() );
aOptsItem.SetPickThrough( aCbxPickThrough.IsChecked() );
aOptsItem.SetMasterPagePaintCaching( aCbxMasterPageCache.IsChecked() );
aOptsItem.SetDragWithCopy( aCbxCopy.IsChecked() );
/// NEU
aOptsItem.SetStartWithActualPage( aCbxStartWithActualPage.IsChecked() );
rAttrs.Put( aOptsItem );
@@ -602,28 +596,21 @@ void SdTpOptionsMisc::Reset( const SfxItemSet& rAttrs )
SdOptionsMiscItem aOptsItem( (const SdOptionsMiscItem&) rAttrs.
Get( ATTR_OPTIONS_MISC ) );
// Template & Layout laufen z.Z. synchron!
aCbxStartWithTemplate.Check( aOptsItem.IsStartWithTemplate() );
// aCbxStartWithLayout.Check( aOptsItem.IsStartWithLayout() );
aCbxMarkedHitMovesAlways.Check( aOptsItem.IsMarkedHitMovesAlways() );
aCbxCrookNoContortion.Check( aOptsItem.IsCrookNoContortion() );
aCbxQuickEdit.Check( aOptsItem.IsQuickEdit() );
aCbxPickThrough.Check( aOptsItem.IsPickThrough() );
aCbxMasterPageCache.Check( aOptsItem.IsMasterPagePaintCaching() );
aCbxCopy.Check( aOptsItem.IsDragWithCopy() );
/// NEU
aCbxStartWithActualPage.Check( aOptsItem.IsStartWithActualPage() );
aCbxStartWithTemplate.SaveValue();
// aCbxStartWithLayout.SaveValue();
aCbxMarkedHitMovesAlways.SaveValue();
aCbxCrookNoContortion.SaveValue();
aCbxQuickEdit.SaveValue();
aCbxPickThrough.SaveValue();
aCbxMasterPageCache.SaveValue();
aCbxCopy.SaveValue();
/// NEU
aCbxStartWithActualPage.SaveValue();
}
+507 -205
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: optsitem.hxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:40 $
* last change: $Author: ka $ $Date: 2000-09-28 18:03:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -62,297 +62,599 @@
#ifndef _SD_OPTSITEM_HXX
#define _SD_OPTSITEM_HXX
#ifndef _UTL_CONFIGITEM_HXX_ //autogen
#include <unotools/configitem.hxx>
#endif
#ifndef _SFXCFGITEM_HXX //autogen
#include <sfx2/cfgitem.hxx>
#endif
#ifndef _SFX_SAVEOPT_HXX //autogen
#include <sfx2/saveopt.hxx>
#endif
#ifndef _SFXAPP_HXX
#include <sfx2/app.hxx>
#endif
#ifndef _SVX_OPTGRID_HXX //autogen
#include <svx/optgrid.hxx>
#endif
#ifndef _OPTSITE2_HXX
#include "optsite2.hxx"
#endif
// -----------------
// - Option ranges -
// -----------------
#define SD_OPTIONS_ALL 0
#define SD_OPTIONS_NONE 0x00000000
#define SD_OPTIONS_ALL 0xffffffff
#define SD_OPTIONS_SNAP 2
#define SD_OPTIONS_GRID 3
#define SD_OPTIONS_LAYOUT 4
#define SD_OPTIONS_CONTENTS 5
#define SD_OPTIONS_MISC 6
#define SD_OPTIONS_LAYOUT 0x00000001
#define SD_OPTIONS_CONTENTS 0x00000002
#define SD_OPTIONS_MISC 0x00000004
#define SD_OPTIONS_SNAP 0x00000008
#define SD_OPTIONS_ZOOM 0x00000010
#define SD_OPTIONS_GRID 0x00000020
#define SD_OPTIONS_PRINT 0x00000040
// ------------
// - Forwards -
// ------------
class SfxConfigItem;
class FrameView;
class SdOptions;
// class SdOptionsLayout ----------------------------------------------
// -----------------
// - SdOptionsItem -
// -----------------
class SdOptionsLayout
class SdOptionsGeneric;
class SdOptionsItem : public ::utl::ConfigItem
{
protected:
BOOL bRuler : 1;
BOOL bMoveOutline : 1;
BOOL bDragStripes : 1;
BOOL bHandlesBezier : 1;
BOOL bHelplines : 1;
UINT16 nMetric;
private:
const SdOptionsGeneric& mrParent;
public:
SdOptionsLayout();
~SdOptionsLayout() {}
BOOL IsRulerVisible() const { return (BOOL) bRuler; }
BOOL IsMoveOutline() const { return (BOOL) bMoveOutline; }
BOOL IsDragStripes() const { return (BOOL) bDragStripes; }
BOOL IsHandlesBezier() const { return (BOOL) bHandlesBezier; }
BOOL IsHelplines() const { return (BOOL) bHelplines; }
UINT16 GetMetric() const;
SdOptionsItem( const SdOptionsGeneric& rParent, const ::rtl::OUString rSubTree );
~SdOptionsItem();
void SetRulerVisible( BOOL bOn = TRUE ) { bRuler = bOn; }
void SetMoveOutline( BOOL bOn = TRUE ) { bMoveOutline = bOn; }
void SetDragStripes( BOOL bOn = TRUE ) { bDragStripes = bOn; }
void SetHandlesBezier( BOOL bOn = TRUE ) { bHandlesBezier = bOn; }
void SetHelplines( BOOL bOn = TRUE ) { bHelplines = bOn; }
void SetMetric( UINT16 nInMetric ) { nMetric = nInMetric; }
virtual void Commit();
::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any > GetProperties(
const ::com::sun::star::uno::Sequence< ::rtl::OUString >& rNames );
sal_Bool PutProperties( const com::sun::star::uno::Sequence< rtl::OUString >& rNames,
const com::sun::star::uno::Sequence< com::sun::star::uno::Any>& rValues );
void SetModified();
};
// class SdOptionsContents ----------------------------------------------
// --------------------
// - SdOptionsGeneric -
// --------------------
class SdOptionsContents
class SdOptionsGeneric
{
friend class SdOptionsItem;
private:
::rtl::OUString maSubTree;
SdOptionsItem* mpCfgItem;
USHORT mnConfigId;
BOOL mbInit : 1;
BOOL mbEnableModify : 1;
void Commit( SdOptionsItem& rCfgItem ) const;
::com::sun::star::uno::Sequence< ::rtl::OUString > GetPropertyNames() const;
protected:
BOOL bExternGraphic : 1;
BOOL bOutlineMode : 1;
BOOL bHairlineMode : 1;
BOOL bNoText : 1;
BOOL bSolidDragging : 1;
BOOL bSolidMarkHdl : 1;
void Init() const;
void OptionsChanged() { if( mpCfgItem && mbEnableModify ) mpCfgItem->SetModified(); }
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const = 0;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues ) = 0;
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const = 0;
public:
SdOptionsContents();
~SdOptionsContents() {}
BOOL IsExternGraphic() const { return (BOOL) bExternGraphic; }
BOOL IsOutlineMode() const { return (BOOL) bOutlineMode; }
BOOL IsHairlineMode() const { return (BOOL) bHairlineMode; }
BOOL IsNoText() const { return (BOOL) bNoText; }
BOOL IsSolidDragging() const { return (BOOL) bSolidDragging; }
BOOL IsSolidMarkHdl() const { return (BOOL) bSolidMarkHdl; }
SdOptionsGeneric( USHORT nConfigId, const ::rtl::OUString& rSubTree );
~SdOptionsGeneric();
void SetExternGraphic( BOOL bOn = TRUE ) { bExternGraphic = bOn; }
void SetOutlineMode( BOOL bOn = TRUE ) { bOutlineMode = bOn; }
void SetHairlineMode( BOOL bOn = TRUE ) { bHairlineMode = bOn; }
void SetNoText( BOOL bOn = TRUE ) { bNoText = bOn; }
void SetSolidDragging( BOOL bOn = TRUE ) { bSolidDragging = bOn; }
void SetSolidMarkHdl( BOOL bOn = TRUE ) { bSolidMarkHdl = bOn; }
const ::rtl::OUString& GetSubTree() const { return maSubTree; }
USHORT GetConfigId() const { return mnConfigId; }
void EnableModify( BOOL bModify ) { mbEnableModify = bModify; }
};
// class SdOptionsMisc ----------------------------------------------
// -------------------
// - SdOptionsLayout -
// -------------------
class SdOptionsMisc
{
protected:
BOOL bStartWithTemplate : 1;
BOOL bStartWithLayout : 1;
BOOL bMarkedHitMovesAlways : 1;
BOOL bMoveOnlyDragging : 1;
BOOL bCrookNoContortion : 1;
BOOL bQuickEdit : 1;
BOOL bMasterPageCache : 1;
BOOL bDragWithCopy : 1;
BOOL bPickThrough : 1;
BOOL bBigHandles : 1;
BOOL bDoubleClickTextEdit: 1; // Textmodus nach Doppelklick
BOOL bClickChangeRotation: 1; // Einfachklick wechselt Selektions-/Rotationsmodus
BOOL bStartWithActualPage: 1; // Startet die Praesentation immer von der aktuellen Seite
ULONG nPreviewQuality;
public:
SdOptionsMisc();
~SdOptionsMisc() {}
BOOL IsStartWithTemplate() const { return (BOOL) bStartWithTemplate; }
BOOL IsStartWithLayout() const { return (BOOL) bStartWithLayout; }
BOOL IsMarkedHitMovesAlways() const { return (BOOL) bMarkedHitMovesAlways; }
BOOL IsMoveOnlyDragging() const { return (BOOL) bMoveOnlyDragging; }
BOOL IsCrookNoContortion() const { return (BOOL) bCrookNoContortion; }
BOOL IsQuickEdit() const { return (BOOL) bQuickEdit; }
BOOL IsMasterPagePaintCaching() const { return (BOOL) bMasterPageCache; }
BOOL IsDragWithCopy() const { return (BOOL) bDragWithCopy; }
BOOL IsPickThrough() const { return (BOOL) bPickThrough; }
BOOL IsBigHandles() const { return (BOOL) bBigHandles; }
BOOL IsDoubleClickTextEdit() const{ return (BOOL) bDoubleClickTextEdit; }
BOOL IsClickChangeRotation() const{ return (BOOL) bClickChangeRotation; }
BOOL IsStartWithActualPage() const{ return (BOOL) bStartWithActualPage; }
ULONG GetPreviewQuality() const { return nPreviewQuality; }
// Template und Layout laufen z.Z. synchron!
void SetStartWithTemplate( BOOL bOn = TRUE ) { bStartWithTemplate = bOn;
bStartWithLayout = bOn; }
void SetStartWithLayout( BOOL bOn = TRUE ) { bStartWithTemplate = bOn;
bStartWithLayout = bOn; }
void SetMarkedHitMovesAlways( BOOL bOn = TRUE ) { bMarkedHitMovesAlways = bOn; }
void SetMoveOnlyDragging( BOOL bOn = TRUE ) { bMoveOnlyDragging = bOn; }
void SetCrookNoContortion( BOOL bOn = TRUE ) { bCrookNoContortion = bOn; }
void SetQuickEdit( BOOL bOn = TRUE ) { bQuickEdit = bOn; }
void SetMasterPagePaintCaching( BOOL bOn = TRUE ) { bMasterPageCache = bOn; }
void SetDragWithCopy( BOOL bOn = TRUE ) { bDragWithCopy = bOn; }
void SetPickThrough( BOOL bOn = TRUE ) { bPickThrough = bOn; }
void SetBigHandles( BOOL bOn = TRUE ) { bBigHandles = bOn; }
void SetDoubleClickTextEdit( BOOL bOn = TRUE ){ bDoubleClickTextEdit = bOn; }
void SetClickChangeRotation( BOOL bOn = TRUE ){ bClickChangeRotation = bOn; }
void SetStartWithActualPage( BOOL bOn = TRUE ){ bStartWithActualPage = bOn; }
void SetPreviewQuality( ULONG nQual ) { nPreviewQuality = nQual; }
};
// class SdOptionsSnap ----------------------------------------------
class SdOptionsSnap
{
protected:
BOOL bSnapHelplines : 1;
BOOL bSnapBorder : 1;
BOOL bSnapFrame : 1;
BOOL bSnapPoints : 1;
BOOL bOrtho : 1;
BOOL bBigOrtho : 1;
BOOL bRotate : 1;
INT16 nSnapArea;
INT16 nAngle;
INT16 nBezAngle;
public:
SdOptionsSnap();
~SdOptionsSnap() {}
BOOL IsSnapHelplines() const { return (BOOL) bSnapHelplines; }
BOOL IsSnapBorder() const { return (BOOL) bSnapBorder; }
BOOL IsSnapFrame() const { return (BOOL) bSnapFrame; }
BOOL IsSnapPoints() const { return (BOOL) bSnapPoints; }
BOOL IsOrtho() const { return (BOOL) bOrtho; }
BOOL IsBigOrtho() const { return (BOOL) bBigOrtho; }
BOOL IsRotate() const { return (BOOL) bRotate; }
INT16 GetSnapArea() const { return nSnapArea; }
INT16 GetAngle() const { return nAngle; }
INT16 GetEliminatePolyPointLimitAngle() const { return nBezAngle; }
void SetSnapHelplines( BOOL bOn = TRUE ) { bSnapHelplines = bOn; }
void SetSnapBorder( BOOL bOn = TRUE ) { bSnapBorder = bOn; }
void SetSnapFrame( BOOL bOn = TRUE ) { bSnapFrame = bOn; }
void SetSnapPoints( BOOL bOn = TRUE ) { bSnapPoints = bOn; }
void SetOrtho( BOOL bOn = TRUE ) { bOrtho = bOn; }
void SetBigOrtho( BOOL bOn = TRUE ) { bBigOrtho = bOn; }
void SetRotate( BOOL bOn = TRUE ) { bRotate = bOn; }
void SetSnapArea( INT16 nIn ) { nSnapArea = nIn; }
void SetAngle( INT16 nIn ) { nAngle = nIn; }
void SetEliminatePolyPointLimitAngle( INT16 nIn ) { nBezAngle = nIn; }
};
// class SdOptions --------------------------------------------------
class SdOptions : public SfxConfigItem,
public SdOptionsLayout, public SdOptionsContents,
public SdOptionsMisc, public SdOptionsSnap,
public SdOptionsPrint, public SvxOptionsGrid
class SdOptionsLayout : public SdOptionsGeneric
{
private:
UINT16 nDefTab;
INT32 nX;
INT32 nY;
USHORT nConfigId;
void Init();
virtual int Load( SvStream& );
virtual BOOL Store( SvStream& );
virtual void UseDefault();
// missing: Guide; Contour;
BOOL bRuler : 1; // Layout/Display/Ruler
BOOL bMoveOutline : 1; // ???
BOOL bDragStripes : 1; // ???
BOOL bHandlesBezier : 1; // Layout/Display/Bezier
BOOL bHelplines : 1; // ???
UINT16 nMetric; // Layout/Other/MeasureUnit
UINT16 nDefTab; // Layout/Other/TabStop
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptions(USHORT nCfgId);
~SdOptions() {}
SdOptionsLayout( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsLayout() {}
UINT16 GetDefTab() const { return nDefTab; }
void GetScale( INT32& rX, INT32& rY ) { rX = nX; rY = nY; }
void SetDefaults();
BOOL operator==( const SdOptionsLayout& rOpt ) const;
void SetDefTab( UINT16 nTab ) { nDefTab = nTab; }
void SetScale( INT32 nInX, INT32 nInY ) { nX = nInX; nY = nInY; }
BOOL IsRulerVisible() const { Init(); return (BOOL) bRuler; }
BOOL IsMoveOutline() const { Init(); return (BOOL) bMoveOutline; }
BOOL IsDragStripes() const { Init(); return (BOOL) bDragStripes; }
BOOL IsHandlesBezier() const { Init(); return (BOOL) bHandlesBezier; }
BOOL IsHelplines() const { Init(); return (BOOL) bHelplines; }
UINT16 GetMetric() const { Init(); return( ( 0xffff == nMetric ) ? SFX_APP()->GetOptions().GetMetric() : nMetric ); }
UINT16 GetDefTab() const { Init(); return nDefTab; }
void SetRulerVisible( BOOL bOn = TRUE ) { if( bRuler != bOn ) { OptionsChanged(); bRuler = bOn; } }
void SetMoveOutline( BOOL bOn = TRUE ) { if( bMoveOutline != bOn ) { OptionsChanged(); bMoveOutline = bOn; } }
void SetDragStripes( BOOL bOn = TRUE ) { if( bDragStripes != bOn ) { OptionsChanged(); bDragStripes = bOn; } }
void SetHandlesBezier( BOOL bOn = TRUE ) { if( bHandlesBezier != bOn ) { OptionsChanged(); bHandlesBezier = bOn; } }
void SetHelplines( BOOL bOn = TRUE ) { if( bHelplines != bOn ) { OptionsChanged(); bHelplines = bOn; } }
void SetMetric( UINT16 nInMetric ) { if( nMetric != nInMetric ) { OptionsChanged(); nMetric = nInMetric; } }
void SetDefTab( UINT16 nTab ) { if( nDefTab != nTab ) { OptionsChanged(); nDefTab = nTab; } }
};
// class SdOptionsItem --------------------------------------------------
#ifndef _SD_OPTIONS_ITEM
#define _SD_OPTIONS_ITEM
// -----------------------------------------------------------------------------
class SdOptionsLayoutItem : public SfxPoolItem, public SdOptionsLayout
{
public:
SdOptionsLayoutItem( USHORT nWhich);
SdOptionsLayoutItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView=NULL );
SdOptionsLayoutItem( USHORT nWhich);
SdOptionsLayoutItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
void SetOptions( SdOptions* pOpts ) const;
};
// ---------------------
// - SdOptionsContents -
// ---------------------
class SdOptionsContents : public SdOptionsGeneric
{
private:
BOOL bExternGraphic : 1; // Content/Display/PicturePlaceholder
BOOL bOutlineMode : 1; // Content/Display/ContourMode
BOOL bHairlineMode : 1; // Content/Display/LineContour
BOOL bNoText : 1; // Content/Display/TextPlaceholder
BOOL bSolidDragging : 1; // ???
BOOL bSolidMarkHdl : 1; // ???
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsContents( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsContents() {}
void SetDefaults();
BOOL operator==( const SdOptionsContents& rOpt ) const;
BOOL IsExternGraphic() const { Init(); return (BOOL) bExternGraphic; }
BOOL IsOutlineMode() const { Init(); return (BOOL) bOutlineMode; }
BOOL IsHairlineMode() const { Init(); return (BOOL) bHairlineMode; }
BOOL IsNoText() const { Init(); return (BOOL) bNoText; }
BOOL IsSolidDragging() const { Init(); return (BOOL) bSolidDragging; }
BOOL IsSolidMarkHdl() const { Init(); return (BOOL) bSolidMarkHdl; }
void SetExternGraphic( BOOL bOn = TRUE ) { if( bExternGraphic != bOn ) { OptionsChanged(); bExternGraphic = bOn; } }
void SetOutlineMode( BOOL bOn = TRUE ) { if( bOutlineMode != bOn ) { OptionsChanged(); bOutlineMode = bOn; } }
void SetHairlineMode( BOOL bOn = TRUE ) { if( bHairlineMode != bOn ) { OptionsChanged(); bHairlineMode = bOn; } }
void SetNoText( BOOL bOn = TRUE ) { if( bNoText != bOn ) { OptionsChanged(); bNoText = bOn; } }
void SetSolidDragging( BOOL bOn = TRUE ) { if( bSolidDragging != bOn ) { OptionsChanged(); bSolidDragging = bOn; } }
void SetSolidMarkHdl( BOOL bOn = TRUE ) { if( bSolidMarkHdl != bOn ) { OptionsChanged(); bSolidMarkHdl = bOn; } }
};
// -----------------------------------------------------------------------------
class SdOptionsContentsItem : public SfxPoolItem, public SdOptionsContents
{
public:
SdOptionsContentsItem( USHORT nWhich);
SdOptionsContentsItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView=NULL );
SdOptionsContentsItem( USHORT nWhich);
SdOptionsContentsItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
// -----------------
// - SdOptionsMisc -
// -----------------
class SdOptionsMisc : public SdOptionsGeneric
{
private:
// missing: // Misc/TextObject/Selectable; /Misc/ObjectMoveable; /Misc/SimpleHandles
BOOL bStartWithTemplate : 1;
BOOL bMarkedHitMovesAlways : 1;
BOOL bMoveOnlyDragging : 1;
BOOL bCrookNoContortion : 1; // Misc/NoDistort
BOOL bQuickEdit : 1; // Misc/TextObject/QuickEditing
BOOL bMasterPageCache : 1; // Misc/BackgroundCache
BOOL bDragWithCopy : 1; // Misc/CopyWhileMoving
BOOL bPickThrough : 1;
BOOL bBigHandles : 1; // Misc/BigHandles
BOOL bDoubleClickTextEdit : 1; // Misc/DclickTextedit
BOOL bClickChangeRotation : 1; // Misc/RotateClick
BOOL bStartWithActualPage : 1; // Misc/Start/CurrentPage
ULONG nPreviewQuality; // !!!Misc/Preview (double=>integer)!!!
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsMisc( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsMisc() {}
void SetDefaults();
BOOL operator==( const SdOptionsMisc& rOpt ) const;
BOOL IsStartWithTemplate() const { Init(); return (BOOL) bStartWithTemplate; }
BOOL IsMarkedHitMovesAlways() const { Init(); return (BOOL) bMarkedHitMovesAlways; }
BOOL IsMoveOnlyDragging() const { Init(); return (BOOL) bMoveOnlyDragging; }
BOOL IsCrookNoContortion() const { Init(); return (BOOL) bCrookNoContortion; }
BOOL IsQuickEdit() const { Init(); return (BOOL) bQuickEdit; }
BOOL IsMasterPagePaintCaching() const { Init(); return (BOOL) bMasterPageCache; }
BOOL IsDragWithCopy() const { Init(); return (BOOL) bDragWithCopy; }
BOOL IsPickThrough() const { Init(); return (BOOL) bPickThrough; }
BOOL IsBigHandles() const { Init(); return (BOOL) bBigHandles; }
BOOL IsDoubleClickTextEdit() const { Init(); return (BOOL) bDoubleClickTextEdit; }
BOOL IsClickChangeRotation() const { Init(); return (BOOL) bClickChangeRotation; }
BOOL IsStartWithActualPage() const { Init(); return (BOOL) bStartWithActualPage; }
ULONG GetPreviewQuality() const { Init(); return nPreviewQuality; }
void SetStartWithTemplate( BOOL bOn = TRUE ) { if( bStartWithTemplate != bOn ) { OptionsChanged(); bStartWithTemplate = bOn; } }
void SetMarkedHitMovesAlways( BOOL bOn = TRUE ) { if( bMarkedHitMovesAlways != bOn ) { OptionsChanged(); bMarkedHitMovesAlways = bOn; } }
void SetMoveOnlyDragging( BOOL bOn = TRUE ) { if( bMoveOnlyDragging != bOn ) { OptionsChanged(); bMoveOnlyDragging = bOn; } }
void SetCrookNoContortion( BOOL bOn = TRUE ) { if( bCrookNoContortion != bOn ) { OptionsChanged(); bCrookNoContortion = bOn; } }
void SetQuickEdit( BOOL bOn = TRUE ) { if( bQuickEdit != bOn ) { OptionsChanged(); bQuickEdit = bOn; } }
void SetMasterPagePaintCaching( BOOL bOn = TRUE ) { if( bMasterPageCache != bOn ) { OptionsChanged(); bMasterPageCache = bOn; } }
void SetDragWithCopy( BOOL bOn = TRUE ) { if( bDragWithCopy != bOn ) { OptionsChanged(); bDragWithCopy = bOn; } }
void SetPickThrough( BOOL bOn = TRUE ) { if( bPickThrough != bOn ) { OptionsChanged(); bPickThrough = bOn; } }
void SetBigHandles( BOOL bOn = TRUE ) { if( bBigHandles != bOn ) { OptionsChanged(); bBigHandles = bOn; } }
void SetDoubleClickTextEdit( BOOL bOn = TRUE ) { if( bDoubleClickTextEdit != bOn ) { OptionsChanged(); bDoubleClickTextEdit = bOn; } }
void SetClickChangeRotation( BOOL bOn = TRUE ) { if( bClickChangeRotation != bOn ) { OptionsChanged(); bClickChangeRotation = bOn; } }
void SetStartWithActualPage( BOOL bOn = TRUE ) { if( bStartWithActualPage != bOn ) { OptionsChanged(); bStartWithActualPage = bOn; } }
void SetPreviewQuality( ULONG nQual ) { if( nPreviewQuality != nQual ) { OptionsChanged(); nPreviewQuality = nQual; } }
};
// -----------------------------------------------------------------------------
class SdOptionsMiscItem : public SfxPoolItem, public SdOptionsMisc
{
public:
SdOptionsMiscItem( USHORT nWhich);
SdOptionsMiscItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView=NULL );
SdOptionsMiscItem( USHORT nWhich);
SdOptionsMiscItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
// -----------------
// - SdOptionsSnap -
// -----------------
class SdOptionsSnap : public SdOptionsGeneric
{
private:
BOOL bSnapHelplines : 1; // Snap/Object/SnapLine
BOOL bSnapBorder : 1; // Snap/Object/PageMargin
BOOL bSnapFrame : 1; // Snap/Object/ObjectFrame
BOOL bSnapPoints : 1; // Snap/Object/ObjectPoint
BOOL bOrtho : 1; // Snap/Position/CreatingMoving
BOOL bBigOrtho : 1; // Snap/Position/ExtendEdges
BOOL bRotate : 1; // Snap/Position/Rotating
INT16 nSnapArea; // Snap/Object/Range
INT16 nAngle; // Snap/Position/RotatingValue
INT16 nBezAngle; // Snap/Position/PointReduction
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsSnap( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsSnap() {}
void SetDefaults();
BOOL operator==( const SdOptionsSnap& rOpt ) const;
BOOL IsSnapHelplines() const { Init(); return (BOOL) bSnapHelplines; }
BOOL IsSnapBorder() const { Init(); return (BOOL) bSnapBorder; }
BOOL IsSnapFrame() const { Init(); return (BOOL) bSnapFrame; }
BOOL IsSnapPoints() const { Init(); return (BOOL) bSnapPoints; }
BOOL IsOrtho() const { Init(); return (BOOL) bOrtho; }
BOOL IsBigOrtho() const { Init(); return (BOOL) bBigOrtho; }
BOOL IsRotate() const { Init(); return (BOOL) bRotate; }
INT16 GetSnapArea() const { Init(); return nSnapArea; }
INT16 GetAngle() const { Init(); return nAngle; }
INT16 GetEliminatePolyPointLimitAngle() const { Init(); return nBezAngle; }
void SetSnapHelplines( BOOL bOn = TRUE ) { if( bSnapHelplines != bOn ) { OptionsChanged(); bSnapHelplines = bOn; } }
void SetSnapBorder( BOOL bOn = TRUE ) { if( bSnapBorder != bOn ) { OptionsChanged(); bSnapBorder = bOn; } }
void SetSnapFrame( BOOL bOn = TRUE ) { if( bSnapFrame != bOn ) { OptionsChanged(); bSnapFrame = bOn; } }
void SetSnapPoints( BOOL bOn = TRUE ) { if( bSnapPoints != bOn ) { OptionsChanged(); bSnapPoints = bOn; } }
void SetOrtho( BOOL bOn = TRUE ) { if( bOrtho != bOn ) { OptionsChanged(); bOrtho = bOn; } }
void SetBigOrtho( BOOL bOn = TRUE ) { if( bBigOrtho != bOn ) { OptionsChanged(); bBigOrtho = bOn; } }
void SetRotate( BOOL bOn = TRUE ) { if( bRotate != bOn ) { OptionsChanged(); bRotate = bOn; } }
void SetSnapArea( INT16 nIn ) { if( nSnapArea != nIn ) { OptionsChanged(); nSnapArea = nIn; } }
void SetAngle( INT16 nIn ) { if( nAngle != nIn ) { OptionsChanged(); nAngle = nIn; } }
void SetEliminatePolyPointLimitAngle( INT16 nIn ) { if( nBezAngle != nIn ) { OptionsChanged(); nBezAngle = nIn; } }
};
// -----------------------------------------------------------------------------
class SdOptionsSnapItem : public SfxPoolItem, public SdOptionsSnap
{
public:
SdOptionsSnapItem( USHORT nWhich);
SdOptionsSnapItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView=NULL );
SdOptionsSnapItem( USHORT nWhich);
SdOptionsSnapItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
#endif
// -----------------
// - SdOptionsZoom -
// -----------------
// class SdOptionsGridItem ----------------------------------------------
#ifndef _SD_OPTIONS_GRID_ITEM
#define _SD_OPTIONS_GRID_ITEM
class SdOptionsGridItem : public SvxGridItem
class SdOptionsZoom : public SdOptionsGeneric
{
private:
INT32 nX; // Zoom/ScaleX
INT32 nY; // Zoom/ScaleY
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsGridItem( USHORT nWhich );
SdOptionsGridItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView=NULL );
SdOptionsZoom( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsZoom() {}
void SetDefaults();
BOOL operator==( const SdOptionsZoom& rOpt ) const;
void GetScale( INT32& rX, INT32& rY ) const { Init(); rX = nX; rY = nY; }
void SetScale( INT32 nInX, INT32 nInY ) { nX = nInX; nY = nInY; }
};
// -----------------------------------------------------------------------------
class SdOptionsZoomItem : public SfxPoolItem, public SdOptionsZoom
{
public:
SdOptionsZoomItem( USHORT nWhich);
SdOptionsZoomItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
// -----------------
// - SdOptionsGrid -
// -----------------
class SdOptionsGrid : public SdOptionsGeneric, public SvxOptionsGrid
{
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsGrid( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsGrid();
void SetDefaults();
BOOL operator==( const SdOptionsGrid& rOpt ) const;
UINT32 GetFldDrawX() const { Init(); return SvxOptionsGrid::GetFldDrawX(); }
UINT32 GetFldDivisionX() const { Init(); return SvxOptionsGrid::GetFldDivisionX(); }
UINT32 GetFldDrawY() const { Init(); return SvxOptionsGrid::GetFldDrawY(); }
UINT32 GetFldDivisionY() const { Init(); return SvxOptionsGrid::GetFldDivisionY(); }
UINT32 GetFldSnapX() const { Init(); return SvxOptionsGrid::GetFldSnapX(); }
UINT32 GetFldSnapY() const { Init(); return SvxOptionsGrid::GetFldSnapY(); }
BOOL IsUseGridSnap() const { Init(); return SvxOptionsGrid::GetUseGridSnap(); }
BOOL IsSynchronize() const { Init(); return SvxOptionsGrid::GetSynchronize(); }
BOOL IsGridVisible() const { Init(); return SvxOptionsGrid::GetGridVisible(); }
BOOL IsEqualGrid() const { Init(); return SvxOptionsGrid::GetEqualGrid(); }
};
// -----------------------------------------------
class SdOptionsGridItem : public SfxPoolItem, public SdOptionsGrid
{
public:
SdOptionsGridItem( USHORT nWhich);
SdOptionsGridItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
// ------------------
// - SdOptionsPrint -
// ------------------
class SdOptionsPrint : public SdOptionsGeneric
{
private:
BOOL bDraw : 1; // Print/Content/Drawing
BOOL bNotes : 1; // Print/Content/Note
BOOL bHandout : 1; // Print/Content/Handout
BOOL bOutline : 1; // Print/Content/Outline
BOOL bDate : 1; // Print/Other/Date
BOOL bTime : 1; // Print/Other/Time
BOOL bPagename : 1; // Print/Other/PageName
BOOL bHiddenPages : 1; // Print/Other/HiddenPage
BOOL bPagesize : 1; // Print/Page/PageSize
BOOL bPagetile : 1; // Print/Page/PageTile
BOOL bWarningPrinter : 1;
BOOL bWarningSize : 1;
BOOL bWarningOrientation : 1;
BOOL bBooklet : 1; // Print/Page/Booklet
BOOL bFront : 1; // Print/Page/BookletFront
BOOL bBack : 1; // Print/Page/BookletFront
BOOL bCutPage : 1;
BOOL bPaperbin : 1; // Print/Other/FromPrinterSetup
UINT16 nQuality; // Print/Other/Quality
protected:
virtual void GetPropNameArray( const char**& ppNames, ULONG& rCount ) const;
virtual BOOL ReadData( const ::com::sun::star::uno::Any* pValues );
virtual BOOL WriteData( ::com::sun::star::uno::Any* pValues ) const;
public:
SdOptionsPrint( USHORT nConfigId, BOOL bUseConfig );
~SdOptionsPrint() {}
void SetDefaults();
BOOL operator==( const SdOptionsPrint& rOpt ) const;
BOOL IsDraw() const { Init(); return (BOOL) bDraw; }
BOOL IsNotes() const { Init(); return (BOOL) bNotes; }
BOOL IsHandout() const { Init(); return (BOOL) bHandout; }
BOOL IsOutline() const { Init(); return (BOOL) bOutline; }
BOOL IsDate() const { Init(); return (BOOL) bDate; }
BOOL IsTime() const { Init(); return (BOOL) bTime; }
BOOL IsPagename() const { Init(); return (BOOL) bPagename; }
BOOL IsHiddenPages() const { Init(); return (BOOL) bHiddenPages; }
BOOL IsPagesize() const { Init(); return (BOOL) bPagesize; }
BOOL IsPagetile() const { Init(); return (BOOL) bPagetile; }
BOOL IsWarningPrinter() const { Init(); return (BOOL) bWarningPrinter; }
BOOL IsWarningSize() const { Init(); return (BOOL) bWarningSize; }
BOOL IsWarningOrientation() const { Init(); return (BOOL) bWarningOrientation; }
BOOL IsBooklet() const { Init(); return (BOOL) bBooklet; }
BOOL IsFrontPage() const { Init(); return (BOOL) bFront; }
BOOL IsBackPage() const { Init(); return (BOOL) bBack; }
BOOL IsCutPage() const { Init(); return (BOOL) bCutPage; }
BOOL IsPaperbin() const { Init(); return (BOOL) bPaperbin; }
UINT16 GetOutputQuality() const { Init(); return nQuality; }
void SetDraw( BOOL bOn = TRUE ) { if( bDraw != bOn ) { OptionsChanged(); bDraw = bOn; } }
void SetNotes( BOOL bOn = TRUE ) { if( bNotes != bOn ) { OptionsChanged(); bNotes = bOn; } }
void SetHandout( BOOL bOn = TRUE ) { if( bHandout != bOn ) { OptionsChanged(); bHandout = bOn; } }
void SetOutline( BOOL bOn = TRUE ) { if( bOutline != bOn ) { OptionsChanged(); bOutline = bOn; } }
void SetDate( BOOL bOn = TRUE ) { if( bDate != bOn ) { OptionsChanged(); bDate = bOn; } }
void SetTime( BOOL bOn = TRUE ) { if( bTime != bOn ) { OptionsChanged(); bTime = bOn; } }
void SetPagename( BOOL bOn = TRUE ) { if( bPagename != bOn ) { OptionsChanged(); bPagename = bOn; } }
void SetHiddenPages( BOOL bOn = TRUE ) { if( bHiddenPages != bOn ) { OptionsChanged(); bHiddenPages = bOn; } }
void SetPagesize( BOOL bOn = TRUE ) { if( bPagesize != bOn ) { OptionsChanged(); bPagesize = bOn; } }
void SetPagetile( BOOL bOn = TRUE ) { if( bPagetile != bOn ) { OptionsChanged(); bPagetile = bOn; } }
void SetWarningPrinter( BOOL bOn = TRUE ) { if( bWarningPrinter != bOn ) { OptionsChanged(); bWarningPrinter = bOn; } }
void SetWarningSize( BOOL bOn = TRUE ) { if( bWarningSize != bOn ) { OptionsChanged(); bWarningSize = bOn; } }
void SetWarningOrientation( BOOL bOn = TRUE ) { if( bWarningOrientation != bOn ) { OptionsChanged(); bWarningOrientation = bOn; } }
void SetBooklet( BOOL bOn = TRUE ) { if( bBooklet != bOn ) { OptionsChanged(); bBooklet = bOn; } }
void SetFrontPage( BOOL bOn = TRUE ) { if( bFront != bOn ) { OptionsChanged(); bFront = bOn; } }
void SetBackPage( BOOL bOn = TRUE ) { if( bBack != bOn ) { OptionsChanged(); bBack = bOn; } }
void SetCutPage( BOOL bOn = TRUE ) { if( bCutPage != bOn ) { OptionsChanged(); bCutPage = bOn; } }
void SetPaperbin( BOOL bOn = TRUE ) { if( bPaperbin != bOn ) { OptionsChanged(); bPaperbin = bOn; } }
void SetOutputQuality( UINT16 nInQuality ) { if( nQuality != nInQuality ) { OptionsChanged(); nQuality = nInQuality; } }
};
// -----------------------------------------------------------------------------
class SdOptionsPrintItem : public SfxPoolItem, public SdOptionsPrint
{
public:
SdOptionsPrintItem( USHORT nWhich);
SdOptionsPrintItem( USHORT nWhich, SdOptions* pOpts, FrameView* pView = NULL );
virtual SfxPoolItem* Clone( SfxItemPool *pPool = 0 ) const;
virtual int operator==( const SfxPoolItem& ) const;
void SetOptions( SdOptions* pOpts ) const;
};
#endif
// -------------
// - SdOptions -
// -------------
class SdOptions : public SdOptionsLayout, public SdOptionsContents,
public SdOptionsMisc, public SdOptionsSnap,
public SdOptionsZoom, public SdOptionsGrid,
public SdOptionsPrint
{
public:
SdOptions( USHORT nConfigId );
~SdOptions();
void SetDefaults( ULONG nOptionRange );
void StoreConfig();
};
#endif // _SD_OPTSITEM_HXX
+2 -5
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: tpoption.hxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:41 $
* last change: $Author: ka $ $Date: 2000-09-28 18:03:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -206,10 +206,7 @@ private:
CheckBox aCbxQuickEdit;
CheckBox aCbxPickThrough;
GroupBox aGrpText;
// Template und Layout laufen z.Z. synchron!
CheckBox aCbxStartWithTemplate;
// CheckBox aCbxStartWithLayout;
GroupBox aGrpProgramStart;
CheckBox aCbxMasterPageCache;
+2 -3
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: drviews5.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: ka $ $Date: 2000-09-21 16:12:21 $
* last change: $Author: ka $ $Date: 2000-09-28 18:04:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -91,7 +91,6 @@
#include "app.hrc"
#include "optsitem.hxx"
#include "optsite2.hxx"
#include "app.hxx"
#include "frmview.hxx"
#include "sdattr.hxx"
+2 -3
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: drviewsg.cxx,v $
*
* $Revision: 1.1.1.1 $
* $Revision: 1.2 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:44 $
* last change: $Author: ka $ $Date: 2000-09-28 18:05:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -295,7 +295,6 @@ void SdDrawViewShell::ExecOptionsBar( SfxRequest& rReq )
if( !bDefault )
{
pOptions->SetDefault( FALSE );
pOptions->StoreConfig();
// Speichert die Konfiguration SOFORT
+3 -3
View File
@@ -2,9 +2,9 @@
*
* $RCSfile: viewshe3.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: ka $ $Date: 2000-09-21 16:12:19 $
* last change: $Author: ka $ $Date: 2000-09-28 18:05:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -157,7 +157,7 @@
#include "frmview.hxx"
#include "prntopts.hxx"
#include "printdlg.hxx"
#include "optsite2.hxx"
#include "optsitem.hxx"
#include "slidvish.hxx"
#include "sdoutl.hxx"