Kaydet (Commit) 219458b0 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

Merge commit 'ooo/DEV300_m103'

Conflicts:
	sd/source/ui/toolpanel/TaskPaneFocusManager.cxx
	slideshow/source/engine/debug.cxx
	slideshow/source/engine/transitions/randomwipe.cxx
...@@ -1033,6 +1033,9 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet, ...@@ -1033,6 +1033,9 @@ void SdStyleSheetPool::PutNumBulletItem( SfxStyleSheetBase* pSheet,
{ {
SvxNumberFormat aFrmt( pDefaultRule->GetLevel(i) ); SvxNumberFormat aFrmt( pDefaultRule->GetLevel(i) );
aFrmt.SetNumberingType(SVX_NUM_CHAR_SPECIAL); aFrmt.SetNumberingType(SVX_NUM_CHAR_SPECIAL);
// #i93908# clear suffix for bullet lists
aFrmt.SetPrefix(::rtl::OUString());
aFrmt.SetSuffix(::rtl::OUString());
aFrmt.SetStart(1); aFrmt.SetStart(1);
aFrmt.SetBulletRelSize(45); aFrmt.SetBulletRelSize(45);
aFrmt.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34 aFrmt.SetBulletChar( 0x25CF ); // StarBats: 0xF000 + 34
......
...@@ -144,6 +144,10 @@ ModuleController::~ModuleController (void) throw() ...@@ -144,6 +144,10 @@ ModuleController::~ModuleController (void) throw()
void SAL_CALL ModuleController::disposing (void) void SAL_CALL ModuleController::disposing (void)
{ {
// Break the cyclic reference back to DrawController object
mpLoadedFactories.reset();
mpResourceToFactoryMap.reset();
mxController.clear();
} }
......
...@@ -204,11 +204,11 @@ void FuHangulHanjaConversion::ConvertStyles( sal_Int16 nTargetLanguage, const Fo ...@@ -204,11 +204,11 @@ void FuHangulHanjaConversion::ConvertStyles( sal_Int16 nTargetLanguage, const Fo
{ {
// set new font attribute // set new font attribute
SvxFontItem aFontItem( (SvxFontItem&) rSet.Get( EE_CHAR_FONTINFO_CJK ) ); SvxFontItem aFontItem( (SvxFontItem&) rSet.Get( EE_CHAR_FONTINFO_CJK ) );
aFontItem.GetFamilyName() = pTargetFont->GetName(); aFontItem.SetFamilyName( pTargetFont->GetName());
aFontItem.GetFamily() = pTargetFont->GetFamily(); aFontItem.SetFamily( pTargetFont->GetFamily());
aFontItem.GetStyleName() = pTargetFont->GetStyleName(); aFontItem.SetStyleName( pTargetFont->GetStyleName());
aFontItem.GetPitch() = pTargetFont->GetPitch(); aFontItem.SetPitch( pTargetFont->GetPitch());
aFontItem.GetCharSet() = pTargetFont->GetCharSet(); aFontItem.SetCharSet( pTargetFont->GetCharSet());
rSet.Put( aFontItem ); rSet.Put( aFontItem );
} }
......
...@@ -499,7 +499,7 @@ void PresenterTextView::Implementation::SetFontDescriptor ( ...@@ -499,7 +499,7 @@ void PresenterTextView::Implementation::SetFontDescriptor (
mpEditEngineItemPool->SetPoolDefaultItem( aFontHeight); mpEditEngineItemPool->SetPoolDefaultItem( aFontHeight);
SvxFontItem aSvxFontItem (EE_CHAR_FONTINFO); SvxFontItem aSvxFontItem (EE_CHAR_FONTINFO);
aSvxFontItem.GetFamilyName() = rFontDescriptor.Name; aSvxFontItem.SetFamilyName( rFontDescriptor.Name );
mpEditEngineItemPool->SetPoolDefaultItem(aSvxFontItem); mpEditEngineItemPool->SetPoolDefaultItem(aSvxFontItem);
mnTotalHeight = -1; mnTotalHeight = -1;
......
...@@ -373,7 +373,12 @@ bool SlideSorterController::Command ( ...@@ -373,7 +373,12 @@ bool SlideSorterController::Command (
{ {
bool bEventHasBeenHandled = false; bool bEventHasBeenHandled = false;
if (pWindow == NULL)
return false;
ViewShell* pViewShell = mrSlideSorter.GetViewShell(); ViewShell* pViewShell = mrSlideSorter.GetViewShell();
if (pViewShell == NULL)
return false;
switch (rEvent.GetCommand()) switch (rEvent.GetCommand())
{ {
......
...@@ -32,9 +32,9 @@ ...@@ -32,9 +32,9 @@
#include "TaskPaneFocusManager.hxx" #include "TaskPaneFocusManager.hxx"
#include <vcl/window.hxx> #include <vcl/window.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/event.hxx> #include <vcl/event.hxx>
#include <rtl/instance.hxx>
#include <boost/unordered_map.hpp> #include <boost/unordered_map.hpp>
namespace { namespace {
...@@ -71,16 +71,23 @@ class FocusManager::LinkMap ...@@ -71,16 +71,23 @@ class FocusManager::LinkMap
FocusManager* FocusManager::spInstance = NULL;
FocusManager& FocusManager::Instance (void) FocusManager& FocusManager::Instance (void)
{ {
static FocusManager* spInstance = NULL;
if (spInstance == NULL) if (spInstance == NULL)
{ {
SolarMutexGuard aGuard; ::osl::MutexGuard aGuard (::osl::Mutex::getGlobalMutex());
if (spInstance == NULL) if (spInstance == NULL)
spInstance = new FocusManager (); {
static FocusManager aInstance;
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
spInstance = &aInstance;
}
}
else
{
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
} }
return *spInstance; return *spInstance;
} }
......
...@@ -104,7 +104,6 @@ public: ...@@ -104,7 +104,6 @@ public:
bool TransferFocus (::Window* pSource, const KeyCode& rCode); bool TransferFocus (::Window* pSource, const KeyCode& rCode);
private: private:
static FocusManager* spInstance;
class LinkMap; class LinkMap;
::std::auto_ptr<LinkMap> mpLinks; ::std::auto_ptr<LinkMap> mpLinks;
......
...@@ -228,7 +228,7 @@ void CurrentMasterPagesSelector::Execute (SfxRequest& rRequest) ...@@ -228,7 +228,7 @@ void CurrentMasterPagesSelector::Execute (SfxRequest& rRequest)
// i.e. is not used. // i.e. is not used.
SdPage* pMasterPage = GetSelectedMasterPage(); SdPage* pMasterPage = GetSelectedMasterPage();
if (pMasterPage != NULL if (pMasterPage != NULL
&& mrDocument.GetMasterPageUserCount(pMasterPage) > 0) && mrDocument.GetMasterPageUserCount(pMasterPage) == 0)
{ {
// Removing the precious flag so that the following call to // Removing the precious flag so that the following call to
// RemoveUnnessesaryMasterPages() will remove this master page. // RemoveUnnessesaryMasterPages() will remove this master page.
......
...@@ -90,7 +90,7 @@ class BaseContainerNode; ...@@ -90,7 +90,7 @@ class BaseContainerNode;
file-private accessor methods. file-private accessor methods.
*/ */
class BaseNode : public AnimationNode, class BaseNode : public AnimationNode,
protected ::osl::DebugBase<BaseNode>, public ::osl::DebugBase<BaseNode>,
private ::boost::noncopyable private ::boost::noncopyable
{ {
public: public:
......
...@@ -308,7 +308,7 @@ DebugTraceScope::DebugTraceScope (const sal_Char* sFormat, ...) ...@@ -308,7 +308,7 @@ DebugTraceScope::DebugTraceScope (const sal_Char* sFormat, ...)
va_start(args, sFormat); va_start(args, sFormat);
msMessage[mnBufferSize-1] = 0; msMessage[mnBufferSize-1] = 0;
snprintf(msMessage, mnBufferSize-1, sFormat, args); vsnprintf(msMessage, mnBufferSize-1, sFormat, args);
TRACE_BEGIN("[ %s", msMessage); TRACE_BEGIN("[ %s", msMessage);
va_end(args); va_end(args);
} }
......
...@@ -66,7 +66,7 @@ namespace slideshow ...@@ -66,7 +66,7 @@ namespace slideshow
class DrawShape : public AttributableShape, class DrawShape : public AttributableShape,
public DocTreeNodeSupplier, public DocTreeNodeSupplier,
public HyperlinkArea, public HyperlinkArea,
protected ::osl::DebugBase<DrawShape> public ::osl::DebugBase<DrawShape>
{ {
public: public:
/** Create a shape for the given XShape /** Create a shape for the given XShape
......
...@@ -491,9 +491,10 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames, ...@@ -491,9 +491,10 @@ bool getAnimationFromGraphic( VectorOfMtfAnimationFrames& o_rFrames,
nWaitTime100thSeconds = 100 * 60 * 60 * 24; nWaitTime100thSeconds = 100 * 60 * 60 * 24;
} }
// There are animated GIFs with no WaitTime set. Take 1 sec, then. // There are animated GIFs with no WaitTime set. Take 0.1 sec, the
// same duration that is used by the edit view.
if( nWaitTime100thSeconds == 0 ) if( nWaitTime100thSeconds == 0 )
nWaitTime100thSeconds = 100; nWaitTime100thSeconds = 10;
o_rFrames.push_back( MtfAnimationFrame( pMtf, o_rFrames.push_back( MtfAnimationFrame( pMtf,
nWaitTime100thSeconds / 100.0 ) ); nWaitTime100thSeconds / 100.0 ) );
......
...@@ -97,7 +97,7 @@ namespace ...@@ -97,7 +97,7 @@ namespace
class SlideImpl : public Slide, class SlideImpl : public Slide,
public CursorManager, public CursorManager,
public ViewEventHandler, public ViewEventHandler,
protected ::osl::DebugBase<SlideImpl> public ::osl::DebugBase<SlideImpl>
{ {
public: public:
SlideImpl( const uno::Reference<drawing::XDrawPage>& xDrawPage, SlideImpl( const uno::Reference<drawing::XDrawPage>& xDrawPage,
......
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