summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app
diff options
context:
space:
mode:
authorRobinson Tryon <qubit@runcibility.com>2015-11-25 06:03:10 -0500
committerRobinson Tryon <qubit@runcibility.com>2015-11-25 06:07:38 -0500
commit49c2b9808df8a6b197dec666dfc0cda6321a4306 (patch)
tree045ef4b9b8dfdb06bfbe18cdf773d59f57d5552d /sw/source/uibase/app
parent5470a365f25e5052b4dd74f76aa2196f0d70934b (diff)
bin/rename-sw-abbreviations.shlibreoffice-5-1-branch-point
This commit renames the most annoying abbreviations in Writer (and partially in the shared code too). Change-Id: I77e5134f42f25e3786afa36b7a505c7e3237a9e8
Diffstat (limited to 'sw/source/uibase/app')
-rw-r--r--sw/source/uibase/app/appenv.cxx26
-rw-r--r--sw/source/uibase/app/apphdl.cxx4
-rw-r--r--sw/source/uibase/app/applab.cxx28
-rw-r--r--sw/source/uibase/app/docsh.cxx28
-rw-r--r--sw/source/uibase/app/docsh2.cxx54
-rw-r--r--sw/source/uibase/app/docst.cxx66
6 files changed, 103 insertions, 103 deletions
diff --git a/sw/source/uibase/app/appenv.cxx b/sw/source/uibase/app/appenv.cxx
index cb1436177854..c66094cd0b30 100644
--- a/sw/source/uibase/app/appenv.cxx
+++ b/sw/source/uibase/app/appenv.cxx
@@ -284,12 +284,12 @@ void SwModule::InsertEnv( SfxRequest& rReq )
// Delete frame of the first page
if ( pSh->GotoFly(sSendMark) )
{
- pSh->EnterSelFrmMode();
+ pSh->EnterSelFrameMode();
pSh->DelRight();
}
if ( pSh->GotoFly(sAddrMark) )
{
- pSh->EnterSelFrmMode();
+ pSh->EnterSelFrameMode();
pSh->DelRight();
}
pSh->SttEndDoc(true);
@@ -299,7 +299,7 @@ void SwModule::InsertEnv( SfxRequest& rReq )
pFollow = &pSh->GetPageDesc(pSh->GetCurPageDesc());
// Insert page break
- if ( pSh->IsCrsrInTable() )
+ if ( pSh->IsCursorInTable() )
{
pSh->SplitNode();
pSh->Right( CRSR_SKIP_CHARS, false, 1, false );
@@ -390,7 +390,7 @@ void SwModule::InsertEnv( SfxRequest& rReq )
pDesc->SetUseOn(nsUseOnPage::PD_ALL);
// Page size
- rFormat.SetFormatAttr(SwFormatFrmSize(ATT_FIX_SIZE,
+ rFormat.SetFormatAttr(SwFormatFrameSize(ATT_FIX_SIZE,
nPageW + lLeft, nPageH + lUpper));
// Set type of page numbering
@@ -417,7 +417,7 @@ void SwModule::InsertEnv( SfxRequest& rReq )
pSh->ChgCurPageDesc(*pDesc);
// Insert Frame
- SwFlyFrmAttrMgr aMgr(false, pSh, FRMMGR_TYPE_ENVELP);
+ SwFlyFrameAttrMgr aMgr(false, pSh, FRMMGR_TYPE_ENVELP);
SwFieldMgr aFieldMgr;
aMgr.SetHeightSizeType(ATT_VAR_SIZE);
@@ -430,14 +430,14 @@ void SwModule::InsertEnv( SfxRequest& rReq )
if (rItem.bSend)
{
pSh->SttEndDoc(true);
- aMgr.InsertFlyFrm(FLY_AT_PAGE,
+ aMgr.InsertFlyFrame(FLY_AT_PAGE,
Point(rItem.lSendFromLeft + lLeft, rItem.lSendFromTop + lUpper),
Size (rItem.lAddrFromLeft - rItem.lSendFromLeft, 0));
- pSh->EnterSelFrmMode();
+ pSh->EnterSelFrameMode();
pSh->SetFlyName(sSendMark);
- pSh->UnSelectFrm();
- pSh->LeaveSelFrmMode();
+ pSh->UnSelectFrame();
+ pSh->LeaveSelFrameMode();
pSh->SetTextFormatColl( pSend );
InsertLabEnvText( *pSh, aFieldMgr, rItem.aSendText );
aMgr.UpdateAttrMgr();
@@ -446,13 +446,13 @@ void SwModule::InsertEnv( SfxRequest& rReq )
// Addressee
pSh->SttEndDoc(true);
- aMgr.InsertFlyFrm(FLY_AT_PAGE,
+ aMgr.InsertFlyFrame(FLY_AT_PAGE,
Point(rItem.lAddrFromLeft + lLeft, rItem.lAddrFromTop + lUpper),
Size (nPageW - rItem.lAddrFromLeft - 566, 0));
- pSh->EnterSelFrmMode();
+ pSh->EnterSelFrameMode();
pSh->SetFlyName(sAddrMark);
- pSh->UnSelectFrm();
- pSh->LeaveSelFrmMode();
+ pSh->UnSelectFrame();
+ pSh->LeaveSelFrameMode();
pSh->SetTextFormatColl( pAddr );
InsertLabEnvText(*pSh, aFieldMgr, rItem.aAddrText);
diff --git a/sw/source/uibase/app/apphdl.cxx b/sw/source/uibase/app/apphdl.cxx
index 567a65c1bb43..39ed27367a19 100644
--- a/sw/source/uibase/app/apphdl.cxx
+++ b/sw/source/uibase/app/apphdl.cxx
@@ -252,8 +252,8 @@ SwView* lcl_LoadDoc(SwView* pView, const OUString& rURL)
const SfxFrameItem* pItem = static_cast<const SfxFrameItem*>(
pView->GetViewFrame()->GetDispatcher()->Execute(SID_NEWDOCDIRECT,
SfxCallMode::SYNCHRON, &aFactory, 0L));
- SfxFrame* pFrm = pItem ? pItem->GetFrame() : nullptr;
- SfxViewFrame* pViewFrame = pFrm ? pFrm->GetCurrentViewFrame() : nullptr;
+ SfxFrame* pFrame = pItem ? pItem->GetFrame() : nullptr;
+ SfxViewFrame* pViewFrame = pFrame ? pFrame->GetCurrentViewFrame() : nullptr;
pNewView = pViewFrame ? dynamic_cast<SwView*>( pViewFrame->GetViewShell() ) : nullptr;
}
diff --git a/sw/source/uibase/app/applab.cxx b/sw/source/uibase/app/applab.cxx
index 2ed4f30e23e8..d49a4e428d7a 100644
--- a/sw/source/uibase/app/applab.cxx
+++ b/sw/source/uibase/app/applab.cxx
@@ -96,10 +96,10 @@ static const SwFrameFormat *lcl_InsertBCText( SwWrtShell& rSh, const SwLabItem&
text::HoriOrientation::NONE, text::RelOrientation::PAGE_FRAME ) );
aSet.Put( SwFormatVertOrient( rItem.m_lUpper + static_cast<SwTwips>(nRow) * rItem.m_lVDist,
text::VertOrientation::NONE, text::RelOrientation::PAGE_FRAME ) );
- const SwFrameFormat *pFormat = rSh.NewFlyFrm(aSet, true, &rFormat ); // Insert Fly
+ const SwFrameFormat *pFormat = rSh.NewFlyFrame(aSet, true, &rFormat ); // Insert Fly
OSL_ENSURE( pFormat, "Fly not inserted" );
- rSh.UnSelectFrm(); //Frame was selected automatically
+ rSh.UnSelectFrame(); //Frame was selected automatically
rSh.SetTextFormatColl( rSh.GetTextCollFromPool( RES_POOLCOLL_STANDARD ) );
@@ -133,10 +133,10 @@ static const SwFrameFormat *lcl_InsertLabText( SwWrtShell& rSh, const SwLabItem&
text::HoriOrientation::NONE, text::RelOrientation::PAGE_FRAME ) );
aSet.Put( SwFormatVertOrient( rItem.m_lUpper + static_cast<SwTwips>(nRow) * rItem.m_lVDist,
text::VertOrientation::NONE, text::RelOrientation::PAGE_FRAME ) );
- const SwFrameFormat *pFormat = rSh.NewFlyFrm(aSet, true, &rFormat ); // Insert Fly
+ const SwFrameFormat *pFormat = rSh.NewFlyFrame(aSet, true, &rFormat ); // Insert Fly
OSL_ENSURE( pFormat, "Fly not inserted" );
- rSh.UnSelectFrm(); //Frame was selected automatically
+ rSh.UnSelectFrame(); //Frame was selected automatically
rSh.SetTextFormatColl( rSh.GetTextCollFromPool( RES_POOLCOLL_STANDARD ) );
@@ -262,7 +262,7 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
long lPgWidth, lPgHeight;
lPgWidth = (rItem.m_lPWidth > MINLAY ? rItem.m_lPWidth : MINLAY);
lPgHeight = (rItem.m_lPHeight > MINLAY ? rItem.m_lPHeight : MINLAY);
- rFormat.SetFormatAttr( SwFormatFrmSize( ATT_FIX_SIZE, lPgWidth, lPgHeight ));
+ rFormat.SetFormatAttr( SwFormatFrameSize( ATT_FIX_SIZE, lPgWidth, lPgHeight ));
// Numbering type
SvxNumberType aType;
aType.SetNumberingType(SVX_NUM_NUMBER_NONE);
@@ -292,21 +292,21 @@ void SwModule::InsertLab(SfxRequest& rReq, bool bLabel)
sal_Int32 iResultHeight = rItem.m_lUpper + (rItem.m_nRows - 1) * rItem.m_lVDist + rItem.m_lHeight - rItem.m_lPHeight;
sal_Int32 iWidth = (iResultWidth > 0 ? rItem.m_lWidth - (iResultWidth / rItem.m_nCols) - 1 : rItem.m_lWidth);
sal_Int32 iHeight = (iResultHeight > 0 ? rItem.m_lHeight - (iResultHeight / rItem.m_nRows) - 1 : rItem.m_lHeight);
- SwFormatFrmSize aFrmSize( ATT_FIX_SIZE, iWidth, iHeight );
- pFormat->SetFormatAttr( aFrmSize );
+ SwFormatFrameSize aFrameSize( ATT_FIX_SIZE, iWidth, iHeight );
+ pFormat->SetFormatAttr( aFrameSize );
//frame represents label itself, no border space
- SvxULSpaceItem aFrmNoULSpace( 0, 0, RES_UL_SPACE );
- SvxLRSpaceItem aFrmNoLRSpace( 0, 0, 0, 0, RES_LR_SPACE );
- pFormat->SetFormatAttr( aFrmNoULSpace );
- pFormat->SetFormatAttr( aFrmNoLRSpace );
+ SvxULSpaceItem aFrameNoULSpace( 0, 0, RES_UL_SPACE );
+ SvxLRSpaceItem aFrameNoLRSpace( 0, 0, 0, 0, RES_LR_SPACE );
+ pFormat->SetFormatAttr( aFrameNoULSpace );
+ pFormat->SetFormatAttr( aFrameNoLRSpace );
const SwFrameFormat *pFirstFlyFormat = nullptr;
if ( rItem.m_bPage )
{
- SwFormatVertOrient aFrmVertOrient( pFormat->GetVertOrient() );
- aFrmVertOrient.SetVertOrient( text::VertOrientation::TOP );
- pFormat->SetFormatAttr(aFrmVertOrient);
+ SwFormatVertOrient aFrameVertOrient( pFormat->GetVertOrient() );
+ aFrameVertOrient.SetVertOrient( text::VertOrientation::TOP );
+ pFormat->SetFormatAttr(aFrameVertOrient);
for ( sal_Int32 i = 0; i < rItem.m_nRows; ++i )
{
diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 4f3d186d473b..72533e5f6f1b 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -160,7 +160,7 @@ bool SwDocShell::InsertGeneratedStream(SfxMedium & rMedium,
// Prepare loading
Reader* SwDocShell::StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr,
- SwCrsrShell *pCrsrShell,
+ SwCursorShell *pCursorShell,
SwPaM* pPaM )
{
bool bAPICall = false;
@@ -189,8 +189,8 @@ Reader* SwDocShell::StartConvertFrom(SfxMedium& rMedium, SwReader** ppRdr,
: SW_STREAM_READER & pRead->GetReaderType() )
{
*ppRdr = pPaM ? new SwReader( rMedium, aFileName, *pPaM ) :
- pCrsrShell ?
- new SwReader( rMedium, aFileName, *pCrsrShell->GetCrsr() )
+ pCursorShell ?
+ new SwReader( rMedium, aFileName, *pCursorShell->GetCursor() )
: new SwReader( rMedium, aFileName, m_pDoc );
}
else
@@ -368,11 +368,11 @@ bool SwDocShell::Save()
}
SetError( nErr ? nErr : nVBWarning, OSL_LOG_PREFIX );
- SfxViewFrame *const pFrm =
+ SfxViewFrame *const pFrame =
(m_pWrtShell) ? m_pWrtShell->GetView().GetViewFrame() : nullptr;
- if( pFrm )
+ if( pFrame )
{
- pFrm->GetBindings().SetState(SfxBoolItem(SID_DOC_MODIFIED, false));
+ pFrame->GetBindings().SetState(SfxBoolItem(SID_DOC_MODIFIED, false));
}
return !IsError( nErr );
}
@@ -516,7 +516,7 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium )
// Increase RSID
m_pDoc->setRsid( m_pDoc->getRsid() );
- m_pDoc->cleanupUnoCrsrTable();
+ m_pDoc->cleanupUnoCursorTable();
}
SetError( nErr ? nErr : nVBWarning, OSL_LOG_PREFIX );
@@ -876,7 +876,7 @@ Rectangle SwDocShell::GetVisArea( sal_uInt16 nAspect ) const
SwNodeIndex aIdx( m_pDoc->GetNodes().GetEndOfExtras(), 1 );
SwContentNode* pNd = m_pDoc->GetNodes().GoNext( &aIdx );
- const SwRect aPageRect = pNd->FindPageFrmRect();
+ const SwRect aPageRect = pNd->FindPageFrameRect();
Rectangle aRect(aPageRect.SVRect());
// tdf#81219 sanitize - nobody is interested in a thumbnail where's
@@ -963,16 +963,16 @@ void SwDocShell::GetState(SfxItemSet& rSet)
// Disable "multiple layout"
if ( !bDisable )
{
- SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this);
- while (pTmpFrm) // Look for Preview
+ SfxViewFrame *pTmpFrame = SfxViewFrame::GetFirst(this);
+ while (pTmpFrame) // Look for Preview
{
- if ( dynamic_cast<SwView*>( pTmpFrm->GetViewShell() ) &&
- static_cast<SwView*>(pTmpFrm->GetViewShell())->GetWrtShell().GetViewOptions()->getBrowseMode() )
+ if ( dynamic_cast<SwView*>( pTmpFrame->GetViewShell() ) &&
+ static_cast<SwView*>(pTmpFrame->GetViewShell())->GetWrtShell().GetViewOptions()->getBrowseMode() )
{
bDisable = true;
break;
}
- pTmpFrm = SfxViewFrame::GetNext(*pTmpFrm, this);
+ pTmpFrame = SfxViewFrame::GetNext(*pTmpFrame, this);
}
}
// End of disabled "multiple layout"
@@ -1179,7 +1179,7 @@ void SwDocShell::RemoveOLEObjects()
// When a document is loaded, SwDoc::PrtOLENotify is called to update
// the sizes of math objects. However, for objects that do not have a
-// SwFrm at this time, only a flag is set (bIsOLESizeInvalid) and the
+// SwFrame at this time, only a flag is set (bIsOLESizeInvalid) and the
// size change takes place later, while calculating the layout in the
// idle handler. If this document is saved now, it is saved with invalid
// sizes. For this reason, the layout has to be calculated before a document is
diff --git a/sw/source/uibase/app/docsh2.cxx b/sw/source/uibase/app/docsh2.cxx
index 5b2d95aa3b3e..6897ac4a7f71 100644
--- a/sw/source/uibase/app/docsh2.cxx
+++ b/sw/source/uibase/app/docsh2.cxx
@@ -170,16 +170,16 @@ void SwDocShell::ToggleLayoutMode(SwView* pView)
if( !GetDoc()->getIDocumentDeviceAccess().getPrinter( false ) )
pView->SetPrinter( GetDoc()->getIDocumentDeviceAccess().getPrinter( false ), SfxPrinterChangeFlags::PRINTER | SfxPrinterChangeFlags::JOBSETUP );
GetDoc()->CheckDefaultPageFormat();
- SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this, false);
- while (pTmpFrm)
+ SfxViewFrame *pTmpFrame = SfxViewFrame::GetFirst(this, false);
+ while (pTmpFrame)
{
- if( pTmpFrm != pView->GetViewFrame() )
+ if( pTmpFrame != pView->GetViewFrame() )
{
- pTmpFrm->DoClose();
- pTmpFrm = SfxViewFrame::GetFirst(this, false);
+ pTmpFrame->DoClose();
+ pTmpFrame = SfxViewFrame::GetFirst(this, false);
}
else
- pTmpFrm = SfxViewFrame::GetNext(*pTmpFrm, this, false);
+ pTmpFrame = SfxViewFrame::GetNext(*pTmpFrame, this, false);
}
pView->GetWrtShell().InvalidateLayout(true);
@@ -410,23 +410,23 @@ void SwDocShell::Execute(SfxRequest& rReq)
{
bool bSet = false;
bool bFound = false, bOnly = true;
- SfxViewFrame *pTmpFrm = SfxViewFrame::GetFirst(this);
+ SfxViewFrame *pTmpFrame = SfxViewFrame::GetFirst(this);
SfxViewShell* pViewShell = SfxViewShell::Current();
SwView* pCurrView = dynamic_cast< SwView *> ( pViewShell );
bool bCurrent = typeid(SwPagePreview) == typeid( pViewShell );
- while( pTmpFrm ) // search Preview
+ while( pTmpFrame ) // search Preview
{
- if( typeid(SwView) == typeid( pTmpFrm->GetViewShell()) )
+ if( typeid(SwView) == typeid( pTmpFrame->GetViewShell()) )
bOnly = false;
- else if( typeid(SwPagePreview) == typeid( pTmpFrm->GetViewShell()))
+ else if( typeid(SwPagePreview) == typeid( pTmpFrame->GetViewShell()))
{
- pTmpFrm->GetFrame().Appear();
+ pTmpFrame->GetFrame().Appear();
bFound = true;
}
if( bFound && !bOnly )
break;
- pTmpFrm = SfxViewFrame::GetNext(*pTmpFrm, this);
+ pTmpFrame = SfxViewFrame::GetNext(*pTmpFrame, this);
}
if( pArgs && SfxItemState::SET ==
@@ -449,12 +449,12 @@ void SwDocShell::Execute(SfxRequest& rReq)
nSlotId = SID_VIEWSHELL2;
if( pCurrView && pCurrView->GetDocShell() == this )
- pTmpFrm = pCurrView->GetViewFrame();
+ pTmpFrame = pCurrView->GetViewFrame();
else
- pTmpFrm = SfxViewFrame::GetFirst( this );
+ pTmpFrame = SfxViewFrame::GetFirst( this );
- if (pTmpFrm)
- pTmpFrm->GetDispatcher()->Execute( nSlotId, SfxCallMode::ASYNCHRON );
+ if (pTmpFrame)
+ pTmpFrame->GetDispatcher()->Execute( nSlotId, SfxCallMode::ASYNCHRON );
}
rReq.SetReturnValue(SfxBoolItem(SID_PRINTPREVIEW, bSet ));
@@ -584,7 +584,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
SfxViewShell* pViewShell = GetView()
? static_cast<SfxViewShell*>(GetView())
: SfxViewShell::Current();
- SfxViewFrame* pViewFrm = pViewShell->GetViewFrame();
+ SfxViewFrame* pViewFrame = pViewShell->GetViewFrame();
SwSrcView* pSrcView = dynamic_cast< SwSrcView *>( pViewShell );
if(!pSrcView)
{
@@ -603,7 +603,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
const SfxFilter* pFlt = GetMedium()->GetFilter();
if(!pFlt || pFlt->GetUserData() != pHtmlFlt->GetUserData())
{
- ScopedVclPtrInstance<MessageDialog> aQuery(&pViewFrm->GetWindow(),
+ ScopedVclPtrInstance<MessageDialog> aQuery(&pViewFrame->GetWindow(),
"SaveAsHTMLDialog", "modules/swriter/ui/saveashtmldialog.ui");
if(RET_YES == aQuery->Execute())
@@ -625,7 +625,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
SfxStringItem aName(SID_FILE_NAME, sPath);
SfxStringItem aFilter(SID_FILTER_NAME, pHtmlFlt->GetName());
const SfxBoolItem* pBool = static_cast<const SfxBoolItem*>(
- pViewFrm->GetDispatcher()->Execute(
+ pViewFrame->GetDispatcher()->Execute(
SID_SAVEASDOC, SfxCallMode::SYNCHRON, &aName, &aFilter, 0L ));
if(!pBool || !pBool->GetValue())
break;
@@ -665,7 +665,7 @@ void SwDocShell::Execute(SfxRequest& rReq)
}
}
if(nSlot)
- pViewFrm->GetDispatcher()->Execute(nSlot, SfxCallMode::SYNCHRON);
+ pViewFrame->GetDispatcher()->Execute(nSlot, SfxCallMode::SYNCHRON);
if(bSetModified)
GetDoc()->getIDocumentState().SetModified();
if(pSavePrinter)
@@ -673,10 +673,10 @@ void SwDocShell::Execute(SfxRequest& rReq)
GetDoc()->getIDocumentDeviceAccess().setPrinter( pSavePrinter, true, true);
//pSavePrinter must not be deleted again
}
- pViewFrm->GetBindings().SetState(SfxBoolItem(SID_SOURCEVIEW, nSlot == SID_VIEWSHELL2));
- pViewFrm->GetBindings().Invalidate( SID_NEWWINDOW );
- pViewFrm->GetBindings().Invalidate( SID_BROWSER_MODE );
- pViewFrm->GetBindings().Invalidate( FN_PRINT_LAYOUT );
+ pViewFrame->GetBindings().SetState(SfxBoolItem(SID_SOURCEVIEW, nSlot == SID_VIEWSHELL2));
+ pViewFrame->GetBindings().Invalidate( SID_NEWWINDOW );
+ pViewFrame->GetBindings().Invalidate( SID_BROWSER_MODE );
+ pViewFrame->GetBindings().Invalidate( FN_PRINT_LAYOUT );
}
break;
case SID_GET_COLORLIST:
@@ -1336,8 +1336,8 @@ void SwDocShell::ReloadFromHtml( const OUString& rStreamName, SwSrcView* pSrcVie
SfxViewShell* pViewShell = GetView() ? static_cast<SfxViewShell*>(GetView())
: SfxViewShell::Current();
- SfxViewFrame* pViewFrm = pViewShell->GetViewFrame();
- pViewFrm->GetDispatcher()->Execute( SID_VIEWSHELL0, SfxCallMode::SYNCHRON );
+ SfxViewFrame* pViewFrame = pViewShell->GetViewFrame();
+ pViewFrame->GetDispatcher()->Execute( SID_VIEWSHELL0, SfxCallMode::SYNCHRON );
SubInitNew();
@@ -1432,7 +1432,7 @@ sal_uLong SwDocShell::LoadStylesFromFile( const OUString& rURL,
}
else
{
- pReader.reset(new SwReader( aMed, rURL, *m_pWrtShell->GetCrsr() ));
+ pReader.reset(new SwReader( aMed, rURL, *m_pWrtShell->GetCursor() ));
}
pRead->GetReaderOpt().SetTextFormats( rOpt.IsTextFormats() );
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index 2dcb6f944397..e29f91098dce 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -127,7 +127,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
case SID_STYLE_APPLY:
{// here the template and its family are passed to the StyleBox
// so that this family is being showed
- if(pShell->IsFrmSelected())
+ if(pShell->IsFrameSelected())
{
SwFrameFormat* pFormat = pShell->GetSelectedFrameFormat();
if( pFormat )
@@ -143,7 +143,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
}
break;
case SID_STYLE_FAMILY1:
- if( !pShell->IsFrmSelected() )
+ if( !pShell->IsFrameSelected() )
{
SwCharFormat* pFormat = pShell->GetCurCharFormat();
if(pFormat)
@@ -156,7 +156,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
break;
case SID_STYLE_FAMILY2:
- if(!pShell->IsFrmSelected())
+ if(!pShell->IsFrameSelected())
{
SwTextFormatColl* pColl = pShell->GetCurTextFormatColl();
if(pColl)
@@ -169,15 +169,15 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
nMask = SWSTYLEBIT_HTML;
else
{
- const FrmTypeFlags nSelection = pShell->GetFrmType(nullptr,true);
+ const FrameTypeFlags nSelection = pShell->GetFrameType(nullptr,true);
if(pShell->GetCurTOX())
nMask = SWSTYLEBIT_IDX ;
- else if(nSelection & FrmTypeFlags::HEADER ||
- nSelection & FrmTypeFlags::FOOTER ||
- nSelection & FrmTypeFlags::TABLE ||
- nSelection & FrmTypeFlags::FLY_ANY ||
- nSelection & FrmTypeFlags::FOOTNOTE ||
- nSelection & FrmTypeFlags::FTNPAGE)
+ else if(nSelection & FrameTypeFlags::HEADER ||
+ nSelection & FrameTypeFlags::FOOTER ||
+ nSelection & FrameTypeFlags::TABLE ||
+ nSelection & FrameTypeFlags::FLY_ANY ||
+ nSelection & FrameTypeFlags::FOOTNOTE ||
+ nSelection & FrameTypeFlags::FTNPAGE)
nMask = SWSTYLEBIT_EXTRA;
else
nMask = SWSTYLEBIT_TEXT;
@@ -196,7 +196,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
else
{
SwFrameFormat* pFormat = pShell->GetSelectedFrameFormat();
- if(pFormat && pShell->IsFrmSelected())
+ if(pFormat && pShell->IsFrameSelected())
{
aName = pFormat->GetName();
rSet.Put(SfxTemplateItem(nWhich, aName));
@@ -221,7 +221,7 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
break;
case SID_STYLE_FAMILY5:
{
- const SwNumRule* pRule = pShell->GetNumRuleAtCurrCrsrPos();
+ const SwNumRule* pRule = pShell->GetNumRuleAtCurrCursorPos();
if( pRule )
aName = pRule->GetName();
@@ -237,21 +237,21 @@ void SwDocShell::StateStyleSheet(SfxItemSet& rSet, SwWrtShell* pSh)
}
break;
case SID_STYLE_UPDATE_BY_EXAMPLE:
- if( pShell->IsFrmSelected()
+ if( pShell->IsFrameSelected()
? SFX_STYLE_FAMILY_FRAME != nActualFamily
: ( SFX_STYLE_FAMILY_FRAME == nActualFamily ||
SFX_STYLE_FAMILY_PAGE == nActualFamily ||
- (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetNumRuleAtCurrCrsrPos())) )
+ (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetNumRuleAtCurrCursorPos())) )
{
rSet.DisableItem( nWhich );
}
break;
case SID_STYLE_NEW_BY_EXAMPLE:
- if( (pShell->IsFrmSelected()
+ if( (pShell->IsFrameSelected()
? SFX_STYLE_FAMILY_FRAME != nActualFamily
: SFX_STYLE_FAMILY_FRAME == nActualFamily) ||
- (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetNumRuleAtCurrCrsrPos()) )
+ (SFX_STYLE_FAMILY_PSEUDO == nActualFamily && !pShell->GetNumRuleAtCurrCursorPos()) )
{
rSet.DisableItem( nWhich );
}
@@ -429,9 +429,9 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq )
break;
case SFX_STYLE_FAMILY_FRAME:
{
- SwFrameFormat* pFrm = m_pWrtShell->GetSelectedFrameFormat();
- if( pFrm )
- aParam = pFrm->GetName();
+ SwFrameFormat* pFrame = m_pWrtShell->GetSelectedFrameFormat();
+ if( pFrame )
+ aParam = pFrame->GetName();
}
break;
case SFX_STYLE_FAMILY_CHAR:
@@ -936,7 +936,7 @@ sal_uInt16 SwDocShell::ApplyStyles(const OUString &rName, sal_uInt16 nFamily,
}
case SFX_STYLE_FAMILY_FRAME:
{
- if ( pSh->IsFrmSelected() )
+ if ( pSh->IsFrameSelected() )
pSh->SetFrameFormat( pStyle->GetFrameFormat() );
break;
}
@@ -1051,21 +1051,21 @@ sal_uInt16 SwDocShell::UpdateStyle(const OUString &rName, sal_uInt16 nFamily, Sw
}
case SFX_STYLE_FAMILY_FRAME:
{
- SwFrameFormat* pFrm = pStyle->GetFrameFormat();
- if( pCurrWrtShell->IsFrmSelected() && pFrm && !pFrm->IsDefault() )
+ SwFrameFormat* pFrame = pStyle->GetFrameFormat();
+ if( pCurrWrtShell->IsFrameSelected() && pFrame && !pFrame->IsDefault() )
{
SfxItemSet aSet( GetPool(), aFrameFormatSetRange );
pCurrWrtShell->StartAllAction();
- pCurrWrtShell->GetFlyFrmAttr( aSet );
+ pCurrWrtShell->GetFlyFrameAttr( aSet );
// #i105535#
// no update of anchor attribute
aSet.ClearItem( RES_ANCHOR );
- pFrm->SetFormatAttr( aSet );
+ pFrame->SetFormatAttr( aSet );
// also apply template to remove hard set attributes
- pCurrWrtShell->SetFrameFormat( pFrm, true );
+ pCurrWrtShell->SetFrameFormat( pFrame, true );
pCurrWrtShell->EndAllAction();
}
}
@@ -1087,7 +1087,7 @@ sal_uInt16 SwDocShell::UpdateStyle(const OUString &rName, sal_uInt16 nFamily, Sw
{
const SwNumRule* pCurRule;
if( pStyle->GetNumRule() &&
- nullptr != ( pCurRule = pCurrWrtShell->GetNumRuleAtCurrCrsrPos() ))
+ nullptr != ( pCurRule = pCurrWrtShell->GetNumRuleAtCurrCursorPos() ))
{
SwNumRule aRule( *pCurRule );
// #i91400#
@@ -1165,20 +1165,20 @@ sal_uInt16 SwDocShell::MakeByExample( const OUString &rName, sal_uInt16 nFamily,
break;
case SFX_STYLE_FAMILY_FRAME:
{
- SwFrameFormat* pFrm = pStyle->GetFrameFormat();
- if(pCurrWrtShell->IsFrmSelected() && pFrm && !pFrm->IsDefault())
+ SwFrameFormat* pFrame = pStyle->GetFrameFormat();
+ if(pCurrWrtShell->IsFrameSelected() && pFrame && !pFrame->IsDefault())
{
pCurrWrtShell->StartAllAction();
SfxItemSet aSet(GetPool(), aFrameFormatSetRange );
- pCurrWrtShell->GetFlyFrmAttr( aSet );
+ pCurrWrtShell->GetFlyFrameAttr( aSet );
SwFrameFormat* pFFormat = pCurrWrtShell->GetSelectedFrameFormat();
- pFrm->SetDerivedFrom( pFFormat );
+ pFrame->SetDerivedFrom( pFFormat );
- pFrm->SetFormatAttr( aSet );
+ pFrame->SetFormatAttr( aSet );
// also apply template to remove hard set attributes
- pCurrWrtShell->SetFrameFormat( pFrm );
+ pCurrWrtShell->SetFrameFormat( pFrame );
pCurrWrtShell->EndAllAction();
}
}
@@ -1225,7 +1225,7 @@ sal_uInt16 SwDocShell::MakeByExample( const OUString &rName, sal_uInt16 nFamily,
case SFX_STYLE_FAMILY_PSEUDO:
{
- const SwNumRule* pCurRule = pCurrWrtShell->GetNumRuleAtCurrCrsrPos();
+ const SwNumRule* pCurRule = pCurrWrtShell->GetNumRuleAtCurrCursorPos();
if (pCurRule)
{