summaryrefslogtreecommitdiff
path: root/sc/inc/editutil.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/inc/editutil.hxx')
-rw-r--r--sc/inc/editutil.hxx124
1 files changed, 62 insertions, 62 deletions
diff --git a/sc/inc/editutil.hxx b/sc/inc/editutil.hxx
index aefa789d2587..974ceef2807d 100644
--- a/sc/inc/editutil.hxx
+++ b/sc/inc/editutil.hxx
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,16 +45,16 @@ class ScEditEngineDefaulter;
class ScEditUtil
{
- ScDocument* pDoc;
- SCCOL nCol;
- SCROW nRow;
- SCTAB nTab;
- Point aScrPos;
- OutputDevice* pDev; // MapMode muss eingestellt sein
- double nPPTX;
- double nPPTY;
- Fraction aZoomX;
- Fraction aZoomY;
+ ScDocument* pDoc;
+ SCCOL nCol;
+ SCROW nRow;
+ SCTAB nTab;
+ Point aScrPos;
+ OutputDevice* pDev; // MapMode muss eingestellt sein
+ double nPPTX;
+ double nPPTY;
+ Fraction aZoomX;
+ Fraction aZoomY;
static const char __FAR_DATA pCalcDelimiters[];
@@ -76,24 +76,24 @@ public:
aScrPos(rScrPosPixel),pDev(pDevice),
nPPTX(nScaleX),nPPTY(nScaleY),aZoomX(rX),aZoomY(rY) {}
- Rectangle GetEditArea( const ScPatternAttr* pPattern, BOOL bForceToTop );
+ Rectangle GetEditArea( const ScPatternAttr* pPattern, BOOL bForceToTop );
};
class ScEditAttrTester
{
ScEditEngineDefaulter* pEngine;
- SfxItemSet* pEditAttrs;
- BOOL bNeedsObject;
- BOOL bNeedsCellAttr;
+ SfxItemSet* pEditAttrs;
+ BOOL bNeedsObject;
+ BOOL bNeedsCellAttr;
public:
ScEditAttrTester( ScEditEngineDefaulter* pEng );
~ScEditAttrTester();
- BOOL NeedsObject() const { return bNeedsObject; }
- BOOL NeedsCellAttr() const { return bNeedsCellAttr; }
- const SfxItemSet& GetAttribs() const { return *pEditAttrs; }
+ BOOL NeedsObject() const { return bNeedsObject; }
+ BOOL NeedsCellAttr() const { return bNeedsCellAttr; }
+ const SfxItemSet& GetAttribs() const { return *pEditAttrs; }
};
@@ -101,15 +101,15 @@ public:
class ScEnginePoolHelper
{
protected:
- SfxItemPool* pEnginePool;
- SfxItemSet* pDefaults;
- BOOL bDeleteEnginePool;
- BOOL bDeleteDefaults;
+ SfxItemPool* pEnginePool;
+ SfxItemSet* pDefaults;
+ BOOL bDeleteEnginePool;
+ BOOL bDeleteDefaults;
ScEnginePoolHelper( SfxItemPool* pEnginePool,
BOOL bDeleteEnginePool = FALSE );
ScEnginePoolHelper( const ScEnginePoolHelper& rOrg );
- virtual ~ScEnginePoolHelper();
+ virtual ~ScEnginePoolHelper();
};
@@ -126,47 +126,47 @@ public:
/// If rOrg.bDeleteEnginePool: pool gets cloned and will be
/// deleted on destruction. Defaults are not set.
ScEditEngineDefaulter( const ScEditEngineDefaulter& rOrg );
- virtual ~ScEditEngineDefaulter();
+ virtual ~ScEditEngineDefaulter();
/// Creates a copy of SfxItemSet if bRememberCopy set
- void SetDefaults( const SfxItemSet& rDefaults, BOOL bRememberCopy = TRUE );
+ void SetDefaults( const SfxItemSet& rDefaults, BOOL bRememberCopy = TRUE );
/// Becomes the owner of the SfxItemSet if bTakeOwnership set
- void SetDefaults( SfxItemSet* pDefaults, BOOL bTakeOwnership = TRUE );
+ void SetDefaults( SfxItemSet* pDefaults, BOOL bTakeOwnership = TRUE );
/// Set the item in the default ItemSet which is created
/// if it doesn't exist yet.
/// The default ItemSet is then applied to each paragraph.
- void SetDefaultItem( const SfxPoolItem& rItem );
+ void SetDefaultItem( const SfxPoolItem& rItem );
/// Returns the stored defaults, used to find non-default character attributes
const SfxItemSet& GetDefaults();
/// Overwritten method to be able to apply defaults already set
- void SetText( const EditTextObject& rTextObject );
+ void SetText( const EditTextObject& rTextObject );
/// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const EditTextObject& rTextObject,
+ void SetTextNewDefaults( const EditTextObject& rTextObject,
const SfxItemSet& rDefaults, BOOL bRememberCopy = TRUE );
/// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const EditTextObject& rTextObject,
+ void SetTextNewDefaults( const EditTextObject& rTextObject,
SfxItemSet* pDefaults, BOOL bTakeOwnership = TRUE );
/// Overwritten method to be able to apply defaults already set
- void SetText( const String& rText );
+ void SetText( const String& rText );
/// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const String& rText,
+ void SetTextNewDefaults( const String& rText,
const SfxItemSet& rDefaults, BOOL bRememberCopy = TRUE );
/// Current defaults are not applied, new defaults are applied
- void SetTextNewDefaults( const String& rText,
+ void SetTextNewDefaults( const String& rText,
SfxItemSet* pDefaults, BOOL bTakeOwnership = TRUE );
/// Paragraph attributes that are not defaults are copied to
/// character attributes and all paragraph attributes reset
- void RemoveParaAttribs();
+ void RemoveParaAttribs();
/// Re-apply existing defaults if set, same as in SetText,
/// but without EnableUndo/SetUpdateMode.
- void RepeatDefaults();
+ void RepeatDefaults();
};
@@ -174,9 +174,9 @@ public:
class SC_DLLPUBLIC ScTabEditEngine : public ScEditEngineDefaulter
{
private:
- void Init(const ScPatternAttr& rPattern);
+ void Init(const ScPatternAttr& rPattern);
public:
- ScTabEditEngine( ScDocument* pDoc ); // Default
+ ScTabEditEngine( ScDocument* pDoc ); // Default
// pEnginePool = ScDocument.GetEnginePool()
// pTextObjectPool = ScDocument.GetEditPool()
ScTabEditEngine( const ScPatternAttr& rPattern,
@@ -187,15 +187,15 @@ public:
struct ScHeaderFieldData
{
- String aTitle; // Titel oder Dateiname wenn kein Titel
- String aLongDocName; // Pfad und Dateiname
- String aShortDocName; // nur Dateiname
- String aTabName;
- Date aDate;
- Time aTime;
- long nPageNo;
- long nTotalPages;
- SvxNumType eNumType;
+ String aTitle; // Titel oder Dateiname wenn kein Titel
+ String aLongDocName; // Pfad und Dateiname
+ String aShortDocName; // nur Dateiname
+ String aTabName;
+ Date aDate;
+ Time aTime;
+ long nPageNo;
+ long nTotalPages;
+ SvxNumType eNumType;
ScHeaderFieldData();
};
@@ -205,7 +205,7 @@ struct ScHeaderFieldData
class SC_DLLPUBLIC ScFieldEditEngine : public ScEditEngineDefaulter
{
private:
- BOOL bExecuteURL;
+ BOOL bExecuteURL;
public:
// pEnginePool = ScDocument.GetEnginePool()
@@ -214,10 +214,10 @@ public:
SfxItemPool* pTextObjectPool = NULL,
BOOL bDeleteEnginePool = FALSE );
- void SetExecuteURL(BOOL bSet) { bExecuteURL = bSet; }
+ void SetExecuteURL(BOOL bSet) { bExecuteURL = bSet; }
- virtual void FieldClicked( const SvxFieldItem& rField, USHORT, USHORT );
- virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rTxtColor, Color*& rFldColor );
+ virtual void FieldClicked( const SvxFieldItem& rField, USHORT, USHORT );
+ virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rTxtColor, Color*& rFldColor );
};
@@ -225,22 +225,22 @@ public:
class SC_DLLPUBLIC ScHeaderEditEngine : public ScEditEngineDefaulter
{
private:
- ScHeaderFieldData aData;
+ ScHeaderFieldData aData;
public:
ScHeaderEditEngine( SfxItemPool* pEnginePool, BOOL bDeleteEnginePool = FALSE );
virtual String CalcFieldValue( const SvxFieldItem& rField, USHORT nPara, USHORT nPos, Color*& rTxtColor, Color*& rFldColor );
- void SetTitle(const String& rNew) { aData.aTitle = rNew; }
- void SetLongDocName(const String& rNew) { aData.aLongDocName = rNew; }
- void SetShortDocName(const String& rNew) { aData.aShortDocName = rNew; }
- void SetTabName(const String& rNew) { aData.aTabName = rNew; }
- void SetDate(const Date& rNew) { aData.aDate = rNew; }
- void SetTime(const Time& rNew) { aData.aTime = rNew; }
- void SetPageNo(long nNew) { aData.nPageNo = nNew; }
- void SetTotalPages(long nNew) { aData.nTotalPages = nNew; }
- void SetNumType(SvxNumType eNew) { aData.eNumType = eNew; }
- void SetData(const ScHeaderFieldData& rNew) { aData = rNew; }
+ void SetTitle(const String& rNew) { aData.aTitle = rNew; }
+ void SetLongDocName(const String& rNew) { aData.aLongDocName = rNew; }
+ void SetShortDocName(const String& rNew) { aData.aShortDocName = rNew; }
+ void SetTabName(const String& rNew) { aData.aTabName = rNew; }
+ void SetDate(const Date& rNew) { aData.aDate = rNew; }
+ void SetTime(const Time& rNew) { aData.aTime = rNew; }
+ void SetPageNo(long nNew) { aData.nPageNo = nNew; }
+ void SetTotalPages(long nNew) { aData.nTotalPages = nNew; }
+ void SetNumType(SvxNumType eNew) { aData.eNumType = eNew; }
+ void SetData(const ScHeaderFieldData& rNew) { aData = rNew; }
};
// for Note text objects.
@@ -256,7 +256,7 @@ public:
};
-// SvxFieldData-Ableitungen sind nach Svx verschoben
+// SvxFieldData-Ableitungen sind nach Svx verschoben
#endif