drop some more XubStrings
Change-Id: Ibca2e4a0cfd1b504f87fea1d4e47536c1abd8ac0
This commit is contained in:
@@ -74,7 +74,7 @@ private:
|
|||||||
Color aPrivColor;
|
Color aPrivColor;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SvLBoxColorString( SvTreeListEntry*,sal_uInt16 nFlags,const XubString& rStr,
|
SvLBoxColorString( SvTreeListEntry*, sal_uInt16 nFlags, const OUString& rStr,
|
||||||
const Color& rCol);
|
const Color& rCol);
|
||||||
SvLBoxColorString();
|
SvLBoxColorString();
|
||||||
~SvLBoxColorString();
|
~SvLBoxColorString();
|
||||||
|
@@ -49,9 +49,9 @@ public:
|
|||||||
TYPEINFO();
|
TYPEINFO();
|
||||||
|
|
||||||
FmFormModel(SfxItemPool* pPool=NULL, SfxObjectShell* pPers=NULL );
|
FmFormModel(SfxItemPool* pPool=NULL, SfxObjectShell* pPers=NULL );
|
||||||
FmFormModel(const XubString& rPath, SfxItemPool* pPool=NULL,
|
FmFormModel(const OUString& rPath, SfxItemPool* pPool=NULL,
|
||||||
SfxObjectShell* pPers=NULL );
|
SfxObjectShell* pPers=NULL );
|
||||||
FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
|
FmFormModel(const OUString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
|
||||||
bool bUseExtColorTable);
|
bool bUseExtColorTable);
|
||||||
|
|
||||||
virtual ~FmFormModel();
|
virtual ~FmFormModel();
|
||||||
|
@@ -39,7 +39,7 @@ public:
|
|||||||
SvLBoxFontString(
|
SvLBoxFontString(
|
||||||
SvTreeListEntry* pEntry,
|
SvTreeListEntry* pEntry,
|
||||||
sal_uInt16 nFlags,
|
sal_uInt16 nFlags,
|
||||||
const XubString& rString,
|
const OUString& rString,
|
||||||
const Font& rFont,
|
const Font& rFont,
|
||||||
const Color* pColor = NULL );
|
const Color* pColor = NULL );
|
||||||
|
|
||||||
@@ -83,9 +83,9 @@ public:
|
|||||||
void SetNoSelection();
|
void SetNoSelection();
|
||||||
|
|
||||||
/** Returns the position of the entry currently selected or LIST_APPEND. */
|
/** Returns the position of the entry currently selected or LIST_APPEND. */
|
||||||
sal_uLong GetSelectEntryPos() const;
|
sal_uLong GetSelectEntryPos() const;
|
||||||
/** Returns the text of the selected entry or an empty string. */
|
/** Returns the text of the selected entry or an empty string. */
|
||||||
XubString GetSelectEntry() const;
|
OUString GetSelectEntry() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
/** Initializes a new SvLBoxFontString entry.
|
/** Initializes a new SvLBoxFontString entry.
|
||||||
|
@@ -73,7 +73,7 @@ protected:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
void ImpTakeAttr(ImpMeasureRec& rRec) const;
|
void ImpTakeAttr(ImpMeasureRec& rRec) const;
|
||||||
void TakeRepresentation( XubString& rStr, SdrMeasureFieldKind eMeasureFieldKind ) const;
|
OUString TakeRepresentation(SdrMeasureFieldKind eMeasureFieldKind) const;
|
||||||
void ImpCalcGeometrics(const ImpMeasureRec& rRec, ImpMeasurePoly& rPol) const;
|
void ImpCalcGeometrics(const ImpMeasureRec& rRec, ImpMeasurePoly& rPol) const;
|
||||||
basegfx::B2DPolyPolygon ImpCalcXPoly(const ImpMeasurePoly& rPol) const;
|
basegfx::B2DPolyPolygon ImpCalcXPoly(const ImpMeasurePoly& rPol) const;
|
||||||
void ImpEvalDrag(ImpMeasureRec& rRec, const SdrDragStat& rDrag) const;
|
void ImpEvalDrag(ImpMeasureRec& rRec, const SdrDragStat& rDrag) const;
|
||||||
|
@@ -63,7 +63,7 @@ RedlinData::~RedlinData()
|
|||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
|
|
||||||
SvxRedlinEntry::SvxRedlinEntry()
|
SvxRedlinEntry::SvxRedlinEntry()
|
||||||
:SvTreeListEntry()
|
: SvTreeListEntry()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -77,10 +77,9 @@ SvxRedlinEntry::~SvxRedlinEntry()
|
|||||||
|
|
||||||
DBG_NAME(SvLBoxColorString);
|
DBG_NAME(SvLBoxColorString);
|
||||||
|
|
||||||
SvLBoxColorString::SvLBoxColorString( SvTreeListEntry*pEntry,sal_uInt16 nFlags,const XubString& rStr,
|
SvLBoxColorString::SvLBoxColorString(SvTreeListEntry*pEntry, sal_uInt16 nFlags, const OUString& rStr,
|
||||||
const Color& rCol)
|
const Color& rCol)
|
||||||
|
: SvLBoxString(pEntry, nFlags, rStr)
|
||||||
: SvLBoxString( pEntry, nFlags, rStr )
|
|
||||||
{
|
{
|
||||||
DBG_CTOR(SvLBoxColorString,0);
|
DBG_CTOR(SvLBoxColorString,0);
|
||||||
aPrivColor=rCol;
|
aPrivColor=rCol;
|
||||||
|
@@ -34,7 +34,7 @@ SvLBoxFontString::SvLBoxFontString() :
|
|||||||
}
|
}
|
||||||
|
|
||||||
SvLBoxFontString::SvLBoxFontString(
|
SvLBoxFontString::SvLBoxFontString(
|
||||||
SvTreeListEntry* pEntry, sal_uInt16 nFlags, const XubString& rString,
|
SvTreeListEntry* pEntry, sal_uInt16 nFlags, const OUString& rString,
|
||||||
const Font& rFont, const Color* pColor ) :
|
const Font& rFont, const Color* pColor ) :
|
||||||
SvLBoxString( pEntry, nFlags, rString ),
|
SvLBoxString( pEntry, nFlags, rString ),
|
||||||
maFont( rFont ),
|
maFont( rFont ),
|
||||||
@@ -136,9 +136,9 @@ sal_uLong SvxFontListBox::GetSelectEntryPos() const
|
|||||||
return pSvLBoxEntry ? GetModel()->GetAbsPos( pSvLBoxEntry ) : LIST_APPEND;
|
return pSvLBoxEntry ? GetModel()->GetAbsPos( pSvLBoxEntry ) : LIST_APPEND;
|
||||||
}
|
}
|
||||||
|
|
||||||
XubString SvxFontListBox::GetSelectEntry() const
|
OUString SvxFontListBox::GetSelectEntry() const
|
||||||
{
|
{
|
||||||
return GetEntryText( GetSelectEntryPos() );
|
return GetEntryText(GetSelectEntryPos());
|
||||||
}
|
}
|
||||||
|
|
||||||
void SvxFontListBox::InitEntry(
|
void SvxFontListBox::InitEntry(
|
||||||
|
@@ -59,11 +59,11 @@ struct FmFormModelImplData
|
|||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
FmFormModel::FmFormModel(SfxItemPool* pPool, SfxObjectShell* pPers)
|
FmFormModel::FmFormModel(SfxItemPool* pPool, SfxObjectShell* pPers)
|
||||||
:SdrModel(pPool, pPers, LOADREFCOUNTS)
|
: SdrModel(pPool, pPers, LOADREFCOUNTS)
|
||||||
,m_pImpl(NULL)
|
, m_pImpl(NULL)
|
||||||
,m_pObjShell(0)
|
, m_pObjShell(0)
|
||||||
,m_bOpenInDesignMode(sal_False)
|
, m_bOpenInDesignMode(false)
|
||||||
,m_bAutoControlFocus(sal_False)
|
, m_bAutoControlFocus(false)
|
||||||
{
|
{
|
||||||
m_pImpl = new FmFormModelImplData;
|
m_pImpl = new FmFormModelImplData;
|
||||||
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
||||||
@@ -75,12 +75,12 @@ FmFormModel::FmFormModel(SfxItemPool* pPool, SfxObjectShell* pPers)
|
|||||||
|* Ctor
|
|* Ctor
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers)
|
FmFormModel::FmFormModel(const OUString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers)
|
||||||
:SdrModel(rPath, pPool, pPers)
|
: SdrModel(rPath, pPool, pPers)
|
||||||
,m_pImpl(NULL)
|
, m_pImpl(NULL)
|
||||||
,m_pObjShell(0)
|
, m_pObjShell(0)
|
||||||
,m_bOpenInDesignMode(sal_False)
|
, m_bOpenInDesignMode(false)
|
||||||
,m_bAutoControlFocus(sal_False)
|
, m_bAutoControlFocus(false)
|
||||||
{
|
{
|
||||||
m_pImpl = new FmFormModelImplData;
|
m_pImpl = new FmFormModelImplData;
|
||||||
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
||||||
@@ -92,13 +92,13 @@ FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectSh
|
|||||||
|* Ctor
|
|* Ctor
|
||||||
|*
|
|*
|
||||||
\************************************************************************/
|
\************************************************************************/
|
||||||
FmFormModel::FmFormModel(const XubString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
|
FmFormModel::FmFormModel(const OUString& rPath, SfxItemPool* pPool, SfxObjectShell* pPers,
|
||||||
bool bUseExtColorTable)
|
bool bUseExtColorTable)
|
||||||
:SdrModel(rPath, pPool, pPers, bUseExtColorTable, LOADREFCOUNTS)
|
: SdrModel(rPath, pPool, pPers, bUseExtColorTable, LOADREFCOUNTS)
|
||||||
,m_pImpl( NULL )
|
, m_pImpl(NULL)
|
||||||
,m_pObjShell(0)
|
, m_pObjShell(0)
|
||||||
,m_bOpenInDesignMode(sal_False)
|
, m_bOpenInDesignMode(false)
|
||||||
,m_bAutoControlFocus(sal_False)
|
, m_bAutoControlFocus(false)
|
||||||
{
|
{
|
||||||
m_pImpl = new FmFormModelImplData;
|
m_pImpl = new FmFormModelImplData;
|
||||||
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
m_pImpl->pUndoEnv = new FmXUndoEnvironment(*this);
|
||||||
|
@@ -78,9 +78,9 @@
|
|||||||
SdrMeasureObjGeoData::SdrMeasureObjGeoData() {}
|
SdrMeasureObjGeoData::SdrMeasureObjGeoData() {}
|
||||||
SdrMeasureObjGeoData::~SdrMeasureObjGeoData() {}
|
SdrMeasureObjGeoData::~SdrMeasureObjGeoData() {}
|
||||||
|
|
||||||
void SdrMeasureObj::TakeRepresentation( XubString& rStr, SdrMeasureFieldKind eMeasureFieldKind ) const
|
OUString SdrMeasureObj::TakeRepresentation(SdrMeasureFieldKind eMeasureFieldKind) const
|
||||||
{
|
{
|
||||||
rStr.Erase();
|
String aStr;
|
||||||
Fraction aMeasureScale(1, 1);
|
Fraction aMeasureScale(1, 1);
|
||||||
sal_Bool bTextRota90(sal_False);
|
sal_Bool bTextRota90(sal_False);
|
||||||
sal_Bool bShowUnit(sal_False);
|
sal_Bool bShowUnit(sal_False);
|
||||||
@@ -127,41 +127,41 @@ void SdrMeasureObj::TakeRepresentation( XubString& rStr, SdrMeasureFieldKind eMe
|
|||||||
|
|
||||||
OUString aTmp;
|
OUString aTmp;
|
||||||
pModel->TakeMetricStr(nLen, aTmp, true, nNumDigits);
|
pModel->TakeMetricStr(nLen, aTmp, true, nNumDigits);
|
||||||
rStr = aTmp;
|
aStr = aTmp;
|
||||||
|
|
||||||
if(!aFact.IsValid())
|
if(!aFact.IsValid())
|
||||||
{
|
{
|
||||||
rStr = String();
|
aStr = String();
|
||||||
rStr += sal_Unicode('?');
|
aStr += sal_Unicode('?');
|
||||||
}
|
}
|
||||||
|
|
||||||
sal_Unicode cDec(SvtSysLocale().GetLocaleData().getNumDecimalSep()[0]);
|
sal_Unicode cDec(SvtSysLocale().GetLocaleData().getNumDecimalSep()[0]);
|
||||||
|
|
||||||
if(rStr.Search(cDec) != STRING_NOTFOUND)
|
if(aStr.Search(cDec) != STRING_NOTFOUND)
|
||||||
{
|
{
|
||||||
xub_StrLen nLen2(rStr.Len() - 1);
|
xub_StrLen nLen2(aStr.Len() - 1);
|
||||||
|
|
||||||
while(rStr.GetChar(nLen2) == sal_Unicode('0'))
|
while(aStr.GetChar(nLen2) == sal_Unicode('0'))
|
||||||
{
|
{
|
||||||
rStr.Erase(nLen2);
|
aStr.Erase(nLen2);
|
||||||
nLen2--;
|
nLen2--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(rStr.GetChar(nLen2) == cDec)
|
if(aStr.GetChar(nLen2) == cDec)
|
||||||
{
|
{
|
||||||
rStr.Erase(nLen2);
|
aStr.Erase(nLen2);
|
||||||
nLen2--;
|
nLen2--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!rStr.Len())
|
if(!aStr.Len())
|
||||||
rStr += sal_Unicode('0');
|
aStr += sal_Unicode('0');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// if there's no Model ... (e. g. preview in dialog)
|
// if there's no Model ... (e. g. preview in dialog)
|
||||||
rStr = String();
|
aStr = String();
|
||||||
rStr.AppendAscii("4711");
|
aStr.AppendAscii("4711");
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
@@ -178,7 +178,7 @@ void SdrMeasureObj::TakeRepresentation( XubString& rStr, SdrMeasureFieldKind eMe
|
|||||||
eMeasureUnit = eModUIUnit;
|
eMeasureUnit = eModUIUnit;
|
||||||
|
|
||||||
if(bShowUnit)
|
if(bShowUnit)
|
||||||
pModel->TakeUnitStr(eMeasureUnit, rStr);
|
pModel->TakeUnitStr(eMeasureUnit, aStr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,13 +188,14 @@ void SdrMeasureObj::TakeRepresentation( XubString& rStr, SdrMeasureFieldKind eMe
|
|||||||
{
|
{
|
||||||
if(bTextRota90)
|
if(bTextRota90)
|
||||||
{
|
{
|
||||||
rStr = String();
|
aStr = String();
|
||||||
rStr += sal_Unicode(' ');
|
aStr += sal_Unicode(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return aStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
@@ -591,7 +592,7 @@ bool SdrMeasureObj::CalcFieldValue(const SvxFieldItem& rField, sal_Int32 nPara,
|
|||||||
const SvxFieldData* pField=rField.GetField();
|
const SvxFieldData* pField=rField.GetField();
|
||||||
SdrMeasureField* pMeasureField=PTR_CAST(SdrMeasureField,pField);
|
SdrMeasureField* pMeasureField=PTR_CAST(SdrMeasureField,pField);
|
||||||
if (pMeasureField!=NULL) {
|
if (pMeasureField!=NULL) {
|
||||||
TakeRepresentation(rRet, pMeasureField->GetMeasureFieldKind());
|
rRet = TakeRepresentation(pMeasureField->GetMeasureFieldKind());
|
||||||
if (rpFldColor!=NULL) {
|
if (rpFldColor!=NULL) {
|
||||||
if (!bEdit)
|
if (!bEdit)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user