loplugin:constantparam in lotuswordpro
Change-Id: I8f8efa6b01fa0bcab074ac54029d95778cb388ab
This commit is contained in:
@@ -1299,7 +1299,7 @@ XFFrame* LwpDrawTextArt::CreateDrawObj(const OUString& rStyleName)
|
|||||||
pRetObj = new XFDrawPath();
|
pRetObj = new XFDrawPath();
|
||||||
XFDrawPath* pFWPath = static_cast<XFDrawPath*>(pRetObj);
|
XFDrawPath* pFWPath = static_cast<XFDrawPath*>(pRetObj);
|
||||||
CreateFWPath(pFWPath);
|
CreateFWPath(pFWPath);
|
||||||
pStyle->SetFontWorkStyle(0, enumXFFWSlantY, enumXFFWAdjustAutosize);
|
pStyle->SetFontWorkStyle(enumXFFWSlantY, enumXFFWAdjustAutosize);
|
||||||
|
|
||||||
SetPosition(pRetObj);
|
SetPosition(pRetObj);
|
||||||
|
|
||||||
|
@@ -528,7 +528,7 @@ XFDateStyle* LwpTools::GetSystemDateStyle(bool bLongFormat)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
pDateStyle->AddAmPm(true);
|
pDateStyle->AddAmPm();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'k':
|
case 'k':
|
||||||
|
@@ -103,7 +103,7 @@ public:
|
|||||||
|
|
||||||
void AddSecond( bool bLongFmt = true, sal_Int16 nDecimalPos = 2);
|
void AddSecond( bool bLongFmt = true, sal_Int16 nDecimalPos = 2);
|
||||||
|
|
||||||
void AddAmPm(bool bAmPm);
|
void AddAmPm();
|
||||||
|
|
||||||
void AddText( const OUString& part );
|
void AddText( const OUString& part );
|
||||||
|
|
||||||
@@ -196,7 +196,7 @@ inline void XFDateStyle::AddSecond( bool bLongFmt, sal_Int16 pos)
|
|||||||
m_aParts.AddStyle(part);
|
m_aParts.AddStyle(part);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void XFDateStyle::AddAmPm(bool /*bAmPm*/)
|
inline void XFDateStyle::AddAmPm()
|
||||||
{
|
{
|
||||||
XFDatePart *part = new XFDatePart();
|
XFDatePart *part = new XFDatePart();
|
||||||
part->SetPartType(enumXFDateAmPm);
|
part->SetPartType(enumXFDateAmPm);
|
||||||
|
@@ -118,14 +118,14 @@ void XFDrawStyle::SetLineDashStyle(enumXFLineStyle style, int num1, int num2,
|
|||||||
pXFStyleManager->AddStyle(m_pLineStyle);
|
pXFStyleManager->AddStyle(m_pLineStyle);
|
||||||
}
|
}
|
||||||
|
|
||||||
void XFDrawStyle::SetFontWorkStyle(sal_Int8 nForm, enumXFFWStyle eStyle, enumXFFWAdjust eAdjust)
|
void XFDrawStyle::SetFontWorkStyle(enumXFFWStyle eStyle, enumXFFWAdjust eAdjust)
|
||||||
{
|
{
|
||||||
if (!m_pFontWorkStyle)
|
if (!m_pFontWorkStyle)
|
||||||
{
|
{
|
||||||
m_pFontWorkStyle = new XFFontWorkStyle();
|
m_pFontWorkStyle = new XFFontWorkStyle();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_pFontWorkStyle->SetButtonForm(nForm);
|
m_pFontWorkStyle->SetButtonForm(0);
|
||||||
m_pFontWorkStyle->SetFWStyleType(eStyle);
|
m_pFontWorkStyle->SetFWStyleType(eStyle);
|
||||||
m_pFontWorkStyle->SetFWAdjustType(eAdjust);
|
m_pFontWorkStyle->SetFWAdjustType(eAdjust);
|
||||||
}
|
}
|
||||||
|
@@ -113,7 +113,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
void SetArrowEnd(const OUString& end, double size=0.3, bool center = false);
|
void SetArrowEnd(const OUString& end, double size=0.3, bool center = false);
|
||||||
|
|
||||||
void SetFontWorkStyle(sal_Int8 nForm, enumXFFWStyle eStyle, enumXFFWAdjust eAdjust);
|
void SetFontWorkStyle(enumXFFWStyle eStyle, enumXFFWAdjust eAdjust);
|
||||||
|
|
||||||
virtual enumXFStyle GetStyleFamily() override;
|
virtual enumXFStyle GetStyleFamily() override;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user