diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-01-17 17:27:02 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-01-17 17:27:02 +0000 |
commit | 80f4f37f004f34128251750e1d5be0007848e367 (patch) | |
tree | a2e1cfd5e8e2d9c4ccdd9c97baf05a538c34e995 /sc | |
parent | f25afedb8c5a07415cb68f0b43e671fc41eab725 (diff) |
#78610# HasLayoutName / ResetLayoutName
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/dpsave.hxx | 6 | ||||
-rw-r--r-- | sc/source/core/data/dpsave.cxx | 15 |
2 files changed, 17 insertions, 4 deletions
diff --git a/sc/inc/dpsave.hxx b/sc/inc/dpsave.hxx index bb1cb82de4c2..8aea7d8e07af 100644 --- a/sc/inc/dpsave.hxx +++ b/sc/inc/dpsave.hxx @@ -2,9 +2,9 @@ * * $RCSfile: dpsave.hxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:44:48 $ + * last change: $Author: nn $ $Date: 2001-01-17 18:26:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -156,6 +156,8 @@ public: long GetUsedHierarchy() { return nUsedHierarchy; } void SetLayoutName(const String* pName); const String& GetLayoutName() const; + BOOL HasLayoutName() const; + void ResetLayoutName(); USHORT GetOrientation() const { return nOrientation; } diff --git a/sc/source/core/data/dpsave.cxx b/sc/source/core/data/dpsave.cxx index 1032473907b8..6837c39d5a0c 100644 --- a/sc/source/core/data/dpsave.cxx +++ b/sc/source/core/data/dpsave.cxx @@ -2,9 +2,9 @@ * * $RCSfile: dpsave.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: nn $ $Date: 2000-10-09 17:25:08 $ + * last change: $Author: nn $ $Date: 2001-01-17 18:27:02 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -421,6 +421,17 @@ void ScDPSaveDimension::SetUsedHierarchy(long nNew) nUsedHierarchy = nNew; } +BOOL ScDPSaveDimension::HasLayoutName() const +{ + return ( pLayoutName != NULL ); +} + +void ScDPSaveDimension::ResetLayoutName() +{ + delete pLayoutName; + pLayoutName = NULL; +} + void ScDPSaveDimension::SetLayoutName(const String* pName) { if (pName) |