summaryrefslogtreecommitdiff
path: root/svx/source/form/fmmodel.cxx
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 09:58:02 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-04-13 09:58:02 +0000
commit652dbec1286215a340b9623866660a821192acce (patch)
treeed275ed4ee8dee1c472ab8882d4aa79bd20e84e5 /svx/source/form/fmmodel.cxx
parent070833ba7ac58e9c459f22ab5547218083977402 (diff)
INTEGRATION: CWS frmcontrols02 (1.7.400); FILE MERGED
2004/03/24 10:20:10 fs 1.7.400.2: RESYNC: (1.7-1.8); FILE MERGED 2004/01/22 10:39:16 fs 1.7.400.1: #i24411# page ids not needed anymore
Diffstat (limited to 'svx/source/form/fmmodel.cxx')
-rw-r--r--svx/source/form/fmmodel.cxx32
1 files changed, 2 insertions, 30 deletions
diff --git a/svx/source/form/fmmodel.cxx b/svx/source/form/fmmodel.cxx
index 074123d87f11..7befb459abff 100644
--- a/svx/source/form/fmmodel.cxx
+++ b/svx/source/form/fmmodel.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: fmmodel.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2004-03-19 12:19:29 $
+ * last change: $Author: hr $ $Date: 2004-04-13 10:58:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -96,7 +96,6 @@ TYPEINIT1(FmFormModel, SdrModel);
struct FmFormModelImplData
{
FmXUndoEnvironment* pUndoEnv;
- XubString sNextPageId;
sal_Bool bOpenInDesignIsDefaulted;
sal_Bool bMovingPage;
@@ -125,7 +124,6 @@ FmFormModel::FmFormModel(SfxItemPool* pPool, SvPersist* pPers)
m_pImpl = new FmFormModelImplData;
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
m_pImpl->pUndoEnv->acquire();
- m_pImpl->sNextPageId = '0';
#endif
}
@@ -146,7 +144,6 @@ FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SvPersist*
m_pImpl = new FmFormModelImplData;
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
m_pImpl->pUndoEnv->acquire();
- m_pImpl->sNextPageId = '0';
#endif
}
@@ -167,7 +164,6 @@ FmFormModel::FmFormModel(SfxItemPool* pPool, SvPersist* pPers,
m_pImpl = new FmFormModelImplData;
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
m_pImpl->pUndoEnv->acquire();
- m_pImpl->sNextPageId = '0';
#endif
}
@@ -188,7 +184,6 @@ FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SvPersist*
m_pImpl = new FmFormModelImplData;
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
m_pImpl->pUndoEnv->acquire();
- m_pImpl->sNextPageId = '0';
#endif
}
@@ -521,26 +516,3 @@ FmXUndoEnvironment& FmFormModel::GetUndoEnv()
{
return *m_pImpl->pUndoEnv;
}
-
-//------------------------------------------------------------------------
-XubString FmFormModel::GetUniquePageId()
-{
- XubString sReturn = m_pImpl->sNextPageId;
-
- xub_Unicode aNextChar = m_pImpl->sNextPageId.GetChar(m_pImpl->sNextPageId.Len() - 1);
- sal_Bool bNeedNewChar = sal_False;
- switch (aNextChar)
- {
- case '9' : aNextChar = 'A'; break;
- case 'Z' : aNextChar = 'a'; break;
- case 'z' : aNextChar = '0'; bNeedNewChar = sal_True; break;
- default: ++aNextChar; break;
- }
- m_pImpl->sNextPageId.SetChar(m_pImpl->sNextPageId.Len() - 1, aNextChar);
- if (bNeedNewChar)
- m_pImpl->sNextPageId += '0';
-
- return sReturn;
-}
-
-