summaryrefslogtreecommitdiff
path: root/sd/source/ui/toolpanel
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/toolpanel')
-rw-r--r--sd/source/ui/toolpanel/ConstrainedIterator.cxx10
-rw-r--r--sd/source/ui/toolpanel/ConstrainedIterator.hxx8
-rw-r--r--sd/source/ui/toolpanel/ControlContainer.cxx10
-rw-r--r--sd/source/ui/toolpanel/ControlContainerDescriptor.hxx6
-rw-r--r--sd/source/ui/toolpanel/ControlList.hxx2
-rw-r--r--sd/source/ui/toolpanel/LayoutMenu.cxx42
-rw-r--r--sd/source/ui/toolpanel/LayoutMenu.hxx4
-rw-r--r--sd/source/ui/toolpanel/MethodGuard.hxx2
-rw-r--r--sd/source/ui/toolpanel/ScrollPanel.cxx42
-rw-r--r--sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx10
-rw-r--r--sd/source/ui/toolpanel/SubToolPanel.cxx12
-rw-r--r--sd/source/ui/toolpanel/TaskPaneControlFactory.cxx2
-rw-r--r--sd/source/ui/toolpanel/TaskPaneFocusManager.cxx10
-rw-r--r--sd/source/ui/toolpanel/TaskPaneFocusManager.hxx6
-rw-r--r--sd/source/ui/toolpanel/TaskPaneShellManager.cxx2
-rw-r--r--sd/source/ui/toolpanel/TaskPaneShellManager.hxx6
-rw-r--r--sd/source/ui/toolpanel/TaskPaneTreeNode.cxx4
-rw-r--r--sd/source/ui/toolpanel/TestMenu.cxx18
-rw-r--r--sd/source/ui/toolpanel/TestMenu.hxx2
-rw-r--r--sd/source/ui/toolpanel/TestPanel.cxx8
-rw-r--r--sd/source/ui/toolpanel/TestPanel.hxx2
-rw-r--r--sd/source/ui/toolpanel/TitleBar.cxx18
-rw-r--r--sd/source/ui/toolpanel/TitledControl.cxx24
-rw-r--r--sd/source/ui/toolpanel/ToolPanel.cxx4
-rw-r--r--sd/source/ui/toolpanel/ToolPanel.hxx2
-rw-r--r--sd/source/ui/toolpanel/ToolPanelDescriptor.hxx6
-rw-r--r--sd/source/ui/toolpanel/ToolPanelFactory.cxx2
-rw-r--r--sd/source/ui/toolpanel/ToolPanelUIElement.cxx8
-rw-r--r--sd/source/ui/toolpanel/ToolPanelUIElement.hxx2
-rw-r--r--sd/source/ui/toolpanel/ToolPanelViewShell.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/AllMasterPagesSelector.cxx4
-rw-r--r--sd/source/ui/toolpanel/controls/AllMasterPagesSelector.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/AnimationSchemesPanel.cxx4
-rw-r--r--sd/source/ui/toolpanel/controls/AnimationSchemesPanel.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.hxx6
-rw-r--r--sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/DocumentHelper.cxx28
-rw-r--r--sd/source/ui/toolpanel/controls/DocumentHelper.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainer.cxx24
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainer.hxx16
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerFiller.hxx8
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx18
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerProviders.hxx2
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx10
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageContainerQueue.hxx12
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx26
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx30
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPageObserver.cxx26
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx12
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx22
-rw-r--r--sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx8
-rw-r--r--sd/source/ui/toolpanel/controls/PreviewValueSet.cxx12
-rw-r--r--sd/source/ui/toolpanel/controls/PreviewValueSet.hxx6
-rw-r--r--sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx6
-rw-r--r--sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.hxx4
-rw-r--r--sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.hxx6
-rw-r--r--sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx2
-rw-r--r--sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx2
-rw-r--r--sd/source/ui/toolpanel/controls/TableDesignPanel.cxx8
-rw-r--r--sd/source/ui/toolpanel/controls/TableDesignPanel.hxx4
65 files changed, 320 insertions, 320 deletions
diff --git a/sd/source/ui/toolpanel/ConstrainedIterator.cxx b/sd/source/ui/toolpanel/ConstrainedIterator.cxx
index a4772aa8d41f..009085df7e34 100644
--- a/sd/source/ui/toolpanel/ConstrainedIterator.cxx
+++ b/sd/source/ui/toolpanel/ConstrainedIterator.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -40,7 +40,7 @@ namespace sd { namespace toolpanel {
template <class Container>
-ConstrainedIterator<Container>::value_type&
+ConstrainedIterator<Container>::value_type&
ConstrainedIterator<Container>::operator* (void)
{
return *maIterator;
@@ -50,7 +50,7 @@ ConstrainedIterator<Container>::value_type&
template <class Container>
-const ConstrainedIterator<Container>::value_type&
+const ConstrainedIterator<Container>::value_type&
ConstrainedIterator<Container>::operator* (void)
const
{
@@ -61,7 +61,7 @@ const ConstrainedIterator<Container>::value_type&
template <class Container>
-ConstrainedIterator<Container>::value_type&
+ConstrainedIterator<Container>::value_type&
ConstrainedIterator<Container>::operator-> (void)
{
return *maIterator;
@@ -71,7 +71,7 @@ ConstrainedIterator<Container>::value_type&
template <class Container>
-const ConstrainedIterator<Container>::value_type&
+const ConstrainedIterator<Container>::value_type&
ConstrainedIterator<Container>::operator-> (void)
const
{
diff --git a/sd/source/ui/toolpanel/ConstrainedIterator.hxx b/sd/source/ui/toolpanel/ConstrainedIterator.hxx
index ad2a17ef5e53..a9ca9da65a14 100644
--- a/sd/source/ui/toolpanel/ConstrainedIterator.hxx
+++ b/sd/source/ui/toolpanel/ConstrainedIterator.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,7 +39,7 @@ class Constraint
{
public:
virtual bool operator() (
- const Container& rContainer,
+ const Container& rContainer,
const Container::iterator& rIterator) const = 0;
};
@@ -62,10 +62,10 @@ public:
ConstrainedIterator (void);
ConstrainedIterator (
- const Container& rContainer,
+ const Container& rContainer,
const Container::iterator& rIterator);
ConstrainedIterator (
- const Container& rContainer,
+ const Container& rContainer,
const Container::iterator& rIterator,
const Constraint<Container>& pConstraint);
ConstrainedIterator (
diff --git a/sd/source/ui/toolpanel/ControlContainer.cxx b/sd/source/ui/toolpanel/ControlContainer.cxx
index d792f0c346ca..9c2b3a618d43 100644
--- a/sd/source/ui/toolpanel/ControlContainer.cxx
+++ b/sd/source/ui/toolpanel/ControlContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -103,7 +103,7 @@ void ControlContainer::SetExpansionState (
ExpansionState aState)
{
::osl::MutexGuard aGuard (maMutex);
-
+
bool bResizeNecessary (false);
if (mbMultiSelection)
@@ -253,7 +253,7 @@ sal_uInt32 ControlContainer::GetVisibleControlCount (void) const
if (maControlList[nIndex]->GetWindow()->IsVisible())
nCount += 1;
}
-
+
return nCount;
}
@@ -317,7 +317,7 @@ sal_uInt32 ControlContainer::GetPreviousIndex (
// The candidate does not meet our constraints so do one more loop.
}
-
+
return nCandidate;
}
@@ -369,7 +369,7 @@ sal_uInt32 ControlContainer::GetNextIndex (
// The candidate does not meet our constraints so do one more loop.
}
-
+
return nCandidate;
}
diff --git a/sd/source/ui/toolpanel/ControlContainerDescriptor.hxx b/sd/source/ui/toolpanel/ControlContainerDescriptor.hxx
index adf7dbcb1f9e..b4d3f512235d 100644
--- a/sd/source/ui/toolpanel/ControlContainerDescriptor.hxx
+++ b/sd/source/ui/toolpanel/ControlContainerDescriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -65,12 +65,12 @@ public:
@param eType
Type of the title bar. This specifies how the title bar
will be formated. For more information see TitleBar.
-
+
*/
ControlContainerDescriptor (
ControlContainer& rContainer,
::Window* pParent,
- ::std::auto_ptr<ILayoutableWindow> pControl,
+ ::std::auto_ptr<ILayoutableWindow> pControl,
const String& rTitle,
TitleBar::TitleBarType eType);
diff --git a/sd/source/ui/toolpanel/ControlList.hxx b/sd/source/ui/toolpanel/ControlList.hxx
index 80c969c6e6c2..90a73692e024 100644
--- a/sd/source/ui/toolpanel/ControlList.hxx
+++ b/sd/source/ui/toolpanel/ControlList.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/LayoutMenu.cxx b/sd/source/ui/toolpanel/LayoutMenu.cxx
index 770b6945c0a8..0ebea3f15bc6 100644
--- a/sd/source/ui/toolpanel/LayoutMenu.cxx
+++ b/sd/source/ui/toolpanel/LayoutMenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -112,7 +112,7 @@ private:
};
-SFX_IMPL_INTERFACE(LayoutMenu, SfxShell,
+SFX_IMPL_INTERFACE(LayoutMenu, SfxShell,
SdResId(STR_TASKPANELAYOUTMENU))
{
SFX_POPUPMENU_REGISTRATION(SdResId(RID_TASKPANE_LAYOUTMENU_POPUP));
@@ -157,15 +157,15 @@ static snewfoil_value_info standard[] =
{
{BMP_LAYOUT_EMPTY, BMP_LAYOUT_EMPTY_H, STR_AUTOLAYOUT_NONE, WritingMode_LR_TB, AUTOLAYOUT_NONE},
{BMP_LAYOUT_HEAD03, BMP_LAYOUT_HEAD03_H, STR_AUTOLAYOUT_TITLE, WritingMode_LR_TB, AUTOLAYOUT_TITLE},
- {BMP_LAYOUT_HEAD02, BMP_LAYOUT_HEAD02_H, STR_AUTOLAYOUT_CONTENT, WritingMode_LR_TB, AUTOLAYOUT_ENUM},
+ {BMP_LAYOUT_HEAD02, BMP_LAYOUT_HEAD02_H, STR_AUTOLAYOUT_CONTENT, WritingMode_LR_TB, AUTOLAYOUT_ENUM},
{BMP_LAYOUT_HEAD02A, BMP_LAYOUT_HEAD02A_H, STR_AUTOLAYOUT_2CONTENT, WritingMode_LR_TB, AUTOLAYOUT_2TEXT},
- {BMP_LAYOUT_HEAD01, BMP_LAYOUT_HEAD01_H, STR_AUTOLAYOUT_ONLY_TITLE, WritingMode_LR_TB, AUTOLAYOUT_ONLY_TITLE},
+ {BMP_LAYOUT_HEAD01, BMP_LAYOUT_HEAD01_H, STR_AUTOLAYOUT_ONLY_TITLE, WritingMode_LR_TB, AUTOLAYOUT_ONLY_TITLE},
{BMP_LAYOUT_TEXTONLY, BMP_LAYOUT_TEXTONLY_H, STR_AUTOLAYOUT_ONLY_TEXT, WritingMode_LR_TB, AUTOLAYOUT_ONLY_TEXT},
{BMP_LAYOUT_HEAD03B, BMP_LAYOUT_HEAD03B_H, STR_AUTOLAYOUT_2CONTENT_CONTENT, WritingMode_LR_TB, AUTOLAYOUT_2OBJTEXT},
{BMP_LAYOUT_HEAD03C, BMP_LAYOUT_HEAD03C_H, STR_AUTOLAYOUT_CONTENT_2CONTENT, WritingMode_LR_TB, AUTOLAYOUT_TEXT2OBJ},
- {BMP_LAYOUT_HEAD03A, BMP_LAYOUT_HEAD03A_H, STR_AUTOLAYOUT_2CONTENT_OVER_CONTENT,WritingMode_LR_TB, AUTOLAYOUT_2OBJOVERTEXT},
+ {BMP_LAYOUT_HEAD03A, BMP_LAYOUT_HEAD03A_H, STR_AUTOLAYOUT_2CONTENT_OVER_CONTENT,WritingMode_LR_TB, AUTOLAYOUT_2OBJOVERTEXT},
{BMP_LAYOUT_HEAD02B, BMP_LAYOUT_HEAD02B_H, STR_AUTOLAYOUT_CONTENT_OVER_CONTENT, WritingMode_LR_TB, AUTOLAYOUT_OBJOVERTEXT},
- {BMP_LAYOUT_HEAD04, BMP_LAYOUT_HEAD04_H, STR_AUTOLAYOUT_4CONTENT, WritingMode_LR_TB, AUTOLAYOUT_4OBJ},
+ {BMP_LAYOUT_HEAD04, BMP_LAYOUT_HEAD04_H, STR_AUTOLAYOUT_4CONTENT, WritingMode_LR_TB, AUTOLAYOUT_4OBJ},
{BMP_LAYOUT_HEAD06, BMP_LAYOUT_HEAD06_H, STR_AUTOLAYOUT_6CONTENT, WritingMode_LR_TB, AUTOLAYOUT_6CLIPART},
// vertical
@@ -224,7 +224,7 @@ void LayoutMenu::implConstruct( DrawDocShell& rDocumentShell )
SetSmartHelpId(SmartId(HID_SD_TASK_PANE_PREVIEW_LAYOUTS));
SetAccessibleName(SdResId(STR_TASKPANEL_LAYOUT_MENU_TITLE));
-
+
Link aStateChangeLink (LINK(this,LayoutMenu,StateChangeHandler));
mxListener = new ::sd::tools::SlotStateListener(
aStateChangeLink,
@@ -242,7 +242,7 @@ LayoutMenu::~LayoutMenu (void)
// Tell the shell factory that this object is no longer available.
if (GetShellManager() != NULL)
GetShellManager()->RemoveSubShell(this);
-
+
Reference<lang::XComponent> xComponent (mxListener, UNO_QUERY);
if (xComponent.is())
xComponent->dispose();
@@ -267,7 +267,7 @@ LayoutMenu::~LayoutMenu (void)
AutoLayout LayoutMenu::GetSelectedAutoLayout (void)
{
AutoLayout aResult = AUTOLAYOUT_NONE;
-
+
if ( ! IsNoSelection() && GetSelectItemId()!=0)
{
AutoLayout* pLayout = static_cast<AutoLayout*>(GetItemData(GetSelectItemId()));
@@ -288,7 +288,7 @@ Size LayoutMenu::GetPreferredSize (void)
{
Size aItemSize = CalcItemSizePixel (Size());
Size aPreferredWindowSize = CalcWindowSizePixel (
- aItemSize,
+ aItemSize,
(USHORT)mnPreferredColumnCount,
(USHORT)CalculateRowCount (aItemSize,mnPreferredColumnCount));
return aPreferredWindowSize;
@@ -389,7 +389,7 @@ void LayoutMenu::UpdateEnabledState (const MasterMode eMode)
// expanded.
bIsEnabled = true;
break;
-
+
case ViewShell::ST_DRAW:
case ViewShell::ST_IMPRESS:
{
@@ -482,7 +482,7 @@ void LayoutMenu::Resize (void)
nColumnCount = 4;
int nRowCount = CalculateRowCount (aItemSize, nColumnCount);
-
+
SetColCount ((USHORT)nColumnCount);
SetLineCount ((USHORT)nRowCount);
}
@@ -505,7 +505,7 @@ void LayoutMenu::MouseButtonDown (const MouseEvent& rEvent)
if (nIndex > 0)
SelectItem(nIndex);
}
-
+
ValueSet::MouseButtonDown (rEvent);
}
@@ -698,7 +698,7 @@ void LayoutMenu::AssignLayoutToSelectedSlides (AutoLayout aLayout)
pPageSelection.reset(new ::sd::slidesorter::SlideSorterViewShell::PageSelection());
pPageSelection->push_back(pMainViewShell->GetActualPage());
}
-
+
if (pPageSelection->empty())
break;
@@ -743,7 +743,7 @@ SfxRequest LayoutMenu::CreateRequest (
break;
SetOfByte aVisibleLayers (pPage->TRG_GetMasterPageVisibleLayers());
-
+
aRequest.AppendItem(
SfxStringItem (ID_VAL_PAGENAME, String()));//pPage->GetName()));
aRequest.AppendItem(SfxUInt32Item (ID_VAL_WHATLAYOUT, aLayout));
@@ -768,7 +768,7 @@ void LayoutMenu::Fill (void)
SvtLanguageOptions aLanguageOptions;
sal_Bool bVertical = aLanguageOptions.IsVerticalTextEnabled();
SdDrawDocument* pDocument = mrBase.GetDocument();
- sal_Bool bRightToLeft = (pDocument!=NULL
+ sal_Bool bRightToLeft = (pDocument!=NULL
&& pDocument->GetDefaultWritingMode() == WritingMode_RL_TB);
// Get URL of the view in the center pane.
@@ -786,7 +786,7 @@ void LayoutMenu::Fill (void)
}
catch (RuntimeException&)
{}
-
+
snewfoil_value_info* pInfo = NULL;
if (sCenterPaneViewName.equals(framework::FrameworkHelper::msNotesViewURL))
{
@@ -812,10 +812,10 @@ void LayoutMenu::Fill (void)
{
if ((WritingMode_TB_RL != pInfo->meWritingMode) || bVertical)
{
- BitmapEx aBmp (SdResId (bHighContrast
- ? pInfo->mnHCBmpResId
+ BitmapEx aBmp (SdResId (bHighContrast
+ ? pInfo->mnHCBmpResId
: pInfo->mnBmpResId));
-
+
if (bRightToLeft && (WritingMode_TB_RL != pInfo->meWritingMode))
aBmp.Mirror (BMP_MIRROR_HORZ);
@@ -926,7 +926,7 @@ void LayoutMenu::UpdateSelection (void)
ViewShell* pViewShell = mrBase.GetMainViewShell().get();
if (pViewShell == NULL)
break;
-
+
SdPage* pCurrentPage = pViewShell->getCurrentPage();
if (pCurrentPage == NULL)
break;
diff --git a/sd/source/ui/toolpanel/LayoutMenu.hxx b/sd/source/ui/toolpanel/LayoutMenu.hxx
index f393916a453a..f5507505ca9e 100644
--- a/sd/source/ui/toolpanel/LayoutMenu.hxx
+++ b/sd/source/ui/toolpanel/LayoutMenu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ class LayoutMenu
: public ValueSet,
public TreeNode,
public SfxShell,
- public DragSourceHelper,
+ public DragSourceHelper,
public DropTargetHelper
{
public:
diff --git a/sd/source/ui/toolpanel/MethodGuard.hxx b/sd/source/ui/toolpanel/MethodGuard.hxx
index 4da6f81d600f..b14deeccce86 100644
--- a/sd/source/ui/toolpanel/MethodGuard.hxx
+++ b/sd/source/ui/toolpanel/MethodGuard.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/ScrollPanel.cxx b/sd/source/ui/toolpanel/ScrollPanel.cxx
index 0b1c748b7470..8c0a45d99ba4 100644
--- a/sd/source/ui/toolpanel/ScrollPanel.cxx
+++ b/sd/source/ui/toolpanel/ScrollPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -136,7 +136,7 @@ ScrollPanel::~ScrollPanel (void)
TitledControl* ScrollPanel::AddControl (
- ::std::auto_ptr<TreeNode> pControl,
+ ::std::auto_ptr<TreeNode> pControl,
const String& rTitle,
ULONG nHelpId)
{
@@ -144,14 +144,14 @@ TitledControl* ScrollPanel::AddControl (
// managed by the content object.
TitledControl* pTitledControl = new TitledControl(
this,
- pControl,
+ pControl,
rTitle,
TitledControlStandardClickHandler(GetControlContainer(), ControlContainer::ES_TOGGLE),
TitleBar::TBT_SUB_CONTROL_HEADLINE);
pTitledControl->GetTitleBar()->SetHelpId(nHelpId);
AddControl(::std::auto_ptr<TreeNode>(pTitledControl));
-
+
return pTitledControl;
}
@@ -170,7 +170,7 @@ void ScrollPanel::AddControl (::std::auto_ptr<TreeNode> pControl)
const Link aWindowListener(LINK(this,ScrollPanel,WindowEventListener));
OSL_ASSERT(pControl->GetWindow()!=NULL);
pControl->GetWindow()->AddEventListener(aWindowListener);
-
+
TitledControl* pTitledControl = dynamic_cast<TitledControl*>(pControl.get());
if (pTitledControl != NULL)
{
@@ -193,8 +193,8 @@ void ScrollPanel::AddControl (::std::auto_ptr<TreeNode> pControl)
rFocusManager.RegisterLink(pFirst,pControl->GetWindow(), KEY_UP);
rFocusManager.RegisterLink(pControl->GetWindow(),pFirst, KEY_DOWN);
}
-
-
+
+
// Add a down link only for the first control so that when entering
// the sub tool panel the focus is set to the first control.
if (nControlCount == 0)
@@ -231,7 +231,7 @@ void ScrollPanel::Paint (const Rectangle& rRect)
Size aSize (maScrollWindow.GetOutputSizePixel());
// Paint left and right vertical border.
Rectangle aVerticalArea (
- Point(0,0),
+ Point(0,0),
Size(mnHorizontalBorder,aSize.Height()));
maScrollWindow.DrawRect (aVerticalArea);
aVerticalArea.Right() += mnHorizontalBorder + mnChildrenWidth - 1;
@@ -253,7 +253,7 @@ void ScrollPanel::Paint (const Rectangle& rRect)
break;
maScrollWindow.DrawRect (aStripeArea);
}
-
+
maScrollWindow.SetLineColor (aOriginalLineColor);
maScrollWindow.SetFillColor (aOriginalFillColor);
}
@@ -398,7 +398,7 @@ void ScrollPanel::Rearrange (void)
mnChildrenWidth += aRequiredSize.Width();
else
mnChildrenWidth += aAvailableSize.Width();
-
+
sal_Int32 nChildrenHeight (LayoutChildren());
maVerticalScrollBar.SetRangeMax (
nChildrenHeight + mnVerticalBorder);
@@ -414,7 +414,7 @@ Size ScrollPanel::GetRequiredSize (void)
{
// First determine the width of the children. This is the maximum of
// the current window width and the individual minimum widths of the
- // children.
+ // children.
int nChildrenWidth (GetSizePixel().Width());
unsigned int nCount = mpControlContainer->GetControlCount();
unsigned int nIndex;
@@ -429,7 +429,7 @@ Size ScrollPanel::GetRequiredSize (void)
// Determine the accumulated width of all children when scaled to the
// minimum width.
nChildrenWidth -= 2*mnHorizontalBorder;
- Size aTotalSize (nChildrenWidth,
+ Size aTotalSize (nChildrenWidth,
2*mnVerticalBorder + (nCount-1) * mnVerticalGap);
for (nIndex=0; nIndex<nCount; nIndex++)
{
@@ -529,7 +529,7 @@ Size ScrollPanel::SetupScrollBars (const Size& rRequiredSize)
if (GetMinimumWidth() + aScrollBarSize.Width() > aWindowSize.Width())
bShowHorizontal = true;
}
-
+
// Setup the scroll bars.
aRemainingSize.Width()
= SetupVerticalScrollBar (bShowVertical, rRequiredSize.Height());
@@ -586,7 +586,7 @@ sal_Int32 ScrollPanel::SetupVerticalScrollBar (bool bShow, sal_Int32 nRange)
long nMinPos = maVerticalScrollBar.GetRangeMin();
if (maVerticalScrollBar.GetThumbPos() < nMinPos)
maVerticalScrollBar.SetThumbPos(nMinPos);
- long nMaxPos = maVerticalScrollBar.GetRangeMax()
+ long nMaxPos = maVerticalScrollBar.GetRangeMax()
- maVerticalScrollBar.GetVisibleSize();
if (maVerticalScrollBar.GetThumbPos() >= nMaxPos)
maVerticalScrollBar.SetThumbPos(nMaxPos);
@@ -639,7 +639,7 @@ sal_Int32 ScrollPanel::SetupHorizontalScrollBar (bool bShow, sal_Int32 nRange)
long nMinPos = maHorizontalScrollBar.GetRangeMin();
if (maHorizontalScrollBar.GetThumbPos() < nMinPos)
maHorizontalScrollBar.SetThumbPos(nMinPos);
- long nMaxPos = maHorizontalScrollBar.GetRangeMax()
+ long nMaxPos = maHorizontalScrollBar.GetRangeMax()
- maHorizontalScrollBar.GetVisibleSize();
if (maHorizontalScrollBar.GetThumbPos() >= nMaxPos)
maHorizontalScrollBar.SetThumbPos(nMaxPos);
@@ -732,7 +732,7 @@ void ScrollPanel::MakeRectangleVisible (
aRectangle.Move(
-maScrollOffset.X() + aRelativeBox.Left(),
-maScrollOffset.Y() + aRelativeBox.Top());
-
+
const int nVisibleHeight (maVerticalScrollBar.GetVisibleSize());
const int nVisibleTop (maVerticalScrollBar.GetThumbPos());
if (aRectangle.Bottom() >= nVisibleTop+nVisibleHeight)
@@ -765,12 +765,12 @@ IMPL_LINK(ScrollPanel,WindowEventListener,VclSimpleEvent*,pEvent)
Rectangle aBox (pControl->GetItemRect(pControl->GetSelectItemId()));
aBox.Top()-=4;
aBox.Bottom()+=4;
-
+
MakeRectangleVisible(aBox, pControl);
}
}
break;
-
+
case VCLEVENT_WINDOW_MOUSEBUTTONDOWN:
{
// Make the item under the mouse visible. We need this case
@@ -791,13 +791,13 @@ IMPL_LINK(ScrollPanel,WindowEventListener,VclSimpleEvent*,pEvent)
Rectangle aBox (pControl->GetItemRect(pControl->GetItemId(aPosition)));
aBox.Top()-=4;
aBox.Bottom()+=4;
-
+
MakeRectangleVisible(aBox, pControl);
}
}
}
break;
-
+
case VCLEVENT_WINDOW_GETFOCUS:
{
@@ -815,7 +815,7 @@ IMPL_LINK(ScrollPanel,WindowEventListener,VclSimpleEvent*,pEvent)
}
}
break;
-
+
case VCLEVENT_WINDOW_SHOW:
case VCLEVENT_WINDOW_HIDE:
case VCLEVENT_WINDOW_ACTIVATE:
diff --git a/sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx b/sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx
index 821fa89ff0c4..a0a9641e7f9d 100644
--- a/sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx
+++ b/sd/source/ui/toolpanel/SlideSorterCacheDisplay.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@ public:
virtual void Paint (const Rectangle& rBoundingBox)
{ mpDisplay->Paint(rBoundingBox); ::Window::Paint(rBoundingBox); }
virtual void Resize (void) { mpDisplay->Resize(); ::Window::Resize(); }
-
+
private:
::sd::toolpanel::SlideSorterCacheDisplay* mpDisplay;
};
@@ -178,7 +178,7 @@ void SlideSorterCacheDisplay::Resize (void)
++nC;
}
double nAspect2 = double(nC) / double(nR);
-
+
mnRowCount = nR;
mnColumnCount = nC;
mnHorizontalGap = 2;
@@ -207,10 +207,10 @@ SlideSorterCacheDisplay* SlideSorterCacheDisplay::Instance (const SdDrawDocument
{
pDisplay = new SlideSorterCacheDisplay(pDocument);
}
-
+
return pDisplay;
}
-
+
diff --git a/sd/source/ui/toolpanel/SubToolPanel.cxx b/sd/source/ui/toolpanel/SubToolPanel.cxx
index 473ecd4a820b..f76510452717 100644
--- a/sd/source/ui/toolpanel/SubToolPanel.cxx
+++ b/sd/source/ui/toolpanel/SubToolPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -134,7 +134,7 @@ void SubToolPanel::Paint (const Rectangle& rRect)
Size aSize (GetOutputSizePixel());
// Paint left and right vertical border.
Rectangle aVerticalArea (
- Point(0,0),
+ Point(0,0),
Size(mnHorizontalBorder,aSize.Height()));
DrawRect (aVerticalArea);
aVerticalArea.Right() += mnHorizontalBorder + mnChildrenWidth - 1;
@@ -156,7 +156,7 @@ void SubToolPanel::Paint (const Rectangle& rRect)
break;
DrawRect (aStripeArea);
}
-
+
SetLineColor (aOriginalLineColor);
SetFillColor (aOriginalFillColor);
}
@@ -263,7 +263,7 @@ void SubToolPanel::Rearrange (void)
aRequiredSize.Width() = aAvailableSize.Width();
mnChildrenWidth = -2*mnHorizontalBorder;
mnChildrenWidth += aAvailableSize.Width();
-
+
LayoutChildren();
mbIsRearrangePending = false;
@@ -277,7 +277,7 @@ Size SubToolPanel::GetRequiredSize (void)
{
// First determine the width of the children. This is the maximum of
// the current window width and the individual minimum widths of the
- // children.
+ // children.
int nChildrenWidth (GetSizePixel().Width());
unsigned int nCount = mpControlContainer->GetControlCount();
unsigned int nIndex;
@@ -292,7 +292,7 @@ Size SubToolPanel::GetRequiredSize (void)
// Determine the accumulated width of all children when scaled to the
// minimum width.
nChildrenWidth -= 2*mnHorizontalBorder;
- Size aTotalSize (nChildrenWidth,
+ Size aTotalSize (nChildrenWidth,
2*mnVerticalBorder + (nCount-1) * mnVerticalGap);
for (nIndex=0; nIndex<nCount; nIndex++)
{
diff --git a/sd/source/ui/toolpanel/TaskPaneControlFactory.cxx b/sd/source/ui/toolpanel/TaskPaneControlFactory.cxx
index 0c2893ab5bba..ead4074d1d0c 100644
--- a/sd/source/ui/toolpanel/TaskPaneControlFactory.cxx
+++ b/sd/source/ui/toolpanel/TaskPaneControlFactory.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx b/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx
index 6099e46c4c5e..cd543a4d8c5b 100644
--- a/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx
+++ b/sd/source/ui/toolpanel/TaskPaneFocusManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@ namespace {
class WindowHash
{
public:
- size_t operator()(const ::Window* argument) const
+ size_t operator()(const ::Window* argument) const
{ return reinterpret_cast<unsigned long>(argument); }
};
@@ -177,7 +177,7 @@ void FocusManager::RemoveLinks (
Clear();
return;
}
-
+
::std::pair<LinkMap::iterator,LinkMap::iterator> aCandidates;
LinkMap::iterator iCandidate;
bool bLoop (mpLinks->size() > 0);
@@ -227,7 +227,7 @@ void FocusManager::RemoveLinks (::Window* pWindow)
// Make sure that we are not called back for the window.
pWindow->RemoveEventListener (LINK (this, FocusManager, WindowEventListener));
-
+
// Remove the links from the given window.
::std::pair<LinkMap::iterator,LinkMap::iterator> aCandidates(mpLinks->equal_range(pWindow));
mpLinks->erase(aCandidates.first, aCandidates.second);
@@ -258,7 +258,7 @@ void FocusManager::RemoveLinks (::Window* pWindow)
void FocusManager::RemoveUnusedEventListener (::Window* pWindow)
{
OSL_ASSERT(pWindow!=NULL);
-
+
if (pWindow == NULL)
return;
diff --git a/sd/source/ui/toolpanel/TaskPaneFocusManager.hxx b/sd/source/ui/toolpanel/TaskPaneFocusManager.hxx
index fbb87f8d66fe..14721986ac17 100644
--- a/sd/source/ui/toolpanel/TaskPaneFocusManager.hxx
+++ b/sd/source/ui/toolpanel/TaskPaneFocusManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -107,7 +107,7 @@ private:
static FocusManager* spInstance;
class LinkMap;
::std::auto_ptr<LinkMap> mpLinks;
-
+
FocusManager (void);
~FocusManager (void);
@@ -115,7 +115,7 @@ private:
listeners.
*/
void Clear (void);
-
+
/** Remove all links from or to the given window.
*/
void RemoveLinks (::Window* pWindow);
diff --git a/sd/source/ui/toolpanel/TaskPaneShellManager.cxx b/sd/source/ui/toolpanel/TaskPaneShellManager.cxx
index f101f34e8864..51bba27e5a24 100644
--- a/sd/source/ui/toolpanel/TaskPaneShellManager.cxx
+++ b/sd/source/ui/toolpanel/TaskPaneShellManager.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/TaskPaneShellManager.hxx b/sd/source/ui/toolpanel/TaskPaneShellManager.hxx
index f07ff157a0f2..f70a90c0ebcc 100644
--- a/sd/source/ui/toolpanel/TaskPaneShellManager.hxx
+++ b/sd/source/ui/toolpanel/TaskPaneShellManager.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -73,7 +73,7 @@ public:
ShellId nId,
::Window* pParentWindow,
FrameView* pFrameView = NULL);
-
+
virtual void ReleaseShell (SfxShell* pShell);
/** Add a sub shell to the set of sub shells managed by the
@@ -87,7 +87,7 @@ public:
NULL when this shell is requested.
*/
void RemoveSubShell (const SfxShell* pShell);
- /** removes the shell given by its ID from the set of sub shells managed by the
+ /** removes the shell given by its ID from the set of sub shells managed by the
TaskPaneShellManager. Subsequent calls to CreateShell() will return
NULL when this shell is requested.
*/
diff --git a/sd/source/ui/toolpanel/TaskPaneTreeNode.cxx b/sd/source/ui/toolpanel/TaskPaneTreeNode.cxx
index ad2bdaf709bc..e175de08f5bb 100644
--- a/sd/source/ui/toolpanel/TaskPaneTreeNode.cxx
+++ b/sd/source/ui/toolpanel/TaskPaneTreeNode.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -251,7 +251,7 @@ TaskPaneShellManager* TreeNode::GetShellManager (void)
void TreeNode::AddStateChangeListener (const Link& rListener)
{
if (::std::find (
- maStateChangeListeners.begin(),
+ maStateChangeListeners.begin(),
maStateChangeListeners.end(),
rListener) == maStateChangeListeners.end())
{
diff --git a/sd/source/ui/toolpanel/TestMenu.cxx b/sd/source/ui/toolpanel/TestMenu.cxx
index 5ed76e024086..515b21117a28 100644
--- a/sd/source/ui/toolpanel/TestMenu.cxx
+++ b/sd/source/ui/toolpanel/TestMenu.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,15 +60,15 @@ ColorMenu::ColorMenu (::Window* i_pParent)
maSet (this),
mnPreferredColumnCount(2)
{
- WinBits aStyle =
- WB_ITEMBORDER
- | WB_DOUBLEBORDER
- | WB_NAMEFIELD
+ WinBits aStyle =
+ WB_ITEMBORDER
+ | WB_DOUBLEBORDER
+ | WB_NAMEFIELD
| WB_FLATVALUESET
| WB_TABSTOP
| WB_VSCROLL;
- maSet.SetStyle (maSet.GetStyle() | aStyle);
+ maSet.SetStyle (maSet.GetStyle() | aStyle);
maSet.SetExtraSpacing(2);
Fill ();
@@ -118,7 +118,7 @@ sal_Int32 ColorMenu::GetPreferredWidth (sal_Int32 nHeight)
int nRowCount = nHeight / aItemSize.Height();
if (nRowCount <= 0)
nRowCount = 1;
- int nColumnCount = (maSet.GetItemCount() + nRowCount-1)
+ int nColumnCount = (maSet.GetItemCount() + nRowCount-1)
/ nRowCount;
nPreferredWidth = nColumnCount * aItemSize.Width();
}
@@ -144,7 +144,7 @@ sal_Int32 ColorMenu::GetPreferredHeight (sal_Int32 nWidth)
nColumnCount = 1;
else if (nColumnCount > 4)
nColumnCount = 4;
- int nRowCount = (maSet.GetItemCount() + nColumnCount-1)
+ int nRowCount = (maSet.GetItemCount() + nColumnCount-1)
/ nColumnCount;
nPreferredHeight = nRowCount * aItemSize.Height();
}
@@ -195,7 +195,7 @@ void ColorMenu::Resize (void)
nColumnCount = 4;
USHORT nRowCount = (USHORT)CalculateRowCount (aItemSize, nColumnCount);
-
+
maSet.SetColCount ((USHORT)nColumnCount);
maSet.SetLineCount (nRowCount);
}
diff --git a/sd/source/ui/toolpanel/TestMenu.hxx b/sd/source/ui/toolpanel/TestMenu.hxx
index 9b27948fdd3d..7eb4882e4211 100644
--- a/sd/source/ui/toolpanel/TestMenu.hxx
+++ b/sd/source/ui/toolpanel/TestMenu.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/TestPanel.cxx b/sd/source/ui/toolpanel/TestPanel.cxx
index b33ba1c89d73..7e543cc4ff76 100644
--- a/sd/source/ui/toolpanel/TestPanel.cxx
+++ b/sd/source/ui/toolpanel/TestPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,8 +59,8 @@ class Wrapper
{
public:
Wrapper (
- TreeNode* pParent,
- Size aPreferredSize,
+ TreeNode* pParent,
+ Size aPreferredSize,
::Window* pWrappedControl,
bool bIsResizable)
: TreeNode (pParent),
@@ -70,7 +70,7 @@ public:
{
mpWrappedControl->Show();
}
- virtual ~Wrapper (void)
+ virtual ~Wrapper (void)
{
delete mpWrappedControl;
}
diff --git a/sd/source/ui/toolpanel/TestPanel.hxx b/sd/source/ui/toolpanel/TestPanel.hxx
index 7f69f12761fc..d923e4257c5d 100644
--- a/sd/source/ui/toolpanel/TestPanel.hxx
+++ b/sd/source/ui/toolpanel/TestPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/TitleBar.cxx b/sd/source/ui/toolpanel/TitleBar.cxx
index fd690a364aba..83f39e6f3089 100644
--- a/sd/source/ui/toolpanel/TitleBar.cxx
+++ b/sd/source/ui/toolpanel/TitleBar.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -59,7 +59,7 @@
namespace sd { namespace toolpanel {
const int TitleBar::snIndentationWidth = 16;
-
+
TitleBar::TitleBar ( ::Window* pParent, const String& rsTitle, TitleBarType eType, bool bIsExpandable)
: ::Window (pParent, WB_TABSTOP)
, TreeNode(this)
@@ -287,7 +287,7 @@ void TitleBar::PaintSubPanelHeadLineBar (void)
Rectangle aTextBox (CalculateTextBoundingBox (nWidth, true));
Rectangle aTitleBarBox (CalculateTitleBarBox(aTextBox, nWidth));
- int nVerticalOffset = -aTitleBarBox.Top();
+ int nVerticalOffset = -aTitleBarBox.Top();
aTitleBarBox.Top() += nVerticalOffset;
aTitleBarBox.Bottom() += nVerticalOffset;
aTextBox.Top() += nVerticalOffset;
@@ -353,7 +353,7 @@ Rectangle TitleBar::PaintExpansionIndicator (const Rectangle& rTextBox)
if (meType == TBT_SUB_CONTROL_HEADLINE)
aPosition.X() += 3;
mpDevice->DrawImage (aPosition, aImage);
-
+
aExpansionIndicatorArea = Rectangle (
aPosition, aImage.GetSizePixel());
}
@@ -377,9 +377,9 @@ USHORT TitleBar::GetTextStyle (void)
{
if(IsEnabled())
{
- return TEXT_DRAW_LEFT
+ return TEXT_DRAW_LEFT
| TEXT_DRAW_TOP
- | TEXT_DRAW_MULTILINE
+ | TEXT_DRAW_MULTILINE
| TEXT_DRAW_WORDBREAK;
}
else
@@ -452,7 +452,7 @@ Rectangle TitleBar::CalculateTextBoundingBox (
Rectangle aTextBox (
Point(0,0),
- Size (nAvailableWidth,
+ Size (nAvailableWidth,
GetSettings().GetStyleSettings().GetTitleHeight()));
aTextBox.Top() += (aTextBox.GetHeight() - GetTextHeight()) / 2;
if (HasExpansionIndicator())
@@ -531,7 +531,7 @@ void TitleBar::DataChanged (const DataChangedEvent& rEvent)
mpDevice.reset(new VirtualDevice (*this));
// fall through.
-
+
case DATACHANGED_FONTS:
case DATACHANGED_FONTSUBSTITUTION:
{
@@ -542,7 +542,7 @@ void TitleBar::DataChanged (const DataChangedEvent& rEvent)
if (IsControlFont())
aFont.Merge(GetControlFont());
SetZoomedPointFont(aFont);
-
+
// Color.
Color aColor;
if (IsControlForeground())
diff --git a/sd/source/ui/toolpanel/TitledControl.cxx b/sd/source/ui/toolpanel/TitledControl.cxx
index 3f424357fedd..d06812e8526a 100644
--- a/sd/source/ui/toolpanel/TitledControl.cxx
+++ b/sd/source/ui/toolpanel/TitledControl.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -39,12 +39,12 @@
#include <vcl/svapp.hxx>
-namespace sd { namespace toolpanel {
+namespace sd { namespace toolpanel {
TitledControl::TitledControl (
TreeNode* pParent,
- ::std::auto_ptr<TreeNode> pControl,
+ ::std::auto_ptr<TreeNode> pControl,
const String& rTitle,
const ClickHandler& rClickHandler,
TitleBar::TitleBarType eType)
@@ -138,7 +138,7 @@ sal_Int32 TitledControl::GetPreferredHeight (sal_Int32 nWidth)
bool TitledControl::IsResizable (void)
{
- return IsExpanded()
+ return IsExpanded()
&& GetControl()->IsResizable();
}
@@ -157,7 +157,7 @@ void TitledControl::Resize (void)
{
Size aWindowSize (GetOutputSizePixel());
- int nTitleBarHeight
+ int nTitleBarHeight
= GetTitleBar()->GetPreferredHeight(aWindowSize.Width());
GetTitleBar()->GetWindow()->SetPosSizePixel (
Point (0,0),
@@ -165,7 +165,7 @@ void TitledControl::Resize (void)
TreeNode* pControl = GetControl();
- if (pControl != NULL
+ if (pControl != NULL
&& pControl->GetWindow() != NULL
&& pControl->GetWindow()->IsVisible())
{
@@ -258,7 +258,7 @@ bool TitledControl::Expand (bool bExpanded)
if (bExpansionStateChanged)
UpdateStates();
}
-
+
return bExpansionStateChanged;
}
@@ -288,7 +288,7 @@ bool TitledControl::IsExpanded (void) const
return false;
}
-void TitledControl::SetEnabledState(bool bFlag)
+void TitledControl::SetEnabledState(bool bFlag)
{
if (!bFlag)
{
@@ -297,13 +297,13 @@ void TitledControl::SetEnabledState(bool bFlag)
ControlContainer::ES_COLLAPSE);
Disable();
}
- else
+ else
{
-/*
+/*
GetParentNode()->GetControlContainer().SetExpansionState (
this,
ControlContainer::ES_EXPAND);
-*/
+*/
Enable();
}
@@ -352,7 +352,7 @@ void TitledControl::UpdateStates (void)
-IMPL_LINK(TitledControl, WindowEventListener,
+IMPL_LINK(TitledControl, WindowEventListener,
VclSimpleEvent*, pEvent)
{
if (pEvent!=NULL && pEvent->ISA(VclWindowEvent))
diff --git a/sd/source/ui/toolpanel/ToolPanel.cxx b/sd/source/ui/toolpanel/ToolPanel.cxx
index 48866034be47..29db47c6f957 100644
--- a/sd/source/ui/toolpanel/ToolPanel.cxx
+++ b/sd/source/ui/toolpanel/ToolPanel.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -89,7 +89,7 @@ namespace sd { namespace toolpanel
ToolPanelGuard aGuard( *this );
return Reference< XWindow >( m_pControl->GetWindow()->GetComponentInterface(), UNO_QUERY_THROW );
}
-
+
//------------------------------------------------------------------------------------------------------------------
Reference< XAccessible > SAL_CALL ToolPanel::createAccessible( const Reference< XAccessible >& i_rParentAccessible ) throw (RuntimeException)
{
diff --git a/sd/source/ui/toolpanel/ToolPanel.hxx b/sd/source/ui/toolpanel/ToolPanel.hxx
index a0f6c1d7e102..311944c71b00 100644
--- a/sd/source/ui/toolpanel/ToolPanel.hxx
+++ b/sd/source/ui/toolpanel/ToolPanel.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx b/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx
index 55f9843bf53b..98943d6c5784 100644
--- a/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx
+++ b/sd/source/ui/toolpanel/ToolPanelDescriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@ public:
/** Create a new descriptor for the given control.
@param pControl
*/
- ToolPanelDescriptor (::std::auto_ptr< ::Window> pControl,
+ ToolPanelDescriptor (::std::auto_ptr< ::Window> pControl,
const String& rTitle);
~ToolPanelDescriptor (void);
@@ -72,7 +72,7 @@ public:
int GetTotalHeight (void) const;
int GetWindowHeight (void) const;
-
+
private:
::std::auto_ptr< ::Window> mpControl;
String msTitle;
diff --git a/sd/source/ui/toolpanel/ToolPanelFactory.cxx b/sd/source/ui/toolpanel/ToolPanelFactory.cxx
index 42c68083057c..86adba9431b5 100644
--- a/sd/source/ui/toolpanel/ToolPanelFactory.cxx
+++ b/sd/source/ui/toolpanel/ToolPanelFactory.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/ToolPanelUIElement.cxx b/sd/source/ui/toolpanel/ToolPanelUIElement.cxx
index eb5b937f0bbc..f4f3501b6dd4 100644
--- a/sd/source/ui/toolpanel/ToolPanelUIElement.cxx
+++ b/sd/source/ui/toolpanel/ToolPanelUIElement.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -94,21 +94,21 @@ namespace sd { namespace toolpanel
UIElementMethodGuard aGuard( *this );
return m_xFrame;
}
-
+
//------------------------------------------------------------------------------------------------------------------
::rtl::OUString SAL_CALL ToolPanelUIElement::getResourceURL() throw (RuntimeException)
{
UIElementMethodGuard aGuard( *this );
return m_sResourceURL;
}
-
+
//------------------------------------------------------------------------------------------------------------------
::sal_Int16 SAL_CALL ToolPanelUIElement::getType() throw (RuntimeException)
{
UIElementMethodGuard aGuard( *this );
return UIElementType::TOOLPANEL;
}
-
+
//------------------------------------------------------------------------------------------------------------------
Reference< XInterface > SAL_CALL ToolPanelUIElement::getRealInterface( ) throw (RuntimeException)
{
diff --git a/sd/source/ui/toolpanel/ToolPanelUIElement.hxx b/sd/source/ui/toolpanel/ToolPanelUIElement.hxx
index 3a8af8c4f622..685a3f961a5f 100644
--- a/sd/source/ui/toolpanel/ToolPanelUIElement.hxx
+++ b/sd/source/ui/toolpanel/ToolPanelUIElement.hxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/ToolPanelViewShell.cxx b/sd/source/ui/toolpanel/ToolPanelViewShell.cxx
index ddbb71b5637b..5b6c17f47bff 100644
--- a/sd/source/ui/toolpanel/ToolPanelViewShell.cxx
+++ b/sd/source/ui/toolpanel/ToolPanelViewShell.cxx
@@ -1,7 +1,7 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -240,7 +240,7 @@ public:
If the panel is not active currently, nothing happens.
*/
void DeactivatePanelByResource( const ::rtl::OUString& i_rPanelResourceURL );
-
+
/** provides access to the the VCL window of the panel deck
*/
::sfx2::ModuleTaskPane& GetTaskPane() { return *m_pTaskPane; }
@@ -596,13 +596,13 @@ void ToolPanelViewShell::KeyInput( const KeyEvent& i_rKeyEvent )
}
// ---------------------------------------------------------------------------------------------------------------------
-SdPage* ToolPanelViewShell::GetActualPage()
+SdPage* ToolPanelViewShell::GetActualPage()
{
return NULL;
}
// ---------------------------------------------------------------------------------------------------------------------
-SdPage* ToolPanelViewShell::getCurrentPage() const
+SdPage* ToolPanelViewShell::getCurrentPage() const
{
return NULL;
}
diff --git a/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.cxx
index 3ac8c9866880..99a13e145eed 100644
--- a/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.cxx
+++ b/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -134,7 +134,7 @@ void AllMasterPagesSelector::NotifyContainerChangeEvent (
AddItem(rEvent.maChildToken);
MasterPagesSelector::Fill();
break;
-
+
case MasterPageContainerChangeEvent::INDEX_CHANGED:
case MasterPageContainerChangeEvent::INDEXES_CHANGED:
mpSortedMasterPages->clear();
diff --git a/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.hxx b/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.hxx
index 4f1df32fc695..7e6c8460268b 100644
--- a/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.hxx
+++ b/sd/source/ui/toolpanel/controls/AllMasterPagesSelector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -44,7 +44,7 @@ class AllMasterPagesSelector
{
public:
AllMasterPagesSelector (
- TreeNode* pParent,
+ TreeNode* pParent,
SdDrawDocument& rDocument,
ViewShellBase& rBase,
DrawViewShell& rViewShell,
diff --git a/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.cxx b/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.cxx
index 80d047cba829..1bd04f200c98 100644
--- a/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.cxx
+++ b/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.hxx b/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.hxx
index 30ab4e191634..e257f26b73f0 100644
--- a/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.hxx
+++ b/sd/source/ui/toolpanel/controls/AnimationSchemesPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -28,7 +28,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.cxx
index 322649b9a408..1d2bf8b4be9f 100644
--- a/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.cxx
+++ b/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -93,7 +93,7 @@ CurrentMasterPagesSelector::~CurrentMasterPagesSelector (void)
{
OSL_ASSERT(mrDocument.GetDocSh() != NULL);
}
-
+
Link aLink (LINK(this,CurrentMasterPagesSelector,EventMultiplexerListener));
mrBase.GetEventMultiplexer()->RemoveEventListener(aLink);
}
@@ -237,7 +237,7 @@ void CurrentMasterPagesSelector::Execute (SfxRequest& rRequest)
}
}
break;
-
+
default:
MasterPagesSelector::Execute(rRequest);
break;
@@ -306,7 +306,7 @@ IMPL_LINK(CurrentMasterPagesSelector,EventMultiplexerListener,
break;
}
}
-
+
return 0;
}
diff --git a/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.hxx b/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.hxx
index 1490bda2cab0..393e8b0e7168 100644
--- a/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.hxx
+++ b/sd/source/ui/toolpanel/controls/CurrentMasterPagesSelector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ class CurrentMasterPagesSelector
{
public:
CurrentMasterPagesSelector (
- TreeNode* pParent,
+ TreeNode* pParent,
SdDrawDocument& rDocument,
ViewShellBase& rBase,
const ::boost::shared_ptr<MasterPageContainer>& rpContainer);
@@ -70,7 +70,7 @@ protected:
virtual ResId GetContextMenuResId (void) const;
virtual void Execute (SfxRequest& rRequest);
virtual void GetState (SfxItemSet& rItemSet);
-
+
private:
::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent>
mxListener;
diff --git a/sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx b/sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx
index 67972234eefe..470dd63eac99 100644
--- a/sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx
+++ b/sd/source/ui/toolpanel/controls/CustomAnimationPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,11 +38,11 @@
#include "sdresid.hxx"
namespace sd
-{
-
+{
+
class ViewShellBase;
extern ::Window * createCustomAnimationPanel( ::Window* pParent, ViewShellBase& rBase );
-
+
namespace toolpanel { namespace controls {
diff --git a/sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx b/sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx
index 41195d308a60..d9ee13dab18e 100644
--- a/sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx
+++ b/sd/source/ui/toolpanel/controls/CustomAnimationPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class CustomAnimationPanel
{
public:
CustomAnimationPanel (
- Window& i_rParentWindow,
+ Window& i_rParentWindow,
ToolPanelViewShell& i_rPanelViewShell);
virtual ~CustomAnimationPanel (void);
diff --git a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
index c8f3cde1253f..c315dacf9a9c 100644
--- a/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
+++ b/sd/source/ui/toolpanel/controls/DocumentHelper.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -118,7 +118,7 @@ SdPage* DocumentHelper::CopyMasterPageToLocalDocument (
}
if (bPageExists)
break;
-
+
// Create a new slide (and its notes page.)
uno::Reference<drawing::XDrawPagesSupplier> xSlideSupplier (
rTargetDocument.getUnoModel(), uno::UNO_QUERY);
@@ -143,7 +143,7 @@ SdPage* DocumentHelper::CopyMasterPageToLocalDocument (
pNewMasterPage = AddMasterPage(rTargetDocument, pMasterPage);
if (pNewMasterPage==NULL)
break;
- SdPage* pNewNotesMasterPage
+ SdPage* pNewNotesMasterPage
= AddMasterPage(rTargetDocument, pNotesMasterPage);
if (pNewNotesMasterPage==NULL)
break;
@@ -240,7 +240,7 @@ SdPage* DocumentHelper::AddMasterPage (
// Copy the precious flag.
pClonedMasterPage->SetPrecious(pMasterPage->IsPrecious());
-
+
// Now that the styles are available we can insert the cloned
// master page.
rTargetDocument.InsertMasterPage (pClonedMasterPage);
@@ -284,8 +284,8 @@ void DocumentHelper::ProvideStyles (
static_cast<SdStyleSheetPool*>(rTargetDocument.GetStyleSheetPool());
SdStyleSheetVector aCreatedStyles;
pTargetStyleSheetPool->CopyLayoutSheets (
- sLayoutName,
- *pSourceStyleSheetPool,
+ sLayoutName,
+ *pSourceStyleSheetPool,
aCreatedStyles);
// Add an undo action for the copied style sheets.
@@ -296,8 +296,8 @@ void DocumentHelper::ProvideStyles (
{
SdMoveStyleSheetsUndoAction* pMovStyles =
new SdMoveStyleSheetsUndoAction (
- &rTargetDocument,
- aCreatedStyles,
+ &rTargetDocument,
+ aCreatedStyles,
TRUE);
pUndoManager->AddUndoAction (pMovStyles);
}
@@ -380,7 +380,7 @@ SdPage* DocumentHelper::AddMasterPage (
// Copy the precious flag.
pClonedMasterPage->SetPrecious(pMasterPage->IsPrecious());
-
+
// Copy the necessary styles.
SdDrawDocument* pSourceDocument
= static_cast<SdDrawDocument*>(pMasterPage->GetModel());
@@ -436,7 +436,7 @@ void DocumentHelper::AssignMasterPageToPage (
SdDrawDocument* pDocument = dynamic_cast<SdDrawDocument*>(pPage->GetModel());
if (pDocument == NULL)
return;
-
+
if ( ! pPage->IsMasterPage())
{
// 1. Remove the background object (so that that, if it exists, does
@@ -447,7 +447,7 @@ void DocumentHelper::AssignMasterPageToPage (
*pDocument, *pPage, pPage->getSdrPageProperties().GetItemSet()),
TRUE);
pPage->getSdrPageProperties().PutItem(XFillStyleItem(XFILL_NONE));
-
+
pDocument->SetMasterPage (
(pPage->GetPageNum()-1)/2,
rsBaseLayoutName,
@@ -529,7 +529,7 @@ SdPage* DocumentHelper::ProvideMasterPage (
for (USHORT nIndex=0,nCount=rTargetDocument.GetMasterPageCount(); nIndex<nCount; ++nIndex)
{
SdPage* pCandidate = static_cast<SdPage*>(rTargetDocument.GetMasterPage(nIndex));
- if (pCandidate!=NULL
+ if (pCandidate!=NULL
&& sMasterPageLayoutName==pCandidate->GetLayoutName())
{
// The requested master page does already exist in the
@@ -537,7 +537,7 @@ SdPage* DocumentHelper::ProvideMasterPage (
return pCandidate;
}
}
-
+
// The given master page does not already belong to the target
// document so we have to create copies and insert them into the
// targer document.
@@ -565,7 +565,7 @@ SdPage* DocumentHelper::ProvideMasterPage (
// Clone the notes master.
if (pNotesMasterPage->GetModel() != &rTargetDocument)
{
- SdPage* pClonedNotesMasterPage
+ SdPage* pClonedNotesMasterPage
= AddMasterPage (rTargetDocument, pNotesMasterPage, nInsertionIndex+1);
if( rTargetDocument.IsUndoEnabled() )
rTargetDocument.AddUndo(
diff --git a/sd/source/ui/toolpanel/controls/DocumentHelper.hxx b/sd/source/ui/toolpanel/controls/DocumentHelper.hxx
index c699819885f1..4624612c1cb3 100644
--- a/sd/source/ui/toolpanel/controls/DocumentHelper.hxx
+++ b/sd/source/ui/toolpanel/controls/DocumentHelper.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -90,7 +90,7 @@ private:
SdDrawDocument& rTargetDocument,
SdPage* pMasterPage,
const ::boost::shared_ptr<std::vector<SdPage*> >& rpPageList);
-
+
/** Assign the given master page to the given page.
@param pMasterPage
In contrast to AssignMasterPageToPageList() this page is assumed
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainer.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainer.cxx
index 6362fb5d90b2..b46dc325ebbe 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainer.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainer.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -152,7 +152,7 @@ private:
determine the correct size ratio.
*/
bool mbFirstPageObjectSeen;
-
+
// The widths for the previews contain two pixels for the border that is
// painted arround the preview.
static const int SMALL_PREVIEW_WIDTH = 72 + 2;
@@ -210,7 +210,7 @@ static const MasterPageContainer::Token NIL_TOKEN (-1);
MasterPageContainer::Implementation::Instance (void)
{
::boost::shared_ptr<MasterPageContainer::Implementation> pInstance;
-
+
if (Implementation::mpInstance.expired())
{
::osl::GetGlobalMutex aMutexFunctor;
@@ -703,7 +703,7 @@ void MasterPageContainer::Implementation::UpdatePreviewSizePixel (void)
// The default aspect ratio is 4:3
int nWidth (4);
int nHeight (3);
-
+
// Search for the first entry with an existing master page.
MasterPageContainerType::const_iterator iDescriptor;
MasterPageContainerType::const_iterator iContainerEnd(maContainer.end());
@@ -791,7 +791,7 @@ MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage (
{
if (mbContainerCleaningPending)
CleanContainer();
-
+
aResult = maContainer.size();
rpDescriptor->SetToken(aResult);
@@ -808,10 +808,10 @@ MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage (
default:
break;
}
-
+
maContainer.push_back(rpDescriptor);
aEntry = maContainer.end()-1;
-
+
FireContainerChange(MasterPageContainerChangeEvent::CHILD_ADDED,aResult);
}
}
@@ -826,7 +826,7 @@ MasterPageContainer::Token MasterPageContainer::Implementation::PutMasterPage (
// One or more aspects of the descriptor have changed. Send
// appropriate events to the listeners.
UpdateDescriptor(*aEntry,false,false, true);
-
+
std::vector<MasterPageContainerChangeEvent::EventType>::const_iterator iEventType;
for (iEventType=pEventTypes->begin(); iEventType!=pEventTypes->end(); ++iEventType)
{
@@ -903,7 +903,7 @@ Image MasterPageContainer::Implementation::GetPreviewForToken (
PreviewState ePreviewState (GetPreviewState(aToken));
SharedMasterPageDescriptor pDescriptor = GetDescriptor(aToken);
-
+
// When the preview is missing but inexpensively creatable then do that
// now.
if (pDescriptor.get()!=NULL)
@@ -942,7 +942,7 @@ Image MasterPageContainer::Implementation::GetPreviewForToken (
break;
}
}
-
+
return aPreview;
}
@@ -1003,7 +1003,7 @@ Reference<frame::XModel> MasterPageContainer::Implementation::GetModel (void)
RTL_CONSTASCII_USTRINGPARAM("com.sun.star.frame.Desktop"));
uno::Reference<frame::XComponentLoader> xDesktop (
::comphelper::getProcessServiceFactory()->createInstance(
- sDesktopServiceName),
+ sDesktopServiceName),
uno::UNO_QUERY);
// Create a new model.
@@ -1069,7 +1069,7 @@ Image MasterPageContainer::Implementation::GetPreviewSubstitution (
const ::osl::MutexGuard aGuard (maMutex);
Image aPreview;
-
+
switch (nId)
{
case STR_TASKPANEL_PREPARING_PREVIEW_SUBSTITUTION:
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainer.hxx b/sd/source/ui/toolpanel/controls/MasterPageContainer.hxx
index 6a10764dbe20..6a7d5ecafb34 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainer.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainer.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -60,12 +60,12 @@ class MasterPageDescriptor;
master pages. Each MasterPageContainer, however, has its own
PreviewSize value and thus can independantly switch between large and
small previews.
-
+
The container maintains its own document to store master page objects.
-
+
For each master page container stores its URL, preview bitmap, page
name, and, if available, the page object.
-
+
Entries are accessed via a Token, which is mostly a numerical index but
whose values do not neccessarily have to be consecutive.
*/
@@ -110,7 +110,7 @@ public:
bool RequestPreview (Token aToken);
/** Each entry of the container is either the first page of a template
- document or is a master page of an Impress document.
+ document or is a master page of an Impress document.
*/
enum Origin {
MASTERPAGE, // Master page of a document.
@@ -137,8 +137,8 @@ public:
/** Determine whether the container has a member for the given token.
*/
bool HasToken (Token aToken) const;
-
- /** Return a token for an index in the range
+
+ /** Return a token for an index in the range
0 <= index < GetTokenCount().
*/
Token GetTokenForIndex (int nIndex);
@@ -154,7 +154,7 @@ public:
Origin GetOriginForToken (Token aToken);
sal_Int32 GetTemplateIndexForToken (Token aToken);
::boost::shared_ptr<MasterPageDescriptor> GetDescriptorForToken (Token aToken);
-
+
void InvalidatePreview (Token aToken);
/** Return a preview for the specified token. When the preview is not
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx
index 79b3185d256c..164c39e4196e 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -87,11 +87,11 @@ void MasterPageContainerFiller::RunNextStep (void)
case SCAN_TEMPLATE:
meState = ScanTemplate();
break;
-
+
case ADD_TEMPLATE:
meState = AddTemplate();
break;
-
+
case DONE:
case ERROR:
default:
@@ -125,7 +125,7 @@ bool MasterPageContainerFiller::HasNextStep (void)
case DONE:
case ERROR:
return false;
-
+
default:
return true;
}
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.hxx b/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.hxx
index 661a26bd68b8..f83db4b59077 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerFiller.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -58,10 +58,10 @@ public:
*/
virtual void FillingDone (void) = 0;
};
-
+
MasterPageContainerFiller (ContainerAdapter& rContainerAdapter);
virtual ~MasterPageContainerFiller (void);
-
+
/** Run the next step of the task. After HasNextStep() returns false
this method should ignore further calls.
*/
@@ -86,7 +86,7 @@ private:
::std::auto_ptr<TemplateScanner> mpScannerTask;
const TemplateEntry* mpLastAddedEntry;
int mnIndex;
-
+
State ScanTemplate (void);
State AddTemplate (void);
};
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
index 94c4e9bcc1d4..f5e8658e0896 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ Image PagePreviewProvider::operator () (
::sd::PreviewRenderer& rRenderer)
{
Image aPreview;
-
+
if (pPage != NULL)
{
// Use the given renderer to create a preview of the given page
@@ -117,9 +117,9 @@ Image TemplatePreviewProvider::operator() (
{
// Unused parameters.
(void)nWidth;
- (void)pPage;
+ (void)pPage;
(void)rRenderer;
-
+
// Load the thumbnail from a template document.
uno::Reference<io::XInputStream> xIStream;
@@ -130,11 +130,11 @@ Image TemplatePreviewProvider::operator() (
try
{
uno::Reference<lang::XSingleServiceFactory> xStorageFactory(
- xServiceManager->createInstance(
+ xServiceManager->createInstance(
::rtl::OUString::createFromAscii(
"com.sun.star.embed.StorageFactory")),
uno::UNO_QUERY);
-
+
if (xStorageFactory.is())
{
uno::Sequence<uno::Any> aArgs (2);
@@ -268,9 +268,9 @@ SdPage* TemplatePageObjectProvider::operator() (SdDrawDocument* pContainerDocume
{
// Unused parameters.
(void)pContainerDocument;
-
+
SdPage* pPage = NULL;
-
+
mxDocumentShell = NULL;
::sd::DrawDocShell* pDocumentShell = NULL;
try
@@ -401,7 +401,7 @@ ExistingPageProvider::ExistingPageProvider (SdPage* pPage)
SdPage* ExistingPageProvider::operator() (SdDrawDocument* pDocument)
{
(void)pDocument; // Unused parameter.
-
+
return mpPage;
}
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.hxx b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.hxx
index 573448bbf1ca..e07879693d9e 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerProviders.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
index 9fceb3270687..275f3b11d61a 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -146,7 +146,7 @@ bool MasterPageContainerQueue::RequestPreview (const SharedMasterPageDescriptor&
&& rpDescriptor->maLargePreview.GetSizePixel().Width() == 0)
{
sal_Int32 nPriority (CalculatePriority(rpDescriptor));
-
+
// Add a new or replace an existing request.
RequestQueue::iterator iRequest (::std::find_if(
mpRequestQueue->begin(),
@@ -197,7 +197,7 @@ sal_Int32 MasterPageContainerQueue::CalculatePriority (
// Add a term that introduces an order based on the appearance in the
// AllMasterPagesSelector.
nPriority -= rpDescriptor->maToken / 3;
-
+
// Process requests for the CurrentMasterPagesSelector first.
if (rpDescriptor->meOrigin == MasterPageContainer::MASTERPAGE)
nPriority += snMasterPagePriorityBoost;
@@ -245,7 +245,7 @@ IMPL_LINK(MasterPageContainerQueue, DelayedPreviewCreation, Timer*, pTimer)
}
mpRequestQueue->erase(mpRequestQueue->begin());
-
+
if (aRequest.mpDescriptor.get() != NULL)
{
mnRequestsServedCount += 1;
@@ -258,7 +258,7 @@ IMPL_LINK(MasterPageContainerQueue, DelayedPreviewCreation, Timer*, pTimer)
}
}
while (false);
-
+
if (mpRequestQueue->size() > 0 && ! bWaitForMoreRequests)
{
int nTimeout (snDelayedCreationTimeout);
diff --git a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.hxx b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.hxx
index 2cab5d31edc5..e4251e48df79 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageContainerQueue.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -82,7 +82,7 @@ public:
templates are inserted into the MasterPageContainer.
*/
void ProcessAllRequests (void);
-
+
private:
::boost::weak_ptr<ContainerAdapter> mpWeakContainer;
class PreviewCreationRequest;
@@ -94,7 +94,7 @@ private:
// There are a couple of values that define various aspects of the
// heuristic that defines the order and timing in which requests for
// preview creation are processed.
-
+
/** The time to wait (in milliseconds) between the creation of previews.
*/
static const sal_Int32 snDelayedCreationTimeout;
@@ -102,7 +102,7 @@ private:
/** The time to wait when the system is not idle.
*/
static const sal_Int32 snDelayedCreationTimeoutWhenNotIdle;
-
+
/** Requests for previews of master pages in a document have their
priority increased by this value.
*/
@@ -120,7 +120,7 @@ private:
present.
*/
static sal_uInt32 snWaitForMoreRequestsCount;
-
+
MasterPageContainerQueue (const ::boost::weak_ptr<ContainerAdapter>& rpContainer);
void LateInit (void);
@@ -128,7 +128,7 @@ private:
are processed.
*/
sal_Int32 CalculatePriority (const SharedMasterPageDescriptor& rDescriptor) const;
-
+
DECL_LINK(DelayedPreviewCreation, Timer *);
};
diff --git a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
index c9b87b425a9d..9ee7a55a6dc7 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -66,7 +66,7 @@ MasterPageDescriptor::MasterPageDescriptor (
mnUseCount(0)
{
}
-
+
@@ -132,31 +132,31 @@ Image MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize eSize)
meOrigin = rDescriptor.meOrigin;
bIndexChanged = true;
}
-
+
if (msURL.getLength()==0 && rDescriptor.msURL.getLength()!=0)
{
msURL = rDescriptor.msURL;
bDataChanged = true;
}
-
+
if (msPageName.getLength()==0 && rDescriptor.msPageName.getLength()!=0)
{
msPageName = rDescriptor.msPageName;
bDataChanged = true;
}
-
+
if (msStyleName.getLength()==0 && rDescriptor.msStyleName.getLength()!=0)
{
msStyleName = rDescriptor.msStyleName;
bDataChanged = true;
}
-
+
if (mpPageObjectProvider.get()==NULL && rDescriptor.mpPageObjectProvider.get()!=NULL)
{
mpPageObjectProvider = rDescriptor.mpPageObjectProvider;
bDataChanged = true;
}
-
+
if (mpPreviewProvider.get()==NULL && rDescriptor.mpPreviewProvider.get()!=NULL)
{
mpPreviewProvider = rDescriptor.mpPreviewProvider;
@@ -181,7 +181,7 @@ Image MasterPageDescriptor::GetPreview (MasterPageContainer::PreviewSize eSize)
if (bPreviewChanged)
pResult->push_back(MasterPageContainerChangeEvent::PREVIEW_CHANGED);
}
-
+
return pResult;
}
@@ -193,14 +193,14 @@ bool MasterPageDescriptor::UpdatePageObject (
SdDrawDocument* pDocument)
{
bool bModified (false);
-
+
// Update the page object when that is not yet known.
if (mpMasterPage == NULL
&& mpPageObjectProvider.get()!=NULL
&& (nCostThreshold<0 || mpPageObjectProvider->GetCostIndex()<=nCostThreshold))
{
// Note that pDocument may be NULL.
-
+
SdPage* pPage = (*mpPageObjectProvider)(pDocument);
if (meOrigin == MasterPageContainer::MASTERPAGE)
{
@@ -250,7 +250,7 @@ bool MasterPageDescriptor::UpdatePreview (
::sd::PreviewRenderer& rRenderer)
{
bool bModified (false);
-
+
// Update the preview when that is not yet known.
if (maLargePreview.GetSizePixel().Width()==0
&& mpPreviewProvider.get()!=NULL
@@ -310,7 +310,7 @@ MasterPageDescriptor::URLClassification MasterPageDescriptor::GetURLClassificati
meURLClassification = URLCLASS_USER;
}
}
-
+
return meURLClassification;
}
@@ -362,7 +362,7 @@ bool MasterPageDescriptor::StyleNameComparator::operator() (
//===== PageObjectComparator ==================================================
-MasterPageDescriptor::PageObjectComparator::PageObjectComparator (const SdPage* pPageObject)
+MasterPageDescriptor::PageObjectComparator::PageObjectComparator (const SdPage* pPageObject)
: mpMasterPage(pPageObject)
{
}
diff --git a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
index 0bbd4cc3773b..f89cc9612be4 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageDescriptor.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -71,7 +71,7 @@ public:
::std::auto_ptr<std::vector<MasterPageContainerChangeEvent::EventType> >
Update (
const MasterPageDescriptor& rDescriptor);
-
+
/** This convenience method returns either a small or a large preview,
depending on the given size specifier.
Note that the previews are not created when they are not present.
@@ -82,18 +82,18 @@ public:
/** Use the PreviewProvider to get access to a preview of the master
page.
-
+
Note that this is only done, when either bForce is <TRUE/> or
the PreviewProvider::GetCostIndex() returns 0.
-
+
The small preview is created by scaling the large one, not by
calling PreviewProvider::operator() a second time.
-
+
It is the responsibility of the caller to call UpdatePageObject()
before calling this method when the PreviewProvider can only work
when the master page object is present, i.e. its NeedsPageObject()
method returns <TRUE/>.
-
+
@param nCostThreshold
When this is zero or positive then the preview is created only
when the preview provider has a cost equal to or smaller than
@@ -116,7 +116,7 @@ public:
::sd::PreviewRenderer& rRenderer);
/** Use the PageObjectProvider to get access to the master page object.
-
+
Note that this is only done, when either bForce is <TRUE/> or the
PreviewProvider::GetCostIndex() returns 0.
@@ -146,7 +146,7 @@ public:
};
URLClassification GetURLClassification (void);
-
+
/** The Token under which the MasterPageContainer gives access to the
object.
*/
@@ -155,16 +155,16 @@ public:
/** A rough specification of the origin of the master page.
*/
MasterPageContainer::Origin meOrigin;
-
+
/** The URL is not empty for master pages loaded from a template
document.
*/
::rtl::OUString msURL;
-
+
/** Taken from the title of the template file.
*/
::rtl::OUString msPageName;
-
+
/** Taken from the master page object.
*/
::rtl::OUString msStyleName;
@@ -174,17 +174,17 @@ public:
/** The actual master page.
*/
SdPage* mpMasterPage;
-
+
/** A slide that uses the master page.
*/
SdPage* mpSlide;
-
+
/** A small (the default size) preview of the master page. May be
empty. When this smaller preview is not empty then the larger one
is not empty, too.
*/
Image maSmallPreview;
-
+
/** A large preview of the master page. May be empty. When this larger
preview is not empty then the smaller one is not empty, too.
*/
@@ -199,7 +199,7 @@ public:
the lifetime of a MasterPageDescriptor object.
*/
::boost::shared_ptr<PageObjectProvider> mpPageObjectProvider;
-
+
/** This index represents the order in which templates are provided via
the TemplateScanner. It defines the order in which the entries in
the AllMasterPagesSelector are displayed. The default value is -1.
diff --git a/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx b/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx
index 2d11b9e6f7a5..b7e51a8b81eb 100644
--- a/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPageObserver.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -62,7 +62,7 @@ public:
document.
*/
void UnregisterDocument (SdDrawDocument& rDocument);
-
+
/** Add a listener that is informed of master pages that are newly
assigned to slides or become unassigned.
@param rEventListener
@@ -90,7 +90,7 @@ private:
::std::vector<Link> maListeners;
struct DrawDocHash {
- size_t operator()(SdDrawDocument* argument) const
+ size_t operator()(SdDrawDocument* argument) const
{ return reinterpret_cast<unsigned long>(argument); }
};
typedef ::std::hash_map<SdDrawDocument*,
@@ -133,7 +133,7 @@ MasterPageObserver& MasterPageObserver::Instance (void)
{
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
}
-
+
DBG_ASSERT(Implementation::mpInstance!=NULL,
"MasterPageObserver::Instance(): instance is NULL");
return *Implementation::mpInstance;
@@ -157,7 +157,7 @@ void MasterPageObserver::UnregisterDocument (SdDrawDocument& rDocument)
-
+
void MasterPageObserver::AddEventListener (const Link& rEventListener)
{
@@ -223,7 +223,7 @@ void MasterPageObserver::Implementation::UnregisterDocument (
-
+
void MasterPageObserver::Implementation::AddEventListener (
const Link& rEventListener)
{
@@ -233,7 +233,7 @@ void MasterPageObserver::Implementation::AddEventListener (
rEventListener) == maListeners.end())
{
maListeners.push_back (rEventListener);
-
+
// Tell the new listener about all the master pages that are
// currently in use.
typedef ::std::vector<String> StringList;
@@ -275,7 +275,7 @@ void MasterPageObserver::Implementation::RemoveEventListener (
-MasterPageObserver::MasterPageNameSet
+MasterPageObserver::MasterPageNameSet
MasterPageObserver::Implementation::GetMasterPageNames (
SdDrawDocument& rDocument)
{
@@ -355,8 +355,8 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
::std::set<String>::iterator J;
int i=0;
- for (J=aOldMasterPagesDescriptor->second.begin();
- J!=aOldMasterPagesDescriptor->second.end();
+ for (J=aOldMasterPagesDescriptor->second.begin();
+ J!=aOldMasterPagesDescriptor->second.end();
++J)
OSL_TRACE("old used master page %d is %s",
i++,
@@ -377,8 +377,8 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
RTL_TEXTENCODING_UTF8).getStr());
MasterPageObserverEvent aEvent (
- MasterPageObserverEvent::ET_MASTER_PAGE_ADDED,
- rDocument,
+ MasterPageObserverEvent::ET_MASTER_PAGE_ADDED,
+ rDocument,
*I);
SendEvent (aEvent);
}
@@ -398,7 +398,7 @@ void MasterPageObserver::Implementation::AnalyzeUsedMasterPages (
MasterPageObserverEvent aEvent (
MasterPageObserverEvent::ET_MASTER_PAGE_REMOVED,
- rDocument,
+ rDocument,
*I);
SendEvent (aEvent);
}
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx b/sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx
index ed28b54f6f5b..b5eae0e840c5 100644
--- a/sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPagesPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -64,12 +64,12 @@ void MasterPagesPanel::impl_construct( ViewShellBase& rBase )
TitledControl* pTitledControl;
::boost::shared_ptr<MasterPageContainer> pContainer (new MasterPageContainer());
-
+
// Create a panel with the master pages that are in use by the currently
// edited document.
DrawViewShell* pDrawViewShell = dynamic_cast<DrawViewShell*>(rBase.GetMainViewShell().get());
pSelector.reset(new controls::CurrentMasterPagesSelector (
- this,
+ this,
*pDocument,
rBase,
pContainer));
@@ -83,10 +83,10 @@ void MasterPagesPanel::impl_construct( ViewShellBase& rBase )
::std::auto_ptr<TreeNode>(pSelector.release()),
SdResId(STR_TASKPANEL_CURRENT_MASTER_PAGES_TITLE),
HID_SD_CURRENT_MASTERS);
-
+
// Create a panel with the most recently used master pages.
pSelector.reset(new controls::RecentMasterPagesSelector (
- this,
+ this,
*pDocument,
rBase,
pContainer));
@@ -103,7 +103,7 @@ void MasterPagesPanel::impl_construct( ViewShellBase& rBase )
// Create a panel with all available master pages.
pSelector.reset(new controls::AllMasterPagesSelector (
- this,
+ this,
*pDocument,
rBase,
*pDrawViewShell,
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx b/sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx
index c756b383b4ee..8c886d00750c 100644
--- a/sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPagesPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -52,7 +52,7 @@ class MasterPagesPanel
{
public:
MasterPagesPanel (
- ::Window& i_rParentWindow,
+ ::Window& i_rParentWindow,
ToolPanelViewShell& i_rPanelViewShell);
virtual ~MasterPagesPanel (void);
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx
index d178ffb06760..10db80a6778f 100644
--- a/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx
+++ b/sd/source/ui/toolpanel/controls/MasterPagesSelector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -84,7 +84,7 @@ using namespace ::com::sun::star::text;
namespace sd { namespace toolpanel { namespace controls {
-SFX_IMPL_INTERFACE(MasterPagesSelector, SfxShell,
+SFX_IMPL_INTERFACE(MasterPagesSelector, SfxShell,
SdResId(STR_MASTERPAGESSELECTOR))
{
SFX_POPUPMENU_REGISTRATION( SdResId(RID_TASKPANE_MASTERPAGESSELECTOR_POPUP) );
@@ -189,7 +189,7 @@ Size MasterPagesSelector::GetPreferredSize (void)
void MasterPagesSelector::UpdateLocks (const ItemList& rItemList)
{
ItemList aNewLockList;
-
+
// In here we first lock the master pages in the given list and then
// release the locks acquired in a previous call to this method. When
// this were done the other way round the lock count of some master
@@ -219,7 +219,7 @@ void MasterPagesSelector::UpdateLocks (const ItemList& rItemList)
void MasterPagesSelector::Fill (void)
{
::std::auto_ptr<ItemList> pItemList (new ItemList());
-
+
Fill(*pItemList);
UpdateLocks(*pItemList);
@@ -305,7 +305,7 @@ IMPL_LINK(MasterPagesSelector, ContextMenuCallback, CommandEvent*, pEvent)
mpPageSet.get(),
&aPosition);
}
-
+
return 0;
}
@@ -540,7 +540,7 @@ void MasterPagesSelector::Execute (SfxRequest& rRequest)
break;
case SID_TP_USE_FOR_NEW_PRESENTATIONS:
- DBG_ASSERT (false,
+ DBG_ASSERT (false,
"Using slides as default for new presentations"
" is not yet implemented");
break;
@@ -647,7 +647,7 @@ void MasterPagesSelector::SetItem (
mpPageSet->RemoveItem(nIndex);
}
}
-
+
}
@@ -711,7 +711,7 @@ void MasterPagesSelector::InvalidatePreview (const SdPage* pPage)
void MasterPagesSelector::UpdateAllPreviews (void)
{
const ::osl::MutexGuard aGuard (maMutex);
-
+
for (USHORT nIndex=1; nIndex<=mpPageSet->GetItemCount(); nIndex++)
{
UserData* pData = GetUserData(nIndex);
@@ -817,13 +817,13 @@ void MasterPagesSelector::UpdateItemList (::std::auto_ptr<ItemList> pNewItemList
SetItem(nIndex,*iNewItem);
}
}
-
+
// Append new items.
for ( ; iNewItem!=iNewEnd; ++iNewItem,++nIndex)
{
SetItem(nIndex,*iNewItem);
}
-
+
// Remove trailing items.
for ( ; iCurrentItem!=iCurrentEnd; ++iCurrentItem,++nIndex)
{
@@ -831,7 +831,7 @@ void MasterPagesSelector::UpdateItemList (::std::auto_ptr<ItemList> pNewItemList
}
maCurrentItemList.swap(*pNewItemList);
-
+
mpPageSet->Rearrange();
if (GetParentNode() != NULL)
GetParentNode()->RequestResize();
diff --git a/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx b/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx
index 3e3eb9b9fe99..89410a24ce0c 100644
--- a/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx
+++ b/sd/source/ui/toolpanel/controls/MasterPagesSelector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -46,7 +46,7 @@ class SdDrawDocument;
class SdPage;
class SfxModule;
-namespace sd {
+namespace sd {
class DrawViewShell;
class TemplateEntry;
class TemplateDir;
@@ -150,7 +150,7 @@ protected:
sal_uInt16 mnDefaultClickAction;
/** Pages with pointers in this queue have their previews updated
eventually. Filled by InvalidatePreview() and operated upon by
- UpdatePreviews().
+ UpdatePreviews().
*/
::std::queue<USHORT> maPreviewUpdateQueue;
@@ -219,7 +219,7 @@ private:
DECL_LINK(RightClickHandler, MouseEvent*);
DECL_LINK(ContextMenuCallback, CommandEvent*);
DECL_LINK(ContainerChangeListener, MasterPageContainerChangeEvent*);
-
+
void SetItem (
USHORT nIndex,
MasterPageContainer::Token aToken);
diff --git a/sd/source/ui/toolpanel/controls/PreviewValueSet.cxx b/sd/source/ui/toolpanel/controls/PreviewValueSet.cxx
index b1c6350ecf4a..74a83784ac44 100644
--- a/sd/source/ui/toolpanel/controls/PreviewValueSet.cxx
+++ b/sd/source/ui/toolpanel/controls/PreviewValueSet.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -45,13 +45,13 @@ PreviewValueSet::PreviewValueSet (TreeNode* pParent)
mnMaxColumnCount(-1)
{
SetStyle (
- GetStyle()
+ GetStyle()
& ~(WB_ITEMBORDER)// | WB_MENUSTYLEVALUESET)
// | WB_FLATVALUESET);
);
SetColCount(2);
- // SetLineCount(1);
+ // SetLineCount(1);
SetExtraSpacing (2);
}
@@ -130,7 +130,7 @@ void PreviewValueSet::Command (const CommandEvent& rEvent)
maContextMenuCallback.Call(&aNonConstEventCopy);
}
break;
-
+
default:
ValueSet::Command(rEvent);
break;
@@ -217,7 +217,7 @@ sal_Int32 PreviewValueSet::GetPreferredWidth (sal_Int32 nHeight)
{
int nColumnCount = (GetItemCount()+nRowCount-1) / nRowCount;
if (nColumnCount > 0)
- nPreferredWidth = (maPreviewSize.Width() + 2*mnBorderWidth)
+ nPreferredWidth = (maPreviewSize.Width() + 2*mnBorderWidth)
* nColumnCount;
}
@@ -231,7 +231,7 @@ sal_Int32 PreviewValueSet::GetPreferredHeight (sal_Int32 nWidth)
{
int nRowCount (CalculateRowCount(CalculateColumnCount(nWidth)));
int nItemHeight (maPreviewSize.Height());
-
+
return nRowCount * (nItemHeight + 2*mnBorderHeight);
}
diff --git a/sd/source/ui/toolpanel/controls/PreviewValueSet.hxx b/sd/source/ui/toolpanel/controls/PreviewValueSet.hxx
index 2c693f20866f..ab9d789d8d75 100644
--- a/sd/source/ui/toolpanel/controls/PreviewValueSet.hxx
+++ b/sd/source/ui/toolpanel/controls/PreviewValueSet.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -51,7 +51,7 @@ public:
void SetRightMouseClickHandler (const Link& rLink);
virtual void Paint (const Rectangle& rRect);
virtual void Resize (void);
-
+
/** When a request for the display of a context menu is made to this
method then that request is forwarded via the ContextMenuCallback.
This way the owning class can handle the context menu without having
@@ -87,7 +87,7 @@ private:
const int mnBorderWidth;
const int mnBorderHeight;
const int mnMaxColumnCount;
-
+
USHORT CalculateColumnCount (int nWidth) const;
USHORT CalculateRowCount (USHORT nColumnCount) const;
};
diff --git a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx
index 83bc417def0b..01fae398aff1 100644
--- a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx
+++ b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -114,7 +114,7 @@ void RecentMasterPagesSelector::Fill (ItemList& rItemList)
if (aToken != MasterPageContainer::NIL_TOKEN)
{
String sStyleName (mpContainer->GetStyleNameForToken(aToken));
- if (sStyleName.Len()==0
+ if (sStyleName.Len()==0
|| aCurrentNames.find(sStyleName) == aCurrentNames.end())
{
rItemList.push_back(aToken);
@@ -131,7 +131,7 @@ void RecentMasterPagesSelector::AssignMasterPageToPageList (
const ::boost::shared_ptr<std::vector<SdPage*> >& rpPageList)
{
USHORT nSelectedItemId = mpPageSet->GetSelectItemId();
-
+
MasterPagesSelector::AssignMasterPageToPageList(pMasterPage, rpPageList);
// Restore the selection.
diff --git a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.hxx b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.hxx
index 051da6ad7f71..108aa24b2ea5 100644
--- a/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.hxx
+++ b/sd/source/ui/toolpanel/controls/RecentMasterPagesSelector.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -41,7 +41,7 @@ class RecentMasterPagesSelector
{
public:
RecentMasterPagesSelector (
- TreeNode* pParent,
+ TreeNode* pParent,
SdDrawDocument& rDocument,
ViewShellBase& rBase,
const ::boost::shared_ptr<MasterPageContainer>& rpContainer);
diff --git a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
index 7a685ca76cd7..1dd5109c1eb0 100644
--- a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
+++ b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -141,7 +141,7 @@ RecentlyUsedMasterPages& RecentlyUsedMasterPages::Instance (void)
else {
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
}
-
+
return *mpInstance;
}
@@ -163,7 +163,7 @@ RecentlyUsedMasterPages::~RecentlyUsedMasterPages (void)
{
Link aLink (LINK(this,RecentlyUsedMasterPages,MasterPageContainerChangeListener));
mpContainer->RemoveChangeListener(aLink);
-
+
MasterPageObserver::Instance().RemoveEventListener(
LINK(this,RecentlyUsedMasterPages,MasterPageChangeListener));
}
@@ -175,7 +175,7 @@ void RecentlyUsedMasterPages::LateInit (void)
{
Link aLink (LINK(this,RecentlyUsedMasterPages,MasterPageContainerChangeListener));
mpContainer->AddChangeListener(aLink);
-
+
LoadPersistentValues ();
MasterPageObserver::Instance().AddEventListener(
LINK(this,RecentlyUsedMasterPages,MasterPageChangeListener));
diff --git a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.hxx b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.hxx
index 592cfd0cf914..1e153625992e 100644
--- a/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.hxx
+++ b/sd/source/ui/toolpanel/controls/RecentlyUsedMasterPages.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -61,7 +61,7 @@ public:
void AddEventListener (const Link& rEventListener);
void RemoveEventListener (const Link& rEventListener);
-
+
int GetMasterPageCount (void) const;
MasterPageContainer::Token GetTokenForIndex (sal_uInt32 nIndex) const;
@@ -77,7 +77,7 @@ private:
::std::auto_ptr<MasterPageList> mpMasterPages;
unsigned long int mnMaxListSize;
::boost::shared_ptr<MasterPageContainer> mpContainer;
-
+
RecentlyUsedMasterPages (void);
virtual ~RecentlyUsedMasterPages (void);
diff --git a/sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx b/sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx
index ac51ec1dc163..d0d5ef0cdb71 100644
--- a/sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx
+++ b/sd/source/ui/toolpanel/controls/SlideTransitionPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx b/sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx
index b4e2005225ad..48e29ebbd011 100644
--- a/sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx
+++ b/sd/source/ui/toolpanel/controls/SlideTransitionPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
diff --git a/sd/source/ui/toolpanel/controls/TableDesignPanel.cxx b/sd/source/ui/toolpanel/controls/TableDesignPanel.cxx
index ac5c97ecf3e8..61b35ae9b97c 100644
--- a/sd/source/ui/toolpanel/controls/TableDesignPanel.cxx
+++ b/sd/source/ui/toolpanel/controls/TableDesignPanel.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -38,11 +38,11 @@
#include "sdresid.hxx"
namespace sd
-{
-
+{
+
class ViewShellBase;
extern ::Window * createTableDesignPanel( ::Window* pParent, ViewShellBase& rBase );
-
+
namespace toolpanel { namespace controls {
diff --git a/sd/source/ui/toolpanel/controls/TableDesignPanel.hxx b/sd/source/ui/toolpanel/controls/TableDesignPanel.hxx
index 551d6b9b7a08..6ed358bd4b8b 100644
--- a/sd/source/ui/toolpanel/controls/TableDesignPanel.hxx
+++ b/sd/source/ui/toolpanel/controls/TableDesignPanel.hxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -48,7 +48,7 @@ class TableDesignPanel
{
public:
TableDesignPanel (
- ::Window& i_rParentWindow,
+ ::Window& i_rParentWindow,
ToolPanelViewShell& i_rPanelViewShell);
virtual ~TableDesignPanel (void);