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
cdc8cb70
Kaydet (Commit)
cdc8cb70
authored
May 03, 2013
tarafından
Andre Fischer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
122218: Added more missing files.
üst
99572ff1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
425 additions
and
0 deletions
+425
-0
Tools.hxx
sfx2/inc/sfx2/sidebar/Tools.hxx
+2
-0
InsertPropertyPanel.cxx
svx/source/sidebar/insert/InsertPropertyPanel.cxx
+0
-0
InsertPropertyPanel.hrc
svx/source/sidebar/insert/InsertPropertyPanel.hrc
+42
-0
InsertPropertyPanel.hxx
svx/source/sidebar/insert/InsertPropertyPanel.hxx
+96
-0
InsertPropertyPanel.src
svx/source/sidebar/insert/InsertPropertyPanel.src
+146
-0
SimpleToolBoxController.cxx
svx/source/sidebar/insert/SimpleToolBoxController.cxx
+85
-0
SimpleToolBoxController.hxx
svx/source/sidebar/insert/SimpleToolBoxController.hxx
+54
-0
No files found.
sfx2/inc/sfx2/sidebar/Tools.hxx
Dosyayı görüntüle @
cdc8cb70
...
...
@@ -29,7 +29,9 @@
#include "sfx2/dllapi.h"
#include <com/sun/star/awt/Gradient.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/util/URL.hpp>
#define A2S(s) (::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM(s)))
...
...
svx/source/sidebar/insert/InsertPropertyPanel.cxx
0 → 100755
Dosyayı görüntüle @
cdc8cb70
This diff is collapsed.
Click to expand it.
svx/source/sidebar/insert/InsertPropertyPanel.hrc
0 → 100755
Dosyayı görüntüle @
cdc8cb70
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#include "svx/dialogs.hrc"
#define TB_INSERT_STANDARD 1
#define TB_INSERT_CUSTOM 2
#define TBI_STANDARD_LINE 10
#define TBI_STANDARD_ARROW 11
#define TBI_STANDARD_RECTANGLE 12
#define TBI_STANDARD_ELLIPSE 13
#define TBI_STANDARD_TEXT 14
#define TBI_STANDARD_LINES 15
#define TBI_STANDARD_CONNECTORS 16
#define TBI_STANDARD_ARROWS 17
#define TBI_CUSTOM_BASICS 20
#define TBI_CUSTOM_SYMBOLS 21
#define TBI_CUSTOM_ARROWS 22
#define TBI_CUSTOM_FLOWCHARTS 23
#define TBI_CUSTOM_CALLOUTS 24
#define TBI_CUSTOM_STARS 25
svx/source/sidebar/insert/InsertPropertyPanel.hxx
0 → 100755
Dosyayı görüntüle @
cdc8cb70
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef SVX_SIDEBAR_INSERT_PROPERTY_PAGE_HXX
#define SVX_SIDEBAR_INSERT_PROPERTY_PAGE_HXX
#include <boost/scoped_ptr.hpp>
#include <vcl/ctrl.hxx>
#include <com/sun/star/frame/XFrame.hpp>
#include <com/sun/star/frame/XDispatch.hpp>
#include <com/sun/star/frame/XToolbarController.hpp>
#include <map>
namespace
css
=
::
com
::
sun
::
star
;
namespace
cssu
=
::
com
::
sun
::
star
::
uno
;
class
ToolBox
;
namespace
svx
{
namespace
sidebar
{
class
InsertPropertyPanel
:
public
Control
{
public
:
InsertPropertyPanel
(
Window
*
pParent
,
const
cssu
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
);
virtual
~
InsertPropertyPanel
(
void
);
private
:
::
boost
::
scoped_ptr
<
Window
>
mpStandardShapesBackground
;
::
boost
::
scoped_ptr
<
ToolBox
>
mpStandardShapesToolBox
;
::
boost
::
scoped_ptr
<
Window
>
mpCustomShapesBackground
;
::
boost
::
scoped_ptr
<
ToolBox
>
mpCustomShapesToolBox
;
class
ItemDescriptor
{
public
:
cssu
::
Reference
<
css
::
frame
::
XToolbarController
>
mxController
;
css
::
util
::
URL
maURL
;
rtl
::
OUString
msCurrentCommand
;
cssu
::
Reference
<
css
::
frame
::
XDispatch
>
mxDispatch
;
};
typedef
::
std
::
map
<
sal_uInt16
,
ItemDescriptor
>
ControllerContainer
;
ControllerContainer
maControllers
;
const
cssu
::
Reference
<
css
::
frame
::
XFrame
>
mxFrame
;
/** Add listeners to toolbox and update its size to match its
content.
*/
void
SetupToolBox
(
ToolBox
&
rToolBox
);
cssu
::
Reference
<
css
::
frame
::
XToolbarController
>
GetControllerForItemId
(
const
sal_uInt16
nItemId
)
const
;
ToolBox
*
GetToolBoxForItemId
(
const
sal_uInt16
nItemId
)
const
;
sal_uInt16
GetItemIdForSubToolbarName
(
const
::
rtl
::
OUString
&
rsCOmmandName
)
const
;
/** Create toolbox controller for one item.
*/
void
CreateController
(
const
sal_uInt16
nItemId
);
void
UpdateIcons
(
void
);
DECL_LINK
(
DropDownClickHandler
,
ToolBox
*
);
DECL_LINK
(
ClickHandler
,
ToolBox
*
);
DECL_LINK
(
DoubleClickHandler
,
ToolBox
*
);
DECL_LINK
(
SelectHandler
,
ToolBox
*
);
DECL_LINK
(
WindowEventListener
,
VclSimpleEvent
*
);
DECL_LINK
(
Activate
,
ToolBox
*
);
DECL_LINK
(
Deactivate
,
ToolBox
*
);
};
}
}
// end of namespace ::svx::sidebar
#endif
svx/source/sidebar/insert/InsertPropertyPanel.src
0 → 100755
Dosyayı görüntüle @
cdc8cb70
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#include "InsertPropertyPanel.hrc"
#include <sfx2/sidebar/ResourceDefinitions.hrc>
#include "helpid.hrc"
#define FIRST_LINE_Y SECTIONPAGE_MARGIN_VERTICAL_TOP
#define SECOND_LINE_Y FIRST_LINE_Y + TOOLBOX_ITEM_HEIGHT + CONTROL_SPACING_VERTICAL + 1
Control RID_SIDEBAR_INSERT_PANEL
{
OutputSize = TRUE;
DialogControl = TRUE;
Border = FALSE;
Size = MAP_APPFONT(
PROPERTYPAGE_WIDTH,
SECTIONPAGE_MARGIN_VERTICAL_TOP
+ TOOLBOX_ITEM_HEIGHT * 2
+ CONTROL_SPACING_VERTICAL
+ SECTIONPAGE_MARGIN_VERTICAL_BOT);
HelpID = HID_SIDEBAR_INSERT_PANEL;
Text = "Insert";
ToolBox TB_INSERT_STANDARD
{
SVLook = TRUE ;
Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, FIRST_LINE_Y);
Size = MAP_APPFONT (TOOLBOX_ITEM_WIDTH * 6 + TOOLBOX_ITEM_DD_WIDTH, TOOLBOX_ITEM_HEIGHT) ;
TabStop = TRUE ;
HelpID = HID_SIDEBAR_INSERT_TOOLBOX;
Text = "Insert Shapes";
ItemList =
{
ToolBoxItem
{
Identifier = TBI_STANDARD_LINE;
Command = ".uno:Line";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_ARROW;
Command = ".uno:LineArrowEnd";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_RECTANGLE;
Command = ".uno:Rect";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_ELLIPSE;
Command = ".uno:Ellipse";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_TEXT;
Command = ".uno:Text";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_LINES;
Command = ".uno:LineToolbox";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_CONNECTORS;
Command = ".uno:ConnectorToolbox";
};
ToolBoxItem
{
Identifier = TBI_STANDARD_ARROWS;
Command = ".uno:ArrowsToolbox";
DropDown = TRUE;
};
};
};
ToolBox TB_INSERT_CUSTOM
{
SVLook = TRUE ;
Pos = MAP_APPFONT (SECTIONPAGE_MARGIN_HORIZONTAL, SECOND_LINE_Y);
Size = MAP_APPFONT (TOOLBOX_ITEM_DD_WIDTH * 6, TOOLBOX_ITEM_HEIGHT) ;
TabStop = TRUE ;
HelpID = HID_SIDEBAR_INSERT_TOOLBOX;
Text = "Insert";
ItemList =
{
ToolBoxItem
{
Identifier = TBI_CUSTOM_BASICS;
Command = ".uno:BasicShapes";
DropDown = TRUE;
};
ToolBoxItem
{
Identifier = TBI_CUSTOM_SYMBOLS;
Command = ".uno:SymbolShapes";
DropDown = TRUE;
};
ToolBoxItem
{
Identifier = TBI_CUSTOM_ARROWS;
Command = ".uno:ArrowShapes";
DropDown = TRUE;
};
ToolBoxItem
{
Identifier = TBI_CUSTOM_FLOWCHARTS;
Command = ".uno:FlowChartShapes";
DropDown = TRUE;
};
ToolBoxItem
{
Identifier = TBI_CUSTOM_CALLOUTS;
Command = ".uno:CalloutShapes";
DropDown = TRUE;
};
ToolBoxItem
{
Identifier = TBI_CUSTOM_STARS;
Command = ".uno:StarShapes";
DropDown = TRUE;
};
};
};
};
svx/source/sidebar/insert/SimpleToolBoxController.cxx
0 → 100755
Dosyayı görüntüle @
cdc8cb70
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#include "precompiled_svx.hxx"
#include "SimpleToolBoxController.hxx"
#include <comphelper/processfactory.hxx>
#include <vcl/toolbox.hxx>
#include <vos/mutex.hxx>
#include <vcl/svapp.hxx>
using
namespace
::
com
::
sun
::
star
;
namespace
svx
{
namespace
sidebar
{
SimpleToolBoxController
::
SimpleToolBoxController
(
const
cssu
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
ToolBox
&
rToolBox
,
const
sal_uInt16
nItemId
,
const
rtl
::
OUString
&
rsCommand
)
:
svt
::
ToolboxController
(
::
comphelper
::
getProcessServiceFactory
(),
rxFrame
,
rsCommand
),
mrToolbox
(
rToolBox
),
mnItemId
(
nItemId
)
{
}
SimpleToolBoxController
::~
SimpleToolBoxController
(
void
)
{
}
void
SAL_CALL
SimpleToolBoxController
::
statusChanged
(
const
css
::
frame
::
FeatureStateEvent
&
rEvent
)
throw
(
cssu
::
RuntimeException
)
{
vos
::
OGuard
aSolarMutexGuard
(
Application
::
GetSolarMutex
());
if
(
m_bDisposed
)
return
;
mrToolbox
.
EnableItem
(
mnItemId
,
rEvent
.
IsEnabled
);
sal_uInt16
nItemBits
=
mrToolbox
.
GetItemBits
(
mnItemId
);
nItemBits
&=
~
TIB_CHECKABLE
;
TriState
eState
=
STATE_NOCHECK
;
sal_Bool
bValue
;
if
(
rEvent
.
State
>>=
bValue
)
{
// Boolean, treat it as checked/unchecked
mrToolbox
.
CheckItem
(
mnItemId
,
bValue
);
if
(
bValue
)
eState
=
STATE_CHECK
;
nItemBits
|=
TIB_CHECKABLE
;
}
mrToolbox
.
SetItemState
(
mnItemId
,
eState
);
mrToolbox
.
SetItemBits
(
mnItemId
,
nItemBits
);
}
}
}
// end of namespace svx::sidebar
svx/source/sidebar/insert/SimpleToolBoxController.hxx
0 → 100755
Dosyayı görüntüle @
cdc8cb70
/**************************************************************
*
* 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
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*************************************************************/
#ifndef SVX_SIDEBAR_INSERT_SIMPLE_TOOLBOX_CONTROLLER_HXX
#define SVX_SIDEBAR_INSERT_SIMPLE_TOOLBOX_CONTROLLER_HXX
#include <svtools/toolboxcontroller.hxx>
namespace
css
=
::
com
::
sun
::
star
;
namespace
cssu
=
::
com
::
sun
::
star
::
uno
;
namespace
svx
{
namespace
sidebar
{
class
SimpleToolBoxController
:
public
svt
::
ToolboxController
{
public
:
SimpleToolBoxController
(
const
cssu
::
Reference
<
css
::
frame
::
XFrame
>&
rxFrame
,
ToolBox
&
rToolBox
,
const
sal_uInt16
nItTemId
,
const
rtl
::
OUString
&
rsComand
);
virtual
~
SimpleToolBoxController
(
void
);
// XStatusListener
virtual
void
SAL_CALL
statusChanged
(
const
css
::
frame
::
FeatureStateEvent
&
rEvent
)
throw
(
cssu
::
RuntimeException
);
private
:
ToolBox
&
mrToolbox
;
const
sal_uInt16
mnItemId
;
};
}
}
// end of namespace svx::sidebar
#endif
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