Typo: existance->existance
Change-Id: If6927f3b9e983d41ec957997a26d235b8be378a5 Reviewed-on: https://gerrit.libreoffice.org/38934 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
This commit is contained in:
parent
86bc372bf9
commit
097de810da
@ -167,7 +167,7 @@ class SwPostItMgr: public SfxListener
|
|||||||
|
|
||||||
typedef std::list<sw::annotation::SwAnnotationWin*>::iterator SwAnnotationWin_iterator;
|
typedef std::list<sw::annotation::SwAnnotationWin*>::iterator SwAnnotationWin_iterator;
|
||||||
|
|
||||||
void AddPostIts(bool bCheckExistance = true,bool bFocus = true);
|
void AddPostIts(bool bCheckExistence = true,bool bFocus = true);
|
||||||
void RemoveSidebarWin();
|
void RemoveSidebarWin();
|
||||||
void PreparePageContainer();
|
void PreparePageContainer();
|
||||||
void Scroll(const long lScroll,const unsigned long aPage );
|
void Scroll(const long lScroll,const unsigned long aPage );
|
||||||
@ -190,7 +190,7 @@ class SwPostItMgr: public SfxListener
|
|||||||
|
|
||||||
sw::annotation::SwAnnotationWin* GetSidebarWin(const SfxBroadcaster* pBroadcaster) const;
|
sw::annotation::SwAnnotationWin* GetSidebarWin(const SfxBroadcaster* pBroadcaster) const;
|
||||||
|
|
||||||
SwSidebarItem* InsertItem( SfxBroadcaster* pItem, bool bCheckExistance, bool bFocus);
|
SwSidebarItem* InsertItem( SfxBroadcaster* pItem, bool bCheckExistence, bool bFocus);
|
||||||
void RemoveItem( SfxBroadcaster* pBroadcast );
|
void RemoveItem( SfxBroadcaster* pBroadcast );
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -278,10 +278,10 @@ void SwPostItMgr::CheckForRemovedPostIts()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SwSidebarItem* SwPostItMgr::InsertItem(SfxBroadcaster* pItem, bool bCheckExistance, bool bFocus)
|
SwSidebarItem* SwPostItMgr::InsertItem(SfxBroadcaster* pItem, bool bCheckExistence, bool bFocus)
|
||||||
{
|
{
|
||||||
SwSidebarItem* pAnnotationItem = nullptr;
|
SwSidebarItem* pAnnotationItem = nullptr;
|
||||||
if (bCheckExistance)
|
if (bCheckExistence)
|
||||||
{
|
{
|
||||||
for(std::list<SwSidebarItem*>::iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i)
|
for(std::list<SwSidebarItem*>::iterator i = mvPostItFields.begin(); i != mvPostItFields.end() ; ++i)
|
||||||
{
|
{
|
||||||
@ -1297,7 +1297,7 @@ bool SwPostItMgr::LayoutByPage(std::list<SwAnnotationWin*> &aVisiblePostItList,
|
|||||||
return bScrollbars;
|
return bScrollbars;
|
||||||
}
|
}
|
||||||
|
|
||||||
void SwPostItMgr::AddPostIts(bool bCheckExistance, bool bFocus)
|
void SwPostItMgr::AddPostIts(bool bCheckExistence, bool bFocus)
|
||||||
{
|
{
|
||||||
bool bEmpty = mvPostItFields.empty();
|
bool bEmpty = mvPostItFields.empty();
|
||||||
SwFieldType* pType = mpView->GetDocShell()->GetDoc()->getIDocumentFieldsAccess().GetFieldType(SwFieldIds::Postit, OUString(),false);
|
SwFieldType* pType = mpView->GetDocShell()->GetDoc()->getIDocumentFieldsAccess().GetFieldType(SwFieldIds::Postit, OUString(),false);
|
||||||
@ -1308,7 +1308,7 @@ void SwPostItMgr::AddPostIts(bool bCheckExistance, bool bFocus)
|
|||||||
if ( pSwFormatField->GetTextField())
|
if ( pSwFormatField->GetTextField())
|
||||||
{
|
{
|
||||||
if ( pSwFormatField->IsFieldInDoc() )
|
if ( pSwFormatField->IsFieldInDoc() )
|
||||||
InsertItem(pSwFormatField,bCheckExistance,bFocus);
|
InsertItem(pSwFormatField,bCheckExistence,bFocus);
|
||||||
}
|
}
|
||||||
pSwFormatField = aIter.Next();
|
pSwFormatField = aIter.Next();
|
||||||
}
|
}
|
||||||
|
@ -1125,7 +1125,7 @@ void Databases::setInstallPath( const OUString& aInstDir )
|
|||||||
|
|
||||||
// class ExtensionIteratorBase
|
// class ExtensionIteratorBase
|
||||||
|
|
||||||
ExtensionHelpExistanceMap ExtensionIteratorBase::aHelpExistanceMap;
|
ExtensionHelpExistenceMap ExtensionIteratorBase::aHelpExistenceMap;
|
||||||
|
|
||||||
ExtensionIteratorBase::ExtensionIteratorBase( Reference< XComponentContext > const & xContext,
|
ExtensionIteratorBase::ExtensionIteratorBase( Reference< XComponentContext > const & xContext,
|
||||||
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage )
|
Databases& rDatabases, const OUString& aInitialModule, const OUString& aLanguage )
|
||||||
@ -1173,8 +1173,8 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromP
|
|||||||
|
|
||||||
// #i84550 Cache information about help content in extension
|
// #i84550 Cache information about help content in extension
|
||||||
OUString aExtensionPath = xPackage->getURL();
|
OUString aExtensionPath = xPackage->getURL();
|
||||||
ExtensionHelpExistanceMap::iterator it = aHelpExistanceMap.find( aExtensionPath );
|
ExtensionHelpExistenceMap::iterator it = aHelpExistenceMap.find( aExtensionPath );
|
||||||
bool bFound = ( it != aHelpExistanceMap.end() );
|
bool bFound = ( it != aHelpExistenceMap.end() );
|
||||||
bool bHasHelp = bFound && it->second;
|
bool bHasHelp = bFound && it->second;
|
||||||
if( bFound && !bHasHelp )
|
if( bFound && !bHasHelp )
|
||||||
return xHelpPackage;
|
return xHelpPackage;
|
||||||
@ -1221,7 +1221,7 @@ Reference< deployment::XPackage > ExtensionIteratorBase::implGetHelpPackageFromP
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( !bFound )
|
if( !bFound )
|
||||||
aHelpExistanceMap[ aExtensionPath ] = xHelpPackage.is();
|
aHelpExistenceMap[ aExtensionPath ] = xHelpPackage.is();
|
||||||
|
|
||||||
return xHelpPackage;
|
return xHelpPackage;
|
||||||
}
|
}
|
||||||
|
@ -314,11 +314,11 @@ namespace chelp {
|
|||||||
bool,
|
bool,
|
||||||
OUStringHash
|
OUStringHash
|
||||||
>
|
>
|
||||||
ExtensionHelpExistanceMap;
|
ExtensionHelpExistenceMap;
|
||||||
|
|
||||||
class ExtensionIteratorBase
|
class ExtensionIteratorBase
|
||||||
{
|
{
|
||||||
static ExtensionHelpExistanceMap aHelpExistanceMap;
|
static ExtensionHelpExistenceMap aHelpExistenceMap;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
ExtensionIteratorBase( css::uno::Reference< css::uno::XComponentContext > const & xContext,
|
ExtensionIteratorBase( css::uno::Reference< css::uno::XComponentContext > const & xContext,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user