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
94546ae8
Kaydet (Commit)
94546ae8
authored
Haz 18, 2014
tarafından
Stephan Bergmann
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rtl::Reference fits just fine here
Change-Id: I354b546654e665607d9be0d65f6327fabb5694de
üst
32694db4
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
34 deletions
+26
-34
RptObject.hxx
reportdesign/inc/RptObject.hxx
+1
-3
ReportEngineJFree.hxx
reportdesign/source/core/inc/ReportEngineJFree.hxx
+2
-2
Section.hxx
reportdesign/source/core/inc/Section.hxx
+2
-2
RptObject.cxx
reportdesign/source/core/sdr/RptObject.cxx
+2
-2
ReportController.hxx
reportdesign/source/ui/inc/ReportController.hxx
+0
-1
toolboxcontroller.hxx
reportdesign/source/ui/inc/toolboxcontroller.hxx
+2
-2
toolboxcontroller.cxx
reportdesign/source/ui/misc/toolboxcontroller.cxx
+17
-22
No files found.
reportdesign/inc/RptObject.hxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -32,8 +32,6 @@
#include <svx/svdocirc.hxx>
#include <svx/svdogrp.hxx>
#include <svx/svdoashp.hxx>
#include <comphelper/implementationreference.hxx>
namespace
rptui
{
...
...
@@ -72,7 +70,7 @@ class OPropertyMediator;
class
REPORTDESIGN_DLLPUBLIC
OObjectBase
{
public
:
typedef
::
comphelper
::
ImplementationReference
<
OPropertyMediator
,
::
com
::
sun
::
star
::
beans
::
XPropertyChangeListene
r
>
TMediator
;
typedef
rtl
::
Reference
<
OPropertyMediato
r
>
TMediator
;
protected
:
mutable
TMediator
m_xMediator
;
...
...
reportdesign/source/core/inc/ReportEngineJFree.hxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -32,8 +32,8 @@
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/sdbc/XRowSet.hpp>
#include <comphelper/stl_types.hxx>
#include <comphelper/implementationreference.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <rtl/ref.hxx>
namespace
reportdesign
{
...
...
@@ -78,7 +78,7 @@ namespace reportdesign
virtual
~
OReportEngineJFree
();
public
:
typedef
::
comphelper
::
ImplementationReference
<
OReportEngineJFree
,
::
com
::
sun
::
star
::
report
::
XReportEngine
,
::
com
::
sun
::
star
::
uno
::
XWeak
>
TReportEngine
;
typedef
rtl
::
Reference
<
OReportEngineJFree
>
TReportEngine
;
OReportEngineJFree
(
const
com
::
sun
::
star
::
uno
::
Reference
<
com
::
sun
::
star
::
uno
::
XComponentContext
>&
context
);
...
...
reportdesign/source/core/inc/Section.hxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -30,9 +30,9 @@
#include <com/sun/star/drawing/XShapeGrouper.hpp>
#include <com/sun/star/drawing/XShapes.hpp>
#include <com/sun/star/form/XFormsSupplier2.hpp>
#include <comphelper/implementationreference.hxx>
#include <com/sun/star/lang/XUnoTunnel.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <rtl/ref.hxx>
namespace
reportdesign
{
...
...
@@ -127,7 +127,7 @@ namespace reportdesign
virtual
void
SAL_CALL
disposing
()
SAL_OVERRIDE
;
public
:
typedef
::
comphelper
::
ImplementationReference
<
OSection
,
::
com
::
sun
::
star
::
report
::
XSection
,
::
com
::
sun
::
star
::
uno
::
XWeak
>
TSection
;
typedef
rtl
::
Reference
<
OSection
>
TSection
;
private
:
OSection
(
const
::
com
::
sun
::
star
::
uno
::
Reference
<
::
com
::
sun
::
star
::
report
::
XReportDefinition
>&
xParentDef
...
...
reportdesign/source/core/sdr/RptObject.cxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -324,7 +324,7 @@ OObjectBase::OObjectBase(const OUString& _sComponentName)
OObjectBase
::~
OObjectBase
()
{
m_xMediator
.
reset
();
m_xMediator
.
clear
();
if
(
isListening
()
)
EndListening
();
m_xReportComponent
.
clear
();
...
...
@@ -898,7 +898,7 @@ void OUnoObject::CreateMediator(bool _bReverse)
Reference
<
XPropertySet
>
xControlModel
(
GetUnoControlModel
(),
uno
::
UNO_QUERY
);
if
(
!
m_xMediator
.
is
()
&&
m_xReportComponent
.
is
()
&&
xControlModel
.
is
()
)
m_xMediator
=
TMediator
::
createFromQuery
(
new
OPropertyMediator
(
m_xReportComponent
.
get
(),
xControlModel
,
getPropertyNameMap
(
GetObjIdentifier
()),
_bReverse
)
);
m_xMediator
=
new
OPropertyMediator
(
m_xReportComponent
.
get
(),
xControlModel
,
getPropertyNameMap
(
GetObjIdentifier
()),
_bReverse
);
OObjectBase
::
StartListening
();
}
}
...
...
reportdesign/source/ui/inc/ReportController.hxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -44,7 +44,6 @@
#include <com/sun/star/util/XNumberFormatter.hpp>
#include <com/sun/star/view/XSelectionSupplier.hpp>
#include <comphelper/implementationreference.hxx>
#include <comphelper/proparrhlp.hxx>
#include <comphelper/propertystatecontainer.hxx>
#include <comphelper/uno3.hxx>
...
...
reportdesign/source/ui/inc/toolboxcontroller.hxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -23,19 +23,19 @@
#include <map>
#include <rtl/ref.hxx>
#include <svtools/toolboxcontroller.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <com/sun/star/frame/XSubToolbarController.hpp>
#include <cppuhelper/implbase2.hxx>
#include <comphelper/implementationreference.hxx>
class
SfxToolBoxControl
;
namespace
rptui
{
typedef
::
cppu
::
ImplHelper2
<
::
com
::
sun
::
star
::
lang
::
XServiceInfo
,
::
com
::
sun
::
star
::
frame
::
XSubToolbarController
>
TToolboxController_BASE
;
typedef
::
comphelper
::
ImplementationReference
<
SfxToolBoxControl
,
::
com
::
sun
::
star
::
frame
::
XToolbarController
>
TToolbarHelper
;
typedef
rtl
::
Reference
<
SfxToolBoxControl
>
TToolbarHelper
;
class
OToolboxController
:
public
::
svt
::
ToolboxController
,
public
TToolboxController_BASE
...
...
reportdesign/source/ui/misc/toolboxcontroller.cxx
Dosyayı görüntüle @
94546ae8
...
...
@@ -143,48 +143,48 @@ void SAL_CALL OToolboxController::initialize( const Sequence< Any >& _rArguments
if
(
m_aCommandURL
==
".uno:BasicShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:BasicShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_BASIC
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_BASIC
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:SymbolShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:SymbolShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_SYMBOL
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_SYMBOL
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:ArrowShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:ArrowShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_ARROW
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_ARROW
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:FlowChartShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:FlowChartShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_FLOWCHART
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_FLOWCHART
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:CalloutShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:CalloutShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_CALLOUT
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_CALLOUT
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:StarShapes"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:StarShapes"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_STAR
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxTbxCtlCustomShapes
(
m_nSlotId
=
SID_DRAWTBX_CS_STAR
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:CharFontName"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:CharFontName"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxFontNameToolBoxControl
/*SvxStyleToolBoxControl*/
(
m_nSlotId
=
SID_ATTR_CHAR_FONT
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxFontNameToolBoxControl
/*SvxStyleToolBoxControl*/
(
m_nSlotId
=
SID_ATTR_CHAR_FONT
,
m_nToolBoxId
,
*
pToolBox
);
}
else
if
(
m_aCommandURL
==
".uno:FontColor"
||
m_aCommandURL
==
".uno:Color"
)
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:FontColor"
),
sal_True
));
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:Color"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxColorToolBoxControl
(
m_nSlotId
=
SID_ATTR_CHAR_COLOR2
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxColorToolBoxControl
(
m_nSlotId
=
SID_ATTR_CHAR_COLOR2
,
m_nToolBoxId
,
*
pToolBox
);
}
else
{
m_aStates
.
insert
(
TCommandState
::
value_type
(
OUString
(
".uno:BackgroundColor"
),
sal_True
));
m_pToolbarController
=
TToolbarHelper
::
createFromQuery
(
new
SvxColorToolBoxControl
(
m_nSlotId
=
SID_BACKGROUND_COLOR
,
m_nToolBoxId
,
*
pToolBox
)
);
m_pToolbarController
=
new
SvxColorToolBoxControl
(
m_nSlotId
=
SID_BACKGROUND_COLOR
,
m_nToolBoxId
,
*
pToolBox
);
}
TCommandState
::
iterator
aIter
=
m_aStates
.
begin
();
...
...
@@ -271,7 +271,7 @@ Reference< awt::XWindow > SAL_CALL OToolboxController::createPopupWindow() throw
Reference
<
awt
::
XWindow
>
xRet
;
if
(
m_pToolbarController
.
is
()
)
xRet
=
m_pToolbarController
.
getRef
()
->
createPopupWindow
();
xRet
=
m_pToolbarController
->
createPopupWindow
();
return
xRet
;
}
...
...
@@ -279,7 +279,7 @@ Reference< awt::XWindow > SAL_CALL OToolboxController::createPopupWindow() throw
void
SAL_CALL
OToolboxController
::
execute
(
sal_Int16
KeyModifier
)
throw
(
uno
::
RuntimeException
,
std
::
exception
)
{
if
(
m_pToolbarController
.
is
()
)
m_pToolbarController
.
getRef
()
->
execute
(
KeyModifier
);
m_pToolbarController
->
execute
(
KeyModifier
);
}
sal_Bool
SAL_CALL
OToolboxController
::
opensSubToolbar
()
throw
(
uno
::
RuntimeException
,
std
::
exception
)
...
...
@@ -296,9 +296,8 @@ OUString SAL_CALL OToolboxController::getSubToolbarName() throw (uno::RuntimeExc
{
SolarMutexGuard
aSolarMutexGuard
;
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
uno
::
Reference
<
frame
::
XSubToolbarController
>
xSub
(
m_pToolbarController
.
getRef
(),
uno
::
UNO_QUERY
);
if
(
xSub
.
is
()
)
return
xSub
->
getSubToolbarName
();
if
(
m_pToolbarController
.
is
()
)
return
m_pToolbarController
->
getSubToolbarName
();
return
OUString
();
}
...
...
@@ -306,11 +305,9 @@ void SAL_CALL OToolboxController::functionSelected( const OUString& rCommand ) t
{
SolarMutexGuard
aSolarMutexGuard
;
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
uno
::
Reference
<
frame
::
XSubToolbarController
>
xSub
(
m_pToolbarController
.
getRef
(),
uno
::
UNO_QUERY
);
if
(
xSub
.
is
()
)
if
(
m_pToolbarController
.
is
()
)
{
xSub
->
functionSelected
(
m_aCommandURL
=
rCommand
);
m_pToolbarController
->
functionSelected
(
m_aCommandURL
=
rCommand
);
}
}
...
...
@@ -318,10 +315,8 @@ void SAL_CALL OToolboxController::updateImage( ) throw (uno::RuntimeException,
{
SolarMutexGuard
aSolarMutexGuard
;
::
osl
::
MutexGuard
aGuard
(
m_aMutex
);
uno
::
Reference
<
frame
::
XSubToolbarController
>
xSub
(
m_pToolbarController
.
getRef
(),
uno
::
UNO_QUERY
);
if
(
xSub
.
is
()
)
xSub
->
updateImage
();
if
(
m_pToolbarController
.
is
()
)
m_pToolbarController
->
updateImage
();
}
uno
::
Reference
<
awt
::
XWindow
>
SAL_CALL
OToolboxController
::
createItemWindow
(
const
uno
::
Reference
<
awt
::
XWindow
>&
_xParent
)
...
...
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