Kaydet (Commit) 5a6d6429 authored tarafından Ashod Nakashian's avatar Ashod Nakashian Kaydeden (comit) Ashod Nakashian

sw: non-functional minor cleanup

Change-Id: I94e34214e49de02e0922f85d5e799926a000d8e3
Reviewed-on: https://gerrit.libreoffice.org/40344Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarAshod Nakashian <ashnakash@gmail.com>
üst 425c68a3
......@@ -37,7 +37,6 @@ class SwFrameFormat;
class SwDrawFrameFormat;
class SwFlyFrameFormat;
class SwNodeIndex;
class SwFormatField;
namespace utl { class TransliterationWrapper; }
namespace svt { class EmbeddedObjectRef; }
......
......@@ -24,8 +24,6 @@
#include "swdbdata.hxx"
class SwDoc;
class SwTextField;
class SwFrame;
// Database field.
class SW_DLLPUBLIC SwDBFieldType : public SwValueFieldType
......
......@@ -32,7 +32,6 @@ class SwTextField;
class SwFrame;
class OutlinerParaObject;
class SwTextAPIObject;
class SwFormatField;
enum SwAuthorFormat
{
......
......@@ -28,7 +28,6 @@
#include <SidebarWindowsTypes.hxx>
class SfxBroadcaster;
class SwTextField;
class SwRootFrame;
class SwPostItMgr;
class SwEditWin;
......
......@@ -730,31 +730,31 @@ SwXServiceProvider::MakeInstance(SwServiceType nObjectType, SwDoc & rDoc)
case SwServiceType::FieldTypeDatabaseSetNum:
case SwServiceType::FieldTypeDatabase:
case SwServiceType::FieldTypeDatabaseName:
case SwServiceType::FieldTypePageCount :
case SwServiceType::FieldTypeParagraphCount :
case SwServiceType::FieldTypeWordCount :
case SwServiceType::FieldTypeCharacterCount :
case SwServiceType::FieldTypeTableCount :
case SwServiceType::FieldTypeGraphicObjectCount :
case SwServiceType::FieldTypeEmbeddedObjectCount :
case SwServiceType::FieldTypeDocInfoChangeAuthor :
case SwServiceType::FieldTypeDocInfoChangeDateTime :
case SwServiceType::FieldTypeDocInfoEditTime :
case SwServiceType::FieldTypeDocInfoDescription :
case SwServiceType::FieldTypeDocInfoCreateAuthor :
case SwServiceType::FieldTypeDocInfoCreateDateTime :
case SwServiceType::FieldTypeDocInfoCustom :
case SwServiceType::FieldTypeDocInfoPrintAuthor :
case SwServiceType::FieldTypeDocInfoPrintDateTime :
case SwServiceType::FieldTypeDocInfoKeywords :
case SwServiceType::FieldTypeDocInfoSubject :
case SwServiceType::FieldTypeDocInfoTitle :
case SwServiceType::FieldTypeDocInfoRevision :
case SwServiceType::FieldTypePageCount:
case SwServiceType::FieldTypeParagraphCount:
case SwServiceType::FieldTypeWordCount:
case SwServiceType::FieldTypeCharacterCount:
case SwServiceType::FieldTypeTableCount:
case SwServiceType::FieldTypeGraphicObjectCount:
case SwServiceType::FieldTypeEmbeddedObjectCount:
case SwServiceType::FieldTypeDocInfoChangeAuthor:
case SwServiceType::FieldTypeDocInfoChangeDateTime:
case SwServiceType::FieldTypeDocInfoEditTime:
case SwServiceType::FieldTypeDocInfoDescription:
case SwServiceType::FieldTypeDocInfoCreateAuthor:
case SwServiceType::FieldTypeDocInfoCreateDateTime:
case SwServiceType::FieldTypeDocInfoCustom:
case SwServiceType::FieldTypeDocInfoPrintAuthor:
case SwServiceType::FieldTypeDocInfoPrintDateTime:
case SwServiceType::FieldTypeDocInfoKeywords:
case SwServiceType::FieldTypeDocInfoSubject:
case SwServiceType::FieldTypeDocInfoTitle:
case SwServiceType::FieldTypeDocInfoRevision:
case SwServiceType::FieldTypeBibliography:
case SwServiceType::FieldTypeInputUser :
case SwServiceType::FieldTypeHiddenText :
case SwServiceType::FieldTypeCombinedCharacters :
case SwServiceType::FieldTypeDropdown :
case SwServiceType::FieldTypeInputUser:
case SwServiceType::FieldTypeHiddenText:
case SwServiceType::FieldTypeCombinedCharacters:
case SwServiceType::FieldTypeDropdown:
case SwServiceType::FieldTypeTableFormula:
// NOTE: the sw.SwXAutoTextEntry unoapi test depends on pDoc = 0
xRet = SwXTextField::CreateXTextField(nullptr, nullptr, nObjectType);
......@@ -790,28 +790,28 @@ SwXServiceProvider::MakeInstance(SwServiceType nObjectType, SwDoc & rDoc)
xRet = SwXFieldMaster::CreateXFieldMaster(&rDoc, pType);
}
break;
case SwServiceType::Paragraph :
case SwServiceType::Paragraph:
xRet = SwXParagraph::CreateXParagraph(rDoc, nullptr);
break;
case SwServiceType::NumberingRules :
case SwServiceType::NumberingRules:
xRet = static_cast<cppu::OWeakObject*>(new SwXNumberingRules(rDoc));
break;
case SwServiceType::TextColumns :
case SwServiceType::TextColumns:
xRet = static_cast<cppu::OWeakObject*>(new SwXTextColumns);
break;
case SwServiceType::Defaults:
xRet = static_cast<cppu::OWeakObject*>(new SwXTextDefaults(&rDoc));
break;
case SwServiceType::IMapRectangle :
case SwServiceType::IMapRectangle:
xRet = SvUnoImageMapRectangleObject_createInstance( sw_GetSupportedMacroItems() );
break;
case SwServiceType::IMapCircle :
case SwServiceType::IMapCircle:
xRet = SvUnoImageMapCircleObject_createInstance( sw_GetSupportedMacroItems() );
break;
case SwServiceType::IMapPolygon :
case SwServiceType::IMapPolygon:
xRet = SvUnoImageMapPolygonObject_createInstance( sw_GetSupportedMacroItems() );
break;
case SwServiceType::Chart2DataProvider :
case SwServiceType::Chart2DataProvider:
// #i64497# If a chart is in a temporary document during clipoard
// paste, there should be no data provider, so that own data is used
// This should not happen during copy/paste, as this will unlink
......
......@@ -1495,19 +1495,19 @@ void SAL_CALL SwXTextField::attach(
m_pImpl->m_pProps->sPar1);
}
break;
case SwServiceType::FieldTypeDocInfoChangeAuthor :
case SwServiceType::FieldTypeDocInfoChangeDateTime :
case SwServiceType::FieldTypeDocInfoEditTime :
case SwServiceType::FieldTypeDocInfoDescription :
case SwServiceType::FieldTypeDocInfoCreateAuthor :
case SwServiceType::FieldTypeDocInfoCreateDateTime :
case SwServiceType::FieldTypeDocInfoCustom :
case SwServiceType::FieldTypeDocInfoPrintAuthor :
case SwServiceType::FieldTypeDocInfoPrintDateTime :
case SwServiceType::FieldTypeDocInfoKeywords :
case SwServiceType::FieldTypeDocInfoSubject :
case SwServiceType::FieldTypeDocInfoTitle :
case SwServiceType::FieldTypeDocInfoRevision :
case SwServiceType::FieldTypeDocInfoChangeAuthor:
case SwServiceType::FieldTypeDocInfoChangeDateTime:
case SwServiceType::FieldTypeDocInfoEditTime:
case SwServiceType::FieldTypeDocInfoDescription:
case SwServiceType::FieldTypeDocInfoCreateAuthor:
case SwServiceType::FieldTypeDocInfoCreateDateTime:
case SwServiceType::FieldTypeDocInfoCustom:
case SwServiceType::FieldTypeDocInfoPrintAuthor:
case SwServiceType::FieldTypeDocInfoPrintDateTime:
case SwServiceType::FieldTypeDocInfoKeywords:
case SwServiceType::FieldTypeDocInfoSubject:
case SwServiceType::FieldTypeDocInfoTitle:
case SwServiceType::FieldTypeDocInfoRevision:
case SwServiceType::FieldTypeDocInfo:
{
SwFieldType* pFieldType = pDoc->getIDocumentFieldsAccess().GetSysFieldType(SwFieldIds::DocInfo);
......@@ -1822,13 +1822,13 @@ void SAL_CALL SwXTextField::attach(
m_pImpl->m_pProps->sPar2);
}
break;
case SwServiceType::FieldTypePageCount :
case SwServiceType::FieldTypeParagraphCount :
case SwServiceType::FieldTypeWordCount :
case SwServiceType::FieldTypeCharacterCount :
case SwServiceType::FieldTypeTableCount :
case SwServiceType::FieldTypeGraphicObjectCount :
case SwServiceType::FieldTypeEmbeddedObjectCount :
case SwServiceType::FieldTypePageCount:
case SwServiceType::FieldTypeParagraphCount:
case SwServiceType::FieldTypeWordCount:
case SwServiceType::FieldTypeCharacterCount:
case SwServiceType::FieldTypeTableCount:
case SwServiceType::FieldTypeGraphicObjectCount:
case SwServiceType::FieldTypeEmbeddedObjectCount:
{
sal_uInt16 nSubType = DS_PAGE;
switch (m_pImpl->m_nServiceId)
......@@ -1882,7 +1882,7 @@ void SAL_CALL SwXTextField::attach(
}
break;
case SwServiceType::FieldTypeTableFormula :
case SwServiceType::FieldTypeTableFormula:
{
// create field
sal_uInt16 nType = nsSwGetSetExpType::GSE_FORMULA;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment