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
748ed65f
Kaydet (Commit)
748ed65f
authored
Agu 15, 2014
tarafından
Caolán McNamara
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
drop TabControl resource loader
Change-Id: Idb909c205dfadaadeb8b98ce08fe2f4286cfce26
üst
1ea4f163
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
8 additions
and
180 deletions
+8
-180
AllLangResTarget_fwe.mk
framework/AllLangResTarget_fwe.mk
+0
-1
fwktabwindow.hxx
framework/inc/classes/fwktabwindow.hxx
+2
-2
framework.hrc
framework/inc/framework.hrc
+0
-33
fwktabwindow.cxx
framework/source/classes/fwktabwindow.cxx
+5
-10
fwk_services.src
framework/source/services/fwk_services.src
+0
-32
rc.h
include/tools/rc.h
+0
-3
rcid.h
include/tools/rcid.h
+1
-1
tabctrl.hxx
include/vcl/tabctrl.hxx
+0
-2
rscdb.hxx
rsc/inc/rscdb.hxx
+0
-3
rscicpx.cxx
rsc/source/parser/rscicpx.cxx
+0
-52
rscinit.cxx
rsc/source/parser/rscinit.cxx
+0
-9
resmgr.cxx
tools/source/rc/resmgr.cxx
+0
-1
tabctrl.cxx
vcl/source/control/tabctrl.cxx
+0
-31
No files found.
framework/AllLangResTarget_fwe.mk
Dosyayı görüntüle @
748ed65f
...
...
@@ -23,7 +23,6 @@ $(eval $(call gb_AllLangResTarget_set_reslocation,fwe,framework))
$(eval $(call gb_AllLangResTarget_add_srs,fwe,\
fwe/fwk_classes \
fwe/fwk_services \
))
...
...
framework/inc/classes/fwktabwindow.hxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -44,9 +44,9 @@ namespace framework
class
FwkTabControl
:
public
TabControl
{
public
:
FwkTabControl
(
Window
*
pParent
,
const
ResId
&
rResId
);
FwkTabControl
(
Window
*
pParent
);
void
BroadcastEvent
(
sal_uLong
nEvent
);
void
BroadcastEvent
(
sal_uLong
nEvent
);
};
class
FwkTabPage
:
public
TabPage
...
...
framework/inc/framework.hrc
deleted
100644 → 0
Dosyayı görüntüle @
1ea4f163
/* -*- 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 _FRAMEWORK_HRC
#define _FRAMEWORK_HRC
#include <svl/solar.hrc>
#define RID_FWK_START 2409
// Ids of TabWindow
#define WIN_TABWINDOW (RID_FWK_START+0)
#define TC_TABCONTROL 1
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
framework/source/classes/fwktabwindow.cxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -20,7 +20,6 @@
// autogen include statement, do not remove
#include <classes/fwktabwindow.hxx>
#include "framework.hrc"
#include <classes/fwkresid.hxx>
#include <com/sun/star/awt/PosSize.hpp>
...
...
@@ -49,9 +48,8 @@ namespace framework
{
// class FwkTabControl ---------------------------------------------------
FwkTabControl
::
FwkTabControl
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
TabControl
(
pParent
,
rResId
)
FwkTabControl
::
FwkTabControl
(
Window
*
pParent
)
:
TabControl
(
pParent
)
{
}
...
...
@@ -174,12 +172,9 @@ void FwkTabPage::Resize()
}
// class FwkTabWindow ---------------------------------------------
FwkTabWindow
::
FwkTabWindow
(
Window
*
pParent
)
:
Window
(
pParent
,
FwkResId
(
WIN_TABWINDOW
)
),
m_aTabCtrl
(
this
,
FwkResId
(
TC_TABCONTROL
)
)
FwkTabWindow
::
FwkTabWindow
(
Window
*
pParent
)
:
Window
(
pParent
)
,
m_aTabCtrl
(
this
)
{
m_xWinProvider
=
awt
::
ContainerWindowProvider
::
create
(
::
comphelper
::
getProcessComponentContext
()
);
...
...
framework/source/services/fwk_services.src
deleted
100644 → 0
Dosyayı görüntüle @
1ea4f163
/* -*- 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 "framework.hrc"
Window WIN_TABWINDOW
{
OutputSize = TRUE ;
SVLook = TRUE ;
TabControl TC_TABCONTROL
{
OutputSize = TRUE ;
};
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
include/tools/rc.h
Dosyayı görüntüle @
748ed65f
...
...
@@ -170,9 +170,6 @@ typedef short RSWND_STYLE;
#define RSC_TABCONTROLITEM_TEXT 0x0002
#define RSC_TABCONTROLITEM_PAGERESID 0x0008
// For "TabControl" resources:
#define RSC_TABCONTROL_ITEMLIST 0x01
// For "ImageButtons":
#define RSC_IMAGEBUTTON_IMAGE 0x01
#define RSC_IMAGEBUTTON_SYMBOL 0x02
...
...
include/tools/rcid.h
Dosyayı görüntüle @
748ed65f
...
...
@@ -100,7 +100,7 @@
#define RSC_DOCKINGWINDOW (RSC_NOTYPE + 0x72)
#define RSC_TABPAGE (RSC_NOTYPE + 0x74)
#define RSC_TABCONTROL (RSC_NOTYPE + 0x75)
#define RSC_TABCONTROLITEM (RSC_NOTYPE + 0x77)
#define RSC_STRINGARRAY (RSC_NOTYPE + 0x79)
...
...
include/vcl/tabctrl.hxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -73,7 +73,6 @@ private:
protected
:
using
Window
::
ImplInit
;
SAL_DLLPRIVATE
void
ImplInit
(
Window
*
pParent
,
WinBits
nStyle
);
SAL_DLLPRIVATE
void
ImplLoadRes
(
const
ResId
&
rResId
);
virtual
void
FillLayoutData
()
const
SAL_OVERRIDE
;
virtual
const
Font
&
GetCanonicalFont
(
const
StyleSettings
&
_rStyle
)
const
SAL_OVERRIDE
;
...
...
@@ -83,7 +82,6 @@ protected:
public
:
TabControl
(
Window
*
pParent
,
WinBits
nStyle
=
WB_STDTABCONTROL
);
TabControl
(
Window
*
pParent
,
const
ResId
&
rResId
);
virtual
~
TabControl
();
virtual
void
MouseButtonDown
(
const
MouseEvent
&
rMEvt
)
SAL_OVERRIDE
;
...
...
rsc/inc/rscdb.hxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -224,9 +224,6 @@ class RscTypCont
RscTop
*
pClassImageList
);
RscTop
*
InitClassFloatingWindow
(
RscTop
*
pSuper
,
RscEnum
*
pMapUnit
);
RscTop
*
InitClassTabControlItem
(
RscTop
*
pSuper
);
RscTop
*
InitClassTabControl
(
RscTop
*
pSuper
,
RscTop
*
pClassTabControlItem
);
RscTop
*
InitClassSfxStyleFamilyItem
(
RscTop
*
pSuper
,
RscTop
*
pClassBitmap
,
RscTop
*
pClassImage
,
...
...
rsc/source/parser/rscicpx.cxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -1622,58 +1622,6 @@ RscTop * RscTypCont::InitClassFloatingWindow( RscTop * pSuper,
return
pClassFloatingWindow
;
}
RscTop
*
RscTypCont
::
InitClassTabControlItem
(
RscTop
*
pSuper
)
{
Atom
nId
;
RscTop
*
pClassTabControlItem
;
// Klasse anlegen
nId
=
pHS
->
getID
(
"PageItem"
);
pClassTabControlItem
=
new
RscClass
(
nId
,
RSC_TABCONTROLITEM
,
pSuper
);
aNmTb
.
Put
(
nId
,
CLASSNAME
,
pClassTabControlItem
);
// Variablen anlegen
nId
=
aNmTb
.
Put
(
"Identifier"
,
VARNAME
);
pClassTabControlItem
->
SetVariable
(
nId
,
&
aIdNoZeroUShort
,
NULL
,
0
,
RSC_TABCONTROLITEM_ID
);
nId
=
aNmTb
.
Put
(
"Text"
,
VARNAME
);
pClassTabControlItem
->
SetVariable
(
nId
,
&
aLangString
,
NULL
,
0
,
RSC_TABCONTROLITEM_TEXT
);
nId
=
aNmTb
.
Put
(
"PageResID"
,
VARNAME
);
pClassTabControlItem
->
SetVariable
(
nId
,
&
aIdLong
,
NULL
,
0
,
RSC_TABCONTROLITEM_PAGERESID
);
return
pClassTabControlItem
;
}
RscTop
*
RscTypCont
::
InitClassTabControl
(
RscTop
*
pSuper
,
RscTop
*
pClassTabControlItem
)
{
Atom
nId
;
RscTop
*
pClassTabControl
;
// Klasse anlegen
nId
=
pHS
->
getID
(
"TabControl"
);
pClassTabControl
=
new
RscClass
(
nId
,
RSC_TABCONTROL
,
pSuper
);
pClassTabControl
->
SetCallPar
(
*
pStdPar1
,
*
pStdPar2
,
*
pStdParType
);
aNmTb
.
Put
(
nId
,
CLASSNAME
,
pClassTabControl
);
// Variablen anlegen
{
RscCont
*
pCont
;
aBaseLst
.
push_back
(
pCont
=
new
RscCont
(
pHS
->
getID
(
"ContTabControlItem"
),
RSC_NOTYPE
)
);
pCont
->
SetTypeClass
(
pClassTabControlItem
);
nId
=
aNmTb
.
Put
(
"PageList"
,
VARNAME
);
pClassTabControl
->
SetVariable
(
nId
,
pCont
,
NULL
,
0
,
RSC_TABCONTROL_ITEMLIST
);
INS_WINBIT
(
pClassTabControl
,
DropDown
);
}
return
pClassTabControl
;
}
RscTop
*
RscTypCont
::
InitClassSfxStyleFamilyItem
(
RscTop
*
pSuper
,
RscTop
*
pClassBitmap
,
RscTop
*
pClassImage
,
...
...
rsc/source/parser/rscinit.cxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -116,8 +116,6 @@ void RscTypCont::Init()
RscTop
*
pClassToolBox
;
RscTop
*
pClassFloatingWindow
;
RscTop
*
pClassTabPage
;
RscTop
*
pClassTabControlItem
;
RscTop
*
pClassTabControl
;
RscTop
*
pClassFixedLine
;
RscTop
*
pClassSfxStyleFamilyItem
;
RscTop
*
pClassSfxTemplateDialog
;
...
...
@@ -609,13 +607,6 @@ void RscTypCont::Init()
aNmTb
.
Put
(
nId
,
CLASSNAME
,
pClassTabPage
);
pRoot
->
Insert
(
pClassTabPage
);
pClassTabControlItem
=
InitClassTabControlItem
(
pClassMgr
);
pRoot
->
Insert
(
pClassTabControlItem
);
pClassTabControl
=
InitClassTabControl
(
pClassControl
,
pClassTabControlItem
);
pRoot
->
Insert
(
pClassTabControl
);
// Klasse anlegen
nId
=
pHS
->
getID
(
"FixedLine"
);
pClassFixedLine
=
...
...
tools/source/rc/resmgr.cxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -1479,7 +1479,6 @@ OString ResMgr::GetAutoHelpId()
// intentionally no breaks!
// auto help ids for controls
switch
(
pRC
->
pResource
->
GetRT
()
)
{
case
RSC_TABCONTROL
:
aHID
.
append
(
"TabControl"
);
break
;
case
RSC_RADIOBUTTON
:
aHID
.
append
(
"RadioButton"
);
break
;
case
RSC_CHECKBOX
:
aHID
.
append
(
"CheckBox"
);
break
;
case
RSC_TRISTATEBOX
:
aHID
.
append
(
"TriStateBox"
);
break
;
...
...
vcl/source/control/tabctrl.cxx
Dosyayı görüntüle @
748ed65f
...
...
@@ -190,37 +190,6 @@ TabControl::TabControl( Window* pParent, WinBits nStyle ) :
OSL_TRACE
(
"*** TABCONTROL no notabs? %s"
,
(
GetStyle
()
&
WB_NOBORDER
)
?
"true"
:
"false"
);
}
TabControl
::
TabControl
(
Window
*
pParent
,
const
ResId
&
rResId
)
:
Control
(
WINDOW_TABCONTROL
)
{
rResId
.
SetRT
(
RSC_TABCONTROL
);
WinBits
nStyle
=
ImplInitRes
(
rResId
);
ImplInit
(
pParent
,
nStyle
);
ImplLoadRes
(
rResId
);
if
(
!
(
nStyle
&
WB_HIDE
)
)
Show
();
}
void
TabControl
::
ImplLoadRes
(
const
ResId
&
rResId
)
{
Control
::
ImplLoadRes
(
rResId
);
sal_uLong
nObjMask
=
ReadLongRes
();
if
(
nObjMask
&
RSC_TABCONTROL_ITEMLIST
)
{
sal_uLong
nEle
=
ReadLongRes
();
// add item
for
(
sal_uLong
i
=
0
;
i
<
nEle
;
i
++
)
{
InsertPage
(
ResId
(
(
RSHEADER_TYPE
*
)
GetClassRes
(),
*
rResId
.
GetResMgr
()
)
);
IncrementRes
(
GetObjSizeRes
(
(
RSHEADER_TYPE
*
)
GetClassRes
()
)
);
}
}
}
TabControl
::~
TabControl
()
{
if
(
GetParent
()
->
IsDialog
()
)
...
...
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