Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
1c704727
Kaydet (Commit)
1c704727
authored
Tem 17, 2015
tarafından
Maxim Monastirsky
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Convert dialog controls button to the generic controller
Change-Id: I3d03fba86139a3495e1cfd67b3f17149c73e3377
üst
326fad3c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
204 deletions
+14
-204
Library_basctl.mk
basctl/Library_basctl.mk
+0
-1
basidesh.cxx
basctl/source/basicide/basidesh.cxx
+0
-2
tbxctl.cxx
basctl/source/basicide/tbxctl.cxx
+0
-143
tbxctl.hxx
basctl/source/basicide/tbxctl.hxx
+0
-58
Controller.xcu
...cfg/registry/data/org/openoffice/Office/UI/Controller.xcu
+14
-0
No files found.
basctl/Library_basctl.mk
Dosyayı görüntüle @
1c704727
...
...
@@ -98,7 +98,6 @@ $(eval $(call gb_Library_add_exception_objects,basctl,\
basctl/source/basicide/register \
basctl/source/basicide/sbxitem \
basctl/source/basicide/scriptdocument \
basctl/source/basicide/tbxctl \
basctl/source/basicide/unomodel \
basctl/source/dlged/dlgedclip \
basctl/source/dlged/dlged \
...
...
basctl/source/basicide/basidesh.cxx
Dosyayı görüntüle @
1c704727
...
...
@@ -27,7 +27,6 @@
#include <basdoc.hxx>
#include <basicbox.hxx>
#include <editeng/sizeitem.hxx>
#include <tbxctl.hxx>
#include <iderdll2.hxx>
#include <basidectrlr.hxx>
#include <localizationmgr.hxx>
...
...
@@ -167,7 +166,6 @@ Shell::Shell( SfxViewFrame* pFrame_, SfxViewShell* /* pOldShell */ ) :
void
Shell
::
Init
()
{
TbxControls
::
RegisterControl
(
SID_CHOOSE_CONTROLS
);
SvxPosSizeStatusBarControl
::
RegisterControl
();
SvxInsertStatusBarControl
::
RegisterControl
();
XmlSecStatusBarControl
::
RegisterControl
(
SID_SIGNATURE
);
...
...
basctl/source/basicide/tbxctl.cxx
deleted
100644 → 0
Dosyayı görüntüle @
326fad3c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <svx/svxids.hrc>
#include "idetemp.hxx"
#include "tbxctl.hxx"
#include <sfx2/dispatch.hxx>
#include <sfx2/imagemgr.hxx>
#include <sfx2/viewfrm.hxx>
#include <svl/aeitem.hxx>
#include <vcl/toolbox.hxx>
namespace
basctl
{
using
namespace
::
com
::
sun
::
star
::
uno
;
namespace
{
OUString
aSubToolBarResName
(
"private:resource/toolbar/insertcontrolsbar"
);
}
SFX_IMPL_TOOLBOX_CONTROL
(
TbxControls
,
SfxAllEnumItem
)
/*************************************************************************
|*
|* Toolbox Class
|*
\************************************************************************/
TbxControls
::
TbxControls
(
sal_uInt16
nSlotId
,
sal_uInt16
nId
,
ToolBox
&
rTbx
)
:
SfxToolBoxControl
(
nSlotId
,
nId
,
rTbx
)
{
nLastSlot
=
USHRT_MAX
;
rTbx
.
SetItemBits
(
nId
,
ToolBoxItemBits
::
DROPDOWN
|
rTbx
.
GetItemBits
(
nId
)
);
rTbx
.
Invalidate
();
}
void
TbxControls
::
StateChanged
(
sal_uInt16
nSID
,
SfxItemState
eState
,
const
SfxPoolItem
*
pState
)
{
if
(
pState
)
{
if
(
SfxAllEnumItem
const
*
pItem
=
dynamic_cast
<
SfxAllEnumItem
const
*>
(
pState
))
{
sal_uInt16
nTemp
=
0
;
sal_uInt16
nLastEnum
=
pItem
->
GetValue
();
switch
(
nLastEnum
)
{
case
SVX_SNAP_PUSHBUTTON
:
nTemp
=
SID_INSERT_PUSHBUTTON
;
break
;
case
SVX_SNAP_CHECKBOX
:
nTemp
=
SID_INSERT_CHECKBOX
;
break
;
case
SVX_SNAP_RADIOBUTTON
:
nTemp
=
SID_INSERT_RADIOBUTTON
;
break
;
case
SVX_SNAP_SPINBUTTON
:
nTemp
=
SID_INSERT_SPINBUTTON
;
break
;
case
SVX_SNAP_FIXEDTEXT
:
nTemp
=
SID_INSERT_FIXEDTEXT
;
break
;
case
SVX_SNAP_GROUPBOX
:
nTemp
=
SID_INSERT_GROUPBOX
;
break
;
case
SVX_SNAP_LISTBOX
:
nTemp
=
SID_INSERT_LISTBOX
;
break
;
case
SVX_SNAP_COMBOBOX
:
nTemp
=
SID_INSERT_COMBOBOX
;
break
;
case
SVX_SNAP_EDIT
:
nTemp
=
SID_INSERT_EDIT
;
break
;
case
SVX_SNAP_HSCROLLBAR
:
nTemp
=
SID_INSERT_HSCROLLBAR
;
break
;
case
SVX_SNAP_VSCROLLBAR
:
nTemp
=
SID_INSERT_VSCROLLBAR
;
break
;
case
SVX_SNAP_PREVIEW
:
nTemp
=
SID_INSERT_PREVIEW
;
break
;
case
SVX_SNAP_URLBUTTON
:
nTemp
=
SID_INSERT_URLBUTTON
;
break
;
case
SVX_SNAP_IMAGECONTROL
:
nTemp
=
SID_INSERT_IMAGECONTROL
;
break
;
case
SVX_SNAP_PROGRESSBAR
:
nTemp
=
SID_INSERT_PROGRESSBAR
;
break
;
case
SVX_SNAP_HFIXEDLINE
:
nTemp
=
SID_INSERT_HFIXEDLINE
;
break
;
case
SVX_SNAP_VFIXEDLINE
:
nTemp
=
SID_INSERT_VFIXEDLINE
;
break
;
case
SVX_SNAP_DATEFIELD
:
nTemp
=
SID_INSERT_DATEFIELD
;
break
;
case
SVX_SNAP_TIMEFIELD
:
nTemp
=
SID_INSERT_TIMEFIELD
;
break
;
case
SVX_SNAP_NUMERICFIELD
:
nTemp
=
SID_INSERT_NUMERICFIELD
;
break
;
case
SVX_SNAP_CURRENCYFIELD
:
nTemp
=
SID_INSERT_CURRENCYFIELD
;
break
;
case
SVX_SNAP_FORMATTEDFIELD
:
nTemp
=
SID_INSERT_FORMATTEDFIELD
;
break
;
case
SVX_SNAP_PATTERNFIELD
:
nTemp
=
SID_INSERT_PATTERNFIELD
;
break
;
case
SVX_SNAP_FILECONTROL
:
nTemp
=
SID_INSERT_FILECONTROL
;
break
;
case
SVX_SNAP_TREECONTROL
:
nTemp
=
SID_INSERT_TREECONTROL
;
break
;
}
if
(
nTemp
)
{
OUString
aSlotURL
(
"slot:"
);
aSlotURL
+=
OUString
::
number
(
nTemp
);
Image
aImage
=
GetImage
(
m_xFrame
,
aSlotURL
,
hasBigImages
()
);
ToolBox
&
rBox
=
GetToolBox
();
rBox
.
SetItemImage
(
GetId
(),
aImage
);
nLastSlot
=
nLastEnum
;
}
}
}
SfxToolBoxControl
::
StateChanged
(
nSID
,
eState
,
pState
);
}
void
TbxControls
::
Select
(
sal_uInt16
nModifier
)
{
(
void
)
nModifier
;
SfxAllEnumItem
aItem
(
SID_CHOOSE_CONTROLS
,
nLastSlot
);
SfxViewFrame
*
pCurFrame
=
SfxViewFrame
::
Current
();
DBG_ASSERT
(
pCurFrame
!=
NULL
,
"No current view frame!"
);
SfxDispatcher
*
pDispatcher
=
pCurFrame
?
pCurFrame
->
GetDispatcher
()
:
NULL
;
if
(
pDispatcher
)
{
pDispatcher
->
Execute
(
SID_CHOOSE_CONTROLS
,
SfxCallMode
::
SYNCHRON
,
&
aItem
,
0L
);
}
}
/*************************************************************************
|*
|* the window is created here
|* position of the toolbox can be requested with GetToolBox()
|* rItemRect are the screen coordinates
|*
\************************************************************************/
VclPtr
<
SfxPopupWindow
>
TbxControls
::
CreatePopupWindow
()
{
if
(
GetSlotId
()
==
SID_CHOOSE_CONTROLS
)
createAndPositionSubToolBar
(
aSubToolBarResName
);
return
0
;
}
}
// namespace basctl
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
basctl/source/basicide/tbxctl.hxx
deleted
100644 → 0
Dosyayı görüntüle @
326fad3c
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef INCLUDED_BASCTL_SOURCE_BASICIDE_TBXCTL_HXX
#define INCLUDED_BASCTL_SOURCE_BASICIDE_TBXCTL_HXX
#include <sfx2/tbxctrl.hxx>
namespace
basctl
{
class
TbxControls
:
public
SfxToolBoxControl
{
private
:
struct
StateChangedInfo
{
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
frame
::
XLayoutManager
>
xLayoutManager
;
bool
bDisabled
;
};
sal_uInt16
nLastSlot
;
protected
:
virtual
void
StateChanged
(
sal_uInt16
nSID
,
SfxItemState
eState
,
const
SfxPoolItem
*
pState
)
SAL_OVERRIDE
;
public
:
SFX_DECL_TOOLBOX_CONTROL
();
TbxControls
(
sal_uInt16
nSlotId
,
sal_uInt16
nId
,
ToolBox
&
rTbx
);
virtual
~
TbxControls
()
{}
virtual
VclPtr
<
SfxPopupWindow
>
CreatePopupWindow
()
SAL_OVERRIDE
;
using
SfxToolBoxControl
::
Select
;
void
Select
(
sal_uInt16
nModifier
)
SAL_OVERRIDE
;
};
}
// namespace basctl
#endif // INCLUDED_BASCTL_SOURCE_BASICIDE_TBXCTL_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
officecfg/registry/data/org/openoffice/Office/UI/Controller.xcu
Dosyayı görüntüle @
1c704727
...
...
@@ -187,6 +187,20 @@
</node>
</node>
<node
oor:name=
"ToolBar"
>
<node
oor:name=
"BasicControlsToolBox"
oor:op=
"replace"
>
<prop
oor:name=
"Command"
>
<value>
.uno:ChooseControls
</value>
</prop>
<prop
oor:name=
"Module"
>
<value>
com.sun.star.script.BasicIDE
</value>
</prop>
<prop
oor:name=
"Controller"
>
<value>
com.sun.star.comp.framework.SubToolBarController
</value>
</prop>
<prop
oor:name=
"Value"
>
<value>
insertcontrolsbar
</value>
</prop>
</node>
<node
oor:name=
"AlignmentControl"
oor:op=
"replace"
>
<prop
oor:name=
"Command"
>
<value>
.uno:ObjectAlign
</value>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment