summaryrefslogtreecommitdiff
path: root/starmath/source
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-23 11:20:40 +0200
committerNoel Grandin <noel@peralex.com>2014-09-23 14:11:39 +0300
commit827c46e7d75000cb03b0ce21759f9d0825f0c096 (patch)
tree3a84ccc45d54607c61328b18f58f914c1d6ec240 /starmath/source
parent7cbbefae224ab85343accb42b03f9431ec693a83 (diff)
fdo#82577: Handle Window
Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
Diffstat (limited to 'starmath/source')
-rw-r--r--starmath/source/ElementsDockingWindow.cxx6
-rw-r--r--starmath/source/accessibility.cxx14
-rw-r--r--starmath/source/dialog.cxx38
-rw-r--r--starmath/source/document.cxx2
-rw-r--r--starmath/source/smmod.cxx2
-rw-r--r--starmath/source/tmpdevice.cxx2
-rw-r--r--starmath/source/toolbox.cxx6
-rw-r--r--starmath/source/utility.cxx4
-rw-r--r--starmath/source/view.cxx6
9 files changed, 40 insertions, 40 deletions
diff --git a/starmath/source/ElementsDockingWindow.cxx b/starmath/source/ElementsDockingWindow.cxx
index 6c99406f8cd5..4668e93a5905 100644
--- a/starmath/source/ElementsDockingWindow.cxx
+++ b/starmath/source/ElementsDockingWindow.cxx
@@ -212,7 +212,7 @@ const sal_uInt16 SmElementsControl::aOthers[][2] =
{RID_DOTSUP, RID_DOTSUP_HELP}, {RID_DOTSDOWN, RID_DOTSDOWN_HELP}
};
-SmElementsControl::SmElementsControl(Window *pParent, const ResId& rResId)
+SmElementsControl::SmElementsControl(vcl::Window *pParent, const ResId& rResId)
: Control(pParent, rResId)
, mpDocShell(new SmDocShell(SFXOBJECTSHELL_STD_NORMAL))
, maCurrentSetId(0)
@@ -615,7 +615,7 @@ const sal_uInt16 SmElementsDockingWindow::aCategories[] = {
RID_CATEGORY_EXAMPLES
};
-SmElementsDockingWindow::SmElementsDockingWindow(SfxBindings* pInputBindings, SfxChildWindow* pChildWindow, Window* pParent) :
+SmElementsDockingWindow::SmElementsDockingWindow(SfxBindings* pInputBindings, SfxChildWindow* pChildWindow, vcl::Window* pParent) :
SfxDockingWindow(pInputBindings, pChildWindow, pParent, SmResId(RID_ELEMENTSDOCKINGWINDOW)),
maElementsControl (this, SmResId(1)),
maElementListBox (this, SmResId(1))
@@ -722,7 +722,7 @@ void SmElementsDockingWindow::Resize()
SFX_IMPL_DOCKINGWINDOW_WITHID(SmElementsDockingWindowWrapper, SID_ELEMENTSDOCKINGWINDOW);
SmElementsDockingWindowWrapper::SmElementsDockingWindowWrapper(
- Window *pParentWindow, sal_uInt16 nId,
+ vcl::Window *pParentWindow, sal_uInt16 nId,
SfxBindings *pBindings, SfxChildWinInfo *pInfo) :
SfxChildWindow(pParentWindow, nId)
{
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index f7e3d0d3a1a0..6388cc604dd1 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -62,7 +62,7 @@ using namespace com::sun::star::accessibility;
-static awt::Rectangle lcl_GetBounds( Window *pWin )
+static awt::Rectangle lcl_GetBounds( vcl::Window *pWin )
{
// !! see VCLXAccessibleComponent::implGetBounds()
@@ -77,7 +77,7 @@ static awt::Rectangle lcl_GetBounds( Window *pWin )
aBounds.Y = aRect.Top();
aBounds.Width = aRect.GetWidth();
aBounds.Height = aRect.GetHeight();
- Window* pParent = pWin->GetAccessibleParentWindow();
+ vcl::Window* pParent = pWin->GetAccessibleParentWindow();
if (pParent)
{
Rectangle aParentRect = pParent->GetWindowExtentsRelative( NULL );
@@ -89,7 +89,7 @@ static awt::Rectangle lcl_GetBounds( Window *pWin )
return aBounds;
}
-static awt::Point lcl_GetLocationOnScreen( Window *pWin )
+static awt::Point lcl_GetLocationOnScreen( vcl::Window *pWin )
{
// !! see VCLXAccessibleComponent::getLocationOnScreen()
@@ -314,7 +314,7 @@ Reference< XAccessible > SAL_CALL SmGraphicAccessible::getAccessibleParent()
if (!pWin)
throw RuntimeException();
- Window *pAccParent = pWin->GetAccessibleParentWindow();
+ vcl::Window *pAccParent = pWin->GetAccessibleParentWindow();
OSL_ENSURE( pAccParent, "accessible parent missing" );
return pAccParent ? pAccParent->GetAccessible() : Reference< XAccessible >();
}
@@ -324,7 +324,7 @@ sal_Int32 SAL_CALL SmGraphicAccessible::getAccessibleIndexInParent()
{
SolarMutexGuard aGuard;
sal_Int32 nIdx = -1;
- Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0;
+ vcl::Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0;
if (pAccParent)
{
sal_uInt16 nCnt = pAccParent->GetAccessibleChildWindowCount();
@@ -1822,7 +1822,7 @@ uno::Reference< XAccessible > SAL_CALL SmEditAccessible::getAccessibleParent( )
if (!pWin)
throw RuntimeException();
- Window *pAccParent = pWin->GetAccessibleParentWindow();
+ vcl::Window *pAccParent = pWin->GetAccessibleParentWindow();
OSL_ENSURE( pAccParent, "accessible parent missing" );
return pAccParent ? pAccParent->GetAccessible() : Reference< XAccessible >();
}
@@ -1832,7 +1832,7 @@ sal_Int32 SAL_CALL SmEditAccessible::getAccessibleIndexInParent( )
{
SolarMutexGuard aGuard;
sal_Int32 nIdx = -1;
- Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0;
+ vcl::Window *pAccParent = pWin ? pWin->GetAccessibleParentWindow() : 0;
if (pAccParent)
{
sal_uInt16 nCnt = pAccParent->GetAccessibleChildWindowCount();
diff --git a/starmath/source/dialog.cxx b/starmath/source/dialog.cxx
index 218248562c31..e731fb6bc6d0 100644
--- a/starmath/source/dialog.cxx
+++ b/starmath/source/dialog.cxx
@@ -157,7 +157,7 @@ IMPL_LINK_INLINE_START( SmPrintOptionsTabPage, SizeButtonClickHdl, Button *, EMP
IMPL_LINK_INLINE_END( SmPrintOptionsTabPage, SizeButtonClickHdl, Button *, pButton )
-SmPrintOptionsTabPage::SmPrintOptionsTabPage(Window *pParent, const SfxItemSet &rOptions)
+SmPrintOptionsTabPage::SmPrintOptionsTabPage(vcl::Window *pParent, const SfxItemSet &rOptions)
: SfxTabPage(pParent, "SmathSettings", "modules/smath/ui/smathsettings.ui", &rOptions)
{
get( m_pTitle, "title");
@@ -220,7 +220,7 @@ void SmPrintOptionsTabPage::Reset(const SfxItemSet* rSet)
}
-SfxTabPage* SmPrintOptionsTabPage::Create(Window* pWindow, const SfxItemSet& rSet)
+SfxTabPage* SmPrintOptionsTabPage::Create(vcl::Window* pWindow, const SfxItemSet& rSet)
{
return (new SmPrintOptionsTabPage(pWindow, rSet));
}
@@ -239,7 +239,7 @@ void SmShowFont::Paint(const Rectangle& rRect )
(GetOutputSize().Height() - TextSize.Height()) / 2), Text);
}
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSmShowFont(Window* pParent, VclBuilder::stringmap &rMap)
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmShowFont(vcl::Window* pParent, VclBuilder::stringmap &rMap)
{
WinBits nWinStyle = 0;
@@ -318,7 +318,7 @@ void SmFontDialog::SetFont(const vcl::Font &rFont)
m_pShowFont->SetFont(Face);
}
-SmFontDialog::SmFontDialog(Window * pParent, OutputDevice *pFntListDevice, bool bHideCheckboxes)
+SmFontDialog::SmFontDialog(vcl::Window * pParent, OutputDevice *pFntListDevice, bool bHideCheckboxes)
: ModalDialog(pParent, "FontDialog", "modules/smath/ui/fontdialog.ui")
{
get(m_pFontBox, "font");
@@ -368,7 +368,7 @@ SmFontDialog::SmFontDialog(Window * pParent, OutputDevice *pFntListDevice, bool
namespace
{
- void getColors(Window &rRef, ColorData &rBgCol, ColorData &rTxtCol)
+ void getColors(vcl::Window &rRef, ColorData &rBgCol, ColorData &rTxtCol)
{
const StyleSettings &rS = rRef.GetSettings().GetStyleSettings();
if (rS.GetHighContrastMode())
@@ -408,7 +408,7 @@ void SmFontDialog::DataChanged( const DataChangedEvent& rDCEvt )
class SaveDefaultsQuery : public MessageDialog
{
public:
- SaveDefaultsQuery(Window *pParent)
+ SaveDefaultsQuery(vcl::Window *pParent)
: MessageDialog(pParent, "SaveDefaultsDialog",
"modules/smath/ui/savedefaultsdialog.ui")
{
@@ -427,7 +427,7 @@ IMPL_LINK( SmFontSizeDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton
return 0;
}
-SmFontSizeDialog::SmFontSizeDialog(Window * pParent)
+SmFontSizeDialog::SmFontSizeDialog(vcl::Window * pParent)
: ModalDialog(pParent, "FontSizeDialog", "modules/smath/ui/fontsizedialog.ui")
{
get(m_pTextSize, "spinB_text");
@@ -520,7 +520,7 @@ IMPL_LINK_INLINE_START( SmFontTypeDialog, DefaultButtonClickHdl, Button *, EMPTY
}
IMPL_LINK_INLINE_END( SmFontTypeDialog, DefaultButtonClickHdl, Button *, pButton )
-SmFontTypeDialog::SmFontTypeDialog(Window * pParent, OutputDevice *pFntListDevice)
+SmFontTypeDialog::SmFontTypeDialog(vcl::Window * pParent, OutputDevice *pFntListDevice)
: ModalDialog(pParent, "FontsDialog", "modules/smath/ui/fonttypedialog.ui"),
pFontListDev (pFntListDevice)
{
@@ -758,7 +758,7 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory)
};
// array to help iterate over the controls
- Window * const aWin[4][2] =
+ vcl::Window * const aWin[4][2] =
{
{ m_pFixedText1, m_pMetricField1 },
{ m_pFixedText2, m_pMetricField2 },
@@ -852,7 +852,7 @@ void SmDistanceDialog::SetCategory(sal_uInt16 nCategory)
}
-SmDistanceDialog::SmDistanceDialog(Window *pParent)
+SmDistanceDialog::SmDistanceDialog(vcl::Window *pParent)
: ModalDialog(pParent, "SpacingDialog",
"modules/smath/ui/spacingdialog.ui")
{
@@ -985,7 +985,7 @@ IMPL_LINK( SmAlignDialog, DefaultButtonClickHdl, Button *, EMPTYARG /*pButton*/
return 0;
}
-SmAlignDialog::SmAlignDialog(Window * pParent)
+SmAlignDialog::SmAlignDialog(vcl::Window * pParent)
: ModalDialog(pParent, "AlignmentDialog",
"modules/smath/ui/alignmentdialog.ui")
{
@@ -1035,7 +1035,7 @@ void SmAlignDialog::WriteTo(SmFormat &rFormat) const
}
-SmShowSymbolSetWindow::SmShowSymbolSetWindow(Window *pParent, WinBits nStyle)
+SmShowSymbolSetWindow::SmShowSymbolSetWindow(vcl::Window *pParent, WinBits nStyle)
: Control(pParent, nStyle)
, m_pVScrollBar(0)
, nLen(0)
@@ -1180,7 +1180,7 @@ void SmShowSymbolSetWindow::setScrollbar(ScrollBar *pVScrollBar)
m_pVScrollBar->SetScrollHdl(LINK(this, SmShowSymbolSetWindow, ScrollHdl));
}
-SmShowSymbolSet::SmShowSymbolSet(Window *pParent)
+SmShowSymbolSet::SmShowSymbolSet(vcl::Window *pParent)
: VclHBox(pParent, false, 6)
, aSymbolWindow(this, WB_TABSTOP)
, aVScrollBar(this, WinBits(WB_VSCROLL))
@@ -1192,7 +1192,7 @@ SmShowSymbolSet::SmShowSymbolSet(Window *pParent)
aSymbolWindow.Show();
}
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSmShowSymbolSet(Window *pParent, VclBuilder::stringmap &)
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmShowSymbolSet(vcl::Window *pParent, VclBuilder::stringmap &)
{
return new SmShowSymbolSet(pParent);
}
@@ -1219,7 +1219,7 @@ void SmShowSymbolSetWindow::calccols()
Size SmShowSymbolSetWindow::GetOptimalSize() const
{
- Window *pParent = GetParent();
+ vcl::Window *pParent = GetParent();
return Size(pParent->approximate_char_width() * 24, pParent->GetTextHeight() * 8);
}
@@ -1281,7 +1281,7 @@ IMPL_LINK( SmShowSymbolSetWindow, ScrollHdl, ScrollBar*, EMPTYARG /*pScrollBar*/
return 0;
}
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSmShowSymbol(Window *pParent, VclBuilder::stringmap &rMap)
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmShowSymbol(vcl::Window *pParent, VclBuilder::stringmap &rMap)
{
WinBits nWinStyle = 0;
@@ -1447,7 +1447,7 @@ IMPL_LINK_NOARG( SmSymbolDialog, GetClickHdl )
}
-SmSymbolDialog::SmSymbolDialog(Window *pParent, OutputDevice *pFntListDevice,
+SmSymbolDialog::SmSymbolDialog(vcl::Window *pParent, OutputDevice *pFntListDevice,
SmSymbolManager &rMgr, SmViewShell &rViewShell)
: ModalDialog(pParent, "CatalogDialog",
"modules/smath/ui/catalogdialog.ui")
@@ -1562,7 +1562,7 @@ const SmSym * SmSymbolDialog::GetSymbol() const
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSmShowChar(Window *pParent, VclBuilder::stringmap &rMap)
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmShowChar(vcl::Window *pParent, VclBuilder::stringmap &rMap)
{
WinBits nWinStyle = 0;
@@ -1970,7 +1970,7 @@ void SmSymDefineDialog::UpdateButtons()
pDeleteBtn->Enable(bDelete);
}
-SmSymDefineDialog::SmSymDefineDialog(Window * pParent,
+SmSymDefineDialog::SmSymDefineDialog(vcl::Window * pParent,
OutputDevice *pFntListDevice, SmSymbolManager &rMgr) :
ModalDialog (pParent, "EditSymbols", "modules/smath/ui/symdefinedialog.ui"),
rSymbolMgr (rMgr),
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx
index f16a821f4fe6..fbc9a1b27cfa 100644
--- a/starmath/source/document.cxx
+++ b/starmath/source/document.cxx
@@ -431,7 +431,7 @@ void SmDocShell::DrawFormula(OutputDevice &rDev, Point &rPosition, bool bDrawSel
sal_uLong nOldDrawMode = DRAWMODE_DEFAULT;
bool bRestoreDrawMode = false;
if (OUTDEV_WINDOW == rDev.GetOutDevType() &&
- ((Window &) rDev).GetSettings().GetStyleSettings().GetHighContrastMode())
+ ((vcl::Window &) rDev).GetSettings().GetStyleSettings().GetHighContrastMode())
{
nOldDrawMode = rDev.GetDrawMode();
rDev.SetDrawMode( DRAWMODE_DEFAULT );
diff --git a/starmath/source/smmod.cxx b/starmath/source/smmod.cxx
index 7a746f44e738..a214af390cb3 100644
--- a/starmath/source/smmod.cxx
+++ b/starmath/source/smmod.cxx
@@ -293,7 +293,7 @@ void SmModule::ApplyItemSet( sal_uInt16 nId, const SfxItemSet& rSet )
GetConfig()->ItemSetToConfig(rSet);
}
}
-SfxTabPage* SmModule::CreateTabPage( sal_uInt16 nId, Window* pParent, const SfxItemSet& rSet )
+SfxTabPage* SmModule::CreateTabPage( sal_uInt16 nId, vcl::Window* pParent, const SfxItemSet& rSet )
{
SfxTabPage* pRet = 0;
if(nId == SID_SM_TP_PRINTOPTIONS)
diff --git a/starmath/source/tmpdevice.cxx b/starmath/source/tmpdevice.cxx
index c867e33475ea..2a6c3babce57 100644
--- a/starmath/source/tmpdevice.cxx
+++ b/starmath/source/tmpdevice.cxx
@@ -54,7 +54,7 @@ Color SmTmpDevice::Impl_GetColor( const Color& rColor )
{
Color aBgCol( rOutDev.GetBackground().GetColor() );
if (OUTDEV_WINDOW == rOutDev.GetOutDevType())
- aBgCol = ((Window &) rOutDev).GetDisplayBackground().GetColor();
+ aBgCol = ((vcl::Window &) rOutDev).GetDisplayBackground().GetColor();
nNewCol = SM_MOD()->GetColorConfig().GetColorValue(svtools::FONTCOLOR).nColor;
diff --git a/starmath/source/toolbox.cxx b/starmath/source/toolbox.cxx
index f9357c0ad225..455441f4ab61 100644
--- a/starmath/source/toolbox.cxx
+++ b/starmath/source/toolbox.cxx
@@ -99,7 +99,7 @@ static sal_uInt16 GetCategoryRID( sal_uInt16 nResId )
SmToolBoxWindow::SmToolBoxWindow(SfxBindings *pTmpBindings,
SfxChildWindow *pChildWindow,
- Window *pParent)
+ vcl::Window *pParent)
: SfxFloatingWindow(pTmpBindings, pChildWindow, pParent, "FloatingElements",
"modules/smath/ui/floatingelements.ui")
{
@@ -127,7 +127,7 @@ SmToolBoxWindow::SmToolBoxWindow(SfxBindings *pTmpBindings,
sal_uInt16 i;
for (i = 0; i < NUM_TBX_CATEGORIES; ++i)
{
- ToolBox *pBox = new ToolBox(get<Window>("box"), SmResId( TOOLBOX_CAT_A + i ));
+ ToolBox *pBox = new ToolBox(get<vcl::Window>("box"), SmResId( TOOLBOX_CAT_A + i ));
vToolBoxCategories[i] = pBox;
pBox->SetSelectHdl(LINK(this, SmToolBoxWindow, CmdSelectHdl));
}
@@ -344,7 +344,7 @@ IMPL_LINK( SmToolBoxWindow, CmdSelectHdl, ToolBox*, pToolBox)
SFX_IMPL_FLOATINGWINDOW_WITHID(SmToolBoxWrapper, SID_TOOLBOXWINDOW);
-SmToolBoxWrapper::SmToolBoxWrapper(Window *pParentWindow,
+SmToolBoxWrapper::SmToolBoxWrapper(vcl::Window *pParentWindow,
sal_uInt16 nId, SfxBindings* pBindings,
SfxChildWinInfo *pInfo) :
SfxChildWindow(pParentWindow, nId)
diff --git a/starmath/source/utility.cxx b/starmath/source/utility.cxx
index 5c15ffa89b9b..47fad4ebb097 100644
--- a/starmath/source/utility.cxx
+++ b/starmath/source/utility.cxx
@@ -147,12 +147,12 @@ void SmFontPickList::WriteTo(SmFontDialog& rDialog) const
/**************************************************************************/
-extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeSmFontPickListBox(Window* pParent, VclBuilder::stringmap &)
+extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeSmFontPickListBox(vcl::Window* pParent, VclBuilder::stringmap &)
{
return new SmFontPickListBox(pParent, WB_DROPDOWN);
}
-SmFontPickListBox::SmFontPickListBox (Window* pParent, WinBits nBits) :
+SmFontPickListBox::SmFontPickListBox (vcl::Window* pParent, WinBits nBits) :
SmFontPickList(4),
ListBox(pParent, nBits)
{
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index f59f9bc24f44..33ae98f870d4 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -706,7 +706,7 @@ void SmEditController::StateChanged(sal_uInt16 nSID, SfxItemState eState, const
/**************************************************************************/
SmCmdBoxWindow::SmCmdBoxWindow(SfxBindings *pBindings_, SfxChildWindow *pChildWindow,
- Window *pParent) :
+ vcl::Window *pParent) :
SfxDockingWindow(pBindings_, pChildWindow, pParent, SmResId(RID_CMDBOXWINDOW)),
aEdit (*this),
aController (aEdit, SID_TEXT, *pBindings_),
@@ -887,7 +887,7 @@ void SmCmdBoxWindow::GetFocus()
SFX_IMPL_DOCKINGWINDOW_WITHID(SmCmdBoxWrapper, SID_CMDBOXWINDOW);
-SmCmdBoxWrapper::SmCmdBoxWrapper(Window *pParentWindow, sal_uInt16 nId,
+SmCmdBoxWrapper::SmCmdBoxWrapper(vcl::Window *pParentWindow, sal_uInt16 nId,
SfxBindings *pBindings,
SfxChildWinInfo *pInfo) :
SfxChildWindow(pParentWindow, nId)
@@ -1360,7 +1360,7 @@ bool SmViewShell::HasPrintOptionsPage() const
return true;
}
-SfxTabPage* SmViewShell::CreatePrintOptionsPage(Window *pParent,
+SfxTabPage* SmViewShell::CreatePrintOptionsPage(vcl::Window *pParent,
const SfxItemSet &rOptions)
{
return SmPrintOptionsTabPage::Create(pParent, rOptions);